@opencrvs/toolkit 2.0.0-rc.99921a2 → 2.0.0-rc.99b8626
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/build.sh +2 -2
- package/dist/application-config/index.js +0 -12
- package/dist/cli.js +5108 -167
- package/dist/commons/api/router.d.ts +75 -668
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionConfig.d.ts +0 -202
- package/dist/commons/events/ActionDocument.d.ts +0 -44
- package/dist/commons/events/ActionInput.d.ts +0 -26
- package/dist/commons/events/ActionType.d.ts +1 -6
- package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -6
- package/dist/commons/events/AuditLog.d.ts +0 -2
- package/dist/commons/events/Draft.d.ts +0 -2
- package/dist/commons/events/EventDocument.d.ts +0 -22
- package/dist/commons/events/FieldConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueConfig.d.ts +2 -5
- package/dist/commons/events/scopes.d.ts +0 -1
- package/dist/commons/events/test.utils.d.ts +1 -9
- package/dist/commons/events/utils.d.ts +1 -15
- package/dist/conditionals/index.js +0 -2
- package/dist/events/index.js +18 -166
- package/dist/migrations/v2.0/index.js +5144 -88
- package/dist/notification/index.js +11 -131
- package/dist/scopes/index.d.ts +1 -7
- package/dist/scopes/index.js +0 -2
- package/opencrvs-toolkit-2.0.0-rc.99b8626.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +0 -3
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +0 -234
- package/dist/migrations/v2.1/index.d.ts +0 -6
- package/dist/migrations/v2.1/index.d.ts.map +0 -1
- package/dist/migrations/v2.1/index.js +0 -218
- package/opencrvs-toolkit-2.0.0-rc.99921a2.tgz +0 -0
package/build.sh
CHANGED
|
@@ -51,8 +51,8 @@ mkdir -p ./dist/commons/application-config
|
|
|
51
51
|
cp -r ../commons/build/dist/common/application-config.d.ts ./dist/commons/application-config/index.d.ts
|
|
52
52
|
|
|
53
53
|
# Build migration CLI
|
|
54
|
-
npx esbuild src/migrations/v2.
|
|
55
|
-
chmod +x ./dist/migrations/v2.
|
|
54
|
+
npx esbuild src/migrations/v2.0/index.ts --bundle --format=cjs --outdir=./dist/migrations/v2.0 --allow-overwrite --packages=external --banner:js="#!/usr/bin/env node"
|
|
55
|
+
chmod +x ./dist/migrations/v2.0/index.js
|
|
56
56
|
|
|
57
57
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
58
58
|
sed -i '' 's|@opencrvs/events/build/types|../commons/api|g' dist/api/index.d.ts
|
|
@@ -520,7 +520,6 @@ var ActionType = {
|
|
|
520
520
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE",
|
|
521
521
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE",
|
|
522
522
|
ARCHIVE: "ARCHIVE",
|
|
523
|
-
UNARCHIVE: "UNARCHIVE",
|
|
524
523
|
// Record actions
|
|
525
524
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE",
|
|
526
525
|
REQUEST_CORRECTION: "REQUEST_CORRECTION",
|
|
@@ -540,7 +539,6 @@ var ConfirmableActions = [
|
|
|
540
539
|
ActionType.REGISTER,
|
|
541
540
|
ActionType.REJECT,
|
|
542
541
|
ActionType.ARCHIVE,
|
|
543
|
-
ActionType.UNARCHIVE,
|
|
544
542
|
ActionType.PRINT_CERTIFICATE,
|
|
545
543
|
ActionType.REQUEST_CORRECTION,
|
|
546
544
|
ActionType.APPROVE_CORRECTION,
|
|
@@ -559,7 +557,6 @@ var ActionTypes = z10.enum([
|
|
|
559
557
|
"MARK_AS_DUPLICATE",
|
|
560
558
|
"MARK_AS_NOT_DUPLICATE",
|
|
561
559
|
"ARCHIVE",
|
|
562
|
-
"UNARCHIVE",
|
|
563
560
|
"PRINT_CERTIFICATE",
|
|
564
561
|
"REQUEST_CORRECTION",
|
|
565
562
|
"REJECT_CORRECTION",
|
|
@@ -600,7 +597,6 @@ var WorkqueueActionType = ActionTypes.extract([
|
|
|
600
597
|
ActionType.REJECT,
|
|
601
598
|
ActionType.MARK_AS_DUPLICATE,
|
|
602
599
|
ActionType.ARCHIVE,
|
|
603
|
-
ActionType.UNARCHIVE,
|
|
604
600
|
ActionType.PRINT_CERTIFICATE,
|
|
605
601
|
ActionType.REQUEST_CORRECTION
|
|
606
602
|
]);
|
|
@@ -630,7 +626,6 @@ var RecordScopeTypeV2 = z11.enum([
|
|
|
630
626
|
"record.edit",
|
|
631
627
|
"record.reject",
|
|
632
628
|
"record.archive",
|
|
633
|
-
"record.unarchive",
|
|
634
629
|
"record.review-duplicates",
|
|
635
630
|
"record.register",
|
|
636
631
|
"record.print-certified-copies",
|
|
@@ -736,7 +731,6 @@ var ScopesWithDeclaredOptions = RecordScopeTypeV2.extract([
|
|
|
736
731
|
"record.edit",
|
|
737
732
|
"record.reject",
|
|
738
733
|
"record.archive",
|
|
739
|
-
"record.unarchive",
|
|
740
734
|
"record.review-duplicates",
|
|
741
735
|
"record.register"
|
|
742
736
|
]);
|
|
@@ -971,11 +965,6 @@ var ArchiveAction = ActionBase.extend(
|
|
|
971
965
|
content: ReasonContent
|
|
972
966
|
}).shape
|
|
973
967
|
);
|
|
974
|
-
var UnarchiveAction = ActionBase.extend(
|
|
975
|
-
z13.object({
|
|
976
|
-
type: z13.literal(ActionType.UNARCHIVE)
|
|
977
|
-
}).shape
|
|
978
|
-
);
|
|
979
968
|
var CreatedAction = ActionBase.extend(
|
|
980
969
|
z13.object({
|
|
981
970
|
type: z13.literal(ActionType.CREATE)
|
|
@@ -1042,7 +1031,6 @@ var ActionDocument = z13.discriminatedUnion("type", [
|
|
|
1042
1031
|
MarkNotDuplicateAction.meta({ id: "MarkNotDuplicateAction" }),
|
|
1043
1032
|
MarkAsDuplicateAction.meta({ id: "MarkAsDuplicateAction" }),
|
|
1044
1033
|
ArchiveAction.meta({ id: "ArchiveAction" }),
|
|
1045
|
-
UnarchiveAction.meta({ id: "UnarchiveAction" }),
|
|
1046
1034
|
NotifiedAction.meta({ id: "NotifiedAction" }),
|
|
1047
1035
|
RegisterAction.meta({ id: "RegisterAction" }),
|
|
1048
1036
|
DeclareAction.meta({ id: "DeclareAction" }),
|