@happyvertical/smrt-places 0.61.3 → 0.61.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PlaceTypeCollection-52f-CRIf.js → PlaceTypeCollection-BZkGU-80.js} +2 -5
- package/dist/chunks/PlaceTypeCollection-BZkGU-80.js.map +1 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +200 -89
- package/dist/models/PlaceAsset.d.ts.map +1 -1
- package/dist/models/PlaceType.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +4 -4
- package/package.json +12 -12
- package/dist/chunks/PlaceTypeCollection-52f-CRIf.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-places",
|
|
5
|
-
"packageVersion": "0.61.
|
|
5
|
+
"packageVersion": "0.61.4",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-places:PlaceAssetCollection": {
|
|
8
8
|
"name": "placeassetcollection",
|
|
9
9
|
"className": "PlaceAssetCollection",
|
|
10
10
|
"qualifiedName": "@happyvertical/smrt-places:PlaceAssetCollection",
|
|
11
11
|
"collection": "placeassets",
|
|
12
|
-
"filePath": "
|
|
12
|
+
"filePath": "src/collections/PlaceAssetCollection.ts",
|
|
13
13
|
"packageName": "@happyvertical/smrt-places",
|
|
14
14
|
"fields": {},
|
|
15
15
|
"methods": {
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
"className": "PlaceCollection",
|
|
322
322
|
"qualifiedName": "@happyvertical/smrt-places:PlaceCollection",
|
|
323
323
|
"collection": "places",
|
|
324
|
-
"filePath": "
|
|
324
|
+
"filePath": "src/collections/PlaceCollection.ts",
|
|
325
325
|
"packageName": "@happyvertical/smrt-places",
|
|
326
326
|
"fields": {},
|
|
327
327
|
"methods": {
|
|
@@ -782,7 +782,7 @@
|
|
|
782
782
|
"className": "PlaceTypeCollection",
|
|
783
783
|
"qualifiedName": "@happyvertical/smrt-places:PlaceTypeCollection",
|
|
784
784
|
"collection": "placetypes",
|
|
785
|
-
"filePath": "
|
|
785
|
+
"filePath": "src/collections/PlaceTypeCollection.ts",
|
|
786
786
|
"packageName": "@happyvertical/smrt-places",
|
|
787
787
|
"fields": {},
|
|
788
788
|
"methods": {
|
|
@@ -940,31 +940,35 @@
|
|
|
940
940
|
"className": "Place",
|
|
941
941
|
"qualifiedName": "@happyvertical/smrt-places:Place",
|
|
942
942
|
"collection": "places",
|
|
943
|
-
"filePath": "
|
|
943
|
+
"filePath": "src/models/Place.ts",
|
|
944
944
|
"packageName": "@happyvertical/smrt-places",
|
|
945
945
|
"fields": {
|
|
946
946
|
"created_at": {
|
|
947
947
|
"type": "datetime",
|
|
948
|
+
"_meta": {
|
|
949
|
+
"__statedOptions": []
|
|
950
|
+
},
|
|
948
951
|
"required": false
|
|
949
952
|
},
|
|
950
953
|
"updated_at": {
|
|
951
954
|
"type": "datetime",
|
|
955
|
+
"_meta": {
|
|
956
|
+
"__statedOptions": []
|
|
957
|
+
},
|
|
952
958
|
"required": false
|
|
953
959
|
},
|
|
954
960
|
"parentId": {
|
|
955
961
|
"type": "foreignKey",
|
|
956
|
-
"required": false,
|
|
957
|
-
"related": "Place",
|
|
958
962
|
"_meta": {
|
|
963
|
+
"__statedOptions": [],
|
|
959
964
|
"nullable": true
|
|
960
|
-
}
|
|
965
|
+
},
|
|
966
|
+
"required": false,
|
|
967
|
+
"related": "Place"
|
|
961
968
|
},
|
|
962
969
|
"tenantId": {
|
|
963
970
|
"type": "text",
|
|
964
|
-
"required": false,
|
|
965
971
|
"_meta": {
|
|
966
|
-
"sqlType": "UUID",
|
|
967
|
-
"nullable": true,
|
|
968
972
|
"__tenancy": {
|
|
969
973
|
"isTenantIdField": true,
|
|
970
974
|
"autoFilter": true,
|
|
@@ -974,140 +978,205 @@
|
|
|
974
978
|
"mode": "optional",
|
|
975
979
|
"field": "tenantId",
|
|
976
980
|
"allowSuperAdminBypass": false
|
|
977
|
-
}
|
|
978
|
-
|
|
981
|
+
},
|
|
982
|
+
"__statedOptions": [
|
|
983
|
+
"sqlType",
|
|
984
|
+
"nullable",
|
|
985
|
+
"__tenancy",
|
|
986
|
+
"required"
|
|
987
|
+
],
|
|
988
|
+
"sqlType": "UUID",
|
|
989
|
+
"nullable": true,
|
|
990
|
+
"required": false
|
|
991
|
+
},
|
|
992
|
+
"required": false
|
|
979
993
|
},
|
|
980
994
|
"typeId": {
|
|
981
995
|
"type": "foreignKey",
|
|
982
|
-
"required": false,
|
|
983
|
-
"related": "PlaceType",
|
|
984
|
-
"description": "What kind of place this is, such as a building, a room or a storage zone.",
|
|
985
996
|
"_meta": {
|
|
997
|
+
"__statedOptions": [
|
|
998
|
+
"description",
|
|
999
|
+
"related"
|
|
1000
|
+
],
|
|
986
1001
|
"description": "What kind of place this is, such as a building, a room or a storage zone."
|
|
987
|
-
}
|
|
1002
|
+
},
|
|
1003
|
+
"required": false,
|
|
1004
|
+
"related": "PlaceType",
|
|
1005
|
+
"description": "What kind of place this is, such as a building, a room or a storage zone."
|
|
988
1006
|
},
|
|
989
1007
|
"name": {
|
|
990
1008
|
"type": "text",
|
|
991
|
-
"required": false,
|
|
992
|
-
"description": "What the place is called, such as \"Main warehouse\" or \"Aisle 4\".",
|
|
993
1009
|
"_meta": {
|
|
1010
|
+
"__statedOptions": [
|
|
1011
|
+
"description"
|
|
1012
|
+
],
|
|
994
1013
|
"description": "What the place is called, such as \"Main warehouse\" or \"Aisle 4\"."
|
|
995
|
-
}
|
|
1014
|
+
},
|
|
1015
|
+
"required": false,
|
|
1016
|
+
"description": "What the place is called, such as \"Main warehouse\" or \"Aisle 4\"."
|
|
996
1017
|
},
|
|
997
1018
|
"description": {
|
|
998
1019
|
"type": "text",
|
|
999
|
-
"required": false,
|
|
1000
|
-
"description": "A few words about the place and what happens there.",
|
|
1001
1020
|
"_meta": {
|
|
1021
|
+
"__statedOptions": [
|
|
1022
|
+
"description"
|
|
1023
|
+
],
|
|
1002
1024
|
"description": "A few words about the place and what happens there."
|
|
1003
|
-
}
|
|
1025
|
+
},
|
|
1026
|
+
"required": false,
|
|
1027
|
+
"description": "A few words about the place and what happens there."
|
|
1004
1028
|
},
|
|
1005
1029
|
"latitude": {
|
|
1006
1030
|
"type": "decimal",
|
|
1007
|
-
"required": false,
|
|
1008
|
-
"description": "How far north or south the place is on a map. Leave empty for a place that is not on a map.",
|
|
1009
1031
|
"_meta": {
|
|
1032
|
+
"__statedOptions": [
|
|
1033
|
+
"description"
|
|
1034
|
+
],
|
|
1010
1035
|
"description": "How far north or south the place is on a map. Leave empty for a place that is not on a map."
|
|
1011
|
-
}
|
|
1036
|
+
},
|
|
1037
|
+
"required": false,
|
|
1038
|
+
"description": "How far north or south the place is on a map. Leave empty for a place that is not on a map."
|
|
1012
1039
|
},
|
|
1013
1040
|
"longitude": {
|
|
1014
1041
|
"type": "decimal",
|
|
1015
|
-
"required": false,
|
|
1016
|
-
"description": "How far east or west the place is on a map. Leave empty for a place that is not on a map.",
|
|
1017
1042
|
"_meta": {
|
|
1043
|
+
"__statedOptions": [
|
|
1044
|
+
"description"
|
|
1045
|
+
],
|
|
1018
1046
|
"description": "How far east or west the place is on a map. Leave empty for a place that is not on a map."
|
|
1019
|
-
}
|
|
1047
|
+
},
|
|
1048
|
+
"required": false,
|
|
1049
|
+
"description": "How far east or west the place is on a map. Leave empty for a place that is not on a map."
|
|
1020
1050
|
},
|
|
1021
1051
|
"streetNumber": {
|
|
1022
1052
|
"type": "text",
|
|
1023
|
-
"required": false,
|
|
1024
|
-
"description": "The number of the building on its street.",
|
|
1025
1053
|
"_meta": {
|
|
1054
|
+
"__statedOptions": [
|
|
1055
|
+
"description"
|
|
1056
|
+
],
|
|
1026
1057
|
"description": "The number of the building on its street."
|
|
1027
|
-
}
|
|
1058
|
+
},
|
|
1059
|
+
"required": false,
|
|
1060
|
+
"description": "The number of the building on its street."
|
|
1028
1061
|
},
|
|
1029
1062
|
"streetName": {
|
|
1030
1063
|
"type": "text",
|
|
1031
|
-
"required": false,
|
|
1032
|
-
"description": "The name of the street the place is on.",
|
|
1033
1064
|
"_meta": {
|
|
1065
|
+
"__statedOptions": [
|
|
1066
|
+
"description"
|
|
1067
|
+
],
|
|
1034
1068
|
"description": "The name of the street the place is on."
|
|
1035
|
-
}
|
|
1069
|
+
},
|
|
1070
|
+
"required": false,
|
|
1071
|
+
"description": "The name of the street the place is on."
|
|
1036
1072
|
},
|
|
1037
1073
|
"city": {
|
|
1038
1074
|
"type": "text",
|
|
1039
|
-
"required": false,
|
|
1040
|
-
"description": "The town or city the place is in.",
|
|
1041
1075
|
"_meta": {
|
|
1076
|
+
"__statedOptions": [
|
|
1077
|
+
"description"
|
|
1078
|
+
],
|
|
1042
1079
|
"description": "The town or city the place is in."
|
|
1043
|
-
}
|
|
1080
|
+
},
|
|
1081
|
+
"required": false,
|
|
1082
|
+
"description": "The town or city the place is in."
|
|
1044
1083
|
},
|
|
1045
1084
|
"region": {
|
|
1046
1085
|
"type": "text",
|
|
1047
|
-
"required": false,
|
|
1048
|
-
"description": "The state, province or region the place is in.",
|
|
1049
1086
|
"_meta": {
|
|
1087
|
+
"__statedOptions": [
|
|
1088
|
+
"description"
|
|
1089
|
+
],
|
|
1050
1090
|
"description": "The state, province or region the place is in."
|
|
1051
|
-
}
|
|
1091
|
+
},
|
|
1092
|
+
"required": false,
|
|
1093
|
+
"description": "The state, province or region the place is in."
|
|
1052
1094
|
},
|
|
1053
1095
|
"country": {
|
|
1054
1096
|
"type": "text",
|
|
1055
|
-
"required": false,
|
|
1056
|
-
"description": "The country the place is in.",
|
|
1057
1097
|
"_meta": {
|
|
1098
|
+
"__statedOptions": [
|
|
1099
|
+
"description"
|
|
1100
|
+
],
|
|
1058
1101
|
"description": "The country the place is in."
|
|
1059
|
-
}
|
|
1102
|
+
},
|
|
1103
|
+
"required": false,
|
|
1104
|
+
"description": "The country the place is in."
|
|
1060
1105
|
},
|
|
1061
1106
|
"postalCode": {
|
|
1062
1107
|
"type": "text",
|
|
1063
|
-
"required": false,
|
|
1064
|
-
"description": "The postal or zip code of the address.",
|
|
1065
1108
|
"_meta": {
|
|
1109
|
+
"__statedOptions": [
|
|
1110
|
+
"description"
|
|
1111
|
+
],
|
|
1066
1112
|
"description": "The postal or zip code of the address."
|
|
1067
|
-
}
|
|
1113
|
+
},
|
|
1114
|
+
"required": false,
|
|
1115
|
+
"description": "The postal or zip code of the address."
|
|
1068
1116
|
},
|
|
1069
1117
|
"countryCode": {
|
|
1070
1118
|
"type": "text",
|
|
1071
|
-
"required": false,
|
|
1072
|
-
"description": "The short two-letter code for the country, such as CA or US.",
|
|
1073
1119
|
"_meta": {
|
|
1120
|
+
"__statedOptions": [
|
|
1121
|
+
"description"
|
|
1122
|
+
],
|
|
1074
1123
|
"description": "The short two-letter code for the country, such as CA or US."
|
|
1075
|
-
}
|
|
1124
|
+
},
|
|
1125
|
+
"required": false,
|
|
1126
|
+
"description": "The short two-letter code for the country, such as CA or US."
|
|
1076
1127
|
},
|
|
1077
1128
|
"timezone": {
|
|
1078
1129
|
"type": "text",
|
|
1079
|
-
"required": false,
|
|
1080
|
-
"description": "The time zone the place keeps, such as America/Toronto.",
|
|
1081
1130
|
"_meta": {
|
|
1131
|
+
"__statedOptions": [
|
|
1132
|
+
"description"
|
|
1133
|
+
],
|
|
1082
1134
|
"description": "The time zone the place keeps, such as America/Toronto."
|
|
1083
|
-
}
|
|
1135
|
+
},
|
|
1136
|
+
"required": false,
|
|
1137
|
+
"description": "The time zone the place keeps, such as America/Toronto."
|
|
1084
1138
|
},
|
|
1085
1139
|
"externalId": {
|
|
1086
1140
|
"type": "text",
|
|
1087
|
-
"required": false,
|
|
1088
|
-
"description": "The reference the map provider uses for this place, filled in when the app looks it up.",
|
|
1089
1141
|
"_meta": {
|
|
1142
|
+
"__statedOptions": [
|
|
1143
|
+
"description"
|
|
1144
|
+
],
|
|
1090
1145
|
"description": "The reference the map provider uses for this place, filled in when the app looks it up."
|
|
1091
|
-
}
|
|
1146
|
+
},
|
|
1147
|
+
"required": false,
|
|
1148
|
+
"description": "The reference the map provider uses for this place, filled in when the app looks it up."
|
|
1092
1149
|
},
|
|
1093
1150
|
"source": {
|
|
1094
1151
|
"type": "text",
|
|
1095
|
-
"required": false,
|
|
1096
|
-
"description": "Which map provider the place was looked up from, if any.",
|
|
1097
1152
|
"_meta": {
|
|
1153
|
+
"__statedOptions": [
|
|
1154
|
+
"description"
|
|
1155
|
+
],
|
|
1098
1156
|
"description": "Which map provider the place was looked up from, if any."
|
|
1099
|
-
}
|
|
1157
|
+
},
|
|
1158
|
+
"required": false,
|
|
1159
|
+
"description": "Which map provider the place was looked up from, if any."
|
|
1100
1160
|
},
|
|
1101
1161
|
"metadata": {
|
|
1102
1162
|
"type": "text",
|
|
1163
|
+
"_meta": {
|
|
1164
|
+
"__statedOptions": []
|
|
1165
|
+
},
|
|
1103
1166
|
"required": false
|
|
1104
1167
|
},
|
|
1105
1168
|
"createdAt": {
|
|
1106
1169
|
"type": "text",
|
|
1170
|
+
"_meta": {
|
|
1171
|
+
"__statedOptions": []
|
|
1172
|
+
},
|
|
1107
1173
|
"required": false
|
|
1108
1174
|
},
|
|
1109
1175
|
"updatedAt": {
|
|
1110
1176
|
"type": "text",
|
|
1177
|
+
"_meta": {
|
|
1178
|
+
"__statedOptions": []
|
|
1179
|
+
},
|
|
1111
1180
|
"required": false
|
|
1112
1181
|
}
|
|
1113
1182
|
},
|
|
@@ -1540,15 +1609,12 @@
|
|
|
1540
1609
|
"className": "PlaceAsset",
|
|
1541
1610
|
"qualifiedName": "@happyvertical/smrt-places:PlaceAsset",
|
|
1542
1611
|
"collection": "placeassets",
|
|
1543
|
-
"filePath": "
|
|
1612
|
+
"filePath": "src/models/PlaceAsset.ts",
|
|
1544
1613
|
"packageName": "@happyvertical/smrt-places",
|
|
1545
1614
|
"fields": {
|
|
1546
1615
|
"tenantId": {
|
|
1547
1616
|
"type": "text",
|
|
1548
|
-
"required": false,
|
|
1549
1617
|
"_meta": {
|
|
1550
|
-
"sqlType": "UUID",
|
|
1551
|
-
"nullable": true,
|
|
1552
1618
|
"__tenancy": {
|
|
1553
1619
|
"isTenantIdField": true,
|
|
1554
1620
|
"autoFilter": true,
|
|
@@ -1558,35 +1624,68 @@
|
|
|
1558
1624
|
"mode": "optional",
|
|
1559
1625
|
"field": "tenantId",
|
|
1560
1626
|
"allowSuperAdminBypass": false
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1627
|
+
},
|
|
1628
|
+
"__statedOptions": [
|
|
1629
|
+
"sqlType",
|
|
1630
|
+
"nullable",
|
|
1631
|
+
"__tenancy",
|
|
1632
|
+
"required"
|
|
1633
|
+
],
|
|
1634
|
+
"sqlType": "UUID",
|
|
1635
|
+
"nullable": true,
|
|
1636
|
+
"required": false
|
|
1637
|
+
},
|
|
1638
|
+
"required": false
|
|
1563
1639
|
},
|
|
1564
1640
|
"placeId": {
|
|
1565
1641
|
"type": "foreignKey",
|
|
1566
|
-
"required": true,
|
|
1567
|
-
"related": "Place",
|
|
1568
1642
|
"_meta": {
|
|
1643
|
+
"__statedOptions": [
|
|
1644
|
+
"required",
|
|
1645
|
+
"requiredFor",
|
|
1646
|
+
"onDelete",
|
|
1647
|
+
"related"
|
|
1648
|
+
],
|
|
1569
1649
|
"required": true,
|
|
1650
|
+
"requiredFor": "identity",
|
|
1570
1651
|
"onDelete": "CASCADE"
|
|
1571
|
-
}
|
|
1652
|
+
},
|
|
1653
|
+
"required": true,
|
|
1654
|
+
"related": "Place"
|
|
1572
1655
|
},
|
|
1573
1656
|
"assetId": {
|
|
1574
1657
|
"type": "crossPackageRef",
|
|
1575
|
-
"required": true,
|
|
1576
|
-
"related": "@happyvertical/smrt-assets:Asset",
|
|
1577
1658
|
"_meta": {
|
|
1659
|
+
"__statedOptions": [
|
|
1660
|
+
"required",
|
|
1661
|
+
"requiredFor",
|
|
1662
|
+
"onDelete",
|
|
1663
|
+
"related"
|
|
1664
|
+
],
|
|
1665
|
+
"required": true,
|
|
1666
|
+
"requiredFor": "identity",
|
|
1578
1667
|
"onDelete": "CASCADE"
|
|
1579
|
-
}
|
|
1668
|
+
},
|
|
1669
|
+
"required": true,
|
|
1670
|
+
"related": "@happyvertical/smrt-assets:Asset"
|
|
1580
1671
|
},
|
|
1581
1672
|
"relationship": {
|
|
1582
1673
|
"type": "text",
|
|
1583
|
-
"required": true,
|
|
1584
1674
|
"_meta": {
|
|
1675
|
+
"__statedOptions": [
|
|
1676
|
+
"required"
|
|
1677
|
+
],
|
|
1585
1678
|
"required": true
|
|
1586
|
-
}
|
|
1679
|
+
},
|
|
1680
|
+
"required": true
|
|
1587
1681
|
},
|
|
1588
1682
|
"sortOrder": {
|
|
1589
1683
|
"type": "integer",
|
|
1684
|
+
"_meta": {
|
|
1685
|
+
"__statedOptions": [
|
|
1686
|
+
"default"
|
|
1687
|
+
]
|
|
1688
|
+
},
|
|
1590
1689
|
"required": true,
|
|
1591
1690
|
"default": 0
|
|
1592
1691
|
}
|
|
@@ -1742,41 +1841,59 @@
|
|
|
1742
1841
|
"className": "PlaceType",
|
|
1743
1842
|
"qualifiedName": "@happyvertical/smrt-places:PlaceType",
|
|
1744
1843
|
"collection": "placetypes",
|
|
1745
|
-
"filePath": "
|
|
1844
|
+
"filePath": "src/models/PlaceType.ts",
|
|
1746
1845
|
"packageName": "@happyvertical/smrt-places",
|
|
1747
1846
|
"fields": {
|
|
1748
1847
|
"created_at": {
|
|
1749
1848
|
"type": "datetime",
|
|
1849
|
+
"_meta": {
|
|
1850
|
+
"__statedOptions": []
|
|
1851
|
+
},
|
|
1750
1852
|
"required": false
|
|
1751
1853
|
},
|
|
1752
1854
|
"updated_at": {
|
|
1753
1855
|
"type": "datetime",
|
|
1856
|
+
"_meta": {
|
|
1857
|
+
"__statedOptions": []
|
|
1858
|
+
},
|
|
1754
1859
|
"required": false
|
|
1755
1860
|
},
|
|
1756
1861
|
"name": {
|
|
1757
1862
|
"type": "text",
|
|
1758
|
-
"required": true,
|
|
1759
|
-
"default": "",
|
|
1760
|
-
"description": "The name of the kind of place, such as \"Building\", \"Room\" or \"Zone\".",
|
|
1761
1863
|
"_meta": {
|
|
1762
|
-
"
|
|
1864
|
+
"__statedOptions": [
|
|
1865
|
+
"description",
|
|
1866
|
+
"default"
|
|
1867
|
+
],
|
|
1763
1868
|
"description": "The name of the kind of place, such as \"Building\", \"Room\" or \"Zone\"."
|
|
1764
|
-
}
|
|
1869
|
+
},
|
|
1870
|
+
"required": false,
|
|
1871
|
+
"default": "",
|
|
1872
|
+
"description": "The name of the kind of place, such as \"Building\", \"Room\" or \"Zone\"."
|
|
1765
1873
|
},
|
|
1766
1874
|
"description": {
|
|
1767
1875
|
"type": "text",
|
|
1768
|
-
"required": false,
|
|
1769
|
-
"description": "A few words about when to use this kind of place.",
|
|
1770
1876
|
"_meta": {
|
|
1877
|
+
"__statedOptions": [
|
|
1878
|
+
"description"
|
|
1879
|
+
],
|
|
1771
1880
|
"description": "A few words about when to use this kind of place."
|
|
1772
|
-
}
|
|
1881
|
+
},
|
|
1882
|
+
"required": false,
|
|
1883
|
+
"description": "A few words about when to use this kind of place."
|
|
1773
1884
|
},
|
|
1774
1885
|
"createdAt": {
|
|
1775
1886
|
"type": "text",
|
|
1887
|
+
"_meta": {
|
|
1888
|
+
"__statedOptions": []
|
|
1889
|
+
},
|
|
1776
1890
|
"required": false
|
|
1777
1891
|
},
|
|
1778
1892
|
"updatedAt": {
|
|
1779
1893
|
"type": "text",
|
|
1894
|
+
"_meta": {
|
|
1895
|
+
"__statedOptions": []
|
|
1896
|
+
},
|
|
1780
1897
|
"required": false
|
|
1781
1898
|
}
|
|
1782
1899
|
},
|
|
@@ -1822,13 +1939,6 @@
|
|
|
1822
1939
|
"exportName": "PlaceType",
|
|
1823
1940
|
"collectionExportName": "PlaceTypeCollection",
|
|
1824
1941
|
"displayLabelField": "name",
|
|
1825
|
-
"validationRules": [
|
|
1826
|
-
{
|
|
1827
|
-
"field": "name",
|
|
1828
|
-
"rule": "required",
|
|
1829
|
-
"fieldType": "text"
|
|
1830
|
-
}
|
|
1831
|
-
],
|
|
1832
1942
|
"schema": {
|
|
1833
1943
|
"tableName": "place_types",
|
|
1834
1944
|
"ddl": "CREATE TABLE IF NOT EXISTS \"place_types\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT\n);",
|
|
@@ -2086,5 +2196,6 @@
|
|
|
2086
2196
|
"@happyvertical/smrt-tenancy"
|
|
2087
2197
|
]
|
|
2088
2198
|
},
|
|
2199
|
+
"schemaFingerprint": "16bd6f26cfd767811ff0e311446d99813ae361045398e8743f1a03b78708e24c",
|
|
2089
2200
|
"stampsConstructors": true
|
|
2090
2201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaceAsset.d.ts","sourceRoot":"","sources":["../../src/models/PlaceAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAIL,UAAU,EAEX,MAAM,0BAA0B,CAAC;AAGlC,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,qBAQa,UAAW,SAAQ,UAAU;IAExC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;
|
|
1
|
+
{"version":3,"file":"PlaceAsset.d.ts","sourceRoot":"","sources":["../../src/models/PlaceAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAIL,UAAU,EAEX,MAAM,0BAA0B,CAAC;AAGlC,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,qBAQa,UAAW,SAAQ,UAAU;IAExC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAO/B,OAAO,SAAM;IAOb,OAAO,SAAM;IAGb,YAAY,SAAgB;IAG5B,SAAS,SAAK;gBAEF,OAAO,GAAE,iBAAsB;CAQ5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaceType.d.ts","sourceRoot":"","sources":["../../src/models/PlaceType.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAS,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAEjD,qBAMa,SAAU,SAAQ,UAAU;
|
|
1
|
+
{"version":3,"file":"PlaceType.d.ts","sourceRoot":"","sources":["../../src/models/PlaceType.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAS,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAEjD,qBAMa,SAAU,SAAQ,UAAU;IAMvC,IAAI,EAAE,MAAM,CAAM;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,OAAc;IACvB,SAAS,OAAc;gBAEX,OAAO,GAAE,gBAAqB;IAS1C;;;;;OAKG;WACU,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CAIjE"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-places",
|
|
6
|
-
"packageVersion": "0.61.
|
|
6
|
+
"packageVersion": "0.61.4",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "f4b9d7d486dd6a2bc72cf56713b9804fce28c5da9f54f9773587caec2da58367",
|
|
11
|
+
"packageJson": "092fbfea52c2d6fa9bd2c215442181ce7c02390f3f758de9bb00f9a355618565",
|
|
12
12
|
"agents": "8b7e9c23fd1311b3d04afe693969c1caaaa5d166e436f48e70c3504efbbadce9"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -1397,7 +1397,7 @@
|
|
|
1397
1397
|
{
|
|
1398
1398
|
"name": "name",
|
|
1399
1399
|
"type": "text",
|
|
1400
|
-
"required":
|
|
1400
|
+
"required": false,
|
|
1401
1401
|
"columnType": "TEXT",
|
|
1402
1402
|
"default": "",
|
|
1403
1403
|
"description": "The name of the kind of place, such as \"Building\", \"Room\" or \"Zone\"."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-places",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.4",
|
|
4
4
|
"description": "Hierarchical place management with geo integration and SMRT framework support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"./manifest.json": "./dist/manifest.json"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@happyvertical/ai": "^0.
|
|
27
|
-
"@happyvertical/cache": "^0.
|
|
28
|
-
"@happyvertical/files": "^0.
|
|
29
|
-
"@happyvertical/geo": "^0.
|
|
30
|
-
"@happyvertical/logger": "^0.
|
|
31
|
-
"@happyvertical/smrt-assets": "0.61.
|
|
32
|
-
"@happyvertical/smrt-core": "0.61.
|
|
33
|
-
"@happyvertical/smrt-tenancy": "0.61.
|
|
34
|
-
"@happyvertical/sql": "^0.
|
|
35
|
-
"@happyvertical/utils": "^0.
|
|
26
|
+
"@happyvertical/ai": "^0.113.0",
|
|
27
|
+
"@happyvertical/cache": "^0.113.0",
|
|
28
|
+
"@happyvertical/files": "^0.113.0",
|
|
29
|
+
"@happyvertical/geo": "^0.113.0",
|
|
30
|
+
"@happyvertical/logger": "^0.113.0",
|
|
31
|
+
"@happyvertical/smrt-assets": "0.61.4",
|
|
32
|
+
"@happyvertical/smrt-core": "0.61.4",
|
|
33
|
+
"@happyvertical/smrt-tenancy": "0.61.4",
|
|
34
|
+
"@happyvertical/sql": "^0.113.0",
|
|
35
|
+
"@happyvertical/utils": "^0.113.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@happyvertical/smrt-vitest": "0.61.
|
|
38
|
+
"@happyvertical/smrt-vitest": "0.61.4",
|
|
39
39
|
"@types/node": "24.13.6",
|
|
40
40
|
"typescript": "6.0.3",
|
|
41
41
|
"vite": "8.1.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlaceTypeCollection-52f-CRIf.js","names":[],"sources":["../../src/models/PlaceType.ts","../../src/collections/PlaceTypeCollection.ts"],"sourcesContent":["/**\n * PlaceType model - Defines types/categories of places\n *\n * Examples: 'country', 'city', 'building', 'zone', 'room', 'region'\n */\n\nimport { field, SmrtObject, smrt } from '@happyvertical/smrt-core';\nimport type { PlaceTypeOptions } from '../types';\n\n@smrt({\n tableStrategy: 'sti',\n api: { include: ['list', 'get', 'create', 'update', 'delete'] },\n mcp: { include: ['list', 'get', 'create'] },\n cli: { skipApiCheck: true },\n})\nexport class PlaceType extends SmrtObject { static __smrtPackage__ = \"@happyvertical/smrt-places\";\n // id and slug are inherited from SmrtObject\n @field({\n required: true,\n description:\n 'The name of the kind of place, such as \"Building\", \"Room\" or \"Zone\".',\n })\n name: string = ''; // Type name (e.g., 'Town', 'City', 'Country')\n\n @field({ description: 'A few words about when to use this kind of place.' })\n description?: string; // Optional description\n\n // Timestamps\n createdAt = new Date();\n updatedAt = new Date();\n\n constructor(options: PlaceTypeOptions = {}) {\n super(options);\n if (options.name) this.name = options.name;\n if (options.description !== undefined)\n this.description = options.description;\n if (options.createdAt) this.createdAt = options.createdAt;\n if (options.updatedAt) this.updatedAt = options.updatedAt;\n }\n\n /**\n * Convenience method for slug-based lookup\n *\n * @param slug - The slug to search for\n * @returns PlaceType instance or null if not found\n */\n static async getBySlug(_slug: string): Promise<PlaceType | null> {\n // Will be auto-implemented by SMRT\n return null;\n }\n}\n","/**\n * PlaceTypeCollection - Collection manager for PlaceType objects\n *\n * Provides simple lookup and creation for place types.\n */\n\nimport { SmrtCollection } from '@happyvertical/smrt-core';\nimport { PlaceType } from '../models/PlaceType';\n\nexport class PlaceTypeCollection extends SmrtCollection<PlaceType> {\n static readonly _itemClass = PlaceType;\n\n /**\n * Get or create a place type by slug\n *\n * @param slug - PlaceType slug (e.g., 'city', 'building')\n * @param name - Optional display name (defaults to capitalized slug)\n * @returns PlaceType instance\n */\n async getOrCreate(slug: string, name?: string): Promise<PlaceType> {\n // First try to find existing type with this slug\n const existing = await this.get({ slug });\n\n if (existing) {\n return existing;\n }\n\n // Create new type with auto-generated name if not provided\n const displayName =\n name || slug.replace(/-/g, ' ').replace(/\\b\\w/g, (l) => l.toUpperCase());\n\n return await this.create({\n slug,\n name: displayName,\n });\n }\n\n /**\n * Get a place type by slug\n *\n * @param slug - PlaceType slug to search for\n * @returns PlaceType instance or null if not found\n */\n async getBySlug(slug: string): Promise<PlaceType | null> {\n return await this.get({ slug });\n }\n\n /**\n * Initialize default place types\n *\n * Creates standard types if they don't exist:\n * - country\n * - region (state/province)\n * - city\n * - address\n * - building\n * - room\n * - zone (for abstract/virtual places)\n *\n * @returns Array of created/existing place types\n */\n async initializeDefaults(): Promise<PlaceType[]> {\n const defaults = [\n { slug: 'country', name: 'Country' },\n { slug: 'region', name: 'Region' },\n { slug: 'city', name: 'City' },\n { slug: 'address', name: 'Address' },\n { slug: 'building', name: 'Building' },\n { slug: 'room', name: 'Room' },\n { slug: 'zone', name: 'Zone' },\n { slug: 'point_of_interest', name: 'Point of Interest' },\n ];\n\n const types: PlaceType[] = [];\n for (const def of defaults) {\n const type = await this.getOrCreate(def.slug, def.name);\n types.push(type);\n }\n\n return types;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeO,IAAM,YAAN,cAAwB,WAAW;CAOxC,OAAe;CAGf;CAGA,4BAAY,IAAI,KAAK;CACrB,4BAAY,IAAI,KAAK;CAErB,YAAY,UAA4B,CAAC,GAAG;EAC1C,MAAM,OAAO;EACb,IAAI,QAAQ,MAAM,KAAK,OAAO,QAAQ;EACtC,IAAI,QAAQ,gBAAgB,KAAA,GAC1B,KAAK,cAAc,QAAQ;EAC7B,IAAI,QAAQ,WAAW,KAAK,YAAY,QAAQ;EAChD,IAAI,QAAQ,WAAW,KAAK,YAAY,QAAQ;CAClD;;;;;;;CAQA,aAAa,UAAU,OAA0C;EAE/D,OAAO;CACT;AACF;AAnC4C,cAA/B,WAAsC,mBAAkB,4BAAA;AAOnE,gBAAA,CALC,MAAM;CACL,UAAU;CACV,aACE;AACJ,CAAC,CAAA,GANU,UAOX,WAAA,QAAA,CAAA;AAGA,gBAAA,CADC,MAAM,EAAE,aAAa,oDAAoD,CAAC,CAAA,GAThE,UAUX,WAAA,eAAA,CAAA;AAVW,YAAN,gBAAA,CANN,KAAK;CACJ,eAAe;CACf,KAAK,EAAE,SAAS;EAAC;EAAQ;EAAO;EAAU;EAAU;CAAQ,EAAE;CAC9D,KAAK,EAAE,SAAS;EAAC;EAAQ;EAAO;CAAQ,EAAE;CAC1C,KAAK,EAAE,cAAc,KAAK;AAC5B,CAAC,CAAA,GACY,SAAA;;;;ACNN,IAAM,sBAAN,cAAkC,eAA0B;CACjE,OAAgB,aAAa;;;;;;;;CAS7B,MAAM,YAAY,MAAc,MAAmC;EAEjE,MAAM,WAAW,MAAM,KAAK,IAAI,EAAE,KAAK,CAAC;EAExC,IAAI,UACF,OAAO;EAIT,MAAM,cACJ,QAAQ,KAAK,QAAQ,MAAM,GAAG,CAAA,CAAE,QAAQ,UAAU,MAAM,EAAE,YAAY,CAAC;EAEzE,OAAO,MAAM,KAAK,OAAO;GACvB;GACA,MAAM;EACR,CAAC;CACH;;;;;;;CAQA,MAAM,UAAU,MAAyC;EACvD,OAAO,MAAM,KAAK,IAAI,EAAE,KAAK,CAAC;CAChC;;;;;;;;;;;;;;;CAgBA,MAAM,qBAA2C;EAC/C,MAAM,WAAW;GACf;IAAE,MAAM;IAAW,MAAM;GAAU;GACnC;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAQ,MAAM;GAAO;GAC7B;IAAE,MAAM;IAAW,MAAM;GAAU;GACnC;IAAE,MAAM;IAAY,MAAM;GAAW;GACrC;IAAE,MAAM;IAAQ,MAAM;GAAO;GAC7B;IAAE,MAAM;IAAQ,MAAM;GAAO;GAC7B;IAAE,MAAM;IAAqB,MAAM;GAAoB;EACzD;EAEA,MAAM,QAAqB,CAAC;EAC5B,KAAA,MAAW,OAAO,UAAU;GAC1B,MAAM,OAAO,MAAM,KAAK,YAAY,IAAI,MAAM,IAAI,IAAI;GACtD,MAAM,KAAK,IAAI;EACjB;EAEA,OAAO;CACT;AACF"}
|