@happyvertical/smrt-sales 0.40.39 → 0.40.41
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__-SY1nQ4Pq.js → __smrt-register__-BwVcbipw.js} +2 -2
- package/dist/chunks/{__smrt-register__-SY1nQ4Pq.js.map → __smrt-register__-BwVcbipw.js.map} +1 -1
- package/dist/commissions.js +1 -1
- package/dist/crm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +1667 -1667
- package/dist/referrals.js +1 -1
- package/dist/smrt-knowledge.json +150 -150
- package/package.json +6 -6
package/dist/referrals.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./chunks/__smrt-register__-
|
|
1
|
+
import "./chunks/__smrt-register__-BwVcbipw.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-BzTlbjJH.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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-31T04:26:21.610Z",
|
|
4
4
|
"packageName": "@happyvertical/smrt-sales",
|
|
5
|
-
"packageVersion": "0.40.
|
|
5
|
+
"packageVersion": "0.40.41",
|
|
6
6
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
7
|
"agentDocPath": "AGENTS.md",
|
|
8
8
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
9
|
+
"manifest": "b25be865cceee11eed494062b7e4ff4228fb9a014a0b42e55c9c1b09ee7e8857",
|
|
10
|
+
"packageJson": "77e885f73412ac31f67f409462f52dbb03554871bb3cec01d7bb4f35c88da8bc",
|
|
11
11
|
"agents": "2585fdd71db3fa5d7e0ad90ccf569ebc79d750454e86f0f98527e90bcedd8f61",
|
|
12
12
|
"moduleDoc:agents/agreements.md": "eb6ff147a0f60ee627d3337e8e9394d06fda955b4a4fff228537a9bd2803f886",
|
|
13
13
|
"moduleDoc:agents/commissions.md": "e047024aafe5edcf072c1a6b7ea253c24cb15f2fa1beb2edd13651e735921f73",
|
|
@@ -2215,6 +2215,152 @@
|
|
|
2215
2215
|
"tags": [],
|
|
2216
2216
|
"risks": []
|
|
2217
2217
|
},
|
|
2218
|
+
{
|
|
2219
|
+
"name": "LeadCollection",
|
|
2220
|
+
"qualifiedName": "@happyvertical/smrt-sales:LeadCollection",
|
|
2221
|
+
"collection": "leads",
|
|
2222
|
+
"tableName": "lead_collections",
|
|
2223
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2224
|
+
"extends": "SmrtCollection",
|
|
2225
|
+
"fields": [],
|
|
2226
|
+
"relationships": [],
|
|
2227
|
+
"methods": [
|
|
2228
|
+
"activitiesIncludingMerged",
|
|
2229
|
+
"findByOwner",
|
|
2230
|
+
"findByStatus",
|
|
2231
|
+
"mergeLeads",
|
|
2232
|
+
"qualify"
|
|
2233
|
+
],
|
|
2234
|
+
"surfaces": [],
|
|
2235
|
+
"relationshipFeatures": [
|
|
2236
|
+
"uuidColumns"
|
|
2237
|
+
],
|
|
2238
|
+
"tags": [],
|
|
2239
|
+
"risks": []
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
"name": "OpportunityCollection",
|
|
2243
|
+
"qualifiedName": "@happyvertical/smrt-sales:OpportunityCollection",
|
|
2244
|
+
"collection": "opportunities",
|
|
2245
|
+
"tableName": "opportunity_collections",
|
|
2246
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2247
|
+
"extends": "SmrtCollection",
|
|
2248
|
+
"fields": [],
|
|
2249
|
+
"relationships": [],
|
|
2250
|
+
"methods": [
|
|
2251
|
+
"findByLead",
|
|
2252
|
+
"findOpen",
|
|
2253
|
+
"moveToStage"
|
|
2254
|
+
],
|
|
2255
|
+
"surfaces": [],
|
|
2256
|
+
"relationshipFeatures": [
|
|
2257
|
+
"uuidColumns"
|
|
2258
|
+
],
|
|
2259
|
+
"tags": [],
|
|
2260
|
+
"risks": []
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"name": "OpportunityConversionCollection",
|
|
2264
|
+
"qualifiedName": "@happyvertical/smrt-sales:OpportunityConversionCollection",
|
|
2265
|
+
"collection": "opportunityconversions",
|
|
2266
|
+
"tableName": "opportunity_conversion_collections",
|
|
2267
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2268
|
+
"extends": "SmrtCollection",
|
|
2269
|
+
"fields": [],
|
|
2270
|
+
"relationships": [],
|
|
2271
|
+
"methods": [
|
|
2272
|
+
"findByOpportunity",
|
|
2273
|
+
"recordConversion"
|
|
2274
|
+
],
|
|
2275
|
+
"surfaces": [],
|
|
2276
|
+
"relationshipFeatures": [
|
|
2277
|
+
"uuidColumns"
|
|
2278
|
+
],
|
|
2279
|
+
"tags": [],
|
|
2280
|
+
"risks": []
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"name": "PipelineDefinitionCollection",
|
|
2284
|
+
"qualifiedName": "@happyvertical/smrt-sales:PipelineDefinitionCollection",
|
|
2285
|
+
"collection": "pipelinedefinitions",
|
|
2286
|
+
"tableName": "pipeline_definition_collections",
|
|
2287
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2288
|
+
"extends": "SmrtCollection",
|
|
2289
|
+
"fields": [],
|
|
2290
|
+
"relationships": [],
|
|
2291
|
+
"methods": [
|
|
2292
|
+
"ensureDefaultPipeline",
|
|
2293
|
+
"findByKey",
|
|
2294
|
+
"findDefault",
|
|
2295
|
+
"getStages"
|
|
2296
|
+
],
|
|
2297
|
+
"surfaces": [],
|
|
2298
|
+
"relationshipFeatures": [
|
|
2299
|
+
"uuidColumns"
|
|
2300
|
+
],
|
|
2301
|
+
"tags": [],
|
|
2302
|
+
"risks": []
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"name": "PipelineStageCollection",
|
|
2306
|
+
"qualifiedName": "@happyvertical/smrt-sales:PipelineStageCollection",
|
|
2307
|
+
"collection": "pipelinestages",
|
|
2308
|
+
"tableName": "pipeline_stage_collections",
|
|
2309
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2310
|
+
"extends": "SmrtCollection",
|
|
2311
|
+
"fields": [],
|
|
2312
|
+
"relationships": [],
|
|
2313
|
+
"methods": [
|
|
2314
|
+
"findByKey",
|
|
2315
|
+
"findByPipeline"
|
|
2316
|
+
],
|
|
2317
|
+
"surfaces": [],
|
|
2318
|
+
"relationshipFeatures": [
|
|
2319
|
+
"uuidColumns"
|
|
2320
|
+
],
|
|
2321
|
+
"tags": [],
|
|
2322
|
+
"risks": []
|
|
2323
|
+
},
|
|
2324
|
+
{
|
|
2325
|
+
"name": "SalesActivityCollection",
|
|
2326
|
+
"qualifiedName": "@happyvertical/smrt-sales:SalesActivityCollection",
|
|
2327
|
+
"collection": "salesactivities",
|
|
2328
|
+
"tableName": "sales_activity_collections",
|
|
2329
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2330
|
+
"extends": "SmrtCollection",
|
|
2331
|
+
"fields": [],
|
|
2332
|
+
"relationships": [],
|
|
2333
|
+
"methods": [
|
|
2334
|
+
"findBySubject",
|
|
2335
|
+
"findOpenTasks"
|
|
2336
|
+
],
|
|
2337
|
+
"surfaces": [],
|
|
2338
|
+
"relationshipFeatures": [
|
|
2339
|
+
"uuidColumns"
|
|
2340
|
+
],
|
|
2341
|
+
"tags": [],
|
|
2342
|
+
"risks": []
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"name": "SalesRepresentativeCollection",
|
|
2346
|
+
"qualifiedName": "@happyvertical/smrt-sales:SalesRepresentativeCollection",
|
|
2347
|
+
"collection": "salesrepresentatives",
|
|
2348
|
+
"tableName": "sales_representative_collections",
|
|
2349
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
2350
|
+
"extends": "SmrtCollection",
|
|
2351
|
+
"fields": [],
|
|
2352
|
+
"relationships": [],
|
|
2353
|
+
"methods": [
|
|
2354
|
+
"findActive",
|
|
2355
|
+
"findByProfile"
|
|
2356
|
+
],
|
|
2357
|
+
"surfaces": [],
|
|
2358
|
+
"relationshipFeatures": [
|
|
2359
|
+
"uuidColumns"
|
|
2360
|
+
],
|
|
2361
|
+
"tags": [],
|
|
2362
|
+
"risks": []
|
|
2363
|
+
},
|
|
2218
2364
|
{
|
|
2219
2365
|
"name": "Lead",
|
|
2220
2366
|
"qualifiedName": "@happyvertical/smrt-sales:Lead",
|
|
@@ -3326,152 +3472,6 @@
|
|
|
3326
3472
|
"tags": [],
|
|
3327
3473
|
"risks": []
|
|
3328
3474
|
},
|
|
3329
|
-
{
|
|
3330
|
-
"name": "LeadCollection",
|
|
3331
|
-
"qualifiedName": "@happyvertical/smrt-sales:LeadCollection",
|
|
3332
|
-
"collection": "leads",
|
|
3333
|
-
"tableName": "lead_collections",
|
|
3334
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3335
|
-
"extends": "SmrtCollection",
|
|
3336
|
-
"fields": [],
|
|
3337
|
-
"relationships": [],
|
|
3338
|
-
"methods": [
|
|
3339
|
-
"activitiesIncludingMerged",
|
|
3340
|
-
"findByOwner",
|
|
3341
|
-
"findByStatus",
|
|
3342
|
-
"mergeLeads",
|
|
3343
|
-
"qualify"
|
|
3344
|
-
],
|
|
3345
|
-
"surfaces": [],
|
|
3346
|
-
"relationshipFeatures": [
|
|
3347
|
-
"uuidColumns"
|
|
3348
|
-
],
|
|
3349
|
-
"tags": [],
|
|
3350
|
-
"risks": []
|
|
3351
|
-
},
|
|
3352
|
-
{
|
|
3353
|
-
"name": "OpportunityCollection",
|
|
3354
|
-
"qualifiedName": "@happyvertical/smrt-sales:OpportunityCollection",
|
|
3355
|
-
"collection": "opportunities",
|
|
3356
|
-
"tableName": "opportunity_collections",
|
|
3357
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3358
|
-
"extends": "SmrtCollection",
|
|
3359
|
-
"fields": [],
|
|
3360
|
-
"relationships": [],
|
|
3361
|
-
"methods": [
|
|
3362
|
-
"findByLead",
|
|
3363
|
-
"findOpen",
|
|
3364
|
-
"moveToStage"
|
|
3365
|
-
],
|
|
3366
|
-
"surfaces": [],
|
|
3367
|
-
"relationshipFeatures": [
|
|
3368
|
-
"uuidColumns"
|
|
3369
|
-
],
|
|
3370
|
-
"tags": [],
|
|
3371
|
-
"risks": []
|
|
3372
|
-
},
|
|
3373
|
-
{
|
|
3374
|
-
"name": "OpportunityConversionCollection",
|
|
3375
|
-
"qualifiedName": "@happyvertical/smrt-sales:OpportunityConversionCollection",
|
|
3376
|
-
"collection": "opportunityconversions",
|
|
3377
|
-
"tableName": "opportunity_conversion_collections",
|
|
3378
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3379
|
-
"extends": "SmrtCollection",
|
|
3380
|
-
"fields": [],
|
|
3381
|
-
"relationships": [],
|
|
3382
|
-
"methods": [
|
|
3383
|
-
"findByOpportunity",
|
|
3384
|
-
"recordConversion"
|
|
3385
|
-
],
|
|
3386
|
-
"surfaces": [],
|
|
3387
|
-
"relationshipFeatures": [
|
|
3388
|
-
"uuidColumns"
|
|
3389
|
-
],
|
|
3390
|
-
"tags": [],
|
|
3391
|
-
"risks": []
|
|
3392
|
-
},
|
|
3393
|
-
{
|
|
3394
|
-
"name": "PipelineDefinitionCollection",
|
|
3395
|
-
"qualifiedName": "@happyvertical/smrt-sales:PipelineDefinitionCollection",
|
|
3396
|
-
"collection": "pipelinedefinitions",
|
|
3397
|
-
"tableName": "pipeline_definition_collections",
|
|
3398
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3399
|
-
"extends": "SmrtCollection",
|
|
3400
|
-
"fields": [],
|
|
3401
|
-
"relationships": [],
|
|
3402
|
-
"methods": [
|
|
3403
|
-
"ensureDefaultPipeline",
|
|
3404
|
-
"findByKey",
|
|
3405
|
-
"findDefault",
|
|
3406
|
-
"getStages"
|
|
3407
|
-
],
|
|
3408
|
-
"surfaces": [],
|
|
3409
|
-
"relationshipFeatures": [
|
|
3410
|
-
"uuidColumns"
|
|
3411
|
-
],
|
|
3412
|
-
"tags": [],
|
|
3413
|
-
"risks": []
|
|
3414
|
-
},
|
|
3415
|
-
{
|
|
3416
|
-
"name": "PipelineStageCollection",
|
|
3417
|
-
"qualifiedName": "@happyvertical/smrt-sales:PipelineStageCollection",
|
|
3418
|
-
"collection": "pipelinestages",
|
|
3419
|
-
"tableName": "pipeline_stage_collections",
|
|
3420
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3421
|
-
"extends": "SmrtCollection",
|
|
3422
|
-
"fields": [],
|
|
3423
|
-
"relationships": [],
|
|
3424
|
-
"methods": [
|
|
3425
|
-
"findByKey",
|
|
3426
|
-
"findByPipeline"
|
|
3427
|
-
],
|
|
3428
|
-
"surfaces": [],
|
|
3429
|
-
"relationshipFeatures": [
|
|
3430
|
-
"uuidColumns"
|
|
3431
|
-
],
|
|
3432
|
-
"tags": [],
|
|
3433
|
-
"risks": []
|
|
3434
|
-
},
|
|
3435
|
-
{
|
|
3436
|
-
"name": "SalesActivityCollection",
|
|
3437
|
-
"qualifiedName": "@happyvertical/smrt-sales:SalesActivityCollection",
|
|
3438
|
-
"collection": "salesactivities",
|
|
3439
|
-
"tableName": "sales_activity_collections",
|
|
3440
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3441
|
-
"extends": "SmrtCollection",
|
|
3442
|
-
"fields": [],
|
|
3443
|
-
"relationships": [],
|
|
3444
|
-
"methods": [
|
|
3445
|
-
"findBySubject",
|
|
3446
|
-
"findOpenTasks"
|
|
3447
|
-
],
|
|
3448
|
-
"surfaces": [],
|
|
3449
|
-
"relationshipFeatures": [
|
|
3450
|
-
"uuidColumns"
|
|
3451
|
-
],
|
|
3452
|
-
"tags": [],
|
|
3453
|
-
"risks": []
|
|
3454
|
-
},
|
|
3455
|
-
{
|
|
3456
|
-
"name": "SalesRepresentativeCollection",
|
|
3457
|
-
"qualifiedName": "@happyvertical/smrt-sales:SalesRepresentativeCollection",
|
|
3458
|
-
"collection": "salesrepresentatives",
|
|
3459
|
-
"tableName": "sales_representative_collections",
|
|
3460
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
3461
|
-
"extends": "SmrtCollection",
|
|
3462
|
-
"fields": [],
|
|
3463
|
-
"relationships": [],
|
|
3464
|
-
"methods": [
|
|
3465
|
-
"findActive",
|
|
3466
|
-
"findByProfile"
|
|
3467
|
-
],
|
|
3468
|
-
"surfaces": [],
|
|
3469
|
-
"relationshipFeatures": [
|
|
3470
|
-
"uuidColumns"
|
|
3471
|
-
],
|
|
3472
|
-
"tags": [],
|
|
3473
|
-
"risks": []
|
|
3474
|
-
},
|
|
3475
3475
|
{
|
|
3476
3476
|
"name": "AttributionExceptionCollection",
|
|
3477
3477
|
"qualifiedName": "@happyvertical/smrt-sales:AttributionExceptionCollection",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-sales",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.41",
|
|
4
4
|
"description": "Modular sales for the SMRT framework: agreement execution, CRM, referral intake, neutral commissions, and reusable Svelte surfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@happyvertical/signatures": "^0.84.0",
|
|
45
45
|
"@happyvertical/sql": "^0.84.0",
|
|
46
|
-
"@happyvertical/smrt-assets": "0.40.
|
|
47
|
-
"@happyvertical/smrt-
|
|
48
|
-
"@happyvertical/smrt-
|
|
49
|
-
"@happyvertical/smrt-ui": "0.40.
|
|
46
|
+
"@happyvertical/smrt-assets": "0.40.41",
|
|
47
|
+
"@happyvertical/smrt-tenancy": "0.40.41",
|
|
48
|
+
"@happyvertical/smrt-core": "0.40.41",
|
|
49
|
+
"@happyvertical/smrt-ui": "0.40.41"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"svelte": "^5.56.4"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "5.9.3",
|
|
61
61
|
"vite": "8.1.4",
|
|
62
62
|
"vitest": "4.1.10",
|
|
63
|
-
"@happyvertical/smrt-vitest": "0.40.
|
|
63
|
+
"@happyvertical/smrt-vitest": "0.40.41"
|
|
64
64
|
},
|
|
65
65
|
"smrtRawPrimitives": "strict",
|
|
66
66
|
"keywords": [
|