@happyvertical/smrt-sales 0.40.0 → 0.40.2

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 (54) hide show
  1. package/AGENTS.md +14 -6
  2. package/dist/agreements/collections/AgreementExecutionCollection.d.ts +106 -0
  3. package/dist/agreements/collections/AgreementExecutionCollection.d.ts.map +1 -0
  4. package/dist/agreements/collections/AgreementExecutionEventCollection.d.ts +16 -0
  5. package/dist/agreements/collections/AgreementExecutionEventCollection.d.ts.map +1 -0
  6. package/dist/agreements/collections/ExecutedAgreementCollection.d.ts +17 -0
  7. package/dist/agreements/collections/ExecutedAgreementCollection.d.ts.map +1 -0
  8. package/dist/agreements/index.d.ts +18 -0
  9. package/dist/agreements/index.d.ts.map +1 -0
  10. package/dist/agreements/models/AgreementExecution.d.ts +66 -0
  11. package/dist/agreements/models/AgreementExecution.d.ts.map +1 -0
  12. package/dist/agreements/models/AgreementExecutionEvent.d.ts +25 -0
  13. package/dist/agreements/models/AgreementExecutionEvent.d.ts.map +1 -0
  14. package/dist/agreements/models/ExecutedAgreement.d.ts +35 -0
  15. package/dist/agreements/models/ExecutedAgreement.d.ts.map +1 -0
  16. package/dist/agreements/services/AgreementExecutionService.d.ts +85 -0
  17. package/dist/agreements/services/AgreementExecutionService.d.ts.map +1 -0
  18. package/dist/agreements/types.d.ts +140 -0
  19. package/dist/agreements/types.d.ts.map +1 -0
  20. package/dist/agreements.d.ts +2 -0
  21. package/dist/agreements.d.ts.map +1 -0
  22. package/dist/agreements.js +3 -0
  23. package/dist/chunks/__smrt-register__-Cwn1Fb4I.js +6 -0
  24. package/dist/chunks/{__smrt-register__-DGR1u9K2.js.map → __smrt-register__-Cwn1Fb4I.js.map} +1 -1
  25. package/dist/chunks/agreements-DbzW1Pcq.js +1640 -0
  26. package/dist/chunks/agreements-DbzW1Pcq.js.map +1 -0
  27. package/dist/chunks/{referrals-CzkrPeKv.js → referrals-cYYg4YZw.js} +163 -40
  28. package/dist/chunks/referrals-cYYg4YZw.js.map +1 -0
  29. package/dist/commissions.js +1 -1
  30. package/dist/crm.js +1 -1
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +4 -3
  34. package/dist/manifest.json +1853 -99
  35. package/dist/referrals/collections/ReferralAgreementCollection.d.ts +0 -4
  36. package/dist/referrals/collections/ReferralAgreementCollection.d.ts.map +1 -1
  37. package/dist/referrals/index.d.ts +1 -0
  38. package/dist/referrals/index.d.ts.map +1 -1
  39. package/dist/referrals/models/ReferralAgreement.d.ts +8 -19
  40. package/dist/referrals/models/ReferralAgreement.d.ts.map +1 -1
  41. package/dist/referrals/services/ReferralAgreementExecutionService.d.ts +55 -0
  42. package/dist/referrals/services/ReferralAgreementExecutionService.d.ts.map +1 -0
  43. package/dist/referrals/types.d.ts +2 -4
  44. package/dist/referrals/types.d.ts.map +1 -1
  45. package/dist/referrals.js +3 -3
  46. package/dist/smrt-knowledge.json +780 -33
  47. package/dist/svelte/components/ExecutedAgreementsList.svelte +36 -10
  48. package/dist/svelte/components/ExecutedAgreementsList.svelte.d.ts +2 -0
  49. package/dist/svelte/components/ExecutedAgreementsList.svelte.d.ts.map +1 -1
  50. package/dist/svelte/types.d.ts +7 -3
  51. package/dist/svelte/types.d.ts.map +1 -1
  52. package/package.json +13 -7
  53. package/dist/chunks/__smrt-register__-DGR1u9K2.js +0 -6
  54. package/dist/chunks/referrals-CzkrPeKv.js.map +0 -1
@@ -1,15 +1,1784 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1784095198780,
3
+ "timestamp": 1784101442315,
4
4
  "packageName": "@happyvertical/smrt-sales",
5
- "packageVersion": "0.40.0",
5
+ "packageVersion": "0.40.2",
6
6
  "objects": {
7
+ "@happyvertical/smrt-sales:AgreementExecutionCollection": {
8
+ "name": "agreementexecutioncollection",
9
+ "className": "AgreementExecutionCollection",
10
+ "qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionCollection",
11
+ "collection": "agreementexecutions",
12
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/agreements/collections/AgreementExecutionCollection.ts",
13
+ "packageName": "@happyvertical/smrt-sales",
14
+ "fields": {},
15
+ "methods": {
16
+ "findByIdempotencyKey": {
17
+ "name": "findByIdempotencyKey",
18
+ "async": true,
19
+ "parameters": [
20
+ {
21
+ "name": "idempotencyKey",
22
+ "type": "string",
23
+ "optional": false
24
+ }
25
+ ],
26
+ "returnType": "Promise<AgreementExecution | null>",
27
+ "isStatic": false,
28
+ "isPublic": true
29
+ },
30
+ "findByProviderRequest": {
31
+ "name": "findByProviderRequest",
32
+ "async": true,
33
+ "parameters": [
34
+ {
35
+ "name": "provider",
36
+ "type": "string",
37
+ "optional": false
38
+ },
39
+ {
40
+ "name": "providerRequestId",
41
+ "type": "string",
42
+ "optional": false
43
+ }
44
+ ],
45
+ "returnType": "Promise<AgreementExecution | null>",
46
+ "isStatic": false,
47
+ "isPublic": true
48
+ },
49
+ "claimCreateAttempt": {
50
+ "name": "claimCreateAttempt",
51
+ "async": true,
52
+ "parameters": [
53
+ {
54
+ "name": "input",
55
+ "type": "ClaimAgreementCreateAttemptInput",
56
+ "optional": false
57
+ }
58
+ ],
59
+ "returnType": "Promise<AgreementExecution | null>",
60
+ "isStatic": false,
61
+ "isPublic": true
62
+ },
63
+ "completeCreateAttempt": {
64
+ "name": "completeCreateAttempt",
65
+ "async": true,
66
+ "parameters": [
67
+ {
68
+ "name": "input",
69
+ "type": "CompleteAgreementCreateAttemptInput",
70
+ "optional": false
71
+ }
72
+ ],
73
+ "returnType": "Promise<AgreementExecution | null>",
74
+ "isStatic": false,
75
+ "isPublic": true
76
+ },
77
+ "failCreateAttempt": {
78
+ "name": "failCreateAttempt",
79
+ "async": true,
80
+ "parameters": [
81
+ {
82
+ "name": "input",
83
+ "type": "FailAgreementCreateAttemptInput",
84
+ "optional": false
85
+ }
86
+ ],
87
+ "returnType": "Promise<AgreementExecution | null>",
88
+ "isStatic": false,
89
+ "isPublic": true
90
+ },
91
+ "bindProviderRequest": {
92
+ "name": "bindProviderRequest",
93
+ "async": true,
94
+ "parameters": [
95
+ {
96
+ "name": "input",
97
+ "type": "BindAgreementProviderRequestInput",
98
+ "optional": false
99
+ }
100
+ ],
101
+ "returnType": "Promise<AgreementExecution | null>",
102
+ "isStatic": false,
103
+ "isPublic": true
104
+ },
105
+ "compareAndSetLifecycle": {
106
+ "name": "compareAndSetLifecycle",
107
+ "async": true,
108
+ "parameters": [
109
+ {
110
+ "name": "input",
111
+ "type": "CompareAndSetAgreementLifecycleInput",
112
+ "optional": false
113
+ }
114
+ ],
115
+ "returnType": "Promise<AgreementExecution | null>",
116
+ "isStatic": false,
117
+ "isPublic": true
118
+ },
119
+ "incrementAttemptCount": {
120
+ "name": "incrementAttemptCount",
121
+ "async": true,
122
+ "parameters": [
123
+ {
124
+ "name": "tenantId",
125
+ "type": "string",
126
+ "optional": false
127
+ },
128
+ {
129
+ "name": "executionId",
130
+ "type": "string",
131
+ "optional": false
132
+ }
133
+ ],
134
+ "returnType": "Promise<AgreementExecution>",
135
+ "isStatic": false,
136
+ "isPublic": true
137
+ },
138
+ "updateLastError": {
139
+ "name": "updateLastError",
140
+ "async": true,
141
+ "parameters": [
142
+ {
143
+ "name": "input",
144
+ "type": "UpdateAgreementExecutionErrorInput",
145
+ "optional": false
146
+ }
147
+ ],
148
+ "returnType": "Promise<AgreementExecution>",
149
+ "isStatic": false,
150
+ "isPublic": true
151
+ },
152
+ "bindEvidenceArtifact": {
153
+ "name": "bindEvidenceArtifact",
154
+ "async": true,
155
+ "parameters": [
156
+ {
157
+ "name": "input",
158
+ "type": "BindAgreementEvidenceArtifactInput",
159
+ "optional": false
160
+ }
161
+ ],
162
+ "returnType": "Promise<AgreementExecution | null>",
163
+ "isStatic": false,
164
+ "isPublic": true
165
+ },
166
+ "findBySource": {
167
+ "name": "findBySource",
168
+ "async": true,
169
+ "parameters": [
170
+ {
171
+ "name": "sourceKind",
172
+ "type": "string",
173
+ "optional": false
174
+ },
175
+ {
176
+ "name": "sourceId",
177
+ "type": "string",
178
+ "optional": false
179
+ }
180
+ ],
181
+ "returnType": "Promise<AgreementExecution[]>",
182
+ "isStatic": false,
183
+ "isPublic": true
184
+ }
185
+ },
186
+ "decoratorConfig": {},
187
+ "extends": "SmrtCollection",
188
+ "extendsTypeArg": "AgreementExecution",
189
+ "exportName": "AgreementExecutionCollection",
190
+ "collectionExportName": "AgreementExecutionCollectionCollection",
191
+ "schema": {
192
+ "tableName": "agreement_execution_collections",
193
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agreement_execution_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
194
+ "columns": {
195
+ "id": {
196
+ "type": "UUID",
197
+ "primaryKey": true,
198
+ "referenceKind": "id",
199
+ "notNull": true
200
+ },
201
+ "slug": {
202
+ "type": "TEXT",
203
+ "notNull": true
204
+ },
205
+ "context": {
206
+ "type": "TEXT",
207
+ "notNull": true,
208
+ "default": ""
209
+ },
210
+ "created_at": {
211
+ "type": "TIMESTAMP",
212
+ "notNull": true,
213
+ "default": "current_timestamp"
214
+ },
215
+ "updated_at": {
216
+ "type": "TIMESTAMP",
217
+ "notNull": true,
218
+ "default": "current_timestamp"
219
+ }
220
+ },
221
+ "indexes": [
222
+ {
223
+ "name": "agreement_execution_collections_id_idx",
224
+ "columns": [
225
+ "id"
226
+ ]
227
+ },
228
+ {
229
+ "name": "agreement_execution_collections_slug_context_idx",
230
+ "columns": [
231
+ "slug",
232
+ "context"
233
+ ],
234
+ "unique": true
235
+ }
236
+ ],
237
+ "version": "801c5482"
238
+ }
239
+ },
240
+ "@happyvertical/smrt-sales:AgreementExecutionEventCollection": {
241
+ "name": "agreementexecutioneventcollection",
242
+ "className": "AgreementExecutionEventCollection",
243
+ "qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionEventCollection",
244
+ "collection": "agreementexecutionevents",
245
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/agreements/collections/AgreementExecutionEventCollection.ts",
246
+ "packageName": "@happyvertical/smrt-sales",
247
+ "fields": {},
248
+ "methods": {
249
+ "findByDedupeKey": {
250
+ "name": "findByDedupeKey",
251
+ "async": true,
252
+ "parameters": [
253
+ {
254
+ "name": "dedupeKey",
255
+ "type": "string",
256
+ "optional": false
257
+ }
258
+ ],
259
+ "returnType": "Promise<AgreementExecutionEvent | null>",
260
+ "isStatic": false,
261
+ "isPublic": true
262
+ },
263
+ "recordVerified": {
264
+ "name": "recordVerified",
265
+ "async": true,
266
+ "parameters": [
267
+ {
268
+ "name": "options",
269
+ "type": "VerifiedAgreementExecutionEventOptions",
270
+ "optional": false
271
+ }
272
+ ],
273
+ "returnType": "Promise<object>",
274
+ "isStatic": false,
275
+ "isPublic": true
276
+ },
277
+ "findByExecution": {
278
+ "name": "findByExecution",
279
+ "async": true,
280
+ "parameters": [
281
+ {
282
+ "name": "executionId",
283
+ "type": "string",
284
+ "optional": false
285
+ }
286
+ ],
287
+ "returnType": "Promise<AgreementExecutionEvent[]>",
288
+ "isStatic": false,
289
+ "isPublic": true
290
+ },
291
+ "findProviderEventsByExecution": {
292
+ "name": "findProviderEventsByExecution",
293
+ "async": true,
294
+ "parameters": [
295
+ {
296
+ "name": "executionId",
297
+ "type": "string",
298
+ "optional": false
299
+ }
300
+ ],
301
+ "returnType": "Promise<AgreementExecutionEvent[]>",
302
+ "isStatic": false,
303
+ "isPublic": true
304
+ }
305
+ },
306
+ "decoratorConfig": {},
307
+ "extends": "SmrtCollection",
308
+ "extendsTypeArg": "AgreementExecutionEvent",
309
+ "exportName": "AgreementExecutionEventCollection",
310
+ "collectionExportName": "AgreementExecutionEventCollectionCollection",
311
+ "schema": {
312
+ "tableName": "agreement_execution_event_collections",
313
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agreement_execution_event_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
314
+ "columns": {
315
+ "id": {
316
+ "type": "UUID",
317
+ "primaryKey": true,
318
+ "referenceKind": "id",
319
+ "notNull": true
320
+ },
321
+ "slug": {
322
+ "type": "TEXT",
323
+ "notNull": true
324
+ },
325
+ "context": {
326
+ "type": "TEXT",
327
+ "notNull": true,
328
+ "default": ""
329
+ },
330
+ "created_at": {
331
+ "type": "TIMESTAMP",
332
+ "notNull": true,
333
+ "default": "current_timestamp"
334
+ },
335
+ "updated_at": {
336
+ "type": "TIMESTAMP",
337
+ "notNull": true,
338
+ "default": "current_timestamp"
339
+ }
340
+ },
341
+ "indexes": [
342
+ {
343
+ "name": "agreement_execution_event_collections_id_idx",
344
+ "columns": [
345
+ "id"
346
+ ]
347
+ },
348
+ {
349
+ "name": "agreement_execution_event_collections_slug_context_idx",
350
+ "columns": [
351
+ "slug",
352
+ "context"
353
+ ],
354
+ "unique": true
355
+ }
356
+ ],
357
+ "version": "055a9e0f"
358
+ }
359
+ },
360
+ "@happyvertical/smrt-sales:ExecutedAgreementCollection": {
361
+ "name": "executedagreementcollection",
362
+ "className": "ExecutedAgreementCollection",
363
+ "qualifiedName": "@happyvertical/smrt-sales:ExecutedAgreementCollection",
364
+ "collection": "executedagreements",
365
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/agreements/collections/ExecutedAgreementCollection.ts",
366
+ "packageName": "@happyvertical/smrt-sales",
367
+ "fields": {},
368
+ "methods": {
369
+ "findByExecution": {
370
+ "name": "findByExecution",
371
+ "async": true,
372
+ "parameters": [
373
+ {
374
+ "name": "executionId",
375
+ "type": "string",
376
+ "optional": false
377
+ }
378
+ ],
379
+ "returnType": "Promise<ExecutedAgreement | null>",
380
+ "isStatic": false,
381
+ "isPublic": true
382
+ },
383
+ "createImmutable": {
384
+ "name": "createImmutable",
385
+ "async": true,
386
+ "parameters": [
387
+ {
388
+ "name": "options",
389
+ "type": "ExecutedAgreementOptions",
390
+ "optional": false
391
+ }
392
+ ],
393
+ "returnType": "Promise<object>",
394
+ "isStatic": false,
395
+ "isPublic": true
396
+ },
397
+ "findVersionsBySource": {
398
+ "name": "findVersionsBySource",
399
+ "async": true,
400
+ "parameters": [
401
+ {
402
+ "name": "sourceKind",
403
+ "type": "string",
404
+ "optional": false
405
+ },
406
+ {
407
+ "name": "sourceId",
408
+ "type": "string",
409
+ "optional": false
410
+ }
411
+ ],
412
+ "returnType": "Promise<ExecutedAgreement[]>",
413
+ "isStatic": false,
414
+ "isPublic": true
415
+ },
416
+ "effectiveForSource": {
417
+ "name": "effectiveForSource",
418
+ "async": true,
419
+ "parameters": [
420
+ {
421
+ "name": "sourceKind",
422
+ "type": "string",
423
+ "optional": false
424
+ },
425
+ {
426
+ "name": "sourceId",
427
+ "type": "string",
428
+ "optional": false
429
+ },
430
+ {
431
+ "name": "at",
432
+ "type": "Date",
433
+ "optional": true
434
+ }
435
+ ],
436
+ "returnType": "Promise<ExecutedAgreement | null>",
437
+ "isStatic": false,
438
+ "isPublic": true
439
+ }
440
+ },
441
+ "decoratorConfig": {},
442
+ "extends": "SmrtCollection",
443
+ "extendsTypeArg": "ExecutedAgreement",
444
+ "exportName": "ExecutedAgreementCollection",
445
+ "collectionExportName": "ExecutedAgreementCollectionCollection",
446
+ "schema": {
447
+ "tableName": "executed_agreement_collections",
448
+ "ddl": "CREATE TABLE IF NOT EXISTS \"executed_agreement_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
449
+ "columns": {
450
+ "id": {
451
+ "type": "UUID",
452
+ "primaryKey": true,
453
+ "referenceKind": "id",
454
+ "notNull": true
455
+ },
456
+ "slug": {
457
+ "type": "TEXT",
458
+ "notNull": true
459
+ },
460
+ "context": {
461
+ "type": "TEXT",
462
+ "notNull": true,
463
+ "default": ""
464
+ },
465
+ "created_at": {
466
+ "type": "TIMESTAMP",
467
+ "notNull": true,
468
+ "default": "current_timestamp"
469
+ },
470
+ "updated_at": {
471
+ "type": "TIMESTAMP",
472
+ "notNull": true,
473
+ "default": "current_timestamp"
474
+ }
475
+ },
476
+ "indexes": [
477
+ {
478
+ "name": "executed_agreement_collections_id_idx",
479
+ "columns": [
480
+ "id"
481
+ ]
482
+ },
483
+ {
484
+ "name": "executed_agreement_collections_slug_context_idx",
485
+ "columns": [
486
+ "slug",
487
+ "context"
488
+ ],
489
+ "unique": true
490
+ }
491
+ ],
492
+ "version": "73fd604d"
493
+ }
494
+ },
495
+ "@happyvertical/smrt-sales:AgreementExecution": {
496
+ "name": "agreementexecution",
497
+ "className": "AgreementExecution",
498
+ "qualifiedName": "@happyvertical/smrt-sales:AgreementExecution",
499
+ "collection": "agreementexecutions",
500
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/agreements/models/AgreementExecution.ts",
501
+ "packageName": "@happyvertical/smrt-sales",
502
+ "fields": {
503
+ "tenantId": {
504
+ "type": "text",
505
+ "required": true,
506
+ "_meta": {
507
+ "sqlType": "UUID",
508
+ "__tenancy": {
509
+ "isTenantIdField": true,
510
+ "autoFilter": true,
511
+ "required": true,
512
+ "autoPopulate": true,
513
+ "nullable": false,
514
+ "mode": "required",
515
+ "field": "tenantId",
516
+ "allowSuperAdminBypass": false
517
+ }
518
+ }
519
+ },
520
+ "provider": {
521
+ "type": "text",
522
+ "required": true,
523
+ "default": "",
524
+ "_meta": {
525
+ "required": true
526
+ }
527
+ },
528
+ "providerAccountRef": {
529
+ "type": "text",
530
+ "required": false,
531
+ "default": ""
532
+ },
533
+ "credentialRef": {
534
+ "type": "text",
535
+ "required": false,
536
+ "default": ""
537
+ },
538
+ "idempotencyKey": {
539
+ "type": "text",
540
+ "required": true,
541
+ "default": "",
542
+ "_meta": {
543
+ "required": true
544
+ }
545
+ },
546
+ "sourceKind": {
547
+ "type": "text",
548
+ "required": true,
549
+ "default": "",
550
+ "_meta": {
551
+ "required": true
552
+ }
553
+ },
554
+ "sourceId": {
555
+ "type": "text",
556
+ "required": true,
557
+ "default": "",
558
+ "_meta": {
559
+ "required": true
560
+ }
561
+ },
562
+ "sourceVersion": {
563
+ "type": "integer",
564
+ "required": false,
565
+ "default": 1
566
+ },
567
+ "sourceAssetId": {
568
+ "type": "crossPackageRef",
569
+ "required": false,
570
+ "related": "@happyvertical/smrt-assets:Asset"
571
+ },
572
+ "sourceSha256": {
573
+ "type": "text",
574
+ "required": false,
575
+ "default": ""
576
+ },
577
+ "sourceSizeBytes": {
578
+ "type": "integer",
579
+ "required": false,
580
+ "default": 0
581
+ },
582
+ "requestIntentSha256": {
583
+ "type": "text",
584
+ "required": false,
585
+ "default": ""
586
+ },
587
+ "title": {
588
+ "type": "text",
589
+ "required": false,
590
+ "default": ""
591
+ },
592
+ "signerIntent": {
593
+ "type": "text",
594
+ "required": false,
595
+ "default": "[]"
596
+ },
597
+ "providerRequestId": {
598
+ "type": "text",
599
+ "required": false,
600
+ "default": ""
601
+ },
602
+ "providerRequestKey": {
603
+ "type": "text",
604
+ "required": false,
605
+ "_meta": {
606
+ "nullable": true,
607
+ "unique": true
608
+ }
609
+ },
610
+ "status": {
611
+ "type": "text",
612
+ "required": false,
613
+ "default": "prepared"
614
+ },
615
+ "expiresAt": {
616
+ "type": "datetime",
617
+ "required": false
618
+ },
619
+ "cancellationReason": {
620
+ "type": "text",
621
+ "required": false,
622
+ "default": ""
623
+ },
624
+ "lastProviderEventAt": {
625
+ "type": "datetime",
626
+ "required": false
627
+ },
628
+ "lastReconciledAt": {
629
+ "type": "datetime",
630
+ "required": false
631
+ },
632
+ "completedAt": {
633
+ "type": "datetime",
634
+ "required": false
635
+ },
636
+ "effectiveFrom": {
637
+ "type": "datetime",
638
+ "required": false
639
+ },
640
+ "effectiveTo": {
641
+ "type": "datetime",
642
+ "required": false
643
+ },
644
+ "supersedesExecutedAgreementId": {
645
+ "type": "text",
646
+ "required": false,
647
+ "default": ""
648
+ },
649
+ "signedDocumentAssetId": {
650
+ "type": "crossPackageRef",
651
+ "required": false,
652
+ "related": "@happyvertical/smrt-assets:Asset"
653
+ },
654
+ "signedDocumentSha256": {
655
+ "type": "text",
656
+ "required": false,
657
+ "default": ""
658
+ },
659
+ "signedDocumentSizeBytes": {
660
+ "type": "integer",
661
+ "required": false,
662
+ "default": 0
663
+ },
664
+ "signedDocumentMediaType": {
665
+ "type": "text",
666
+ "required": false,
667
+ "default": ""
668
+ },
669
+ "signedDocumentFilename": {
670
+ "type": "text",
671
+ "required": false,
672
+ "default": ""
673
+ },
674
+ "auditTrailAssetId": {
675
+ "type": "crossPackageRef",
676
+ "required": false,
677
+ "related": "@happyvertical/smrt-assets:Asset"
678
+ },
679
+ "auditTrailSha256": {
680
+ "type": "text",
681
+ "required": false,
682
+ "default": ""
683
+ },
684
+ "auditTrailSizeBytes": {
685
+ "type": "integer",
686
+ "required": false,
687
+ "default": 0
688
+ },
689
+ "auditTrailMediaType": {
690
+ "type": "text",
691
+ "required": false,
692
+ "default": ""
693
+ },
694
+ "auditTrailFilename": {
695
+ "type": "text",
696
+ "required": false,
697
+ "default": ""
698
+ },
699
+ "attemptCount": {
700
+ "type": "integer",
701
+ "required": false,
702
+ "default": 0
703
+ },
704
+ "createLeaseId": {
705
+ "type": "text",
706
+ "required": false,
707
+ "default": ""
708
+ },
709
+ "createLeaseExpiresAt": {
710
+ "type": "datetime",
711
+ "required": false
712
+ },
713
+ "lastError": {
714
+ "type": "text",
715
+ "required": false,
716
+ "default": ""
717
+ },
718
+ "metadata": {
719
+ "type": "text",
720
+ "required": false,
721
+ "default": "{}"
722
+ }
723
+ },
724
+ "methods": {
725
+ "initialize": {
726
+ "name": "initialize",
727
+ "async": true,
728
+ "parameters": [],
729
+ "returnType": "Promise",
730
+ "isStatic": false,
731
+ "isPublic": true
732
+ },
733
+ "save": {
734
+ "name": "save",
735
+ "async": true,
736
+ "parameters": [],
737
+ "returnType": "Promise",
738
+ "isStatic": false,
739
+ "isPublic": true
740
+ },
741
+ "getSignerIntent": {
742
+ "name": "getSignerIntent",
743
+ "async": false,
744
+ "parameters": [],
745
+ "returnType": "AgreementSignerIntent[]",
746
+ "isStatic": false,
747
+ "isPublic": true
748
+ }
749
+ },
750
+ "decoratorConfig": {
751
+ "conflictColumns": [
752
+ "tenant_id",
753
+ "idempotency_key"
754
+ ],
755
+ "api": false,
756
+ "mcp": false,
757
+ "cli": false,
758
+ "tenantScoped": {
759
+ "mode": "required"
760
+ }
761
+ },
762
+ "extends": "SmrtObject",
763
+ "exportName": "AgreementExecution",
764
+ "collectionExportName": "AgreementExecutionCollection",
765
+ "validationRules": [
766
+ {
767
+ "field": "tenantId",
768
+ "rule": "required",
769
+ "fieldType": "text"
770
+ },
771
+ {
772
+ "field": "provider",
773
+ "rule": "required",
774
+ "fieldType": "text"
775
+ },
776
+ {
777
+ "field": "idempotencyKey",
778
+ "rule": "required",
779
+ "fieldType": "text"
780
+ },
781
+ {
782
+ "field": "sourceKind",
783
+ "rule": "required",
784
+ "fieldType": "text"
785
+ },
786
+ {
787
+ "field": "sourceId",
788
+ "rule": "required",
789
+ "fieldType": "text"
790
+ }
791
+ ],
792
+ "schema": {
793
+ "tableName": "agreement_executions",
794
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agreement_executions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"provider\" TEXT NOT NULL DEFAULT '',\n \"provider_account_ref\" TEXT DEFAULT '',\n \"credential_ref\" TEXT DEFAULT '',\n \"idempotency_key\" TEXT NOT NULL DEFAULT '',\n \"source_kind\" TEXT NOT NULL DEFAULT '',\n \"source_id\" TEXT NOT NULL DEFAULT '',\n \"source_version\" INTEGER DEFAULT 1,\n \"source_asset_id\" UUID,\n \"source_sha256\" TEXT DEFAULT '',\n \"source_size_bytes\" INTEGER DEFAULT 0,\n \"request_intent_sha256\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"signer_intent\" TEXT DEFAULT '[]',\n \"provider_request_id\" TEXT DEFAULT '',\n \"provider_request_key\" TEXT UNIQUE,\n \"status\" TEXT DEFAULT 'prepared',\n \"expires_at\" TIMESTAMP,\n \"cancellation_reason\" TEXT DEFAULT '',\n \"last_provider_event_at\" TIMESTAMP,\n \"last_reconciled_at\" TIMESTAMP,\n \"completed_at\" TIMESTAMP,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"supersedes_executed_agreement_id\" TEXT DEFAULT '',\n \"signed_document_asset_id\" UUID,\n \"signed_document_sha256\" TEXT DEFAULT '',\n \"signed_document_size_bytes\" INTEGER DEFAULT 0,\n \"signed_document_media_type\" TEXT DEFAULT '',\n \"signed_document_filename\" TEXT DEFAULT '',\n \"audit_trail_asset_id\" UUID,\n \"audit_trail_sha256\" TEXT DEFAULT '',\n \"audit_trail_size_bytes\" INTEGER DEFAULT 0,\n \"audit_trail_media_type\" TEXT DEFAULT '',\n \"audit_trail_filename\" TEXT DEFAULT '',\n \"attempt_count\" INTEGER DEFAULT 0,\n \"create_lease_id\" TEXT DEFAULT '',\n \"create_lease_expires_at\" TIMESTAMP,\n \"last_error\" TEXT DEFAULT '',\n \"metadata\" TEXT DEFAULT '{}'\n);",
795
+ "columns": {
796
+ "id": {
797
+ "type": "UUID",
798
+ "primaryKey": true,
799
+ "referenceKind": "id",
800
+ "notNull": true
801
+ },
802
+ "slug": {
803
+ "type": "TEXT",
804
+ "notNull": true
805
+ },
806
+ "context": {
807
+ "type": "TEXT",
808
+ "notNull": true,
809
+ "default": ""
810
+ },
811
+ "created_at": {
812
+ "type": "TIMESTAMP",
813
+ "notNull": true,
814
+ "default": "current_timestamp"
815
+ },
816
+ "updated_at": {
817
+ "type": "TIMESTAMP",
818
+ "notNull": true,
819
+ "default": "current_timestamp"
820
+ },
821
+ "tenant_id": {
822
+ "type": "UUID",
823
+ "referenceKind": "tenantId",
824
+ "notNull": true,
825
+ "unique": false
826
+ },
827
+ "provider": {
828
+ "type": "TEXT",
829
+ "notNull": true,
830
+ "unique": false,
831
+ "default": ""
832
+ },
833
+ "provider_account_ref": {
834
+ "type": "TEXT",
835
+ "notNull": false,
836
+ "unique": false,
837
+ "default": ""
838
+ },
839
+ "credential_ref": {
840
+ "type": "TEXT",
841
+ "notNull": false,
842
+ "unique": false,
843
+ "default": ""
844
+ },
845
+ "idempotency_key": {
846
+ "type": "TEXT",
847
+ "notNull": true,
848
+ "unique": false,
849
+ "default": ""
850
+ },
851
+ "source_kind": {
852
+ "type": "TEXT",
853
+ "notNull": true,
854
+ "unique": false,
855
+ "default": ""
856
+ },
857
+ "source_id": {
858
+ "type": "TEXT",
859
+ "notNull": true,
860
+ "unique": false,
861
+ "default": ""
862
+ },
863
+ "source_version": {
864
+ "type": "INTEGER",
865
+ "notNull": false,
866
+ "unique": false,
867
+ "default": 1
868
+ },
869
+ "source_asset_id": {
870
+ "type": "UUID",
871
+ "referenceKind": "crossPackageRef",
872
+ "notNull": false,
873
+ "unique": false
874
+ },
875
+ "source_sha256": {
876
+ "type": "TEXT",
877
+ "notNull": false,
878
+ "unique": false,
879
+ "default": ""
880
+ },
881
+ "source_size_bytes": {
882
+ "type": "INTEGER",
883
+ "notNull": false,
884
+ "unique": false,
885
+ "default": 0
886
+ },
887
+ "request_intent_sha256": {
888
+ "type": "TEXT",
889
+ "notNull": false,
890
+ "unique": false,
891
+ "default": ""
892
+ },
893
+ "title": {
894
+ "type": "TEXT",
895
+ "notNull": false,
896
+ "unique": false,
897
+ "default": ""
898
+ },
899
+ "signer_intent": {
900
+ "type": "TEXT",
901
+ "notNull": false,
902
+ "unique": false,
903
+ "default": "[]"
904
+ },
905
+ "provider_request_id": {
906
+ "type": "TEXT",
907
+ "notNull": false,
908
+ "unique": false,
909
+ "default": ""
910
+ },
911
+ "provider_request_key": {
912
+ "type": "TEXT",
913
+ "notNull": false,
914
+ "unique": true
915
+ },
916
+ "status": {
917
+ "type": "TEXT",
918
+ "notNull": false,
919
+ "unique": false,
920
+ "default": "prepared"
921
+ },
922
+ "expires_at": {
923
+ "type": "TIMESTAMP",
924
+ "notNull": false,
925
+ "unique": false
926
+ },
927
+ "cancellation_reason": {
928
+ "type": "TEXT",
929
+ "notNull": false,
930
+ "unique": false,
931
+ "default": ""
932
+ },
933
+ "last_provider_event_at": {
934
+ "type": "TIMESTAMP",
935
+ "notNull": false,
936
+ "unique": false
937
+ },
938
+ "last_reconciled_at": {
939
+ "type": "TIMESTAMP",
940
+ "notNull": false,
941
+ "unique": false
942
+ },
943
+ "completed_at": {
944
+ "type": "TIMESTAMP",
945
+ "notNull": false,
946
+ "unique": false
947
+ },
948
+ "effective_from": {
949
+ "type": "TIMESTAMP",
950
+ "notNull": false,
951
+ "unique": false
952
+ },
953
+ "effective_to": {
954
+ "type": "TIMESTAMP",
955
+ "notNull": false,
956
+ "unique": false
957
+ },
958
+ "supersedes_executed_agreement_id": {
959
+ "type": "TEXT",
960
+ "notNull": false,
961
+ "unique": false,
962
+ "default": ""
963
+ },
964
+ "signed_document_asset_id": {
965
+ "type": "UUID",
966
+ "referenceKind": "crossPackageRef",
967
+ "notNull": false,
968
+ "unique": false
969
+ },
970
+ "signed_document_sha256": {
971
+ "type": "TEXT",
972
+ "notNull": false,
973
+ "unique": false,
974
+ "default": ""
975
+ },
976
+ "signed_document_size_bytes": {
977
+ "type": "INTEGER",
978
+ "notNull": false,
979
+ "unique": false,
980
+ "default": 0
981
+ },
982
+ "signed_document_media_type": {
983
+ "type": "TEXT",
984
+ "notNull": false,
985
+ "unique": false,
986
+ "default": ""
987
+ },
988
+ "signed_document_filename": {
989
+ "type": "TEXT",
990
+ "notNull": false,
991
+ "unique": false,
992
+ "default": ""
993
+ },
994
+ "audit_trail_asset_id": {
995
+ "type": "UUID",
996
+ "referenceKind": "crossPackageRef",
997
+ "notNull": false,
998
+ "unique": false
999
+ },
1000
+ "audit_trail_sha256": {
1001
+ "type": "TEXT",
1002
+ "notNull": false,
1003
+ "unique": false,
1004
+ "default": ""
1005
+ },
1006
+ "audit_trail_size_bytes": {
1007
+ "type": "INTEGER",
1008
+ "notNull": false,
1009
+ "unique": false,
1010
+ "default": 0
1011
+ },
1012
+ "audit_trail_media_type": {
1013
+ "type": "TEXT",
1014
+ "notNull": false,
1015
+ "unique": false,
1016
+ "default": ""
1017
+ },
1018
+ "audit_trail_filename": {
1019
+ "type": "TEXT",
1020
+ "notNull": false,
1021
+ "unique": false,
1022
+ "default": ""
1023
+ },
1024
+ "attempt_count": {
1025
+ "type": "INTEGER",
1026
+ "notNull": false,
1027
+ "unique": false,
1028
+ "default": 0
1029
+ },
1030
+ "create_lease_id": {
1031
+ "type": "TEXT",
1032
+ "notNull": false,
1033
+ "unique": false,
1034
+ "default": ""
1035
+ },
1036
+ "create_lease_expires_at": {
1037
+ "type": "TIMESTAMP",
1038
+ "notNull": false,
1039
+ "unique": false
1040
+ },
1041
+ "last_error": {
1042
+ "type": "TEXT",
1043
+ "notNull": false,
1044
+ "unique": false,
1045
+ "default": ""
1046
+ },
1047
+ "metadata": {
1048
+ "type": "TEXT",
1049
+ "notNull": false,
1050
+ "unique": false,
1051
+ "default": "{}"
1052
+ }
1053
+ },
1054
+ "indexes": [
1055
+ {
1056
+ "name": "agreement_executions_id_idx",
1057
+ "columns": [
1058
+ "id"
1059
+ ]
1060
+ },
1061
+ {
1062
+ "name": "agreement_executions_tenant_id_idempotency_key_idx",
1063
+ "columns": [
1064
+ "tenant_id",
1065
+ "idempotency_key"
1066
+ ],
1067
+ "unique": true
1068
+ }
1069
+ ],
1070
+ "version": "33a93a76"
1071
+ }
1072
+ },
1073
+ "@happyvertical/smrt-sales:AgreementExecutionEvent": {
1074
+ "name": "agreementexecutionevent",
1075
+ "className": "AgreementExecutionEvent",
1076
+ "qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionEvent",
1077
+ "collection": "agreementexecutionevents",
1078
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/agreements/models/AgreementExecutionEvent.ts",
1079
+ "packageName": "@happyvertical/smrt-sales",
1080
+ "fields": {
1081
+ "tenantId": {
1082
+ "type": "text",
1083
+ "required": true,
1084
+ "_meta": {
1085
+ "sqlType": "UUID",
1086
+ "__tenancy": {
1087
+ "isTenantIdField": true,
1088
+ "autoFilter": true,
1089
+ "required": true,
1090
+ "autoPopulate": true,
1091
+ "nullable": false,
1092
+ "mode": "required",
1093
+ "field": "tenantId",
1094
+ "allowSuperAdminBypass": false
1095
+ }
1096
+ }
1097
+ },
1098
+ "executionId": {
1099
+ "type": "foreignKey",
1100
+ "required": true,
1101
+ "related": "AgreementExecution",
1102
+ "_meta": {
1103
+ "required": true
1104
+ }
1105
+ },
1106
+ "provider": {
1107
+ "type": "text",
1108
+ "required": false,
1109
+ "default": ""
1110
+ },
1111
+ "providerEventId": {
1112
+ "type": "text",
1113
+ "required": false,
1114
+ "default": ""
1115
+ },
1116
+ "eventOrigin": {
1117
+ "type": "text",
1118
+ "required": false,
1119
+ "default": "provider_webhook"
1120
+ },
1121
+ "operationId": {
1122
+ "type": "text",
1123
+ "required": false,
1124
+ "default": ""
1125
+ },
1126
+ "dedupeKey": {
1127
+ "type": "text",
1128
+ "required": true,
1129
+ "default": "",
1130
+ "_meta": {
1131
+ "required": true
1132
+ }
1133
+ },
1134
+ "orderingKey": {
1135
+ "type": "text",
1136
+ "required": false,
1137
+ "default": ""
1138
+ },
1139
+ "eventType": {
1140
+ "type": "text",
1141
+ "required": false,
1142
+ "default": ""
1143
+ },
1144
+ "status": {
1145
+ "type": "text",
1146
+ "required": false,
1147
+ "default": "prepared"
1148
+ },
1149
+ "occurredAt": {
1150
+ "type": "datetime",
1151
+ "required": false
1152
+ },
1153
+ "receivedAt": {
1154
+ "type": "datetime",
1155
+ "required": false
1156
+ },
1157
+ "payloadSha256": {
1158
+ "type": "text",
1159
+ "required": false,
1160
+ "default": ""
1161
+ },
1162
+ "signerEvidence": {
1163
+ "type": "text",
1164
+ "required": false,
1165
+ "default": "[]"
1166
+ },
1167
+ "payload": {
1168
+ "type": "text",
1169
+ "required": false,
1170
+ "default": "{}"
1171
+ }
1172
+ },
1173
+ "methods": {
1174
+ "initialize": {
1175
+ "name": "initialize",
1176
+ "async": true,
1177
+ "parameters": [],
1178
+ "returnType": "Promise",
1179
+ "isStatic": false,
1180
+ "isPublic": true
1181
+ },
1182
+ "save": {
1183
+ "name": "save",
1184
+ "async": true,
1185
+ "parameters": [],
1186
+ "returnType": "Promise",
1187
+ "isStatic": false,
1188
+ "isPublic": true
1189
+ }
1190
+ },
1191
+ "decoratorConfig": {
1192
+ "conflictColumns": [
1193
+ "tenant_id",
1194
+ "dedupe_key"
1195
+ ],
1196
+ "api": false,
1197
+ "mcp": false,
1198
+ "cli": false,
1199
+ "tenantScoped": {
1200
+ "mode": "required"
1201
+ }
1202
+ },
1203
+ "extends": "SmrtObject",
1204
+ "exportName": "AgreementExecutionEvent",
1205
+ "collectionExportName": "AgreementExecutionEventCollection",
1206
+ "validationRules": [
1207
+ {
1208
+ "field": "tenantId",
1209
+ "rule": "required",
1210
+ "fieldType": "text"
1211
+ },
1212
+ {
1213
+ "field": "executionId",
1214
+ "rule": "required",
1215
+ "fieldType": "foreignKey"
1216
+ },
1217
+ {
1218
+ "field": "dedupeKey",
1219
+ "rule": "required",
1220
+ "fieldType": "text"
1221
+ }
1222
+ ],
1223
+ "schema": {
1224
+ "tableName": "agreement_execution_events",
1225
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agreement_execution_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"execution_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT '',\n \"provider_event_id\" TEXT DEFAULT '',\n \"event_origin\" TEXT DEFAULT 'provider_webhook',\n \"operation_id\" TEXT DEFAULT '',\n \"dedupe_key\" TEXT NOT NULL DEFAULT '',\n \"ordering_key\" TEXT DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'prepared',\n \"occurred_at\" TIMESTAMP,\n \"received_at\" TIMESTAMP,\n \"payload_sha256\" TEXT DEFAULT '',\n \"signer_evidence\" TEXT DEFAULT '[]',\n \"payload\" TEXT DEFAULT '{}'\n);",
1226
+ "columns": {
1227
+ "id": {
1228
+ "type": "UUID",
1229
+ "primaryKey": true,
1230
+ "referenceKind": "id",
1231
+ "notNull": true
1232
+ },
1233
+ "slug": {
1234
+ "type": "TEXT",
1235
+ "notNull": true
1236
+ },
1237
+ "context": {
1238
+ "type": "TEXT",
1239
+ "notNull": true,
1240
+ "default": ""
1241
+ },
1242
+ "created_at": {
1243
+ "type": "TIMESTAMP",
1244
+ "notNull": true,
1245
+ "default": "current_timestamp"
1246
+ },
1247
+ "updated_at": {
1248
+ "type": "TIMESTAMP",
1249
+ "notNull": true,
1250
+ "default": "current_timestamp"
1251
+ },
1252
+ "tenant_id": {
1253
+ "type": "UUID",
1254
+ "referenceKind": "tenantId",
1255
+ "notNull": true,
1256
+ "unique": false
1257
+ },
1258
+ "execution_id": {
1259
+ "type": "UUID",
1260
+ "referenceKind": "foreignKey",
1261
+ "notNull": true,
1262
+ "unique": false
1263
+ },
1264
+ "provider": {
1265
+ "type": "TEXT",
1266
+ "notNull": false,
1267
+ "unique": false,
1268
+ "default": ""
1269
+ },
1270
+ "provider_event_id": {
1271
+ "type": "TEXT",
1272
+ "notNull": false,
1273
+ "unique": false,
1274
+ "default": ""
1275
+ },
1276
+ "event_origin": {
1277
+ "type": "TEXT",
1278
+ "notNull": false,
1279
+ "unique": false,
1280
+ "default": "provider_webhook"
1281
+ },
1282
+ "operation_id": {
1283
+ "type": "TEXT",
1284
+ "notNull": false,
1285
+ "unique": false,
1286
+ "default": ""
1287
+ },
1288
+ "dedupe_key": {
1289
+ "type": "TEXT",
1290
+ "notNull": true,
1291
+ "unique": false,
1292
+ "default": ""
1293
+ },
1294
+ "ordering_key": {
1295
+ "type": "TEXT",
1296
+ "notNull": false,
1297
+ "unique": false,
1298
+ "default": ""
1299
+ },
1300
+ "event_type": {
1301
+ "type": "TEXT",
1302
+ "notNull": false,
1303
+ "unique": false,
1304
+ "default": ""
1305
+ },
1306
+ "status": {
1307
+ "type": "TEXT",
1308
+ "notNull": false,
1309
+ "unique": false,
1310
+ "default": "prepared"
1311
+ },
1312
+ "occurred_at": {
1313
+ "type": "TIMESTAMP",
1314
+ "notNull": false,
1315
+ "unique": false
1316
+ },
1317
+ "received_at": {
1318
+ "type": "TIMESTAMP",
1319
+ "notNull": false,
1320
+ "unique": false
1321
+ },
1322
+ "payload_sha256": {
1323
+ "type": "TEXT",
1324
+ "notNull": false,
1325
+ "unique": false,
1326
+ "default": ""
1327
+ },
1328
+ "signer_evidence": {
1329
+ "type": "TEXT",
1330
+ "notNull": false,
1331
+ "unique": false,
1332
+ "default": "[]"
1333
+ },
1334
+ "payload": {
1335
+ "type": "TEXT",
1336
+ "notNull": false,
1337
+ "unique": false,
1338
+ "default": "{}"
1339
+ }
1340
+ },
1341
+ "indexes": [
1342
+ {
1343
+ "name": "agreement_execution_events_id_idx",
1344
+ "columns": [
1345
+ "id"
1346
+ ]
1347
+ },
1348
+ {
1349
+ "name": "agreement_execution_events_tenant_id_dedupe_key_idx",
1350
+ "columns": [
1351
+ "tenant_id",
1352
+ "dedupe_key"
1353
+ ],
1354
+ "unique": true
1355
+ }
1356
+ ],
1357
+ "version": "beeb890c"
1358
+ }
1359
+ },
1360
+ "@happyvertical/smrt-sales:ExecutedAgreement": {
1361
+ "name": "executedagreement",
1362
+ "className": "ExecutedAgreement",
1363
+ "qualifiedName": "@happyvertical/smrt-sales:ExecutedAgreement",
1364
+ "collection": "executedagreements",
1365
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/agreements/models/ExecutedAgreement.ts",
1366
+ "packageName": "@happyvertical/smrt-sales",
1367
+ "fields": {
1368
+ "tenantId": {
1369
+ "type": "text",
1370
+ "required": true,
1371
+ "_meta": {
1372
+ "sqlType": "UUID",
1373
+ "__tenancy": {
1374
+ "isTenantIdField": true,
1375
+ "autoFilter": true,
1376
+ "required": true,
1377
+ "autoPopulate": true,
1378
+ "nullable": false,
1379
+ "mode": "required",
1380
+ "field": "tenantId",
1381
+ "allowSuperAdminBypass": false
1382
+ }
1383
+ }
1384
+ },
1385
+ "executionId": {
1386
+ "type": "foreignKey",
1387
+ "required": true,
1388
+ "related": "AgreementExecution",
1389
+ "_meta": {
1390
+ "required": true
1391
+ }
1392
+ },
1393
+ "sourceKind": {
1394
+ "type": "text",
1395
+ "required": true,
1396
+ "default": "",
1397
+ "_meta": {
1398
+ "required": true
1399
+ }
1400
+ },
1401
+ "sourceId": {
1402
+ "type": "text",
1403
+ "required": true,
1404
+ "default": "",
1405
+ "_meta": {
1406
+ "required": true
1407
+ }
1408
+ },
1409
+ "sourceVersion": {
1410
+ "type": "integer",
1411
+ "required": false,
1412
+ "default": 1
1413
+ },
1414
+ "sourceAssetId": {
1415
+ "type": "crossPackageRef",
1416
+ "required": false,
1417
+ "related": "@happyvertical/smrt-assets:Asset"
1418
+ },
1419
+ "sourceSha256": {
1420
+ "type": "text",
1421
+ "required": false,
1422
+ "default": ""
1423
+ },
1424
+ "sourceSizeBytes": {
1425
+ "type": "integer",
1426
+ "required": false,
1427
+ "default": 0
1428
+ },
1429
+ "signedDocumentAssetId": {
1430
+ "type": "crossPackageRef",
1431
+ "required": false,
1432
+ "related": "@happyvertical/smrt-assets:Asset"
1433
+ },
1434
+ "signedDocumentSha256": {
1435
+ "type": "text",
1436
+ "required": false,
1437
+ "default": ""
1438
+ },
1439
+ "signedDocumentSizeBytes": {
1440
+ "type": "integer",
1441
+ "required": false,
1442
+ "default": 0
1443
+ },
1444
+ "signedDocumentMediaType": {
1445
+ "type": "text",
1446
+ "required": false,
1447
+ "default": ""
1448
+ },
1449
+ "signedDocumentFilename": {
1450
+ "type": "text",
1451
+ "required": false,
1452
+ "default": ""
1453
+ },
1454
+ "auditTrailAssetId": {
1455
+ "type": "crossPackageRef",
1456
+ "required": false,
1457
+ "related": "@happyvertical/smrt-assets:Asset"
1458
+ },
1459
+ "auditTrailSha256": {
1460
+ "type": "text",
1461
+ "required": false,
1462
+ "default": ""
1463
+ },
1464
+ "auditTrailSizeBytes": {
1465
+ "type": "integer",
1466
+ "required": false,
1467
+ "default": 0
1468
+ },
1469
+ "auditTrailMediaType": {
1470
+ "type": "text",
1471
+ "required": false,
1472
+ "default": ""
1473
+ },
1474
+ "auditTrailFilename": {
1475
+ "type": "text",
1476
+ "required": false,
1477
+ "default": ""
1478
+ },
1479
+ "signerEvidence": {
1480
+ "type": "text",
1481
+ "required": false,
1482
+ "default": "[]"
1483
+ },
1484
+ "acceptedAt": {
1485
+ "type": "datetime",
1486
+ "required": false
1487
+ },
1488
+ "effectiveFrom": {
1489
+ "type": "datetime",
1490
+ "required": false
1491
+ },
1492
+ "effectiveTo": {
1493
+ "type": "datetime",
1494
+ "required": false
1495
+ },
1496
+ "supersedesExecutedAgreementId": {
1497
+ "type": "foreignKey",
1498
+ "required": false,
1499
+ "related": "ExecutedAgreement"
1500
+ },
1501
+ "metadata": {
1502
+ "type": "text",
1503
+ "required": false,
1504
+ "default": "{}"
1505
+ }
1506
+ },
1507
+ "methods": {
1508
+ "initialize": {
1509
+ "name": "initialize",
1510
+ "async": true,
1511
+ "parameters": [],
1512
+ "returnType": "Promise",
1513
+ "isStatic": false,
1514
+ "isPublic": true
1515
+ },
1516
+ "isEffectiveAt": {
1517
+ "name": "isEffectiveAt",
1518
+ "async": false,
1519
+ "parameters": [
1520
+ {
1521
+ "name": "at",
1522
+ "type": "Date",
1523
+ "optional": false
1524
+ }
1525
+ ],
1526
+ "returnType": "boolean",
1527
+ "isStatic": false,
1528
+ "isPublic": true
1529
+ },
1530
+ "save": {
1531
+ "name": "save",
1532
+ "async": true,
1533
+ "parameters": [],
1534
+ "returnType": "Promise",
1535
+ "isStatic": false,
1536
+ "isPublic": true
1537
+ }
1538
+ },
1539
+ "decoratorConfig": {
1540
+ "conflictColumns": [
1541
+ "tenant_id",
1542
+ "execution_id"
1543
+ ],
1544
+ "api": {
1545
+ "include": [
1546
+ "list",
1547
+ "get"
1548
+ ]
1549
+ },
1550
+ "mcp": {
1551
+ "include": [
1552
+ "list",
1553
+ "get"
1554
+ ]
1555
+ },
1556
+ "cli": false,
1557
+ "tenantScoped": {
1558
+ "mode": "required"
1559
+ }
1560
+ },
1561
+ "extends": "SmrtObject",
1562
+ "exportName": "ExecutedAgreement",
1563
+ "collectionExportName": "ExecutedAgreementCollection",
1564
+ "validationRules": [
1565
+ {
1566
+ "field": "tenantId",
1567
+ "rule": "required",
1568
+ "fieldType": "text"
1569
+ },
1570
+ {
1571
+ "field": "executionId",
1572
+ "rule": "required",
1573
+ "fieldType": "foreignKey"
1574
+ },
1575
+ {
1576
+ "field": "sourceKind",
1577
+ "rule": "required",
1578
+ "fieldType": "text"
1579
+ },
1580
+ {
1581
+ "field": "sourceId",
1582
+ "rule": "required",
1583
+ "fieldType": "text"
1584
+ }
1585
+ ],
1586
+ "schema": {
1587
+ "tableName": "executed_agreements",
1588
+ "ddl": "CREATE TABLE IF NOT EXISTS \"executed_agreements\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"execution_id\" UUID NOT NULL,\n \"source_kind\" TEXT NOT NULL DEFAULT '',\n \"source_id\" TEXT NOT NULL DEFAULT '',\n \"source_version\" INTEGER DEFAULT 1,\n \"source_asset_id\" UUID,\n \"source_sha256\" TEXT DEFAULT '',\n \"source_size_bytes\" INTEGER DEFAULT 0,\n \"signed_document_asset_id\" UUID,\n \"signed_document_sha256\" TEXT DEFAULT '',\n \"signed_document_size_bytes\" INTEGER DEFAULT 0,\n \"signed_document_media_type\" TEXT DEFAULT '',\n \"signed_document_filename\" TEXT DEFAULT '',\n \"audit_trail_asset_id\" UUID,\n \"audit_trail_sha256\" TEXT DEFAULT '',\n \"audit_trail_size_bytes\" INTEGER DEFAULT 0,\n \"audit_trail_media_type\" TEXT DEFAULT '',\n \"audit_trail_filename\" TEXT DEFAULT '',\n \"signer_evidence\" TEXT DEFAULT '[]',\n \"accepted_at\" TIMESTAMP,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"supersedes_executed_agreement_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}'\n);",
1589
+ "columns": {
1590
+ "id": {
1591
+ "type": "UUID",
1592
+ "primaryKey": true,
1593
+ "referenceKind": "id",
1594
+ "notNull": true
1595
+ },
1596
+ "slug": {
1597
+ "type": "TEXT",
1598
+ "notNull": true
1599
+ },
1600
+ "context": {
1601
+ "type": "TEXT",
1602
+ "notNull": true,
1603
+ "default": ""
1604
+ },
1605
+ "created_at": {
1606
+ "type": "TIMESTAMP",
1607
+ "notNull": true,
1608
+ "default": "current_timestamp"
1609
+ },
1610
+ "updated_at": {
1611
+ "type": "TIMESTAMP",
1612
+ "notNull": true,
1613
+ "default": "current_timestamp"
1614
+ },
1615
+ "tenant_id": {
1616
+ "type": "UUID",
1617
+ "referenceKind": "tenantId",
1618
+ "notNull": true,
1619
+ "unique": false
1620
+ },
1621
+ "execution_id": {
1622
+ "type": "UUID",
1623
+ "referenceKind": "foreignKey",
1624
+ "notNull": true,
1625
+ "unique": false
1626
+ },
1627
+ "source_kind": {
1628
+ "type": "TEXT",
1629
+ "notNull": true,
1630
+ "unique": false,
1631
+ "default": ""
1632
+ },
1633
+ "source_id": {
1634
+ "type": "TEXT",
1635
+ "notNull": true,
1636
+ "unique": false,
1637
+ "default": ""
1638
+ },
1639
+ "source_version": {
1640
+ "type": "INTEGER",
1641
+ "notNull": false,
1642
+ "unique": false,
1643
+ "default": 1
1644
+ },
1645
+ "source_asset_id": {
1646
+ "type": "UUID",
1647
+ "referenceKind": "crossPackageRef",
1648
+ "notNull": false,
1649
+ "unique": false
1650
+ },
1651
+ "source_sha256": {
1652
+ "type": "TEXT",
1653
+ "notNull": false,
1654
+ "unique": false,
1655
+ "default": ""
1656
+ },
1657
+ "source_size_bytes": {
1658
+ "type": "INTEGER",
1659
+ "notNull": false,
1660
+ "unique": false,
1661
+ "default": 0
1662
+ },
1663
+ "signed_document_asset_id": {
1664
+ "type": "UUID",
1665
+ "referenceKind": "crossPackageRef",
1666
+ "notNull": false,
1667
+ "unique": false
1668
+ },
1669
+ "signed_document_sha256": {
1670
+ "type": "TEXT",
1671
+ "notNull": false,
1672
+ "unique": false,
1673
+ "default": ""
1674
+ },
1675
+ "signed_document_size_bytes": {
1676
+ "type": "INTEGER",
1677
+ "notNull": false,
1678
+ "unique": false,
1679
+ "default": 0
1680
+ },
1681
+ "signed_document_media_type": {
1682
+ "type": "TEXT",
1683
+ "notNull": false,
1684
+ "unique": false,
1685
+ "default": ""
1686
+ },
1687
+ "signed_document_filename": {
1688
+ "type": "TEXT",
1689
+ "notNull": false,
1690
+ "unique": false,
1691
+ "default": ""
1692
+ },
1693
+ "audit_trail_asset_id": {
1694
+ "type": "UUID",
1695
+ "referenceKind": "crossPackageRef",
1696
+ "notNull": false,
1697
+ "unique": false
1698
+ },
1699
+ "audit_trail_sha256": {
1700
+ "type": "TEXT",
1701
+ "notNull": false,
1702
+ "unique": false,
1703
+ "default": ""
1704
+ },
1705
+ "audit_trail_size_bytes": {
1706
+ "type": "INTEGER",
1707
+ "notNull": false,
1708
+ "unique": false,
1709
+ "default": 0
1710
+ },
1711
+ "audit_trail_media_type": {
1712
+ "type": "TEXT",
1713
+ "notNull": false,
1714
+ "unique": false,
1715
+ "default": ""
1716
+ },
1717
+ "audit_trail_filename": {
1718
+ "type": "TEXT",
1719
+ "notNull": false,
1720
+ "unique": false,
1721
+ "default": ""
1722
+ },
1723
+ "signer_evidence": {
1724
+ "type": "TEXT",
1725
+ "notNull": false,
1726
+ "unique": false,
1727
+ "default": "[]"
1728
+ },
1729
+ "accepted_at": {
1730
+ "type": "TIMESTAMP",
1731
+ "notNull": false,
1732
+ "unique": false
1733
+ },
1734
+ "effective_from": {
1735
+ "type": "TIMESTAMP",
1736
+ "notNull": false,
1737
+ "unique": false
1738
+ },
1739
+ "effective_to": {
1740
+ "type": "TIMESTAMP",
1741
+ "notNull": false,
1742
+ "unique": false
1743
+ },
1744
+ "supersedes_executed_agreement_id": {
1745
+ "type": "UUID",
1746
+ "referenceKind": "foreignKey",
1747
+ "notNull": false,
1748
+ "unique": false
1749
+ },
1750
+ "metadata": {
1751
+ "type": "TEXT",
1752
+ "notNull": false,
1753
+ "unique": false,
1754
+ "default": "{}"
1755
+ }
1756
+ },
1757
+ "indexes": [
1758
+ {
1759
+ "name": "executed_agreements_id_idx",
1760
+ "columns": [
1761
+ "id"
1762
+ ]
1763
+ },
1764
+ {
1765
+ "name": "executed_agreements_tenant_id_execution_id_idx",
1766
+ "columns": [
1767
+ "tenant_id",
1768
+ "execution_id"
1769
+ ],
1770
+ "unique": true
1771
+ }
1772
+ ],
1773
+ "version": "9b84eda8"
1774
+ }
1775
+ },
7
1776
  "@happyvertical/smrt-sales:CommissionAdjustmentCollection": {
8
1777
  "name": "commissionadjustmentcollection",
9
1778
  "className": "CommissionAdjustmentCollection",
10
1779
  "qualifiedName": "@happyvertical/smrt-sales:CommissionAdjustmentCollection",
11
1780
  "collection": "commissionadjustments",
12
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/CommissionAdjustmentCollection.ts",
1781
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/CommissionAdjustmentCollection.ts",
13
1782
  "packageName": "@happyvertical/smrt-sales",
14
1783
  "fields": {},
15
1784
  "methods": {
@@ -172,7 +1941,7 @@
172
1941
  "className": "CommissionCollection",
173
1942
  "qualifiedName": "@happyvertical/smrt-sales:CommissionCollection",
174
1943
  "collection": "commissions",
175
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/CommissionCollection.ts",
1944
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/CommissionCollection.ts",
176
1945
  "packageName": "@happyvertical/smrt-sales",
177
1946
  "fields": {},
178
1947
  "methods": {
@@ -382,7 +2151,7 @@
382
2151
  "className": "CommissionPayoutCollection",
383
2152
  "qualifiedName": "@happyvertical/smrt-sales:CommissionPayoutCollection",
384
2153
  "collection": "commissionpayouts",
385
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/CommissionPayoutCollection.ts",
2154
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/CommissionPayoutCollection.ts",
386
2155
  "packageName": "@happyvertical/smrt-sales",
387
2156
  "fields": {},
388
2157
  "methods": {
@@ -531,7 +2300,7 @@
531
2300
  "className": "CommissionPlanCollection",
532
2301
  "qualifiedName": "@happyvertical/smrt-sales:CommissionPlanCollection",
533
2302
  "collection": "commissionplans",
534
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/CommissionPlanCollection.ts",
2303
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/CommissionPlanCollection.ts",
535
2304
  "packageName": "@happyvertical/smrt-sales",
536
2305
  "fields": {},
537
2306
  "methods": {
@@ -666,7 +2435,7 @@
666
2435
  "className": "EarnerCollection",
667
2436
  "qualifiedName": "@happyvertical/smrt-sales:EarnerCollection",
668
2437
  "collection": "earners",
669
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/EarnerCollection.ts",
2438
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/EarnerCollection.ts",
670
2439
  "packageName": "@happyvertical/smrt-sales",
671
2440
  "fields": {},
672
2441
  "methods": {
@@ -766,7 +2535,7 @@
766
2535
  "className": "EarnerSourceAttributionCollection",
767
2536
  "qualifiedName": "@happyvertical/smrt-sales:EarnerSourceAttributionCollection",
768
2537
  "collection": "earnersourceattributions",
769
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/EarnerSourceAttributionCollection.ts",
2538
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/EarnerSourceAttributionCollection.ts",
770
2539
  "packageName": "@happyvertical/smrt-sales",
771
2540
  "fields": {},
772
2541
  "methods": {
@@ -882,7 +2651,7 @@
882
2651
  "className": "EarningEventCollection",
883
2652
  "qualifiedName": "@happyvertical/smrt-sales:EarningEventCollection",
884
2653
  "collection": "earningevents",
885
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/collections/EarningEventCollection.ts",
2654
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/collections/EarningEventCollection.ts",
886
2655
  "packageName": "@happyvertical/smrt-sales",
887
2656
  "fields": {},
888
2657
  "methods": {
@@ -1007,7 +2776,7 @@
1007
2776
  "className": "Commission",
1008
2777
  "qualifiedName": "@happyvertical/smrt-sales:Commission",
1009
2778
  "collection": "commissions",
1010
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/Commission.ts",
2779
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/Commission.ts",
1011
2780
  "packageName": "@happyvertical/smrt-sales",
1012
2781
  "fields": {
1013
2782
  "tenantId": {
@@ -1573,7 +3342,7 @@
1573
3342
  "className": "CommissionAdjustment",
1574
3343
  "qualifiedName": "@happyvertical/smrt-sales:CommissionAdjustment",
1575
3344
  "collection": "commissionadjustments",
1576
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/CommissionAdjustment.ts",
3345
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/CommissionAdjustment.ts",
1577
3346
  "packageName": "@happyvertical/smrt-sales",
1578
3347
  "fields": {
1579
3348
  "tenantId": {
@@ -1850,7 +3619,7 @@
1850
3619
  "className": "CommissionPayout",
1851
3620
  "qualifiedName": "@happyvertical/smrt-sales:CommissionPayout",
1852
3621
  "collection": "commissionpayouts",
1853
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/CommissionPayout.ts",
3622
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/CommissionPayout.ts",
1854
3623
  "packageName": "@happyvertical/smrt-sales",
1855
3624
  "fields": {
1856
3625
  "tenantId": {
@@ -2346,7 +4115,7 @@
2346
4115
  "className": "CommissionPlan",
2347
4116
  "qualifiedName": "@happyvertical/smrt-sales:CommissionPlan",
2348
4117
  "collection": "commissionplans",
2349
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/CommissionPlan.ts",
4118
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/CommissionPlan.ts",
2350
4119
  "packageName": "@happyvertical/smrt-sales",
2351
4120
  "fields": {
2352
4121
  "tenantId": {
@@ -2665,7 +4434,7 @@
2665
4434
  "className": "Earner",
2666
4435
  "qualifiedName": "@happyvertical/smrt-sales:Earner",
2667
4436
  "collection": "earners",
2668
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/Earner.ts",
4437
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/Earner.ts",
2669
4438
  "packageName": "@happyvertical/smrt-sales",
2670
4439
  "fields": {
2671
4440
  "tenantId": {
@@ -2907,7 +4676,7 @@
2907
4676
  "className": "EarnerSourceAttribution",
2908
4677
  "qualifiedName": "@happyvertical/smrt-sales:EarnerSourceAttribution",
2909
4678
  "collection": "earnersourceattributions",
2910
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/EarnerSourceAttribution.ts",
4679
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/EarnerSourceAttribution.ts",
2911
4680
  "packageName": "@happyvertical/smrt-sales",
2912
4681
  "fields": {
2913
4682
  "tenantId": {
@@ -3154,7 +4923,7 @@
3154
4923
  "className": "EarningEvent",
3155
4924
  "qualifiedName": "@happyvertical/smrt-sales:EarningEvent",
3156
4925
  "collection": "earningevents",
3157
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/commissions/models/EarningEvent.ts",
4926
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/commissions/models/EarningEvent.ts",
3158
4927
  "packageName": "@happyvertical/smrt-sales",
3159
4928
  "fields": {
3160
4929
  "tenantId": {
@@ -3461,7 +5230,7 @@
3461
5230
  "className": "LeadCollection",
3462
5231
  "qualifiedName": "@happyvertical/smrt-sales:LeadCollection",
3463
5232
  "collection": "leads",
3464
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/LeadCollection.ts",
5233
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/LeadCollection.ts",
3465
5234
  "packageName": "@happyvertical/smrt-sales",
3466
5235
  "fields": {},
3467
5236
  "methods": {
@@ -3595,7 +5364,7 @@
3595
5364
  "className": "OpportunityCollection",
3596
5365
  "qualifiedName": "@happyvertical/smrt-sales:OpportunityCollection",
3597
5366
  "collection": "opportunities",
3598
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/OpportunityCollection.ts",
5367
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/OpportunityCollection.ts",
3599
5368
  "packageName": "@happyvertical/smrt-sales",
3600
5369
  "fields": {},
3601
5370
  "methods": {
@@ -3701,7 +5470,7 @@
3701
5470
  "className": "OpportunityConversionCollection",
3702
5471
  "qualifiedName": "@happyvertical/smrt-sales:OpportunityConversionCollection",
3703
5472
  "collection": "opportunityconversions",
3704
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/OpportunityConversionCollection.ts",
5473
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/OpportunityConversionCollection.ts",
3705
5474
  "packageName": "@happyvertical/smrt-sales",
3706
5475
  "fields": {},
3707
5476
  "methods": {
@@ -3793,7 +5562,7 @@
3793
5562
  "className": "PipelineDefinitionCollection",
3794
5563
  "qualifiedName": "@happyvertical/smrt-sales:PipelineDefinitionCollection",
3795
5564
  "collection": "pipelinedefinitions",
3796
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/PipelineDefinitionCollection.ts",
5565
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/PipelineDefinitionCollection.ts",
3797
5566
  "packageName": "@happyvertical/smrt-sales",
3798
5567
  "fields": {},
3799
5568
  "methods": {
@@ -3907,7 +5676,7 @@
3907
5676
  "className": "PipelineStageCollection",
3908
5677
  "qualifiedName": "@happyvertical/smrt-sales:PipelineStageCollection",
3909
5678
  "collection": "pipelinestages",
3910
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/PipelineStageCollection.ts",
5679
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/PipelineStageCollection.ts",
3911
5680
  "packageName": "@happyvertical/smrt-sales",
3912
5681
  "fields": {},
3913
5682
  "methods": {
@@ -4004,7 +5773,7 @@
4004
5773
  "className": "SalesActivityCollection",
4005
5774
  "qualifiedName": "@happyvertical/smrt-sales:SalesActivityCollection",
4006
5775
  "collection": "salesactivities",
4007
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/SalesActivityCollection.ts",
5776
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/SalesActivityCollection.ts",
4008
5777
  "packageName": "@happyvertical/smrt-sales",
4009
5778
  "fields": {},
4010
5779
  "methods": {
@@ -4106,7 +5875,7 @@
4106
5875
  "className": "SalesRepresentativeCollection",
4107
5876
  "qualifiedName": "@happyvertical/smrt-sales:SalesRepresentativeCollection",
4108
5877
  "collection": "salesrepresentatives",
4109
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/collections/SalesRepresentativeCollection.ts",
5878
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/collections/SalesRepresentativeCollection.ts",
4110
5879
  "packageName": "@happyvertical/smrt-sales",
4111
5880
  "fields": {},
4112
5881
  "methods": {
@@ -4192,7 +5961,7 @@
4192
5961
  "className": "Lead",
4193
5962
  "qualifiedName": "@happyvertical/smrt-sales:Lead",
4194
5963
  "collection": "leads",
4195
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/Lead.ts",
5964
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/Lead.ts",
4196
5965
  "packageName": "@happyvertical/smrt-sales",
4197
5966
  "fields": {
4198
5967
  "tenantId": {
@@ -4549,7 +6318,7 @@
4549
6318
  "className": "Opportunity",
4550
6319
  "qualifiedName": "@happyvertical/smrt-sales:Opportunity",
4551
6320
  "collection": "opportunities",
4552
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/Opportunity.ts",
6321
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/Opportunity.ts",
4553
6322
  "packageName": "@happyvertical/smrt-sales",
4554
6323
  "fields": {
4555
6324
  "tenantId": {
@@ -4890,7 +6659,7 @@
4890
6659
  "className": "OpportunityConversion",
4891
6660
  "qualifiedName": "@happyvertical/smrt-sales:OpportunityConversion",
4892
6661
  "collection": "opportunityconversions",
4893
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/OpportunityConversion.ts",
6662
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/OpportunityConversion.ts",
4894
6663
  "packageName": "@happyvertical/smrt-sales",
4895
6664
  "fields": {
4896
6665
  "tenantId": {
@@ -5113,7 +6882,7 @@
5113
6882
  "className": "PipelineDefinition",
5114
6883
  "qualifiedName": "@happyvertical/smrt-sales:PipelineDefinition",
5115
6884
  "collection": "pipelinedefinitions",
5116
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/PipelineDefinition.ts",
6885
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/PipelineDefinition.ts",
5117
6886
  "packageName": "@happyvertical/smrt-sales",
5118
6887
  "fields": {
5119
6888
  "tenantId": {
@@ -5319,7 +7088,7 @@
5319
7088
  "className": "PipelineStage",
5320
7089
  "qualifiedName": "@happyvertical/smrt-sales:PipelineStage",
5321
7090
  "collection": "pipelinestages",
5322
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/PipelineStage.ts",
7091
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/PipelineStage.ts",
5323
7092
  "packageName": "@happyvertical/smrt-sales",
5324
7093
  "fields": {
5325
7094
  "tenantId": {
@@ -5566,7 +7335,7 @@
5566
7335
  "className": "SalesActivity",
5567
7336
  "qualifiedName": "@happyvertical/smrt-sales:SalesActivity",
5568
7337
  "collection": "salesactivities",
5569
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/SalesActivity.ts",
7338
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/SalesActivity.ts",
5570
7339
  "packageName": "@happyvertical/smrt-sales",
5571
7340
  "fields": {
5572
7341
  "tenantId": {
@@ -5796,7 +7565,7 @@
5796
7565
  "className": "SalesRepresentative",
5797
7566
  "qualifiedName": "@happyvertical/smrt-sales:SalesRepresentative",
5798
7567
  "collection": "salesrepresentatives",
5799
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/crm/models/SalesRepresentative.ts",
7568
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/crm/models/SalesRepresentative.ts",
5800
7569
  "packageName": "@happyvertical/smrt-sales",
5801
7570
  "fields": {
5802
7571
  "tenantId": {
@@ -5988,7 +7757,7 @@
5988
7757
  "className": "AttributionExceptionCollection",
5989
7758
  "qualifiedName": "@happyvertical/smrt-sales:AttributionExceptionCollection",
5990
7759
  "collection": "attributionexceptions",
5991
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/AttributionExceptionCollection.ts",
7760
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/AttributionExceptionCollection.ts",
5992
7761
  "packageName": "@happyvertical/smrt-sales",
5993
7762
  "fields": {},
5994
7763
  "methods": {
@@ -6103,7 +7872,7 @@
6103
7872
  "className": "AttributionPolicyCollection",
6104
7873
  "qualifiedName": "@happyvertical/smrt-sales:AttributionPolicyCollection",
6105
7874
  "collection": "attributionpolicies",
6106
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/AttributionPolicyCollection.ts",
7875
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/AttributionPolicyCollection.ts",
6107
7876
  "packageName": "@happyvertical/smrt-sales",
6108
7877
  "fields": {},
6109
7878
  "methods": {
@@ -6238,7 +8007,7 @@
6238
8007
  "className": "ReferralAgreementCollection",
6239
8008
  "qualifiedName": "@happyvertical/smrt-sales:ReferralAgreementCollection",
6240
8009
  "collection": "referralagreements",
6241
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferralAgreementCollection.ts",
8010
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferralAgreementCollection.ts",
6242
8011
  "packageName": "@happyvertical/smrt-sales",
6243
8012
  "fields": {},
6244
8013
  "methods": {
@@ -6369,7 +8138,7 @@
6369
8138
  "className": "ReferralCollection",
6370
8139
  "qualifiedName": "@happyvertical/smrt-sales:ReferralCollection",
6371
8140
  "collection": "referrals",
6372
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferralCollection.ts",
8141
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferralCollection.ts",
6373
8142
  "packageName": "@happyvertical/smrt-sales",
6374
8143
  "fields": {},
6375
8144
  "methods": {
@@ -6499,7 +8268,7 @@
6499
8268
  "className": "ReferralLinkCollection",
6500
8269
  "qualifiedName": "@happyvertical/smrt-sales:ReferralLinkCollection",
6501
8270
  "collection": "referrallinks",
6502
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferralLinkCollection.ts",
8271
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferralLinkCollection.ts",
6503
8272
  "packageName": "@happyvertical/smrt-sales",
6504
8273
  "fields": {},
6505
8274
  "methods": {
@@ -6619,7 +8388,7 @@
6619
8388
  "className": "ReferralProgramCollection",
6620
8389
  "qualifiedName": "@happyvertical/smrt-sales:ReferralProgramCollection",
6621
8390
  "collection": "referralprograms",
6622
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferralProgramCollection.ts",
8391
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferralProgramCollection.ts",
6623
8392
  "packageName": "@happyvertical/smrt-sales",
6624
8393
  "fields": {},
6625
8394
  "methods": {
@@ -6719,7 +8488,7 @@
6719
8488
  "className": "ReferralTermSnapshotCollection",
6720
8489
  "qualifiedName": "@happyvertical/smrt-sales:ReferralTermSnapshotCollection",
6721
8490
  "collection": "referraltermsnapshots",
6722
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferralTermSnapshotCollection.ts",
8491
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferralTermSnapshotCollection.ts",
6723
8492
  "packageName": "@happyvertical/smrt-sales",
6724
8493
  "fields": {},
6725
8494
  "methods": {
@@ -6797,7 +8566,7 @@
6797
8566
  "className": "ReferralTouchCollection",
6798
8567
  "qualifiedName": "@happyvertical/smrt-sales:ReferralTouchCollection",
6799
8568
  "collection": "referraltouches",
6800
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferralTouchCollection.ts",
8569
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferralTouchCollection.ts",
6801
8570
  "packageName": "@happyvertical/smrt-sales",
6802
8571
  "fields": {},
6803
8572
  "methods": {
@@ -6908,7 +8677,7 @@
6908
8677
  "className": "ReferrerCollection",
6909
8678
  "qualifiedName": "@happyvertical/smrt-sales:ReferrerCollection",
6910
8679
  "collection": "referrers",
6911
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/collections/ReferrerCollection.ts",
8680
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/collections/ReferrerCollection.ts",
6912
8681
  "packageName": "@happyvertical/smrt-sales",
6913
8682
  "fields": {},
6914
8683
  "methods": {
@@ -7008,7 +8777,7 @@
7008
8777
  "className": "AttributionException",
7009
8778
  "qualifiedName": "@happyvertical/smrt-sales:AttributionException",
7010
8779
  "collection": "attributionexceptions",
7011
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/AttributionException.ts",
8780
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/AttributionException.ts",
7012
8781
  "packageName": "@happyvertical/smrt-sales",
7013
8782
  "fields": {
7014
8783
  "tenantId": {
@@ -7357,7 +9126,7 @@
7357
9126
  "className": "AttributionPolicy",
7358
9127
  "qualifiedName": "@happyvertical/smrt-sales:AttributionPolicy",
7359
9128
  "collection": "attributionpolicies",
7360
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/AttributionPolicy.ts",
9129
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/AttributionPolicy.ts",
7361
9130
  "packageName": "@happyvertical/smrt-sales",
7362
9131
  "fields": {
7363
9132
  "tenantId": {
@@ -7764,7 +9533,7 @@
7764
9533
  "className": "Referral",
7765
9534
  "qualifiedName": "@happyvertical/smrt-sales:Referral",
7766
9535
  "collection": "referrals",
7767
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/Referral.ts",
9536
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/Referral.ts",
7768
9537
  "packageName": "@happyvertical/smrt-sales",
7769
9538
  "fields": {
7770
9539
  "tenantId": {
@@ -8161,7 +9930,7 @@
8161
9930
  "className": "ReferralAgreement",
8162
9931
  "qualifiedName": "@happyvertical/smrt-sales:ReferralAgreement",
8163
9932
  "collection": "referralagreements",
8164
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/ReferralAgreement.ts",
9933
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/ReferralAgreement.ts",
8165
9934
  "packageName": "@happyvertical/smrt-sales",
8166
9935
  "fields": {
8167
9936
  "tenantId": {
@@ -8236,25 +10005,15 @@
8236
10005
  "required": false,
8237
10006
  "default": "manual"
8238
10007
  },
8239
- "contractRef": {
8240
- "type": "crossPackageRef",
8241
- "required": false,
8242
- "related": "@happyvertical/smrt-commerce:Contract"
8243
- },
8244
- "executedArtifactUrl": {
8245
- "type": "text",
8246
- "required": false,
8247
- "default": ""
8248
- },
8249
- "executedArtifactHash": {
8250
- "type": "text",
10008
+ "executionId": {
10009
+ "type": "foreignKey",
8251
10010
  "required": false,
8252
- "default": ""
10011
+ "related": "AgreementExecution"
8253
10012
  },
8254
- "acceptanceEvidence": {
8255
- "type": "text",
10013
+ "executedAgreementId": {
10014
+ "type": "foreignKey",
8256
10015
  "required": false,
8257
- "default": "{}"
10016
+ "related": "ExecutedAgreement"
8258
10017
  },
8259
10018
  "metadata": {
8260
10019
  "type": "text",
@@ -8301,20 +10060,20 @@
8301
10060
  "isStatic": false,
8302
10061
  "isPublic": true
8303
10062
  },
8304
- "getAcceptanceEvidence": {
8305
- "name": "getAcceptanceEvidence",
10063
+ "getMetadata": {
10064
+ "name": "getMetadata",
8306
10065
  "async": false,
8307
10066
  "parameters": [],
8308
10067
  "returnType": "Record<string>",
8309
10068
  "isStatic": false,
8310
10069
  "isPublic": true
8311
10070
  },
8312
- "setAcceptanceEvidence": {
8313
- "name": "setAcceptanceEvidence",
10071
+ "setMetadata": {
10072
+ "name": "setMetadata",
8314
10073
  "async": false,
8315
10074
  "parameters": [
8316
10075
  {
8317
- "name": "evidence",
10076
+ "name": "data",
8318
10077
  "type": "Record<string>",
8319
10078
  "optional": false
8320
10079
  }
@@ -8323,21 +10082,21 @@
8323
10082
  "isStatic": false,
8324
10083
  "isPublic": true
8325
10084
  },
8326
- "getMetadata": {
8327
- "name": "getMetadata",
10085
+ "activate": {
10086
+ "name": "activate",
8328
10087
  "async": false,
8329
10088
  "parameters": [],
8330
- "returnType": "Record<string>",
10089
+ "returnType": "void",
8331
10090
  "isStatic": false,
8332
10091
  "isPublic": true
8333
10092
  },
8334
- "setMetadata": {
8335
- "name": "setMetadata",
10093
+ "bindExecution": {
10094
+ "name": "bindExecution",
8336
10095
  "async": false,
8337
10096
  "parameters": [
8338
10097
  {
8339
- "name": "data",
8340
- "type": "Record<string>",
10098
+ "name": "executionId",
10099
+ "type": "string",
8341
10100
  "optional": false
8342
10101
  }
8343
10102
  ],
@@ -8345,10 +10104,16 @@
8345
10104
  "isStatic": false,
8346
10105
  "isPublic": true
8347
10106
  },
8348
- "activate": {
8349
- "name": "activate",
10107
+ "bindExecutedAgreement": {
10108
+ "name": "bindExecutedAgreement",
8350
10109
  "async": false,
8351
- "parameters": [],
10110
+ "parameters": [
10111
+ {
10112
+ "name": "executedAgreementId",
10113
+ "type": "string",
10114
+ "optional": false
10115
+ }
10116
+ ],
8352
10117
  "returnType": "void",
8353
10118
  "isStatic": false,
8354
10119
  "isPublic": true
@@ -8419,7 +10184,7 @@
8419
10184
  ],
8420
10185
  "schema": {
8421
10186
  "tableName": "referral_agreements",
8422
- "ddl": "CREATE TABLE IF NOT EXISTS \"referral_agreements\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"referrer_id\" UUID NOT NULL,\n \"program_id\" UUID NOT NULL,\n \"version\" INTEGER DEFAULT 1,\n \"status\" TEXT DEFAULT 'draft',\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"commission_plan_key\" TEXT DEFAULT '',\n \"commission_plan_version\" INTEGER DEFAULT 0,\n \"clearing_days\" INTEGER DEFAULT 0,\n \"approval_mode\" TEXT DEFAULT 'manual',\n \"contract_ref\" UUID,\n \"executed_artifact_url\" TEXT DEFAULT '',\n \"executed_artifact_hash\" TEXT DEFAULT '',\n \"acceptance_evidence\" TEXT DEFAULT '{}',\n \"metadata\" TEXT DEFAULT '{}'\n);",
10187
+ "ddl": "CREATE TABLE IF NOT EXISTS \"referral_agreements\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"referrer_id\" UUID NOT NULL,\n \"program_id\" UUID NOT NULL,\n \"version\" INTEGER DEFAULT 1,\n \"status\" TEXT DEFAULT 'draft',\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"commission_plan_key\" TEXT DEFAULT '',\n \"commission_plan_version\" INTEGER DEFAULT 0,\n \"clearing_days\" INTEGER DEFAULT 0,\n \"approval_mode\" TEXT DEFAULT 'manual',\n \"execution_id\" UUID,\n \"executed_agreement_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}'\n);",
8423
10188
  "columns": {
8424
10189
  "id": {
8425
10190
  "type": "UUID",
@@ -8510,29 +10275,17 @@
8510
10275
  "unique": false,
8511
10276
  "default": "manual"
8512
10277
  },
8513
- "contract_ref": {
10278
+ "execution_id": {
8514
10279
  "type": "UUID",
8515
- "referenceKind": "crossPackageRef",
10280
+ "referenceKind": "foreignKey",
8516
10281
  "notNull": false,
8517
10282
  "unique": false
8518
10283
  },
8519
- "executed_artifact_url": {
8520
- "type": "TEXT",
8521
- "notNull": false,
8522
- "unique": false,
8523
- "default": ""
8524
- },
8525
- "executed_artifact_hash": {
8526
- "type": "TEXT",
8527
- "notNull": false,
8528
- "unique": false,
8529
- "default": ""
8530
- },
8531
- "acceptance_evidence": {
8532
- "type": "TEXT",
10284
+ "executed_agreement_id": {
10285
+ "type": "UUID",
10286
+ "referenceKind": "foreignKey",
8533
10287
  "notNull": false,
8534
- "unique": false,
8535
- "default": "{}"
10288
+ "unique": false
8536
10289
  },
8537
10290
  "metadata": {
8538
10291
  "type": "TEXT",
@@ -8558,7 +10311,7 @@
8558
10311
  "unique": true
8559
10312
  }
8560
10313
  ],
8561
- "version": "41411752"
10314
+ "version": "aadbced2"
8562
10315
  }
8563
10316
  },
8564
10317
  "@happyvertical/smrt-sales:ReferralLink": {
@@ -8566,7 +10319,7 @@
8566
10319
  "className": "ReferralLink",
8567
10320
  "qualifiedName": "@happyvertical/smrt-sales:ReferralLink",
8568
10321
  "collection": "referrallinks",
8569
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/ReferralLink.ts",
10322
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/ReferralLink.ts",
8570
10323
  "packageName": "@happyvertical/smrt-sales",
8571
10324
  "fields": {
8572
10325
  "tenantId": {
@@ -8828,7 +10581,7 @@
8828
10581
  "className": "ReferralProgram",
8829
10582
  "qualifiedName": "@happyvertical/smrt-sales:ReferralProgram",
8830
10583
  "collection": "referralprograms",
8831
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/ReferralProgram.ts",
10584
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/ReferralProgram.ts",
8832
10585
  "packageName": "@happyvertical/smrt-sales",
8833
10586
  "fields": {
8834
10587
  "tenantId": {
@@ -9045,7 +10798,7 @@
9045
10798
  "className": "ReferralTermSnapshot",
9046
10799
  "qualifiedName": "@happyvertical/smrt-sales:ReferralTermSnapshot",
9047
10800
  "collection": "referraltermsnapshots",
9048
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/ReferralTermSnapshot.ts",
10801
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/ReferralTermSnapshot.ts",
9049
10802
  "packageName": "@happyvertical/smrt-sales",
9050
10803
  "fields": {
9051
10804
  "tenantId": {
@@ -9324,7 +11077,7 @@
9324
11077
  "className": "ReferralTouch",
9325
11078
  "qualifiedName": "@happyvertical/smrt-sales:ReferralTouch",
9326
11079
  "collection": "referraltouches",
9327
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/ReferralTouch.ts",
11080
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/ReferralTouch.ts",
9328
11081
  "packageName": "@happyvertical/smrt-sales",
9329
11082
  "fields": {
9330
11083
  "tenantId": {
@@ -9600,7 +11353,7 @@
9600
11353
  "className": "Referrer",
9601
11354
  "qualifiedName": "@happyvertical/smrt-sales:Referrer",
9602
11355
  "collection": "referrers",
9603
- "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-k6895/smrt/smrt/packages/sales/src/referrals/models/Referrer.ts",
11356
+ "filePath": "/home/runner/.local/share/pnpm/store/.workspaces/arc-happyvertical-node-sqm7p-runner-x4flp/smrt/smrt/packages/sales/src/referrals/models/Referrer.ts",
9604
11357
  "packageName": "@happyvertical/smrt-sales",
9605
11358
  "fields": {
9606
11359
  "tenantId": {
@@ -9807,6 +11560,7 @@
9807
11560
  },
9808
11561
  "moduleType": "smrt",
9809
11562
  "smrtDependencies": [
11563
+ "@happyvertical/smrt-assets",
9810
11564
  "@happyvertical/smrt-core",
9811
11565
  "@happyvertical/smrt-tenancy"
9812
11566
  ]