@almadar/std 15.15.0 → 15.15.1
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/behaviors/registry/app/atoms/std-ap-bill.orb +423 -171
- package/behaviors/registry/app/atoms/std-applicant.orb +207 -165
- package/behaviors/registry/app/atoms/std-application.orb +300 -188
- package/behaviors/registry/app/atoms/std-approval-request.orb +370 -215
- package/behaviors/registry/app/atoms/std-campaign-goal.orb +382 -167
- package/behaviors/registry/app/atoms/std-change-order.orb +458 -194
- package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +201 -130
- package/behaviors/registry/app/atoms/std-checkin.orb +215 -151
- package/behaviors/registry/app/atoms/std-checkout-terminal.orb +322 -133
- package/behaviors/registry/app/atoms/std-class-roster.orb +343 -170
- package/behaviors/registry/app/atoms/std-class-session.orb +321 -190
- package/behaviors/registry/app/atoms/std-court-deadline.orb +353 -182
- package/behaviors/registry/app/atoms/std-customer-account.orb +376 -157
- package/behaviors/registry/app/atoms/std-donation-receipt.orb +214 -143
- package/behaviors/registry/app/atoms/std-donor.orb +191 -156
- package/behaviors/registry/app/atoms/std-drip-sequence.orb +409 -170
- package/behaviors/registry/app/atoms/std-driver.orb +440 -202
- package/behaviors/registry/app/atoms/std-dunning.orb +431 -167
- package/behaviors/registry/app/atoms/std-email-broadcast.orb +386 -143
- package/behaviors/registry/app/atoms/std-event.orb +309 -178
- package/behaviors/registry/app/atoms/std-form-builder.orb +353 -220
- package/behaviors/registry/app/atoms/std-health-score.orb +218 -183
- package/behaviors/registry/app/atoms/std-help-article.orb +425 -162
- package/behaviors/registry/app/atoms/std-help-category.orb +409 -166
- package/behaviors/registry/app/atoms/std-interview-slot.orb +311 -138
- package/behaviors/registry/app/atoms/std-invoice.orb +349 -211
- package/behaviors/registry/app/atoms/std-kitchen-display.orb +308 -184
- package/behaviors/registry/app/atoms/std-lease.orb +411 -178
- package/behaviors/registry/app/atoms/std-ledger-entry.orb +266 -195
- package/behaviors/registry/app/atoms/std-maintenance-request.orb +396 -177
- package/behaviors/registry/app/atoms/std-matter.orb +415 -189
- package/behaviors/registry/app/atoms/std-membership.orb +387 -167
- package/behaviors/registry/app/atoms/std-menu.orb +232 -175
- package/behaviors/registry/app/atoms/std-modifier-group.orb +224 -167
- package/behaviors/registry/app/atoms/std-nps-survey.orb +390 -138
- package/behaviors/registry/app/atoms/std-offer-letter.orb +242 -133
- package/behaviors/registry/app/atoms/std-payout-ledger.orb +428 -176
- package/behaviors/registry/app/atoms/std-question-bank.orb +211 -145
- package/behaviors/registry/app/atoms/std-receipt.orb +248 -177
- package/behaviors/registry/app/atoms/std-recurring-charge.orb +421 -149
- package/behaviors/registry/app/atoms/std-renewal-risk.orb +382 -153
- package/behaviors/registry/app/atoms/std-rent-charge.orb +476 -176
- package/behaviors/registry/app/atoms/std-reorder-rule.orb +246 -176
- package/behaviors/registry/app/atoms/std-response-collector.orb +213 -150
- package/behaviors/registry/app/atoms/std-rfi.orb +365 -210
- package/behaviors/registry/app/atoms/std-route-optimize.orb +195 -146
- package/behaviors/registry/app/atoms/std-segment.orb +173 -139
- package/behaviors/registry/app/atoms/std-stock-level.orb +205 -135
- package/behaviors/registry/app/atoms/std-submittal.orb +323 -166
- package/behaviors/registry/app/atoms/std-table-map.orb +187 -63
- package/behaviors/registry/app/atoms/std-technician-dispatch.orb +290 -202
- package/behaviors/registry/app/atoms/std-telematics-event.orb +156 -128
- package/behaviors/registry/app/atoms/std-template-editor.orb +255 -189
- package/behaviors/registry/app/atoms/std-tenant.orb +375 -147
- package/behaviors/registry/app/atoms/std-ticket-tier.orb +463 -150
- package/behaviors/registry/app/atoms/std-time-entry.orb +259 -150
- package/behaviors/registry/app/atoms/std-timesheet.orb +292 -183
- package/behaviors/registry/app/atoms/std-trial.orb +401 -183
- package/behaviors/registry/app/atoms/std-vehicle.orb +447 -205
- package/behaviors/registry/app/atoms/std-vendor-onboarding.orb +289 -245
- package/behaviors/registry/app/atoms/std-waitlist.orb +308 -177
- package/behaviors/registry/app/atoms/std-warehouse.orb +211 -141
- package/behaviors/registry/app/atoms/std-work-order.orb +374 -219
- package/behaviors/registry/app/organisms/std-subscription-billing.orb +282 -195
- package/behaviors/registry/core/atoms/std-approval-gate.orb +703 -0
- package/behaviors/registry/core/atoms/std-audit-capture.orb +150 -64
- package/behaviors/registry/core/atoms/std-data-erasure.orb +546 -0
- package/behaviors/registry/core/atoms/std-lifecycle.orb +343 -0
- package/behaviors/registry/core/atoms/std-notify-on-event.orb +132 -46
- package/behaviors/registry/core/atoms/std-reminder-scheduler.orb +330 -0
- package/behaviors/registry/marketing/atoms/std-marketing-article.orb +96 -0
- package/behaviors/registry/marketing/atoms/std-marketing-case-studies.orb +243 -0
- package/behaviors/registry/marketing/atoms/std-marketing-community.orb +134 -0
- package/behaviors/registry/marketing/atoms/std-marketing-cta.orb +206 -0
- package/behaviors/registry/marketing/atoms/std-marketing-features.orb +193 -0
- package/behaviors/registry/marketing/atoms/std-marketing-footer.orb +192 -0
- package/behaviors/registry/marketing/atoms/std-marketing-hero.orb +262 -0
- package/behaviors/registry/marketing/atoms/std-marketing-nav.orb +190 -0
- package/behaviors/registry/marketing/atoms/std-marketing-pricing.orb +232 -0
- package/behaviors/registry/marketing/atoms/std-marketing-showcase.orb +276 -0
- package/behaviors/registry/marketing/atoms/std-marketing-split.orb +135 -0
- package/behaviors/registry/marketing/atoms/std-marketing-stats.orb +120 -0
- package/behaviors/registry/marketing/atoms/std-marketing-steps.orb +179 -0
- package/behaviors/registry/marketing/atoms/std-marketing-team.orb +192 -0
- package/behaviors/registry/marketing/atoms/std-marketing-testimonials.orb +124 -0
- package/behaviors/registry/marketing/molecules/std-about-page.orb +440 -0
- package/behaviors/registry/marketing/molecules/std-feature-detail-page.orb +371 -0
- package/behaviors/registry/marketing/molecules/std-landing-page.orb +521 -0
- package/behaviors/registry/marketing/molecules/std-pricing-page.orb +406 -0
- package/behaviors/registry/marketing/organisms/std-marketing-site.orb +1654 -0
- package/dist/behaviors/behaviors-registry.json +2913 -156
- package/dist/behaviors/registry/app/atoms/std-ap-bill.orb +423 -171
- package/dist/behaviors/registry/app/atoms/std-applicant.orb +207 -165
- package/dist/behaviors/registry/app/atoms/std-application.orb +300 -188
- package/dist/behaviors/registry/app/atoms/std-approval-request.orb +370 -215
- package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +382 -167
- package/dist/behaviors/registry/app/atoms/std-change-order.orb +458 -194
- package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +201 -130
- package/dist/behaviors/registry/app/atoms/std-checkin.orb +215 -151
- package/dist/behaviors/registry/app/atoms/std-checkout-terminal.orb +322 -133
- package/dist/behaviors/registry/app/atoms/std-class-roster.orb +343 -170
- package/dist/behaviors/registry/app/atoms/std-class-session.orb +321 -190
- package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +353 -182
- package/dist/behaviors/registry/app/atoms/std-customer-account.orb +376 -157
- package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +214 -143
- package/dist/behaviors/registry/app/atoms/std-donor.orb +191 -156
- package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +409 -170
- package/dist/behaviors/registry/app/atoms/std-driver.orb +440 -202
- package/dist/behaviors/registry/app/atoms/std-dunning.orb +431 -167
- package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +386 -143
- package/dist/behaviors/registry/app/atoms/std-event.orb +309 -178
- package/dist/behaviors/registry/app/atoms/std-form-builder.orb +353 -220
- package/dist/behaviors/registry/app/atoms/std-health-score.orb +218 -183
- package/dist/behaviors/registry/app/atoms/std-help-article.orb +425 -162
- package/dist/behaviors/registry/app/atoms/std-help-category.orb +409 -166
- package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +311 -138
- package/dist/behaviors/registry/app/atoms/std-invoice.orb +349 -211
- package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +308 -184
- package/dist/behaviors/registry/app/atoms/std-lease.orb +411 -178
- package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +266 -195
- package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +396 -177
- package/dist/behaviors/registry/app/atoms/std-matter.orb +415 -189
- package/dist/behaviors/registry/app/atoms/std-membership.orb +387 -167
- package/dist/behaviors/registry/app/atoms/std-menu.orb +232 -175
- package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +224 -167
- package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +390 -138
- package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +242 -133
- package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +428 -176
- package/dist/behaviors/registry/app/atoms/std-question-bank.orb +211 -145
- package/dist/behaviors/registry/app/atoms/std-receipt.orb +248 -177
- package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +421 -149
- package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +382 -153
- package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +476 -176
- package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +246 -176
- package/dist/behaviors/registry/app/atoms/std-response-collector.orb +213 -150
- package/dist/behaviors/registry/app/atoms/std-rfi.orb +365 -210
- package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +195 -146
- package/dist/behaviors/registry/app/atoms/std-segment.orb +173 -139
- package/dist/behaviors/registry/app/atoms/std-stock-level.orb +205 -135
- package/dist/behaviors/registry/app/atoms/std-submittal.orb +323 -166
- package/dist/behaviors/registry/app/atoms/std-table-map.orb +187 -63
- package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +290 -202
- package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +156 -128
- package/dist/behaviors/registry/app/atoms/std-template-editor.orb +255 -189
- package/dist/behaviors/registry/app/atoms/std-tenant.orb +375 -147
- package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +463 -150
- package/dist/behaviors/registry/app/atoms/std-time-entry.orb +259 -150
- package/dist/behaviors/registry/app/atoms/std-timesheet.orb +292 -183
- package/dist/behaviors/registry/app/atoms/std-trial.orb +401 -183
- package/dist/behaviors/registry/app/atoms/std-vehicle.orb +447 -205
- package/dist/behaviors/registry/app/atoms/std-vendor-onboarding.orb +289 -245
- package/dist/behaviors/registry/app/atoms/std-waitlist.orb +308 -177
- package/dist/behaviors/registry/app/atoms/std-warehouse.orb +211 -141
- package/dist/behaviors/registry/app/atoms/std-work-order.orb +374 -219
- package/dist/behaviors/registry/app/organisms/std-subscription-billing.orb +282 -195
- package/dist/behaviors/registry/core/atoms/std-approval-gate.orb +703 -0
- package/dist/behaviors/registry/core/atoms/std-audit-capture.orb +150 -64
- package/dist/behaviors/registry/core/atoms/std-data-erasure.orb +546 -0
- package/dist/behaviors/registry/core/atoms/std-lifecycle.orb +343 -0
- package/dist/behaviors/registry/core/atoms/std-notify-on-event.orb +132 -46
- package/dist/behaviors/registry/core/atoms/std-reminder-scheduler.orb +330 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-article.orb +96 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-case-studies.orb +243 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-community.orb +134 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-cta.orb +206 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-features.orb +193 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-footer.orb +192 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-hero.orb +262 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-nav.orb +190 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-pricing.orb +232 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-showcase.orb +276 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-split.orb +135 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-stats.orb +120 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-steps.orb +179 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-team.orb +192 -0
- package/dist/behaviors/registry/marketing/atoms/std-marketing-testimonials.orb +124 -0
- package/dist/behaviors/registry/marketing/molecules/std-about-page.orb +440 -0
- package/dist/behaviors/registry/marketing/molecules/std-feature-detail-page.orb +371 -0
- package/dist/behaviors/registry/marketing/molecules/std-landing-page.orb +521 -0
- package/dist/behaviors/registry/marketing/molecules/std-pricing-page.orb +406 -0
- package/dist/behaviors/registry/marketing/organisms/std-marketing-site.orb +1654 -0
- package/dist/behaviors-registry.json +2913 -156
- package/dist/registry/app/atoms/std-ap-bill.orb +423 -171
- package/dist/registry/app/atoms/std-applicant.orb +207 -165
- package/dist/registry/app/atoms/std-application.orb +300 -188
- package/dist/registry/app/atoms/std-approval-request.orb +370 -215
- package/dist/registry/app/atoms/std-campaign-goal.orb +382 -167
- package/dist/registry/app/atoms/std-change-order.orb +458 -194
- package/dist/registry/app/atoms/std-chart-of-accounts.orb +201 -130
- package/dist/registry/app/atoms/std-checkin.orb +215 -151
- package/dist/registry/app/atoms/std-checkout-terminal.orb +322 -133
- package/dist/registry/app/atoms/std-class-roster.orb +343 -170
- package/dist/registry/app/atoms/std-class-session.orb +321 -190
- package/dist/registry/app/atoms/std-court-deadline.orb +353 -182
- package/dist/registry/app/atoms/std-customer-account.orb +376 -157
- package/dist/registry/app/atoms/std-donation-receipt.orb +214 -143
- package/dist/registry/app/atoms/std-donor.orb +191 -156
- package/dist/registry/app/atoms/std-drip-sequence.orb +409 -170
- package/dist/registry/app/atoms/std-driver.orb +440 -202
- package/dist/registry/app/atoms/std-dunning.orb +431 -167
- package/dist/registry/app/atoms/std-email-broadcast.orb +386 -143
- package/dist/registry/app/atoms/std-event.orb +309 -178
- package/dist/registry/app/atoms/std-form-builder.orb +353 -220
- package/dist/registry/app/atoms/std-health-score.orb +218 -183
- package/dist/registry/app/atoms/std-help-article.orb +425 -162
- package/dist/registry/app/atoms/std-help-category.orb +409 -166
- package/dist/registry/app/atoms/std-interview-slot.orb +311 -138
- package/dist/registry/app/atoms/std-invoice.orb +349 -211
- package/dist/registry/app/atoms/std-kitchen-display.orb +308 -184
- package/dist/registry/app/atoms/std-lease.orb +411 -178
- package/dist/registry/app/atoms/std-ledger-entry.orb +266 -195
- package/dist/registry/app/atoms/std-maintenance-request.orb +396 -177
- package/dist/registry/app/atoms/std-matter.orb +415 -189
- package/dist/registry/app/atoms/std-membership.orb +387 -167
- package/dist/registry/app/atoms/std-menu.orb +232 -175
- package/dist/registry/app/atoms/std-modifier-group.orb +224 -167
- package/dist/registry/app/atoms/std-nps-survey.orb +390 -138
- package/dist/registry/app/atoms/std-offer-letter.orb +242 -133
- package/dist/registry/app/atoms/std-payout-ledger.orb +428 -176
- package/dist/registry/app/atoms/std-question-bank.orb +211 -145
- package/dist/registry/app/atoms/std-receipt.orb +248 -177
- package/dist/registry/app/atoms/std-recurring-charge.orb +421 -149
- package/dist/registry/app/atoms/std-renewal-risk.orb +382 -153
- package/dist/registry/app/atoms/std-rent-charge.orb +476 -176
- package/dist/registry/app/atoms/std-reorder-rule.orb +246 -176
- package/dist/registry/app/atoms/std-response-collector.orb +213 -150
- package/dist/registry/app/atoms/std-rfi.orb +365 -210
- package/dist/registry/app/atoms/std-route-optimize.orb +195 -146
- package/dist/registry/app/atoms/std-segment.orb +173 -139
- package/dist/registry/app/atoms/std-stock-level.orb +205 -135
- package/dist/registry/app/atoms/std-submittal.orb +323 -166
- package/dist/registry/app/atoms/std-table-map.orb +187 -63
- package/dist/registry/app/atoms/std-technician-dispatch.orb +290 -202
- package/dist/registry/app/atoms/std-telematics-event.orb +156 -128
- package/dist/registry/app/atoms/std-template-editor.orb +255 -189
- package/dist/registry/app/atoms/std-tenant.orb +375 -147
- package/dist/registry/app/atoms/std-ticket-tier.orb +463 -150
- package/dist/registry/app/atoms/std-time-entry.orb +259 -150
- package/dist/registry/app/atoms/std-timesheet.orb +292 -183
- package/dist/registry/app/atoms/std-trial.orb +401 -183
- package/dist/registry/app/atoms/std-vehicle.orb +447 -205
- package/dist/registry/app/atoms/std-vendor-onboarding.orb +289 -245
- package/dist/registry/app/atoms/std-waitlist.orb +308 -177
- package/dist/registry/app/atoms/std-warehouse.orb +211 -141
- package/dist/registry/app/atoms/std-work-order.orb +374 -219
- package/dist/registry/app/organisms/std-subscription-billing.orb +282 -195
- package/dist/registry/core/atoms/std-approval-gate.orb +703 -0
- package/dist/registry/core/atoms/std-audit-capture.orb +150 -64
- package/dist/registry/core/atoms/std-data-erasure.orb +546 -0
- package/dist/registry/core/atoms/std-lifecycle.orb +343 -0
- package/dist/registry/core/atoms/std-notify-on-event.orb +132 -46
- package/dist/registry/core/atoms/std-reminder-scheduler.orb +330 -0
- package/dist/registry/marketing/atoms/std-marketing-article.orb +96 -0
- package/dist/registry/marketing/atoms/std-marketing-case-studies.orb +243 -0
- package/dist/registry/marketing/atoms/std-marketing-community.orb +134 -0
- package/dist/registry/marketing/atoms/std-marketing-cta.orb +206 -0
- package/dist/registry/marketing/atoms/std-marketing-features.orb +193 -0
- package/dist/registry/marketing/atoms/std-marketing-footer.orb +192 -0
- package/dist/registry/marketing/atoms/std-marketing-hero.orb +262 -0
- package/dist/registry/marketing/atoms/std-marketing-nav.orb +190 -0
- package/dist/registry/marketing/atoms/std-marketing-pricing.orb +232 -0
- package/dist/registry/marketing/atoms/std-marketing-showcase.orb +276 -0
- package/dist/registry/marketing/atoms/std-marketing-split.orb +135 -0
- package/dist/registry/marketing/atoms/std-marketing-stats.orb +120 -0
- package/dist/registry/marketing/atoms/std-marketing-steps.orb +179 -0
- package/dist/registry/marketing/atoms/std-marketing-team.orb +192 -0
- package/dist/registry/marketing/atoms/std-marketing-testimonials.orb +124 -0
- package/dist/registry/marketing/molecules/std-about-page.orb +440 -0
- package/dist/registry/marketing/molecules/std-feature-detail-page.orb +371 -0
- package/dist/registry/marketing/molecules/std-landing-page.orb +521 -0
- package/dist/registry/marketing/molecules/std-pricing-page.orb +406 -0
- package/dist/registry/marketing/organisms/std-marketing-site.orb +1654 -0
- package/package.json +1 -1
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "std-lifecycle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "std-lifecycle — declarative lifecycle-rule definitions for a target entity. Periodic tick logs scan attempts to LifecycleRunLog. v1.0 ships the config knobs + scan topology so the questionnaire surfaces rules + targetEntity + dryRun cleanly; auto-emit of SET_STATUS per matching record lands in v1.1 when loop-with-emit primitive exists (gap — docs/Almadar_Std_Factories.md).",
|
|
5
|
+
"orbitals": [
|
|
6
|
+
{
|
|
7
|
+
"name": "LifecycleOrbital",
|
|
8
|
+
"entity": {
|
|
9
|
+
"name": "LifecycleRunLog",
|
|
10
|
+
"collection": "lifecycle_runs",
|
|
11
|
+
"persistence": "persistent",
|
|
12
|
+
"fields": [
|
|
13
|
+
{
|
|
14
|
+
"name": "id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"required": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "targetEntity",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"default": ""
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "recordCount",
|
|
25
|
+
"type": "number",
|
|
26
|
+
"default": 0.0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "ranAt",
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 0.0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "errors",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": ""
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"traits": [
|
|
41
|
+
{
|
|
42
|
+
"name": "LifecycleScheduler",
|
|
43
|
+
"category": "lifecycle",
|
|
44
|
+
"linkedEntity": "LifecycleRunLog",
|
|
45
|
+
"emits": [
|
|
46
|
+
{
|
|
47
|
+
"event": "ScanRecordsLoaded",
|
|
48
|
+
"payloadSchema": [
|
|
49
|
+
{
|
|
50
|
+
"name": "data",
|
|
51
|
+
"type": "[object]"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"event": "ScanFailed",
|
|
57
|
+
"payloadSchema": [
|
|
58
|
+
{
|
|
59
|
+
"name": "error",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "code",
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"event": "LifecycleRunLogged",
|
|
70
|
+
"payloadSchema": [
|
|
71
|
+
{
|
|
72
|
+
"name": "row.id",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"required": true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "row.targetEntity",
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "row.recordCount",
|
|
82
|
+
"type": "number"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "row.ranAt",
|
|
86
|
+
"type": "number"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "row.errors",
|
|
90
|
+
"type": "string"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"event": "LifecycleRunFailed",
|
|
96
|
+
"payloadSchema": [
|
|
97
|
+
{
|
|
98
|
+
"name": "error",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "code",
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"stateMachine": {
|
|
109
|
+
"states": [
|
|
110
|
+
{
|
|
111
|
+
"name": "idle",
|
|
112
|
+
"isInitial": true
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"events": [
|
|
116
|
+
{
|
|
117
|
+
"key": "ScanRecordsLoaded",
|
|
118
|
+
"name": "Scan records loaded",
|
|
119
|
+
"payloadSchema": [
|
|
120
|
+
{
|
|
121
|
+
"name": "data",
|
|
122
|
+
"type": "[object]"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"key": "ScanFailed",
|
|
128
|
+
"name": "Scan failed",
|
|
129
|
+
"payloadSchema": [
|
|
130
|
+
{
|
|
131
|
+
"name": "error",
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "code",
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"key": "LifecycleRunLogged",
|
|
142
|
+
"name": "LifecycleRunLog ged",
|
|
143
|
+
"payloadSchema": [
|
|
144
|
+
{
|
|
145
|
+
"name": "row",
|
|
146
|
+
"type": "LifecycleRunLog"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"key": "LifecycleRunFailed",
|
|
152
|
+
"name": "Lifecycle run failed",
|
|
153
|
+
"payloadSchema": [
|
|
154
|
+
{
|
|
155
|
+
"name": "error",
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "code",
|
|
160
|
+
"type": "string"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"transitions": [
|
|
166
|
+
{
|
|
167
|
+
"from": "idle",
|
|
168
|
+
"to": "idle",
|
|
169
|
+
"event": "ScanRecordsLoaded",
|
|
170
|
+
"effects": [
|
|
171
|
+
[
|
|
172
|
+
"set",
|
|
173
|
+
"@entity.targetEntity",
|
|
174
|
+
"@config.targetEntity"
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
"set",
|
|
178
|
+
"@entity.recordCount",
|
|
179
|
+
[
|
|
180
|
+
"array/len",
|
|
181
|
+
"@payload.data"
|
|
182
|
+
]
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
"set",
|
|
186
|
+
"@entity.ranAt",
|
|
187
|
+
0.0
|
|
188
|
+
],
|
|
189
|
+
[
|
|
190
|
+
"persist",
|
|
191
|
+
"create",
|
|
192
|
+
"LifecycleRunLog",
|
|
193
|
+
"@entity",
|
|
194
|
+
{
|
|
195
|
+
"emit": {
|
|
196
|
+
"failure": "LifecycleRunFailed",
|
|
197
|
+
"success": "LifecycleRunLogged"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"from": "idle",
|
|
205
|
+
"to": "idle",
|
|
206
|
+
"event": "ScanFailed",
|
|
207
|
+
"effects": [
|
|
208
|
+
[
|
|
209
|
+
"set",
|
|
210
|
+
"@entity.targetEntity",
|
|
211
|
+
"@config.targetEntity"
|
|
212
|
+
],
|
|
213
|
+
[
|
|
214
|
+
"set",
|
|
215
|
+
"@entity.recordCount",
|
|
216
|
+
0.0
|
|
217
|
+
],
|
|
218
|
+
[
|
|
219
|
+
"set",
|
|
220
|
+
"@entity.errors",
|
|
221
|
+
"@payload.error"
|
|
222
|
+
],
|
|
223
|
+
[
|
|
224
|
+
"persist",
|
|
225
|
+
"create",
|
|
226
|
+
"LifecycleRunLog",
|
|
227
|
+
"@entity",
|
|
228
|
+
{
|
|
229
|
+
"emit": {
|
|
230
|
+
"failure": "LifecycleRunFailed",
|
|
231
|
+
"success": "LifecycleRunLogged"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"from": "idle",
|
|
239
|
+
"to": "idle",
|
|
240
|
+
"event": "LifecycleRunLogged"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"from": "idle",
|
|
244
|
+
"to": "idle",
|
|
245
|
+
"event": "LifecycleRunFailed"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"ticks": [
|
|
250
|
+
{
|
|
251
|
+
"name": "scanCycle",
|
|
252
|
+
"interval": 3600000.0,
|
|
253
|
+
"effects": [
|
|
254
|
+
[
|
|
255
|
+
"fetch",
|
|
256
|
+
"LifecycleRunLog",
|
|
257
|
+
{
|
|
258
|
+
"emit": {
|
|
259
|
+
"failure": "ScanFailed",
|
|
260
|
+
"success": "ScanRecordsLoaded"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"config": {
|
|
268
|
+
"rules": {
|
|
269
|
+
"type": "[LifecycleRule]",
|
|
270
|
+
"default": [],
|
|
271
|
+
"label": "Lifecycle rules",
|
|
272
|
+
"description": "When a record's status is fromStatus and its dateField is older than condition.value days (kind='ageDays'), transition to toStatus. v1.0 declarative only — wiring lands in v1.1 (gap).",
|
|
273
|
+
"tier": "essential",
|
|
274
|
+
"items": {
|
|
275
|
+
"type": "object",
|
|
276
|
+
"properties": {
|
|
277
|
+
"fromStatus": {
|
|
278
|
+
"name": "fromStatus",
|
|
279
|
+
"type": "string",
|
|
280
|
+
"required": false
|
|
281
|
+
},
|
|
282
|
+
"toStatus": {
|
|
283
|
+
"name": "toStatus",
|
|
284
|
+
"type": "string",
|
|
285
|
+
"required": false
|
|
286
|
+
},
|
|
287
|
+
"condition": {
|
|
288
|
+
"name": "condition",
|
|
289
|
+
"type": "object",
|
|
290
|
+
"required": false,
|
|
291
|
+
"properties": {
|
|
292
|
+
"kind": {
|
|
293
|
+
"name": "kind",
|
|
294
|
+
"type": "string",
|
|
295
|
+
"required": false
|
|
296
|
+
},
|
|
297
|
+
"value": {
|
|
298
|
+
"name": "value",
|
|
299
|
+
"type": "number",
|
|
300
|
+
"required": false
|
|
301
|
+
},
|
|
302
|
+
"dateField": {
|
|
303
|
+
"name": "dateField",
|
|
304
|
+
"type": "string",
|
|
305
|
+
"required": false
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"dryRun": {
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"default": false,
|
|
315
|
+
"label": "Dry-run mode",
|
|
316
|
+
"description": "When true, log scan results without emitting transitions.",
|
|
317
|
+
"tier": "advanced"
|
|
318
|
+
},
|
|
319
|
+
"targetEntity": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"default": "",
|
|
322
|
+
"label": "Target entity",
|
|
323
|
+
"description": "Entity name to scan (e.g. 'InvoiceRecord'). v1.1 will drive SET_STATUS transitions on this entity.",
|
|
324
|
+
"tier": "essential"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"scope": "instance"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"pages": [
|
|
331
|
+
{
|
|
332
|
+
"name": "LifecycleSchedulerPage",
|
|
333
|
+
"path": "/lifecycle/scheduler",
|
|
334
|
+
"traits": [
|
|
335
|
+
{
|
|
336
|
+
"ref": "LifecycleScheduler"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-notify-on-event",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "std-notify-on-event — event-driven notification dispatcher. Listens for the generic `EventOccurred` sentinel (rename via traitOverrides.events to the real event, e.g. ContactSaved). Emits in-app `notify` when `notifyChannel` is `\"in-app\"`, or persists a `NotificationRecord` row for out-of-band delivery when channel is `\"email\"` or `\"sms\"`.
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "std-notify-on-event — event-driven notification dispatcher. Listens for the generic `EventOccurred` sentinel (rename via traitOverrides.events to the real event, e.g. ContactSaved). Resolves recipient from `recipients` (first entry; fan-out is a future extension) or falls back to `@user.id`. Skips dispatch when the recipient is in `suppressionList`. Emits in-app `notify` when `notifyChannel` is `\"in-app\"`, or persists a `NotificationRecord` row for out-of-band delivery when channel is `\"email\"` or `\"sms\"`.",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "NotifyOnEventOrbital",
|
|
@@ -126,7 +126,22 @@
|
|
|
126
126
|
[
|
|
127
127
|
"set",
|
|
128
128
|
"@entity.recipient",
|
|
129
|
-
|
|
129
|
+
[
|
|
130
|
+
"if",
|
|
131
|
+
[
|
|
132
|
+
"=",
|
|
133
|
+
[
|
|
134
|
+
"array/len",
|
|
135
|
+
"@config.recipients"
|
|
136
|
+
],
|
|
137
|
+
0.0
|
|
138
|
+
],
|
|
139
|
+
"@user.id",
|
|
140
|
+
[
|
|
141
|
+
"array/first",
|
|
142
|
+
"@config.recipients"
|
|
143
|
+
]
|
|
144
|
+
]
|
|
130
145
|
],
|
|
131
146
|
[
|
|
132
147
|
"set",
|
|
@@ -147,9 +162,20 @@
|
|
|
147
162
|
"set",
|
|
148
163
|
"@entity.dispatched",
|
|
149
164
|
[
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
165
|
+
"and",
|
|
166
|
+
[
|
|
167
|
+
"=",
|
|
168
|
+
"@config.notifyChannel",
|
|
169
|
+
"in-app"
|
|
170
|
+
],
|
|
171
|
+
[
|
|
172
|
+
"not",
|
|
173
|
+
[
|
|
174
|
+
"array/includes",
|
|
175
|
+
"@config.suppressionList",
|
|
176
|
+
"@entity.recipient"
|
|
177
|
+
]
|
|
178
|
+
]
|
|
153
179
|
]
|
|
154
180
|
],
|
|
155
181
|
[
|
|
@@ -158,39 +184,50 @@
|
|
|
158
184
|
0.0
|
|
159
185
|
],
|
|
160
186
|
[
|
|
161
|
-
"
|
|
162
|
-
[
|
|
163
|
-
"=",
|
|
164
|
-
"@config.notifyChannel",
|
|
165
|
-
"in-app"
|
|
166
|
-
],
|
|
187
|
+
"when",
|
|
167
188
|
[
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
189
|
+
"not",
|
|
190
|
+
[
|
|
191
|
+
"array/includes",
|
|
192
|
+
"@config.suppressionList",
|
|
193
|
+
"@entity.recipient"
|
|
194
|
+
]
|
|
171
195
|
],
|
|
172
196
|
[
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
|
|
197
|
+
"if",
|
|
198
|
+
[
|
|
199
|
+
"=",
|
|
200
|
+
"@config.notifyChannel",
|
|
201
|
+
"in-app"
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
"notify",
|
|
205
|
+
"@config.severity",
|
|
206
|
+
"@config.template"
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
"persist",
|
|
210
|
+
"create",
|
|
211
|
+
"NotificationRecord",
|
|
212
|
+
{
|
|
213
|
+
"channel": "@config.notifyChannel",
|
|
214
|
+
"recipient": "@entity.recipient",
|
|
215
|
+
"severity": "@config.severity",
|
|
216
|
+
"dispatched": false,
|
|
217
|
+
"message": "@config.template",
|
|
218
|
+
"recordedAt": 0.0
|
|
219
|
+
}
|
|
220
|
+
]
|
|
184
221
|
]
|
|
185
222
|
],
|
|
186
223
|
[
|
|
187
224
|
"emit",
|
|
188
225
|
"NotificationDispatched",
|
|
189
226
|
{
|
|
190
|
-
"
|
|
227
|
+
"recipient": "@entity.recipient",
|
|
228
|
+
"severity": "@config.severity",
|
|
191
229
|
"message": "@config.template",
|
|
192
|
-
"
|
|
193
|
-
"severity": "@config.severity"
|
|
230
|
+
"channel": "@config.notifyChannel"
|
|
194
231
|
}
|
|
195
232
|
]
|
|
196
233
|
]
|
|
@@ -198,19 +235,44 @@
|
|
|
198
235
|
]
|
|
199
236
|
},
|
|
200
237
|
"config": {
|
|
201
|
-
"
|
|
202
|
-
"type": "
|
|
203
|
-
"default":
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
238
|
+
"quietHours": {
|
|
239
|
+
"type": "QuietHoursSpec",
|
|
240
|
+
"default": {
|
|
241
|
+
"start": "",
|
|
242
|
+
"end": ""
|
|
243
|
+
},
|
|
244
|
+
"label": "Quiet hours",
|
|
245
|
+
"description": "Local-time window during which dispatch is suppressed. Both start and end required to activate. WIRING DEFERRED: needs @now-aware time comparison primitive (gap — docs/Almadar_Std_Factories.md).",
|
|
246
|
+
"tier": "customization",
|
|
247
|
+
"properties": {
|
|
248
|
+
"end": {
|
|
249
|
+
"name": "end",
|
|
250
|
+
"type": "string",
|
|
251
|
+
"required": false
|
|
252
|
+
},
|
|
253
|
+
"start": {
|
|
254
|
+
"name": "start",
|
|
255
|
+
"type": "string",
|
|
256
|
+
"required": false
|
|
257
|
+
}
|
|
258
|
+
}
|
|
207
259
|
},
|
|
208
|
-
"
|
|
260
|
+
"template": {
|
|
209
261
|
"type": "string",
|
|
210
|
-
"default": "
|
|
211
|
-
"label": "
|
|
212
|
-
"description": "
|
|
213
|
-
"tier": "
|
|
262
|
+
"default": "",
|
|
263
|
+
"label": "Message template",
|
|
264
|
+
"description": "Text shown to the recipient; supports payload interpolation",
|
|
265
|
+
"tier": "essential"
|
|
266
|
+
},
|
|
267
|
+
"recipients": {
|
|
268
|
+
"type": "[string]",
|
|
269
|
+
"default": [],
|
|
270
|
+
"label": "Recipients",
|
|
271
|
+
"description": "Recipient ids/addresses. v1.1 uses the first entry; multi-recipient fan-out lands in v1.2 (gap). When empty, falls back to the authenticated user.",
|
|
272
|
+
"tier": "customization",
|
|
273
|
+
"items": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
214
276
|
},
|
|
215
277
|
"listensFor": {
|
|
216
278
|
"type": "[string]",
|
|
@@ -222,12 +284,36 @@
|
|
|
222
284
|
"type": "string"
|
|
223
285
|
}
|
|
224
286
|
},
|
|
225
|
-
"
|
|
287
|
+
"suppressionList": {
|
|
288
|
+
"type": "[string]",
|
|
289
|
+
"default": [],
|
|
290
|
+
"label": "Suppression list",
|
|
291
|
+
"description": "Recipient ids/addresses to skip (e.g. unsubscribed users). Suppression check runs before dispatch.",
|
|
292
|
+
"tier": "customization",
|
|
293
|
+
"items": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"notifyChannel": {
|
|
226
298
|
"type": "string",
|
|
227
|
-
"default": "",
|
|
228
|
-
"label": "
|
|
229
|
-
"description": "
|
|
230
|
-
"tier": "
|
|
299
|
+
"default": "in-app",
|
|
300
|
+
"label": "Channel",
|
|
301
|
+
"description": "Delivery channel: in-app, email, or sms",
|
|
302
|
+
"tier": "customization"
|
|
303
|
+
},
|
|
304
|
+
"severity": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"default": "info",
|
|
307
|
+
"label": "Severity",
|
|
308
|
+
"description": "info, success, warning, or error — controls styling",
|
|
309
|
+
"tier": "customization"
|
|
310
|
+
},
|
|
311
|
+
"frequencyCapPerWeek": {
|
|
312
|
+
"type": "number",
|
|
313
|
+
"default": 0.0,
|
|
314
|
+
"label": "Frequency cap (per week)",
|
|
315
|
+
"description": "Max sends per (channel, recipient) per rolling 7-day window. 0 = uncapped. WIRING DEFERRED: needs stateful history query (gap — docs/Almadar_Std_Factories.md).",
|
|
316
|
+
"tier": "customization"
|
|
231
317
|
}
|
|
232
318
|
},
|
|
233
319
|
"scope": "instance"
|
|
@@ -246,4 +332,4 @@
|
|
|
246
332
|
]
|
|
247
333
|
}
|
|
248
334
|
]
|
|
249
|
-
}
|
|
335
|
+
}
|