@happyvertical/smrt-core 0.37.7 → 0.37.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +15 -6
- package/dist/dispatch/index.d.ts +1 -1
- package/dist/dispatch/index.d.ts.map +1 -1
- package/dist/dispatch/index.js +2 -2
- package/dist/dispatch/tenant-resolver.d.ts +23 -0
- package/dist/dispatch/tenant-resolver.d.ts.map +1 -1
- package/dist/dispatch/tenant-resolver.js +33 -1
- package/dist/dispatch/tenant-resolver.js.map +1 -1
- package/dist/generators/conditional-get.d.ts +12 -0
- package/dist/generators/conditional-get.d.ts.map +1 -1
- package/dist/generators/conditional-get.js +30 -2
- package/dist/generators/conditional-get.js.map +1 -1
- package/dist/generators/rest.d.ts +30 -0
- package/dist/generators/rest.d.ts.map +1 -1
- package/dist/generators/rest.js +62 -7
- package/dist/generators/rest.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/manifest/manifest-loader.d.ts +10 -1
- package/dist/manifest/manifest-loader.d.ts.map +1 -1
- package/dist/manifest/manifest-loader.js +18 -5
- package/dist/manifest/manifest-loader.js.map +1 -1
- package/dist/manifest/static-manifest.js +2 -2
- package/dist/manifest/static-manifest.js.map +1 -1
- package/dist/manifest/store.js +1 -1
- package/dist/manifest/test-manifest-stub.d.ts.map +1 -1
- package/dist/manifest/test-manifest-stub.js +277 -2
- package/dist/manifest/test-manifest-stub.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/registry/shared-state.d.ts +8 -1
- package/dist/registry/shared-state.d.ts.map +1 -1
- package/dist/registry/shared-state.js +11 -3
- package/dist/registry/shared-state.js.map +1 -1
- package/dist/smrt-knowledge.json +6 -6
- package/dist/utils/stack-frames.d.ts +50 -0
- package/dist/utils/stack-frames.d.ts.map +1 -0
- package/dist/utils/stack-frames.js +64 -0
- package/dist/utils/stack-frames.js.map +1 -0
- package/dist/vite-plugin/sveltekit-generator.d.ts.map +1 -1
- package/dist/vite-plugin/sveltekit-generator.js +41 -17
- package/dist/vite-plugin/sveltekit-generator.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/manifest/test-manifest-stub.ts
|
|
2
2
|
var testManifest = {
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"timestamp":
|
|
4
|
+
"timestamp": 1783059746659,
|
|
5
5
|
"packageName": "@happyvertical/smrt-core",
|
|
6
|
-
"packageVersion": "0.37.
|
|
6
|
+
"packageVersion": "0.37.8",
|
|
7
7
|
"objects": {
|
|
8
8
|
"@happyvertical/smrt-core:SmrtClass": {
|
|
9
9
|
"name": "smrtclass",
|
|
@@ -66422,6 +66422,281 @@ var testManifest = {
|
|
|
66422
66422
|
"version": "fbe68529"
|
|
66423
66423
|
}
|
|
66424
66424
|
},
|
|
66425
|
+
"@happyvertical/smrt-core:PublicTenantDoc": {
|
|
66426
|
+
"name": "publictenantdoc",
|
|
66427
|
+
"className": "PublicTenantDoc",
|
|
66428
|
+
"qualifiedName": "@happyvertical/smrt-core:PublicTenantDoc",
|
|
66429
|
+
"collection": "publictenantdocs",
|
|
66430
|
+
"filePath": "packages/core/src/generators/issue-1782-tenant-read-scope.spec.ts",
|
|
66431
|
+
"packageName": "@happyvertical/smrt-core",
|
|
66432
|
+
"fields": {
|
|
66433
|
+
"name": {
|
|
66434
|
+
"type": "text",
|
|
66435
|
+
"required": false,
|
|
66436
|
+
"_meta": {}
|
|
66437
|
+
},
|
|
66438
|
+
"tenantId": {
|
|
66439
|
+
"type": "text",
|
|
66440
|
+
"required": false,
|
|
66441
|
+
"_meta": {
|
|
66442
|
+
"nullable": true,
|
|
66443
|
+
"sqlType": "UUID",
|
|
66444
|
+
"__tenancy": {
|
|
66445
|
+
"isTenantIdField": true,
|
|
66446
|
+
"mode": "optional",
|
|
66447
|
+
"field": "tenantId",
|
|
66448
|
+
"autoFilter": true,
|
|
66449
|
+
"autoPopulate": true,
|
|
66450
|
+
"allowSuperAdminBypass": false
|
|
66451
|
+
}
|
|
66452
|
+
}
|
|
66453
|
+
}
|
|
66454
|
+
},
|
|
66455
|
+
"methods": {},
|
|
66456
|
+
"decoratorConfig": {
|
|
66457
|
+
"tenantScoped": { "mode": "optional" },
|
|
66458
|
+
"api": { "public": "read" }
|
|
66459
|
+
},
|
|
66460
|
+
"extends": "SmrtObject",
|
|
66461
|
+
"exportName": "PublicTenantDoc",
|
|
66462
|
+
"collectionExportName": "PublicTenantDocCollection",
|
|
66463
|
+
"schema": {
|
|
66464
|
+
"tableName": "public_tenant_docs",
|
|
66465
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"public_tenant_docs\" (\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 \"name\" TEXT,\n \"tenant_id\" UUID\n);",
|
|
66466
|
+
"columns": {
|
|
66467
|
+
"id": {
|
|
66468
|
+
"type": "UUID",
|
|
66469
|
+
"primaryKey": true,
|
|
66470
|
+
"referenceKind": "id",
|
|
66471
|
+
"notNull": true
|
|
66472
|
+
},
|
|
66473
|
+
"slug": {
|
|
66474
|
+
"type": "TEXT",
|
|
66475
|
+
"notNull": true
|
|
66476
|
+
},
|
|
66477
|
+
"context": {
|
|
66478
|
+
"type": "TEXT",
|
|
66479
|
+
"notNull": true,
|
|
66480
|
+
"default": ""
|
|
66481
|
+
},
|
|
66482
|
+
"created_at": {
|
|
66483
|
+
"type": "TIMESTAMP",
|
|
66484
|
+
"notNull": true,
|
|
66485
|
+
"default": "current_timestamp"
|
|
66486
|
+
},
|
|
66487
|
+
"updated_at": {
|
|
66488
|
+
"type": "TIMESTAMP",
|
|
66489
|
+
"notNull": true,
|
|
66490
|
+
"default": "current_timestamp"
|
|
66491
|
+
},
|
|
66492
|
+
"name": {
|
|
66493
|
+
"type": "TEXT",
|
|
66494
|
+
"notNull": false,
|
|
66495
|
+
"unique": false
|
|
66496
|
+
},
|
|
66497
|
+
"tenant_id": {
|
|
66498
|
+
"type": "UUID",
|
|
66499
|
+
"referenceKind": "tenantId",
|
|
66500
|
+
"notNull": false,
|
|
66501
|
+
"unique": false
|
|
66502
|
+
}
|
|
66503
|
+
},
|
|
66504
|
+
"indexes": [{
|
|
66505
|
+
"name": "public_tenant_docs_id_idx",
|
|
66506
|
+
"columns": ["id"]
|
|
66507
|
+
}, {
|
|
66508
|
+
"name": "public_tenant_docs_slug_context_idx",
|
|
66509
|
+
"columns": ["slug", "context"],
|
|
66510
|
+
"unique": true
|
|
66511
|
+
}],
|
|
66512
|
+
"version": "12a72e86"
|
|
66513
|
+
}
|
|
66514
|
+
},
|
|
66515
|
+
"@happyvertical/smrt-core:PublicTenantDocCollection": {
|
|
66516
|
+
"name": "publictenantdoccollection",
|
|
66517
|
+
"className": "PublicTenantDocCollection",
|
|
66518
|
+
"qualifiedName": "@happyvertical/smrt-core:PublicTenantDocCollection",
|
|
66519
|
+
"collection": "publictenantdocs",
|
|
66520
|
+
"filePath": "packages/core/src/generators/issue-1782-tenant-read-scope.spec.ts",
|
|
66521
|
+
"packageName": "@happyvertical/smrt-core",
|
|
66522
|
+
"fields": {},
|
|
66523
|
+
"methods": {},
|
|
66524
|
+
"decoratorConfig": {},
|
|
66525
|
+
"extends": "SmrtCollection",
|
|
66526
|
+
"extendsTypeArg": "PublicTenantDoc",
|
|
66527
|
+
"exportName": "PublicTenantDocCollection",
|
|
66528
|
+
"collectionExportName": "PublicTenantDocCollectionCollection",
|
|
66529
|
+
"schema": {
|
|
66530
|
+
"tableName": "public_tenant_doc_collections",
|
|
66531
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"public_tenant_doc_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);",
|
|
66532
|
+
"columns": {
|
|
66533
|
+
"id": {
|
|
66534
|
+
"type": "UUID",
|
|
66535
|
+
"primaryKey": true,
|
|
66536
|
+
"referenceKind": "id",
|
|
66537
|
+
"notNull": true
|
|
66538
|
+
},
|
|
66539
|
+
"slug": {
|
|
66540
|
+
"type": "TEXT",
|
|
66541
|
+
"notNull": true
|
|
66542
|
+
},
|
|
66543
|
+
"context": {
|
|
66544
|
+
"type": "TEXT",
|
|
66545
|
+
"notNull": true,
|
|
66546
|
+
"default": ""
|
|
66547
|
+
},
|
|
66548
|
+
"created_at": {
|
|
66549
|
+
"type": "TIMESTAMP",
|
|
66550
|
+
"notNull": true,
|
|
66551
|
+
"default": "current_timestamp"
|
|
66552
|
+
},
|
|
66553
|
+
"updated_at": {
|
|
66554
|
+
"type": "TIMESTAMP",
|
|
66555
|
+
"notNull": true,
|
|
66556
|
+
"default": "current_timestamp"
|
|
66557
|
+
}
|
|
66558
|
+
},
|
|
66559
|
+
"indexes": [{
|
|
66560
|
+
"name": "public_tenant_doc_collections_id_idx",
|
|
66561
|
+
"columns": ["id"]
|
|
66562
|
+
}, {
|
|
66563
|
+
"name": "public_tenant_doc_collections_slug_context_idx",
|
|
66564
|
+
"columns": ["slug", "context"],
|
|
66565
|
+
"unique": true
|
|
66566
|
+
}],
|
|
66567
|
+
"version": "e5afcb41"
|
|
66568
|
+
}
|
|
66569
|
+
},
|
|
66570
|
+
"@happyvertical/smrt-core:Pattern1TenantDoc": {
|
|
66571
|
+
"name": "pattern1tenantdoc",
|
|
66572
|
+
"className": "Pattern1TenantDoc",
|
|
66573
|
+
"qualifiedName": "@happyvertical/smrt-core:Pattern1TenantDoc",
|
|
66574
|
+
"collection": "pattern1tenantdocs",
|
|
66575
|
+
"filePath": "packages/core/src/generators/issue-1782-tenant-read-scope.spec.ts",
|
|
66576
|
+
"packageName": "@happyvertical/smrt-core",
|
|
66577
|
+
"fields": {
|
|
66578
|
+
"name": {
|
|
66579
|
+
"type": "text",
|
|
66580
|
+
"required": false,
|
|
66581
|
+
"_meta": {}
|
|
66582
|
+
},
|
|
66583
|
+
"tenantId": {
|
|
66584
|
+
"type": "text",
|
|
66585
|
+
"required": false,
|
|
66586
|
+
"_meta": { "nullable": true }
|
|
66587
|
+
}
|
|
66588
|
+
},
|
|
66589
|
+
"methods": {},
|
|
66590
|
+
"decoratorConfig": { "api": { "public": "read" } },
|
|
66591
|
+
"extends": "SmrtObject",
|
|
66592
|
+
"exportName": "Pattern1TenantDoc",
|
|
66593
|
+
"collectionExportName": "Pattern1TenantDocCollection",
|
|
66594
|
+
"schema": {
|
|
66595
|
+
"tableName": "pattern1tenant_docs",
|
|
66596
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"pattern1tenant_docs\" (\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 \"name\" TEXT,\n \"tenant_id\" TEXT\n);",
|
|
66597
|
+
"columns": {
|
|
66598
|
+
"id": {
|
|
66599
|
+
"type": "UUID",
|
|
66600
|
+
"primaryKey": true,
|
|
66601
|
+
"referenceKind": "id",
|
|
66602
|
+
"notNull": true
|
|
66603
|
+
},
|
|
66604
|
+
"slug": {
|
|
66605
|
+
"type": "TEXT",
|
|
66606
|
+
"notNull": true
|
|
66607
|
+
},
|
|
66608
|
+
"context": {
|
|
66609
|
+
"type": "TEXT",
|
|
66610
|
+
"notNull": true,
|
|
66611
|
+
"default": ""
|
|
66612
|
+
},
|
|
66613
|
+
"created_at": {
|
|
66614
|
+
"type": "TIMESTAMP",
|
|
66615
|
+
"notNull": true,
|
|
66616
|
+
"default": "current_timestamp"
|
|
66617
|
+
},
|
|
66618
|
+
"updated_at": {
|
|
66619
|
+
"type": "TIMESTAMP",
|
|
66620
|
+
"notNull": true,
|
|
66621
|
+
"default": "current_timestamp"
|
|
66622
|
+
},
|
|
66623
|
+
"name": {
|
|
66624
|
+
"type": "TEXT",
|
|
66625
|
+
"notNull": false,
|
|
66626
|
+
"unique": false
|
|
66627
|
+
},
|
|
66628
|
+
"tenant_id": {
|
|
66629
|
+
"type": "TEXT",
|
|
66630
|
+
"notNull": false,
|
|
66631
|
+
"unique": false
|
|
66632
|
+
}
|
|
66633
|
+
},
|
|
66634
|
+
"indexes": [{
|
|
66635
|
+
"name": "pattern1tenant_docs_id_idx",
|
|
66636
|
+
"columns": ["id"]
|
|
66637
|
+
}, {
|
|
66638
|
+
"name": "pattern1tenant_docs_slug_context_idx",
|
|
66639
|
+
"columns": ["slug", "context"],
|
|
66640
|
+
"unique": true
|
|
66641
|
+
}],
|
|
66642
|
+
"version": "64ba066b"
|
|
66643
|
+
}
|
|
66644
|
+
},
|
|
66645
|
+
"@happyvertical/smrt-core:Pattern1TenantDocCollection": {
|
|
66646
|
+
"name": "pattern1tenantdoccollection",
|
|
66647
|
+
"className": "Pattern1TenantDocCollection",
|
|
66648
|
+
"qualifiedName": "@happyvertical/smrt-core:Pattern1TenantDocCollection",
|
|
66649
|
+
"collection": "pattern1tenantdocs",
|
|
66650
|
+
"filePath": "packages/core/src/generators/issue-1782-tenant-read-scope.spec.ts",
|
|
66651
|
+
"packageName": "@happyvertical/smrt-core",
|
|
66652
|
+
"fields": {},
|
|
66653
|
+
"methods": {},
|
|
66654
|
+
"decoratorConfig": {},
|
|
66655
|
+
"extends": "SmrtCollection",
|
|
66656
|
+
"extendsTypeArg": "Pattern1TenantDoc",
|
|
66657
|
+
"exportName": "Pattern1TenantDocCollection",
|
|
66658
|
+
"collectionExportName": "Pattern1TenantDocCollectionCollection",
|
|
66659
|
+
"schema": {
|
|
66660
|
+
"tableName": "pattern1tenant_doc_collections",
|
|
66661
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"pattern1tenant_doc_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);",
|
|
66662
|
+
"columns": {
|
|
66663
|
+
"id": {
|
|
66664
|
+
"type": "UUID",
|
|
66665
|
+
"primaryKey": true,
|
|
66666
|
+
"referenceKind": "id",
|
|
66667
|
+
"notNull": true
|
|
66668
|
+
},
|
|
66669
|
+
"slug": {
|
|
66670
|
+
"type": "TEXT",
|
|
66671
|
+
"notNull": true
|
|
66672
|
+
},
|
|
66673
|
+
"context": {
|
|
66674
|
+
"type": "TEXT",
|
|
66675
|
+
"notNull": true,
|
|
66676
|
+
"default": ""
|
|
66677
|
+
},
|
|
66678
|
+
"created_at": {
|
|
66679
|
+
"type": "TIMESTAMP",
|
|
66680
|
+
"notNull": true,
|
|
66681
|
+
"default": "current_timestamp"
|
|
66682
|
+
},
|
|
66683
|
+
"updated_at": {
|
|
66684
|
+
"type": "TIMESTAMP",
|
|
66685
|
+
"notNull": true,
|
|
66686
|
+
"default": "current_timestamp"
|
|
66687
|
+
}
|
|
66688
|
+
},
|
|
66689
|
+
"indexes": [{
|
|
66690
|
+
"name": "pattern1tenant_doc_collections_id_idx",
|
|
66691
|
+
"columns": ["id"]
|
|
66692
|
+
}, {
|
|
66693
|
+
"name": "pattern1tenant_doc_collections_slug_context_idx",
|
|
66694
|
+
"columns": ["slug", "context"],
|
|
66695
|
+
"unique": true
|
|
66696
|
+
}],
|
|
66697
|
+
"version": "3a36391e"
|
|
66698
|
+
}
|
|
66699
|
+
},
|
|
66425
66700
|
"@happyvertical/smrt-core:ProtocolTestObject": {
|
|
66426
66701
|
"name": "protocoltestobject",
|
|
66427
66702
|
"className": "ProtocolTestObject",
|