@wildo-ai/saas-specifications 1.1.1 → 1.1.2
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/assurance/external-framework-mapping.json +980 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +168 -2
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +98 -9
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.registry.js +60 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.js +15 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +2 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +2 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
- package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/market/market.family-aspects.js +227 -0
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +188 -33
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +158 -57
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +93 -62
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +114 -59
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +11 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +11 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +976 -2
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2026 -61
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +1 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +71 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +545 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +141 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js +377 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -6
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +29 -6
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +2 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +2 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +19 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +2 -0
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +3 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +3 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +3 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +3 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +3 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +6 -4
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -0
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +2 -0
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +3 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +3 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +2 -0
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +3 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +2 -0
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -0
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +2 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +5 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +63 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
- package/dist/esm/engine/engine-resource-sub-domain.js +87 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +30 -1
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -0
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +2 -0
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +2 -0
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +2 -0
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +12 -0
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +2 -0
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +3 -0
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +3 -0
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +3 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +1 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +1 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -0
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +2 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +2 -0
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +2 -0
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +3 -0
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +2 -0
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +3 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +2 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +385 -9
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/dist/esm/.builder.pid +0 -9
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/lifecycle-state.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iDAAiD,IAAI,gBAAgB,EACrE,gDAAgD,IAAI,eAAe,EACnE,4CAA4C,IAAI,oBAAoB,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AA8F,EAAE,EAAE,EAAE;YAC5U,OAAO,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,+DAA+D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,EAAE,EAAE;SAC/Q;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,SAAS,EAAE,gEAAgE,EAAE;KACvM;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationLifecycleStateAdminResourceUIBehavior as orgLcAdminSource,\n organizationLifecycleStateMainResourceUIBehavior as orgLcMainSource,\n userLifecycleStatePlatformResourceUIBehavior as userLcPlatformSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n LifecycleStage,\n OrganizationLifecycleStateSchema,\n ResourcePrimaryScope,\n UserLifecycleStateSchema,\n organizationLifecycleStateResourceConfiguration_InitializationFactory as organizationLifecycleStateFactory,\n userLifecycleStateResourceConfiguration_InitializationFactory as userLifecycleStateFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\ntype UCfg = ReturnType<typeof userLifecycleStateFactory>;\ntype UCore = UCfg['coreOperations'][number];\ntype UMain = UCfg['mainSchema'];\nconst userLcUI = userLcPlatformSource as ResourceUIBehaviorConfig<Record<string, never>, UCore, UMain>;\n\ntype OCfg = ReturnType<typeof organizationLifecycleStateFactory>;\ntype OCore = OCfg['coreOperations'][number];\ntype OMain = OCfg['mainSchema'];\nconst orgLcMainUI = orgLcMainSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\nconst orgLcAdminUI = orgLcAdminSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\n\nconst USER_LIFECYCLE_STATE_EXAMPLE = {\n currentStage: LifecycleStage.ENGAGED,\n stageEnteredAt: '2026-08-12T09:15:00.000Z',\n stageHistory: [\n {\n stage: LifecycleStage.ENGAGED,\n enteredAt: '2026-08-12T09:15:00.000Z',\n trigger: 'milestone:completed-first-workflow',\n },\n {\n stage: LifecycleStage.ACTIVATED,\n enteredAt: '2026-08-04T08:30:00.000Z',\n exitedAt: '2026-08-12T09:15:00.000Z',\n trigger: 'milestone:completed-first-action',\n },\n ],\n stagesVisited: [LifecycleStage.SIGNED_UP, LifecycleStage.ACTIVATED, LifecycleStage.ENGAGED],\n lastActiveAt: '2026-08-20T14:42:00.000Z',\n activationCriteriaMet: {\n completed_profile: true,\n completed_first_action: true,\n },\n engagement: {\n operationsSinceActivation: 37,\n activeDates: ['2026-08-12', '2026-08-18', '2026-08-20'],\n },\n userId: 'user_01JEXAMPLE',\n} as const;\n\nconst ORGANIZATION_LIFECYCLE_STATE_EXAMPLE = {\n currentStage: LifecycleStage.REACTIVATED,\n stageEnteredAt: '2026-08-19T10:05:00.000Z',\n stageHistory: [\n {\n stage: LifecycleStage.REACTIVATED,\n enteredAt: '2026-08-19T10:05:00.000Z',\n trigger: 'operation:todos:update',\n },\n {\n stage: LifecycleStage.DORMANT,\n enteredAt: '2026-07-28T00:00:00.000Z',\n exitedAt: '2026-08-19T10:05:00.000Z',\n trigger: 'cron:daily-lifecycle-evaluation',\n },\n ],\n stagesVisited: [\n LifecycleStage.SIGNED_UP,\n LifecycleStage.ACTIVATED,\n LifecycleStage.ENGAGED,\n LifecycleStage.DORMANT,\n LifecycleStage.REACTIVATED,\n ],\n lastActiveAt: '2026-08-20T16:20:00.000Z',\n activationCriteriaMet: {\n invited_first_member: true,\n completed_first_shared_action: true,\n },\n engagement: {\n operationsSinceActivation: 214,\n activeDates: ['2026-08-19', '2026-08-20'],\n },\n organizationId: 'org_01JEXAMPLE',\n} as const;\n\nconst lifecycleSearchExample = (row: typeof USER_LIFECYCLE_STATE_EXAMPLE | typeof ORGANIZATION_LIFECYCLE_STATE_EXAMPLE) => ({\n data: [row],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n});\n\nconst userLifecycleBase = resourceSpecification<Record<string, never>, UCore, UMain>(\n userLifecycleStateFactory,\n UserLifecycleStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-user customer lifecycle state machine: which lifecycle stage a user is in and history of stage transitions and engagement evidence.',\n businessRole: 'Drives “activation”, “dormant”, and churn messaging independent of billing state — a product-semantic lifecycle layer.',\n lifecycleRole: 'The state begins automatically at sign-up, evolves from application-defined activity, and remains readable as the user moves through activation, engagement, dormancy and reactivation.',\n audience: LabelAudience.ADMIN,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserLifecycleStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userLifecycleStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'USER_LIFECYCLE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [{ packageName: '@wildo-ai/presets-components', exportName: 'userLifecycleStatePlatformResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR }],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n // USER and ORGANIZATION extend one shared Zod field instance. Clone it\n // before attaching resource-specific prose so one scope cannot overwrite\n // the other scope's OpenAPI property description at module load time.\n currentStage: schemaShape.currentStage.clone().enumSpec({\n meaning: 'The canonical lifecycle stage for the user in product cohort analytics.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [LifecycleStage.SIGNED_UP]: { meaning: 'Account created but not yet product-active.' },\n [LifecycleStage.ACTIVATED]: { meaning: 'Meets the product’s activation definition when configured.' },\n [LifecycleStage.ENGAGED]: { meaning: 'Repeat or deep usage in line with the engagement model.' },\n [LifecycleStage.DORMANT]: { meaning: 'Low or no recent activity; candidate for reactivation campaigns.' },\n [LifecycleStage.REACTIVATED]: { meaning: 'Returned to meaningful activity after dormancy or churn risk.' },\n [LifecycleStage.CHURNED]: { meaning: 'Left or lapsed in a terminal sense for the product definition.' },\n [LifecycleStage.OFFBOARDED]: { meaning: 'Explicitly removed or deprovisioned in lifecycle terms.' },\n },\n }),\n stageHistory: schemaShape.stageHistory.arraySpec({\n meaning: 'Chronological log of stage transitions for this user (most recent first, capped at the last 20 entries).',\n elementMeaning: 'One `LifecycleStageTransition` record: the stage entered, when it was entered/exited, and the trigger (milestone ref, cron, operation).',\n }),\n stagesVisited: schemaShape.stagesVisited.arraySpec({\n meaning: 'Deduplicated set of every lifecycle stage the user has ever reached — survives the `stageHistory` cap and backs `hasReachedStage()` visitation checks.',\n elementMeaning: 'One `LifecycleStage` value the user has visited at least once.',\n elementType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The owning user this lifecycle state row tracks; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the user-self access strategy so a user can never read another user’s lifecycle state.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the signed-in user’s current product-lifecycle state.',\n outcome: 'The caller receives the current stage, transition history, activity time and activation/engagement evidence for their own user identity. Reading a dormant state schedules reactivation asynchronously, so this response can still report `dormant` while a later read reports `reactivated`.',\n whenToUse: 'Use this endpoint to synchronize lifecycle-aware client experiences or customer-success integrations. It is not a billing-subscription status endpoint.',\n responseStatuses: [\n // Self-state read lazily materializes: no row yet yields a default stage rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s lifecycle state (current stage, timestamps, history) is returned; an un-materialized user yields a default stage rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user lifecycle state cannot be resolved.' },\n ],\n examples: [{\n title: 'Read the signed-in user lifecycle state',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId },\n response: USER_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the user lifecycle row using the context representation.',\n outcome: 'The caller receives the lifecycle row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the lifecycle row itself.',\n examples: [{\n title: 'Read the signed-in user lifecycle context',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId },\n response: USER_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact user lifecycle representation.',\n outcome: 'The caller receives only the owning user id and current lifecycle stage.',\n examples: [{\n title: 'Read the signed-in user lifecycle summary',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId },\n response: {\n currentStage: USER_LIFECYCLE_STATE_EXAMPLE.currentStage,\n userId: USER_LIFECYCLE_STATE_EXAMPLE.userId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first lifecycle row (INTERNAL_CALL, isDefault): eager-seeded via the USERS → USER_LIFECYCLE_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by lifecycle jobs via the repository tier. Not a member-facing route.',\n outcome: 'Initial stage row for subsequent transitions.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state row was materialized for the user.' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by lifecycle jobs via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Repository-only transitions when lifecycle jobs execute.',\n outcome: 'New stage, history append, and engagement metrics in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The lifecycle stage transition was persisted with a history append.' },\n ],\n // REPOSITORY_ONLY variant — transitions are engine-driven, not a public HTTP endpoint. Convergent stage-set, so re-applying the same target stage is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Return the lifecycle-state collection inside the addressed user scope.',\n outcome: 'The caller receives a paginated collection containing the user’s lifecycle row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of user lifecycle rows for analytics/triage when a route wires search.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the lifecycle search context.' },\n ],\n examples: [{\n title: 'Return the user lifecycle state as a collection',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId, page: 1, limit: 20 },\n response: lifecycleSearchExample(USER_LIFECYCLE_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the user lifecycle state row when its owning user is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The user lifecycle state row was deleted as part of the owning user’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'This is not subscription billing state — it models product lifecycle semantics and may disagree with `BillingSubscription` rows by design in edge cases; document both when explaining churn.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n\nconst organizationLifecycleBase = resourceSpecification<Record<string, never>, OCore, OMain>(\n organizationLifecycleStateFactory,\n OrganizationLifecycleStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-organization lifecycle state: the tenant’s stage in the product journey, plus org engagement evidence and visit history to `LifecycleStage` values.',\n businessRole: 'Org-wide cohorts for CSM, marketing automation, and success dashboards — not the same as `ORGANIZATION` subscription status in billing.',\n lifecycleRole: 'The state begins automatically when the organization is created, evolves from organization activity, and remains readable as the tenant moves through activation, engagement, dormancy and reactivation.',\n audience: LabelAudience.ADMIN,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationLifecycleStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationLifecycleStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'ORGANIZATION_LIFECYCLE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationLifecycleStateMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationLifecycleStateAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n currentStage: schemaShape.currentStage.clone().enumSpec({\n meaning: 'Current lifecycle stage for the organization in product cohort and customer-success workflows.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [LifecycleStage.SIGNED_UP]: { meaning: 'Tenant created but not product-activated in lifecycle terms.' },\n [LifecycleStage.ACTIVATED]: { meaning: 'Met activation heuristics for the org in product rules.' },\n [LifecycleStage.ENGAGED]: { meaning: 'Healthy ongoing usage in line with the model.' },\n [LifecycleStage.DORMANT]: { meaning: 'Low recent usage — candidate for reactivation or downgrade discussions.' },\n [LifecycleStage.REACTIVATED]: { meaning: 'Returned to engagement after a dormant period.' },\n [LifecycleStage.CHURNED]: { meaning: 'Churned or lapsed in lifecycle terms even if a billing row still exists in edge cases.' },\n [LifecycleStage.OFFBOARDED]: { meaning: 'Explicitly closed or deprovisioned in lifecycle terms.' },\n },\n }),\n stageHistory: schemaShape.stageHistory.arraySpec({\n meaning: 'Chronological log of stage transitions for this organization (most recent first, capped at the last 20 entries).',\n elementMeaning: 'One `LifecycleStageTransition` record: the stage entered, when it was entered/exited, and the trigger (milestone ref, cron, operation).',\n }),\n stagesVisited: schemaShape.stagesVisited.arraySpec({\n meaning: 'Deduplicated set of every lifecycle stage the organization has ever reached — survives the `stageHistory` cap and backs `hasReachedStage()` visitation checks.',\n elementMeaning: 'One `LifecycleStage` value the organization has visited at least once.',\n elementType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The owning organization this lifecycle state row tracks; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the org access strategy so a tenant can never read another tenant’s lifecycle state.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s current product-lifecycle state.',\n outcome: 'An organization member receives the current stage, transition history, activity time and activation/engagement evidence for that organization. Reading a dormant state schedules reactivation asynchronously, so this response can still report `dormant` while a later read reports `reactivated`.',\n whenToUse: 'Use this endpoint to synchronize organization-level lifecycle experiences or customer-success integrations. It is independent from billing subscription state.',\n responseStatuses: [\n // Scoped-state read lazily materializes: an org with no row yet gets a default stage rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s lifecycle state (stage, engagement, history) is returned; an un-materialized org yields a default stage rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant lifecycle state.' },\n ],\n examples: [{\n title: 'Read the organization lifecycle state',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization lifecycle row using the context representation.',\n outcome: 'The caller receives the lifecycle row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the lifecycle row itself.',\n examples: [{\n title: 'Read the organization lifecycle context',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization lifecycle representation.',\n outcome: 'The caller receives only the owning organization id and current lifecycle stage.',\n examples: [{\n title: 'Read the organization lifecycle summary',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId },\n response: {\n currentStage: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.currentStage,\n organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first org lifecycle row (INTERNAL_CALL, isDefault): eager-seeded via the ORGANIZATIONS → ORGANIZATION_LIFECYCLE_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by lifecycle services via the repository tier. Not a member-facing route.',\n outcome: 'Initial stage in `SIGNED_UP` or configured default in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state row was materialized for the org (default `SIGNED_UP` or configured initial stage).' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by lifecycle services via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Repository-only and admin `ORG_ADMIN` on API variant in factory (verify roles in the resource file for the exact split).',\n outcome: 'New stage, updated engagement metrics, and history appends in services.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The org lifecycle stage transition was persisted with a history append.' },\n ],\n // REPOSITORY_ONLY variant — transitions are engine-driven, not a public HTTP endpoint. Convergent stage-set, so re-applying the same target stage is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Return the lifecycle-state collection inside the addressed organization scope.',\n outcome: 'The caller receives a paginated collection containing the organization’s lifecycle row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org lifecycle rows for admin discovery when a route wires search.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the lifecycle search context.' },\n ],\n examples: [{\n title: 'Return the organization lifecycle state as a collection',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId, page: 1, limit: 20 },\n response: lifecycleSearchExample(ORGANIZATION_LIFECYCLE_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization lifecycle state row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization lifecycle state row was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Org lifecycle UPDATE in factory is restricted to `ORG_ADMIN` — do not conflate with member `APP_USER` updates on the user document.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const userLifecycleStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userLcUI),\n userLifecycleBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` stringifies `currentStage` for compact row display.' },\n layout: {\n purpose: 'Sections `overview` (current stage, timestamps), `engagement` (visits, criteria, score), `history` (stage history array).',\n displayPurpose: 'Platform bundle targets internal dashboards and the companion; end users do not have addressable self-serve management views by default in `guidance` presets.',\n sections: {\n overview: { purpose: 'The lifecycle stage, when it was entered, and last activity for quick at-a-glance state.', whenToUse: 'User CRM sidebar and any lifecycle debug panel in platform UIs.', textSlots: { title: { purpose: 'User lifecycle title.' }, description: { purpose: 'Clarify that stages are product-defined, not raw Stripe subscription states.' } } },\n engagement: { purpose: 'How often stages were visited, whether activation checks passed, and any aggregate engagement number stored on the row.', whenToUse: 'Success and analytics screens.', textSlots: { title: { purpose: 'Engagement block.' }, description: { purpose: 'Field set follows `LifecycleStateSchema` — not duplicated here entry-by-entry if the object grows.' } } },\n history: { purpose: 'Chronological `stageHistory` for audits and CSM playbooks when present.', whenToUse: 'Explaining reactivation paths and back-and-forth stage moves.', textSlots: { title: { purpose: 'History block.' }, description: { purpose: 'May be long — UI should paginate in product implementation.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read shell; non-addressable in platform preset `views` by default.', whenToUse: 'When lifecycle debug routes exist for the user in platform mode.' },\n [Op.SEARCH]: { purpose: 'SEARCH in factory + preset; non-addressable in default `views` list for this type.', whenToUse: 'Future admin search across users for lifecycle triage.' },\n },\n }),\n);\n\nexport const organizationLifecycleStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(orgLcMainUI), resourceFrontendConfiguration(orgLcAdminUI)),\n organizationLifecycleBase,\n () => ({\n label: { purpose: 'Same stringified `currentStage` label pattern as the user lifecycle row in the org main preset.' },\n layout: {\n purpose: 'Trisect: `overview`, `engagement`, `history` — mirrors user lifecycle for cognitive parity; merged admin removes SEARCH if not in merged `views` map.',\n displayPurpose: 'Org admin home and CSM org detail views when lifecycle is part of the subscription journey.',\n sections: {\n overview: { purpose: 'Org `currentStage` with entry and last-activity instants for the org.', whenToUse: 'When deciding intervention campaigns at tenant level.', textSlots: { title: { purpose: 'Org lifecycle title.' }, description: { purpose: 'Not a financial KPI — a product lifecycle state machine.' } } },\n engagement: { purpose: 'Stage visitation and criteria evidence for the org as a whole.', whenToUse: 'Comparing engagement score vs. stage expectations.', textSlots: { title: { purpose: 'Engagement block.' }, description: { purpose: 'May surface sparse data early in a tenant’s life; avoid implying broken telemetry when null.' } } },\n history: { purpose: 'Org `stageHistory` for audits.', whenToUse: 'M&A, CS escalation, and compliance reviews of tenant journey.', textSlots: { title: { purpose: 'History block.' }, description: { purpose: 'Entries are product-defined, append-only in normal flows.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-only lifecycle host; non-addressable in default `views` wiring in merged `guidance` admin.', whenToUse: 'Org home lifecycle widgets in admin-allowed routes when wired.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"lifecycle-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/lifecycle-state.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iDAAiD,IAAI,gBAAgB,EACrE,gDAAgD,IAAI,eAAe,EACnE,4CAA4C,IAAI,oBAAoB,GACrE,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EACd,gCAAgC,EAChC,oBAAoB,EACpB,wBAAwB,EACxB,qEAAqE,IAAI,iCAAiC,EAC1G,6DAA6D,IAAI,yBAAyB,GAC3F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAK3E,MAAM,QAAQ,GAAG,oBAAqF,CAAC;AAKvG,MAAM,WAAW,GAAG,eAAgF,CAAC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ifecycleStateMainResourceUIBehavior as orgLcMainSource,\n userLifecycleStatePlatformResourceUIBehavior as userLcPlatformSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n LifecycleStage,\n OrganizationLifecycleStateSchema,\n ResourcePrimaryScope,\n UserLifecycleStateSchema,\n organizationLifecycleStateResourceConfiguration_InitializationFactory as organizationLifecycleStateFactory,\n userLifecycleStateResourceConfiguration_InitializationFactory as userLifecycleStateFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UCfg = ReturnType<typeof userLifecycleStateFactory>;\ntype UCore = UCfg['coreOperations'][number];\ntype UMain = UCfg['mainSchema'];\nconst userLcUI = userLcPlatformSource as ResourceUIBehaviorConfig<Record<string, never>, UCore, UMain>;\n\ntype OCfg = ReturnType<typeof organizationLifecycleStateFactory>;\ntype OCore = OCfg['coreOperations'][number];\ntype OMain = OCfg['mainSchema'];\nconst orgLcMainUI = orgLcMainSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\nconst orgLcAdminUI = orgLcAdminSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\n\nconst USER_LIFECYCLE_STATE_EXAMPLE = {\n currentStage: LifecycleStage.ENGAGED,\n stageEnteredAt: '2026-08-12T09:15:00.000Z',\n stageHistory: [\n {\n stage: LifecycleStage.ENGAGED,\n enteredAt: '2026-08-12T09:15:00.000Z',\n trigger: 'milestone:completed-first-workflow',\n },\n {\n stage: LifecycleStage.ACTIVATED,\n enteredAt: '2026-08-04T08:30:00.000Z',\n exitedAt: '2026-08-12T09:15:00.000Z',\n trigger: 'milestone:completed-first-action',\n },\n ],\n stagesVisited: [LifecycleStage.SIGNED_UP, LifecycleStage.ACTIVATED, LifecycleStage.ENGAGED],\n lastActiveAt: '2026-08-20T14:42:00.000Z',\n activationCriteriaMet: {\n completed_profile: true,\n completed_first_action: true,\n },\n engagement: {\n operationsSinceActivation: 37,\n activeDates: ['2026-08-12', '2026-08-18', '2026-08-20'],\n },\n userId: 'user_01JEXAMPLE',\n} as const;\n\nconst ORGANIZATION_LIFECYCLE_STATE_EXAMPLE = {\n currentStage: LifecycleStage.REACTIVATED,\n stageEnteredAt: '2026-08-19T10:05:00.000Z',\n stageHistory: [\n {\n stage: LifecycleStage.REACTIVATED,\n enteredAt: '2026-08-19T10:05:00.000Z',\n trigger: 'operation:todos:update',\n },\n {\n stage: LifecycleStage.DORMANT,\n enteredAt: '2026-07-28T00:00:00.000Z',\n exitedAt: '2026-08-19T10:05:00.000Z',\n trigger: 'cron:daily-lifecycle-evaluation',\n },\n ],\n stagesVisited: [\n LifecycleStage.SIGNED_UP,\n LifecycleStage.ACTIVATED,\n LifecycleStage.ENGAGED,\n LifecycleStage.DORMANT,\n LifecycleStage.REACTIVATED,\n ],\n lastActiveAt: '2026-08-20T16:20:00.000Z',\n activationCriteriaMet: {\n invited_first_member: true,\n completed_first_shared_action: true,\n },\n engagement: {\n operationsSinceActivation: 214,\n activeDates: ['2026-08-19', '2026-08-20'],\n },\n organizationId: 'org_01JEXAMPLE',\n} as const;\n\nconst lifecycleSearchExample = (row: typeof USER_LIFECYCLE_STATE_EXAMPLE | typeof ORGANIZATION_LIFECYCLE_STATE_EXAMPLE) => ({\n data: [row],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n});\n\nconst userLifecycleBase = resourceSpecification<Record<string, never>, UCore, UMain>(\n userLifecycleStateFactory,\n UserLifecycleStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-user customer lifecycle state machine: which lifecycle stage a user is in and history of stage transitions and engagement evidence.',\n businessRole: 'Drives “activation”, “dormant”, and churn messaging independent of billing state — a product-semantic lifecycle layer.',\n lifecycleRole: 'The state begins automatically at sign-up, evolves from application-defined activity, and remains readable as the user moves through activation, engagement, dormancy and reactivation.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.GUIDANCE,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserLifecycleStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userLifecycleStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'USER_LIFECYCLE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [{ packageName: '@wildo-ai/presets-components', exportName: 'userLifecycleStatePlatformResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR }],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n // USER and ORGANIZATION extend one shared Zod field instance. Clone it\n // before attaching resource-specific prose so one scope cannot overwrite\n // the other scope's OpenAPI property description at module load time.\n currentStage: schemaShape.currentStage.clone().enumSpec({\n meaning: 'The canonical lifecycle stage for the user in product cohort analytics.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [LifecycleStage.SIGNED_UP]: { meaning: 'Account created but not yet product-active.' },\n [LifecycleStage.ACTIVATED]: { meaning: 'Meets the product’s activation definition when configured.' },\n [LifecycleStage.ENGAGED]: { meaning: 'Repeat or deep usage in line with the engagement model.' },\n [LifecycleStage.DORMANT]: { meaning: 'Low or no recent activity; candidate for reactivation campaigns.' },\n [LifecycleStage.REACTIVATED]: { meaning: 'Returned to meaningful activity after dormancy or churn risk.' },\n [LifecycleStage.CHURNED]: { meaning: 'Left or lapsed in a terminal sense for the product definition.' },\n [LifecycleStage.OFFBOARDED]: { meaning: 'Explicitly removed or deprovisioned in lifecycle terms.' },\n },\n }),\n stageHistory: schemaShape.stageHistory.arraySpec({\n meaning: 'Chronological log of stage transitions for this user (most recent first, capped at the last 20 entries).',\n elementMeaning: 'One `LifecycleStageTransition` record: the stage entered, when it was entered/exited, and the trigger (milestone ref, cron, operation).',\n }),\n stagesVisited: schemaShape.stagesVisited.arraySpec({\n meaning: 'Deduplicated set of every lifecycle stage the user has ever reached — survives the `stageHistory` cap and backs `hasReachedStage()` visitation checks.',\n elementMeaning: 'One `LifecycleStage` value the user has visited at least once.',\n elementType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The owning user this lifecycle state row tracks; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the user-self access strategy so a user can never read another user’s lifecycle state.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the signed-in user’s current product-lifecycle state.',\n outcome: 'The caller receives the current stage, transition history, activity time and activation/engagement evidence for their own user identity. Reading a dormant state schedules reactivation asynchronously, so this response can still report `dormant` while a later read reports `reactivated`.',\n whenToUse: 'Use this endpoint to synchronize lifecycle-aware client experiences or customer-success integrations. It is not a billing-subscription status endpoint.',\n responseStatuses: [\n // Self-state read lazily materializes: no row yet yields a default stage rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s lifecycle state (current stage, timestamps, history) is returned; an un-materialized user yields a default stage rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user lifecycle state cannot be resolved.' },\n ],\n examples: [{\n title: 'Read the signed-in user lifecycle state',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId },\n response: USER_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the user lifecycle row using the context representation.',\n outcome: 'The caller receives the lifecycle row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the lifecycle row itself.',\n examples: [{\n title: 'Read the signed-in user lifecycle context',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId },\n response: USER_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact user lifecycle representation.',\n outcome: 'The caller receives only the owning user id and current lifecycle stage.',\n examples: [{\n title: 'Read the signed-in user lifecycle summary',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId },\n response: {\n currentStage: USER_LIFECYCLE_STATE_EXAMPLE.currentStage,\n userId: USER_LIFECYCLE_STATE_EXAMPLE.userId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first lifecycle row (INTERNAL_CALL, isDefault): eager-seeded via the USERS → USER_LIFECYCLE_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by lifecycle jobs via the repository tier. Not a member-facing route.',\n outcome: 'Initial stage row for subsequent transitions.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state row was materialized for the user.' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by lifecycle jobs via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Repository-only transitions when lifecycle jobs execute.',\n outcome: 'New stage, history append, and engagement metrics in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The lifecycle stage transition was persisted with a history append.' },\n ],\n // REPOSITORY_ONLY variant — transitions are engine-driven, not a public HTTP endpoint. Convergent stage-set, so re-applying the same target stage is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Return the lifecycle-state collection inside the addressed user scope.',\n outcome: 'The caller receives a paginated collection containing the user’s lifecycle row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of user lifecycle rows for analytics/triage when a route wires search.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the lifecycle search context.' },\n ],\n examples: [{\n title: 'Return the user lifecycle state as a collection',\n request: { userId: USER_LIFECYCLE_STATE_EXAMPLE.userId, page: 1, limit: 20 },\n response: lifecycleSearchExample(USER_LIFECYCLE_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the user lifecycle state row when its owning user is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The user lifecycle state row was deleted as part of the owning user’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'This is not subscription billing state — it models product lifecycle semantics and may disagree with `BillingSubscription` rows by design in edge cases; document both when explaining churn.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n\nconst organizationLifecycleBase = resourceSpecification<Record<string, never>, OCore, OMain>(\n organizationLifecycleStateFactory,\n OrganizationLifecycleStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-organization lifecycle state: the tenant’s stage in the product journey, plus org engagement evidence and visit history to `LifecycleStage` values.',\n businessRole: 'Org-wide cohorts for CSM, marketing automation, and success dashboards — not the same as `ORGANIZATION` subscription status in billing.',\n lifecycleRole: 'The state begins automatically when the organization is created, evolves from organization activity, and remains readable as the tenant moves through activation, engagement, dormancy and reactivation.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.GUIDANCE,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationLifecycleStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationLifecycleStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'ORGANIZATION_LIFECYCLE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationLifecycleStateMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationLifecycleStateAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n currentStage: schemaShape.currentStage.clone().enumSpec({\n meaning: 'Current lifecycle stage for the organization in product cohort and customer-success workflows.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [LifecycleStage.SIGNED_UP]: { meaning: 'Tenant created but not product-activated in lifecycle terms.' },\n [LifecycleStage.ACTIVATED]: { meaning: 'Met activation heuristics for the org in product rules.' },\n [LifecycleStage.ENGAGED]: { meaning: 'Healthy ongoing usage in line with the model.' },\n [LifecycleStage.DORMANT]: { meaning: 'Low recent usage — candidate for reactivation or downgrade discussions.' },\n [LifecycleStage.REACTIVATED]: { meaning: 'Returned to engagement after a dormant period.' },\n [LifecycleStage.CHURNED]: { meaning: 'Churned or lapsed in lifecycle terms even if a billing row still exists in edge cases.' },\n [LifecycleStage.OFFBOARDED]: { meaning: 'Explicitly closed or deprovisioned in lifecycle terms.' },\n },\n }),\n stageHistory: schemaShape.stageHistory.arraySpec({\n meaning: 'Chronological log of stage transitions for this organization (most recent first, capped at the last 20 entries).',\n elementMeaning: 'One `LifecycleStageTransition` record: the stage entered, when it was entered/exited, and the trigger (milestone ref, cron, operation).',\n }),\n stagesVisited: schemaShape.stagesVisited.arraySpec({\n meaning: 'Deduplicated set of every lifecycle stage the organization has ever reached — survives the `stageHistory` cap and backs `hasReachedStage()` visitation checks.',\n elementMeaning: 'One `LifecycleStage` value the organization has visited at least once.',\n elementType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The owning organization this lifecycle state row tracks; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the org access strategy so a tenant can never read another tenant’s lifecycle state.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s current product-lifecycle state.',\n outcome: 'An organization member receives the current stage, transition history, activity time and activation/engagement evidence for that organization. Reading a dormant state schedules reactivation asynchronously, so this response can still report `dormant` while a later read reports `reactivated`.',\n whenToUse: 'Use this endpoint to synchronize organization-level lifecycle experiences or customer-success integrations. It is independent from billing subscription state.',\n responseStatuses: [\n // Scoped-state read lazily materializes: an org with no row yet gets a default stage rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s lifecycle state (stage, engagement, history) is returned; an un-materialized org yields a default stage rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant lifecycle state.' },\n ],\n examples: [{\n title: 'Read the organization lifecycle state',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization lifecycle row using the context representation.',\n outcome: 'The caller receives the lifecycle row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the lifecycle row itself.',\n examples: [{\n title: 'Read the organization lifecycle context',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization lifecycle representation.',\n outcome: 'The caller receives only the owning organization id and current lifecycle stage.',\n examples: [{\n title: 'Read the organization lifecycle summary',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId },\n response: {\n currentStage: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.currentStage,\n organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first org lifecycle row (INTERNAL_CALL, isDefault): eager-seeded via the ORGANIZATIONS → ORGANIZATION_LIFECYCLE_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by lifecycle services via the repository tier. Not a member-facing route.',\n outcome: 'Initial stage in `SIGNED_UP` or configured default in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state row was materialized for the org (default `SIGNED_UP` or configured initial stage).' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by lifecycle services via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Repository-only and admin `ORG_ADMIN` on API variant in factory (verify roles in the resource file for the exact split).',\n outcome: 'New stage, updated engagement metrics, and history appends in services.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The org lifecycle stage transition was persisted with a history append.' },\n ],\n // REPOSITORY_ONLY variant — transitions are engine-driven, not a public HTTP endpoint. Convergent stage-set, so re-applying the same target stage is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Return the lifecycle-state collection inside the addressed organization scope.',\n outcome: 'The caller receives a paginated collection containing the organization’s lifecycle row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org lifecycle rows for admin discovery when a route wires search.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the lifecycle search context.' },\n ],\n examples: [{\n title: 'Return the organization lifecycle state as a collection',\n request: { organizationId: ORGANIZATION_LIFECYCLE_STATE_EXAMPLE.organizationId, page: 1, limit: 20 },\n response: lifecycleSearchExample(ORGANIZATION_LIFECYCLE_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization lifecycle state row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization lifecycle state row was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Org lifecycle UPDATE in factory is restricted to `ORG_ADMIN` — do not conflate with member `APP_USER` updates on the user document.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const userLifecycleStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userLcUI),\n userLifecycleBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` stringifies `currentStage` for compact row display.' },\n layout: {\n purpose: 'Sections `overview` (current stage, timestamps), `engagement` (visits, criteria, score), `history` (stage history array).',\n displayPurpose: 'Platform bundle targets internal dashboards and the companion; end users do not have addressable self-serve management views by default in `guidance` presets.',\n sections: {\n overview: { purpose: 'The lifecycle stage, when it was entered, and last activity for quick at-a-glance state.', whenToUse: 'User CRM sidebar and any lifecycle debug panel in platform UIs.', textSlots: { title: { purpose: 'User lifecycle title.' }, description: { purpose: 'Clarify that stages are product-defined, not raw Stripe subscription states.' } } },\n engagement: { purpose: 'How often stages were visited, whether activation checks passed, and any aggregate engagement number stored on the row.', whenToUse: 'Success and analytics screens.', textSlots: { title: { purpose: 'Engagement block.' }, description: { purpose: 'Field set follows `LifecycleStateSchema` — not duplicated here entry-by-entry if the object grows.' } } },\n history: { purpose: 'Chronological `stageHistory` for audits and CSM playbooks when present.', whenToUse: 'Explaining reactivation paths and back-and-forth stage moves.', textSlots: { title: { purpose: 'History block.' }, description: { purpose: 'May be long — UI should paginate in product implementation.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read shell; non-addressable in platform preset `views` by default.', whenToUse: 'When lifecycle debug routes exist for the user in platform mode.' },\n [Op.SEARCH]: { purpose: 'SEARCH in factory + preset; non-addressable in default `views` list for this type.', whenToUse: 'Future admin search across users for lifecycle triage.' },\n },\n }),\n);\n\nexport const organizationLifecycleStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(orgLcMainUI), resourceFrontendConfiguration(orgLcAdminUI)),\n organizationLifecycleBase,\n () => ({\n label: { purpose: 'Same stringified `currentStage` label pattern as the user lifecycle row in the org main preset.' },\n layout: {\n purpose: 'Trisect: `overview`, `engagement`, `history` — mirrors user lifecycle for cognitive parity; merged admin removes SEARCH if not in merged `views` map.',\n displayPurpose: 'Org admin home and CSM org detail views when lifecycle is part of the subscription journey.',\n sections: {\n overview: { purpose: 'Org `currentStage` with entry and last-activity instants for the org.', whenToUse: 'When deciding intervention campaigns at tenant level.', textSlots: { title: { purpose: 'Org lifecycle title.' }, description: { purpose: 'Not a financial KPI — a product lifecycle state machine.' } } },\n engagement: { purpose: 'Stage visitation and criteria evidence for the org as a whole.', whenToUse: 'Comparing engagement score vs. stage expectations.', textSlots: { title: { purpose: 'Engagement block.' }, description: { purpose: 'May surface sparse data early in a tenant’s life; avoid implying broken telemetry when null.' } } },\n history: { purpose: 'Org `stageHistory` for audits.', whenToUse: 'M&A, CS escalation, and compliance reviews of tenant journey.', textSlots: { title: { purpose: 'History block.' }, description: { purpose: 'Entries are product-defined, append-only in normal flows.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-only lifecycle host; non-addressable in default `views` wiring in merged `guidance` admin.', whenToUse: 'Org home lifecycle widgets in admin-allowed routes when wired.' },\n },\n }),\n);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreResourceOperation as Op } from '@wildo-ai/saas-models';
|
|
2
|
-
export declare const userProgressionStateResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.DELETE | Op.CREATE | Op.SEARCH, import("zod").ZodObject<{
|
|
2
|
+
export declare const userProgressionStateResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST | Op.SEARCH, import("zod").ZodObject<{
|
|
3
3
|
milestonesAchieved: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
4
4
|
achievedAt: import("zod").ZodCoercedDate<unknown>;
|
|
5
5
|
count: import("zod").ZodDefault<import("zod").ZodNumber>;
|
package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/progression-state.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM5B,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"progression-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/progression-state.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM5B,MAAM,uBAAuB,CAAC;AAkU/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;iCA+BrD,CAAC;AAEF,eAAO,MAAM,iDAAiD;;;;;;;;;;;;iCAkB7D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
4
4
|
import { CoreResourceOperation as Op, OrganizationProgressionStateSchema, ResourcePrimaryScope, UserProgressionStateSchema, organizationProgressionStateResourceConfiguration_InitializationFactory as organizationProgressionStateFactory, userProgressionStateResourceConfiguration_InitializationFactory as userProgressionStateFactory, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
const userProgUI = userProgMainSource;
|
|
7
8
|
const orgProgMainUI = orgProgMainSource;
|
|
8
9
|
const orgProgAdminUI = orgProgAdminSource;
|
|
@@ -57,6 +58,7 @@ const userProgressionBase = resourceSpecification(userProgressionStateFactory, U
|
|
|
57
58
|
businessRole: 'Drives “quests”, achievements, and feature unlock UX — separate from billing entitlements and from `USER_LIFECYCLE_STATE` stage.',
|
|
58
59
|
lifecycleRole: 'The state starts at zero, accumulates qualifying operation counts, milestones and points, and remains readable through complete, contextual, compact and collection representations.',
|
|
59
60
|
audience: LabelAudience.END_USER,
|
|
61
|
+
subDomain: EngineResourceSubDomain.GUIDANCE,
|
|
60
62
|
codeHandling: {
|
|
61
63
|
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserProgressionStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
62
64
|
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userProgressionStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
@@ -176,6 +178,7 @@ const organizationProgressionBase = resourceSpecification(organizationProgressio
|
|
|
176
178
|
businessRole: 'Powers org-wide “team quests” and tiered success metrics; distinct from per-member rows on `USER_PROGRESSION_STATE`.',
|
|
177
179
|
lifecycleRole: 'The state starts at zero for a new organization, accumulates qualifying team activity, milestones and points, and remains readable by organization members.',
|
|
178
180
|
audience: LabelAudience.END_USER,
|
|
181
|
+
subDomain: EngineResourceSubDomain.GUIDANCE,
|
|
179
182
|
codeHandling: {
|
|
180
183
|
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationProgressionStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
181
184
|
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationProgressionStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/progression-state.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mDAAmD,IAAI,kBAAkB,EACzE,kDAAkD,IAAI,iBAAiB,EACvE,0CAA0C,IAAI,kBAAkB,GACjE,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,kCAAkC,EAClC,oBAAoB,EACpB,0BAA0B,EAC1B,uEAAuE,IAAI,mCAAmC,EAC9G,+DAA+D,IAAI,2BAA2B,GAC/F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAKrC,MAAM,UAAU,GAAG,kBAAmF,CAAC;AAKvG,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E,4DAA4D;QAC5E,QAAQ,EAAE;YACR,QAAQ,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE,SAAS,EAAE,qCAAqC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,yFAAyF,EAAE,EAAE,EAAE;YAC7R,QAAQ,EAAE,EAAE,OAAO,EAAE,uEAAuE,EAAE,SAAS,EAAE,4DAA4D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qFAAqF,EAAE,EAAE,EAAE;YAC9U,UAAU,EAAE,EAAE,OAAO,EAAE,4DAA4D,EAAE,SAAS,EAAE,kEAAkE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,+DAA+D,EAAE,EAAE,EAAE;SACxT;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,mHAAmH,EAAE,SAAS,EAAE,2DAA2D,EAAE;KACpN;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationProgressionStateAdminResourceUIBehavior as orgProgAdminSource,\n organizationProgressionStateMainResourceUIBehavior as orgProgMainSource,\n userProgressionStateMainResourceUIBehavior as userProgMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationProgressionStateSchema,\n ResourcePrimaryScope,\n UserProgressionStateSchema,\n organizationProgressionStateResourceConfiguration_InitializationFactory as organizationProgressionStateFactory,\n userProgressionStateResourceConfiguration_InitializationFactory as userProgressionStateFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\ntype UCfg = ReturnType<typeof userProgressionStateFactory>;\ntype UCore = UCfg['coreOperations'][number];\ntype UMain = UCfg['mainSchema'];\nconst userProgUI = userProgMainSource as ResourceUIBehaviorConfig<Record<string, never>, UCore, UMain>;\n\ntype OCfg = ReturnType<typeof organizationProgressionStateFactory>;\ntype OCore = OCfg['coreOperations'][number];\ntype OMain = OCfg['mainSchema'];\nconst orgProgMainUI = orgProgMainSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\nconst orgProgAdminUI = orgProgAdminSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\n\nconst USER_PROGRESSION_STATE_EXAMPLE = {\n milestonesAchieved: {\n 'milestone:completed-first-action': {\n achievedAt: '2026-08-04T08:30:00.000Z',\n count: 1,\n },\n 'milestone:completed-ten-actions': {\n achievedAt: '2026-08-12T09:15:00.000Z',\n count: 10,\n },\n },\n operationCounts: {\n 'todos:create': 12,\n 'todos:update': 31,\n },\n totalPoints: 175,\n categoriesProgress: {\n onboarding: { completedCount: 2, totalPoints: 175 },\n },\n userId: 'user_01JEXAMPLE',\n} as const;\n\nconst ORGANIZATION_PROGRESSION_STATE_EXAMPLE = {\n milestonesAchieved: {\n 'milestone:invited-first-member': {\n achievedAt: '2026-08-02T11:20:00.000Z',\n count: 1,\n },\n 'milestone:completed-hundred-actions': {\n achievedAt: '2026-08-18T15:45:00.000Z',\n count: 100,\n },\n },\n operationCounts: {\n 'organizationMembers:create': 8,\n 'todos:update': 146,\n },\n totalPoints: 850,\n categoriesProgress: {\n collaboration: { completedCount: 2, totalPoints: 850 },\n },\n organizationId: 'org_01JEXAMPLE',\n} as const;\n\nconst progressionSearchExample = (row: typeof USER_PROGRESSION_STATE_EXAMPLE | typeof ORGANIZATION_PROGRESSION_STATE_EXAMPLE) => ({\n data: [row],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n});\n\nconst userProgressionBase = resourceSpecification<Record<string, never>, UCore, UMain>(\n userProgressionStateFactory,\n UserProgressionStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-user gamified progression: points, milestone achievements, per-category progress, and raw operation counts for guidance milestones.',\n businessRole: 'Drives “quests”, achievements, and feature unlock UX — separate from billing entitlements and from `USER_LIFECYCLE_STATE` stage.',\n lifecycleRole: 'The state starts at zero, accumulates qualifying operation counts, milestones and points, and remains readable through complete, contextual, compact and collection representations.',\n audience: LabelAudience.END_USER,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserProgressionStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userProgressionStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'USER_PROGRESSION_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [{ packageName: '@wildo-ai/presets-components', exportName: 'userProgressionStateMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR }],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Owning user for the progression document; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the user-self access strategy so a user can never read another user’s points and milestones.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n // USER and ORGANIZATION extend one shared Zod field instance. Clone it\n // before attaching scope-specific prose so descriptions cannot bleed\n // between the two generated OpenAPI schemas.\n totalPoints: schemaShape.totalPoints.clone().numberSpec({ meaning: 'Sum of points earned by this user from achieved milestones.', importance: FieldSemanticImportance.PRIMARY }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the signed-in user’s milestone progression state.',\n outcome: 'The caller receives the user’s total points, achieved milestones, contributing operation counts and per-category totals.',\n whenToUse: 'Use this endpoint to render achievement progress or reconcile a client’s locally displayed points with the server-owned state.',\n responseStatuses: [\n // Self-state read lazily materializes: no row yet yields a default zero-points state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s progression state (points, categories, milestone map) is returned; an un-materialized user yields a default zero-points state rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user progression state cannot be resolved.' },\n ],\n examples: [{\n title: 'Read the signed-in user progression state',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId },\n response: USER_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the user progression row using the context representation.',\n outcome: 'The caller receives the progression row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the progression row itself.',\n examples: [{\n title: 'Read the signed-in user progression context',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId },\n response: USER_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact user progression representation.',\n outcome: 'The caller receives only the owning user id and total points.',\n examples: [{\n title: 'Read the signed-in user progression summary',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId },\n response: {\n totalPoints: USER_PROGRESSION_STATE_EXAMPLE.totalPoints,\n userId: USER_PROGRESSION_STATE_EXAMPLE.userId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first progression row (INTERNAL_CALL, isDefault): eager-seeded via the USERS → USER_PROGRESSION_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by the milestone engine via the repository tier. Not a member-facing route.',\n outcome: 'New progression baseline when the user first touches guided milestones.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A progression state baseline row was materialized for the user.' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by the milestone engine via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Engine increments on milestone events (REPOSITORY_ONLY).',\n outcome: 'Accurate counts and points after each qualifying operation in product.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The progression counters/points were updated after a qualifying milestone event.' },\n ],\n // REPOSITORY_ONLY variant — engine-driven, not a public HTTP endpoint. Increments are event-accumulating (not convergent), so a replayed update is NOT side-effect-free.\n idempotent: false,\n },\n [Op.SEARCH]: {\n purpose: 'Return the progression-state collection inside the addressed user scope.',\n outcome: 'The caller receives a paginated collection containing the user’s progression row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of user progression rows for future admin discovery.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the progression search context.' },\n ],\n examples: [{\n title: 'Return the user progression state as a collection',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId, page: 1, limit: 20 },\n response: progressionSearchExample(USER_PROGRESSION_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the user progression state row when its owning user is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The user progression state row was deleted as part of the owning user’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Milestone ref keys in `milestonesAchieved` and `operationCounts` must align to configured milestone/operation keys from the product catalog — the spec does not enumerate them (data-driven at runtime).',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n\nconst organizationProgressionBase = resourceSpecification<Record<string, never>, OCore, OMain>(\n organizationProgressionStateFactory,\n OrganizationProgressionStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-organization progression state: the same point/milestone/operation-count model as the user document, at tenant scale for org achievements.',\n businessRole: 'Powers org-wide “team quests” and tiered success metrics; distinct from per-member rows on `USER_PROGRESSION_STATE`.',\n lifecycleRole: 'The state starts at zero for a new organization, accumulates qualifying team activity, milestones and points, and remains readable by organization members.',\n audience: LabelAudience.END_USER,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationProgressionStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationProgressionStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'ORGANIZATION_PROGRESSION_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationProgressionStateMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationProgressionStateAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'Owning organization for the shared progression document; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the org access strategy so a tenant can never read another tenant’s points and milestones.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n totalPoints: schemaShape.totalPoints.clone().numberSpec({ meaning: 'Total points earned by this organization from achieved milestones.', importance: FieldSemanticImportance.PRIMARY }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s milestone progression state.',\n outcome: 'An organization member receives the organization’s total points, achieved milestones, contributing operation counts and per-category totals.',\n whenToUse: 'Use this endpoint to render organization-level achievements or reconcile a client’s displayed team progress with the server-owned state.',\n responseStatuses: [\n // Scoped-state read lazily materializes: an org with no row yet gets default zero-points state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s progression state (aggregated points and milestone map) is returned; an un-materialized org yields a default zero-points state rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant progression state.' },\n ],\n examples: [{\n title: 'Read the organization progression state',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization progression row using the context representation.',\n outcome: 'The caller receives the progression row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the progression row itself.',\n examples: [{\n title: 'Read the organization progression context',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization progression representation.',\n outcome: 'The caller receives only the owning organization id and total points.',\n examples: [{\n title: 'Read the organization progression summary',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId },\n response: {\n totalPoints: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.totalPoints,\n organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first org progression row (INTERNAL_CALL, isDefault): eager-seeded via the ORGANIZATIONS → ORGANIZATION_PROGRESSION_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by the milestone engine via the repository tier. Not a member-facing route.',\n outcome: 'Initial empty maps for the org.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A progression state baseline row with empty maps was materialized for the org.' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by the milestone engine via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Repository-only increments when org milestone rules fire.',\n outcome: 'Updated points and milestone map without direct member CRUD in typical flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The org progression counters/points were updated after a qualifying milestone event.' },\n ],\n // REPOSITORY_ONLY variant — engine-driven, not a public HTTP endpoint. Increments are event-accumulating (not convergent), so a replayed update is NOT side-effect-free.\n idempotent: false,\n },\n [Op.SEARCH]: {\n purpose: 'Return the progression-state collection inside the addressed organization scope.',\n outcome: 'The caller receives a paginated collection containing the organization’s progression row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org progression rows; merged admin presets do not surface this as a navigable list.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the progression search context.' },\n ],\n examples: [{\n title: 'Return the organization progression state as a collection',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId, page: 1, limit: 20 },\n response: progressionSearchExample(ORGANIZATION_PROGRESSION_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization progression state row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization progression state row was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Merged `guidance` admin preset for org progression strips SEARCH; align `frontend.views` to merged UI only.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const userProgressionStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userProgUI),\n userProgressionBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` shows total points, e.g. “42 pts” for profile surfaces.' },\n layout: {\n purpose: 'Three section refs: `overview` (total points), `activity` (category + operation stats), `milestones` (achievement list).',\n displayPurpose: 'Read/search preset wiring keeps routes non-addressable; layout still describes the intended information hierarchy.',\n sections: {\n overview: {\n purpose: 'Primary `totalPoints` and headline progression summary.',\n whenToUse: 'User profile “Achievements” tab.',\n textSlots: { title: { purpose: 'Label the points overview card.' }, description: { purpose: 'Explain that points are derived from the milestone catalog, not ad-hoc user entry.' } },\n },\n activity: {\n purpose: '`categoriesProgress` and `operationCounts` for drill-down and debugging.',\n whenToUse: 'Support and power-user inspection of which operations contributed counts.',\n textSlots: { title: { purpose: 'Label the activity/telemetry block.' }, description: { purpose: 'Map keys are `resourceType:operation` strings per schema comment, not free text.' } },\n },\n milestones: {\n purpose: '`milestonesAchieved` record map with timestamps and counts.',\n whenToUse: 'When showing which named milestones the user has cleared.',\n textSlots: { title: { purpose: 'Label the milestone history block.' }, description: { purpose: 'Milestone ref strings come from the guidance/milestone spec catalog for the app.' } },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read shell; non-addressable in default `views` configuration.', whenToUse: 'Embedded in profile and guidance surfaces when routed.' },\n [Op.SEARCH]: { purpose: 'Factory SEARCH + preset entry; still non-addressable in default `views` list.', whenToUse: 'Planned org-wide or admin user discovery, not a primary nav in current presets.' },\n },\n }),\n);\n\nexport const organizationProgressionStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(orgProgMainUI), resourceFrontendConfiguration(orgProgAdminUI)),\n organizationProgressionBase,\n () => ({\n label: { purpose: 'Same “N pts” label as user progression, scoped to the org’s shared row.' },\n layout: {\n purpose: 'Same `overview` / `activity` / `milestones` trisect as the user main bundle; merged admin only removes the SEARCH op from the `views` map if not surfaced in merged config.',\n displayPurpose: 'Org-facing achievements that roll up to tenant dashboards.',\n sections: {\n overview: { purpose: 'Org point total and headline.', whenToUse: 'Org home gamification when enabled.', textSlots: { title: { purpose: 'Org progression overview.' }, description: { purpose: 'Distinguish org totals from the sum of user rows — this is a single org-level document.' } } },\n activity: { purpose: 'Aggregated per-category and per-operation counts for the org channel.', whenToUse: 'When operators need to see which org events scored points.', textSlots: { title: { purpose: 'Activity stats.' }, description: { purpose: 'Keys follow the same `resourceType:operation` convention as user-level progression.' } } },\n milestones: { purpose: 'Milestone ref → achievement for org-wide quest completion.', whenToUse: 'When marketing or CS explains which org milestones are complete.', textSlots: { title: { purpose: 'Milestones block.' }, description: { purpose: 'May include zero or many entries depending on catalog wiring.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-only progression host in merged `guidance` bundles; not addressable in the default `views` array in presets.', whenToUse: 'Org achievement surfaces in admin/tenant UIs when routed.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"progression-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/progression-state.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mDAAmD,IAAI,kBAAkB,EACzE,kDAAkD,IAAI,iBAAiB,EACvE,0CAA0C,IAAI,kBAAkB,GACjE,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,kCAAkC,EAClC,oBAAoB,EACpB,0BAA0B,EAC1B,uEAAuE,IAAI,mCAAmC,EAC9G,+DAA+D,IAAI,2BAA2B,GAC/F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAK3E,MAAM,UAAU,GAAG,kBAAmF,CAAC;AAKvG,MAAM,aAAa,GAAG,iBAAkF,CAAC;AACzG,MAAM,cAAc,GAAG,kBAAmF,CAAC;AAE3G,MAAM,8BAA8B,GAAG;IACrC,kBAAkB,EAAE;QAClB,kCAAkC,EAAE;YAClC,UAAU,EAAE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,EAAE,SAAS,EAAE,qCAAqC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,yFAAyF,EAAE,EAAE,EAAE;YAC7R,QAAQ,EAAE,EAAE,OAAO,EAAE,uEAAuE,EAAE,SAAS,EAAE,4DAA4D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qFAAqF,EAAE,EAAE,EAAE;YAC9U,UAAU,EAAE,EAAE,OAAO,EAAE,4DAA4D,EAAE,SAAS,EAAE,kEAAkE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,+DAA+D,EAAE,EAAE,EAAE;SACxT;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,mHAAmH,EAAE,SAAS,EAAE,2DAA2D,EAAE;KACpN;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationProgressionStateAdminResourceUIBehavior as orgProgAdminSource,\n organizationProgressionStateMainResourceUIBehavior as orgProgMainSource,\n userProgressionStateMainResourceUIBehavior as userProgMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationProgressionStateSchema,\n ResourcePrimaryScope,\n UserProgressionStateSchema,\n organizationProgressionStateResourceConfiguration_InitializationFactory as organizationProgressionStateFactory,\n userProgressionStateResourceConfiguration_InitializationFactory as userProgressionStateFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UCfg = ReturnType<typeof userProgressionStateFactory>;\ntype UCore = UCfg['coreOperations'][number];\ntype UMain = UCfg['mainSchema'];\nconst userProgUI = userProgMainSource as ResourceUIBehaviorConfig<Record<string, never>, UCore, UMain>;\n\ntype OCfg = ReturnType<typeof organizationProgressionStateFactory>;\ntype OCore = OCfg['coreOperations'][number];\ntype OMain = OCfg['mainSchema'];\nconst orgProgMainUI = orgProgMainSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\nconst orgProgAdminUI = orgProgAdminSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OMain>;\n\nconst USER_PROGRESSION_STATE_EXAMPLE = {\n milestonesAchieved: {\n 'milestone:completed-first-action': {\n achievedAt: '2026-08-04T08:30:00.000Z',\n count: 1,\n },\n 'milestone:completed-ten-actions': {\n achievedAt: '2026-08-12T09:15:00.000Z',\n count: 10,\n },\n },\n operationCounts: {\n 'todos:create': 12,\n 'todos:update': 31,\n },\n totalPoints: 175,\n categoriesProgress: {\n onboarding: { completedCount: 2, totalPoints: 175 },\n },\n userId: 'user_01JEXAMPLE',\n} as const;\n\nconst ORGANIZATION_PROGRESSION_STATE_EXAMPLE = {\n milestonesAchieved: {\n 'milestone:invited-first-member': {\n achievedAt: '2026-08-02T11:20:00.000Z',\n count: 1,\n },\n 'milestone:completed-hundred-actions': {\n achievedAt: '2026-08-18T15:45:00.000Z',\n count: 100,\n },\n },\n operationCounts: {\n 'organizationMembers:create': 8,\n 'todos:update': 146,\n },\n totalPoints: 850,\n categoriesProgress: {\n collaboration: { completedCount: 2, totalPoints: 850 },\n },\n organizationId: 'org_01JEXAMPLE',\n} as const;\n\nconst progressionSearchExample = (row: typeof USER_PROGRESSION_STATE_EXAMPLE | typeof ORGANIZATION_PROGRESSION_STATE_EXAMPLE) => ({\n data: [row],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n});\n\nconst userProgressionBase = resourceSpecification<Record<string, never>, UCore, UMain>(\n userProgressionStateFactory,\n UserProgressionStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-user gamified progression: points, milestone achievements, per-category progress, and raw operation counts for guidance milestones.',\n businessRole: 'Drives “quests”, achievements, and feature unlock UX — separate from billing entitlements and from `USER_LIFECYCLE_STATE` stage.',\n lifecycleRole: 'The state starts at zero, accumulates qualifying operation counts, milestones and points, and remains readable through complete, contextual, compact and collection representations.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.GUIDANCE,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserProgressionStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userProgressionStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'USER_PROGRESSION_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [{ packageName: '@wildo-ai/presets-components', exportName: 'userProgressionStateMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR }],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Owning user for the progression document; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the user-self access strategy so a user can never read another user’s points and milestones.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n // USER and ORGANIZATION extend one shared Zod field instance. Clone it\n // before attaching scope-specific prose so descriptions cannot bleed\n // between the two generated OpenAPI schemas.\n totalPoints: schemaShape.totalPoints.clone().numberSpec({ meaning: 'Sum of points earned by this user from achieved milestones.', importance: FieldSemanticImportance.PRIMARY }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the signed-in user’s milestone progression state.',\n outcome: 'The caller receives the user’s total points, achieved milestones, contributing operation counts and per-category totals.',\n whenToUse: 'Use this endpoint to render achievement progress or reconcile a client’s locally displayed points with the server-owned state.',\n responseStatuses: [\n // Self-state read lazily materializes: no row yet yields a default zero-points state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s progression state (points, categories, milestone map) is returned; an un-materialized user yields a default zero-points state rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user progression state cannot be resolved.' },\n ],\n examples: [{\n title: 'Read the signed-in user progression state',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId },\n response: USER_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the user progression row using the context representation.',\n outcome: 'The caller receives the progression row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the progression row itself.',\n examples: [{\n title: 'Read the signed-in user progression context',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId },\n response: USER_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact user progression representation.',\n outcome: 'The caller receives only the owning user id and total points.',\n examples: [{\n title: 'Read the signed-in user progression summary',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId },\n response: {\n totalPoints: USER_PROGRESSION_STATE_EXAMPLE.totalPoints,\n userId: USER_PROGRESSION_STATE_EXAMPLE.userId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first progression row (INTERNAL_CALL, isDefault): eager-seeded via the USERS → USER_PROGRESSION_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by the milestone engine via the repository tier. Not a member-facing route.',\n outcome: 'New progression baseline when the user first touches guided milestones.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A progression state baseline row was materialized for the user.' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by the milestone engine via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Engine increments on milestone events (REPOSITORY_ONLY).',\n outcome: 'Accurate counts and points after each qualifying operation in product.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The progression counters/points were updated after a qualifying milestone event.' },\n ],\n // REPOSITORY_ONLY variant — engine-driven, not a public HTTP endpoint. Increments are event-accumulating (not convergent), so a replayed update is NOT side-effect-free.\n idempotent: false,\n },\n [Op.SEARCH]: {\n purpose: 'Return the progression-state collection inside the addressed user scope.',\n outcome: 'The caller receives a paginated collection containing the user’s progression row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of user progression rows for future admin discovery.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the progression search context.' },\n ],\n examples: [{\n title: 'Return the user progression state as a collection',\n request: { userId: USER_PROGRESSION_STATE_EXAMPLE.userId, page: 1, limit: 20 },\n response: progressionSearchExample(USER_PROGRESSION_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the user progression state row when its owning user is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The user progression state row was deleted as part of the owning user’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Milestone ref keys in `milestonesAchieved` and `operationCounts` must align to configured milestone/operation keys from the product catalog — the spec does not enumerate them (data-driven at runtime).',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n\nconst organizationProgressionBase = resourceSpecification<Record<string, never>, OCore, OMain>(\n organizationProgressionStateFactory,\n OrganizationProgressionStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-organization progression state: the same point/milestone/operation-count model as the user document, at tenant scale for org achievements.',\n businessRole: 'Powers org-wide “team quests” and tiered success metrics; distinct from per-member rows on `USER_PROGRESSION_STATE`.',\n lifecycleRole: 'The state starts at zero for a new organization, accumulates qualifying team activity, milestones and points, and remains readable by organization members.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.GUIDANCE,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationProgressionStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationProgressionStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'ORGANIZATION_PROGRESSION_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationProgressionStateMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationProgressionStateAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n notes: ['Runtime has no userNotifications / m2mNotifications — do not add communications.* (DF-1).'],\n },\n fields: {\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'Owning organization for the shared progression document; immutable after create.',\n whyItMatters: 'Scopes READ/SEARCH through the org access strategy so a tenant can never read another tenant’s points and milestones.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n totalPoints: schemaShape.totalPoints.clone().numberSpec({ meaning: 'Total points earned by this organization from achieved milestones.', importance: FieldSemanticImportance.PRIMARY }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s milestone progression state.',\n outcome: 'An organization member receives the organization’s total points, achieved milestones, contributing operation counts and per-category totals.',\n whenToUse: 'Use this endpoint to render organization-level achievements or reconcile a client’s displayed team progress with the server-owned state.',\n responseStatuses: [\n // Scoped-state read lazily materializes: an org with no row yet gets default zero-points state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s progression state (aggregated points and milestone map) is returned; an un-materialized org yields a default zero-points state rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant progression state.' },\n ],\n examples: [{\n title: 'Read the organization progression state',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization progression row using the context representation.',\n outcome: 'The caller receives the progression row plus any relationship context configured for this application; when no context relationship is configured, the response shape is the progression row itself.',\n examples: [{\n title: 'Read the organization progression context',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROGRESSION_STATE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization progression representation.',\n outcome: 'The caller receives only the owning organization id and total points.',\n examples: [{\n title: 'Read the organization progression summary',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId },\n response: {\n totalPoints: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.totalPoints,\n organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal system creation of the first org progression row (INTERNAL_CALL, isDefault): eager-seeded via the ORGANIZATIONS → ORGANIZATION_PROGRESSION_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by the milestone engine via the repository tier. Not a member-facing route.',\n outcome: 'Initial empty maps for the org.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A progression state baseline row with empty maps was materialized for the org.' },\n ],\n // INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by the milestone engine via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Repository-only increments when org milestone rules fire.',\n outcome: 'Updated points and milestone map without direct member CRUD in typical flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The org progression counters/points were updated after a qualifying milestone event.' },\n ],\n // REPOSITORY_ONLY variant — engine-driven, not a public HTTP endpoint. Increments are event-accumulating (not convergent), so a replayed update is NOT side-effect-free.\n idempotent: false,\n },\n [Op.SEARCH]: {\n purpose: 'Return the progression-state collection inside the addressed organization scope.',\n outcome: 'The caller receives a paginated collection containing the organization’s progression row when it has been materialized.',\n whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org progression rows; merged admin presets do not surface this as a navigable list.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the progression search context.' },\n ],\n examples: [{\n title: 'Return the organization progression state as a collection',\n request: { organizationId: ORGANIZATION_PROGRESSION_STATE_EXAMPLE.organizationId, page: 1, limit: 20 },\n response: progressionSearchExample(ORGANIZATION_PROGRESSION_STATE_EXAMPLE),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization progression state row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization progression state row was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Merged `guidance` admin preset for org progression strips SEARCH; align `frontend.views` to merged UI only.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const userProgressionStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userProgUI),\n userProgressionBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` shows total points, e.g. “42 pts” for profile surfaces.' },\n layout: {\n purpose: 'Three section refs: `overview` (total points), `activity` (category + operation stats), `milestones` (achievement list).',\n displayPurpose: 'Read/search preset wiring keeps routes non-addressable; layout still describes the intended information hierarchy.',\n sections: {\n overview: {\n purpose: 'Primary `totalPoints` and headline progression summary.',\n whenToUse: 'User profile “Achievements” tab.',\n textSlots: { title: { purpose: 'Label the points overview card.' }, description: { purpose: 'Explain that points are derived from the milestone catalog, not ad-hoc user entry.' } },\n },\n activity: {\n purpose: '`categoriesProgress` and `operationCounts` for drill-down and debugging.',\n whenToUse: 'Support and power-user inspection of which operations contributed counts.',\n textSlots: { title: { purpose: 'Label the activity/telemetry block.' }, description: { purpose: 'Map keys are `resourceType:operation` strings per schema comment, not free text.' } },\n },\n milestones: {\n purpose: '`milestonesAchieved` record map with timestamps and counts.',\n whenToUse: 'When showing which named milestones the user has cleared.',\n textSlots: { title: { purpose: 'Label the milestone history block.' }, description: { purpose: 'Milestone ref strings come from the guidance/milestone spec catalog for the app.' } },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read shell; non-addressable in default `views` configuration.', whenToUse: 'Embedded in profile and guidance surfaces when routed.' },\n [Op.SEARCH]: { purpose: 'Factory SEARCH + preset entry; still non-addressable in default `views` list.', whenToUse: 'Planned org-wide or admin user discovery, not a primary nav in current presets.' },\n },\n }),\n);\n\nexport const organizationProgressionStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(orgProgMainUI), resourceFrontendConfiguration(orgProgAdminUI)),\n organizationProgressionBase,\n () => ({\n label: { purpose: 'Same “N pts” label as user progression, scoped to the org’s shared row.' },\n layout: {\n purpose: 'Same `overview` / `activity` / `milestones` trisect as the user main bundle; merged admin only removes the SEARCH op from the `views` map if not surfaced in merged config.',\n displayPurpose: 'Org-facing achievements that roll up to tenant dashboards.',\n sections: {\n overview: { purpose: 'Org point total and headline.', whenToUse: 'Org home gamification when enabled.', textSlots: { title: { purpose: 'Org progression overview.' }, description: { purpose: 'Distinguish org totals from the sum of user rows — this is a single org-level document.' } } },\n activity: { purpose: 'Aggregated per-category and per-operation counts for the org channel.', whenToUse: 'When operators need to see which org events scored points.', textSlots: { title: { purpose: 'Activity stats.' }, description: { purpose: 'Keys follow the same `resourceType:operation` convention as user-level progression.' } } },\n milestones: { purpose: 'Milestone ref → achievement for org-wide quest completion.', whenToUse: 'When marketing or CS explains which org milestones are complete.', textSlots: { title: { purpose: 'Milestones block.' }, description: { purpose: 'May include zero or many entries depending on catalog wiring.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-only progression host in merged `guidance` bundles; not addressable in the default `views` array in presets.', whenToUse: 'Org achievement surfaces in admin/tenant UIs when routed.' },\n },\n }),\n);\n"]}
|
|
@@ -14,5 +14,6 @@ export * from './frontend-components';
|
|
|
14
14
|
export * from './full-custom-views';
|
|
15
15
|
export * from './notifications';
|
|
16
16
|
export * from './roles';
|
|
17
|
+
export * from './engine-resource-sub-domain';
|
|
17
18
|
export * from './engine-resource-specifications.registry';
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,2CAA2C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC"}
|
package/dist/esm/engine/index.js
CHANGED
|
@@ -14,5 +14,6 @@ export * from './frontend-components/index.js';
|
|
|
14
14
|
export * from './full-custom-views/index.js';
|
|
15
15
|
export * from './notifications/index.js';
|
|
16
16
|
export * from './roles/index.js';
|
|
17
|
+
export * from './engine-resource-sub-domain.js';
|
|
17
18
|
export * from './engine-resource-specifications.registry.js';
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,2CAA2C,CAAC","sourcesContent":["import './_bootstrap';\n\nexport * from './users';\nexport * from './organizations';\nexport * from './applications';\nexport * from './files';\nexport * from './infrastructure';\nexport * from './auth';\nexport * from './compliance';\nexport * from './billing';\nexport * from './errors';\nexport * from './guidance';\nexport * from './features';\nexport * from './frontend-components';\nexport * from './full-custom-views';\nexport * from './notifications';\nexport * from './roles';\nexport * from './engine-resource-specifications.registry';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC","sourcesContent":["import './_bootstrap';\n\nexport * from './users';\nexport * from './organizations';\nexport * from './applications';\nexport * from './files';\nexport * from './infrastructure';\nexport * from './auth';\nexport * from './compliance';\nexport * from './billing';\nexport * from './errors';\nexport * from './guidance';\nexport * from './features';\nexport * from './frontend-components';\nexport * from './full-custom-views';\nexport * from './notifications';\nexport * from './roles';\nexport * from './engine-resource-sub-domain';\nexport * from './engine-resource-specifications.registry';\n"]}
|
package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-seed-runs.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/data-seed-runs.resource.specification.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"data-seed-runs.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/data-seed-runs.resource.specification.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAGjI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,eAAO,MAAM,iCAAiC,EAAE,8BA+X/C,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@
|
|
|
3
3
|
import { DataSeedMode, DataSeedRunSchema, DataSeedRunStatus, DataSeedRunVariantKey, DataSeedScopeKind, DataSeedTriggerOrigin, dataSeedRunResourceConfiguration_InitializationFactory as dataSeedRunFactory, } from '@wildo-ai/saas-backend-lib/data-seeding-models';
|
|
4
4
|
import { CoreResourceOperation as Op, ResourcePrimaryScope } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
/**
|
|
7
8
|
* Framework-owned specification for the internal `dataSeedRuns` resource — the
|
|
8
9
|
* persistence ledger the data-seeding dispatcher writes one row to per pass.
|
|
@@ -61,6 +62,7 @@ export const dataSeedRunsResourceSpecification = resourceSpecification(dataSeedR
|
|
|
61
62
|
businessRole: 'Operational control-plane ledger used to make seeding idempotent across restarts, and to troubleshoot what a seeding pass inserted, upgraded, skipped, or failed on.',
|
|
62
63
|
lifecycleRole: 'Opens as a running pass when the dispatcher starts, then settles once into completed, partial, or failed. Deleting a settled row is the supported gesture for making the next pass treat that scope as un-run.',
|
|
63
64
|
audience: LabelAudience.DEVELOPER,
|
|
65
|
+
subDomain: EngineResourceSubDomain.INFRASTRUCTURE,
|
|
64
66
|
codeHandling: {
|
|
65
67
|
mainSchema: {
|
|
66
68
|
packageName: '@wildo-ai/saas-backend-lib',
|