@happyvertical/smrt-social 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/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +358 -112
- package/dist/smrt-knowledge.json +4 -4
- package/dist/social-post-analytics-snapshot.d.ts.map +1 -1
- package/package.json +12 -12
package/dist/manifest.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-social",
|
|
5
|
-
"packageVersion": "0.61.
|
|
5
|
+
"packageVersion": "0.61.4",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-social:OAuthStateCollection": {
|
|
8
8
|
"name": "oauthstatecollection",
|
|
9
9
|
"className": "OAuthStateCollection",
|
|
10
10
|
"qualifiedName": "@happyvertical/smrt-social:OAuthStateCollection",
|
|
11
11
|
"collection": "oauthstates",
|
|
12
|
-
"filePath": "
|
|
12
|
+
"filePath": "src/collections/oauth-state-collection.ts",
|
|
13
13
|
"packageName": "@happyvertical/smrt-social",
|
|
14
14
|
"fields": {},
|
|
15
15
|
"methods": {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"className": "SocialAccountCollection",
|
|
218
218
|
"qualifiedName": "@happyvertical/smrt-social:SocialAccountCollection",
|
|
219
219
|
"collection": "socialaccounts",
|
|
220
|
-
"filePath": "
|
|
220
|
+
"filePath": "src/collections/social-account-collection.ts",
|
|
221
221
|
"packageName": "@happyvertical/smrt-social",
|
|
222
222
|
"fields": {},
|
|
223
223
|
"methods": {
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"className": "SocialPostAnalyticsSnapshotCollection",
|
|
459
459
|
"qualifiedName": "@happyvertical/smrt-social:SocialPostAnalyticsSnapshotCollection",
|
|
460
460
|
"collection": "socialpostanalyticssnapshots",
|
|
461
|
-
"filePath": "
|
|
461
|
+
"filePath": "src/collections/social-post-analytics-snapshot-collection.ts",
|
|
462
462
|
"packageName": "@happyvertical/smrt-social",
|
|
463
463
|
"fields": {},
|
|
464
464
|
"methods": {
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
"className": "SocialPostCollection",
|
|
656
656
|
"qualifiedName": "@happyvertical/smrt-social:SocialPostCollection",
|
|
657
657
|
"collection": "socialposts",
|
|
658
|
-
"filePath": "
|
|
658
|
+
"filePath": "src/collections/social-post-collection.ts",
|
|
659
659
|
"packageName": "@happyvertical/smrt-social",
|
|
660
660
|
"fields": {},
|
|
661
661
|
"methods": {
|
|
@@ -1007,23 +1007,26 @@
|
|
|
1007
1007
|
"qualifiedName": "@happyvertical/smrt-social:OAuthState",
|
|
1008
1008
|
"collection": "oauthstates",
|
|
1009
1009
|
"description": "Temporary OAuth state for social account connection",
|
|
1010
|
-
"filePath": "
|
|
1010
|
+
"filePath": "src/oauth-state.ts",
|
|
1011
1011
|
"packageName": "@happyvertical/smrt-social",
|
|
1012
1012
|
"fields": {
|
|
1013
1013
|
"created_at": {
|
|
1014
1014
|
"type": "datetime",
|
|
1015
|
+
"_meta": {
|
|
1016
|
+
"__statedOptions": []
|
|
1017
|
+
},
|
|
1015
1018
|
"required": false
|
|
1016
1019
|
},
|
|
1017
1020
|
"updated_at": {
|
|
1018
1021
|
"type": "datetime",
|
|
1022
|
+
"_meta": {
|
|
1023
|
+
"__statedOptions": []
|
|
1024
|
+
},
|
|
1019
1025
|
"required": false
|
|
1020
1026
|
},
|
|
1021
1027
|
"tenantId": {
|
|
1022
1028
|
"type": "text",
|
|
1023
|
-
"required": false,
|
|
1024
1029
|
"_meta": {
|
|
1025
|
-
"sqlType": "UUID",
|
|
1026
|
-
"nullable": true,
|
|
1027
1030
|
"__tenancy": {
|
|
1028
1031
|
"isTenantIdField": true,
|
|
1029
1032
|
"autoFilter": true,
|
|
@@ -1033,11 +1036,27 @@
|
|
|
1033
1036
|
"mode": "optional",
|
|
1034
1037
|
"field": "tenantId",
|
|
1035
1038
|
"allowSuperAdminBypass": false
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1039
|
+
},
|
|
1040
|
+
"__statedOptions": [
|
|
1041
|
+
"sqlType",
|
|
1042
|
+
"nullable",
|
|
1043
|
+
"__tenancy",
|
|
1044
|
+
"required"
|
|
1045
|
+
],
|
|
1046
|
+
"sqlType": "UUID",
|
|
1047
|
+
"nullable": true,
|
|
1048
|
+
"required": false
|
|
1049
|
+
},
|
|
1050
|
+
"required": false
|
|
1038
1051
|
},
|
|
1039
1052
|
"platform": {
|
|
1040
1053
|
"type": "text",
|
|
1054
|
+
"_meta": {
|
|
1055
|
+
"__statedOptions": [
|
|
1056
|
+
"default",
|
|
1057
|
+
"enum"
|
|
1058
|
+
]
|
|
1059
|
+
},
|
|
1041
1060
|
"required": false,
|
|
1042
1061
|
"default": "youtube",
|
|
1043
1062
|
"enum": [
|
|
@@ -1050,34 +1069,63 @@
|
|
|
1050
1069
|
},
|
|
1051
1070
|
"state": {
|
|
1052
1071
|
"type": "text",
|
|
1072
|
+
"_meta": {
|
|
1073
|
+
"__statedOptions": [
|
|
1074
|
+
"default"
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1053
1077
|
"required": false,
|
|
1054
1078
|
"default": ""
|
|
1055
1079
|
},
|
|
1056
1080
|
"codeVerifier": {
|
|
1057
1081
|
"type": "text",
|
|
1082
|
+
"_meta": {
|
|
1083
|
+
"__statedOptions": []
|
|
1084
|
+
},
|
|
1058
1085
|
"required": false
|
|
1059
1086
|
},
|
|
1060
1087
|
"redirectUri": {
|
|
1061
1088
|
"type": "text",
|
|
1089
|
+
"_meta": {
|
|
1090
|
+
"__statedOptions": [
|
|
1091
|
+
"default"
|
|
1092
|
+
]
|
|
1093
|
+
},
|
|
1062
1094
|
"required": false,
|
|
1063
1095
|
"default": ""
|
|
1064
1096
|
},
|
|
1065
1097
|
"scopes": {
|
|
1066
1098
|
"type": "json",
|
|
1099
|
+
"_meta": {
|
|
1100
|
+
"__statedOptions": [
|
|
1101
|
+
"default"
|
|
1102
|
+
]
|
|
1103
|
+
},
|
|
1067
1104
|
"required": false,
|
|
1068
1105
|
"default": []
|
|
1069
1106
|
},
|
|
1070
1107
|
"expiresAt": {
|
|
1071
1108
|
"type": "datetime",
|
|
1109
|
+
"_meta": {
|
|
1110
|
+
"__statedOptions": []
|
|
1111
|
+
},
|
|
1072
1112
|
"required": false
|
|
1073
1113
|
},
|
|
1074
1114
|
"createdByUserId": {
|
|
1075
1115
|
"type": "crossPackageRef",
|
|
1116
|
+
"_meta": {
|
|
1117
|
+
"__statedOptions": [
|
|
1118
|
+
"related"
|
|
1119
|
+
]
|
|
1120
|
+
},
|
|
1076
1121
|
"required": false,
|
|
1077
1122
|
"related": "@happyvertical/smrt-users:User"
|
|
1078
1123
|
},
|
|
1079
1124
|
"returnTo": {
|
|
1080
1125
|
"type": "text",
|
|
1126
|
+
"_meta": {
|
|
1127
|
+
"__statedOptions": []
|
|
1128
|
+
},
|
|
1081
1129
|
"required": false
|
|
1082
1130
|
}
|
|
1083
1131
|
},
|
|
@@ -1282,23 +1330,26 @@
|
|
|
1282
1330
|
"qualifiedName": "@happyvertical/smrt-social:SocialAccount",
|
|
1283
1331
|
"collection": "socialaccounts",
|
|
1284
1332
|
"description": "Connected social media account for publishing",
|
|
1285
|
-
"filePath": "
|
|
1333
|
+
"filePath": "src/social-account.ts",
|
|
1286
1334
|
"packageName": "@happyvertical/smrt-social",
|
|
1287
1335
|
"fields": {
|
|
1288
1336
|
"created_at": {
|
|
1289
1337
|
"type": "datetime",
|
|
1338
|
+
"_meta": {
|
|
1339
|
+
"__statedOptions": []
|
|
1340
|
+
},
|
|
1290
1341
|
"required": false
|
|
1291
1342
|
},
|
|
1292
1343
|
"updated_at": {
|
|
1293
1344
|
"type": "datetime",
|
|
1345
|
+
"_meta": {
|
|
1346
|
+
"__statedOptions": []
|
|
1347
|
+
},
|
|
1294
1348
|
"required": false
|
|
1295
1349
|
},
|
|
1296
1350
|
"tenantId": {
|
|
1297
1351
|
"type": "text",
|
|
1298
|
-
"required": false,
|
|
1299
1352
|
"_meta": {
|
|
1300
|
-
"sqlType": "UUID",
|
|
1301
|
-
"nullable": true,
|
|
1302
1353
|
"__tenancy": {
|
|
1303
1354
|
"isTenantIdField": true,
|
|
1304
1355
|
"autoFilter": true,
|
|
@@ -1308,26 +1359,45 @@
|
|
|
1308
1359
|
"mode": "optional",
|
|
1309
1360
|
"field": "tenantId",
|
|
1310
1361
|
"allowSuperAdminBypass": false
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1362
|
+
},
|
|
1363
|
+
"__statedOptions": [
|
|
1364
|
+
"sqlType",
|
|
1365
|
+
"nullable",
|
|
1366
|
+
"__tenancy",
|
|
1367
|
+
"required"
|
|
1368
|
+
],
|
|
1369
|
+
"sqlType": "UUID",
|
|
1370
|
+
"nullable": true,
|
|
1371
|
+
"required": false
|
|
1372
|
+
},
|
|
1373
|
+
"required": false
|
|
1313
1374
|
},
|
|
1314
1375
|
"name": {
|
|
1315
1376
|
"type": "text",
|
|
1316
|
-
"required": false,
|
|
1317
|
-
"default": "",
|
|
1318
|
-
"description": "A name you will recognise this account by.",
|
|
1319
1377
|
"_meta": {
|
|
1378
|
+
"__statedOptions": [
|
|
1379
|
+
"description",
|
|
1380
|
+
"default"
|
|
1381
|
+
],
|
|
1320
1382
|
"description": "A name you will recognise this account by."
|
|
1321
|
-
}
|
|
1383
|
+
},
|
|
1384
|
+
"required": false,
|
|
1385
|
+
"default": "",
|
|
1386
|
+
"description": "A name you will recognise this account by."
|
|
1322
1387
|
},
|
|
1323
1388
|
"platform": {
|
|
1324
1389
|
"type": "text",
|
|
1325
|
-
"required": false,
|
|
1326
|
-
"default": "youtube",
|
|
1327
|
-
"description": "Which platform it is on: YouTube, X, Threads or Bluesky.",
|
|
1328
1390
|
"_meta": {
|
|
1391
|
+
"__statedOptions": [
|
|
1392
|
+
"description",
|
|
1393
|
+
"default",
|
|
1394
|
+
"enum"
|
|
1395
|
+
],
|
|
1329
1396
|
"description": "Which platform it is on: YouTube, X, Threads or Bluesky."
|
|
1330
1397
|
},
|
|
1398
|
+
"required": false,
|
|
1399
|
+
"default": "youtube",
|
|
1400
|
+
"description": "Which platform it is on: YouTube, X, Threads or Bluesky.",
|
|
1331
1401
|
"enum": [
|
|
1332
1402
|
"youtube",
|
|
1333
1403
|
"threads",
|
|
@@ -1338,84 +1408,134 @@
|
|
|
1338
1408
|
},
|
|
1339
1409
|
"platformUserId": {
|
|
1340
1410
|
"type": "text",
|
|
1411
|
+
"_meta": {
|
|
1412
|
+
"__statedOptions": []
|
|
1413
|
+
},
|
|
1341
1414
|
"required": false
|
|
1342
1415
|
},
|
|
1343
1416
|
"platformUsername": {
|
|
1344
1417
|
"type": "text",
|
|
1345
|
-
"required": false,
|
|
1346
|
-
"description": "The username or handle you post under.",
|
|
1347
1418
|
"_meta": {
|
|
1419
|
+
"__statedOptions": [
|
|
1420
|
+
"description"
|
|
1421
|
+
],
|
|
1348
1422
|
"description": "The username or handle you post under."
|
|
1349
|
-
}
|
|
1423
|
+
},
|
|
1424
|
+
"required": false,
|
|
1425
|
+
"description": "The username or handle you post under."
|
|
1350
1426
|
},
|
|
1351
1427
|
"platformUrl": {
|
|
1352
1428
|
"type": "text",
|
|
1353
|
-
"required": false,
|
|
1354
|
-
"description": "The web address of your profile on the platform.",
|
|
1355
1429
|
"_meta": {
|
|
1430
|
+
"__statedOptions": [
|
|
1431
|
+
"description"
|
|
1432
|
+
],
|
|
1356
1433
|
"description": "The web address of your profile on the platform."
|
|
1357
|
-
}
|
|
1434
|
+
},
|
|
1435
|
+
"required": false,
|
|
1436
|
+
"description": "The web address of your profile on the platform."
|
|
1358
1437
|
},
|
|
1359
1438
|
"accessToken": {
|
|
1360
1439
|
"type": "text",
|
|
1440
|
+
"_meta": {
|
|
1441
|
+
"__statedOptions": []
|
|
1442
|
+
},
|
|
1361
1443
|
"required": false
|
|
1362
1444
|
},
|
|
1363
1445
|
"refreshToken": {
|
|
1364
1446
|
"type": "text",
|
|
1447
|
+
"_meta": {
|
|
1448
|
+
"__statedOptions": []
|
|
1449
|
+
},
|
|
1365
1450
|
"required": false
|
|
1366
1451
|
},
|
|
1367
1452
|
"credentialSecretId": {
|
|
1368
1453
|
"type": "text",
|
|
1454
|
+
"_meta": {
|
|
1455
|
+
"__statedOptions": []
|
|
1456
|
+
},
|
|
1369
1457
|
"required": false
|
|
1370
1458
|
},
|
|
1371
1459
|
"accessTokenSecretName": {
|
|
1372
1460
|
"type": "text",
|
|
1461
|
+
"_meta": {
|
|
1462
|
+
"__statedOptions": []
|
|
1463
|
+
},
|
|
1373
1464
|
"required": false
|
|
1374
1465
|
},
|
|
1375
1466
|
"refreshTokenSecretName": {
|
|
1376
1467
|
"type": "text",
|
|
1468
|
+
"_meta": {
|
|
1469
|
+
"__statedOptions": []
|
|
1470
|
+
},
|
|
1377
1471
|
"required": false
|
|
1378
1472
|
},
|
|
1379
1473
|
"tokenExpiresAt": {
|
|
1380
1474
|
"type": "datetime",
|
|
1475
|
+
"_meta": {
|
|
1476
|
+
"__statedOptions": []
|
|
1477
|
+
},
|
|
1381
1478
|
"required": false
|
|
1382
1479
|
},
|
|
1383
1480
|
"isActive": {
|
|
1384
1481
|
"type": "boolean",
|
|
1385
|
-
"required": false,
|
|
1386
|
-
"default": true,
|
|
1387
|
-
"description": "Whether posts can still go out from this account.",
|
|
1388
1482
|
"_meta": {
|
|
1483
|
+
"__statedOptions": [
|
|
1484
|
+
"description",
|
|
1485
|
+
"default"
|
|
1486
|
+
],
|
|
1389
1487
|
"description": "Whether posts can still go out from this account."
|
|
1390
|
-
}
|
|
1488
|
+
},
|
|
1489
|
+
"required": false,
|
|
1490
|
+
"default": true,
|
|
1491
|
+
"description": "Whether posts can still go out from this account."
|
|
1391
1492
|
},
|
|
1392
1493
|
"defaultHashtags": {
|
|
1393
1494
|
"type": "json",
|
|
1394
|
-
"required": false,
|
|
1395
|
-
"default": [],
|
|
1396
|
-
"description": "Hashtags added to every post from this account.",
|
|
1397
1495
|
"_meta": {
|
|
1496
|
+
"__statedOptions": [
|
|
1497
|
+
"description",
|
|
1498
|
+
"default"
|
|
1499
|
+
],
|
|
1398
1500
|
"description": "Hashtags added to every post from this account."
|
|
1399
|
-
}
|
|
1501
|
+
},
|
|
1502
|
+
"required": false,
|
|
1503
|
+
"default": [],
|
|
1504
|
+
"description": "Hashtags added to every post from this account."
|
|
1400
1505
|
},
|
|
1401
1506
|
"scopes": {
|
|
1402
1507
|
"type": "json",
|
|
1508
|
+
"_meta": {
|
|
1509
|
+
"__statedOptions": [
|
|
1510
|
+
"default"
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1403
1513
|
"required": false,
|
|
1404
1514
|
"default": []
|
|
1405
1515
|
},
|
|
1406
1516
|
"missingPermissions": {
|
|
1407
1517
|
"type": "json",
|
|
1518
|
+
"_meta": {
|
|
1519
|
+
"__statedOptions": [
|
|
1520
|
+
"default"
|
|
1521
|
+
]
|
|
1522
|
+
},
|
|
1408
1523
|
"required": false,
|
|
1409
1524
|
"default": []
|
|
1410
1525
|
},
|
|
1411
1526
|
"linkBehavior": {
|
|
1412
1527
|
"type": "text",
|
|
1413
|
-
"required": false,
|
|
1414
|
-
"default": "description",
|
|
1415
|
-
"description": "Where a shared link goes: in the text, as a reply, or left out.",
|
|
1416
1528
|
"_meta": {
|
|
1529
|
+
"__statedOptions": [
|
|
1530
|
+
"description",
|
|
1531
|
+
"default",
|
|
1532
|
+
"enum"
|
|
1533
|
+
],
|
|
1417
1534
|
"description": "Where a shared link goes: in the text, as a reply, or left out."
|
|
1418
1535
|
},
|
|
1536
|
+
"required": false,
|
|
1537
|
+
"default": "description",
|
|
1538
|
+
"description": "Where a shared link goes: in the text, as a reply, or left out.",
|
|
1419
1539
|
"enum": [
|
|
1420
1540
|
"description",
|
|
1421
1541
|
"inline",
|
|
@@ -1426,6 +1546,12 @@
|
|
|
1426
1546
|
},
|
|
1427
1547
|
"publishMode": {
|
|
1428
1548
|
"type": "text",
|
|
1549
|
+
"_meta": {
|
|
1550
|
+
"__statedOptions": [
|
|
1551
|
+
"default",
|
|
1552
|
+
"enum"
|
|
1553
|
+
]
|
|
1554
|
+
},
|
|
1429
1555
|
"required": false,
|
|
1430
1556
|
"default": "dry_run",
|
|
1431
1557
|
"enum": [
|
|
@@ -1437,17 +1563,27 @@
|
|
|
1437
1563
|
},
|
|
1438
1564
|
"publicPublishingAllowed": {
|
|
1439
1565
|
"type": "boolean",
|
|
1566
|
+
"_meta": {
|
|
1567
|
+
"__statedOptions": [
|
|
1568
|
+
"default"
|
|
1569
|
+
]
|
|
1570
|
+
},
|
|
1440
1571
|
"required": false,
|
|
1441
1572
|
"default": false
|
|
1442
1573
|
},
|
|
1443
1574
|
"status": {
|
|
1444
1575
|
"type": "text",
|
|
1445
|
-
"required": false,
|
|
1446
|
-
"default": "connected",
|
|
1447
|
-
"description": "Whether the account is connected, or needs signing in again.",
|
|
1448
1576
|
"_meta": {
|
|
1577
|
+
"__statedOptions": [
|
|
1578
|
+
"description",
|
|
1579
|
+
"default",
|
|
1580
|
+
"enum"
|
|
1581
|
+
],
|
|
1449
1582
|
"description": "Whether the account is connected, or needs signing in again."
|
|
1450
1583
|
},
|
|
1584
|
+
"required": false,
|
|
1585
|
+
"default": "connected",
|
|
1586
|
+
"description": "Whether the account is connected, or needs signing in again.",
|
|
1451
1587
|
"enum": [
|
|
1452
1588
|
"connected",
|
|
1453
1589
|
"disconnected",
|
|
@@ -1458,6 +1594,9 @@
|
|
|
1458
1594
|
},
|
|
1459
1595
|
"errorMessage": {
|
|
1460
1596
|
"type": "text",
|
|
1597
|
+
"_meta": {
|
|
1598
|
+
"__statedOptions": []
|
|
1599
|
+
},
|
|
1461
1600
|
"required": false
|
|
1462
1601
|
}
|
|
1463
1602
|
},
|
|
@@ -1709,23 +1848,26 @@
|
|
|
1709
1848
|
"className": "SocialPostAnalyticsSnapshot",
|
|
1710
1849
|
"qualifiedName": "@happyvertical/smrt-social:SocialPostAnalyticsSnapshot",
|
|
1711
1850
|
"collection": "socialpostanalyticssnapshots",
|
|
1712
|
-
"filePath": "
|
|
1851
|
+
"filePath": "src/social-post-analytics-snapshot.ts",
|
|
1713
1852
|
"packageName": "@happyvertical/smrt-social",
|
|
1714
1853
|
"fields": {
|
|
1715
1854
|
"created_at": {
|
|
1716
1855
|
"type": "datetime",
|
|
1856
|
+
"_meta": {
|
|
1857
|
+
"__statedOptions": []
|
|
1858
|
+
},
|
|
1717
1859
|
"required": false
|
|
1718
1860
|
},
|
|
1719
1861
|
"updated_at": {
|
|
1720
1862
|
"type": "datetime",
|
|
1863
|
+
"_meta": {
|
|
1864
|
+
"__statedOptions": []
|
|
1865
|
+
},
|
|
1721
1866
|
"required": false
|
|
1722
1867
|
},
|
|
1723
1868
|
"tenantId": {
|
|
1724
1869
|
"type": "text",
|
|
1725
|
-
"required": false,
|
|
1726
1870
|
"_meta": {
|
|
1727
|
-
"sqlType": "UUID",
|
|
1728
|
-
"nullable": true,
|
|
1729
1871
|
"__tenancy": {
|
|
1730
1872
|
"isTenantIdField": true,
|
|
1731
1873
|
"autoFilter": true,
|
|
@@ -1735,26 +1877,43 @@
|
|
|
1735
1877
|
"mode": "optional",
|
|
1736
1878
|
"field": "tenantId",
|
|
1737
1879
|
"allowSuperAdminBypass": false
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1880
|
+
},
|
|
1881
|
+
"__statedOptions": [
|
|
1882
|
+
"sqlType",
|
|
1883
|
+
"nullable",
|
|
1884
|
+
"__tenancy",
|
|
1885
|
+
"required"
|
|
1886
|
+
],
|
|
1887
|
+
"sqlType": "UUID",
|
|
1888
|
+
"nullable": true,
|
|
1889
|
+
"required": false
|
|
1890
|
+
},
|
|
1891
|
+
"required": false
|
|
1740
1892
|
},
|
|
1741
1893
|
"socialPostId": {
|
|
1742
1894
|
"type": "foreignKey",
|
|
1743
|
-
"required": false,
|
|
1744
|
-
"related": "SocialPost",
|
|
1745
|
-
"description": "The post these numbers are for.",
|
|
1746
1895
|
"_meta": {
|
|
1896
|
+
"__statedOptions": [
|
|
1897
|
+
"description",
|
|
1898
|
+
"related"
|
|
1899
|
+
],
|
|
1747
1900
|
"description": "The post these numbers are for."
|
|
1748
|
-
}
|
|
1901
|
+
},
|
|
1902
|
+
"required": false,
|
|
1903
|
+
"related": "SocialPost",
|
|
1904
|
+
"description": "The post these numbers are for."
|
|
1749
1905
|
},
|
|
1750
1906
|
"platform": {
|
|
1751
1907
|
"type": "text",
|
|
1752
|
-
"required": true,
|
|
1753
|
-
"description": "The platform that reported the numbers.",
|
|
1754
1908
|
"_meta": {
|
|
1755
|
-
"
|
|
1909
|
+
"__statedOptions": [
|
|
1910
|
+
"description",
|
|
1911
|
+
"enum"
|
|
1912
|
+
],
|
|
1756
1913
|
"description": "The platform that reported the numbers."
|
|
1757
1914
|
},
|
|
1915
|
+
"required": false,
|
|
1916
|
+
"description": "The platform that reported the numbers.",
|
|
1758
1917
|
"enum": [
|
|
1759
1918
|
"youtube",
|
|
1760
1919
|
"threads",
|
|
@@ -1765,26 +1924,38 @@
|
|
|
1765
1924
|
},
|
|
1766
1925
|
"analytics": {
|
|
1767
1926
|
"type": "json",
|
|
1768
|
-
"required": false,
|
|
1769
|
-
"description": "The views, likes, comments, shares and clicks the platform reported.",
|
|
1770
1927
|
"_meta": {
|
|
1928
|
+
"__typeUnresolved": true,
|
|
1929
|
+
"__statedOptions": [
|
|
1930
|
+
"description"
|
|
1931
|
+
],
|
|
1771
1932
|
"description": "The views, likes, comments, shares and clicks the platform reported."
|
|
1772
|
-
}
|
|
1933
|
+
},
|
|
1934
|
+
"required": false,
|
|
1935
|
+
"description": "The views, likes, comments, shares and clicks the platform reported."
|
|
1773
1936
|
},
|
|
1774
1937
|
"raw": {
|
|
1775
1938
|
"type": "json",
|
|
1776
|
-
"required": false,
|
|
1777
1939
|
"_meta": {
|
|
1778
|
-
"
|
|
1779
|
-
|
|
1940
|
+
"__statedOptions": [
|
|
1941
|
+
"nullable",
|
|
1942
|
+
"required"
|
|
1943
|
+
],
|
|
1944
|
+
"nullable": true,
|
|
1945
|
+
"required": false
|
|
1946
|
+
},
|
|
1947
|
+
"required": false
|
|
1780
1948
|
},
|
|
1781
1949
|
"capturedAt": {
|
|
1782
1950
|
"type": "datetime",
|
|
1783
|
-
"required": false,
|
|
1784
|
-
"description": "When these numbers were taken from the platform.",
|
|
1785
1951
|
"_meta": {
|
|
1952
|
+
"__statedOptions": [
|
|
1953
|
+
"description"
|
|
1954
|
+
],
|
|
1786
1955
|
"description": "When these numbers were taken from the platform."
|
|
1787
|
-
}
|
|
1956
|
+
},
|
|
1957
|
+
"required": false,
|
|
1958
|
+
"description": "When these numbers were taken from the platform."
|
|
1788
1959
|
}
|
|
1789
1960
|
},
|
|
1790
1961
|
"methods": {},
|
|
@@ -1818,13 +1989,6 @@
|
|
|
1818
1989
|
"extends": "SmrtObject",
|
|
1819
1990
|
"exportName": "SocialPostAnalyticsSnapshot",
|
|
1820
1991
|
"collectionExportName": "SocialPostAnalyticsSnapshotCollection",
|
|
1821
|
-
"validationRules": [
|
|
1822
|
-
{
|
|
1823
|
-
"field": "platform",
|
|
1824
|
-
"rule": "required",
|
|
1825
|
-
"fieldType": "text"
|
|
1826
|
-
}
|
|
1827
|
-
],
|
|
1828
1992
|
"schema": {
|
|
1829
1993
|
"tableName": "social_post_analytics_snapshots",
|
|
1830
1994
|
"ddl": "CREATE TABLE IF NOT EXISTS \"social_post_analytics_snapshots\" (\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 \"tenant_id\" UUID,\n \"social_post_id\" UUID,\n \"platform\" TEXT,\n \"analytics\" JSON,\n \"raw\" JSON,\n \"captured_at\" TIMESTAMP\n);",
|
|
@@ -1943,23 +2107,26 @@
|
|
|
1943
2107
|
"qualifiedName": "@happyvertical/smrt-social:SocialPost",
|
|
1944
2108
|
"collection": "socialposts",
|
|
1945
2109
|
"description": "Social media post for multi-platform publishing",
|
|
1946
|
-
"filePath": "
|
|
2110
|
+
"filePath": "src/social-post.ts",
|
|
1947
2111
|
"packageName": "@happyvertical/smrt-social",
|
|
1948
2112
|
"fields": {
|
|
1949
2113
|
"created_at": {
|
|
1950
2114
|
"type": "datetime",
|
|
2115
|
+
"_meta": {
|
|
2116
|
+
"__statedOptions": []
|
|
2117
|
+
},
|
|
1951
2118
|
"required": false
|
|
1952
2119
|
},
|
|
1953
2120
|
"updated_at": {
|
|
1954
2121
|
"type": "datetime",
|
|
2122
|
+
"_meta": {
|
|
2123
|
+
"__statedOptions": []
|
|
2124
|
+
},
|
|
1955
2125
|
"required": false
|
|
1956
2126
|
},
|
|
1957
2127
|
"tenantId": {
|
|
1958
2128
|
"type": "text",
|
|
1959
|
-
"required": false,
|
|
1960
2129
|
"_meta": {
|
|
1961
|
-
"sqlType": "UUID",
|
|
1962
|
-
"nullable": true,
|
|
1963
2130
|
"__tenancy": {
|
|
1964
2131
|
"isTenantIdField": true,
|
|
1965
2132
|
"autoFilter": true,
|
|
@@ -1969,41 +2136,75 @@
|
|
|
1969
2136
|
"mode": "optional",
|
|
1970
2137
|
"field": "tenantId",
|
|
1971
2138
|
"allowSuperAdminBypass": false
|
|
1972
|
-
}
|
|
1973
|
-
|
|
2139
|
+
},
|
|
2140
|
+
"__statedOptions": [
|
|
2141
|
+
"sqlType",
|
|
2142
|
+
"nullable",
|
|
2143
|
+
"__tenancy",
|
|
2144
|
+
"required"
|
|
2145
|
+
],
|
|
2146
|
+
"sqlType": "UUID",
|
|
2147
|
+
"nullable": true,
|
|
2148
|
+
"required": false
|
|
2149
|
+
},
|
|
2150
|
+
"required": false
|
|
1974
2151
|
},
|
|
1975
2152
|
"socialAccountId": {
|
|
1976
2153
|
"type": "foreignKey",
|
|
1977
|
-
"required": false,
|
|
1978
|
-
"related": "SocialAccount",
|
|
1979
|
-
"description": "The connected account this post goes out from.",
|
|
1980
2154
|
"_meta": {
|
|
2155
|
+
"__statedOptions": [
|
|
2156
|
+
"description",
|
|
2157
|
+
"related"
|
|
2158
|
+
],
|
|
1981
2159
|
"description": "The connected account this post goes out from."
|
|
1982
|
-
}
|
|
2160
|
+
},
|
|
2161
|
+
"required": false,
|
|
2162
|
+
"related": "SocialAccount",
|
|
2163
|
+
"description": "The connected account this post goes out from."
|
|
1983
2164
|
},
|
|
1984
2165
|
"createdByUserId": {
|
|
1985
2166
|
"type": "crossPackageRef",
|
|
2167
|
+
"_meta": {
|
|
2168
|
+
"__statedOptions": [
|
|
2169
|
+
"related"
|
|
2170
|
+
]
|
|
2171
|
+
},
|
|
1986
2172
|
"required": false,
|
|
1987
2173
|
"related": "@happyvertical/smrt-users:User"
|
|
1988
2174
|
},
|
|
1989
2175
|
"videoContentId": {
|
|
1990
2176
|
"type": "crossPackageRef",
|
|
2177
|
+
"_meta": {
|
|
2178
|
+
"__statedOptions": [
|
|
2179
|
+
"related"
|
|
2180
|
+
]
|
|
2181
|
+
},
|
|
1991
2182
|
"required": false,
|
|
1992
2183
|
"related": "@happyvertical/smrt-video:VideoShot"
|
|
1993
2184
|
},
|
|
1994
2185
|
"contentId": {
|
|
1995
2186
|
"type": "crossPackageRef",
|
|
2187
|
+
"_meta": {
|
|
2188
|
+
"__statedOptions": [
|
|
2189
|
+
"related"
|
|
2190
|
+
]
|
|
2191
|
+
},
|
|
1996
2192
|
"required": false,
|
|
1997
2193
|
"related": "@happyvertical/smrt-content:Content"
|
|
1998
2194
|
},
|
|
1999
2195
|
"postType": {
|
|
2000
2196
|
"type": "text",
|
|
2001
|
-
"required": false,
|
|
2002
|
-
"default": "text",
|
|
2003
|
-
"description": "What kind of post it is: text, link, image or video.",
|
|
2004
2197
|
"_meta": {
|
|
2198
|
+
"__statedOptions": [
|
|
2199
|
+
"description",
|
|
2200
|
+
"default",
|
|
2201
|
+
"enum"
|
|
2202
|
+
],
|
|
2005
2203
|
"description": "What kind of post it is: text, link, image or video."
|
|
2006
2204
|
},
|
|
2205
|
+
"required": false,
|
|
2206
|
+
"default": "text",
|
|
2207
|
+
"description": "What kind of post it is: text, link, image or video.",
|
|
2007
2208
|
"enum": [
|
|
2008
2209
|
"text",
|
|
2009
2210
|
"link",
|
|
@@ -2013,78 +2214,112 @@
|
|
|
2013
2214
|
},
|
|
2014
2215
|
"mediaUrl": {
|
|
2015
2216
|
"type": "text",
|
|
2217
|
+
"_meta": {
|
|
2218
|
+
"__statedOptions": []
|
|
2219
|
+
},
|
|
2016
2220
|
"required": false
|
|
2017
2221
|
},
|
|
2018
2222
|
"title": {
|
|
2019
2223
|
"type": "text",
|
|
2020
|
-
"required": false,
|
|
2021
|
-
"description": "A title, for platforms that show one.",
|
|
2022
2224
|
"_meta": {
|
|
2225
|
+
"__statedOptions": [
|
|
2226
|
+
"description"
|
|
2227
|
+
],
|
|
2023
2228
|
"description": "A title, for platforms that show one."
|
|
2024
|
-
}
|
|
2229
|
+
},
|
|
2230
|
+
"required": false,
|
|
2231
|
+
"description": "A title, for platforms that show one."
|
|
2025
2232
|
},
|
|
2026
2233
|
"description": {
|
|
2027
2234
|
"type": "text",
|
|
2028
|
-
"required": false,
|
|
2029
|
-
"default": "",
|
|
2030
|
-
"description": "The words of the post.",
|
|
2031
2235
|
"_meta": {
|
|
2236
|
+
"__statedOptions": [
|
|
2237
|
+
"description",
|
|
2238
|
+
"default"
|
|
2239
|
+
],
|
|
2032
2240
|
"description": "The words of the post."
|
|
2033
|
-
}
|
|
2241
|
+
},
|
|
2242
|
+
"required": false,
|
|
2243
|
+
"default": "",
|
|
2244
|
+
"description": "The words of the post."
|
|
2034
2245
|
},
|
|
2035
2246
|
"hashtags": {
|
|
2036
2247
|
"type": "json",
|
|
2037
|
-
"required": false,
|
|
2038
|
-
"default": [],
|
|
2039
|
-
"description": "Hashtags added to the end of the post.",
|
|
2040
2248
|
"_meta": {
|
|
2249
|
+
"__statedOptions": [
|
|
2250
|
+
"description",
|
|
2251
|
+
"default"
|
|
2252
|
+
],
|
|
2041
2253
|
"description": "Hashtags added to the end of the post."
|
|
2042
|
-
}
|
|
2254
|
+
},
|
|
2255
|
+
"required": false,
|
|
2256
|
+
"default": [],
|
|
2257
|
+
"description": "Hashtags added to the end of the post."
|
|
2043
2258
|
},
|
|
2044
2259
|
"linkUrl": {
|
|
2045
2260
|
"type": "text",
|
|
2046
|
-
"required": false,
|
|
2047
|
-
"description": "A web address to share with the post.",
|
|
2048
2261
|
"_meta": {
|
|
2262
|
+
"__statedOptions": [
|
|
2263
|
+
"description"
|
|
2264
|
+
],
|
|
2049
2265
|
"description": "A web address to share with the post."
|
|
2050
|
-
}
|
|
2266
|
+
},
|
|
2267
|
+
"required": false,
|
|
2268
|
+
"description": "A web address to share with the post."
|
|
2051
2269
|
},
|
|
2052
2270
|
"platformPostId": {
|
|
2053
2271
|
"type": "text",
|
|
2272
|
+
"_meta": {
|
|
2273
|
+
"__statedOptions": []
|
|
2274
|
+
},
|
|
2054
2275
|
"required": false
|
|
2055
2276
|
},
|
|
2056
2277
|
"platformUrl": {
|
|
2057
2278
|
"type": "text",
|
|
2058
|
-
"required": false,
|
|
2059
|
-
"description": "Where the post can be seen on the platform, once it is out.",
|
|
2060
2279
|
"_meta": {
|
|
2280
|
+
"__statedOptions": [
|
|
2281
|
+
"description"
|
|
2282
|
+
],
|
|
2061
2283
|
"description": "Where the post can be seen on the platform, once it is out."
|
|
2062
|
-
}
|
|
2284
|
+
},
|
|
2285
|
+
"required": false,
|
|
2286
|
+
"description": "Where the post can be seen on the platform, once it is out."
|
|
2063
2287
|
},
|
|
2064
2288
|
"scheduledAt": {
|
|
2065
2289
|
"type": "datetime",
|
|
2066
|
-
"required": false,
|
|
2067
|
-
"description": "The date and time you have in mind for putting the post out. Only a note of the plan: publishing is a separate step your application has to run.",
|
|
2068
2290
|
"_meta": {
|
|
2291
|
+
"__statedOptions": [
|
|
2292
|
+
"description"
|
|
2293
|
+
],
|
|
2069
2294
|
"description": "The date and time you have in mind for putting the post out. Only a note of the plan: publishing is a separate step your application has to run."
|
|
2070
|
-
}
|
|
2295
|
+
},
|
|
2296
|
+
"required": false,
|
|
2297
|
+
"description": "The date and time you have in mind for putting the post out. Only a note of the plan: publishing is a separate step your application has to run."
|
|
2071
2298
|
},
|
|
2072
2299
|
"publishedAt": {
|
|
2073
2300
|
"type": "datetime",
|
|
2074
|
-
"required": false,
|
|
2075
|
-
"description": "When the post actually went out.",
|
|
2076
2301
|
"_meta": {
|
|
2302
|
+
"__statedOptions": [
|
|
2303
|
+
"description"
|
|
2304
|
+
],
|
|
2077
2305
|
"description": "When the post actually went out."
|
|
2078
|
-
}
|
|
2306
|
+
},
|
|
2307
|
+
"required": false,
|
|
2308
|
+
"description": "When the post actually went out."
|
|
2079
2309
|
},
|
|
2080
2310
|
"status": {
|
|
2081
2311
|
"type": "text",
|
|
2082
|
-
"required": false,
|
|
2083
|
-
"default": "draft",
|
|
2084
|
-
"description": "Where the post stands: draft, waiting to go out, published or failed.",
|
|
2085
2312
|
"_meta": {
|
|
2313
|
+
"__statedOptions": [
|
|
2314
|
+
"description",
|
|
2315
|
+
"default",
|
|
2316
|
+
"enum"
|
|
2317
|
+
],
|
|
2086
2318
|
"description": "Where the post stands: draft, waiting to go out, published or failed."
|
|
2087
2319
|
},
|
|
2320
|
+
"required": false,
|
|
2321
|
+
"default": "draft",
|
|
2322
|
+
"description": "Where the post stands: draft, waiting to go out, published or failed.",
|
|
2088
2323
|
"enum": [
|
|
2089
2324
|
"draft",
|
|
2090
2325
|
"pending_approval",
|
|
@@ -2100,14 +2335,24 @@
|
|
|
2100
2335
|
},
|
|
2101
2336
|
"errorMessage": {
|
|
2102
2337
|
"type": "text",
|
|
2338
|
+
"_meta": {
|
|
2339
|
+
"__statedOptions": []
|
|
2340
|
+
},
|
|
2103
2341
|
"required": false
|
|
2104
2342
|
},
|
|
2105
2343
|
"analytics": {
|
|
2106
2344
|
"type": "json",
|
|
2345
|
+
"_meta": {
|
|
2346
|
+
"__typeUnresolved": true,
|
|
2347
|
+
"__statedOptions": []
|
|
2348
|
+
},
|
|
2107
2349
|
"required": false
|
|
2108
2350
|
},
|
|
2109
2351
|
"analyticsLastSyncedAt": {
|
|
2110
2352
|
"type": "datetime",
|
|
2353
|
+
"_meta": {
|
|
2354
|
+
"__statedOptions": []
|
|
2355
|
+
},
|
|
2111
2356
|
"required": false
|
|
2112
2357
|
}
|
|
2113
2358
|
},
|
|
@@ -2623,5 +2868,6 @@
|
|
|
2623
2868
|
"@happyvertical/smrt-users"
|
|
2624
2869
|
]
|
|
2625
2870
|
},
|
|
2871
|
+
"schemaFingerprint": "6fb4a6678ba9c39c03d152cf8548fca5b1c0d5d3f9507f6e11c2371ac1f15b3a",
|
|
2626
2872
|
"stampsConstructors": true
|
|
2627
2873
|
}
|