@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.
@@ -30,7 +30,6 @@ export declare const validEventTypes: {
30
30
  updateDocumentsStatus: string;
31
31
  mail: string;
32
32
  push: string;
33
- oldPush: string;
34
33
  addUserIdentity: string;
35
34
  };
36
35
  export declare const validDocumentStatus: {
@@ -33,7 +33,6 @@ exports.validEventTypes = {
33
33
  updateDocumentsStatus: 'update-documents-status',
34
34
  mail: 'mail',
35
35
  push: 'push',
36
- oldPush: 'old-push',
37
36
  addUserIdentity: 'add-user-identity',
38
37
  };
39
38
  exports.validDocumentStatus = {
@@ -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',
@@ -1,3 +1,2 @@
1
1
  import Joi from 'joi';
2
2
  export declare const SendPushSchema: Joi.ObjectSchema<any>;
3
- export declare const SendOldPushSchema: Joi.ObjectSchema<any>;
@@ -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.SendOldPushSchema = exports.SendPushSchema = void 0;
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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randstad-uca/aws-sns-publisher",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "AWS SNS Publisher",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
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
-