@opencrvs/toolkit 2.1.0-rc.d078d1a → 2.1.0-rc.d24aa5e

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.
Files changed (60) hide show
  1. package/dist/application-config/index.js +190 -202
  2. package/dist/commons/api/router.d.ts +1589 -1657
  3. package/dist/commons/application-config/index.d.ts +6 -6
  4. package/dist/commons/conditionals/conditionals.d.ts +2102 -259
  5. package/dist/commons/conditionals/validate.d.ts +1 -10
  6. package/dist/commons/events/ActionConfig.d.ts +105 -105
  7. package/dist/commons/events/ActionDocument.d.ts +123 -117
  8. package/dist/commons/events/ActionInput.d.ts +6 -0
  9. package/dist/commons/events/ActionType.d.ts +62 -62
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -519
  11. package/dist/commons/events/AuditLog.d.ts +42 -79
  12. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  13. package/dist/commons/events/Conditional.d.ts +3 -3
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  15. package/dist/commons/events/Draft.d.ts +37 -37
  16. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  17. package/dist/commons/events/EventConfig.d.ts +5 -8
  18. package/dist/commons/events/EventDocument.d.ts +48 -48
  19. package/dist/commons/events/EventIndex.d.ts +71 -48
  20. package/dist/commons/events/EventMetadata.d.ts +40 -40
  21. package/dist/commons/events/FieldConfig.d.ts +337 -347
  22. package/dist/commons/events/FieldType.d.ts +51 -51
  23. package/dist/commons/events/FieldTypeMapping.d.ts +91 -91
  24. package/dist/commons/events/FieldValue.d.ts +12 -12
  25. package/dist/commons/events/Flag.d.ts +15 -57
  26. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  28. package/dist/commons/events/WorkqueueConfig.d.ts +813 -816
  29. package/dist/commons/events/deduplication.d.ts +1 -1
  30. package/dist/commons/events/event.d.ts +2 -14
  31. package/dist/commons/events/field.d.ts +895 -78
  32. package/dist/commons/events/index.d.ts +0 -1
  33. package/dist/commons/events/locations.d.ts +6 -103
  34. package/dist/commons/events/mocks.test.utils.d.ts +4 -18
  35. package/dist/commons/events/scopes.d.ts +4 -4
  36. package/dist/commons/events/state/index.d.ts +17 -17
  37. package/dist/commons/events/state/utils.d.ts +7 -7
  38. package/dist/commons/events/test.utils.d.ts +43 -40
  39. package/dist/commons/events/utils.d.ts +114 -114
  40. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  41. package/dist/conditionals/index.js +55 -303
  42. package/dist/environment/derived-variables.d.ts +119 -119
  43. package/dist/environment/derived-variables.d.ts.map +1 -1
  44. package/dist/environment/logger.d.ts.map +1 -1
  45. package/dist/environment/questions.d.ts +74 -75
  46. package/dist/environment/questions.d.ts.map +1 -1
  47. package/dist/environment/setup-environment.js +14 -8
  48. package/dist/environment/utils.d.ts +1 -1
  49. package/dist/events/deduplication.d.ts +1 -1
  50. package/dist/events/index.js +3386 -3548
  51. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  52. package/dist/notification/index.js +1064 -1731
  53. package/dist/scopes/index.d.ts +146 -371
  54. package/dist/scopes/index.js +55 -304
  55. package/opencrvs-toolkit-2.1.0-rc.d24aa5e.tgz +0 -0
  56. package/package.json +5 -5
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/dist/commons/events/ActionStatus.d.ts +0 -14
  59. package/dist/commons/events/locationPayloads.d.ts +0 -95
  60. package/opencrvs-toolkit-2.1.0-rc.d078d1a.tgz +0 -0
@@ -59,8 +59,8 @@ export declare function field(fieldId: string): {
59
59
  fieldId: string;
60
60
  type: "dateRange";
61
61
  options: {
62
- pivot?: number | undefined;
63
62
  days: number;
63
+ pivot?: number | undefined;
64
64
  boost?: number | undefined;
65
65
  matchAgainst?: string | undefined;
66
66
  };
@@ -1,8 +1,6 @@
1
1
  import { NonSearchableEventMetadataTimeFieldIdInput, AdvancedSearchConfig } from '../event-config/event-configuration';
2
2
  import { ActionType } from './ActionType';
3
3
  import { EventFieldIdInput } from './AdvancedSearchConfig';
4
- import { EventStatus } from './EventMetadata';
5
- import { Flag } from './Flag';
6
4
  import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
7
5
  /**
8
6
  * Creates a function that acts like a callable + static method container.
@@ -22,8 +20,6 @@ declare const event: typeof eventFn & {
22
20
  * @param action - The action type to check for.
23
21
  */
24
22
  hasAction: (action: ActionType) => {
25
- $id: string;
26
- __nominal__type: 'JSONSchema';
27
23
  /**
28
24
  * Creates a conditional that checks if the event contains a specific action type
29
25
  * with a minimum count of occurrences.
@@ -75,18 +71,10 @@ declare const event: typeof eventFn & {
75
71
  */
76
72
  maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
77
73
  };
74
+ $id: string;
75
+ __nominal__type: "JSONSchema";
78
76
  };
79
77
  field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
80
- /**
81
- * Checks if the event currently has the given status.
82
- * @param eventStatus - The status to check for.
83
- */
84
- hasStatus: (eventStatus: EventStatus) => import("../conditionals/conditionals").JSONSchema;
85
- /**
86
- * Checks if the event currently carries the given flag.
87
- * @param flagValue - The flag to check for.
88
- */
89
- hasFlag: (flagValue: Flag) => import("../conditionals/conditionals").JSONSchema;
90
78
  };
91
79
  export { event };
92
80
  //# sourceMappingURL=event.d.ts.map