@opencrvs/toolkit 2.0.0-rc.6b5f496 → 2.0.0-rc.6bedc29

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 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.1/index.ts --bundle --format=cjs --outdir=./dist/migrations/v2.1 --allow-overwrite --packages=external --banner:js="#!/usr/bin/env node"
55
- chmod +x ./dist/migrations/v2.1/index.js
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
@@ -665,13 +665,11 @@ var scopeOptionsPlaceEvent = z11.object({
665
665
  event: scopeByEvent,
666
666
  placeOfEvent: JurisdictionFilter.optional()
667
667
  }).describe("Options applicable to all record scopes.");
668
- var scopeOptionsDeclaredOrNotified = scopeOptionsPlaceEvent.extend({
669
- notifiedIn: JurisdictionFilter.optional(),
670
- notifiedBy: UserFilter.optional(),
668
+ var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
671
669
  declaredIn: JurisdictionFilter.optional(),
672
670
  declaredBy: UserFilter.optional()
673
671
  }).describe("Options applicable to actions that may take place after DECLARE");
674
- var AllRecordScopeOptions = scopeOptionsDeclaredOrNotified.extend({
672
+ var AllRecordScopeOptions = scopeOptionsDeclared.extend({
675
673
  registeredIn: JurisdictionFilter.optional(),
676
674
  registeredBy: UserFilter.optional()
677
675
  }).describe(
@@ -709,8 +707,6 @@ var ResolvedScopeOptionsPlaceEvent = z11.object({
709
707
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
710
708
  );
711
709
  var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
712
- notifiedIn: UUID.nullish(),
713
- notifiedBy: z11.string().optional(),
714
710
  declaredIn: UUID.nullish(),
715
711
  declaredBy: z11.string().optional()
716
712
  }).describe(
@@ -756,7 +752,7 @@ var RecordScopeV2 = z11.discriminatedUnion("type", [
756
752
  }),
757
753
  z11.object({
758
754
  type: ScopesWithDeclaredOptions,
759
- options: scopeOptionsDeclaredOrNotified.optional()
755
+ options: scopeOptionsDeclared.optional()
760
756
  }),
761
757
  z11.object({
762
758
  type: ScopesWithFullOptions,
@@ -845,9 +841,8 @@ var EncodedScope = z11.string().brand("EncodedScope");
845
841
  var DEFAULT_SCOPE_OPTIONS = {
846
842
  placeOfEvent: JurisdictionFilter.enum.all,
847
843
  accessLevel: JurisdictionFilter.enum.all,
848
- notifiedIn: JurisdictionFilter.enum.all,
849
- declaredIn: JurisdictionFilter.enum.all,
850
- registeredIn: JurisdictionFilter.enum.all
844
+ registeredIn: JurisdictionFilter.enum.all,
845
+ declaredIn: JurisdictionFilter.enum.all
851
846
  };
852
847
 
853
848
  // ../commons/src/authentication.ts
@@ -1136,7 +1131,6 @@ var RegistrationCreationMetadata = ActionCreationMetadata.extend({
1136
1131
  )
1137
1132
  });
1138
1133
  var LegalStatuses = z15.object({
1139
- [EventStatus.enum.NOTIFIED]: ActionCreationMetadata.nullish(),
1140
1134
  [EventStatus.enum.DECLARED]: ActionCreationMetadata.nullish(),
1141
1135
  [EventStatus.enum.REGISTERED]: RegistrationCreationMetadata.nullish()
1142
1136
  });
@@ -1196,8 +1190,6 @@ var EventMetadataKeys = z15.enum(EventMetadataKeysArray);
1196
1190
  var EventMetadataDateFieldIdInput = z15.enum([
1197
1191
  "createdAt",
1198
1192
  "updatedAt",
1199
- "legalStatuses.NOTIFIED.createdAt",
1200
- "legalStatuses.NOTIFIED.acceptedAt",
1201
1193
  "legalStatuses.DECLARED.createdAt",
1202
1194
  "legalStatuses.DECLARED.acceptedAt",
1203
1195
  "legalStatuses.REGISTERED.createdAt",
@@ -1206,8 +1198,6 @@ var EventMetadataDateFieldIdInput = z15.enum([
1206
1198
  var EventMetadataDateFieldId = z15.enum([
1207
1199
  "event.createdAt",
1208
1200
  "event.updatedAt",
1209
- "event.legalStatuses.NOTIFIED.createdAt",
1210
- "event.legalStatuses.NOTIFIED.acceptedAt",
1211
1201
  "event.legalStatuses.DECLARED.createdAt",
1212
1202
  "event.legalStatuses.DECLARED.acceptedAt",
1213
1203
  "event.legalStatuses.REGISTERED.createdAt",