@randstad-uca/aws-sns-publisher 1.2.6 → 1.2.8
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.
|
@@ -18,7 +18,7 @@ const baseFields = {
|
|
|
18
18
|
provincia: joi_1.default.string().optional(),
|
|
19
19
|
localidad: joi_1.default.string().optional(),
|
|
20
20
|
telefono: joi_1.default.string()
|
|
21
|
-
.pattern(
|
|
21
|
+
.pattern(/^\+[1-9]\d{1,14}$/)
|
|
22
22
|
.message('phone number must be in E.164 format (e.g., +5491234567890)')
|
|
23
23
|
.optional(),
|
|
24
24
|
subscriptions: one_signal_schema_1.SubscriptionSchema.optional(),
|
|
@@ -12,6 +12,7 @@ exports.SendPushSchema = joi_1.default.object({
|
|
|
12
12
|
custom_data: joi_1.default.object().optional(),
|
|
13
13
|
url: joi_1.default.string().uri().optional(),
|
|
14
14
|
app_url: joi_1.default.string().uri().optional(),
|
|
15
|
+
data: joi_1.default.object().optional(),
|
|
15
16
|
})
|
|
16
17
|
.unknown(false)
|
|
17
18
|
// You can have the properties 'url', or 'app_url', or neither, but you CANNOT have both at the same time.
|
package/package.json
CHANGED