@opencrvs/toolkit 1.8.0-rc.f876361 → 1.8.0-rc.f8a9481

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.
@@ -2,30 +2,6 @@ import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  export declare const PageTypes: z.ZodEnum<["FORM", "VERIFICATION"]>;
4
4
  export type PageType = z.infer<typeof PageTypes>;
5
- export declare const PageConfigBase: z.ZodObject<{
6
- id: z.ZodString;
7
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- }>;
12
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
13
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
14
- }, "strip", z.ZodTypeAny, {
15
- id: string;
16
- title: TranslationConfig;
17
- fields: import("./FieldConfig").Inferred[];
18
- conditional?: import(".").JSONSchema | undefined;
19
- }, {
20
- id: string;
21
- title: {
22
- id: string;
23
- description: string;
24
- defaultMessage: string;
25
- };
26
- fields: import("./FieldConfig").InferredInput[];
27
- conditional?: import(".").JSONSchema | undefined;
28
- }>;
29
5
  export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
30
6
  id: z.ZodString;
31
7
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
@@ -30,7 +30,23 @@ export declare const SummaryConfig: z.ZodObject<{
30
30
  defaultMessage: string;
31
31
  } | undefined;
32
32
  }>;
33
- fields: z.ZodArray<z.ZodObject<{
33
+ fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
34
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
35
+ id: string;
36
+ description: string;
37
+ defaultMessage: string;
38
+ }>>;
39
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
40
+ type: z.ZodLiteral<"SHOW">;
41
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "SHOW";
44
+ conditional: import(".").JSONSchema;
45
+ }, {
46
+ type: "SHOW";
47
+ conditional: import(".").JSONSchema;
48
+ }>, "many">>>;
49
+ }, {
34
50
  id: z.ZodString;
35
51
  value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
36
52
  id: string;
@@ -47,10 +63,14 @@ export declare const SummaryConfig: z.ZodObject<{
47
63
  description: string;
48
64
  defaultMessage: string;
49
65
  }>>;
50
- }, "strip", z.ZodTypeAny, {
66
+ }>, "strip", z.ZodTypeAny, {
51
67
  id: string;
52
68
  value: TranslationConfig;
53
69
  label: TranslationConfig;
70
+ conditionals?: {
71
+ type: "SHOW";
72
+ conditional: import(".").JSONSchema;
73
+ }[] | undefined;
54
74
  emptyValueMessage?: TranslationConfig | undefined;
55
75
  }, {
56
76
  id: string;
@@ -64,24 +84,75 @@ export declare const SummaryConfig: z.ZodObject<{
64
84
  description: string;
65
85
  defaultMessage: string;
66
86
  };
87
+ conditionals?: {
88
+ type: "SHOW";
89
+ conditional: import(".").JSONSchema;
90
+ }[] | undefined;
91
+ emptyValueMessage?: {
92
+ id: string;
93
+ description: string;
94
+ defaultMessage: string;
95
+ } | undefined;
96
+ }>, z.ZodObject<z.objectUtil.extendShape<{
97
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
98
+ id: string;
99
+ description: string;
100
+ defaultMessage: string;
101
+ }>>;
102
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
103
+ type: z.ZodLiteral<"SHOW">;
104
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ type: "SHOW";
107
+ conditional: import(".").JSONSchema;
108
+ }, {
109
+ type: "SHOW";
110
+ conditional: import(".").JSONSchema;
111
+ }>, "many">>>;
112
+ }, {
113
+ fieldId: z.ZodString;
114
+ }>, "strip", z.ZodTypeAny, {
115
+ fieldId: string;
116
+ conditionals?: {
117
+ type: "SHOW";
118
+ conditional: import(".").JSONSchema;
119
+ }[] | undefined;
120
+ emptyValueMessage?: TranslationConfig | undefined;
121
+ }, {
122
+ fieldId: string;
123
+ conditionals?: {
124
+ type: "SHOW";
125
+ conditional: import(".").JSONSchema;
126
+ }[] | undefined;
67
127
  emptyValueMessage?: {
68
128
  id: string;
69
129
  description: string;
70
130
  defaultMessage: string;
71
131
  } | undefined;
72
- }>, "many">;
132
+ }>]>, "many">;
73
133
  }, "strip", z.ZodTypeAny, {
74
134
  title: {
75
135
  id: string;
76
136
  label: TranslationConfig;
77
137
  emptyValueMessage?: TranslationConfig | undefined;
78
138
  };
79
- fields: {
139
+ fields: ({
140
+ fieldId: string;
141
+ conditionals?: {
142
+ type: "SHOW";
143
+ conditional: import(".").JSONSchema;
144
+ }[] | undefined;
145
+ emptyValueMessage?: TranslationConfig | undefined;
146
+ } | {
80
147
  id: string;
81
148
  value: TranslationConfig;
82
149
  label: TranslationConfig;
150
+ conditionals?: {
151
+ type: "SHOW";
152
+ conditional: import(".").JSONSchema;
153
+ }[] | undefined;
83
154
  emptyValueMessage?: TranslationConfig | undefined;
84
- }[];
155
+ })[];
85
156
  }, {
86
157
  title: {
87
158
  id: string;
@@ -96,7 +167,18 @@ export declare const SummaryConfig: z.ZodObject<{
96
167
  defaultMessage: string;
97
168
  } | undefined;
98
169
  };
99
- fields: {
170
+ fields: ({
171
+ fieldId: string;
172
+ conditionals?: {
173
+ type: "SHOW";
174
+ conditional: import(".").JSONSchema;
175
+ }[] | undefined;
176
+ emptyValueMessage?: {
177
+ id: string;
178
+ description: string;
179
+ defaultMessage: string;
180
+ } | undefined;
181
+ } | {
100
182
  id: string;
101
183
  value: {
102
184
  id: string;
@@ -108,12 +190,16 @@ export declare const SummaryConfig: z.ZodObject<{
108
190
  description: string;
109
191
  defaultMessage: string;
110
192
  };
193
+ conditionals?: {
194
+ type: "SHOW";
195
+ conditional: import(".").JSONSchema;
196
+ }[] | undefined;
111
197
  emptyValueMessage?: {
112
198
  id: string;
113
199
  description: string;
114
200
  defaultMessage: string;
115
201
  } | undefined;
116
- }[];
202
+ })[];
117
203
  }>;
118
204
  export type SummaryConfig = z.infer<typeof SummaryConfig>;
119
205
  //# sourceMappingURL=SummaryConfig.d.ts.map
@@ -6,12 +6,12 @@ import { FieldValue } from './FieldValue';
6
6
  /**
7
7
  * Available system variables for configuration.
8
8
  */
9
- export interface MetaFields {
9
+ export type SystemVariables = {
10
10
  $user: {
11
11
  province: string;
12
12
  district: string;
13
13
  };
14
- }
14
+ };
15
15
  /**
16
16
  * Recursively flatten the keys of an object. Used to limit types when configuring default values in country config.
17
17
  * @example
@@ -21,12 +21,12 @@ export interface MetaFields {
21
21
  type FlattenedKeyStrings<T, Prefix extends string = ''> = {
22
22
  [K in keyof T]: T[K] extends Record<string, any> ? FlattenedKeyStrings<T[K], `${Prefix}${K & string}.`> : `${Prefix}${K & string}`;
23
23
  }[keyof T];
24
- export type FlattenedMetaFields = FlattenedKeyStrings<MetaFields>;
24
+ export type FlattenenedSystemVariables = FlattenedKeyStrings<SystemVariables>;
25
25
  /**
26
26
  * Default value for a field when configuring a form.
27
27
  */
28
- export type FieldConfigDefaultValue = FieldValue | FlattenedMetaFields | Record<string, FlattenedMetaFields | FieldValue>;
29
- export declare function isTemplateVariable(value: FieldConfigDefaultValue): value is FlattenedMetaFields;
28
+ export type FieldConfigDefaultValue = FieldValue | FlattenenedSystemVariables | Record<string, FlattenenedSystemVariables | FieldValue>;
29
+ export declare function isTemplateVariable(value: FieldConfigDefaultValue): value is FlattenenedSystemVariables;
30
30
  export declare function isFieldValue(value: FieldConfigDefaultValue): value is FieldValue;
31
31
  /**
32
32
  * Checks if given value is valid for a field, and known template variables are already resolved.
@@ -6,5 +6,10 @@ export type User = {
6
6
  family: string;
7
7
  }[];
8
8
  role: string;
9
+ /**
10
+ * The filename of the user's signature stored in MinIO, ex: 'a552f64a-31c4-4e78-b44f-292c3179e2ef.png'.
11
+ * This is used to retrieve the signature file from storage.
12
+ */
13
+ signatureFilename?: string;
9
14
  };
10
15
  //# sourceMappingURL=User.d.ts.map
@@ -1,36 +1,60 @@
1
1
  import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
2
3
  /**
3
4
  * Configuration for workqueue. Workqueues are used to display a list of events.
4
5
  */
5
6
  export declare const WorkqueueConfig: z.ZodObject<{
6
- id: z.ZodString;
7
- filters: z.ZodArray<z.ZodObject<{
8
- status: z.ZodArray<z.ZodNativeEnum<{
9
- readonly CREATED: "CREATED";
10
- readonly NOTIFIED: "NOTIFIED";
11
- readonly DECLARED: "DECLARED";
12
- readonly VALIDATED: "VALIDATED";
13
- readonly REGISTERED: "REGISTERED";
14
- readonly CERTIFIED: "CERTIFIED";
15
- readonly REJECTED: "REJECTED";
16
- readonly ARCHIVED: "ARCHIVED";
17
- }>, "many">;
7
+ slug: z.ZodString;
8
+ name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9
+ id: string;
10
+ description: string;
11
+ defaultMessage: string;
12
+ }>;
13
+ /**
14
+ * Placeholder untill the following gets merged to develop
15
+ * https://github.com/opencrvs/opencrvs-core/blob/5fbe9854a88504a7a13fcc856b3e82594b70c38c/packages/commons/src/events/EventIndex.ts#L92-L93
16
+ */
17
+ query: z.ZodString;
18
+ actions: z.ZodArray<z.ZodObject<{
19
+ type: z.ZodString;
20
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
18
21
  }, "strip", z.ZodTypeAny, {
19
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
22
+ type: string;
23
+ conditionals?: import(".").JSONSchema[] | undefined;
20
24
  }, {
21
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
25
+ type: string;
26
+ conditionals?: import(".").JSONSchema[] | undefined;
22
27
  }>, "many">;
23
28
  }, "strip", z.ZodTypeAny, {
24
- id: string;
25
- filters: {
26
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
29
+ name: TranslationConfig;
30
+ actions: {
31
+ type: string;
32
+ conditionals?: import(".").JSONSchema[] | undefined;
27
33
  }[];
34
+ query: string;
35
+ slug: string;
28
36
  }, {
29
- id: string;
30
- filters: {
31
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
37
+ name: {
38
+ id: string;
39
+ description: string;
40
+ defaultMessage: string;
41
+ };
42
+ actions: {
43
+ type: string;
44
+ conditionals?: import(".").JSONSchema[] | undefined;
32
45
  }[];
46
+ query: string;
47
+ slug: string;
33
48
  }>;
34
49
  export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
35
50
  export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
51
+ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
52
+ name: TranslationConfig;
53
+ actions: {
54
+ type: string;
55
+ conditionals?: import(".").JSONSchema[] | undefined;
56
+ }[];
57
+ query: string;
58
+ slug: string;
59
+ }[];
36
60
  //# sourceMappingURL=WorkqueueConfig.d.ts.map
@@ -234,19 +234,24 @@ export declare const defineConfig: (config: EventConfigInput) => {
234
234
  label: import("./TranslationConfig").TranslationConfig;
235
235
  emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
236
236
  };
237
- fields: {
237
+ fields: ({
238
+ fieldId: string;
239
+ conditionals?: {
240
+ type: "SHOW";
241
+ conditional: import(".").JSONSchema;
242
+ }[] | undefined;
243
+ emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
244
+ } | {
238
245
  id: string;
239
246
  value: import("./TranslationConfig").TranslationConfig;
240
247
  label: import("./TranslationConfig").TranslationConfig;
248
+ conditionals?: {
249
+ type: "SHOW";
250
+ conditional: import(".").JSONSchema;
251
+ }[] | undefined;
241
252
  emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
242
- }[];
253
+ })[];
243
254
  };
244
- workqueues: {
245
- id: string;
246
- filters: {
247
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
248
- }[];
249
- }[];
250
255
  deduplication: {
251
256
  id: string;
252
257
  label: import("./TranslationConfig").TranslationConfig;
@@ -30,6 +30,7 @@ export * from './Conditional';
30
30
  export * from './AdvancedSearchConfig';
31
31
  export * from './test.utils';
32
32
  export * from './TemplateConfig';
33
+ export * from './scopes';
33
34
  export * from '../conditionals/conditionals';
34
35
  export * from '../conditionals/validate';
35
36
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { Scope } from '../scopes';
2
+ import { ActionType } from './ActionType';
3
+ export declare function hasAnyOfScopes(a: Scope[], b: Scope[]): boolean;
4
+ export declare const CONFIG_GET_ALLOWED_SCOPES: ["record.declare-birth", "record.read", "record.declaration-submit-incomplete", "record.declaration-submit-for-review", "record.register", "record.export-records", "config", "config.update:all"];
5
+ export declare const ACTION_ALLOWED_SCOPES: {
6
+ READ: ["record.declare-birth", "record.read", "record.declaration-submit-incomplete", "record.declaration-submit-for-review", "record.register", "record.export-records"];
7
+ CREATE: ["record.declare-birth", "record.declaration-submit-incomplete", "record.declaration-submit-for-review"];
8
+ NOTIFY: ["record.declaration-submit-incomplete"];
9
+ DECLARE: ["record.declare-birth", "record.declaration-submit-for-approval", "record.register"];
10
+ DELETE: ["record.declare-birth"];
11
+ VALIDATE: ["record.declaration-submit-for-approval", "record.register"];
12
+ REGISTER: ["record.register"];
13
+ PRINT_CERTIFICATE: ["record.registration-print&issue-certified-copies"];
14
+ REQUEST_CORRECTION: ["record.registration-request-correction"];
15
+ REJECT_CORRECTION: ["record.registration-correct"];
16
+ APPROVE_CORRECTION: ["record.registration-correct"];
17
+ MARKED_AS_DUPLICATE: ["record.declaration-archive"];
18
+ ARCHIVE: ["record.declaration-archive"];
19
+ REJECT: ["record.declaration-submit-for-updates"];
20
+ ASSIGN: null;
21
+ UNASSIGN: null;
22
+ DETECT_DUPLICATE: [];
23
+ };
24
+ export declare function filterUnallowedActions(actions: ActionType[], userScopes: Scope[]): ActionType[];
25
+ //# sourceMappingURL=scopes.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ActionDocument, ActionUpdate } from './ActionDocument';
2
- import { ArchiveActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, ValidateActionInput } from './ActionInput';
2
+ import { ArchiveActionInput, AssignActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput, ValidateActionInput } from './ActionInput';
3
3
  import { ActionType } from './ActionType';
4
4
  import { Draft } from './Draft';
5
5
  import { EventConfig } from './EventConfig';
@@ -8,7 +8,7 @@ import { EventIndex } from './EventIndex';
8
8
  import { EventInput } from './EventInput';
9
9
  import { FieldValue } from './FieldValue';
10
10
  import { TranslationConfig } from './TranslationConfig';
11
- export declare function generateActionInput(configuration: EventConfig, action: ActionType): import("lodash").Dictionary<string | number | boolean | {
11
+ export declare function generateActionDeclarationInput(configuration: EventConfig, action: ActionType): import("lodash").Dictionary<string | number | boolean | {
12
12
  type: string;
13
13
  filename: string;
14
14
  originalFilename: string;
@@ -46,7 +46,7 @@ export declare function generateActionInput(configuration: EventConfig, action:
46
46
  filename: string;
47
47
  originalFilename: string;
48
48
  }[] | undefined>;
49
- export declare function generateActionMetadataInput(configuration: EventConfig, action: ActionType): {};
49
+ export declare function generateActionAnnotationInput(configuration: EventConfig, action: ActionType): {};
50
50
  export declare const eventPayloadGenerator: {
51
51
  create: (input?: Partial<EventInput>) => {
52
52
  transactionId: string;
@@ -57,116 +57,10 @@ export declare const eventPayloadGenerator: {
57
57
  type: string;
58
58
  id: string;
59
59
  };
60
- draft: (eventId: string, input?: Partial<Draft>) => {
61
- id: import("../uuid").UUID;
60
+ draft: ({ eventId, actionType }: {
62
61
  eventId: string;
63
- createdAt: string;
64
- transactionId: import("../uuid").UUID;
65
- action: {
66
- type: "REQUEST_CORRECTION";
67
- declaration: {
68
- 'applicant.firstname': string;
69
- 'applicant.surname': string;
70
- 'applicant.dob': string;
71
- 'recommender.none': boolean;
72
- };
73
- annotation: {
74
- 'correction.requester.relationship': string;
75
- 'correction.request.reason': string;
76
- };
77
- createdAt: string;
78
- createdBy: string;
79
- createdAtLocation: string;
80
- };
81
- } & Partial<{
82
- id: string;
83
- createdAt: string;
84
- eventId: string;
85
- transactionId: string;
86
- action: {
87
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
88
- createdAt: string;
89
- createdBy: string;
90
- declaration: Record<string, string | number | boolean | {
91
- type: string;
92
- filename: string;
93
- originalFilename: string;
94
- } | {
95
- country: string;
96
- district: string;
97
- addressType: "DOMESTIC";
98
- province: string;
99
- urbanOrRural: "URBAN";
100
- number?: string | null | undefined;
101
- town?: string | null | undefined;
102
- residentialArea?: string | null | undefined;
103
- street?: string | null | undefined;
104
- zipCode?: string | null | undefined;
105
- } | {
106
- country: string;
107
- district: string;
108
- addressType: "DOMESTIC";
109
- province: string;
110
- urbanOrRural: "RURAL";
111
- village?: string | null | undefined;
112
- } | {
113
- country: string;
114
- state: string;
115
- addressType: "INTERNATIONAL";
116
- district2: string;
117
- cityOrTown?: string | null | undefined;
118
- addressLine1?: string | null | undefined;
119
- addressLine2?: string | null | undefined;
120
- addressLine3?: string | null | undefined;
121
- postcodeOrZip?: string | null | undefined;
122
- } | {
123
- type: string;
124
- option: string;
125
- filename: string;
126
- originalFilename: string;
127
- }[] | undefined>;
128
- createdAtLocation: string;
129
- annotation?: Record<string, string | number | boolean | {
130
- type: string;
131
- filename: string;
132
- originalFilename: string;
133
- } | {
134
- country: string;
135
- district: string;
136
- addressType: "DOMESTIC";
137
- province: string;
138
- urbanOrRural: "URBAN";
139
- number?: string | null | undefined;
140
- town?: string | null | undefined;
141
- residentialArea?: string | null | undefined;
142
- street?: string | null | undefined;
143
- zipCode?: string | null | undefined;
144
- } | {
145
- country: string;
146
- district: string;
147
- addressType: "DOMESTIC";
148
- province: string;
149
- urbanOrRural: "RURAL";
150
- village?: string | null | undefined;
151
- } | {
152
- country: string;
153
- state: string;
154
- addressType: "INTERNATIONAL";
155
- district2: string;
156
- cityOrTown?: string | null | undefined;
157
- addressLine1?: string | null | undefined;
158
- addressLine2?: string | null | undefined;
159
- addressLine3?: string | null | undefined;
160
- postcodeOrZip?: string | null | undefined;
161
- } | {
162
- type: string;
163
- option: string;
164
- filename: string;
165
- originalFilename: string;
166
- }[] | undefined> | undefined;
167
- originalActionId?: string | undefined;
168
- };
169
- }>;
62
+ actionType: ActionType;
63
+ }, input?: Partial<Draft>) => Draft;
170
64
  actions: {
171
65
  declare: (eventId: string, input?: Partial<Pick<DeclareActionInput, "transactionId" | "declaration" | "annotation">>) => {
172
66
  type: "DECLARE";
@@ -306,6 +200,20 @@ export declare const eventPayloadGenerator: {
306
200
  duplicates: never[];
307
201
  eventId: string;
308
202
  };
203
+ assign: (eventId: string, input?: Partial<Pick<AssignActionInput, "transactionId" | "assignedTo">>) => {
204
+ type: "ASSIGN";
205
+ transactionId: string;
206
+ declaration: {};
207
+ assignedTo: string;
208
+ eventId: string;
209
+ };
210
+ unassign: (eventId: string, input?: Partial<Pick<UnassignActionInput, "transactionId">>) => {
211
+ type: "UNASSIGN";
212
+ transactionId: string;
213
+ declaration: {};
214
+ assignedTo: null;
215
+ eventId: string;
216
+ };
309
217
  archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, "transactionId" | "declaration">>, isDuplicate?: boolean) => {
310
218
  type: "ARCHIVE";
311
219
  transactionId: string;