@happyvertical/smrt-core 0.38.0 → 0.38.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.
- package/AGENTS.md +2 -1
- package/dist/change-feed.d.ts +40 -0
- package/dist/change-feed.d.ts.map +1 -1
- package/dist/change-feed.js +49 -1
- package/dist/change-feed.js.map +1 -1
- package/dist/generators/conditional-get.d.ts +122 -8
- package/dist/generators/conditional-get.d.ts.map +1 -1
- package/dist/generators/conditional-get.js +210 -13
- package/dist/generators/conditional-get.js.map +1 -1
- package/dist/generators/index.d.ts +1 -1
- package/dist/generators/index.d.ts.map +1 -1
- package/dist/generators/index.js +2 -2
- package/dist/generators/rest.d.ts +22 -8
- package/dist/generators/rest.d.ts.map +1 -1
- package/dist/generators/rest.js +84 -42
- package/dist/generators/rest.js.map +1 -1
- package/dist/generators.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- 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 +240 -2
- package/dist/manifest/test-manifest-stub.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/smrt-knowledge.json +6 -6
- package/dist/vite-plugin/sveltekit-generator.js +26 -14
- 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": 1783124889429,
|
|
5
5
|
"packageName": "@happyvertical/smrt-core",
|
|
6
|
-
"packageVersion": "0.38.
|
|
6
|
+
"packageVersion": "0.38.2",
|
|
7
7
|
"objects": {
|
|
8
8
|
"@happyvertical/smrt-core:SmrtClass": {
|
|
9
9
|
"name": "smrtclass",
|
|
@@ -19893,6 +19893,244 @@ var testManifest = {
|
|
|
19893
19893
|
"version": "e3054f9f"
|
|
19894
19894
|
}
|
|
19895
19895
|
},
|
|
19896
|
+
"@happyvertical/smrt-core:Etag1765Widget": {
|
|
19897
|
+
"name": "etag1765widget",
|
|
19898
|
+
"className": "Etag1765Widget",
|
|
19899
|
+
"qualifiedName": "@happyvertical/smrt-core:Etag1765Widget",
|
|
19900
|
+
"collection": "etag1765widgets",
|
|
19901
|
+
"filePath": "packages/core/src/__tests__/issue-1765-etag-table-version.test.ts",
|
|
19902
|
+
"packageName": "@happyvertical/smrt-core",
|
|
19903
|
+
"fields": { "name": {
|
|
19904
|
+
"type": "text",
|
|
19905
|
+
"required": false,
|
|
19906
|
+
"default": ""
|
|
19907
|
+
} },
|
|
19908
|
+
"methods": {},
|
|
19909
|
+
"decoratorConfig": {},
|
|
19910
|
+
"extends": "SmrtObject",
|
|
19911
|
+
"exportName": "Etag1765Widget",
|
|
19912
|
+
"collectionExportName": "Etag1765WidgetCollection",
|
|
19913
|
+
"schema": {
|
|
19914
|
+
"tableName": "etag1765widgets",
|
|
19915
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"etag1765widgets\" (\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 DEFAULT ''\n);",
|
|
19916
|
+
"columns": {
|
|
19917
|
+
"id": {
|
|
19918
|
+
"type": "UUID",
|
|
19919
|
+
"primaryKey": true,
|
|
19920
|
+
"referenceKind": "id",
|
|
19921
|
+
"notNull": true
|
|
19922
|
+
},
|
|
19923
|
+
"slug": {
|
|
19924
|
+
"type": "TEXT",
|
|
19925
|
+
"notNull": true
|
|
19926
|
+
},
|
|
19927
|
+
"context": {
|
|
19928
|
+
"type": "TEXT",
|
|
19929
|
+
"notNull": true,
|
|
19930
|
+
"default": ""
|
|
19931
|
+
},
|
|
19932
|
+
"created_at": {
|
|
19933
|
+
"type": "TIMESTAMP",
|
|
19934
|
+
"notNull": true,
|
|
19935
|
+
"default": "current_timestamp"
|
|
19936
|
+
},
|
|
19937
|
+
"updated_at": {
|
|
19938
|
+
"type": "TIMESTAMP",
|
|
19939
|
+
"notNull": true,
|
|
19940
|
+
"default": "current_timestamp"
|
|
19941
|
+
},
|
|
19942
|
+
"name": {
|
|
19943
|
+
"type": "TEXT",
|
|
19944
|
+
"notNull": false,
|
|
19945
|
+
"unique": false,
|
|
19946
|
+
"default": ""
|
|
19947
|
+
}
|
|
19948
|
+
},
|
|
19949
|
+
"indexes": [{
|
|
19950
|
+
"name": "etag1765widgets_id_idx",
|
|
19951
|
+
"columns": ["id"]
|
|
19952
|
+
}, {
|
|
19953
|
+
"name": "etag1765widgets_slug_context_idx",
|
|
19954
|
+
"columns": ["slug", "context"],
|
|
19955
|
+
"unique": true
|
|
19956
|
+
}],
|
|
19957
|
+
"version": "60670376"
|
|
19958
|
+
}
|
|
19959
|
+
},
|
|
19960
|
+
"@happyvertical/smrt-core:Etag1765WidgetCollection": {
|
|
19961
|
+
"name": "etag1765widgetcollection",
|
|
19962
|
+
"className": "Etag1765WidgetCollection",
|
|
19963
|
+
"qualifiedName": "@happyvertical/smrt-core:Etag1765WidgetCollection",
|
|
19964
|
+
"collection": "etag1765widgets",
|
|
19965
|
+
"filePath": "packages/core/src/__tests__/issue-1765-etag-table-version.test.ts",
|
|
19966
|
+
"packageName": "@happyvertical/smrt-core",
|
|
19967
|
+
"fields": {},
|
|
19968
|
+
"methods": {},
|
|
19969
|
+
"decoratorConfig": {},
|
|
19970
|
+
"extends": "SmrtCollection",
|
|
19971
|
+
"extendsTypeArg": "Etag1765Widget",
|
|
19972
|
+
"exportName": "Etag1765WidgetCollection",
|
|
19973
|
+
"collectionExportName": "Etag1765WidgetCollectionCollection",
|
|
19974
|
+
"schema": {
|
|
19975
|
+
"tableName": "etag1765widget_collections",
|
|
19976
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"etag1765widget_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);",
|
|
19977
|
+
"columns": {
|
|
19978
|
+
"id": {
|
|
19979
|
+
"type": "UUID",
|
|
19980
|
+
"primaryKey": true,
|
|
19981
|
+
"referenceKind": "id",
|
|
19982
|
+
"notNull": true
|
|
19983
|
+
},
|
|
19984
|
+
"slug": {
|
|
19985
|
+
"type": "TEXT",
|
|
19986
|
+
"notNull": true
|
|
19987
|
+
},
|
|
19988
|
+
"context": {
|
|
19989
|
+
"type": "TEXT",
|
|
19990
|
+
"notNull": true,
|
|
19991
|
+
"default": ""
|
|
19992
|
+
},
|
|
19993
|
+
"created_at": {
|
|
19994
|
+
"type": "TIMESTAMP",
|
|
19995
|
+
"notNull": true,
|
|
19996
|
+
"default": "current_timestamp"
|
|
19997
|
+
},
|
|
19998
|
+
"updated_at": {
|
|
19999
|
+
"type": "TIMESTAMP",
|
|
20000
|
+
"notNull": true,
|
|
20001
|
+
"default": "current_timestamp"
|
|
20002
|
+
}
|
|
20003
|
+
},
|
|
20004
|
+
"indexes": [{
|
|
20005
|
+
"name": "etag1765widget_collections_id_idx",
|
|
20006
|
+
"columns": ["id"]
|
|
20007
|
+
}, {
|
|
20008
|
+
"name": "etag1765widget_collections_slug_context_idx",
|
|
20009
|
+
"columns": ["slug", "context"],
|
|
20010
|
+
"unique": true
|
|
20011
|
+
}],
|
|
20012
|
+
"version": "f8de72e7"
|
|
20013
|
+
}
|
|
20014
|
+
},
|
|
20015
|
+
"@happyvertical/smrt-core:Etag1765Gadget": {
|
|
20016
|
+
"name": "etag1765gadget",
|
|
20017
|
+
"className": "Etag1765Gadget",
|
|
20018
|
+
"qualifiedName": "@happyvertical/smrt-core:Etag1765Gadget",
|
|
20019
|
+
"collection": "etag1765gadgets",
|
|
20020
|
+
"filePath": "packages/core/src/__tests__/issue-1765-etag-table-version.test.ts",
|
|
20021
|
+
"packageName": "@happyvertical/smrt-core",
|
|
20022
|
+
"fields": { "label": {
|
|
20023
|
+
"type": "text",
|
|
20024
|
+
"required": false,
|
|
20025
|
+
"default": ""
|
|
20026
|
+
} },
|
|
20027
|
+
"methods": {},
|
|
20028
|
+
"decoratorConfig": {},
|
|
20029
|
+
"extends": "SmrtObject",
|
|
20030
|
+
"exportName": "Etag1765Gadget",
|
|
20031
|
+
"collectionExportName": "Etag1765GadgetCollection",
|
|
20032
|
+
"schema": {
|
|
20033
|
+
"tableName": "etag1765gadgets",
|
|
20034
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"etag1765gadgets\" (\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 \"label\" TEXT DEFAULT ''\n);",
|
|
20035
|
+
"columns": {
|
|
20036
|
+
"id": {
|
|
20037
|
+
"type": "UUID",
|
|
20038
|
+
"primaryKey": true,
|
|
20039
|
+
"referenceKind": "id",
|
|
20040
|
+
"notNull": true
|
|
20041
|
+
},
|
|
20042
|
+
"slug": {
|
|
20043
|
+
"type": "TEXT",
|
|
20044
|
+
"notNull": true
|
|
20045
|
+
},
|
|
20046
|
+
"context": {
|
|
20047
|
+
"type": "TEXT",
|
|
20048
|
+
"notNull": true,
|
|
20049
|
+
"default": ""
|
|
20050
|
+
},
|
|
20051
|
+
"created_at": {
|
|
20052
|
+
"type": "TIMESTAMP",
|
|
20053
|
+
"notNull": true,
|
|
20054
|
+
"default": "current_timestamp"
|
|
20055
|
+
},
|
|
20056
|
+
"updated_at": {
|
|
20057
|
+
"type": "TIMESTAMP",
|
|
20058
|
+
"notNull": true,
|
|
20059
|
+
"default": "current_timestamp"
|
|
20060
|
+
},
|
|
20061
|
+
"label": {
|
|
20062
|
+
"type": "TEXT",
|
|
20063
|
+
"notNull": false,
|
|
20064
|
+
"unique": false,
|
|
20065
|
+
"default": ""
|
|
20066
|
+
}
|
|
20067
|
+
},
|
|
20068
|
+
"indexes": [{
|
|
20069
|
+
"name": "etag1765gadgets_id_idx",
|
|
20070
|
+
"columns": ["id"]
|
|
20071
|
+
}, {
|
|
20072
|
+
"name": "etag1765gadgets_slug_context_idx",
|
|
20073
|
+
"columns": ["slug", "context"],
|
|
20074
|
+
"unique": true
|
|
20075
|
+
}],
|
|
20076
|
+
"version": "07575be5"
|
|
20077
|
+
}
|
|
20078
|
+
},
|
|
20079
|
+
"@happyvertical/smrt-core:Etag1765GadgetCollection": {
|
|
20080
|
+
"name": "etag1765gadgetcollection",
|
|
20081
|
+
"className": "Etag1765GadgetCollection",
|
|
20082
|
+
"qualifiedName": "@happyvertical/smrt-core:Etag1765GadgetCollection",
|
|
20083
|
+
"collection": "etag1765gadgets",
|
|
20084
|
+
"filePath": "packages/core/src/__tests__/issue-1765-etag-table-version.test.ts",
|
|
20085
|
+
"packageName": "@happyvertical/smrt-core",
|
|
20086
|
+
"fields": {},
|
|
20087
|
+
"methods": {},
|
|
20088
|
+
"decoratorConfig": {},
|
|
20089
|
+
"extends": "SmrtCollection",
|
|
20090
|
+
"extendsTypeArg": "Etag1765Gadget",
|
|
20091
|
+
"exportName": "Etag1765GadgetCollection",
|
|
20092
|
+
"collectionExportName": "Etag1765GadgetCollectionCollection",
|
|
20093
|
+
"schema": {
|
|
20094
|
+
"tableName": "etag1765gadget_collections",
|
|
20095
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"etag1765gadget_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);",
|
|
20096
|
+
"columns": {
|
|
20097
|
+
"id": {
|
|
20098
|
+
"type": "UUID",
|
|
20099
|
+
"primaryKey": true,
|
|
20100
|
+
"referenceKind": "id",
|
|
20101
|
+
"notNull": true
|
|
20102
|
+
},
|
|
20103
|
+
"slug": {
|
|
20104
|
+
"type": "TEXT",
|
|
20105
|
+
"notNull": true
|
|
20106
|
+
},
|
|
20107
|
+
"context": {
|
|
20108
|
+
"type": "TEXT",
|
|
20109
|
+
"notNull": true,
|
|
20110
|
+
"default": ""
|
|
20111
|
+
},
|
|
20112
|
+
"created_at": {
|
|
20113
|
+
"type": "TIMESTAMP",
|
|
20114
|
+
"notNull": true,
|
|
20115
|
+
"default": "current_timestamp"
|
|
20116
|
+
},
|
|
20117
|
+
"updated_at": {
|
|
20118
|
+
"type": "TIMESTAMP",
|
|
20119
|
+
"notNull": true,
|
|
20120
|
+
"default": "current_timestamp"
|
|
20121
|
+
}
|
|
20122
|
+
},
|
|
20123
|
+
"indexes": [{
|
|
20124
|
+
"name": "etag1765gadget_collections_id_idx",
|
|
20125
|
+
"columns": ["id"]
|
|
20126
|
+
}, {
|
|
20127
|
+
"name": "etag1765gadget_collections_slug_context_idx",
|
|
20128
|
+
"columns": ["slug", "context"],
|
|
20129
|
+
"unique": true
|
|
20130
|
+
}],
|
|
20131
|
+
"version": "690959ac"
|
|
20132
|
+
}
|
|
20133
|
+
},
|
|
19896
20134
|
"@happyvertical/smrt-core:TestContent": {
|
|
19897
20135
|
"name": "testcontent",
|
|
19898
20136
|
"className": "TestContent",
|