@happyvertical/smrt-sales 0.55.6 → 0.55.8

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-sales",
5
- "packageVersion": "0.55.6",
5
+ "packageVersion": "0.55.8",
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": {
@@ -8404,29 +8406,47 @@
8404
8406
  "type": "text",
8405
8407
  "required": true,
8406
8408
  "default": "",
8409
+ "description": "What you call this lead.",
8407
8410
  "_meta": {
8408
- "required": true
8411
+ "required": true,
8412
+ "description": "What you call this lead."
8409
8413
  }
8410
8414
  },
8411
8415
  "contactName": {
8412
8416
  "type": "text",
8413
8417
  "required": false,
8414
- "default": ""
8418
+ "default": "",
8419
+ "description": "The person to talk to.",
8420
+ "_meta": {
8421
+ "description": "The person to talk to."
8422
+ }
8415
8423
  },
8416
8424
  "email": {
8417
8425
  "type": "text",
8418
8426
  "required": false,
8419
- "default": ""
8427
+ "default": "",
8428
+ "description": "Their email address.",
8429
+ "_meta": {
8430
+ "description": "Their email address."
8431
+ }
8420
8432
  },
8421
8433
  "phone": {
8422
8434
  "type": "text",
8423
8435
  "required": false,
8424
- "default": ""
8436
+ "default": "",
8437
+ "description": "Their phone number.",
8438
+ "_meta": {
8439
+ "description": "Their phone number."
8440
+ }
8425
8441
  },
8426
8442
  "organizationName": {
8427
8443
  "type": "text",
8428
8444
  "required": false,
8429
- "default": ""
8445
+ "default": "",
8446
+ "description": "The company they are with.",
8447
+ "_meta": {
8448
+ "description": "The company they are with."
8449
+ }
8430
8450
  },
8431
8451
  "profileId": {
8432
8452
  "type": "crossPackageRef",
@@ -8436,12 +8456,20 @@
8436
8456
  "ownerRepId": {
8437
8457
  "type": "foreignKey",
8438
8458
  "required": false,
8439
- "related": "SalesRepresentative"
8459
+ "related": "SalesRepresentative",
8460
+ "description": "The sales representative who owns this lead.",
8461
+ "_meta": {
8462
+ "description": "The sales representative who owns this lead."
8463
+ }
8440
8464
  },
8441
8465
  "status": {
8442
8466
  "type": "text",
8443
8467
  "required": false,
8444
- "default": "new"
8468
+ "default": "new",
8469
+ "description": "Where the lead stands, for example new or qualified.",
8470
+ "_meta": {
8471
+ "description": "Where the lead stands, for example new or qualified."
8472
+ }
8445
8473
  },
8446
8474
  "sourceKind": {
8447
8475
  "type": "text",
@@ -8778,6 +8806,7 @@
8778
8806
  "className": "Opportunity",
8779
8807
  "qualifiedName": "@happyvertical/smrt-sales:Opportunity",
8780
8808
  "collection": "opportunities",
8809
+ "description": "Opportunity is a qualified engagement: a deal with an expected value moving through the stages of a PipelineDefinition.",
8781
8810
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/Opportunity.ts",
8782
8811
  "packageName": "@happyvertical/smrt-sales",
8783
8812
  "fields": {
@@ -8803,53 +8832,91 @@
8803
8832
  "type": "text",
8804
8833
  "required": true,
8805
8834
  "default": "",
8835
+ "description": "What you call this deal.",
8806
8836
  "_meta": {
8807
- "required": true
8837
+ "required": true,
8838
+ "description": "What you call this deal."
8808
8839
  }
8809
8840
  },
8810
8841
  "leadId": {
8811
8842
  "type": "foreignKey",
8812
8843
  "required": false,
8813
- "related": "Lead"
8844
+ "related": "Lead",
8845
+ "description": "The lead it came from.",
8846
+ "_meta": {
8847
+ "description": "The lead it came from."
8848
+ }
8814
8849
  },
8815
8850
  "ownerRepId": {
8816
8851
  "type": "foreignKey",
8817
8852
  "required": false,
8818
- "related": "SalesRepresentative"
8853
+ "related": "SalesRepresentative",
8854
+ "description": "The sales representative who owns this deal.",
8855
+ "_meta": {
8856
+ "description": "The sales representative who owns this deal."
8857
+ }
8819
8858
  },
8820
8859
  "pipelineId": {
8821
8860
  "type": "foreignKey",
8822
8861
  "required": false,
8823
- "related": "PipelineDefinition"
8862
+ "related": "PipelineDefinition",
8863
+ "description": "The pipeline it moves through.",
8864
+ "_meta": {
8865
+ "description": "The pipeline it moves through."
8866
+ }
8824
8867
  },
8825
8868
  "stageId": {
8826
8869
  "type": "foreignKey",
8827
8870
  "required": false,
8828
- "related": "PipelineStage"
8871
+ "related": "PipelineStage",
8872
+ "description": "The stage it is at now.",
8873
+ "_meta": {
8874
+ "description": "The stage it is at now."
8875
+ }
8829
8876
  },
8830
8877
  "expectedValueCents": {
8831
8878
  "type": "integer",
8832
8879
  "required": false,
8833
- "default": 0
8880
+ "default": 0,
8881
+ "description": "What you expect the deal to be worth, in cents.",
8882
+ "_meta": {
8883
+ "description": "What you expect the deal to be worth, in cents."
8884
+ }
8834
8885
  },
8835
8886
  "currency": {
8836
8887
  "type": "text",
8837
8888
  "required": false,
8838
- "default": "USD"
8889
+ "default": "USD",
8890
+ "description": "The currency of that value.",
8891
+ "_meta": {
8892
+ "description": "The currency of that value."
8893
+ }
8839
8894
  },
8840
8895
  "probability": {
8841
8896
  "type": "decimal",
8842
8897
  "required": false,
8843
- "default": 0
8898
+ "default": 0,
8899
+ "description": "How likely it is to close, as a decimal (0.5 is 50%).",
8900
+ "_meta": {
8901
+ "description": "How likely it is to close, as a decimal (0.5 is 50%)."
8902
+ }
8844
8903
  },
8845
8904
  "expectedCloseAt": {
8846
8905
  "type": "datetime",
8847
- "required": false
8906
+ "required": false,
8907
+ "description": "When you expect it to close.",
8908
+ "_meta": {
8909
+ "description": "When you expect it to close."
8910
+ }
8848
8911
  },
8849
8912
  "status": {
8850
8913
  "type": "text",
8851
8914
  "required": false,
8852
- "default": "open"
8915
+ "default": "open",
8916
+ "description": "open, won or lost.",
8917
+ "_meta": {
8918
+ "description": "open, won or lost."
8919
+ }
8853
8920
  },
8854
8921
  "outcomeReason": {
8855
8922
  "type": "text",
@@ -9179,6 +9246,7 @@
9179
9246
  "className": "OpportunityConversion",
9180
9247
  "qualifiedName": "@happyvertical/smrt-sales:OpportunityConversion",
9181
9248
  "collection": "opportunityconversions",
9249
+ "description": "OpportunityConversion records that a WON opportunity materialized into a downstream record — a client, project, contract, subscription, or any caller-defined kind.",
9182
9250
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/OpportunityConversion.ts",
9183
9251
  "packageName": "@happyvertical/smrt-sales",
9184
9252
  "fields": {
@@ -9417,6 +9485,7 @@
9417
9485
  "className": "PipelineDefinition",
9418
9486
  "qualifiedName": "@happyvertical/smrt-sales:PipelineDefinition",
9419
9487
  "collection": "pipelinedefinitions",
9488
+ "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
9489
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/PipelineDefinition.ts",
9421
9490
  "packageName": "@happyvertical/smrt-sales",
9422
9491
  "fields": {
@@ -9442,29 +9511,47 @@
9442
9511
  "type": "text",
9443
9512
  "required": true,
9444
9513
  "default": "",
9514
+ "description": "A short code for the pipeline.",
9445
9515
  "_meta": {
9446
- "required": true
9516
+ "required": true,
9517
+ "description": "A short code for the pipeline."
9447
9518
  }
9448
9519
  },
9449
9520
  "name": {
9450
9521
  "type": "text",
9451
9522
  "required": false,
9452
- "default": ""
9523
+ "default": "",
9524
+ "description": "What the pipeline is called.",
9525
+ "_meta": {
9526
+ "description": "What the pipeline is called."
9527
+ }
9453
9528
  },
9454
9529
  "isDefault": {
9455
9530
  "type": "boolean",
9456
9531
  "required": false,
9457
- "default": false
9532
+ "default": false,
9533
+ "description": "Whether this is the default pipeline for new deals.",
9534
+ "_meta": {
9535
+ "description": "Whether this is the default pipeline for new deals."
9536
+ }
9458
9537
  },
9459
9538
  "status": {
9460
9539
  "type": "text",
9461
9540
  "required": false,
9462
- "default": "active"
9541
+ "default": "active",
9542
+ "description": "Whether the pipeline is active (accepts new deals) or archived.",
9543
+ "_meta": {
9544
+ "description": "Whether the pipeline is active (accepts new deals) or archived."
9545
+ }
9463
9546
  },
9464
9547
  "metadata": {
9465
9548
  "type": "text",
9466
9549
  "required": false,
9467
- "default": "{}"
9550
+ "default": "{}",
9551
+ "description": "Extra details kept with the pipeline.",
9552
+ "_meta": {
9553
+ "description": "Extra details kept with the pipeline."
9554
+ }
9468
9555
  }
9469
9556
  },
9470
9557
  "methods": {
@@ -9636,6 +9723,7 @@
9636
9723
  "className": "PipelineStage",
9637
9724
  "qualifiedName": "@happyvertical/smrt-sales:PipelineStage",
9638
9725
  "collection": "pipelinestages",
9726
+ "description": "PipelineStage is a configurable step within a pipeline.",
9639
9727
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/PipelineStage.ts",
9640
9728
  "packageName": "@happyvertical/smrt-sales",
9641
9729
  "fields": {
@@ -9661,7 +9749,9 @@
9661
9749
  "type": "foreignKey",
9662
9750
  "required": true,
9663
9751
  "related": "PipelineDefinition",
9752
+ "description": "The pipeline this stage belongs to.",
9664
9753
  "_meta": {
9754
+ "description": "The pipeline this stage belongs to.",
9665
9755
  "required": true
9666
9756
  }
9667
9757
  },
@@ -9669,34 +9759,56 @@
9669
9759
  "type": "text",
9670
9760
  "required": true,
9671
9761
  "default": "",
9762
+ "description": "A short code for the stage.",
9672
9763
  "_meta": {
9673
- "required": true
9764
+ "required": true,
9765
+ "description": "A short code for the stage."
9674
9766
  }
9675
9767
  },
9676
9768
  "name": {
9677
9769
  "type": "text",
9678
9770
  "required": false,
9679
- "default": ""
9771
+ "default": "",
9772
+ "description": "What the stage is called.",
9773
+ "_meta": {
9774
+ "description": "What the stage is called."
9775
+ }
9680
9776
  },
9681
9777
  "sortOrder": {
9682
9778
  "type": "integer",
9683
9779
  "required": false,
9684
- "default": 0
9780
+ "default": 0,
9781
+ "description": "Where it comes in the pipeline.",
9782
+ "_meta": {
9783
+ "description": "Where it comes in the pipeline."
9784
+ }
9685
9785
  },
9686
9786
  "probability": {
9687
9787
  "type": "decimal",
9688
9788
  "required": false,
9689
- "default": 0
9789
+ "default": 0,
9790
+ "description": "How likely a deal at this stage is to close, as a decimal.",
9791
+ "_meta": {
9792
+ "description": "How likely a deal at this stage is to close, as a decimal."
9793
+ }
9690
9794
  },
9691
9795
  "isWon": {
9692
9796
  "type": "boolean",
9693
9797
  "required": false,
9694
- "default": false
9798
+ "default": false,
9799
+ "description": "Whether reaching this stage closes the deal as won.",
9800
+ "_meta": {
9801
+ "description": "Whether reaching this stage closes the deal as won."
9802
+ }
9695
9803
  },
9696
9804
  "isLost": {
9697
9805
  "type": "boolean",
9698
9806
  "required": false,
9699
- "default": false
9807
+ "default": false,
9808
+ "description": "Whether reaching this stage closes the deal as lost.",
9809
+ "_meta": {
9810
+ "description": "Whether reaching this stage closes the deal as lost."
9811
+ }
9700
9812
  },
9701
9813
  "metadata": {
9702
9814
  "type": "text",
@@ -9899,6 +10011,7 @@
9899
10011
  "className": "SalesActivity",
9900
10012
  "qualifiedName": "@happyvertical/smrt-sales:SalesActivity",
9901
10013
  "collection": "salesactivities",
10014
+ "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
10015
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/SalesActivity.ts",
9903
10016
  "packageName": "@happyvertical/smrt-sales",
9904
10017
  "fields": {
@@ -9923,33 +10036,55 @@
9923
10036
  "subjectKind": {
9924
10037
  "type": "text",
9925
10038
  "required": false,
9926
- "default": "lead"
10039
+ "default": "lead",
10040
+ "description": "What the activity is about: a lead or an opportunity.",
10041
+ "_meta": {
10042
+ "description": "What the activity is about: a lead or an opportunity."
10043
+ }
9927
10044
  },
9928
10045
  "subjectId": {
9929
10046
  "type": "text",
9930
10047
  "required": true,
9931
10048
  "default": "",
10049
+ "description": "The lead or opportunity it is about.",
9932
10050
  "_meta": {
9933
- "required": true
10051
+ "required": true,
10052
+ "description": "The lead or opportunity it is about."
9934
10053
  }
9935
10054
  },
9936
10055
  "activityKind": {
9937
10056
  "type": "text",
9938
10057
  "required": false,
9939
- "default": "note"
10058
+ "default": "note",
10059
+ "description": "The kind of activity, for example call, note or email.",
10060
+ "_meta": {
10061
+ "description": "The kind of activity, for example call, note or email."
10062
+ }
9940
10063
  },
9941
10064
  "summary": {
9942
10065
  "type": "text",
9943
10066
  "required": false,
9944
- "default": ""
10067
+ "default": "",
10068
+ "description": "What happened or what needs doing.",
10069
+ "_meta": {
10070
+ "description": "What happened or what needs doing."
10071
+ }
9945
10072
  },
9946
10073
  "dueAt": {
9947
10074
  "type": "datetime",
9948
- "required": false
10075
+ "required": false,
10076
+ "description": "When it is due.",
10077
+ "_meta": {
10078
+ "description": "When it is due."
10079
+ }
9949
10080
  },
9950
10081
  "completedAt": {
9951
10082
  "type": "datetime",
9952
- "required": false
10083
+ "required": false,
10084
+ "description": "When it was done.",
10085
+ "_meta": {
10086
+ "description": "When it was done."
10087
+ }
9953
10088
  },
9954
10089
  "actorProfileId": {
9955
10090
  "type": "crossPackageRef",
@@ -10152,6 +10287,7 @@
10152
10287
  "className": "SalesRepresentative",
10153
10288
  "qualifiedName": "@happyvertical/smrt-sales:SalesRepresentative",
10154
10289
  "collection": "salesrepresentatives",
10290
+ "description": "SalesRepresentative is a ROLE model: it links an identity (smrt-profiles Profile) to sales ownership (Leads/Opportunities reference ownerRepId).",
10155
10291
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/crm/models/SalesRepresentative.ts",
10156
10292
  "packageName": "@happyvertical/smrt-sales",
10157
10293
  "fields": {
@@ -14099,6 +14235,7 @@
14099
14235
  "className": "ReferralClickOperation",
14100
14236
  "qualifiedName": "@happyvertical/smrt-sales:ReferralClickOperation",
14101
14237
  "collection": "referralclickoperations",
14238
+ "description": "One globally unique caller replay key mapped to its immutable click touch.",
14102
14239
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/ReferralClickOperation.ts",
14103
14240
  "packageName": "@happyvertical/smrt-sales",
14104
14241
  "fields": {
@@ -14343,6 +14480,7 @@
14343
14480
  "className": "ReferralLink",
14344
14481
  "qualifiedName": "@happyvertical/smrt-sales:ReferralLink",
14345
14482
  "collection": "referrallinks",
14483
+ "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
14484
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/ReferralLink.ts",
14347
14485
  "packageName": "@happyvertical/smrt-sales",
14348
14486
  "fields": {
@@ -14641,6 +14779,7 @@
14641
14779
  "className": "ReferralProgram",
14642
14780
  "qualifiedName": "@happyvertical/smrt-sales:ReferralProgram",
14643
14781
  "collection": "referralprograms",
14782
+ "description": "A ReferralProgram anchors links, touches, referrals, agreements, and exceptions, and carries the program-level DEFAULTS:",
14644
14783
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/ReferralProgram.ts",
14645
14784
  "packageName": "@happyvertical/smrt-sales",
14646
14785
  "fields": {
@@ -15493,6 +15632,7 @@
15493
15632
  "className": "Referrer",
15494
15633
  "qualifiedName": "@happyvertical/smrt-sales:Referrer",
15495
15634
  "collection": "referrers",
15635
+ "description": "Referrer is a ROLE model: it links an identity (smrt-profiles Profile) to referral activity (ReferralLinks, ReferralTouches, and Referrals reference referrerId).",
15496
15636
  "filePath": "/home/runner/work/smrt/smrt/packages/sales/src/referrals/models/Referrer.ts",
15497
15637
  "packageName": "@happyvertical/smrt-sales",
15498
15638
  "fields": {
@@ -15728,10 +15868,158 @@
15728
15868
  }
15729
15869
  },
15730
15870
  "moduleType": "smrt",
15871
+ "recipes": [
15872
+ {
15873
+ "id": "sales.pipeline",
15874
+ "className": "SalesPipelineRecipe",
15875
+ "label": "Leads & pipeline",
15876
+ "summary": "Capture leads and move them through your sales stages.",
15877
+ "synonyms": [
15878
+ "crm",
15879
+ "prospects",
15880
+ "opportunities",
15881
+ "deals",
15882
+ "funnel"
15883
+ ],
15884
+ "models": [
15885
+ "@happyvertical/smrt-sales:Lead",
15886
+ "@happyvertical/smrt-sales:Opportunity",
15887
+ "@happyvertical/smrt-sales:PipelineDefinition",
15888
+ "@happyvertical/smrt-sales:PipelineStage",
15889
+ "@happyvertical/smrt-sales:SalesActivity"
15890
+ ],
15891
+ "nav": [
15892
+ {
15893
+ "label": "Leads",
15894
+ "model": "@happyvertical/smrt-sales:Lead",
15895
+ "icon": "users",
15896
+ "description": "People who might become customers, and where each one stands."
15897
+ },
15898
+ {
15899
+ "label": "Opportunities",
15900
+ "model": "@happyvertical/smrt-sales:Opportunity",
15901
+ "icon": "briefcase",
15902
+ "description": "Deals in progress, with their value and next step."
15903
+ },
15904
+ {
15905
+ "label": "Pipelines",
15906
+ "model": "@happyvertical/smrt-sales:PipelineDefinition",
15907
+ "icon": "layers",
15908
+ "description": "The stages a deal moves through on its way to a sale."
15909
+ }
15910
+ ],
15911
+ "requires": [],
15912
+ "section": {
15913
+ "id": "sales",
15914
+ "label": "Sales",
15915
+ "icon": "shoppingBag",
15916
+ "description": "Customers, orders and quotes: everything you sell."
15917
+ },
15918
+ "options": {
15919
+ "@happyvertical/smrt-sales:Lead": {
15920
+ "fields": {
15921
+ "profileId": {
15922
+ "visibility": "hidden"
15923
+ },
15924
+ "mergedIntoId": {
15925
+ "visibility": "hidden"
15926
+ },
15927
+ "sourceKind": {
15928
+ "visibility": "hidden"
15929
+ },
15930
+ "sourceId": {
15931
+ "visibility": "hidden"
15932
+ },
15933
+ "acquisitionContext": {
15934
+ "visibility": "hidden"
15935
+ },
15936
+ "intakeRef": {
15937
+ "visibility": "hidden"
15938
+ },
15939
+ "metadata": {
15940
+ "visibility": "hidden"
15941
+ },
15942
+ "qualifiedAt": {
15943
+ "visibility": "hidden"
15944
+ }
15945
+ }
15946
+ },
15947
+ "@happyvertical/smrt-sales:Opportunity": {
15948
+ "fields": {
15949
+ "sourceKind": {
15950
+ "visibility": "hidden"
15951
+ },
15952
+ "sourceId": {
15953
+ "visibility": "hidden"
15954
+ },
15955
+ "metadata": {
15956
+ "visibility": "hidden"
15957
+ },
15958
+ "outcomeReason": {
15959
+ "visibility": "hidden"
15960
+ },
15961
+ "wonAt": {
15962
+ "visibility": "hidden"
15963
+ },
15964
+ "lostAt": {
15965
+ "visibility": "hidden"
15966
+ }
15967
+ }
15968
+ },
15969
+ "@happyvertical/smrt-sales:PipelineStage": {
15970
+ "fields": {
15971
+ "metadata": {
15972
+ "visibility": "hidden"
15973
+ }
15974
+ }
15975
+ },
15976
+ "@happyvertical/smrt-sales:SalesActivity": {
15977
+ "fields": {
15978
+ "metadata": {
15979
+ "visibility": "hidden"
15980
+ },
15981
+ "actorProfileId": {
15982
+ "visibility": "hidden"
15983
+ }
15984
+ }
15985
+ }
15986
+ },
15987
+ "help": {
15988
+ "markdown": "## Overview\n\nLeads and pipeline is a light CRM. You capture leads, turn the promising ones\ninto opportunities, and move each through the stages of a pipeline. Activities\nrecord calls, notes and follow-ups.\n\n## Tasks\n\n### Capture a lead\n\n1. Create a new lead.\n2. Enter the **{field:name}**, **{field:email}** and **{field:phone}**.\n3. Keep **{field:status}** up to date as you qualify them.\n\n### Work an opportunity\n\n1. Create a pipeline, then add its stages in order.\n2. Create a new opportunity and pick the **{field:leadId}**.\n3. Choose the **{field:pipelineId}** and **{field:stageId}**, and enter the\n **{field:expectedValueCents}** and **{field:expectedCloseAt}**.\n4. Move the **{field:stageId}** along as the deal progresses.\n",
15989
+ "fieldRefs": [
15990
+ "email",
15991
+ "expectedCloseAt",
15992
+ "expectedValueCents",
15993
+ "leadId",
15994
+ "name",
15995
+ "phone",
15996
+ "pipelineId",
15997
+ "stageId",
15998
+ "status"
15999
+ ]
16000
+ },
16001
+ "demo": {
16002
+ "mode": "server",
16003
+ "reasons": [
16004
+ "Needs a server because its package does not build for a browser: node:crypto; and its package depends on @happyvertical/smrt-tenancy, which do not build for a browser (#3624)."
16005
+ ]
16006
+ }
16007
+ }
16008
+ ],
15731
16009
  "smrtDependencies": [
15732
16010
  "@happyvertical/smrt-assets",
15733
16011
  "@happyvertical/smrt-core",
15734
16012
  "@happyvertical/smrt-tenancy"
15735
16013
  ],
16014
+ "browser": {
16015
+ "status": "server-only",
16016
+ "issues": [
16017
+ "#3624"
16018
+ ],
16019
+ "reason": "node:crypto",
16020
+ "via": [
16021
+ "@happyvertical/smrt-tenancy"
16022
+ ]
16023
+ },
15736
16024
  "stampsConstructors": true
15737
16025
  }
package/dist/referrals.js CHANGED
@@ -1,3 +1,3 @@
1
- import "./chunks/__smrt-register__-eOj6oe0J.js";
1
+ import "./chunks/__smrt-register__-DFr5ksXZ.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 };