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

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 (59) hide show
  1. package/dist/application-config/index.js +200 -189
  2. package/dist/commons/api/router.d.ts +3350 -3246
  3. package/dist/commons/application-config/index.d.ts +6 -6
  4. package/dist/commons/conditionals/conditionals.d.ts +259 -2102
  5. package/dist/commons/conditionals/validate.d.ts +10 -1
  6. package/dist/commons/events/ActionConfig.d.ts +105 -105
  7. package/dist/commons/events/ActionDocument.d.ts +111 -117
  8. package/dist/commons/events/ActionStatus.d.ts +14 -0
  9. package/dist/commons/events/ActionType.d.ts +62 -62
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +519 -507
  11. package/dist/commons/events/AuditLog.d.ts +79 -42
  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 +8 -5
  18. package/dist/commons/events/EventDocument.d.ts +46 -46
  19. package/dist/commons/events/EventIndex.d.ts +48 -71
  20. package/dist/commons/events/EventMetadata.d.ts +40 -40
  21. package/dist/commons/events/FieldConfig.d.ts +346 -336
  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 +57 -15
  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 +817 -814
  29. package/dist/commons/events/deduplication.d.ts +1 -1
  30. package/dist/commons/events/event.d.ts +14 -2
  31. package/dist/commons/events/field.d.ts +78 -895
  32. package/dist/commons/events/index.d.ts +1 -0
  33. package/dist/commons/events/locationPayloads.d.ts +95 -0
  34. package/dist/commons/events/locations.d.ts +103 -6
  35. package/dist/commons/events/mocks.test.utils.d.ts +18 -4
  36. package/dist/commons/events/scopes.d.ts +4 -4
  37. package/dist/commons/events/state/index.d.ts +17 -17
  38. package/dist/commons/events/state/utils.d.ts +7 -7
  39. package/dist/commons/events/test.utils.d.ts +40 -40
  40. package/dist/commons/events/utils.d.ts +114 -114
  41. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  42. package/dist/conditionals/index.js +303 -55
  43. package/dist/environment/derived-variables.d.ts +119 -119
  44. package/dist/environment/derived-variables.d.ts.map +1 -1
  45. package/dist/environment/logger.d.ts.map +1 -1
  46. package/dist/environment/questions.d.ts +75 -74
  47. package/dist/environment/questions.d.ts.map +1 -1
  48. package/dist/environment/setup-environment.js +8 -14
  49. package/dist/environment/utils.d.ts +1 -1
  50. package/dist/events/deduplication.d.ts +1 -1
  51. package/dist/events/index.js +3463 -3297
  52. package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
  53. package/dist/notification/index.js +1709 -1039
  54. package/dist/scopes/index.d.ts +371 -146
  55. package/dist/scopes/index.js +304 -55
  56. package/opencrvs-toolkit-2.1.0-rc.d078d1a.tgz +0 -0
  57. package/package.json +5 -5
  58. package/tsconfig.tsbuildinfo +1 -1
  59. package/opencrvs-toolkit-2.1.0-rc.d04f6c3.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
- days: number;
63
62
  pivot?: number | undefined;
63
+ days: number;
64
64
  boost?: number | undefined;
65
65
  matchAgainst?: string | undefined;
66
66
  };
@@ -1,6 +1,8 @@
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';
4
6
  import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
5
7
  /**
6
8
  * Creates a function that acts like a callable + static method container.
@@ -20,6 +22,8 @@ declare const event: typeof eventFn & {
20
22
  * @param action - The action type to check for.
21
23
  */
22
24
  hasAction: (action: ActionType) => {
25
+ $id: string;
26
+ __nominal__type: 'JSONSchema';
23
27
  /**
24
28
  * Creates a conditional that checks if the event contains a specific action type
25
29
  * with a minimum count of occurrences.
@@ -71,10 +75,18 @@ declare const event: typeof eventFn & {
71
75
  */
72
76
  maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
73
77
  };
74
- $id: string;
75
- __nominal__type: "JSONSchema";
76
78
  };
77
79
  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;
78
90
  };
79
91
  export { event };
80
92
  //# sourceMappingURL=event.d.ts.map