@happyvertical/smrt-assets 0.55.11 → 0.55.14
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/asset-association.d.ts.map +1 -1
- package/dist/asset-metafield.d.ts.map +1 -1
- package/dist/asset-status.d.ts.map +1 -1
- package/dist/asset-type.d.ts.map +1 -1
- package/dist/asset.d.ts.map +1 -1
- package/dist/folder.d.ts.map +1 -1
- package/dist/index.js +27 -8
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +137 -27
- package/dist/recipes.d.ts +12 -0
- package/dist/recipes.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +67 -30
- package/package.json +13 -13
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-assets",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.14",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-assets:AssetAssociation": {
|
|
8
8
|
"name": "assetassociation",
|
|
@@ -60,7 +60,9 @@
|
|
|
60
60
|
"type": "foreignKey",
|
|
61
61
|
"required": true,
|
|
62
62
|
"related": "Asset",
|
|
63
|
+
"description": "The file attached to the related record.",
|
|
63
64
|
"_meta": {
|
|
65
|
+
"description": "The file attached to the related record.",
|
|
64
66
|
"required": true
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -504,11 +506,19 @@
|
|
|
504
506
|
},
|
|
505
507
|
"name": {
|
|
506
508
|
"type": "text",
|
|
507
|
-
"required": false
|
|
509
|
+
"required": false,
|
|
510
|
+
"description": "The name of an additional asset detail, such as Width or Height.",
|
|
511
|
+
"_meta": {
|
|
512
|
+
"description": "The name of an additional asset detail, such as Width or Height."
|
|
513
|
+
}
|
|
508
514
|
},
|
|
509
515
|
"validation": {
|
|
510
516
|
"type": "text",
|
|
511
|
-
"required": false
|
|
517
|
+
"required": false,
|
|
518
|
+
"description": "Rules that determine which values this asset detail accepts.",
|
|
519
|
+
"_meta": {
|
|
520
|
+
"description": "Rules that determine which values this asset detail accepts."
|
|
521
|
+
}
|
|
512
522
|
}
|
|
513
523
|
},
|
|
514
524
|
"methods": {
|
|
@@ -794,11 +804,19 @@
|
|
|
794
804
|
},
|
|
795
805
|
"name": {
|
|
796
806
|
"type": "text",
|
|
797
|
-
"required": false
|
|
807
|
+
"required": false,
|
|
808
|
+
"description": "The name of this lifecycle stage, such as Draft or Published.",
|
|
809
|
+
"_meta": {
|
|
810
|
+
"description": "The name of this lifecycle stage, such as Draft or Published."
|
|
811
|
+
}
|
|
798
812
|
},
|
|
799
813
|
"description": {
|
|
800
814
|
"type": "text",
|
|
801
|
-
"required": false
|
|
815
|
+
"required": false,
|
|
816
|
+
"description": "Explain when an asset should use this lifecycle stage.",
|
|
817
|
+
"_meta": {
|
|
818
|
+
"description": "Explain when an asset should use this lifecycle stage."
|
|
819
|
+
}
|
|
802
820
|
}
|
|
803
821
|
},
|
|
804
822
|
"methods": {
|
|
@@ -1433,11 +1451,19 @@
|
|
|
1433
1451
|
},
|
|
1434
1452
|
"name": {
|
|
1435
1453
|
"type": "text",
|
|
1436
|
-
"required": false
|
|
1454
|
+
"required": false,
|
|
1455
|
+
"description": "The name of this file category, such as Image or Document.",
|
|
1456
|
+
"_meta": {
|
|
1457
|
+
"description": "The name of this file category, such as Image or Document."
|
|
1458
|
+
}
|
|
1437
1459
|
},
|
|
1438
1460
|
"description": {
|
|
1439
1461
|
"type": "text",
|
|
1440
|
-
"required": false
|
|
1462
|
+
"required": false,
|
|
1463
|
+
"description": "Explain which kinds of files belong in this category.",
|
|
1464
|
+
"_meta": {
|
|
1465
|
+
"description": "Explain which kinds of files belong in this category."
|
|
1466
|
+
}
|
|
1441
1467
|
}
|
|
1442
1468
|
},
|
|
1443
1469
|
"methods": {
|
|
@@ -1711,68 +1737,128 @@
|
|
|
1711
1737
|
},
|
|
1712
1738
|
"name": {
|
|
1713
1739
|
"type": "text",
|
|
1714
|
-
"required": false
|
|
1740
|
+
"required": false,
|
|
1741
|
+
"description": "A recognizable name for this file or media item.",
|
|
1742
|
+
"_meta": {
|
|
1743
|
+
"description": "A recognizable name for this file or media item."
|
|
1744
|
+
}
|
|
1715
1745
|
},
|
|
1716
1746
|
"sourceUri": {
|
|
1717
1747
|
"type": "text",
|
|
1718
|
-
"required": false
|
|
1748
|
+
"required": false,
|
|
1749
|
+
"description": "Where the original file is stored or can be retrieved.",
|
|
1750
|
+
"_meta": {
|
|
1751
|
+
"description": "Where the original file is stored or can be retrieved."
|
|
1752
|
+
}
|
|
1719
1753
|
},
|
|
1720
1754
|
"mimeType": {
|
|
1721
1755
|
"type": "text",
|
|
1722
|
-
"required": false
|
|
1756
|
+
"required": false,
|
|
1757
|
+
"description": "The file format, such as image/jpeg or application/pdf.",
|
|
1758
|
+
"_meta": {
|
|
1759
|
+
"description": "The file format, such as image/jpeg or application/pdf."
|
|
1760
|
+
}
|
|
1723
1761
|
},
|
|
1724
1762
|
"description": {
|
|
1725
1763
|
"type": "text",
|
|
1726
|
-
"required": false
|
|
1764
|
+
"required": false,
|
|
1765
|
+
"description": "Explain what the file contains and when it should be used.",
|
|
1766
|
+
"_meta": {
|
|
1767
|
+
"description": "Explain what the file contains and when it should be used."
|
|
1768
|
+
}
|
|
1727
1769
|
},
|
|
1728
1770
|
"metadata": {
|
|
1729
1771
|
"type": "text",
|
|
1730
|
-
"required": false
|
|
1772
|
+
"required": false,
|
|
1773
|
+
"description": "Additional details recorded while processing this file.",
|
|
1774
|
+
"_meta": {
|
|
1775
|
+
"description": "Additional details recorded while processing this file."
|
|
1776
|
+
}
|
|
1731
1777
|
},
|
|
1732
1778
|
"version": {
|
|
1733
1779
|
"type": "integer",
|
|
1734
1780
|
"required": true,
|
|
1735
|
-
"default": 1
|
|
1781
|
+
"default": 1,
|
|
1782
|
+
"description": "The revision number of this file in its version history.",
|
|
1783
|
+
"_meta": {
|
|
1784
|
+
"description": "The revision number of this file in its version history."
|
|
1785
|
+
}
|
|
1736
1786
|
},
|
|
1737
1787
|
"primaryVersionId": {
|
|
1738
1788
|
"type": "foreignKey",
|
|
1739
1789
|
"required": false,
|
|
1740
|
-
"related": "Asset"
|
|
1790
|
+
"related": "Asset",
|
|
1791
|
+
"description": "The first version of this file, linking its revision history.",
|
|
1792
|
+
"_meta": {
|
|
1793
|
+
"description": "The first version of this file, linking its revision history."
|
|
1794
|
+
}
|
|
1741
1795
|
},
|
|
1742
1796
|
"typeSlug": {
|
|
1743
1797
|
"type": "text",
|
|
1744
|
-
"required": false
|
|
1798
|
+
"required": false,
|
|
1799
|
+
"description": "The category of asset, such as an image, video, or document.",
|
|
1800
|
+
"_meta": {
|
|
1801
|
+
"description": "The category of asset, such as an image, video, or document."
|
|
1802
|
+
}
|
|
1745
1803
|
},
|
|
1746
1804
|
"statusSlug": {
|
|
1747
1805
|
"type": "text",
|
|
1748
|
-
"required": false
|
|
1806
|
+
"required": false,
|
|
1807
|
+
"description": "The stage of this asset, such as draft, published, or archived.",
|
|
1808
|
+
"_meta": {
|
|
1809
|
+
"description": "The stage of this asset, such as draft, published, or archived."
|
|
1810
|
+
}
|
|
1749
1811
|
},
|
|
1750
1812
|
"ownerProfileId": {
|
|
1751
1813
|
"type": "crossPackageRef",
|
|
1752
1814
|
"required": false,
|
|
1753
|
-
"related": "@happyvertical/smrt-profiles:Profile"
|
|
1815
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1816
|
+
"description": "The person or organization responsible for this asset.",
|
|
1817
|
+
"_meta": {
|
|
1818
|
+
"description": "The person or organization responsible for this asset."
|
|
1819
|
+
}
|
|
1754
1820
|
},
|
|
1755
1821
|
"sourceAssetId": {
|
|
1756
1822
|
"type": "foreignKey",
|
|
1757
1823
|
"required": false,
|
|
1758
|
-
"related": "Asset"
|
|
1824
|
+
"related": "Asset",
|
|
1825
|
+
"description": "The original asset used to produce this file or variation.",
|
|
1826
|
+
"_meta": {
|
|
1827
|
+
"description": "The original asset used to produce this file or variation."
|
|
1828
|
+
}
|
|
1759
1829
|
},
|
|
1760
1830
|
"folderId": {
|
|
1761
1831
|
"type": "foreignKey",
|
|
1762
1832
|
"required": false,
|
|
1763
|
-
"related": "Folder"
|
|
1833
|
+
"related": "Folder",
|
|
1834
|
+
"description": "The folder that organizes this file in the asset library.",
|
|
1835
|
+
"_meta": {
|
|
1836
|
+
"description": "The folder that organizes this file in the asset library."
|
|
1837
|
+
}
|
|
1764
1838
|
},
|
|
1765
1839
|
"sourceType": {
|
|
1766
1840
|
"type": "text",
|
|
1767
|
-
"required": false
|
|
1841
|
+
"required": false,
|
|
1842
|
+
"description": "The service or source from which this file was obtained.",
|
|
1843
|
+
"_meta": {
|
|
1844
|
+
"description": "The service or source from which this file was obtained."
|
|
1845
|
+
}
|
|
1768
1846
|
},
|
|
1769
1847
|
"externalId": {
|
|
1770
1848
|
"type": "text",
|
|
1771
|
-
"required": false
|
|
1849
|
+
"required": false,
|
|
1850
|
+
"description": "The reference used to identify this file at its original source.",
|
|
1851
|
+
"_meta": {
|
|
1852
|
+
"description": "The reference used to identify this file at its original source."
|
|
1853
|
+
}
|
|
1772
1854
|
},
|
|
1773
1855
|
"externalRefs": {
|
|
1774
1856
|
"type": "text",
|
|
1775
|
-
"required": false
|
|
1857
|
+
"required": false,
|
|
1858
|
+
"description": "References that connect this file to copies held by other services.",
|
|
1859
|
+
"_meta": {
|
|
1860
|
+
"description": "References that connect this file to copies held by other services."
|
|
1861
|
+
}
|
|
1776
1862
|
},
|
|
1777
1863
|
"createdAt": {
|
|
1778
1864
|
"type": "text",
|
|
@@ -2727,16 +2813,28 @@
|
|
|
2727
2813
|
},
|
|
2728
2814
|
"name": {
|
|
2729
2815
|
"type": "text",
|
|
2730
|
-
"required": false
|
|
2816
|
+
"required": false,
|
|
2817
|
+
"description": "A recognizable name for this group of files.",
|
|
2818
|
+
"_meta": {
|
|
2819
|
+
"description": "A recognizable name for this group of files."
|
|
2820
|
+
}
|
|
2731
2821
|
},
|
|
2732
2822
|
"description": {
|
|
2733
2823
|
"type": "text",
|
|
2734
|
-
"required": false
|
|
2824
|
+
"required": false,
|
|
2825
|
+
"description": "Explain the purpose of this folder and which files belong here.",
|
|
2826
|
+
"_meta": {
|
|
2827
|
+
"description": "Explain the purpose of this folder and which files belong here."
|
|
2828
|
+
}
|
|
2735
2829
|
},
|
|
2736
2830
|
"ownerProfileId": {
|
|
2737
2831
|
"type": "crossPackageRef",
|
|
2738
2832
|
"required": false,
|
|
2739
|
-
"related": "@happyvertical/smrt-profiles:Profile"
|
|
2833
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
2834
|
+
"description": "The person or organization responsible for this folder.",
|
|
2835
|
+
"_meta": {
|
|
2836
|
+
"description": "The person or organization responsible for this folder."
|
|
2837
|
+
}
|
|
2740
2838
|
},
|
|
2741
2839
|
"createdAt": {
|
|
2742
2840
|
"type": "text",
|
|
@@ -3172,6 +3270,7 @@
|
|
|
3172
3270
|
"model": "@happyvertical/smrt-assets:Asset",
|
|
3173
3271
|
"icon": "fileText",
|
|
3174
3272
|
"description": "Supporting files connected to the record you are viewing.",
|
|
3273
|
+
"key": "attachments",
|
|
3175
3274
|
"noun": "attachment"
|
|
3176
3275
|
}
|
|
3177
3276
|
],
|
|
@@ -3212,13 +3311,21 @@
|
|
|
3212
3311
|
"label": "Attachment",
|
|
3213
3312
|
"order": 1
|
|
3214
3313
|
},
|
|
3314
|
+
"metaType": {
|
|
3315
|
+
"help": "The kind of record this file is connected to, such as an article or event."
|
|
3316
|
+
},
|
|
3317
|
+
"metaId": {
|
|
3318
|
+
"help": "The specific record that this file is connected to."
|
|
3319
|
+
},
|
|
3215
3320
|
"role": {
|
|
3216
3321
|
"label": "Role",
|
|
3217
|
-
"order": 2
|
|
3322
|
+
"order": 2,
|
|
3323
|
+
"help": "How this file is used by the related record, such as a cover image or attachment."
|
|
3218
3324
|
},
|
|
3219
3325
|
"sortOrder": {
|
|
3220
3326
|
"label": "Display order",
|
|
3221
|
-
"order": 3
|
|
3327
|
+
"order": 3,
|
|
3328
|
+
"help": "The position of this attachment among files with the same role; lower numbers appear first."
|
|
3222
3329
|
}
|
|
3223
3330
|
}
|
|
3224
3331
|
}
|
|
@@ -3320,6 +3427,9 @@
|
|
|
3320
3427
|
},
|
|
3321
3428
|
"@happyvertical/smrt-assets:Folder": {
|
|
3322
3429
|
"fields": {
|
|
3430
|
+
"parentId": {
|
|
3431
|
+
"help": "The containing folder; leave empty to place this folder at the top level."
|
|
3432
|
+
},
|
|
3323
3433
|
"name": {
|
|
3324
3434
|
"label": "Name",
|
|
3325
3435
|
"order": 1
|
package/dist/recipes.d.ts
CHANGED
|
@@ -79,6 +79,9 @@ export declare class AssetLibraryRecipe extends SmrtRecipe {
|
|
|
79
79
|
};
|
|
80
80
|
readonly Folder: {
|
|
81
81
|
readonly fields: {
|
|
82
|
+
readonly parentId: {
|
|
83
|
+
readonly help: "The containing folder; leave empty to place this folder at the top level.";
|
|
84
|
+
};
|
|
82
85
|
readonly name: {
|
|
83
86
|
readonly label: "Name";
|
|
84
87
|
readonly order: 1;
|
|
@@ -115,6 +118,7 @@ export declare class AssetAttachmentsRecipe extends SmrtRecipe {
|
|
|
115
118
|
};
|
|
116
119
|
static nav: {
|
|
117
120
|
label: string;
|
|
121
|
+
key: string;
|
|
118
122
|
model: typeof Asset;
|
|
119
123
|
icon: string;
|
|
120
124
|
description: string;
|
|
@@ -144,13 +148,21 @@ export declare class AssetAttachmentsRecipe extends SmrtRecipe {
|
|
|
144
148
|
readonly label: "Attachment";
|
|
145
149
|
readonly order: 1;
|
|
146
150
|
};
|
|
151
|
+
readonly metaType: {
|
|
152
|
+
readonly help: "The kind of record this file is connected to, such as an article or event.";
|
|
153
|
+
};
|
|
154
|
+
readonly metaId: {
|
|
155
|
+
readonly help: "The specific record that this file is connected to.";
|
|
156
|
+
};
|
|
147
157
|
readonly role: {
|
|
148
158
|
readonly label: "Role";
|
|
149
159
|
readonly order: 2;
|
|
160
|
+
readonly help: "How this file is used by the related record, such as a cover image or attachment.";
|
|
150
161
|
};
|
|
151
162
|
readonly sortOrder: {
|
|
152
163
|
readonly label: "Display order";
|
|
153
164
|
readonly order: 3;
|
|
165
|
+
readonly help: "The position of this attachment among files with the same role; lower numbers appear first.";
|
|
154
166
|
};
|
|
155
167
|
};
|
|
156
168
|
};
|
package/dist/recipes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,mEAAmE;AACnE,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,EAAE,SAAoB;IAC7B,MAAM,CAAC,IAAI,SAAgC;IAC3C,MAAM,CAAC,KAAK,SAAmB;IAC/B,MAAM,CAAC,OAAO,SACkD;IAChE,MAAM,CAAC,QAAQ,WAAuD;IACtE,MAAM,CAAC,KAAK;;;;MAKV;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,iDAA2D;IACxE,MAAM,CAAC,OAAO,EAAG,MAAM,CAAU;IACjC,MAAM,CAAC,QAAQ;;MAEJ;IACX,MAAM,CAAC,GAAG;;;;;;;;;;;;SAeR;IACF,MAAM,CAAC,OAAO
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,mEAAmE;AACnE,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,EAAE,SAAoB;IAC7B,MAAM,CAAC,IAAI,SAAgC;IAC3C,MAAM,CAAC,KAAK,SAAmB;IAC/B,MAAM,CAAC,OAAO,SACkD;IAChE,MAAM,CAAC,QAAQ,WAAuD;IACtE,MAAM,CAAC,KAAK;;;;MAKV;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,iDAA2D;IACxE,MAAM,CAAC,OAAO,EAAG,MAAM,CAAU;IACjC,MAAM,CAAC,QAAQ;;MAEJ;IACX,MAAM,CAAC,GAAG;;;;;;;;;;;;SAeR;IACF,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBH;CACZ;AAED,2EAA2E;AAC3E,qBAAa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,SAAwB;IACjC,MAAM,CAAC,IAAI,SAAoC;IAC/C,MAAM,CAAC,KAAK,SAAiB;IAC7B,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,QAAQ,WAIb;IACF,MAAM,CAAC,KAAK;;;;MAKV;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,6CAA6B;IAC1C,MAAM,CAAC,OAAO,EAAG,MAAM,CAAU;IACjC,MAAM,CAAC,QAAQ;;MAGJ;IACX,MAAM,CAAC,GAAG;;;;;;;QASR;IACF,MAAM,CAAC,QAAQ,WAAsB;IACrC,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BH;CACZ"}
|
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-assets",
|
|
6
|
-
"packageVersion": "0.55.
|
|
6
|
+
"packageVersion": "0.55.14",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "c04f41bb0a8aaff11b31fbec839da1e18a2c76314c8c51d86376be61b220a83a",
|
|
11
|
+
"packageJson": "0e3c4f7d86d4e70101e1c493acdcd07d04e14ce70d4da491e2946cdb5ad2ffee",
|
|
12
12
|
"agents": "4e84d65324e346f9c6072da7ccee6753289efb95ffb2faf5e999081502189737"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -123,7 +123,8 @@
|
|
|
123
123
|
"type": "foreignKey",
|
|
124
124
|
"required": true,
|
|
125
125
|
"related": "Asset",
|
|
126
|
-
"columnType": "UUID"
|
|
126
|
+
"columnType": "UUID",
|
|
127
|
+
"description": "The file attached to the related record."
|
|
127
128
|
}
|
|
128
129
|
],
|
|
129
130
|
"relationships": [
|
|
@@ -465,13 +466,15 @@
|
|
|
465
466
|
"name": "name",
|
|
466
467
|
"type": "text",
|
|
467
468
|
"required": false,
|
|
468
|
-
"columnType": "TEXT"
|
|
469
|
+
"columnType": "TEXT",
|
|
470
|
+
"description": "The name of an additional asset detail, such as Width or Height."
|
|
469
471
|
},
|
|
470
472
|
{
|
|
471
473
|
"name": "validation",
|
|
472
474
|
"type": "text",
|
|
473
475
|
"required": false,
|
|
474
|
-
"columnType": "TEXT"
|
|
476
|
+
"columnType": "TEXT",
|
|
477
|
+
"description": "Rules that determine which values this asset detail accepts."
|
|
475
478
|
}
|
|
476
479
|
],
|
|
477
480
|
"relationships": [],
|
|
@@ -743,13 +746,15 @@
|
|
|
743
746
|
"name": "name",
|
|
744
747
|
"type": "text",
|
|
745
748
|
"required": false,
|
|
746
|
-
"columnType": "TEXT"
|
|
749
|
+
"columnType": "TEXT",
|
|
750
|
+
"description": "The name of this lifecycle stage, such as Draft or Published."
|
|
747
751
|
},
|
|
748
752
|
{
|
|
749
753
|
"name": "description",
|
|
750
754
|
"type": "text",
|
|
751
755
|
"required": false,
|
|
752
|
-
"columnType": "TEXT"
|
|
756
|
+
"columnType": "TEXT",
|
|
757
|
+
"description": "Explain when an asset should use this lifecycle stage."
|
|
753
758
|
}
|
|
754
759
|
],
|
|
755
760
|
"relationships": [],
|
|
@@ -1157,13 +1162,15 @@
|
|
|
1157
1162
|
"name": "name",
|
|
1158
1163
|
"type": "text",
|
|
1159
1164
|
"required": false,
|
|
1160
|
-
"columnType": "TEXT"
|
|
1165
|
+
"columnType": "TEXT",
|
|
1166
|
+
"description": "The name of this file category, such as Image or Document."
|
|
1161
1167
|
},
|
|
1162
1168
|
{
|
|
1163
1169
|
"name": "description",
|
|
1164
1170
|
"type": "text",
|
|
1165
1171
|
"required": false,
|
|
1166
|
-
"columnType": "TEXT"
|
|
1172
|
+
"columnType": "TEXT",
|
|
1173
|
+
"description": "Explain which kinds of files belong in this category."
|
|
1167
1174
|
}
|
|
1168
1175
|
],
|
|
1169
1176
|
"relationships": [],
|
|
@@ -1402,96 +1409,111 @@
|
|
|
1402
1409
|
"name": "name",
|
|
1403
1410
|
"type": "text",
|
|
1404
1411
|
"required": false,
|
|
1405
|
-
"columnType": "TEXT"
|
|
1412
|
+
"columnType": "TEXT",
|
|
1413
|
+
"description": "A recognizable name for this file or media item."
|
|
1406
1414
|
},
|
|
1407
1415
|
{
|
|
1408
1416
|
"name": "sourceUri",
|
|
1409
1417
|
"type": "text",
|
|
1410
1418
|
"required": false,
|
|
1411
|
-
"columnType": "TEXT"
|
|
1419
|
+
"columnType": "TEXT",
|
|
1420
|
+
"description": "Where the original file is stored or can be retrieved."
|
|
1412
1421
|
},
|
|
1413
1422
|
{
|
|
1414
1423
|
"name": "mimeType",
|
|
1415
1424
|
"type": "text",
|
|
1416
1425
|
"required": false,
|
|
1417
|
-
"columnType": "TEXT"
|
|
1426
|
+
"columnType": "TEXT",
|
|
1427
|
+
"description": "The file format, such as image/jpeg or application/pdf."
|
|
1418
1428
|
},
|
|
1419
1429
|
{
|
|
1420
1430
|
"name": "description",
|
|
1421
1431
|
"type": "text",
|
|
1422
1432
|
"required": false,
|
|
1423
|
-
"columnType": "TEXT"
|
|
1433
|
+
"columnType": "TEXT",
|
|
1434
|
+
"description": "Explain what the file contains and when it should be used."
|
|
1424
1435
|
},
|
|
1425
1436
|
{
|
|
1426
1437
|
"name": "metadata",
|
|
1427
1438
|
"type": "text",
|
|
1428
1439
|
"required": false,
|
|
1429
|
-
"columnType": "TEXT"
|
|
1440
|
+
"columnType": "TEXT",
|
|
1441
|
+
"description": "Additional details recorded while processing this file."
|
|
1430
1442
|
},
|
|
1431
1443
|
{
|
|
1432
1444
|
"name": "version",
|
|
1433
1445
|
"type": "integer",
|
|
1434
1446
|
"required": true,
|
|
1435
1447
|
"columnType": "INTEGER",
|
|
1436
|
-
"default": 1
|
|
1448
|
+
"default": 1,
|
|
1449
|
+
"description": "The revision number of this file in its version history."
|
|
1437
1450
|
},
|
|
1438
1451
|
{
|
|
1439
1452
|
"name": "primaryVersionId",
|
|
1440
1453
|
"type": "foreignKey",
|
|
1441
1454
|
"required": false,
|
|
1442
1455
|
"related": "Asset",
|
|
1443
|
-
"columnType": "UUID"
|
|
1456
|
+
"columnType": "UUID",
|
|
1457
|
+
"description": "The first version of this file, linking its revision history."
|
|
1444
1458
|
},
|
|
1445
1459
|
{
|
|
1446
1460
|
"name": "typeSlug",
|
|
1447
1461
|
"type": "text",
|
|
1448
1462
|
"required": false,
|
|
1449
|
-
"columnType": "TEXT"
|
|
1463
|
+
"columnType": "TEXT",
|
|
1464
|
+
"description": "The category of asset, such as an image, video, or document."
|
|
1450
1465
|
},
|
|
1451
1466
|
{
|
|
1452
1467
|
"name": "statusSlug",
|
|
1453
1468
|
"type": "text",
|
|
1454
1469
|
"required": false,
|
|
1455
|
-
"columnType": "TEXT"
|
|
1470
|
+
"columnType": "TEXT",
|
|
1471
|
+
"description": "The stage of this asset, such as draft, published, or archived."
|
|
1456
1472
|
},
|
|
1457
1473
|
{
|
|
1458
1474
|
"name": "ownerProfileId",
|
|
1459
1475
|
"type": "crossPackageRef",
|
|
1460
1476
|
"required": false,
|
|
1461
1477
|
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1462
|
-
"columnType": "UUID"
|
|
1478
|
+
"columnType": "UUID",
|
|
1479
|
+
"description": "The person or organization responsible for this asset."
|
|
1463
1480
|
},
|
|
1464
1481
|
{
|
|
1465
1482
|
"name": "sourceAssetId",
|
|
1466
1483
|
"type": "foreignKey",
|
|
1467
1484
|
"required": false,
|
|
1468
1485
|
"related": "Asset",
|
|
1469
|
-
"columnType": "UUID"
|
|
1486
|
+
"columnType": "UUID",
|
|
1487
|
+
"description": "The original asset used to produce this file or variation."
|
|
1470
1488
|
},
|
|
1471
1489
|
{
|
|
1472
1490
|
"name": "folderId",
|
|
1473
1491
|
"type": "foreignKey",
|
|
1474
1492
|
"required": false,
|
|
1475
1493
|
"related": "Folder",
|
|
1476
|
-
"columnType": "UUID"
|
|
1494
|
+
"columnType": "UUID",
|
|
1495
|
+
"description": "The folder that organizes this file in the asset library."
|
|
1477
1496
|
},
|
|
1478
1497
|
{
|
|
1479
1498
|
"name": "sourceType",
|
|
1480
1499
|
"type": "text",
|
|
1481
1500
|
"required": false,
|
|
1482
|
-
"columnType": "TEXT"
|
|
1501
|
+
"columnType": "TEXT",
|
|
1502
|
+
"description": "The service or source from which this file was obtained."
|
|
1483
1503
|
},
|
|
1484
1504
|
{
|
|
1485
1505
|
"name": "externalId",
|
|
1486
1506
|
"type": "text",
|
|
1487
1507
|
"required": false,
|
|
1488
|
-
"columnType": "TEXT"
|
|
1508
|
+
"columnType": "TEXT",
|
|
1509
|
+
"description": "The reference used to identify this file at its original source."
|
|
1489
1510
|
},
|
|
1490
1511
|
{
|
|
1491
1512
|
"name": "externalRefs",
|
|
1492
1513
|
"type": "text",
|
|
1493
1514
|
"required": false,
|
|
1494
|
-
"columnType": "TEXT"
|
|
1515
|
+
"columnType": "TEXT",
|
|
1516
|
+
"description": "References that connect this file to copies held by other services."
|
|
1495
1517
|
},
|
|
1496
1518
|
{
|
|
1497
1519
|
"name": "createdAt",
|
|
@@ -2553,20 +2575,23 @@
|
|
|
2553
2575
|
"name": "name",
|
|
2554
2576
|
"type": "text",
|
|
2555
2577
|
"required": false,
|
|
2556
|
-
"columnType": "TEXT"
|
|
2578
|
+
"columnType": "TEXT",
|
|
2579
|
+
"description": "A recognizable name for this group of files."
|
|
2557
2580
|
},
|
|
2558
2581
|
{
|
|
2559
2582
|
"name": "description",
|
|
2560
2583
|
"type": "text",
|
|
2561
2584
|
"required": false,
|
|
2562
|
-
"columnType": "TEXT"
|
|
2585
|
+
"columnType": "TEXT",
|
|
2586
|
+
"description": "Explain the purpose of this folder and which files belong here."
|
|
2563
2587
|
},
|
|
2564
2588
|
{
|
|
2565
2589
|
"name": "ownerProfileId",
|
|
2566
2590
|
"type": "crossPackageRef",
|
|
2567
2591
|
"required": false,
|
|
2568
2592
|
"related": "@happyvertical/smrt-profiles:Profile",
|
|
2569
|
-
"columnType": "UUID"
|
|
2593
|
+
"columnType": "UUID",
|
|
2594
|
+
"description": "The person or organization responsible for this folder."
|
|
2570
2595
|
},
|
|
2571
2596
|
{
|
|
2572
2597
|
"name": "createdAt",
|
|
@@ -4367,6 +4392,7 @@
|
|
|
4367
4392
|
"model": "@happyvertical/smrt-assets:Asset",
|
|
4368
4393
|
"icon": "fileText",
|
|
4369
4394
|
"description": "Supporting files connected to the record you are viewing.",
|
|
4395
|
+
"key": "attachments",
|
|
4370
4396
|
"noun": "attachment"
|
|
4371
4397
|
}
|
|
4372
4398
|
],
|
|
@@ -4407,13 +4433,21 @@
|
|
|
4407
4433
|
"label": "Attachment",
|
|
4408
4434
|
"order": 1
|
|
4409
4435
|
},
|
|
4436
|
+
"metaType": {
|
|
4437
|
+
"help": "The kind of record this file is connected to, such as an article or event."
|
|
4438
|
+
},
|
|
4439
|
+
"metaId": {
|
|
4440
|
+
"help": "The specific record that this file is connected to."
|
|
4441
|
+
},
|
|
4410
4442
|
"role": {
|
|
4411
4443
|
"label": "Role",
|
|
4412
|
-
"order": 2
|
|
4444
|
+
"order": 2,
|
|
4445
|
+
"help": "How this file is used by the related record, such as a cover image or attachment."
|
|
4413
4446
|
},
|
|
4414
4447
|
"sortOrder": {
|
|
4415
4448
|
"label": "Display order",
|
|
4416
|
-
"order": 3
|
|
4449
|
+
"order": 3,
|
|
4450
|
+
"help": "The position of this attachment among files with the same role; lower numbers appear first."
|
|
4417
4451
|
}
|
|
4418
4452
|
}
|
|
4419
4453
|
}
|
|
@@ -4515,6 +4549,9 @@
|
|
|
4515
4549
|
},
|
|
4516
4550
|
"@happyvertical/smrt-assets:Folder": {
|
|
4517
4551
|
"fields": {
|
|
4552
|
+
"parentId": {
|
|
4553
|
+
"help": "The containing folder; leave empty to place this folder at the top level."
|
|
4554
|
+
},
|
|
4518
4555
|
"name": {
|
|
4519
4556
|
"label": "Name",
|
|
4520
4557
|
"order": 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-assets",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.14",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Asset management system with versioning, metadata, and AI-powered operations for SMRT framework",
|
|
6
6
|
"type": "module",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@happyvertical/ai": "^0.103.
|
|
48
|
-
"@happyvertical/files": "^0.103.
|
|
49
|
-
"@happyvertical/logger": "^0.103.
|
|
50
|
-
"@happyvertical/smrt-core": "0.55.
|
|
51
|
-
"@happyvertical/smrt-tags": "0.55.
|
|
52
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
53
|
-
"@happyvertical/smrt-types": "0.55.
|
|
54
|
-
"@happyvertical/smrt-ui": "0.55.
|
|
55
|
-
"@happyvertical/sql": "^0.103.
|
|
56
|
-
"@happyvertical/utils": "^0.103.
|
|
47
|
+
"@happyvertical/ai": "^0.103.2",
|
|
48
|
+
"@happyvertical/files": "^0.103.2",
|
|
49
|
+
"@happyvertical/logger": "^0.103.2",
|
|
50
|
+
"@happyvertical/smrt-core": "0.55.14",
|
|
51
|
+
"@happyvertical/smrt-tags": "0.55.14",
|
|
52
|
+
"@happyvertical/smrt-tenancy": "0.55.14",
|
|
53
|
+
"@happyvertical/smrt-types": "0.55.14",
|
|
54
|
+
"@happyvertical/smrt-ui": "0.55.14",
|
|
55
|
+
"@happyvertical/sql": "^0.103.2",
|
|
56
|
+
"@happyvertical/utils": "^0.103.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"svelte": "^5.57.0"
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@happyvertical/smrt-playground": "0.55.
|
|
68
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
67
|
+
"@happyvertical/smrt-playground": "0.55.14",
|
|
68
|
+
"@happyvertical/smrt-vitest": "0.55.14",
|
|
69
69
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
70
70
|
"@sveltejs/kit": "2.69.1",
|
|
71
71
|
"@sveltejs/package": "^2.5.8",
|