@flink-app/firebase-messaging-plugin 0.7.0-alpha.0 → 0.7.0-alpha.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.
@@ -1,7 +1,7 @@
1
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
1
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
2
2
  import { autoRegisteredHandlers, HttpMethod } from "@flink-app/flink";
3
3
  import * as PostMessage_0 from "../src/handlers/PostMessage";
4
4
 
5
- export const handlers = [{"importName":"PostMessage_0","moduleSpecifier":"../src/handlers/PostMessage","schemasToGenerate":{"reqSchemaType":"PostMessage_12_ReqSchema","resSchemaType":"PostMessage_12_ResSchema"},"__file":"PostMessage.ts","__query":[],"__params":[],"__schemas":{"reqSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"to":{"type":"array","items":{"type":"string"},"description":"Devices to send to"},"notification":{"type":"object","properties":{"title":{"type":"string","description":"Optional push notification title"},"body":{"type":"string","description":"Optional body"}},"additionalProperties":false,"description":"Use `notification` if sending a standard push notification https://firebase.google.com/docs/cloud-messaging/concept-options#notifications"},"data":{"type":"object","additionalProperties":{"type":"string"},"description":"Use `data` to send data messages. https://firebase.google.com/docs/cloud-messaging/concept-options#data_messages"}},"required":["data","to"],"definitions":{}},"resSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"failedDevices":{"type":"array","items":{"type":"string"},"description":"Devices to which delivery failed"}},"required":["failedDevices"],"definitions":{}}},"assumedHttpMethod":HttpMethod.post,"handler":PostMessage_0,"Route":PostMessage_0.Route}];
5
+ export const handlers = [{handler: PostMessage_0, assumedHttpMethod: HttpMethod.post}];
6
6
  autoRegisteredHandlers.push(...handlers);
7
7
 
@@ -1,4 +1,4 @@
1
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
1
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
2
2
  import { autoRegisteredJobs } from "@flink-app/flink";
3
3
  export const jobs = [];
4
4
  autoRegisteredJobs.push(...jobs);
@@ -1,4 +1,4 @@
1
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
1
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
2
2
  import { autoRegisteredRepos } from "@flink-app/flink";
3
3
  export const repos = [];
4
4
  autoRegisteredRepos.push(...repos);
@@ -1,7 +1,7 @@
1
1
  import Message from "../../src/schemas/Message";
2
2
  import SendResult from "../../src/schemas/SendResult";
3
3
 
4
- // Generated Mon Jul 10 2023 18:13:41 GMT+0200 (Central European Summer Time)
4
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
5
5
  export interface PostMessage_12_ReqSchema extends Message {}
6
6
 
7
7
  export interface PostMessage_12_ResSchema extends SendResult {}
package/.flink/start.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
1
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
2
2
  import "./generatedHandlers";
3
3
  import "./generatedRepos";
4
4
  import "./generatedJobs";
@@ -1,72 +1,6 @@
1
1
  import { HttpMethod } from "@flink-app/flink";
2
2
  import * as PostMessage_0 from "../src/handlers/PostMessage";
3
3
  export declare const handlers: {
4
- importName: string;
5
- moduleSpecifier: string;
6
- schemasToGenerate: {
7
- reqSchemaType: string;
8
- resSchemaType: string;
9
- };
10
- __file: string;
11
- __query: never[];
12
- __params: never[];
13
- __schemas: {
14
- reqSchema: {
15
- $schema: string;
16
- type: string;
17
- additionalProperties: boolean;
18
- properties: {
19
- to: {
20
- type: string;
21
- items: {
22
- type: string;
23
- };
24
- description: string;
25
- };
26
- notification: {
27
- type: string;
28
- properties: {
29
- title: {
30
- type: string;
31
- description: string;
32
- };
33
- body: {
34
- type: string;
35
- description: string;
36
- };
37
- };
38
- additionalProperties: boolean;
39
- description: string;
40
- };
41
- data: {
42
- type: string;
43
- additionalProperties: {
44
- type: string;
45
- };
46
- description: string;
47
- };
48
- };
49
- required: string[];
50
- definitions: {};
51
- };
52
- resSchema: {
53
- $schema: string;
54
- type: string;
55
- additionalProperties: boolean;
56
- properties: {
57
- failedDevices: {
58
- type: string;
59
- items: {
60
- type: string;
61
- };
62
- description: string;
63
- };
64
- };
65
- required: string[];
66
- definitions: {};
67
- };
68
- };
69
- assumedHttpMethod: HttpMethod;
70
4
  handler: typeof PostMessage_0;
71
- Route: import("@flink-app/flink").RouteProps;
5
+ assumedHttpMethod: HttpMethod;
72
6
  }[];
@@ -20,8 +20,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.handlers = void 0;
23
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
23
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
24
24
  var flink_1 = require("@flink-app/flink");
25
25
  var PostMessage_0 = __importStar(require("../src/handlers/PostMessage"));
26
- exports.handlers = [{ "importName": "PostMessage_0", "moduleSpecifier": "../src/handlers/PostMessage", "schemasToGenerate": { "reqSchemaType": "PostMessage_12_ReqSchema", "resSchemaType": "PostMessage_12_ResSchema" }, "__file": "PostMessage.ts", "__query": [], "__params": [], "__schemas": { "reqSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "to": { "type": "array", "items": { "type": "string" }, "description": "Devices to send to" }, "notification": { "type": "object", "properties": { "title": { "type": "string", "description": "Optional push notification title" }, "body": { "type": "string", "description": "Optional body" } }, "additionalProperties": false, "description": "Use `notification` if sending a standard push notification https://firebase.google.com/docs/cloud-messaging/concept-options#notifications" }, "data": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Use `data` to send data messages. https://firebase.google.com/docs/cloud-messaging/concept-options#data_messages" } }, "required": ["data", "to"], "definitions": {} }, "resSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "failedDevices": { "type": "array", "items": { "type": "string" }, "description": "Devices to which delivery failed" } }, "required": ["failedDevices"], "definitions": {} } }, "assumedHttpMethod": flink_1.HttpMethod.post, "handler": PostMessage_0, "Route": PostMessage_0.Route }];
26
+ exports.handlers = [{ handler: PostMessage_0, assumedHttpMethod: flink_1.HttpMethod.post }];
27
27
  flink_1.autoRegisteredHandlers.push.apply(flink_1.autoRegisteredHandlers, exports.handlers);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.jobs = void 0;
4
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
4
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
5
5
  var flink_1 = require("@flink-app/flink");
6
6
  exports.jobs = [];
7
7
  flink_1.autoRegisteredJobs.push.apply(flink_1.autoRegisteredJobs, exports.jobs);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.repos = void 0;
4
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
4
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
5
5
  var flink_1 = require("@flink-app/flink");
6
6
  exports.repos = [];
7
7
  flink_1.autoRegisteredRepos.push.apply(flink_1.autoRegisteredRepos, exports.repos);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // Generated Mon Jul 10 2023 18:13:40 GMT+0200 (Central European Summer Time)
3
+ // Generated Wed Feb 07 2024 09:08:53 GMT+0100 (Central European Standard Time)
4
4
  require("./generatedHandlers");
5
5
  require("./generatedRepos");
6
6
  require("./generatedJobs");
@@ -5,3 +5,5 @@ import SendResult from "../schemas/SendResult";
5
5
  export declare const Route: RouteProps;
6
6
  declare const PostMessage: Handler<FlinkContext<FirebaseMessagingContext>, Message, SendResult>;
7
7
  export default PostMessage;
8
+ export declare const __assumedHttpMethod = "post", __file = "PostMessage.ts", __query: never[], __params: never[];
9
+ export declare const __schemas: any;
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Route = void 0;
39
+ exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
40
40
  var flink_1 = require("@flink-app/flink");
41
41
  exports.Route = {
42
42
  method: flink_1.HttpMethod.post,
@@ -59,3 +59,5 @@ var PostMessage = function (_a) {
59
59
  });
60
60
  };
61
61
  exports.default = PostMessage;
62
+ exports.__assumedHttpMethod = "post", exports.__file = "PostMessage.ts", exports.__query = [], exports.__params = [];
63
+ exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "to": { "type": "array", "items": { "type": "string" }, "description": "Devices to send to" }, "notification": { "type": "object", "properties": { "title": { "type": "string", "description": "Optional push notification title" }, "body": { "type": "string", "description": "Optional body" } }, "additionalProperties": false, "description": "Use `notification` if sending a standard push notification https://firebase.google.com/docs/cloud-messaging/concept-options#notifications" }, "data": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Use `data` to send data messages. https://firebase.google.com/docs/cloud-messaging/concept-options#data_messages" } }, "required": ["data", "to"], "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "failedDevices": { "type": "array", "items": { "type": "string" }, "description": "Devices to which delivery failed" } }, "required": ["failedDevices"], "definitions": {} } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/firebase-messaging-plugin",
3
- "version": "0.7.0-alpha.0",
3
+ "version": "0.7.0-alpha.1",
4
4
  "description": "Flink plugin to send Firebase cloud messages",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\"",
@@ -16,11 +16,11 @@
16
16
  "access": "public"
17
17
  },
18
18
  "dependencies": {
19
- "@flink-app/management-api-plugin": "^0.7.0-alpha.0",
19
+ "@flink-app/management-api-plugin": "^0.7.0-alpha.1",
20
20
  "fcm-push": "^1.1.3"
21
21
  },
22
22
  "devDependencies": {
23
- "@flink-app/flink": "^0.7.0-alpha.0",
23
+ "@flink-app/flink": "^0.7.0-alpha.1",
24
24
  "@types/express": "^4.17.12",
25
25
  "@types/node": "^15.6.2",
26
26
  "nodemon": "^2.0.7",
@@ -28,5 +28,5 @@
28
28
  "tsc-watch": "^4.2.9",
29
29
  "typescript": "^4.2.4"
30
30
  },
31
- "gitHead": "1e656eeb0e76d6ad8c6cc48200161aa445e365df"
31
+ "gitHead": "2ae3b415967bb4e4b41550ac1978e4c9fed47327"
32
32
  }