@happyvertical/smrt-content 0.54.2 → 0.54.3
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/{content-corrections-CKuY-MSv.js → content-corrections-DBYUJDaD.js} +9 -1
- package/dist/chunks/content-corrections-DBYUJDaD.js.map +1 -0
- package/dist/chunks/content-query-CbKxnce1.js +4196 -0
- package/dist/chunks/content-query-CbKxnce1.js.map +1 -0
- package/dist/chunks/{content-reviews-D6o0zK8s.js → content-reviews-B6h2aJ9m.js} +9 -1
- package/dist/chunks/content-reviews-B6h2aJ9m.js.map +1 -0
- package/dist/chunks/{content-versions-BaQTegRz.js → content-versions-USwQnpLj.js} +10 -2
- package/dist/chunks/content-versions-USwQnpLj.js.map +1 -0
- package/dist/chunks/{contents-DJTz9BlQ.js → contents-BtyVu01o.js} +3 -2
- package/dist/chunks/contents-BtyVu01o.js.map +1 -0
- package/dist/index.js +92 -9
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +15 -14
- package/dist/server.js +1 -1
- package/dist/smrt-knowledge.json +31 -31
- package/package.json +24 -24
- package/dist/chunks/content-corrections-CKuY-MSv.js.map +0 -1
- package/dist/chunks/content-query-CySNL0lU.js +0 -4170
- package/dist/chunks/content-query-CySNL0lU.js.map +0 -1
- package/dist/chunks/content-reviews-D6o0zK8s.js.map +0 -1
- package/dist/chunks/content-versions-BaQTegRz.js.map +0 -1
- package/dist/chunks/contents-DJTz9BlQ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunks/rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { $ as parseContentReviewResponse, A as normalizeContentTransparency, B as getAcceptedContentReviewStatuses, C as resolveContentTenantReadScope, F as smrtContentReviewPrompt, G as getContentReviewProfile, H as getContentReviewKind, I as smrtContentThumbnailAIGeneratePrompt, J as getEffectiveContentGovernanceConfig, K as getContentReviewProfileKeys, L as buildContentGovernanceAssignmentKey, M as ContentReference, N as promptMessageOptions, O as getQueryRows, P as smrtContentApplyCorrectionPrompt, R as buildContentReviewPrompt, S as mergeContentQueryScope, T as ThumbnailGenerator, U as getContentReviewPolicies, V as getContentGovernanceConfig, W as getContentReviewPolicy, X as hasStaticContentGovernancePolicy, Y as getFallbackPolicyKind, Z as hasStaticContentGovernanceProfile, _ as assertContentQuerySchema, a as CONTENT_QUERY_IDENTITY_FIELD, at as isAssetAssociable, b as clearContentQuerySchemaCache, c as CONTENT_QUERY_MIN_RESULT_BYTES, d as DATA_QUERY_MAX_JSON_DEPTH, et as resetContentGovernanceConfig, f as DATA_QUERY_MAX_JSON_STRING_LENGTH, g as MAX_CONTENT_QUERY_OR_BRANCHES, h as DATA_QUERY_MAX_WARNING_LENGTH, i as CONTENT_QUERY_EXCLUDED_FIELD_IDS, it as ContentAsset, j as ContentReferences, k as isMissingTableError, l as DATA_QUERY_FORBIDDEN_JSON_KEYS, m as DATA_QUERY_MAX_WARNINGS, n as CONTENT_QUERY_DEFAULT_PAGE_LIMIT, nt as resolveEffectiveContentGovernance, o as CONTENT_QUERY_MAX_PAGE_LIMIT, ot as isMetadataAccessor, p as DATA_QUERY_MAX_STRING_LENGTH, q as getContentReviewRequirements, r as CONTENT_QUERY_DEFAULT_SORT, rt as ContentAssetCollection, s as CONTENT_QUERY_MAX_RESULT_BYTES, t as CONTENT_QUERY_CLASS_NAME, tt as resolveConfiguredContentGovernance, u as DATA_QUERY_MAX_JSON_CONTAINER_ITEMS, v as buildContentQuerySchema, w as Content, x as executeContentQuery, y as buildDataQuerySchemaForClass, z as configureContentGovernance } from "./chunks/content-query-
|
|
2
|
+
import { $ as parseContentReviewResponse, A as normalizeContentTransparency, B as getAcceptedContentReviewStatuses, C as resolveContentTenantReadScope, F as smrtContentReviewPrompt, G as getContentReviewProfile, H as getContentReviewKind, I as smrtContentThumbnailAIGeneratePrompt, J as getEffectiveContentGovernanceConfig, K as getContentReviewProfileKeys, L as buildContentGovernanceAssignmentKey, M as ContentReference, N as promptMessageOptions, O as getQueryRows, P as smrtContentApplyCorrectionPrompt, R as buildContentReviewPrompt, S as mergeContentQueryScope, T as ThumbnailGenerator, U as getContentReviewPolicies, V as getContentGovernanceConfig, W as getContentReviewPolicy, X as hasStaticContentGovernancePolicy, Y as getFallbackPolicyKind, Z as hasStaticContentGovernanceProfile, _ as assertContentQuerySchema, a as CONTENT_QUERY_IDENTITY_FIELD, at as isAssetAssociable, b as clearContentQuerySchemaCache, c as CONTENT_QUERY_MIN_RESULT_BYTES, d as DATA_QUERY_MAX_JSON_DEPTH, et as resetContentGovernanceConfig, f as DATA_QUERY_MAX_JSON_STRING_LENGTH, g as MAX_CONTENT_QUERY_OR_BRANCHES, h as DATA_QUERY_MAX_WARNING_LENGTH, i as CONTENT_QUERY_EXCLUDED_FIELD_IDS, it as ContentAsset, j as ContentReferences, k as isMissingTableError, l as DATA_QUERY_FORBIDDEN_JSON_KEYS, m as DATA_QUERY_MAX_WARNINGS, n as CONTENT_QUERY_DEFAULT_PAGE_LIMIT, nt as resolveEffectiveContentGovernance, o as CONTENT_QUERY_MAX_PAGE_LIMIT, ot as isMetadataAccessor, p as DATA_QUERY_MAX_STRING_LENGTH, q as getContentReviewRequirements, r as CONTENT_QUERY_DEFAULT_SORT, rt as ContentAssetCollection, s as CONTENT_QUERY_MAX_RESULT_BYTES, t as CONTENT_QUERY_CLASS_NAME, tt as resolveConfiguredContentGovernance, u as DATA_QUERY_MAX_JSON_CONTAINER_ITEMS, v as buildContentQuerySchema, w as Content, x as executeContentQuery, y as buildDataQuerySchemaForClass, z as configureContentGovernance } from "./chunks/content-query-CbKxnce1.js";
|
|
3
3
|
import { BODY_MAIN_IMAGE_ATTRIBUTE, BODY_THUMBNAIL_ATTRIBUTE, DEFAULT_CONTENT_BODY_FORMAT, THUMBNAIL_WIDE_ASPECT_RATIO, bodyHasImage, bodyHasThumbnail, bodyToEditorHtml, editorHtmlToBody, extractBodyImages, htmlToMarkdown, placeThumbnailInBody, removeThumbnailFromBody, renderContentBodyHtml, renderMarkdownToHtml, resolveBodyFormat, resolveBodyMainPicture, sanitizeHtml, setBodyMainImage, stripHtml, thumbnailPlacementForSize } from "./body-format.js";
|
|
4
|
-
import { r as ContentCorrection, t as ContentCorrectionCollection } from "./chunks/content-corrections-
|
|
4
|
+
import { r as ContentCorrection, t as ContentCorrectionCollection } from "./chunks/content-corrections-DBYUJDaD.js";
|
|
5
5
|
import { contentEditorAssistantContextToChatProps, createContentEditorAssistantContext, sanitizeContentEditorAssistantFieldUpdates } from "./content-editor-assistant.js";
|
|
6
|
-
import { i as fetchSafeRemoteUrlInternal, r as fetchSafeRemoteUrl, t as Contents } from "./chunks/contents-
|
|
7
|
-
import { r as ContentReview, t as ContentReviewCollection } from "./chunks/content-reviews-
|
|
8
|
-
import { r as ContentVersion, t as ContentVersionCollection } from "./chunks/content-versions-
|
|
6
|
+
import { i as fetchSafeRemoteUrlInternal, r as fetchSafeRemoteUrl, t as Contents } from "./chunks/contents-BtyVu01o.js";
|
|
7
|
+
import { r as ContentReview, t as ContentReviewCollection } from "./chunks/content-reviews-B6h2aJ9m.js";
|
|
8
|
+
import { r as ContentVersion, t as ContentVersionCollection } from "./chunks/content-versions-USwQnpLj.js";
|
|
9
9
|
import { evaluateContentPublishReadiness } from "./publish-readiness.js";
|
|
10
10
|
import { ObjectRegistry, SmrtCollection, SmrtObject, crossPackageRef, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
11
11
|
import { AssetCollection, AssetStatusCollection, AssetTypeCollection } from "@happyvertical/smrt-assets";
|
|
@@ -780,12 +780,19 @@ function evaluateContributionIntake(options) {
|
|
|
780
780
|
//#region src/content-contribution.ts
|
|
781
781
|
var __defProp$10 = Object.defineProperty;
|
|
782
782
|
var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
|
|
783
|
+
var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, {
|
|
784
|
+
enumerable: true,
|
|
785
|
+
configurable: true,
|
|
786
|
+
writable: true,
|
|
787
|
+
value
|
|
788
|
+
}) : obj[key] = value;
|
|
783
789
|
var __decorateClass$10 = (decorators, target, key, kind) => {
|
|
784
790
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
|
|
785
791
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
786
792
|
if (kind && result) __defProp$10(target, key, result);
|
|
787
793
|
return result;
|
|
788
794
|
};
|
|
795
|
+
var __publicField$10 = (obj, key, value) => __defNormalProp$10(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
789
796
|
function parseMetadata$4(raw) {
|
|
790
797
|
if (!raw) return {};
|
|
791
798
|
if (typeof raw === "object") return { ...raw };
|
|
@@ -888,7 +895,7 @@ var ContentContribution = class extends SmrtObject {
|
|
|
888
895
|
return ContentContributorCollection.create(this.options);
|
|
889
896
|
}
|
|
890
897
|
async getContentsCollection() {
|
|
891
|
-
const { Contents } = await import("./chunks/contents-
|
|
898
|
+
const { Contents } = await import("./chunks/contents-BtyVu01o.js").then((n) => n.n);
|
|
892
899
|
return Contents.create({ db: this.db });
|
|
893
900
|
}
|
|
894
901
|
async getAssetCollection() {
|
|
@@ -1153,6 +1160,7 @@ var ContentContribution = class extends SmrtObject {
|
|
|
1153
1160
|
};
|
|
1154
1161
|
}
|
|
1155
1162
|
};
|
|
1163
|
+
__publicField$10(ContentContribution, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
1156
1164
|
__decorateClass$10([foreignKey("ContentContributor", { required: true })], ContentContribution.prototype, "contributorId", 2);
|
|
1157
1165
|
__decorateClass$10([field({ required: true })], ContentContribution.prototype, "contributionTypeKey", 2);
|
|
1158
1166
|
__decorateClass$10([crossPackageRef("@happyvertical/smrt-messages:Message")], ContentContribution.prototype, "sourceMessageId", 2);
|
|
@@ -1217,12 +1225,19 @@ ContentContribution = __decorateClass$10([TenantScoped({ mode: "optional" }), sm
|
|
|
1217
1225
|
//#region src/content-contribution-attachment.ts
|
|
1218
1226
|
var __defProp$9 = Object.defineProperty;
|
|
1219
1227
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
1228
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
|
|
1229
|
+
enumerable: true,
|
|
1230
|
+
configurable: true,
|
|
1231
|
+
writable: true,
|
|
1232
|
+
value
|
|
1233
|
+
}) : obj[key] = value;
|
|
1220
1234
|
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
1221
1235
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
1222
1236
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1223
1237
|
if (kind && result) __defProp$9(target, key, result);
|
|
1224
1238
|
return result;
|
|
1225
1239
|
};
|
|
1240
|
+
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1226
1241
|
function parseMetadata$3(raw) {
|
|
1227
1242
|
if (!raw) return {};
|
|
1228
1243
|
if (typeof raw === "object") return { ...raw };
|
|
@@ -1278,6 +1293,7 @@ var ContentContributionAttachment = class extends SmrtObject {
|
|
|
1278
1293
|
};
|
|
1279
1294
|
}
|
|
1280
1295
|
};
|
|
1296
|
+
__publicField$9(ContentContributionAttachment, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
1281
1297
|
__decorateClass$9([foreignKey("ContentContribution", { required: true })], ContentContributionAttachment.prototype, "contributionId", 2);
|
|
1282
1298
|
__decorateClass$9([foreignKey("ContentContributionRevision")], ContentContributionAttachment.prototype, "revisionId", 2);
|
|
1283
1299
|
__decorateClass$9([crossPackageRef("@happyvertical/smrt-assets:Asset")], ContentContributionAttachment.prototype, "promotedAssetId", 2);
|
|
@@ -1323,12 +1339,19 @@ var ContentContributionAttachmentCollection = class extends SmrtCollection {
|
|
|
1323
1339
|
//#region src/content-contribution-revision.ts
|
|
1324
1340
|
var __defProp$8 = Object.defineProperty;
|
|
1325
1341
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
1342
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, {
|
|
1343
|
+
enumerable: true,
|
|
1344
|
+
configurable: true,
|
|
1345
|
+
writable: true,
|
|
1346
|
+
value
|
|
1347
|
+
}) : obj[key] = value;
|
|
1326
1348
|
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
1327
1349
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
1328
1350
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1329
1351
|
if (kind && result) __defProp$8(target, key, result);
|
|
1330
1352
|
return result;
|
|
1331
1353
|
};
|
|
1354
|
+
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1332
1355
|
function parseMetadata$2(raw) {
|
|
1333
1356
|
if (!raw) return {};
|
|
1334
1357
|
if (typeof raw === "object") return { ...raw };
|
|
@@ -1380,6 +1403,7 @@ var ContentContributionRevision = class extends SmrtObject {
|
|
|
1380
1403
|
};
|
|
1381
1404
|
}
|
|
1382
1405
|
};
|
|
1406
|
+
__publicField$8(ContentContributionRevision, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
1383
1407
|
__decorateClass$8([foreignKey("ContentContribution", { required: true })], ContentContributionRevision.prototype, "contributionId", 2);
|
|
1384
1408
|
__decorateClass$8([crossPackageRef("@happyvertical/smrt-messages:Message")], ContentContributionRevision.prototype, "sourceMessageId", 2);
|
|
1385
1409
|
__decorateClass$8([tenantId({ nullable: true })], ContentContributionRevision.prototype, "tenantId", 2);
|
|
@@ -1425,12 +1449,19 @@ var ContentContributionRevisionCollection = class extends SmrtCollection {
|
|
|
1425
1449
|
//#region src/content-contribution-type.ts
|
|
1426
1450
|
var __defProp$7 = Object.defineProperty;
|
|
1427
1451
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
1452
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
|
|
1453
|
+
enumerable: true,
|
|
1454
|
+
configurable: true,
|
|
1455
|
+
writable: true,
|
|
1456
|
+
value
|
|
1457
|
+
}) : obj[key] = value;
|
|
1428
1458
|
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
1429
1459
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
1430
1460
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1431
1461
|
if (kind && result) __defProp$7(target, key, result);
|
|
1432
1462
|
return result;
|
|
1433
1463
|
};
|
|
1464
|
+
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1434
1465
|
function parseJSON(raw, fallback) {
|
|
1435
1466
|
if (!raw) return fallback;
|
|
1436
1467
|
if (typeof raw === "object") return structuredClone(raw);
|
|
@@ -1536,6 +1567,7 @@ var ContentContributionType = class extends SmrtObject {
|
|
|
1536
1567
|
return super.delete();
|
|
1537
1568
|
}
|
|
1538
1569
|
};
|
|
1570
|
+
__publicField$7(ContentContributionType, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
1539
1571
|
__decorateClass$7([field({ required: true })], ContentContributionType.prototype, "key", 2);
|
|
1540
1572
|
__decorateClass$7([tenantId({ nullable: true })], ContentContributionType.prototype, "tenantId", 2);
|
|
1541
1573
|
ContentContributionType = __decorateClass$7([TenantScoped({ mode: "optional" }), smrt({
|
|
@@ -1577,12 +1609,19 @@ var ContentContributionTypeCollection = class extends SmrtCollection {
|
|
|
1577
1609
|
//#region src/content-contributor.ts
|
|
1578
1610
|
var __defProp$6 = Object.defineProperty;
|
|
1579
1611
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
1612
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, {
|
|
1613
|
+
enumerable: true,
|
|
1614
|
+
configurable: true,
|
|
1615
|
+
writable: true,
|
|
1616
|
+
value
|
|
1617
|
+
}) : obj[key] = value;
|
|
1580
1618
|
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
1581
1619
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
1582
1620
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1583
1621
|
if (kind && result) __defProp$6(target, key, result);
|
|
1584
1622
|
return result;
|
|
1585
1623
|
};
|
|
1624
|
+
var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1586
1625
|
function parseMetadata$1(raw) {
|
|
1587
1626
|
if (!raw) return {};
|
|
1588
1627
|
if (typeof raw === "object") return { ...raw };
|
|
@@ -1628,6 +1667,7 @@ var ContentContributor = class extends SmrtObject {
|
|
|
1628
1667
|
};
|
|
1629
1668
|
}
|
|
1630
1669
|
};
|
|
1670
|
+
__publicField$6(ContentContributor, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
1631
1671
|
__decorateClass$6([crossPackageRef("@happyvertical/smrt-profiles:Profile")], ContentContributor.prototype, "profileId", 2);
|
|
1632
1672
|
__decorateClass$6([field({ required: true })], ContentContributor.prototype, "email", 2);
|
|
1633
1673
|
__decorateClass$6([tenantId({ nullable: true })], ContentContributor.prototype, "tenantId", 2);
|
|
@@ -1701,7 +1741,7 @@ var ContentContributorCollection = class extends SmrtCollection {
|
|
|
1701
1741
|
//#region src/content-contributions.ts
|
|
1702
1742
|
var __defProp$5 = Object.defineProperty;
|
|
1703
1743
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
1704
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
1744
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
1705
1745
|
enumerable: true,
|
|
1706
1746
|
configurable: true,
|
|
1707
1747
|
writable: true,
|
|
@@ -1713,7 +1753,7 @@ var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
|
1713
1753
|
if (kind && result) __defProp$5(target, key, result);
|
|
1714
1754
|
return result;
|
|
1715
1755
|
};
|
|
1716
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1756
|
+
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1717
1757
|
function toContributionStatus(decision) {
|
|
1718
1758
|
if (decision === "quarantined") return "quarantined";
|
|
1719
1759
|
if (decision === "rejected") return "rejected";
|
|
@@ -1955,7 +1995,8 @@ var ContentContributions = class extends SmrtCollection {
|
|
|
1955
1995
|
};
|
|
1956
1996
|
}
|
|
1957
1997
|
};
|
|
1958
|
-
__publicField(ContentContributions, "
|
|
1998
|
+
__publicField$5(ContentContributions, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
1999
|
+
__publicField$5(ContentContributions, "_itemClass", ContentContribution);
|
|
1959
2000
|
ContentContributions = __decorateClass$5([smrt({
|
|
1960
2001
|
api: {
|
|
1961
2002
|
include: [
|
|
@@ -6089,12 +6130,19 @@ function parseContentFeed(xml, baseUrl) {
|
|
|
6089
6130
|
//#region src/content-feed-source.ts
|
|
6090
6131
|
var __defProp$4 = Object.defineProperty;
|
|
6091
6132
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
6133
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
|
|
6134
|
+
enumerable: true,
|
|
6135
|
+
configurable: true,
|
|
6136
|
+
writable: true,
|
|
6137
|
+
value
|
|
6138
|
+
}) : obj[key] = value;
|
|
6092
6139
|
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
6093
6140
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
6094
6141
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6095
6142
|
if (kind && result) __defProp$4(target, key, result);
|
|
6096
6143
|
return result;
|
|
6097
6144
|
};
|
|
6145
|
+
var __publicField$4 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6098
6146
|
var SOURCE_STATUSES = /* @__PURE__ */ new Set([
|
|
6099
6147
|
"active",
|
|
6100
6148
|
"paused",
|
|
@@ -6211,6 +6259,7 @@ var ContentFeedSource = class extends SmrtObject {
|
|
|
6211
6259
|
};
|
|
6212
6260
|
}
|
|
6213
6261
|
};
|
|
6262
|
+
__publicField$4(ContentFeedSource, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6214
6263
|
__decorateClass$4([tenantId({ nullable: true })], ContentFeedSource.prototype, "tenantId", 2);
|
|
6215
6264
|
__decorateClass$4([field({ required: true })], ContentFeedSource.prototype, "name", 2);
|
|
6216
6265
|
__decorateClass$4([field({ required: true })], ContentFeedSource.prototype, "feedUrl", 2);
|
|
@@ -6271,17 +6320,25 @@ var ContentFeedSourceCollection = class extends SmrtCollection {
|
|
|
6271
6320
|
//#region src/content-types.ts
|
|
6272
6321
|
var __defProp$3 = Object.defineProperty;
|
|
6273
6322
|
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
6323
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
6324
|
+
enumerable: true,
|
|
6325
|
+
configurable: true,
|
|
6326
|
+
writable: true,
|
|
6327
|
+
value
|
|
6328
|
+
}) : obj[key] = value;
|
|
6274
6329
|
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
6275
6330
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
6276
6331
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6277
6332
|
if (kind && result) __defProp$3(target, key, result);
|
|
6278
6333
|
return result;
|
|
6279
6334
|
};
|
|
6335
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6280
6336
|
var Article = class extends Content {
|
|
6281
6337
|
constructor(options = {}) {
|
|
6282
6338
|
super(options);
|
|
6283
6339
|
}
|
|
6284
6340
|
};
|
|
6341
|
+
__publicField$3(Article, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6285
6342
|
Article = __decorateClass$3([smrt({
|
|
6286
6343
|
tableStrategy: "sti",
|
|
6287
6344
|
api: false,
|
|
@@ -6293,6 +6350,7 @@ var ContentDocument = class extends Content {
|
|
|
6293
6350
|
super(options);
|
|
6294
6351
|
}
|
|
6295
6352
|
};
|
|
6353
|
+
__publicField$3(ContentDocument, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6296
6354
|
ContentDocument = __decorateClass$3([smrt({
|
|
6297
6355
|
tableStrategy: "sti",
|
|
6298
6356
|
api: false,
|
|
@@ -6336,6 +6394,7 @@ var Mirror = class extends Content {
|
|
|
6336
6394
|
};
|
|
6337
6395
|
}
|
|
6338
6396
|
};
|
|
6397
|
+
__publicField$3(Mirror, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6339
6398
|
__decorateClass$3([foreignKey("ContentFeedSource")], Mirror.prototype, "feedSourceId", 2);
|
|
6340
6399
|
Mirror = __decorateClass$3([smrt({
|
|
6341
6400
|
tableStrategy: "sti",
|
|
@@ -6569,12 +6628,19 @@ async function syncContentFeedSource(source, options = {}) {
|
|
|
6569
6628
|
//#region src/content-governance-assignment.ts
|
|
6570
6629
|
var __defProp$2 = Object.defineProperty;
|
|
6571
6630
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
6631
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
6632
|
+
enumerable: true,
|
|
6633
|
+
configurable: true,
|
|
6634
|
+
writable: true,
|
|
6635
|
+
value
|
|
6636
|
+
}) : obj[key] = value;
|
|
6572
6637
|
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
6573
6638
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
6574
6639
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6575
6640
|
if (kind && result) __defProp$2(target, key, result);
|
|
6576
6641
|
return result;
|
|
6577
6642
|
};
|
|
6643
|
+
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6578
6644
|
var ContentGovernanceAssignment = class extends SmrtObject {
|
|
6579
6645
|
key = "";
|
|
6580
6646
|
label = "";
|
|
@@ -6642,6 +6708,7 @@ var ContentGovernanceAssignment = class extends SmrtObject {
|
|
|
6642
6708
|
if (missingProfiles.length > 0) throw new Error(`Cannot save governance assignment "${this.key}" because these profiles are missing: ${missingProfiles.join(", ")}`);
|
|
6643
6709
|
}
|
|
6644
6710
|
};
|
|
6711
|
+
__publicField$2(ContentGovernanceAssignment, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6645
6712
|
__decorateClass$2([field({ required: true })], ContentGovernanceAssignment.prototype, "key", 2);
|
|
6646
6713
|
__decorateClass$2([field({ required: true })], ContentGovernanceAssignment.prototype, "contentType", 2);
|
|
6647
6714
|
__decorateClass$2([tenantId({ nullable: true })], ContentGovernanceAssignment.prototype, "tenantId", 2);
|
|
@@ -6681,12 +6748,19 @@ var ContentGovernanceAssignmentCollection = class extends SmrtCollection {
|
|
|
6681
6748
|
//#region src/content-governance-policy.ts
|
|
6682
6749
|
var __defProp$1 = Object.defineProperty;
|
|
6683
6750
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
6751
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
6752
|
+
enumerable: true,
|
|
6753
|
+
configurable: true,
|
|
6754
|
+
writable: true,
|
|
6755
|
+
value
|
|
6756
|
+
}) : obj[key] = value;
|
|
6684
6757
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
6685
6758
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
6686
6759
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6687
6760
|
if (kind && result) __defProp$1(target, key, result);
|
|
6688
6761
|
return result;
|
|
6689
6762
|
};
|
|
6763
|
+
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6690
6764
|
var ContentGovernancePolicy = class extends SmrtObject {
|
|
6691
6765
|
key = "";
|
|
6692
6766
|
label = "";
|
|
@@ -6735,6 +6809,7 @@ var ContentGovernancePolicy = class extends SmrtObject {
|
|
|
6735
6809
|
return super.delete();
|
|
6736
6810
|
}
|
|
6737
6811
|
};
|
|
6812
|
+
__publicField$1(ContentGovernancePolicy, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6738
6813
|
__decorateClass$1([field({ required: true })], ContentGovernancePolicy.prototype, "key", 2);
|
|
6739
6814
|
__decorateClass$1([tenantId({ nullable: true })], ContentGovernancePolicy.prototype, "tenantId", 2);
|
|
6740
6815
|
ContentGovernancePolicy = __decorateClass$1([TenantScoped({ mode: "optional" }), smrt({
|
|
@@ -6768,12 +6843,19 @@ var ContentGovernancePolicyCollection = class extends SmrtCollection {
|
|
|
6768
6843
|
//#region src/content-governance-profile.ts
|
|
6769
6844
|
var __defProp = Object.defineProperty;
|
|
6770
6845
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6846
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
6847
|
+
enumerable: true,
|
|
6848
|
+
configurable: true,
|
|
6849
|
+
writable: true,
|
|
6850
|
+
value
|
|
6851
|
+
}) : obj[key] = value;
|
|
6771
6852
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
6772
6853
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
6773
6854
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6774
6855
|
if (kind && result) __defProp(target, key, result);
|
|
6775
6856
|
return result;
|
|
6776
6857
|
};
|
|
6858
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6777
6859
|
var ContentGovernanceProfile = class extends SmrtObject {
|
|
6778
6860
|
key = "";
|
|
6779
6861
|
label = "";
|
|
@@ -6837,6 +6919,7 @@ var ContentGovernanceProfile = class extends SmrtObject {
|
|
|
6837
6919
|
return super.delete();
|
|
6838
6920
|
}
|
|
6839
6921
|
};
|
|
6922
|
+
__publicField(ContentGovernanceProfile, "__smrtPackage__", "@happyvertical/smrt-content");
|
|
6840
6923
|
__decorateClass([field({ required: true })], ContentGovernanceProfile.prototype, "key", 2);
|
|
6841
6924
|
__decorateClass([tenantId({ nullable: true })], ContentGovernanceProfile.prototype, "tenantId", 2);
|
|
6842
6925
|
ContentGovernanceProfile = __decorateClass([TenantScoped({ mode: "optional" }), smrt({
|