@lssm/example.crm-pipeline 0.0.0-canary-20251219202229 → 0.0.0-canary-20251220015515

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 (81) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +150 -150
  2. package/.turbo/turbo-build.log +173 -173
  3. package/CHANGELOG.md +8 -8
  4. package/dist/entities/company.entity.d.ts +28 -28
  5. package/dist/entities/contact.entity.d.ts +32 -32
  6. package/dist/entities/task.entity.d.ts +43 -43
  7. package/dist/events/contact.event.d.ts +7 -7
  8. package/dist/events/deal.event.d.ts +29 -29
  9. package/dist/handlers/deal.handlers.d.ts.map +1 -1
  10. package/dist/handlers/deal.handlers.js +4 -1
  11. package/dist/handlers/deal.handlers.js.map +1 -1
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -1
  15. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -1
  16. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -1
  17. package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -1
  18. package/dist/libs/contracts/dist/docs/presentations.js.map +1 -1
  19. package/dist/libs/contracts/dist/docs/registry.js.map +1 -1
  20. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -1
  21. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
  22. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -1
  23. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -1
  24. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -1
  25. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -1
  26. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -1
  27. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -1
  28. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -1
  29. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -1
  30. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -1
  31. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -1
  32. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -1
  33. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -1
  34. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -1
  35. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -1
  36. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -1
  37. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -1
  38. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -1
  39. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -1
  40. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -1
  41. package/dist/libs/contracts/dist/events.js.map +1 -1
  42. package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
  43. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
  44. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
  45. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
  46. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -1
  47. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -1
  48. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -1
  49. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -1
  50. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -1
  51. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -1
  52. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -1
  53. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -1
  54. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -1
  55. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -1
  56. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -1
  57. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -1
  58. package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
  59. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -1
  60. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -1
  61. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -1
  62. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -1
  63. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -1
  64. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -1
  65. package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
  66. package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
  67. package/dist/libs/contracts/dist/ownership.js +1 -0
  68. package/dist/libs/contracts/dist/ownership.js.map +1 -1
  69. package/dist/libs/contracts/dist/presentations.v2.js.map +1 -1
  70. package/dist/libs/contracts/dist/regenerator/service.js.map +1 -1
  71. package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -1
  72. package/dist/libs/contracts/dist/spec.js.map +1 -1
  73. package/dist/libs/identity-rbac/dist/contracts/dist/ownership.js +1 -0
  74. package/dist/libs/identity-rbac/dist/contracts/dist/ownership.js.map +1 -1
  75. package/dist/modules/audit-trail/dist/libs/contracts/dist/ownership.js +1 -0
  76. package/dist/modules/audit-trail/dist/libs/contracts/dist/ownership.js.map +1 -1
  77. package/dist/modules/notifications/dist/libs/contracts/dist/ownership.js +1 -0
  78. package/dist/modules/notifications/dist/libs/contracts/dist/ownership.js.map +1 -1
  79. package/package.json +19 -12
  80. package/src/handlers/deal.handlers.ts +9 -3
  81. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../libs/contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };\n//# sourceMappingURL=spec.js.map"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
1
+ {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../libs/contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
@@ -13,6 +13,7 @@ const OwnersEnum = {
13
13
  ProductArtisanos: "product.artisanos",
14
14
  PlatformSigil: "platform.sigil",
15
15
  PlatformMarketplace: "platform.marketplace",
16
+ PlatformMessaging: "platform.messaging",
16
17
  PlatformContent: "platform.content",
17
18
  PlatformFeatureFlags: "platform.featureflags",
18
19
  PlatformFinance: "platform.finance"
@@ -1 +1 @@
1
- {"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../libs/identity-rbac/dist/contracts/dist/ownership.js"],"sourcesContent":["//#region ../contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
1
+ {"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../libs/identity-rbac/dist/contracts/dist/ownership.js"],"sourcesContent":["//#region ../contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
@@ -13,6 +13,7 @@ const OwnersEnum = {
13
13
  ProductArtisanos: "product.artisanos",
14
14
  PlatformSigil: "platform.sigil",
15
15
  PlatformMarketplace: "platform.marketplace",
16
+ PlatformMessaging: "platform.messaging",
16
17
  PlatformContent: "platform.content",
17
18
  PlatformFeatureFlags: "platform.featureflags",
18
19
  PlatformFinance: "platform.finance"
@@ -1 +1 @@
1
- {"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/audit-trail/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
1
+ {"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/audit-trail/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
@@ -13,6 +13,7 @@ const OwnersEnum = {
13
13
  ProductArtisanos: "product.artisanos",
14
14
  PlatformSigil: "platform.sigil",
15
15
  PlatformMarketplace: "platform.marketplace",
16
+ PlatformMessaging: "platform.messaging",
16
17
  PlatformContent: "platform.content",
17
18
  PlatformFeatureFlags: "platform.featureflags",
18
19
  PlatformFinance: "platform.finance"
@@ -1 +1 @@
1
- {"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/notifications/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
1
+ {"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../../../../modules/notifications/dist/libs/contracts/dist/ownership.js"],"sourcesContent":["//#region ../../libs/contracts/dist/ownership.js\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\n\n//#endregion\nexport { OwnersEnum, StabilityEnum };\n//# sourceMappingURL=ownership.js.map"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.crm-pipeline",
3
- "version": "0.0.0-canary-20251219202229",
3
+ "version": "0.0.0-canary-20251220015515",
4
4
  "description": "CRM Pipeline - Contacts, Companies, Deals, Tasks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -47,18 +47,18 @@
47
47
  "test": "bun run"
48
48
  },
49
49
  "dependencies": {
50
- "@lssm/lib.schema": "0.0.0-canary-20251219202229",
51
- "@lssm/lib.contracts": "0.0.0-canary-20251219202229",
52
- "@lssm/lib.bus": "0.0.0-canary-20251219202229",
53
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251219202229",
54
- "@lssm/lib.jobs": "0.0.0-canary-20251219202229",
55
- "@lssm/module.audit-trail": "0.0.0-canary-20251219202229",
56
- "@lssm/module.notifications": "0.0.0-canary-20251219202229",
50
+ "@lssm/lib.schema": "0.0.0-canary-20251220015515",
51
+ "@lssm/lib.contracts": "0.0.0-canary-20251220015515",
52
+ "@lssm/lib.bus": "0.0.0-canary-20251220015515",
53
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251220015515",
54
+ "@lssm/lib.jobs": "0.0.0-canary-20251220015515",
55
+ "@lssm/module.audit-trail": "0.0.0-canary-20251220015515",
56
+ "@lssm/module.notifications": "0.0.0-canary-20251220015515",
57
57
  "zod": "^4.1.13"
58
58
  },
59
59
  "devDependencies": {
60
- "@lssm/tool.tsdown": "0.0.0-canary-20251219202229",
61
- "@lssm/tool.typescript": "0.0.0-canary-20251219202229",
60
+ "@lssm/tool.tsdown": "0.0.0-canary-20251220015515",
61
+ "@lssm/tool.typescript": "0.0.0-canary-20251220015515",
62
62
  "tsdown": "^0.18.1",
63
63
  "typescript": "^5.9.3"
64
64
  },
@@ -91,7 +91,14 @@
91
91
  "./presentations/dashboard.presentation": "./dist/presentations/dashboard.presentation.js",
92
92
  "./presentations/pipeline.presentation": "./dist/presentations/pipeline.presentation.js",
93
93
  "./*": "./*"
94
- }
94
+ },
95
+ "registry": "https://registry.npmjs.org/",
96
+ "access": "public"
95
97
  },
96
- "license": "MIT"
98
+ "license": "MIT",
99
+ "repository": {
100
+ "type": "git",
101
+ "url": "https://github.com/lssm-tech/contractspec.git",
102
+ "directory": "packages/examples/crm-pipeline"
103
+ }
97
104
  }
@@ -156,7 +156,10 @@ export async function mockMoveDealHandler(input: MoveDealInput): Promise<Deal> {
156
156
  if (dealIndex === -1) {
157
157
  throw new Error('NOT_FOUND');
158
158
  }
159
- const deal = MOCK_DEALS[dealIndex]!;
159
+ const deal = MOCK_DEALS[dealIndex];
160
+ if (!deal) {
161
+ throw new Error('NOT_FOUND');
162
+ }
160
163
 
161
164
  const stage = MOCK_STAGES.find((s) => s.id === input.stageId);
162
165
  if (!stage) {
@@ -182,7 +185,7 @@ export async function mockWinDealHandler(input: WinDealInput): Promise<Deal> {
182
185
  if (dealIndex === -1) {
183
186
  throw new Error('NOT_FOUND');
184
187
  }
185
- const deal = MOCK_DEALS[dealIndex]!;
188
+ const deal = MOCK_DEALS[dealIndex];
186
189
  if (!deal) {
187
190
  throw new Error('NOT_FOUND');
188
191
  }
@@ -206,7 +209,10 @@ export async function mockLoseDealHandler(input: LoseDealInput): Promise<Deal> {
206
209
  if (dealIndex === -1) {
207
210
  throw new Error('NOT_FOUND');
208
211
  }
209
- const deal = MOCK_DEALS[dealIndex]!;
212
+ const deal = MOCK_DEALS[dealIndex];
213
+ if (!deal) {
214
+ throw new Error('NOT_FOUND');
215
+ }
210
216
 
211
217
  const updatedDeal: Deal = {
212
218
  ...deal,