@happyvertical/smrt-sales 0.61.3 → 0.61.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/agreements.js +2 -2
  2. package/dist/chunks/__smrt-register__-B-stGMdT.js +6 -0
  3. package/dist/chunks/__smrt-register__-B-stGMdT.js.map +1 -0
  4. package/dist/chunks/{agreements-C8rxIVGB.js → agreements-BZuNlupb.js} +49 -13
  5. package/dist/chunks/agreements-BZuNlupb.js.map +1 -0
  6. package/dist/chunks/{commissions-DbhfPQbi.js → commissions-BLGKek_x.js} +39 -11
  7. package/dist/chunks/commissions-BLGKek_x.js.map +1 -0
  8. package/dist/chunks/{crm-C4iAa-zA.js → crm-BG43OsyB.js} +22 -13
  9. package/dist/chunks/crm-BG43OsyB.js.map +1 -0
  10. package/dist/chunks/{referrals-STQ8kdIv.js → referrals-BNTsWVEM.js} +74 -23
  11. package/dist/chunks/referrals-BNTsWVEM.js.map +1 -0
  12. package/dist/commissions/models/Commission.d.ts.map +1 -1
  13. package/dist/commissions/models/CommissionAdjustment.d.ts +1 -1
  14. package/dist/commissions/models/CommissionAdjustment.d.ts.map +1 -1
  15. package/dist/commissions/models/CommissionAdjustmentOperation.d.ts.map +1 -1
  16. package/dist/commissions/models/CommissionPayout.d.ts.map +1 -1
  17. package/dist/commissions.js +2 -2
  18. package/dist/crm/models/Lead.d.ts +1 -1
  19. package/dist/crm/models/Lead.d.ts.map +1 -1
  20. package/dist/crm/models/Opportunity.d.ts +1 -1
  21. package/dist/crm/models/Opportunity.d.ts.map +1 -1
  22. package/dist/crm/models/PipelineDefinition.d.ts.map +1 -1
  23. package/dist/crm/models/PipelineStage.d.ts.map +1 -1
  24. package/dist/crm/models/SalesActivity.d.ts.map +1 -1
  25. package/dist/crm.js +2 -2
  26. package/dist/index.js +5 -5
  27. package/dist/manifest.json +2599 -690
  28. package/dist/referrals/models/ReferralClickOperation.d.ts.map +1 -1
  29. package/dist/referrals/models/ReferralProgram.d.ts.map +1 -1
  30. package/dist/referrals.js +2 -2
  31. package/dist/smrt-knowledge.json +9 -8
  32. package/package.json +8 -8
  33. package/dist/chunks/__smrt-register__-DFcq7osk.js +0 -6
  34. package/dist/chunks/__smrt-register__-DFcq7osk.js.map +0 -1
  35. package/dist/chunks/agreements-C8rxIVGB.js.map +0 -1
  36. package/dist/chunks/commissions-DbhfPQbi.js.map +0 -1
  37. package/dist/chunks/crm-C4iAa-zA.js.map +0 -1
  38. package/dist/chunks/referrals-STQ8kdIv.js.map +0 -1
@@ -186,10 +186,7 @@ var Lead = class extends SmrtObject {
186
186
  };
187
187
  __publicField$8(Lead, "__smrtPackage__", "@happyvertical/smrt-sales");
188
188
  __decorateClass$8([tenantId({ nullable: true })], Lead.prototype, "tenantId", 2);
189
- __decorateClass$8([field({
190
- required: true,
191
- description: "What you call this lead."
192
- })], Lead.prototype, "name", 2);
189
+ __decorateClass$8([field({ description: "What you call this lead." })], Lead.prototype, "name", 2);
193
190
  __decorateClass$8([field({ description: "The person to talk to." })], Lead.prototype, "contactName", 2);
194
191
  __decorateClass$8([field({ description: "Their email address." })], Lead.prototype, "email", 2);
195
192
  __decorateClass$8([field({ description: "Their phone number." })], Lead.prototype, "phone", 2);
@@ -473,10 +470,7 @@ var Opportunity = class extends SmrtObject {
473
470
  };
474
471
  __publicField$7(Opportunity, "__smrtPackage__", "@happyvertical/smrt-sales");
475
472
  __decorateClass$7([tenantId({ nullable: true })], Opportunity.prototype, "tenantId", 2);
476
- __decorateClass$7([field({
477
- required: true,
478
- description: "What you call this deal."
479
- })], Opportunity.prototype, "name", 2);
473
+ __decorateClass$7([field({ description: "What you call this deal." })], Opportunity.prototype, "name", 2);
480
474
  __decorateClass$7([field({ description: "The lead it came from." }), foreignKey("Lead")], Opportunity.prototype, "leadId", 2);
481
475
  __decorateClass$7([field({ description: "The sales representative who owns this deal." }), foreignKey("SalesRepresentative")], Opportunity.prototype, "ownerRepId", 2);
482
476
  __decorateClass$7([field({ description: "The pipeline it moves through." }), foreignKey("PipelineDefinition")], Opportunity.prototype, "pipelineId", 2);
@@ -560,9 +554,13 @@ var PipelineStage = class extends SmrtObject {
560
554
  };
561
555
  __publicField$6(PipelineStage, "__smrtPackage__", "@happyvertical/smrt-sales");
562
556
  __decorateClass$6([tenantId({ nullable: true })], PipelineStage.prototype, "tenantId", 2);
563
- __decorateClass$6([field({ description: "The pipeline this stage belongs to." }), foreignKey("PipelineDefinition", { required: true })], PipelineStage.prototype, "pipelineId", 2);
557
+ __decorateClass$6([field({ description: "The pipeline this stage belongs to." }), foreignKey("PipelineDefinition", {
558
+ required: true,
559
+ requiredFor: "identity"
560
+ })], PipelineStage.prototype, "pipelineId", 2);
564
561
  __decorateClass$6([field({
565
562
  required: true,
563
+ requiredFor: "identity",
566
564
  description: "A short code for the stage."
567
565
  })], PipelineStage.prototype, "key", 2);
568
566
  __decorateClass$6([field({ description: "What the stage is called." })], PipelineStage.prototype, "name", 2);
@@ -720,6 +718,7 @@ __decorateClass$5([tenantId({ nullable: true })], SalesActivity.prototype, "tena
720
718
  __decorateClass$5([field({ description: "What the activity is about: a lead or an opportunity." })], SalesActivity.prototype, "subjectKind", 2);
721
719
  __decorateClass$5([field({
722
720
  required: true,
721
+ requiredFor: "identity",
723
722
  description: "The lead or opportunity it is about."
724
723
  })], SalesActivity.prototype, "subjectId", 2);
725
724
  __decorateClass$5([field({ description: "The kind of activity, for example call, note or email." })], SalesActivity.prototype, "activityKind", 2);
@@ -943,6 +942,7 @@ __publicField$4(PipelineDefinition, "__smrtPackage__", "@happyvertical/smrt-sale
943
942
  __decorateClass$4([tenantId({ nullable: true })], PipelineDefinition.prototype, "tenantId", 2);
944
943
  __decorateClass$4([field({
945
944
  required: true,
945
+ requiredFor: "identity",
946
946
  description: "A short code for the pipeline."
947
947
  })], PipelineDefinition.prototype, "key", 2);
948
948
  __decorateClass$4([field({ description: "What the pipeline is called." })], PipelineDefinition.prototype, "name", 2);
@@ -1692,9 +1692,18 @@ var OpportunityConversion = class extends SmrtObject {
1692
1692
  };
1693
1693
  __publicField$2(OpportunityConversion, "__smrtPackage__", "@happyvertical/smrt-sales");
1694
1694
  __decorateClass$2([tenantId({ nullable: true })], OpportunityConversion.prototype, "tenantId", 2);
1695
- __decorateClass$2([foreignKey("Opportunity", { required: true })], OpportunityConversion.prototype, "opportunityId", 2);
1696
- __decorateClass$2([field({ required: true })], OpportunityConversion.prototype, "targetKind", 2);
1697
- __decorateClass$2([field({ required: true })], OpportunityConversion.prototype, "targetId", 2);
1695
+ __decorateClass$2([foreignKey("Opportunity", {
1696
+ required: true,
1697
+ requiredFor: "identity"
1698
+ })], OpportunityConversion.prototype, "opportunityId", 2);
1699
+ __decorateClass$2([field({
1700
+ required: true,
1701
+ requiredFor: "identity"
1702
+ })], OpportunityConversion.prototype, "targetKind", 2);
1703
+ __decorateClass$2([field({
1704
+ required: true,
1705
+ requiredFor: "identity"
1706
+ })], OpportunityConversion.prototype, "targetId", 2);
1698
1707
  OpportunityConversion = __decorateClass$2([TenantScoped({ mode: "optional" }), smrt({
1699
1708
  api: { include: [
1700
1709
  "list",
@@ -3540,4 +3549,4 @@ function normalizeIdentityEnvelope(value) {
3540
3549
  //#endregion
3541
3550
  export { OPPORTUNITY_STATUSES as A, SalesActivity as C, DEFAULT_PIPELINE_KEY as D, Opportunity as E, Lead as F, SALES_ACTIVITY_KINDS as M, SALES_ACTIVITY_SUBJECT_KINDS as N, DEFAULT_PIPELINE_STAGES as O, SALES_REPRESENTATIVE_STATUSES as P, SalesActivityCollection as S, PipelineStage as T, SalesRepresentativeCollection as _, LeadWorkflowValidationError as a, PipelineDefinition as b, LeadConversionService as c, SalesGovernanceState as d, SalesGovernanceEventCollection as f, LeadCollection as g, OpportunityConversion as h, LeadWorkflowService as i, PIPELINE_STATUSES as j, LEAD_STATUSES as k, SalesPipelineRecipe as l, OpportunityConversionCollection as m, SalesGovernanceService as n, MAX_LEAD_WORKFLOW_TEXT_LENGTH as o, SalesGovernanceEvent as p, LEAD_HUMAN_ACTIVITY_KINDS as r, projectLeadWorkQueue as s, SalesGovernanceError as t, SalesGovernanceStateCollection as u, SalesRepresentative as v, PipelineStageCollection as w, OpportunityCollection as x, PipelineDefinitionCollection as y };
3542
3551
 
3543
- //# sourceMappingURL=crm-C4iAa-zA.js.map
3552
+ //# sourceMappingURL=crm-BG43OsyB.js.map