feat: add new workqueue and user role config #2953
Annotations
5 errors
|
test
Process completed with exit code 1.
|
|
src/api/notification/notification.user.sms.test.ts:
src/form/v2/birth/index.ts#L33
ZodError: [
{
"code": "custom",
"path": [
"actions",
2,
"flags",
0,
"id"
],
"message": "Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate"
},
{
"code": "custom",
"message": "Action flag id must match a configured flag in the flags array. Invalid action flag ID for event 'birth': 'rejected'",
"path": [
"actions"
]
}
]
❯ Proxy.defineConfig node_modules/@opencrvs/toolkit/dist/events/index.js:5737:29
❯ src/form/v2/birth/index.ts:33:27
❯ src/api/custom-event/handler.ts:2:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _zod: { traits: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: 2, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, constr: 'Function<ZodError>', def: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], deferred: [] }, issues: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], format: 'Function<value>', flatten: 'Function<value>', addIssue: 'Function<value>', addIssues: 'Function<value>', isEmpty: false }
|
|
src/api/notification/notification.user.email.test.ts:
src/form/v2/birth/index.ts#L33
ZodError: [
{
"code": "custom",
"path": [
"actions",
2,
"flags",
0,
"id"
],
"message": "Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate"
},
{
"code": "custom",
"message": "Action flag id must match a configured flag in the flags array. Invalid action flag ID for event 'birth': 'rejected'",
"path": [
"actions"
]
}
]
❯ Proxy.defineConfig node_modules/@opencrvs/toolkit/dist/events/index.js:5737:29
❯ src/form/v2/birth/index.ts:33:27
❯ src/api/custom-event/handler.ts:2:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _zod: { traits: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: 2, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, constr: 'Function<ZodError>', def: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], deferred: [] }, issues: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], format: 'Function<value>', flatten: 'Function<value>', addIssue: 'Function<value>', addIssues: 'Function<value>', isEmpty: false }
|
|
src/api/notification/notification.informant.sms.test.ts:
src/form/v2/birth/index.ts#L33
ZodError: [
{
"code": "custom",
"path": [
"actions",
2,
"flags",
0,
"id"
],
"message": "Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate"
},
{
"code": "custom",
"message": "Action flag id must match a configured flag in the flags array. Invalid action flag ID for event 'birth': 'rejected'",
"path": [
"actions"
]
}
]
❯ Proxy.defineConfig node_modules/@opencrvs/toolkit/dist/events/index.js:5737:29
❯ src/form/v2/birth/index.ts:33:27
❯ src/api/custom-event/handler.ts:2:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _zod: { traits: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: 2, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, constr: 'Function<ZodError>', def: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], deferred: [] }, issues: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], format: 'Function<value>', flatten: 'Function<value>', addIssue: 'Function<value>', addIssues: 'Function<value>', isEmpty: false }
|
|
src/api/notification/notification.informant.email.test.ts:
src/form/v2/birth/index.ts#L33
ZodError: [
{
"code": "custom",
"path": [
"actions",
2,
"flags",
0,
"id"
],
"message": "Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate"
},
{
"code": "custom",
"message": "Action flag id must match a configured flag in the flags array. Invalid action flag ID for event 'birth': 'rejected'",
"path": [
"actions"
]
}
]
❯ Proxy.defineConfig node_modules/@opencrvs/toolkit/dist/events/index.js:5737:29
❯ src/form/v2/birth/index.ts:33:27
❯ src/api/custom-event/handler.ts:2:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _zod: { traits: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: 2, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, constr: 'Function<ZodError>', def: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], deferred: [] }, issues: [ { code: 'custom', path: [ 'actions', 2, 'flags', +0, 'id' ], message: 'Custom flag cannot be one of the inherent flags: pending-certification, incomplete, rejected, correction-requested, potential-duplicate' }, { code: 'custom', message: 'Action flag id must match a configured flag in the flags array. Invalid action flag ID for event \'birth\': \'rejected\'', path: [ 'actions' ] } ], format: 'Function<value>', flatten: 'Function<value>', addIssue: 'Function<value>', addIssues: 'Function<value>', isEmpty: false }
|