@happyvertical/smrt-approvals 0.57.36 → 0.57.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +220 -30
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +306 -27
- package/dist/models/ApprovalEvent.d.ts.map +1 -1
- package/dist/models/ApprovalPolicy.d.ts.map +1 -1
- package/dist/models/ApprovalRequest.d.ts.map +1 -1
- package/dist/recipes.d.ts +193 -0
- package/dist/recipes.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +284 -32
- package/package.json +8 -6
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-approvals",
|
|
5
|
-
"packageVersion": "0.57.
|
|
5
|
+
"packageVersion": "0.57.37",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-approvals:ApprovalEventCollection": {
|
|
8
8
|
"name": "approvaleventcollection",
|
|
@@ -528,7 +528,9 @@
|
|
|
528
528
|
"type": "foreignKey",
|
|
529
529
|
"required": true,
|
|
530
530
|
"related": "ApprovalRequest",
|
|
531
|
+
"description": "The request this entry belongs to.",
|
|
531
532
|
"_meta": {
|
|
533
|
+
"description": "The request this entry belongs to.",
|
|
532
534
|
"required": true,
|
|
533
535
|
"constraint": {
|
|
534
536
|
"engines": [
|
|
@@ -543,26 +545,32 @@
|
|
|
543
545
|
"type": {
|
|
544
546
|
"type": "text",
|
|
545
547
|
"required": true,
|
|
548
|
+
"description": "What happened: created, approved, rejected, changes requested, cancelled, expired or used.",
|
|
546
549
|
"_meta": {
|
|
547
550
|
"required": true,
|
|
548
|
-
"readonly": true
|
|
551
|
+
"readonly": true,
|
|
552
|
+
"description": "What happened: created, approved, rejected, changes requested, cancelled, expired or used."
|
|
549
553
|
},
|
|
550
554
|
"readonly": true
|
|
551
555
|
},
|
|
552
556
|
"actorId": {
|
|
553
557
|
"type": "text",
|
|
554
558
|
"required": true,
|
|
559
|
+
"description": "Who did it.",
|
|
555
560
|
"_meta": {
|
|
556
561
|
"required": true,
|
|
557
|
-
"readonly": true
|
|
562
|
+
"readonly": true,
|
|
563
|
+
"description": "Who did it."
|
|
558
564
|
},
|
|
559
565
|
"readonly": true
|
|
560
566
|
},
|
|
561
567
|
"actorType": {
|
|
562
568
|
"type": "text",
|
|
563
569
|
"required": false,
|
|
570
|
+
"description": "Whether a person, an assistant or an automated process did it.",
|
|
564
571
|
"_meta": {
|
|
565
|
-
"readonly": true
|
|
572
|
+
"readonly": true,
|
|
573
|
+
"description": "Whether a person, an assistant or an automated process did it."
|
|
566
574
|
},
|
|
567
575
|
"enum": [
|
|
568
576
|
"human",
|
|
@@ -574,8 +582,10 @@
|
|
|
574
582
|
"reason": {
|
|
575
583
|
"type": "text",
|
|
576
584
|
"required": false,
|
|
585
|
+
"description": "The reason given, for example why a request was rejected or cancelled.",
|
|
577
586
|
"_meta": {
|
|
578
|
-
"readonly": true
|
|
587
|
+
"readonly": true,
|
|
588
|
+
"description": "The reason given, for example why a request was rejected or cancelled."
|
|
579
589
|
},
|
|
580
590
|
"readonly": true
|
|
581
591
|
},
|
|
@@ -607,8 +617,10 @@
|
|
|
607
617
|
"occurredAt": {
|
|
608
618
|
"type": "datetime",
|
|
609
619
|
"required": false,
|
|
620
|
+
"description": "When it happened.",
|
|
610
621
|
"_meta": {
|
|
611
|
-
"readonly": true
|
|
622
|
+
"readonly": true,
|
|
623
|
+
"description": "When it happened."
|
|
612
624
|
},
|
|
613
625
|
"readonly": true
|
|
614
626
|
},
|
|
@@ -616,9 +628,11 @@
|
|
|
616
628
|
"type": "boolean",
|
|
617
629
|
"required": false,
|
|
618
630
|
"default": false,
|
|
631
|
+
"description": "Whether the person who asked also decided, where that is allowed.",
|
|
619
632
|
"_meta": {
|
|
620
633
|
"readonly": true,
|
|
621
|
-
"default": false
|
|
634
|
+
"default": false,
|
|
635
|
+
"description": "Whether the person who asked also decided, where that is allowed."
|
|
622
636
|
},
|
|
623
637
|
"readonly": true
|
|
624
638
|
},
|
|
@@ -898,29 +912,43 @@
|
|
|
898
912
|
"kind": {
|
|
899
913
|
"type": "text",
|
|
900
914
|
"required": true,
|
|
915
|
+
"description": "The sort of approval these rules apply to.",
|
|
901
916
|
"_meta": {
|
|
902
|
-
"required": true
|
|
917
|
+
"required": true,
|
|
918
|
+
"description": "The sort of approval these rules apply to."
|
|
903
919
|
}
|
|
904
920
|
},
|
|
905
921
|
"requiredApprovals": {
|
|
906
922
|
"type": "integer",
|
|
907
923
|
"required": false,
|
|
908
|
-
"
|
|
924
|
+
"description": "How many different people must agree. Zero keeps the usual number.",
|
|
925
|
+
"_meta": {
|
|
926
|
+
"description": "How many different people must agree. Zero keeps the usual number."
|
|
927
|
+
}
|
|
909
928
|
},
|
|
910
929
|
"ttlMs": {
|
|
911
930
|
"type": "integer",
|
|
912
931
|
"required": false,
|
|
913
|
-
"
|
|
932
|
+
"description": "How long a request stays open, in milliseconds. Zero keeps the usual time.",
|
|
933
|
+
"_meta": {
|
|
934
|
+
"description": "How long a request stays open, in milliseconds. Zero keeps the usual time."
|
|
935
|
+
}
|
|
914
936
|
},
|
|
915
937
|
"requiredPermission": {
|
|
916
938
|
"type": "text",
|
|
917
939
|
"required": false,
|
|
918
|
-
"
|
|
940
|
+
"description": "An extra permission a decider must hold. Leave empty for none.",
|
|
941
|
+
"_meta": {
|
|
942
|
+
"description": "An extra permission a decider must hold. Leave empty for none."
|
|
943
|
+
}
|
|
919
944
|
},
|
|
920
945
|
"updatedBy": {
|
|
921
946
|
"type": "text",
|
|
922
947
|
"required": false,
|
|
923
|
-
"
|
|
948
|
+
"description": "Who last changed these rules.",
|
|
949
|
+
"_meta": {
|
|
950
|
+
"description": "Who last changed these rules."
|
|
951
|
+
}
|
|
924
952
|
}
|
|
925
953
|
},
|
|
926
954
|
"methods": {
|
|
@@ -1097,62 +1125,76 @@
|
|
|
1097
1125
|
"kind": {
|
|
1098
1126
|
"type": "text",
|
|
1099
1127
|
"required": true,
|
|
1128
|
+
"description": "What sort of approval this is, such as publishing a post.",
|
|
1100
1129
|
"_meta": {
|
|
1101
1130
|
"required": true,
|
|
1102
|
-
"readonly": true
|
|
1131
|
+
"readonly": true,
|
|
1132
|
+
"description": "What sort of approval this is, such as publishing a post."
|
|
1103
1133
|
},
|
|
1104
1134
|
"readonly": true
|
|
1105
1135
|
},
|
|
1106
1136
|
"subjectType": {
|
|
1107
1137
|
"type": "text",
|
|
1108
1138
|
"required": true,
|
|
1139
|
+
"description": "What kind of thing the request is about.",
|
|
1109
1140
|
"_meta": {
|
|
1110
1141
|
"required": true,
|
|
1111
|
-
"readonly": true
|
|
1142
|
+
"readonly": true,
|
|
1143
|
+
"description": "What kind of thing the request is about."
|
|
1112
1144
|
},
|
|
1113
1145
|
"readonly": true
|
|
1114
1146
|
},
|
|
1115
1147
|
"subjectId": {
|
|
1116
1148
|
"type": "text",
|
|
1117
1149
|
"required": true,
|
|
1150
|
+
"description": "Which thing the request is about.",
|
|
1118
1151
|
"_meta": {
|
|
1119
1152
|
"required": true,
|
|
1120
|
-
"readonly": true
|
|
1153
|
+
"readonly": true,
|
|
1154
|
+
"description": "Which thing the request is about."
|
|
1121
1155
|
},
|
|
1122
1156
|
"readonly": true
|
|
1123
1157
|
},
|
|
1124
1158
|
"subjectRevisionHash": {
|
|
1125
1159
|
"type": "text",
|
|
1126
1160
|
"required": true,
|
|
1161
|
+
"description": "A fingerprint of the exact version that was put up for approval. If the thing changes, the approval no longer applies.",
|
|
1127
1162
|
"_meta": {
|
|
1128
1163
|
"required": true,
|
|
1129
|
-
"readonly": true
|
|
1164
|
+
"readonly": true,
|
|
1165
|
+
"description": "A fingerprint of the exact version that was put up for approval. If the thing changes, the approval no longer applies."
|
|
1130
1166
|
},
|
|
1131
1167
|
"readonly": true
|
|
1132
1168
|
},
|
|
1133
1169
|
"requestKey": {
|
|
1134
1170
|
"type": "text",
|
|
1135
1171
|
"required": true,
|
|
1172
|
+
"description": "The reference the request is filed under, so asking twice does not open it twice.",
|
|
1136
1173
|
"_meta": {
|
|
1137
1174
|
"required": true,
|
|
1138
|
-
"readonly": true
|
|
1175
|
+
"readonly": true,
|
|
1176
|
+
"description": "The reference the request is filed under, so asking twice does not open it twice."
|
|
1139
1177
|
},
|
|
1140
1178
|
"readonly": true
|
|
1141
1179
|
},
|
|
1142
1180
|
"requestedBy": {
|
|
1143
1181
|
"type": "text",
|
|
1144
1182
|
"required": true,
|
|
1183
|
+
"description": "Who asked for the approval.",
|
|
1145
1184
|
"_meta": {
|
|
1146
1185
|
"required": true,
|
|
1147
|
-
"readonly": true
|
|
1186
|
+
"readonly": true,
|
|
1187
|
+
"description": "Who asked for the approval."
|
|
1148
1188
|
},
|
|
1149
1189
|
"readonly": true
|
|
1150
1190
|
},
|
|
1151
1191
|
"requestedByType": {
|
|
1152
1192
|
"type": "text",
|
|
1153
1193
|
"required": false,
|
|
1194
|
+
"description": "Whether a person, an assistant or an automated process asked.",
|
|
1154
1195
|
"_meta": {
|
|
1155
|
-
"readonly": true
|
|
1196
|
+
"readonly": true,
|
|
1197
|
+
"description": "Whether a person, an assistant or an automated process asked."
|
|
1156
1198
|
},
|
|
1157
1199
|
"enum": [
|
|
1158
1200
|
"human",
|
|
@@ -1164,32 +1206,40 @@
|
|
|
1164
1206
|
"summary": {
|
|
1165
1207
|
"type": "text",
|
|
1166
1208
|
"required": false,
|
|
1209
|
+
"description": "A short description of what needs approval.",
|
|
1167
1210
|
"_meta": {
|
|
1168
|
-
"readonly": true
|
|
1211
|
+
"readonly": true,
|
|
1212
|
+
"description": "A short description of what needs approval."
|
|
1169
1213
|
},
|
|
1170
1214
|
"readonly": true
|
|
1171
1215
|
},
|
|
1172
1216
|
"status": {
|
|
1173
1217
|
"type": "text",
|
|
1174
1218
|
"required": false,
|
|
1219
|
+
"description": "Where the request stands: waiting, approved, rejected, changes requested, cancelled or expired.",
|
|
1175
1220
|
"_meta": {
|
|
1176
|
-
"readonly": true
|
|
1221
|
+
"readonly": true,
|
|
1222
|
+
"description": "Where the request stands: waiting, approved, rejected, changes requested, cancelled or expired."
|
|
1177
1223
|
},
|
|
1178
1224
|
"readonly": true
|
|
1179
1225
|
},
|
|
1180
1226
|
"requiredApprovals": {
|
|
1181
1227
|
"type": "integer",
|
|
1182
1228
|
"required": false,
|
|
1229
|
+
"description": "How many different people must agree.",
|
|
1183
1230
|
"_meta": {
|
|
1184
|
-
"readonly": true
|
|
1231
|
+
"readonly": true,
|
|
1232
|
+
"description": "How many different people must agree."
|
|
1185
1233
|
},
|
|
1186
1234
|
"readonly": true
|
|
1187
1235
|
},
|
|
1188
1236
|
"approvalCount": {
|
|
1189
1237
|
"type": "integer",
|
|
1190
1238
|
"required": false,
|
|
1239
|
+
"description": "How many people have agreed so far.",
|
|
1191
1240
|
"_meta": {
|
|
1192
|
-
"readonly": true
|
|
1241
|
+
"readonly": true,
|
|
1242
|
+
"description": "How many people have agreed so far."
|
|
1193
1243
|
},
|
|
1194
1244
|
"readonly": true
|
|
1195
1245
|
},
|
|
@@ -1212,32 +1262,40 @@
|
|
|
1212
1262
|
"expiresAt": {
|
|
1213
1263
|
"type": "datetime",
|
|
1214
1264
|
"required": false,
|
|
1265
|
+
"description": "The deadline. After it the request can no longer be decided.",
|
|
1215
1266
|
"_meta": {
|
|
1216
|
-
"readonly": true
|
|
1267
|
+
"readonly": true,
|
|
1268
|
+
"description": "The deadline. After it the request can no longer be decided."
|
|
1217
1269
|
},
|
|
1218
1270
|
"readonly": true
|
|
1219
1271
|
},
|
|
1220
1272
|
"decidedAt": {
|
|
1221
1273
|
"type": "datetime",
|
|
1222
1274
|
"required": false,
|
|
1275
|
+
"description": "When the request was decided.",
|
|
1223
1276
|
"_meta": {
|
|
1224
|
-
"readonly": true
|
|
1277
|
+
"readonly": true,
|
|
1278
|
+
"description": "When the request was decided."
|
|
1225
1279
|
},
|
|
1226
1280
|
"readonly": true
|
|
1227
1281
|
},
|
|
1228
1282
|
"consumedAt": {
|
|
1229
1283
|
"type": "datetime",
|
|
1230
1284
|
"required": false,
|
|
1285
|
+
"description": "When the approval was used to let the action go ahead.",
|
|
1231
1286
|
"_meta": {
|
|
1232
|
-
"readonly": true
|
|
1287
|
+
"readonly": true,
|
|
1288
|
+
"description": "When the approval was used to let the action go ahead."
|
|
1233
1289
|
},
|
|
1234
1290
|
"readonly": true
|
|
1235
1291
|
},
|
|
1236
1292
|
"consumedBy": {
|
|
1237
1293
|
"type": "text",
|
|
1238
1294
|
"required": false,
|
|
1295
|
+
"description": "Who used the approval.",
|
|
1239
1296
|
"_meta": {
|
|
1240
|
-
"readonly": true
|
|
1297
|
+
"readonly": true,
|
|
1298
|
+
"description": "Who used the approval."
|
|
1241
1299
|
},
|
|
1242
1300
|
"readonly": true
|
|
1243
1301
|
}
|
|
@@ -1553,6 +1611,227 @@
|
|
|
1553
1611
|
}
|
|
1554
1612
|
},
|
|
1555
1613
|
"moduleType": "smrt",
|
|
1614
|
+
"recipes": [
|
|
1615
|
+
{
|
|
1616
|
+
"id": "approvals.requests",
|
|
1617
|
+
"className": "ApprovalsRecipe",
|
|
1618
|
+
"label": "Approvals",
|
|
1619
|
+
"summary": "See what is waiting for a yes, who decided what, and the rules each kind of approval follows.",
|
|
1620
|
+
"synonyms": [
|
|
1621
|
+
"approvals",
|
|
1622
|
+
"approval requests",
|
|
1623
|
+
"sign-off",
|
|
1624
|
+
"sign off",
|
|
1625
|
+
"authorisation",
|
|
1626
|
+
"authorization",
|
|
1627
|
+
"review queue",
|
|
1628
|
+
"waiting for approval"
|
|
1629
|
+
],
|
|
1630
|
+
"models": [
|
|
1631
|
+
"@happyvertical/smrt-approvals:ApprovalRequest",
|
|
1632
|
+
"@happyvertical/smrt-approvals:ApprovalEvent",
|
|
1633
|
+
"@happyvertical/smrt-approvals:ApprovalPolicy"
|
|
1634
|
+
],
|
|
1635
|
+
"nav": [
|
|
1636
|
+
{
|
|
1637
|
+
"label": "Requests",
|
|
1638
|
+
"model": "@happyvertical/smrt-approvals:ApprovalRequest",
|
|
1639
|
+
"icon": "fileText",
|
|
1640
|
+
"description": "Everything waiting for a yes or already decided, and where each one stands.",
|
|
1641
|
+
"noun": "request"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"label": "History",
|
|
1645
|
+
"model": "@happyvertical/smrt-approvals:ApprovalEvent",
|
|
1646
|
+
"icon": "book",
|
|
1647
|
+
"description": "Who did what on each request, and when.",
|
|
1648
|
+
"noun": "history entry"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"label": "Policies",
|
|
1652
|
+
"model": "@happyvertical/smrt-approvals:ApprovalPolicy",
|
|
1653
|
+
"icon": "settings",
|
|
1654
|
+
"description": "The rules for each kind of approval: how many people must agree and how long a request lasts.",
|
|
1655
|
+
"noun": "policy"
|
|
1656
|
+
}
|
|
1657
|
+
],
|
|
1658
|
+
"requires": [],
|
|
1659
|
+
"section": {
|
|
1660
|
+
"id": "approvals",
|
|
1661
|
+
"label": "Approvals",
|
|
1662
|
+
"icon": "briefcase",
|
|
1663
|
+
"description": "Who has to say yes before something happens."
|
|
1664
|
+
},
|
|
1665
|
+
"options": {
|
|
1666
|
+
"@happyvertical/smrt-approvals:ApprovalRequest": {
|
|
1667
|
+
"fields": {
|
|
1668
|
+
"summary": {
|
|
1669
|
+
"order": 1
|
|
1670
|
+
},
|
|
1671
|
+
"kind": {
|
|
1672
|
+
"order": 2
|
|
1673
|
+
},
|
|
1674
|
+
"status": {
|
|
1675
|
+
"order": 3
|
|
1676
|
+
},
|
|
1677
|
+
"requestedBy": {
|
|
1678
|
+
"label": "Requested by",
|
|
1679
|
+
"order": 4
|
|
1680
|
+
},
|
|
1681
|
+
"requestedByType": {
|
|
1682
|
+
"label": "Requested by a",
|
|
1683
|
+
"order": 5
|
|
1684
|
+
},
|
|
1685
|
+
"expiresAt": {
|
|
1686
|
+
"label": "Expires",
|
|
1687
|
+
"order": 6
|
|
1688
|
+
},
|
|
1689
|
+
"decidedAt": {
|
|
1690
|
+
"label": "Decided on",
|
|
1691
|
+
"order": 7
|
|
1692
|
+
},
|
|
1693
|
+
"subjectType": {
|
|
1694
|
+
"label": "What it is about",
|
|
1695
|
+
"visibility": "advanced"
|
|
1696
|
+
},
|
|
1697
|
+
"subjectId": {
|
|
1698
|
+
"label": "Which one",
|
|
1699
|
+
"visibility": "advanced"
|
|
1700
|
+
},
|
|
1701
|
+
"requiredApprovals": {
|
|
1702
|
+
"label": "Approvals needed",
|
|
1703
|
+
"visibility": "advanced"
|
|
1704
|
+
},
|
|
1705
|
+
"approvalCount": {
|
|
1706
|
+
"label": "Approvals so far",
|
|
1707
|
+
"visibility": "advanced"
|
|
1708
|
+
},
|
|
1709
|
+
"consumedAt": {
|
|
1710
|
+
"label": "Used on",
|
|
1711
|
+
"visibility": "advanced"
|
|
1712
|
+
},
|
|
1713
|
+
"consumedBy": {
|
|
1714
|
+
"label": "Used by",
|
|
1715
|
+
"visibility": "advanced"
|
|
1716
|
+
},
|
|
1717
|
+
"tenantId": {
|
|
1718
|
+
"visibility": "hidden"
|
|
1719
|
+
},
|
|
1720
|
+
"subjectRevisionHash": {
|
|
1721
|
+
"visibility": "hidden"
|
|
1722
|
+
},
|
|
1723
|
+
"requestKey": {
|
|
1724
|
+
"visibility": "hidden"
|
|
1725
|
+
},
|
|
1726
|
+
"requiredPermissions": {
|
|
1727
|
+
"visibility": "hidden"
|
|
1728
|
+
},
|
|
1729
|
+
"version": {
|
|
1730
|
+
"visibility": "hidden"
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
"@happyvertical/smrt-approvals:ApprovalEvent": {
|
|
1735
|
+
"fields": {
|
|
1736
|
+
"requestId": {
|
|
1737
|
+
"label": "Request",
|
|
1738
|
+
"order": 1
|
|
1739
|
+
},
|
|
1740
|
+
"type": {
|
|
1741
|
+
"label": "What happened",
|
|
1742
|
+
"order": 2
|
|
1743
|
+
},
|
|
1744
|
+
"actorId": {
|
|
1745
|
+
"label": "Who",
|
|
1746
|
+
"order": 3
|
|
1747
|
+
},
|
|
1748
|
+
"actorType": {
|
|
1749
|
+
"label": "Who it was",
|
|
1750
|
+
"order": 4
|
|
1751
|
+
},
|
|
1752
|
+
"reason": {
|
|
1753
|
+
"order": 5
|
|
1754
|
+
},
|
|
1755
|
+
"occurredAt": {
|
|
1756
|
+
"label": "When",
|
|
1757
|
+
"order": 6
|
|
1758
|
+
},
|
|
1759
|
+
"selfApproved": {
|
|
1760
|
+
"label": "Decided by the requester",
|
|
1761
|
+
"visibility": "advanced"
|
|
1762
|
+
},
|
|
1763
|
+
"tenantId": {
|
|
1764
|
+
"visibility": "hidden"
|
|
1765
|
+
},
|
|
1766
|
+
"subjectRevisionHash": {
|
|
1767
|
+
"visibility": "hidden"
|
|
1768
|
+
},
|
|
1769
|
+
"sequence": {
|
|
1770
|
+
"visibility": "hidden"
|
|
1771
|
+
},
|
|
1772
|
+
"voteKey": {
|
|
1773
|
+
"visibility": "hidden"
|
|
1774
|
+
},
|
|
1775
|
+
"selfApprovalPermission": {
|
|
1776
|
+
"visibility": "hidden"
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
"@happyvertical/smrt-approvals:ApprovalPolicy": {
|
|
1781
|
+
"fields": {
|
|
1782
|
+
"kind": {
|
|
1783
|
+
"order": 1
|
|
1784
|
+
},
|
|
1785
|
+
"requiredApprovals": {
|
|
1786
|
+
"label": "Approvals needed",
|
|
1787
|
+
"order": 2
|
|
1788
|
+
},
|
|
1789
|
+
"ttlMs": {
|
|
1790
|
+
"label": "Time limit in milliseconds",
|
|
1791
|
+
"order": 3
|
|
1792
|
+
},
|
|
1793
|
+
"requiredPermission": {
|
|
1794
|
+
"label": "Extra permission needed",
|
|
1795
|
+
"order": 4
|
|
1796
|
+
},
|
|
1797
|
+
"updatedBy": {
|
|
1798
|
+
"label": "Last changed by",
|
|
1799
|
+
"order": 5
|
|
1800
|
+
},
|
|
1801
|
+
"tenantId": {
|
|
1802
|
+
"visibility": "hidden"
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1807
|
+
"help": {
|
|
1808
|
+
"markdown": "## Overview\n\nApprovals is where you see who has to say yes before something happens, such\nas publishing a post or sending an order. Each request names what needs\napproval, who asked and where it stands: waiting, approved, rejected, changes\nrequested, cancelled or expired. The history keeps every step taken on a\nrequest, and the policies show the rules each kind of approval follows.\n\n## Tasks\n\nRequests are raised by the app or by an assistant through the approval\nservice, decisions are recorded by the same service, and policies are set by\nan administrator through it. Nothing here is created or changed by hand in the\napp. Here you find a request, see where it stands and read what happened.\n\n### Find a request\n\n1. Open the list of requests.\n2. Look at the **{field:ApprovalRequest.summary}** to see what needs approval, and the **{field:ApprovalRequest.kind}** to see what sort of approval it is.\n3. Check **{field:ApprovalRequest.requestedBy}** to see who asked.\n\n### See where a request stands\n\n1. Open the request.\n2. Its **{field:ApprovalRequest.status}** shows whether it is still waiting, approved, rejected, sent back for changes, cancelled or expired.\n3. **{field:ApprovalRequest.expiresAt}** is the deadline: after it a request can no longer be decided.\n4. Once decided, **{field:ApprovalRequest.decidedAt}** shows when.\n\n### Read the history of a request\n\n1. Open the history.\n2. Find the entries for the **{field:ApprovalEvent.requestId}** you are interested in.\n3. Each entry shows **{field:ApprovalEvent.type}**, who did it in **{field:ApprovalEvent.actorId}**, and **{field:ApprovalEvent.occurredAt}**, oldest first.\n4. A rejection or cancellation carries its **{field:ApprovalEvent.reason}**.\n\n### Read the rules for a kind of approval\n\n1. Open the policies.\n2. Find the **{field:ApprovalPolicy.kind}** you want to know about.\n3. **{field:ApprovalPolicy.requiredApprovals}** is how many different people must agree, and **{field:ApprovalPolicy.ttlMs}** is how long a request stays open.\n4. **{field:ApprovalPolicy.requiredPermission}** names any extra permission a decider must hold.\n",
|
|
1809
|
+
"fieldRefs": [
|
|
1810
|
+
"ApprovalEvent.actorId",
|
|
1811
|
+
"ApprovalEvent.occurredAt",
|
|
1812
|
+
"ApprovalEvent.reason",
|
|
1813
|
+
"ApprovalEvent.requestId",
|
|
1814
|
+
"ApprovalEvent.type",
|
|
1815
|
+
"ApprovalPolicy.kind",
|
|
1816
|
+
"ApprovalPolicy.requiredApprovals",
|
|
1817
|
+
"ApprovalPolicy.requiredPermission",
|
|
1818
|
+
"ApprovalPolicy.ttlMs",
|
|
1819
|
+
"ApprovalRequest.decidedAt",
|
|
1820
|
+
"ApprovalRequest.expiresAt",
|
|
1821
|
+
"ApprovalRequest.kind",
|
|
1822
|
+
"ApprovalRequest.requestedBy",
|
|
1823
|
+
"ApprovalRequest.status",
|
|
1824
|
+
"ApprovalRequest.summary"
|
|
1825
|
+
]
|
|
1826
|
+
},
|
|
1827
|
+
"demo": {
|
|
1828
|
+
"mode": "server",
|
|
1829
|
+
"reasons": [
|
|
1830
|
+
"Needs a server because its package depends on @happyvertical/smrt-profiles, @happyvertical/smrt-tenancy, @happyvertical/smrt-users, which do not build for a browser (#3617, #3624, #3626)."
|
|
1831
|
+
]
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
],
|
|
1556
1835
|
"smrtDependencies": [
|
|
1557
1836
|
"@happyvertical/smrt-core",
|
|
1558
1837
|
"@happyvertical/smrt-tenancy",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApprovalEvent.d.ts","sourceRoot":"","sources":["../../src/models/ApprovalEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAIrB,qDAAqD;AACrD,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;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