@randstad-uca/aws-sns-publisher 1.2.0 → 1.2.1
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/build/constants.d.ts +0 -1
- package/build/constants.js +0 -1
- package/build/generate-schema-doc.js +0 -4
- package/build/schemas/push.schema.d.ts +0 -1
- package/build/schemas/push.schema.js +1 -13
- package/build/types/push.type.d.ts +0 -8
- package/build/validator.js +0 -3
- package/package.json +1 -1
- package/schema-doc.md +0 -15
package/build/constants.d.ts
CHANGED
package/build/constants.js
CHANGED
|
@@ -110,10 +110,6 @@ const schemas = {
|
|
|
110
110
|
schema: push_schema_1.SendPushSchema,
|
|
111
111
|
label: 'Send Push Notification',
|
|
112
112
|
},
|
|
113
|
-
[constants_1.validEventTypes.oldPush]: {
|
|
114
|
-
schema: push_schema_1.SendOldPushSchema,
|
|
115
|
-
label: 'Send Old Push Notification',
|
|
116
|
-
},
|
|
117
113
|
[constants_1.validEventTypes.addUserIdentity]: {
|
|
118
114
|
schema: user_identity_schema_1.AddUserIdentitySchema,
|
|
119
115
|
label: 'Add User Identity',
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.SendPushSchema = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
8
|
exports.SendPushSchema = joi_1.default.object({
|
|
9
9
|
external_id: joi_1.default.array().items(joi_1.default.string().uuid()).required(),
|
|
@@ -17,15 +17,3 @@ exports.SendPushSchema = joi_1.default.object({
|
|
|
17
17
|
// You can have the properties 'url', or 'app_url', or neither, but you CANNOT have both at the same time.
|
|
18
18
|
.nand('url', 'app_url')
|
|
19
19
|
.meta({ className: 'SendPushType' });
|
|
20
|
-
exports.SendOldPushSchema = joi_1.default.object({
|
|
21
|
-
external_id: joi_1.default.array().items(joi_1.default.number()).required(),
|
|
22
|
-
template_id: joi_1.default.string().required(),
|
|
23
|
-
name: joi_1.default.string().optional(),
|
|
24
|
-
custom_data: joi_1.default.object().optional(),
|
|
25
|
-
url: joi_1.default.string().uri().optional(),
|
|
26
|
-
app_url: joi_1.default.string().uri().optional(),
|
|
27
|
-
})
|
|
28
|
-
.unknown(false)
|
|
29
|
-
// You can have the properties 'url', or 'app_url', or neither, but you CANNOT have both at the same time.
|
|
30
|
-
.nand('url', 'app_url')
|
|
31
|
-
.meta({ className: 'SendOldPushType' });
|
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
* This file was automatically generated by joi-to-typescript
|
|
3
3
|
* Do not modify this file manually
|
|
4
4
|
*/
|
|
5
|
-
export interface SendOldPushType {
|
|
6
|
-
app_url?: string;
|
|
7
|
-
custom_data?: object;
|
|
8
|
-
external_id: number[];
|
|
9
|
-
name?: string;
|
|
10
|
-
template_id: string;
|
|
11
|
-
url?: string;
|
|
12
|
-
}
|
|
13
5
|
export interface SendPushType {
|
|
14
6
|
app_url?: string;
|
|
15
7
|
custom_data?: object;
|
package/build/validator.js
CHANGED
|
@@ -87,9 +87,6 @@ const validateSchema = (eventType, data) => {
|
|
|
87
87
|
case constants_1.validEventTypes.push:
|
|
88
88
|
schema = push_schema_1.SendPushSchema;
|
|
89
89
|
break;
|
|
90
|
-
case constants_1.validEventTypes.oldPush:
|
|
91
|
-
schema = push_schema_1.SendOldPushSchema;
|
|
92
|
-
break;
|
|
93
90
|
case constants_1.validEventTypes.addUserIdentity:
|
|
94
91
|
schema = user_identity_schema_1.AddUserIdentitySchema;
|
|
95
92
|
break;
|
package/package.json
CHANGED
package/schema-doc.md
CHANGED
|
@@ -327,20 +327,6 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
327
327
|
|
|
328
328
|
---
|
|
329
329
|
|
|
330
|
-
## Event: `old-push` (Send Old Push Notification)
|
|
331
|
-
|
|
332
|
-
**Required fields:**
|
|
333
|
-
- `external_id` (array)
|
|
334
|
-
- `template_id` (string)
|
|
335
|
-
|
|
336
|
-
**Optional fields:**
|
|
337
|
-
- `name` (string)
|
|
338
|
-
- `custom_data` (object)
|
|
339
|
-
- `url` (string)
|
|
340
|
-
- `app_url` (string)
|
|
341
|
-
|
|
342
|
-
---
|
|
343
|
-
|
|
344
330
|
## Event: `add-user-identity` (Add User Identity)
|
|
345
331
|
|
|
346
332
|
**Required fields:**
|
|
@@ -364,4 +350,3 @@ This file describes the required and optional fields for each `eventType`.
|
|
|
364
350
|
- `subscriptions` (object)
|
|
365
351
|
|
|
366
352
|
---
|
|
367
|
-
|