@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(/^\+?[1-9]\d{1,14}$/)
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.
@@ -5,6 +5,7 @@
5
5
  export interface SendPushType {
6
6
  app_url?: string;
7
7
  custom_data?: object;
8
+ data?: object;
8
9
  external_id: string[];
9
10
  name?: string;
10
11
  template_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randstad-uca/aws-sns-publisher",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "AWS SNS Publisher",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
package/schema-doc.md CHANGED
@@ -324,6 +324,7 @@ This file describes the required and optional fields for each `eventType`.
324
324
  - `custom_data` (object)
325
325
  - `url` (string)
326
326
  - `app_url` (string)
327
+ - `data` (object)
327
328
 
328
329
  ---
329
330