@shakerquiz/guards 0.0.1 → 0.0.2
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/jsconfig.json +2 -7
- package/package.json +1 -1
- package/source/guards/QUERY/channels.js +1 -1
- package/source/guards/QUERY/participants.js +1 -1
- package/source/guards/channel-mailing-message.js +1 -1
- package/source/guards/channel.js +1 -1
- package/source/guards/mailing.js +1 -1
- package/source/guards/message.js +1 -1
- package/source/guards/participant.js +1 -1
- package/source/index.js +7 -7
package/jsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Channel, Channels } from '@shakerquiz/utilities'
|
|
2
|
-
import { guardBody } from '
|
|
2
|
+
import { guardBody } from '../../utilities/guard-body.js'
|
|
3
3
|
|
|
4
4
|
export const ChannelsQueryPropValidation = Object.freeze({
|
|
5
5
|
channel: value => Object.hasOwn(Channel, value),
|
package/source/guards/channel.js
CHANGED
package/source/guards/mailing.js
CHANGED
package/source/guards/message.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageKind } from '@shakerquiz/utilities'
|
|
2
2
|
import { isStringTag } from '@yurkimus/string-tag'
|
|
3
|
-
import { guardBody } from '
|
|
3
|
+
import { guardBody } from '../utilities/guard-body.js'
|
|
4
4
|
|
|
5
5
|
export const MessagePropValidation = Object.freeze({
|
|
6
6
|
// Template is not implemented yet, so we handle only Inline messages.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParticipantChoice } from '@shakerquiz/utilities'
|
|
2
|
-
import { guardBody } from '
|
|
2
|
+
import { guardBody } from '../utilities/guard-body.js'
|
|
3
3
|
|
|
4
4
|
export const ParticipantPropValidation = Object.freeze({
|
|
5
5
|
mongo_id: value => typeof value === 'string' && value !== '',
|
package/source/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
1
|
+
export * from './guards/channel-mailing-message.js'
|
|
2
|
+
export * from './guards/channel.js'
|
|
3
|
+
export * from './guards/mailing.js'
|
|
4
|
+
export * from './guards/message.js'
|
|
5
|
+
export * from './guards/participant.js'
|
|
6
|
+
export * from './guards/QUERY/channels.js'
|
|
7
|
+
export * from './guards/QUERY/participants.js'
|