@breadstone/archipel-mcp 0.0.22 → 0.0.25

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 (180) hide show
  1. package/README.md +32 -13
  2. package/data/guides/ai-text-generation.md +16 -24
  3. package/data/guides/caching.md +33 -0
  4. package/data/guides/email-delivery.md +27 -1
  5. package/data/guides/email-templates.md +49 -39
  6. package/data/guides/esigning-integration.md +11 -5
  7. package/data/guides/health-indicators.md +220 -0
  8. package/data/guides/index.md +2 -0
  9. package/data/guides/queue-infrastructure.md +329 -0
  10. package/data/guides/telemetry-and-observability.md +20 -0
  11. package/data/packages/platform-analytics/api/Class.AnalyticsClientPort.md +20 -0
  12. package/data/packages/platform-analytics/api/Class.AnalyticsHealthIndicator.md +78 -0
  13. package/data/packages/platform-analytics/api/Class.AppInsightsAnalyticsClient.md +24 -0
  14. package/data/packages/platform-analytics/api/Class.DatadogAnalyticsClient.md +24 -0
  15. package/data/packages/platform-analytics/api/Class.NoopAnalyticsClient.md +24 -0
  16. package/data/packages/platform-analytics/api/Class.SentryAnalyticsClient.md +24 -0
  17. package/data/packages/platform-analytics/api/index.md +1 -0
  18. package/data/packages/platform-analytics/index.md +25 -1
  19. package/data/packages/platform-authentication/api/Class.AuthenticationHealthIndicator.md +68 -0
  20. package/data/packages/platform-authentication/api/Interface.IMfaSubjectUpdate.md +1 -1
  21. package/data/packages/platform-authentication/api/index.md +2 -1
  22. package/data/packages/platform-authentication/index.md +25 -1
  23. package/data/packages/platform-blob-storage/api/Class.BlobHealthIndicator.md +7 -7
  24. package/data/packages/platform-blob-storage/api/Class.BlobModule.md +2 -2
  25. package/data/packages/platform-blob-storage/api/Interface.IAwsS3BlobProviderRegistration.md +3 -3
  26. package/data/packages/platform-blob-storage/api/Interface.IAzureBlobProviderRegistration.md +3 -3
  27. package/data/packages/platform-blob-storage/api/Interface.IBlobModuleOptions.md +5 -5
  28. package/data/packages/platform-blob-storage/api/Interface.ICustomBlobProviderRegistration.md +3 -3
  29. package/data/packages/platform-blob-storage/api/Interface.IVercelBlobProviderRegistration.md +3 -3
  30. package/data/packages/platform-blob-storage/api/TypeAlias.IBlobProviderRegistration.md +1 -1
  31. package/data/packages/platform-blob-storage/api/index.md +1 -1
  32. package/data/packages/platform-blob-storage/index.md +19 -14
  33. package/data/packages/platform-caching/api/Class.MemoryLayeredCache.md +10 -10
  34. package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +6 -6
  35. package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +13 -13
  36. package/data/packages/platform-caching/api/Interface.ILayeredCache.md +9 -9
  37. package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +6 -6
  38. package/data/packages/platform-caching/api/Variable.CACHE_DEFAULT_TTL_MS.md +14 -0
  39. package/data/packages/platform-caching/api/Variable.CACHE_MAX_ENTRIES.md +14 -0
  40. package/data/packages/platform-caching/api/Variable.CACHE_STALE_WHILE_REVALIDATE.md +14 -0
  41. package/data/packages/platform-caching/api/Variable.PLATFORM_CACHING_CONFIG_ENTRIES.md +14 -0
  42. package/data/packages/platform-caching/api/Variable.REDIS_CONFIG_ENTRIES.md +14 -0
  43. package/data/packages/platform-caching/api/Variable.REDIS_KEY_PREFIX.md +14 -0
  44. package/data/packages/platform-caching/api/Variable.REDIS_TTL_SECONDS.md +14 -0
  45. package/data/packages/platform-caching/api/Variable.REDIS_URL.md +14 -0
  46. package/data/packages/platform-caching/api/index.md +13 -0
  47. package/data/packages/platform-caching/index.md +47 -1
  48. package/data/packages/platform-configuration/api/Function.createConfigKey.md +1 -1
  49. package/data/packages/platform-core/api/Class.HttpLoggerMiddleware.md +3 -3
  50. package/data/packages/platform-core/api/Function.maskSensitive.md +26 -0
  51. package/data/packages/platform-core/api/Function.maskSensitiveFields.md +26 -0
  52. package/data/packages/platform-core/api/index.md +2 -0
  53. package/data/packages/platform-core/index.md +11 -0
  54. package/data/packages/platform-database/api/Class.DatabaseHealthIndicator.md +8 -6
  55. package/data/packages/platform-database/api/Class.DatabaseModule.md +3 -3
  56. package/data/packages/platform-database/api/Class.RepositoryBase.md +20 -20
  57. package/data/packages/platform-database/api/Function.paginator.md +1 -1
  58. package/data/packages/platform-database/api/Interface.IDatabaseModuleConfig.md +3 -3
  59. package/data/packages/platform-database/api/TypeAlias.DelegateArgs.md +1 -1
  60. package/data/packages/platform-database/api/TypeAlias.DelegateReturnTypes.md +1 -1
  61. package/data/packages/platform-database/api/TypeAlias.PaginateFunction.md +1 -1
  62. package/data/packages/platform-database/api/Variable.DATABASE_MODULE_CONFIG.md +1 -1
  63. package/data/packages/platform-database/index.md +17 -5
  64. package/data/packages/platform-documents/api/Class.DocumentEngine.md +9 -5
  65. package/data/packages/platform-documents/index.md +1 -1
  66. package/data/packages/platform-esigning/api/Class.AdobeSignEsigningProvider.md +24 -0
  67. package/data/packages/platform-esigning/api/Class.DocuSignEsigningProvider.md +24 -0
  68. package/data/packages/platform-esigning/api/Class.DropboxSignEsigningProvider.md +24 -0
  69. package/data/packages/platform-esigning/api/Class.EsigningClientPort.md +20 -0
  70. package/data/packages/platform-esigning/api/Class.EsigningHealthIndicator.md +78 -0
  71. package/data/packages/platform-esigning/api/Class.InternalEsigningProvider.md +24 -0
  72. package/data/packages/platform-esigning/api/index.md +1 -0
  73. package/data/packages/platform-esigning/index.md +26 -2
  74. package/data/packages/platform-health/api/Class.HealthModule.md +42 -0
  75. package/data/packages/platform-health/api/Class.HealthOrchestrator.md +64 -0
  76. package/data/packages/platform-health/api/Interface.IHealthCheckResult.md +46 -0
  77. package/data/packages/platform-health/api/Interface.IHealthIndicator.md +41 -0
  78. package/data/packages/platform-health/api/Variable.HEALTH_INDICATORS_TOKEN.md +14 -0
  79. package/data/packages/platform-health/api/index.md +26 -0
  80. package/data/packages/platform-health/index.md +19 -8
  81. package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +78 -0
  82. package/data/packages/platform-intelligence/api/index.md +1 -0
  83. package/data/packages/platform-intelligence/index.md +24 -1
  84. package/data/packages/platform-logging/api/Class.ContextLogger.md +152 -0
  85. package/data/packages/platform-logging/api/Class.LoggerModule.md +8 -2
  86. package/data/packages/platform-logging/api/Class.RequestContextStore.md +90 -0
  87. package/data/packages/platform-logging/api/Class.RequestIdMiddleware.md +68 -0
  88. package/data/packages/platform-logging/api/Interface.IRequestContext.md +34 -0
  89. package/data/packages/platform-logging/api/Variable.REQUEST_ID_HEADER.md +14 -0
  90. package/data/packages/platform-logging/api/index.md +11 -1
  91. package/data/packages/platform-logging/index.md +89 -7
  92. package/data/packages/platform-mailing/api/Class.MailHealthIndicator.md +5 -5
  93. package/data/packages/platform-mailing/api/Class.MailModule.md +28 -1
  94. package/data/packages/platform-mailing/api/Class.MailVerificationService.md +49 -16
  95. package/data/packages/platform-mailing/api/Class.SmtpConnectionVerifier.md +84 -0
  96. package/data/packages/platform-mailing/api/Interface.IMailModuleOptions.md +36 -0
  97. package/data/packages/platform-mailing/api/index.md +3 -1
  98. package/data/packages/platform-mailing/index.md +64 -8
  99. package/data/packages/platform-mapping/api/Class.MappingBuilder.md +110 -0
  100. package/data/packages/platform-mapping/api/Class.MappingError.md +56 -0
  101. package/data/packages/platform-mapping/api/Class.MappingModule.md +46 -0
  102. package/data/packages/platform-mapping/api/Class.MappingNotRegisteredError.md +52 -0
  103. package/data/packages/platform-mapping/api/Class.MappingProfileBase.md +52 -0
  104. package/data/packages/platform-mapping/api/Class.MappingService.md +284 -0
  105. package/data/packages/platform-mapping/api/Class.TypeMappingNotRegisteredError.md +53 -0
  106. package/data/packages/platform-mapping/api/Function.createMappingKey.md +39 -0
  107. package/data/packages/platform-mapping/api/Interface.IMappingBuilder.md +76 -0
  108. package/data/packages/platform-mapping/api/Interface.IMappingKey.md +58 -0
  109. package/data/packages/platform-mapping/api/Interface.IMappingProfile.md +32 -0
  110. package/data/packages/platform-mapping/api/TypeAlias.Constructor.md +28 -0
  111. package/data/packages/platform-mapping/api/index.md +38 -0
  112. package/data/packages/platform-mapping/index.md +1 -1
  113. package/data/packages/platform-mcp/api/Class.McpHealthIndicator.md +78 -0
  114. package/data/packages/platform-mcp/api/index.md +1 -0
  115. package/data/packages/platform-mcp/index.md +24 -1
  116. package/data/packages/platform-openapi/api/Function.SwaggerFeature.md +2 -2
  117. package/data/packages/platform-openapi/api/Function.getSwaggerFeatureMetadata.md +2 -2
  118. package/data/packages/platform-payments/api/Class.LemonSqueezyClient.md +24 -0
  119. package/data/packages/platform-payments/api/Class.MollieClient.md +24 -0
  120. package/data/packages/platform-payments/api/Class.PaddleClient.md +24 -0
  121. package/data/packages/platform-payments/api/Class.PaymentClientPort.md +20 -0
  122. package/data/packages/platform-payments/api/Class.PaymentHealthIndicator.md +78 -0
  123. package/data/packages/platform-payments/api/Class.StripeClient.md +28 -4
  124. package/data/packages/platform-payments/api/index.md +1 -0
  125. package/data/packages/platform-payments/index.md +26 -2
  126. package/data/packages/platform-queue/api/Class.AzureQueue.md +221 -0
  127. package/data/packages/platform-queue/api/Class.BullMqQueue.md +220 -0
  128. package/data/packages/platform-queue/api/Class.MemoryQueue.md +194 -0
  129. package/data/packages/platform-queue/api/Class.QueueError.md +51 -0
  130. package/data/packages/platform-queue/api/Class.QueueHealthIndicator.md +68 -0
  131. package/data/packages/platform-queue/api/Class.QueueJobNotFoundError.md +43 -0
  132. package/data/packages/platform-queue/api/Class.QueueJobStateError.md +48 -0
  133. package/data/packages/platform-queue/api/Class.QueueValidationError.md +43 -0
  134. package/data/packages/platform-queue/api/Interface.IAzureQueueOptions.md +48 -0
  135. package/data/packages/platform-queue/api/Interface.IBullMqQueueOptions.md +45 -0
  136. package/data/packages/platform-queue/api/Interface.IMemoryQueueOptions.md +32 -0
  137. package/data/packages/platform-queue/api/Interface.IQueue.md +173 -0
  138. package/data/packages/platform-queue/api/Interface.IQueueJob.md +139 -0
  139. package/data/packages/platform-queue/api/TypeAlias.QueueJobStatus.md +14 -0
  140. package/data/packages/platform-queue/api/Variable.AZURE_CONFIG_ENTRIES.md +17 -0
  141. package/data/packages/platform-queue/api/Variable.AZURE_CONNECTION_STRING.md +14 -0
  142. package/data/packages/platform-queue/api/Variable.AZURE_RECEIVE_WAIT_MS.md +21 -0
  143. package/data/packages/platform-queue/api/Variable.BULLMQ_CONFIG_ENTRIES.md +17 -0
  144. package/data/packages/platform-queue/api/Variable.BULLMQ_PREFIX.md +18 -0
  145. package/data/packages/platform-queue/api/Variable.BULLMQ_REDIS_URL.md +21 -0
  146. package/data/packages/platform-queue/api/Variable.PLATFORM_QUEUE_CONFIG_ENTRIES.md +17 -0
  147. package/data/packages/platform-queue/api/Variable.QUEUE_JOB_STATUS.md +30 -0
  148. package/data/packages/platform-queue/api/Variable.QUEUE_MAX_JOBS.md +21 -0
  149. package/data/packages/platform-queue/api/index.md +49 -0
  150. package/data/packages/platform-queue/index.md +168 -0
  151. package/data/packages/platform-resources/api/Class.BlobResourceStrategy.md +195 -0
  152. package/data/packages/platform-resources/api/Class.EmbeddedResourceStrategy.md +215 -0
  153. package/data/packages/platform-resources/api/Class.FileResourceStrategy.md +190 -0
  154. package/data/packages/platform-resources/api/Class.ResourceManager.md +477 -0
  155. package/data/packages/platform-resources/api/Class.ResourceModule.md +46 -0
  156. package/data/packages/platform-resources/api/Class.ResourceNotFoundError.md +60 -0
  157. package/data/packages/platform-resources/api/Interface.IBlobResourceStrategyConfig.md +28 -0
  158. package/data/packages/platform-resources/api/Interface.IBlobServiceAdapter.md +40 -0
  159. package/data/packages/platform-resources/api/Interface.IFileResourceStrategyConfig.md +72 -0
  160. package/data/packages/platform-resources/api/Interface.IResourceManagerConfig.md +89 -0
  161. package/data/packages/platform-resources/api/Interface.IResourceMetadata.md +94 -0
  162. package/data/packages/platform-resources/api/Interface.IResourceResult.md +34 -0
  163. package/data/packages/platform-resources/api/Interface.IResourceStrategy.md +134 -0
  164. package/data/packages/platform-resources/api/index.md +29 -0
  165. package/data/packages/platform-resources/index.md +1 -1
  166. package/data/packages/platform-telemetry/api/Class.OtelSdkHolder.md +21 -3
  167. package/data/packages/platform-telemetry/api/Class.TelemetryHealthIndicator.md +78 -0
  168. package/data/packages/platform-telemetry/api/index.md +1 -0
  169. package/data/packages/platform-telemetry/index.md +25 -1
  170. package/data/patterns/config-pattern.md +5 -3
  171. package/package.json +2 -2
  172. package/src/tools/registerGetConfigPatternTool.js +1 -1
  173. package/src/tools/registerGetDtoPatternTool.js +1 -1
  174. package/src/tools/registerGetErrorHandlingPatternTool.js +1 -1
  175. package/src/tools/registerGetGuardPatternTool.js +1 -1
  176. package/src/tools/registerGetMappingPatternTool.js +1 -1
  177. package/src/tools/registerGetModulePatternTool.js +1 -1
  178. package/src/tools/registerGetQueryPatternTool.js +1 -1
  179. package/src/tools/registerGetRepositoryPatternTool.js +1 -1
  180. package/src/tools/registerGetTestingPatternTool.js +1 -1
@@ -0,0 +1,173 @@
1
+ ---
2
+ title: 'Interface: IQueue\<TPayload\>'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IQueue\<TPayload\>
7
+
8
+ Defined in: [interfaces/IQueue.ts:23](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/interfaces/IQueue.ts#L23)
9
+
10
+ Contract for queue implementations.
11
+
12
+ Provides FIFO job enqueue/dequeue, status transitions, and listing.
13
+ Implementations may be in-memory, Redis-backed, or cloud-service-backed.
14
+
15
+ ## Remarks
16
+
17
+ All methods are asynchronous and return [IQueueJob](Interface.IQueueJob) instances.
18
+ Errors are signalled via domain-specific exceptions:
19
+ - [QueueValidationError](Class.QueueValidationError) for invalid input.
20
+ - [QueueJobNotFoundError](Class.QueueJobNotFoundError) when a job ID cannot be resolved.
21
+ - [QueueJobStateError](Class.QueueJobStateError) when a job is in the wrong state for a transition.
22
+
23
+ ## Type Parameters
24
+
25
+ | Type Parameter | Default type | Description |
26
+ | ------ | ------ | ------ |
27
+ | `TPayload` | `unknown` | The default payload type for jobs in this queue. Defaults to `unknown`. |
28
+
29
+ ## Methods
30
+
31
+ ### dequeue()
32
+
33
+ ```ts
34
+ dequeue(queueName): Promise<IQueueJob<unknown> | null>;
35
+ ```
36
+
37
+ Defined in: [interfaces/IQueue.ts:45](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/interfaces/IQueue.ts#L45)
38
+
39
+ Dequeues the next pending job from the named queue.
40
+
41
+ The returned job transitions to `processing` status.
42
+
43
+ #### Parameters
44
+
45
+ | Parameter | Type | Description |
46
+ | ------ | ------ | ------ |
47
+ | `queueName` | `string` | The name of the queue to dequeue from. |
48
+
49
+ #### Returns
50
+
51
+ `Promise`\<[`IQueueJob`](Interface.IQueueJob)\<`unknown`\> \| `null`\>
52
+
53
+ The next pending job, or `null` if the queue is empty.
54
+
55
+ ***
56
+
57
+ ### enqueue()
58
+
59
+ ```ts
60
+ enqueue<T>(queueName, payload): Promise<IQueueJob<T>>;
61
+ ```
62
+
63
+ Defined in: [interfaces/IQueue.ts:34](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/interfaces/IQueue.ts#L34)
64
+
65
+ Enqueues a new job into the named queue.
66
+
67
+ #### Type Parameters
68
+
69
+ | Type Parameter | Default type |
70
+ | ------ | ------ |
71
+ | `T` | `TPayload` |
72
+
73
+ #### Parameters
74
+
75
+ | Parameter | Type | Description |
76
+ | ------ | ------ | ------ |
77
+ | `queueName` | `string` | The name of the target queue. |
78
+ | `payload` | `T` | The job payload. |
79
+
80
+ #### Returns
81
+
82
+ `Promise`\<[`IQueueJob`](Interface.IQueueJob)\<`T`\>\>
83
+
84
+ The created job in `pending` status.
85
+
86
+ ***
87
+
88
+ ### getJobs()
89
+
90
+ ```ts
91
+ getJobs(queueName): Promise<readonly IQueueJob<unknown>[]>;
92
+ ```
93
+
94
+ Defined in: [interfaces/IQueue.ts:77](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/interfaces/IQueue.ts#L77)
95
+
96
+ Returns all jobs for the given queue in insertion order.
97
+
98
+ #### Parameters
99
+
100
+ | Parameter | Type | Description |
101
+ | ------ | ------ | ------ |
102
+ | `queueName` | `string` | The name of the queue. |
103
+
104
+ #### Returns
105
+
106
+ `Promise`\<readonly [`IQueueJob`](Interface.IQueueJob)\<`unknown`\>[]\>
107
+
108
+ An array of jobs, possibly empty.
109
+
110
+ ***
111
+
112
+ ### markCompleted()
113
+
114
+ ```ts
115
+ markCompleted(jobId): Promise<IQueueJob<unknown>>;
116
+ ```
117
+
118
+ Defined in: [interfaces/IQueue.ts:56](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/interfaces/IQueue.ts#L56)
119
+
120
+ Marks a processing job as completed.
121
+
122
+ #### Parameters
123
+
124
+ | Parameter | Type | Description |
125
+ | ------ | ------ | ------ |
126
+ | `jobId` | `string` | The ID of the job to complete. |
127
+
128
+ #### Returns
129
+
130
+ `Promise`\<[`IQueueJob`](Interface.IQueueJob)\<`unknown`\>\>
131
+
132
+ The updated job in `completed` status.
133
+
134
+ #### Throws
135
+
136
+ [QueueJobNotFoundError](Class.QueueJobNotFoundError) When no job with the given ID exists.
137
+
138
+ #### Throws
139
+
140
+ [QueueJobStateError](Class.QueueJobStateError) When the job is not in `processing` status.
141
+
142
+ ***
143
+
144
+ ### markFailed()
145
+
146
+ ```ts
147
+ markFailed(jobId, errorMessage): Promise<IQueueJob<unknown>>;
148
+ ```
149
+
150
+ Defined in: [interfaces/IQueue.ts:68](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/interfaces/IQueue.ts#L68)
151
+
152
+ Marks a processing job as failed.
153
+
154
+ #### Parameters
155
+
156
+ | Parameter | Type | Description |
157
+ | ------ | ------ | ------ |
158
+ | `jobId` | `string` | The ID of the job to mark as failed. |
159
+ | `errorMessage` | `string` | A human-readable error message. |
160
+
161
+ #### Returns
162
+
163
+ `Promise`\<[`IQueueJob`](Interface.IQueueJob)\<`unknown`\>\>
164
+
165
+ The updated job in `failed` status.
166
+
167
+ #### Throws
168
+
169
+ [QueueJobNotFoundError](Class.QueueJobNotFoundError) When no job with the given ID exists.
170
+
171
+ #### Throws
172
+
173
+ [QueueJobStateError](Class.QueueJobStateError) When the job is not in `processing` status.
@@ -0,0 +1,139 @@
1
+ ---
2
+ title: 'Interface: IQueueJob\<TPayload\>'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IQueueJob\<TPayload\>
7
+
8
+ Defined in: [models/IQueueJob.ts:37](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L37)
9
+
10
+ Represents a job in a named queue with tracking metadata.
11
+
12
+ All queue implementations return objects conforming to this interface,
13
+ making it the unified exchange type between producers and consumers.
14
+
15
+ ## Type Parameters
16
+
17
+ | Type Parameter | Default type | Description |
18
+ | ------ | ------ | ------ |
19
+ | `TPayload` | `unknown` | The type of the job payload. Defaults to `unknown`. |
20
+
21
+ ## Properties
22
+
23
+ ### attempts
24
+
25
+ ```ts
26
+ readonly attempts: number;
27
+ ```
28
+
29
+ Defined in: [models/IQueueJob.ts:51](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L51)
30
+
31
+ Number of processing attempts.
32
+
33
+ ***
34
+
35
+ ### completedAt
36
+
37
+ ```ts
38
+ readonly completedAt: Date | null;
39
+ ```
40
+
41
+ Defined in: [models/IQueueJob.ts:60](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L60)
42
+
43
+ Timestamp when the job completed successfully.
44
+
45
+ ***
46
+
47
+ ### createdAt
48
+
49
+ ```ts
50
+ readonly createdAt: Date;
51
+ ```
52
+
53
+ Defined in: [models/IQueueJob.ts:54](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L54)
54
+
55
+ Timestamp when the job was created.
56
+
57
+ ***
58
+
59
+ ### errorMessage
60
+
61
+ ```ts
62
+ readonly errorMessage: string | null;
63
+ ```
64
+
65
+ Defined in: [models/IQueueJob.ts:66](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L66)
66
+
67
+ Error message from the last failure, if any.
68
+
69
+ ***
70
+
71
+ ### failedAt
72
+
73
+ ```ts
74
+ readonly failedAt: Date | null;
75
+ ```
76
+
77
+ Defined in: [models/IQueueJob.ts:63](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L63)
78
+
79
+ Timestamp when the job last failed.
80
+
81
+ ***
82
+
83
+ ### id
84
+
85
+ ```ts
86
+ readonly id: string;
87
+ ```
88
+
89
+ Defined in: [models/IQueueJob.ts:39](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L39)
90
+
91
+ Unique job identifier.
92
+
93
+ ***
94
+
95
+ ### payload
96
+
97
+ ```ts
98
+ readonly payload: TPayload;
99
+ ```
100
+
101
+ Defined in: [models/IQueueJob.ts:45](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L45)
102
+
103
+ The job payload.
104
+
105
+ ***
106
+
107
+ ### queueName
108
+
109
+ ```ts
110
+ readonly queueName: string;
111
+ ```
112
+
113
+ Defined in: [models/IQueueJob.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L42)
114
+
115
+ Name of the queue this job belongs to.
116
+
117
+ ***
118
+
119
+ ### startedAt
120
+
121
+ ```ts
122
+ readonly startedAt: Date | null;
123
+ ```
124
+
125
+ Defined in: [models/IQueueJob.ts:57](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L57)
126
+
127
+ Timestamp when the job was last picked up for processing.
128
+
129
+ ***
130
+
131
+ ### status
132
+
133
+ ```ts
134
+ readonly status: QueueJobStatus;
135
+ ```
136
+
137
+ Defined in: [models/IQueueJob.ts:48](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L48)
138
+
139
+ Current status of the job.
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: 'Type Alias: QueueJobStatus'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Type Alias: QueueJobStatus
7
+
8
+ ```ts
9
+ type QueueJobStatus = typeof QUEUE_JOB_STATUS[keyof typeof QUEUE_JOB_STATUS];
10
+ ```
11
+
12
+ Defined in: [models/IQueueJob.ts:26](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L26)
13
+
14
+ Union type derived from [QUEUE\_JOB\_STATUS](Variable.QUEUE_JOB_STATUS).
@@ -0,0 +1,17 @@
1
+ ---
2
+ title: 'Variable: AZURE\_CONFIG\_ENTRIES'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: AZURE\_CONFIG\_ENTRIES
7
+
8
+ ```ts
9
+ const AZURE_CONFIG_ENTRIES: ReadonlyArray<Omit<IConfigRegistryEntry, "module">>;
10
+ ```
11
+
12
+ Defined in: [azure/env.ts:38](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/azure/env.ts#L38)
13
+
14
+ All configuration entries required by the Azure queue provider.
15
+
16
+ Pass this array to the module's `register()` method so that the
17
+ configuration service validates and provides the values at startup.
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: 'Variable: AZURE\_CONNECTION\_STRING'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: AZURE\_CONNECTION\_STRING
7
+
8
+ ```ts
9
+ const AZURE_CONNECTION_STRING: IConfigKey<string>;
10
+ ```
11
+
12
+ Defined in: [azure/env.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/azure/env.ts#L16)
13
+
14
+ Azure queue connection string.
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: 'Variable: AZURE\_RECEIVE\_WAIT\_MS'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: AZURE\_RECEIVE\_WAIT\_MS
7
+
8
+ ```ts
9
+ const AZURE_RECEIVE_WAIT_MS: IConfigKey<number>;
10
+ ```
11
+
12
+ Defined in: [azure/env.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/azure/env.ts#L24)
13
+
14
+ Maximum wait time in milliseconds when receiving messages.
15
+
16
+ ## Default Value
17
+
18
+ ```ts
19
+ 5_000
20
+ @public
21
+ ```
@@ -0,0 +1,17 @@
1
+ ---
2
+ title: 'Variable: BULLMQ\_CONFIG\_ENTRIES'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: BULLMQ\_CONFIG\_ENTRIES
7
+
8
+ ```ts
9
+ const BULLMQ_CONFIG_ENTRIES: ReadonlyArray<Omit<IConfigRegistryEntry, "module">>;
10
+ ```
11
+
12
+ Defined in: [bullmq/env.ts:39](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/bullmq/env.ts#L39)
13
+
14
+ All configuration entries required by the BullMQ queue provider.
15
+
16
+ Pass this array to the module's `register()` method so that the
17
+ configuration service validates and provides the values at startup.
@@ -0,0 +1,18 @@
1
+ ---
2
+ title: 'Variable: BULLMQ\_PREFIX'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: BULLMQ\_PREFIX
7
+
8
+ ```ts
9
+ const BULLMQ_PREFIX: IConfigKey<string>;
10
+ ```
11
+
12
+ Defined in: [bullmq/env.ts:25](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/bullmq/env.ts#L25)
13
+
14
+ Optional key prefix applied to all BullMQ queues in Redis.
15
+
16
+ ## Default Value
17
+
18
+ `''`
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: 'Variable: BULLMQ\_REDIS\_URL'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: BULLMQ\_REDIS\_URL
7
+
8
+ ```ts
9
+ const BULLMQ_REDIS_URL: IConfigKey<string>;
10
+ ```
11
+
12
+ Defined in: [bullmq/env.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/bullmq/env.ts#L17)
13
+
14
+ Redis connection URL for BullMQ.
15
+
16
+ ## Example
17
+
18
+ ```ts
19
+ `redis://localhost:6379`
20
+ @public
21
+ ```
@@ -0,0 +1,17 @@
1
+ ---
2
+ title: 'Variable: PLATFORM\_QUEUE\_CONFIG\_ENTRIES'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: PLATFORM\_QUEUE\_CONFIG\_ENTRIES
7
+
8
+ ```ts
9
+ const PLATFORM_QUEUE_CONFIG_ENTRIES: ReadonlyArray<Omit<IConfigRegistryEntry, "module">>;
10
+ ```
11
+
12
+ Defined in: [env.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/env.ts#L31)
13
+
14
+ All configuration entries required by `platform-queue`.
15
+
16
+ Pass this array to the module's `register()` method so that the
17
+ configuration service validates and provides the values at startup.
@@ -0,0 +1,30 @@
1
+ ---
2
+ title: 'Variable: QUEUE\_JOB\_STATUS'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: QUEUE\_JOB\_STATUS
7
+
8
+ ```ts
9
+ const QUEUE_JOB_STATUS: {
10
+ completed: "completed";
11
+ failed: "failed";
12
+ pending: "pending";
13
+ processing: "processing";
14
+ };
15
+ ```
16
+
17
+ Defined in: [models/IQueueJob.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L10)
18
+
19
+ Possible statuses of a queue job.
20
+
21
+ Use as a const object and derive the union type via [QueueJobStatus](TypeAlias.QueueJobStatus).
22
+
23
+ ## Type Declaration
24
+
25
+ | Name | Type | Default value | Description | Defined in |
26
+ | ------ | ------ | ------ | ------ | ------ |
27
+ | <a id="property-completed"></a> `completed` | `"completed"` | `'completed'` | Job finished successfully. | [models/IQueueJob.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L16) |
28
+ | <a id="property-failed"></a> `failed` | `"failed"` | `'failed'` | Job finished with an error. | [models/IQueueJob.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L18) |
29
+ | <a id="property-pending"></a> `pending` | `"pending"` | `'pending'` | Job is waiting to be picked up. | [models/IQueueJob.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L12) |
30
+ | <a id="property-processing"></a> `processing` | `"processing"` | `'processing'` | Job has been dequeued and is being processed. | [models/IQueueJob.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/models/IQueueJob.ts#L14) |
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: 'Variable: QUEUE\_MAX\_JOBS'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: QUEUE\_MAX\_JOBS
7
+
8
+ ```ts
9
+ const QUEUE_MAX_JOBS: IConfigKey<number>;
10
+ ```
11
+
12
+ Defined in: [env.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-queue/src/env.ts#L17)
13
+
14
+ Maximum number of jobs retained in the in-memory queue before eviction.
15
+
16
+ ## Default Value
17
+
18
+ ```ts
19
+ 10_000
20
+ @public
21
+ ```
@@ -0,0 +1,49 @@
1
+ ---
2
+ title: '@breadstone/archipel-platform-queue'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # @breadstone/archipel-platform-queue
7
+
8
+ ## Classes
9
+
10
+ | Class | Description |
11
+ | ------ | ------ |
12
+ | [AzureQueue](Class.AzureQueue) | Azure Service Bus queue implementation. |
13
+ | [BullMqQueue](Class.BullMqQueue) | BullMQ-backed queue implementation. |
14
+ | [MemoryQueue](Class.MemoryQueue) | In-memory FIFO queue implementation. |
15
+ | [QueueError](Class.QueueError) | Base error class for all queue-related errors. |
16
+ | [QueueHealthIndicator](Class.QueueHealthIndicator) | Health indicator for the queue infrastructure. |
17
+ | [QueueJobNotFoundError](Class.QueueJobNotFoundError) | Thrown when a queue job cannot be found by its ID. |
18
+ | [QueueJobStateError](Class.QueueJobStateError) | Thrown when a queue job is in an invalid state for the requested transition. |
19
+ | [QueueValidationError](Class.QueueValidationError) | Thrown when a queue operation receives invalid input. |
20
+
21
+ ## Interfaces
22
+
23
+ | Interface | Description |
24
+ | ------ | ------ |
25
+ | [IAzureQueueOptions](Interface.IAzureQueueOptions) | Configuration options for [AzureQueue](Class.AzureQueue). |
26
+ | [IBullMqQueueOptions](Interface.IBullMqQueueOptions) | Configuration options for [BullMqQueue](Class.BullMqQueue). |
27
+ | [IMemoryQueueOptions](Interface.IMemoryQueueOptions) | Configuration options for [MemoryQueue](Class.MemoryQueue). |
28
+ | [IQueue](Interface.IQueue) | Contract for queue implementations. |
29
+ | [IQueueJob](Interface.IQueueJob) | Represents a job in a named queue with tracking metadata. |
30
+
31
+ ## Type Aliases
32
+
33
+ | Type Alias | Description |
34
+ | ------ | ------ |
35
+ | [QueueJobStatus](TypeAlias.QueueJobStatus) | Union type derived from [QUEUE\_JOB\_STATUS](Variable.QUEUE_JOB_STATUS). |
36
+
37
+ ## Variables
38
+
39
+ | Variable | Description |
40
+ | ------ | ------ |
41
+ | [AZURE\_CONFIG\_ENTRIES](Variable.AZURE_CONFIG_ENTRIES) | All configuration entries required by the Azure queue provider. |
42
+ | [AZURE\_CONNECTION\_STRING](Variable.AZURE_CONNECTION_STRING) | Azure queue connection string. |
43
+ | [AZURE\_RECEIVE\_WAIT\_MS](Variable.AZURE_RECEIVE_WAIT_MS) | Maximum wait time in milliseconds when receiving messages. |
44
+ | [BULLMQ\_CONFIG\_ENTRIES](Variable.BULLMQ_CONFIG_ENTRIES) | All configuration entries required by the BullMQ queue provider. |
45
+ | [BULLMQ\_PREFIX](Variable.BULLMQ_PREFIX) | Optional key prefix applied to all BullMQ queues in Redis. |
46
+ | [BULLMQ\_REDIS\_URL](Variable.BULLMQ_REDIS_URL) | Redis connection URL for BullMQ. |
47
+ | [PLATFORM\_QUEUE\_CONFIG\_ENTRIES](Variable.PLATFORM_QUEUE_CONFIG_ENTRIES) | All configuration entries required by `platform-queue`. |
48
+ | [QUEUE\_JOB\_STATUS](Variable.QUEUE_JOB_STATUS) | Possible statuses of a queue job. |
49
+ | [QUEUE\_MAX\_JOBS](Variable.QUEUE_MAX_JOBS) | Maximum number of jobs retained in the in-memory queue before eviction. |