@happyvertical/smrt-sales 0.55.6 → 0.55.7
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/agreements.js +1 -1
- package/dist/chunks/__smrt-register__-6w_3qeOs.js +6 -0
- package/dist/chunks/__smrt-register__-6w_3qeOs.js.map +1 -0
- package/dist/commissions.js +1 -1
- package/dist/crm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +13 -1
- package/dist/referrals.js +1 -1
- package/dist/smrt-knowledge.json +15 -3
- package/package.json +8 -8
- package/dist/chunks/__smrt-register__-eOj6oe0J.js +0 -6
- package/dist/chunks/__smrt-register__-eOj6oe0J.js.map +0 -1
package/dist/commissions.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./chunks/__smrt-register__-
|
|
1
|
+
import "./chunks/__smrt-register__-6w_3qeOs.js";
|
|
2
2
|
import { A as EARNING_EVENT_KINDS, C as COMMISSION_ADJUSTMENT_KINDS, D as COMMISSION_STATUSES, E as COMMISSION_PLAN_STATUSES, F as Commission, I as CommissionAdjustmentOperationCollection, L as CommissionAdjustmentOperation, M as CommissionPayoutCollection, N as CommissionPayout, O as EARNER_SOURCE_ATTRIBUTION_STATUSES, P as CommissionCollection, R as CommissionAdjustmentCollection, S as ADJUSTMENT_SETTLEABLE_COMMISSION_STATUSES, T as COMMISSION_PAYOUT_STATUSES, _ as EarnerCollection, a as CommissionBalanceService, b as CommissionPlan, c as CommissionAdjustmentValidationError, d as centsToAmount, f as roundCents, g as EarnerSourceAttribution, h as EarnerSourceAttributionCollection, i as CommissionCalculationService, j as PAYOUT_METHODS, k as EARNER_STATUSES, l as amountToCents, m as EarningEvent, n as CommissionSettlementService, o as CommissionAdjustmentReplayConflictError, p as EarningEventCollection, r as CommissionPayoutService, s as CommissionAdjustmentService, t as EarnerAttributionService, u as calculateCommissionAmountCents, v as Earner, w as COMMISSION_BASES, x as validateCommissionPlanComponents, y as CommissionPlanCollection, z as CommissionAdjustment } from "./chunks/commissions-Cs4MsxVg.js";
|
|
3
3
|
export { ADJUSTMENT_SETTLEABLE_COMMISSION_STATUSES, COMMISSION_ADJUSTMENT_KINDS, COMMISSION_BASES, COMMISSION_PAYOUT_STATUSES, COMMISSION_PLAN_STATUSES, COMMISSION_STATUSES, Commission, CommissionAdjustment, CommissionAdjustmentCollection, CommissionAdjustmentOperation, CommissionAdjustmentOperationCollection, CommissionAdjustmentReplayConflictError, CommissionAdjustmentService, CommissionAdjustmentValidationError, CommissionBalanceService, CommissionCalculationService, CommissionCollection, CommissionPayout, CommissionPayoutCollection, CommissionPayoutService, CommissionPlan, CommissionPlanCollection, CommissionSettlementService, EARNER_SOURCE_ATTRIBUTION_STATUSES, EARNER_STATUSES, EARNING_EVENT_KINDS, Earner, EarnerAttributionService, EarnerCollection, EarnerSourceAttribution, EarnerSourceAttributionCollection, EarningEvent, EarningEventCollection, PAYOUT_METHODS, amountToCents, calculateCommissionAmountCents, centsToAmount, roundCents, validateCommissionPlanComponents };
|
package/dist/crm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./chunks/__smrt-register__-
|
|
1
|
+
import "./chunks/__smrt-register__-6w_3qeOs.js";
|
|
2
2
|
import { C as PIPELINE_STATUSES, D as Lead, E as SALES_REPRESENTATIVE_STATUSES, S as OPPORTUNITY_STATUSES, T as SALES_ACTIVITY_SUBJECT_KINDS, _ as PipelineStage, a as projectLeadWorkQueue, b as DEFAULT_PIPELINE_STAGES, c as LeadCollection, d as PipelineDefinitionCollection, f as PipelineDefinition, g as PipelineStageCollection, h as SalesActivity, i as MAX_LEAD_WORKFLOW_TEXT_LENGTH, l as SalesRepresentativeCollection, m as SalesActivityCollection, n as LeadWorkflowService, o as OpportunityConversionCollection, p as OpportunityCollection, r as LeadWorkflowValidationError, s as OpportunityConversion, t as LEAD_HUMAN_ACTIVITY_KINDS, u as SalesRepresentative, v as Opportunity, w as SALES_ACTIVITY_KINDS, x as LEAD_STATUSES, y as DEFAULT_PIPELINE_KEY } from "./chunks/crm-B-irXbbr.js";
|
|
3
3
|
export { DEFAULT_PIPELINE_KEY, DEFAULT_PIPELINE_STAGES, LEAD_HUMAN_ACTIVITY_KINDS, LEAD_STATUSES, Lead, LeadCollection, LeadWorkflowService, LeadWorkflowValidationError, MAX_LEAD_WORKFLOW_TEXT_LENGTH, OPPORTUNITY_STATUSES, Opportunity, OpportunityCollection, OpportunityConversion, OpportunityConversionCollection, PIPELINE_STATUSES, PipelineDefinition, PipelineDefinitionCollection, PipelineStage, PipelineStageCollection, SALES_ACTIVITY_KINDS, SALES_ACTIVITY_SUBJECT_KINDS, SALES_REPRESENTATIVE_STATUSES, SalesActivity, SalesActivityCollection, SalesRepresentative, SalesRepresentativeCollection, projectLeadWorkQueue };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunks/__smrt-register__-
|
|
1
|
+
import "./chunks/__smrt-register__-6w_3qeOs.js";
|
|
2
2
|
import { a as AgreementExecutionEvent, c as AGREEMENT_EXECUTION_STATUSES, d as sanitizeSignerIntent, i as AgreementExecutionEventCollection, l as coerceAgreementDate, n as ExecutedAgreementCollection, o as AgreementExecutionCollection, r as ExecutedAgreement, s as AgreementExecution, t as AgreementExecutionService, u as sanitizeSignerEvidence } from "./chunks/agreements-BB_tNU0U.js";
|
|
3
3
|
import { A as EARNING_EVENT_KINDS, C as COMMISSION_ADJUSTMENT_KINDS, D as COMMISSION_STATUSES, E as COMMISSION_PLAN_STATUSES, F as Commission, I as CommissionAdjustmentOperationCollection, L as CommissionAdjustmentOperation, M as CommissionPayoutCollection, N as CommissionPayout, O as EARNER_SOURCE_ATTRIBUTION_STATUSES, P as CommissionCollection, R as CommissionAdjustmentCollection, S as ADJUSTMENT_SETTLEABLE_COMMISSION_STATUSES, T as COMMISSION_PAYOUT_STATUSES, _ as EarnerCollection, a as CommissionBalanceService, b as CommissionPlan, c as CommissionAdjustmentValidationError, d as centsToAmount, f as roundCents, g as EarnerSourceAttribution, h as EarnerSourceAttributionCollection, i as CommissionCalculationService, j as PAYOUT_METHODS, k as EARNER_STATUSES, l as amountToCents, m as EarningEvent, n as CommissionSettlementService, o as CommissionAdjustmentReplayConflictError, p as EarningEventCollection, r as CommissionPayoutService, s as CommissionAdjustmentService, t as EarnerAttributionService, u as calculateCommissionAmountCents, v as Earner, w as COMMISSION_BASES, x as validateCommissionPlanComponents, y as CommissionPlanCollection, z as CommissionAdjustment } from "./chunks/commissions-Cs4MsxVg.js";
|
|
4
4
|
import { C as PIPELINE_STATUSES, D as Lead, E as SALES_REPRESENTATIVE_STATUSES, S as OPPORTUNITY_STATUSES, T as SALES_ACTIVITY_SUBJECT_KINDS, _ as PipelineStage, a as projectLeadWorkQueue, b as DEFAULT_PIPELINE_STAGES, c as LeadCollection, d as PipelineDefinitionCollection, f as PipelineDefinition, g as PipelineStageCollection, h as SalesActivity, i as MAX_LEAD_WORKFLOW_TEXT_LENGTH, l as SalesRepresentativeCollection, m as SalesActivityCollection, n as LeadWorkflowService, o as OpportunityConversionCollection, p as OpportunityCollection, r as LeadWorkflowValidationError, s as OpportunityConversion, t as LEAD_HUMAN_ACTIVITY_KINDS, u as SalesRepresentative, v as Opportunity, w as SALES_ACTIVITY_KINDS, x as LEAD_STATUSES, y as DEFAULT_PIPELINE_KEY } from "./chunks/crm-B-irXbbr.js";
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-sales",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.7",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-sales:AgreementExecutionCollection": {
|
|
8
8
|
"name": "agreementexecutioncollection",
|
|
@@ -5232,6 +5232,7 @@
|
|
|
5232
5232
|
"className": "CommissionAdjustmentOperation",
|
|
5233
5233
|
"qualifiedName": "@happyvertical/smrt-sales:CommissionAdjustmentOperation",
|
|
5234
5234
|
"collection": "commissionadjustmentoperations",
|
|
5235
|
+
"description": "One globally unique adjustment operation UUID mapped to its adjustment.",
|
|
5235
5236
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/commissions/models/CommissionAdjustmentOperation.ts",
|
|
5236
5237
|
"packageName": "@happyvertical/smrt-sales",
|
|
5237
5238
|
"fields": {
|
|
@@ -8379,6 +8380,7 @@
|
|
|
8379
8380
|
"className": "Lead",
|
|
8380
8381
|
"qualifiedName": "@happyvertical/smrt-sales:Lead",
|
|
8381
8382
|
"collection": "leads",
|
|
8383
|
+
"description": "Lead is an identified prospect: a person/organization that showed intent but has not yet been qualified into an Opportunity.",
|
|
8382
8384
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/Lead.ts",
|
|
8383
8385
|
"packageName": "@happyvertical/smrt-sales",
|
|
8384
8386
|
"fields": {
|
|
@@ -8778,6 +8780,7 @@
|
|
|
8778
8780
|
"className": "Opportunity",
|
|
8779
8781
|
"qualifiedName": "@happyvertical/smrt-sales:Opportunity",
|
|
8780
8782
|
"collection": "opportunities",
|
|
8783
|
+
"description": "Opportunity is a qualified engagement: a deal with an expected value moving through the stages of a PipelineDefinition.",
|
|
8781
8784
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/Opportunity.ts",
|
|
8782
8785
|
"packageName": "@happyvertical/smrt-sales",
|
|
8783
8786
|
"fields": {
|
|
@@ -9179,6 +9182,7 @@
|
|
|
9179
9182
|
"className": "OpportunityConversion",
|
|
9180
9183
|
"qualifiedName": "@happyvertical/smrt-sales:OpportunityConversion",
|
|
9181
9184
|
"collection": "opportunityconversions",
|
|
9185
|
+
"description": "OpportunityConversion records that a WON opportunity materialized into a downstream record — a client, project, contract, subscription, or any caller-defined kind.",
|
|
9182
9186
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/OpportunityConversion.ts",
|
|
9183
9187
|
"packageName": "@happyvertical/smrt-sales",
|
|
9184
9188
|
"fields": {
|
|
@@ -9417,6 +9421,7 @@
|
|
|
9417
9421
|
"className": "PipelineDefinition",
|
|
9418
9422
|
"qualifiedName": "@happyvertical/smrt-sales:PipelineDefinition",
|
|
9419
9423
|
"collection": "pipelinedefinitions",
|
|
9424
|
+
"description": "PipelineDefinition names an ordered set of stages that opportunities move through. Pipelines are configuration rows, not code: tenants can run several (e.g.",
|
|
9420
9425
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/PipelineDefinition.ts",
|
|
9421
9426
|
"packageName": "@happyvertical/smrt-sales",
|
|
9422
9427
|
"fields": {
|
|
@@ -9636,6 +9641,7 @@
|
|
|
9636
9641
|
"className": "PipelineStage",
|
|
9637
9642
|
"qualifiedName": "@happyvertical/smrt-sales:PipelineStage",
|
|
9638
9643
|
"collection": "pipelinestages",
|
|
9644
|
+
"description": "PipelineStage is a configurable step within a pipeline.",
|
|
9639
9645
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/PipelineStage.ts",
|
|
9640
9646
|
"packageName": "@happyvertical/smrt-sales",
|
|
9641
9647
|
"fields": {
|
|
@@ -9899,6 +9905,7 @@
|
|
|
9899
9905
|
"className": "SalesActivity",
|
|
9900
9906
|
"qualifiedName": "@happyvertical/smrt-sales:SalesActivity",
|
|
9901
9907
|
"collection": "salesactivities",
|
|
9908
|
+
"description": "SalesActivity is the shared trail for Leads and Opportunities: human touchpoints (note, call, email, meeting), next actions (task with dueAt/completedAt), and framework-written audit rows…",
|
|
9902
9909
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/SalesActivity.ts",
|
|
9903
9910
|
"packageName": "@happyvertical/smrt-sales",
|
|
9904
9911
|
"fields": {
|
|
@@ -10152,6 +10159,7 @@
|
|
|
10152
10159
|
"className": "SalesRepresentative",
|
|
10153
10160
|
"qualifiedName": "@happyvertical/smrt-sales:SalesRepresentative",
|
|
10154
10161
|
"collection": "salesrepresentatives",
|
|
10162
|
+
"description": "SalesRepresentative is a ROLE model: it links an identity (smrt-profiles Profile) to sales ownership (Leads/Opportunities reference ownerRepId).",
|
|
10155
10163
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/SalesRepresentative.ts",
|
|
10156
10164
|
"packageName": "@happyvertical/smrt-sales",
|
|
10157
10165
|
"fields": {
|
|
@@ -14099,6 +14107,7 @@
|
|
|
14099
14107
|
"className": "ReferralClickOperation",
|
|
14100
14108
|
"qualifiedName": "@happyvertical/smrt-sales:ReferralClickOperation",
|
|
14101
14109
|
"collection": "referralclickoperations",
|
|
14110
|
+
"description": "One globally unique caller replay key mapped to its immutable click touch.",
|
|
14102
14111
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/ReferralClickOperation.ts",
|
|
14103
14112
|
"packageName": "@happyvertical/smrt-sales",
|
|
14104
14113
|
"fields": {
|
|
@@ -14343,6 +14352,7 @@
|
|
|
14343
14352
|
"className": "ReferralLink",
|
|
14344
14353
|
"qualifiedName": "@happyvertical/smrt-sales:ReferralLink",
|
|
14345
14354
|
"collection": "referrallinks",
|
|
14355
|
+
"description": "A ReferralLink is the shareable artifact a Referrer distributes: a globally unique code (natural key ['code'] — codes resolve without knowing the tenant/program) plus an optional destination…",
|
|
14346
14356
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/ReferralLink.ts",
|
|
14347
14357
|
"packageName": "@happyvertical/smrt-sales",
|
|
14348
14358
|
"fields": {
|
|
@@ -14641,6 +14651,7 @@
|
|
|
14641
14651
|
"className": "ReferralProgram",
|
|
14642
14652
|
"qualifiedName": "@happyvertical/smrt-sales:ReferralProgram",
|
|
14643
14653
|
"collection": "referralprograms",
|
|
14654
|
+
"description": "A ReferralProgram anchors links, touches, referrals, agreements, and exceptions, and carries the program-level DEFAULTS:",
|
|
14644
14655
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/ReferralProgram.ts",
|
|
14645
14656
|
"packageName": "@happyvertical/smrt-sales",
|
|
14646
14657
|
"fields": {
|
|
@@ -15493,6 +15504,7 @@
|
|
|
15493
15504
|
"className": "Referrer",
|
|
15494
15505
|
"qualifiedName": "@happyvertical/smrt-sales:Referrer",
|
|
15495
15506
|
"collection": "referrers",
|
|
15507
|
+
"description": "Referrer is a ROLE model: it links an identity (smrt-profiles Profile) to referral activity (ReferralLinks, ReferralTouches, and Referrals reference referrerId).",
|
|
15496
15508
|
"filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/Referrer.ts",
|
|
15497
15509
|
"packageName": "@happyvertical/smrt-sales",
|
|
15498
15510
|
"fields": {
|
package/dist/referrals.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./chunks/__smrt-register__-
|
|
1
|
+
import "./chunks/__smrt-register__-6w_3qeOs.js";
|
|
2
2
|
import { A as ReferralClickOperation, B as ATTRIBUTION_RESOLUTION_MODES, C as ReferralTouchCollection, D as ReferralCollection, E as assertHttpTargetUrl, F as validateAttributionPolicyTerms, G as REFERRAL_STATUSES, H as REFERRAL_AGREEMENT_STATUSES, I as ATTRIBUTION_CONFLICT_BEHAVIORS, J as AttributionExceptionCollection, K as REFERRAL_TOUCH_KINDS, L as ATTRIBUTION_CREDIT_MODES, M as ReferralAgreement, N as AttributionPolicyCollection, O as Referral, P as AttributionPolicy, R as ATTRIBUTION_EXCEPTION_STATUSES, S as generateReferralCode, T as ReferralLink, U as REFERRAL_LINK_STATUSES, V as REFERRAL_AGREEMENT_APPROVAL_MODES, W as REFERRAL_PROGRAM_STATUSES, Y as AttributionException, _ as REFERRAL_CODE_ALPHABET, a as ReferralAgreementExecutionService, b as ReferralClickValidationError, c as ReferrerCollection, d as ReferralTermSnapshot, f as ReferralProgramCollection, g as MAX_REFERRAL_CLICK_IDEMPOTENCY_KEY_BYTES, h as MAX_CODE_GENERATION_ATTEMPTS, i as REFERRAL_AGREEMENT_SOURCE_KIND, j as ReferralAgreementCollection, k as ReferralClickOperationCollection, l as Referrer, m as DEFAULT_REFERRAL_CLICK_EVIDENCE_MAX_BYTES, n as REFERRAL_TERMS_SNAPSHOT_KIND, o as AttributionService, p as ReferralProgram, q as REFERRER_STATUSES, r as ReferralCommissionService, s as QualifiedReferralOverrideError, t as ReferralQualificationService, u as ReferralTermSnapshotCollection, v as REFERRAL_CODE_LENGTH, w as ReferralTouch, x as ReferralLinkCollection, y as ReferralClickReplayConflictError, z as ATTRIBUTION_POLICY_STATUSES } from "./chunks/referrals-CrFDsdq-.js";
|
|
3
3
|
export { ATTRIBUTION_CONFLICT_BEHAVIORS, ATTRIBUTION_CREDIT_MODES, ATTRIBUTION_EXCEPTION_STATUSES, ATTRIBUTION_POLICY_STATUSES, ATTRIBUTION_RESOLUTION_MODES, AttributionException, AttributionExceptionCollection, AttributionPolicy, AttributionPolicyCollection, AttributionService, DEFAULT_REFERRAL_CLICK_EVIDENCE_MAX_BYTES, MAX_CODE_GENERATION_ATTEMPTS, MAX_REFERRAL_CLICK_IDEMPOTENCY_KEY_BYTES, QualifiedReferralOverrideError, REFERRAL_AGREEMENT_APPROVAL_MODES, REFERRAL_AGREEMENT_SOURCE_KIND, REFERRAL_AGREEMENT_STATUSES, REFERRAL_CODE_ALPHABET, REFERRAL_CODE_LENGTH, REFERRAL_LINK_STATUSES, REFERRAL_PROGRAM_STATUSES, REFERRAL_STATUSES, REFERRAL_TERMS_SNAPSHOT_KIND, REFERRAL_TOUCH_KINDS, REFERRER_STATUSES, Referral, ReferralAgreement, ReferralAgreementCollection, ReferralAgreementExecutionService, ReferralClickOperation, ReferralClickOperationCollection, ReferralClickReplayConflictError, ReferralClickValidationError, ReferralCollection, ReferralCommissionService, ReferralLink, ReferralLinkCollection, ReferralProgram, ReferralProgramCollection, ReferralQualificationService, ReferralTermSnapshot, ReferralTermSnapshotCollection, ReferralTouch, ReferralTouchCollection, Referrer, ReferrerCollection, assertHttpTargetUrl, generateReferralCode, validateAttributionPolicyTerms };
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-sales",
|
|
6
|
-
"packageVersion": "0.55.
|
|
6
|
+
"packageVersion": "0.55.7",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "333b2ff5348ef1202928f3c8122fecaa72b81d590faa16e1e0c6d563f9055f71",
|
|
11
|
+
"packageJson": "b98739c9f532257b5fb563aea8c760a258bb357a5fde080b01c44ae57cb29a5c",
|
|
12
12
|
"agents": "3100099d7cef116237e4deb4f83e32d836f3cc26e0f68a7dd55f14de942eda11",
|
|
13
13
|
"moduleDoc:agents/agreements.md": "eb6ff147a0f60ee627d3337e8e9394d06fda955b4a4fff228537a9bd2803f886",
|
|
14
14
|
"moduleDoc:agents/commissions.md": "e047024aafe5edcf072c1a6b7ea253c24cb15f2fa1beb2edd13651e735921f73",
|
|
@@ -3120,6 +3120,7 @@
|
|
|
3120
3120
|
"name": "CommissionAdjustmentOperation",
|
|
3121
3121
|
"qualifiedName": "@happyvertical/smrt-sales:CommissionAdjustmentOperation",
|
|
3122
3122
|
"collection": "commissionadjustmentoperations",
|
|
3123
|
+
"description": "One globally unique adjustment operation UUID mapped to its adjustment.",
|
|
3123
3124
|
"tableName": "commission_adjustment_operations",
|
|
3124
3125
|
"packageName": "@happyvertical/smrt-sales",
|
|
3125
3126
|
"extends": "SmrtObject",
|
|
@@ -5395,6 +5396,7 @@
|
|
|
5395
5396
|
"qualifiedName": "@happyvertical/smrt-sales:Lead",
|
|
5396
5397
|
"displayLabelField": "name",
|
|
5397
5398
|
"collection": "leads",
|
|
5399
|
+
"description": "Lead is an identified prospect: a person/organization that showed intent but has not yet been qualified into an Opportunity.",
|
|
5398
5400
|
"tableName": "leads",
|
|
5399
5401
|
"packageName": "@happyvertical/smrt-sales",
|
|
5400
5402
|
"extends": "SmrtObject",
|
|
@@ -5784,6 +5786,7 @@
|
|
|
5784
5786
|
"qualifiedName": "@happyvertical/smrt-sales:Opportunity",
|
|
5785
5787
|
"displayLabelField": "name",
|
|
5786
5788
|
"collection": "opportunities",
|
|
5789
|
+
"description": "Opportunity is a qualified engagement: a deal with an expected value moving through the stages of a PipelineDefinition.",
|
|
5787
5790
|
"tableName": "opportunities",
|
|
5788
5791
|
"packageName": "@happyvertical/smrt-sales",
|
|
5789
5792
|
"extends": "SmrtObject",
|
|
@@ -6138,6 +6141,7 @@
|
|
|
6138
6141
|
"name": "OpportunityConversion",
|
|
6139
6142
|
"qualifiedName": "@happyvertical/smrt-sales:OpportunityConversion",
|
|
6140
6143
|
"collection": "opportunityconversions",
|
|
6144
|
+
"description": "OpportunityConversion records that a WON opportunity materialized into a downstream record — a client, project, contract, subscription, or any caller-defined kind.",
|
|
6141
6145
|
"tableName": "opportunity_conversions",
|
|
6142
6146
|
"packageName": "@happyvertical/smrt-sales",
|
|
6143
6147
|
"extends": "SmrtObject",
|
|
@@ -6299,6 +6303,7 @@
|
|
|
6299
6303
|
"qualifiedName": "@happyvertical/smrt-sales:PipelineDefinition",
|
|
6300
6304
|
"displayLabelField": "name",
|
|
6301
6305
|
"collection": "pipelinedefinitions",
|
|
6306
|
+
"description": "PipelineDefinition names an ordered set of stages that opportunities move through. Pipelines are configuration rows, not code: tenants can run several (e.g.",
|
|
6302
6307
|
"tableName": "pipeline_definitions",
|
|
6303
6308
|
"packageName": "@happyvertical/smrt-sales",
|
|
6304
6309
|
"extends": "SmrtObject",
|
|
@@ -6505,6 +6510,7 @@
|
|
|
6505
6510
|
"qualifiedName": "@happyvertical/smrt-sales:PipelineStage",
|
|
6506
6511
|
"displayLabelField": "name",
|
|
6507
6512
|
"collection": "pipelinestages",
|
|
6513
|
+
"description": "PipelineStage is a configurable step within a pipeline.",
|
|
6508
6514
|
"tableName": "pipeline_stages",
|
|
6509
6515
|
"packageName": "@happyvertical/smrt-sales",
|
|
6510
6516
|
"extends": "SmrtObject",
|
|
@@ -6692,6 +6698,7 @@
|
|
|
6692
6698
|
"name": "SalesActivity",
|
|
6693
6699
|
"qualifiedName": "@happyvertical/smrt-sales:SalesActivity",
|
|
6694
6700
|
"collection": "salesactivities",
|
|
6701
|
+
"description": "SalesActivity is the shared trail for Leads and Opportunities: human touchpoints (note, call, email, meeting), next actions (task with dueAt/completedAt), and framework-written audit rows…",
|
|
6695
6702
|
"tableName": "sales_activities",
|
|
6696
6703
|
"packageName": "@happyvertical/smrt-sales",
|
|
6697
6704
|
"extends": "SmrtObject",
|
|
@@ -6884,6 +6891,7 @@
|
|
|
6884
6891
|
"qualifiedName": "@happyvertical/smrt-sales:SalesRepresentative",
|
|
6885
6892
|
"displayLabelField": "title",
|
|
6886
6893
|
"collection": "salesrepresentatives",
|
|
6894
|
+
"description": "SalesRepresentative is a ROLE model: it links an identity (smrt-profiles Profile) to sales ownership (Leads/Opportunities reference ownerRepId).",
|
|
6887
6895
|
"tableName": "sales_representatives",
|
|
6888
6896
|
"packageName": "@happyvertical/smrt-sales",
|
|
6889
6897
|
"extends": "SmrtObject",
|
|
@@ -9771,6 +9779,7 @@
|
|
|
9771
9779
|
"name": "ReferralClickOperation",
|
|
9772
9780
|
"qualifiedName": "@happyvertical/smrt-sales:ReferralClickOperation",
|
|
9773
9781
|
"collection": "referralclickoperations",
|
|
9782
|
+
"description": "One globally unique caller replay key mapped to its immutable click touch.",
|
|
9774
9783
|
"tableName": "referral_click_operations",
|
|
9775
9784
|
"packageName": "@happyvertical/smrt-sales",
|
|
9776
9785
|
"extends": "SmrtObject",
|
|
@@ -9866,6 +9875,7 @@
|
|
|
9866
9875
|
"qualifiedName": "@happyvertical/smrt-sales:ReferralLink",
|
|
9867
9876
|
"displayLabelField": "label",
|
|
9868
9877
|
"collection": "referrallinks",
|
|
9878
|
+
"description": "A ReferralLink is the shareable artifact a Referrer distributes: a globally unique code (natural key ['code'] — codes resolve without knowing the tenant/program) plus an optional destination…",
|
|
9869
9879
|
"tableName": "referral_links",
|
|
9870
9880
|
"packageName": "@happyvertical/smrt-sales",
|
|
9871
9881
|
"extends": "SmrtObject",
|
|
@@ -10127,6 +10137,7 @@
|
|
|
10127
10137
|
"qualifiedName": "@happyvertical/smrt-sales:ReferralProgram",
|
|
10128
10138
|
"displayLabelField": "name",
|
|
10129
10139
|
"collection": "referralprograms",
|
|
10140
|
+
"description": "A ReferralProgram anchors links, touches, referrals, agreements, and exceptions, and carries the program-level DEFAULTS:",
|
|
10130
10141
|
"tableName": "referral_programs",
|
|
10131
10142
|
"packageName": "@happyvertical/smrt-sales",
|
|
10132
10143
|
"extends": "SmrtObject",
|
|
@@ -10786,6 +10797,7 @@
|
|
|
10786
10797
|
"name": "Referrer",
|
|
10787
10798
|
"qualifiedName": "@happyvertical/smrt-sales:Referrer",
|
|
10788
10799
|
"collection": "referrers",
|
|
10800
|
+
"description": "Referrer is a ROLE model: it links an identity (smrt-profiles Profile) to referral activity (ReferralLinks, ReferralTouches, and Referrals reference referrerId).",
|
|
10789
10801
|
"tableName": "referrers",
|
|
10790
10802
|
"packageName": "@happyvertical/smrt-sales",
|
|
10791
10803
|
"extends": "SmrtObject",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-sales",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.7",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Modular sales for the SMRT framework: agreement execution, CRM, referral intake, neutral commissions, and reusable Svelte surfaces",
|
|
6
6
|
"type": "module",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"./manifest.json": "./dist/manifest.json"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@happyvertical/signatures": "^0.102.
|
|
46
|
-
"@happyvertical/smrt-assets": "0.55.
|
|
47
|
-
"@happyvertical/smrt-core": "0.55.
|
|
48
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
49
|
-
"@happyvertical/smrt-ui": "0.55.
|
|
50
|
-
"@happyvertical/sql": "^0.102.
|
|
45
|
+
"@happyvertical/signatures": "^0.102.5",
|
|
46
|
+
"@happyvertical/smrt-assets": "0.55.7",
|
|
47
|
+
"@happyvertical/smrt-core": "0.55.7",
|
|
48
|
+
"@happyvertical/smrt-tenancy": "0.55.7",
|
|
49
|
+
"@happyvertical/smrt-ui": "0.55.7",
|
|
50
|
+
"@happyvertical/sql": "^0.102.5"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"svelte": "^5.57.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
56
|
+
"@happyvertical/smrt-vitest": "0.55.7",
|
|
57
57
|
"@sveltejs/package": "^2.5.8",
|
|
58
58
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
59
59
|
"@types/node": "24.13.6",
|