@intuitionrobotics/push-pub-sub 2.2.3 → 2.3.2
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/dist/app-backend/api/routes.d.ts.map +1 -1
- package/dist/app-backend/api/routes.js +6 -6
- package/dist/app-backend/api/routes.js.map +1 -1
- package/dist/app-backend/api/v1/push/read.d.ts +3 -8
- package/dist/app-backend/api/v1/push/read.d.ts.map +1 -1
- package/dist/app-backend/api/v1/push/read.js +5 -12
- package/dist/app-backend/api/v1/push/read.js.map +1 -1
- package/dist/app-backend/api/v1/push/register.d.ts +3 -8
- package/dist/app-backend/api/v1/push/register.d.ts.map +1 -1
- package/dist/app-backend/api/v1/push/register.js +6 -12
- package/dist/app-backend/api/v1/push/register.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAa/B,eAAO,MAAM,gBAAgB,EAAE,MAAiB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Hand-edit this from here. The tool runs ONCE; do not regenerate.
|
|
1
|
+
// Hand-wired handler(fn) routes for the push-pub-sub lib.
|
|
3
2
|
import { Router } from "express";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { handler } from "@intuitionrobotics/thunderstorm/backend";
|
|
4
|
+
import { read } from "./v1/push/read.js";
|
|
5
|
+
import { register } from "./v1/push/register.js";
|
|
6
6
|
const push = Router();
|
|
7
|
-
push.post("/read", read
|
|
8
|
-
push.post("/register", register
|
|
7
|
+
push.post("/read", handler(read));
|
|
8
|
+
push.post("/register", handler(register));
|
|
9
9
|
const v1 = Router();
|
|
10
10
|
v1.use("/push", push);
|
|
11
11
|
export const pushPubSubRoutes = Router();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAE1D,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAC,OAAO,EAAC,MAAM,yCAAyC,CAAC;AAEhE,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC;AACtB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAClC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE1C,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AACpB,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAEtB,MAAM,CAAC,MAAM,gBAAgB,GAAW,MAAM,EAAE,CAAC;AACjD,gBAAgB,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type PubSubReadNotification
|
|
3
|
-
declare
|
|
4
|
-
constructor();
|
|
5
|
-
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_ReadPush): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: ServerApi_PushRead;
|
|
8
|
-
export default _default;
|
|
1
|
+
import { type TypedHandler } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
+
import { type PubSubReadNotification } from "../../../../index.js";
|
|
3
|
+
export declare const read: TypedHandler<PubSubReadNotification>;
|
|
9
4
|
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/read.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,yCAAyC,CAAC;AAE1E,OAAO,EAAC,KAAK,sBAAsB,EAAwB,MAAM,sBAAsB,CAAC;AACxF,eAAO,MAAM,IAAI,EAAE,YAAY,CAAC,sBAAsB,CAGrD,CAAC"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HttpMethod } from "@intuitionrobotics/thunderstorm";
|
|
1
|
+
import {} from "@intuitionrobotics/thunderstorm/backend";
|
|
3
2
|
import { PushPubSubModule } from "../../../modules/PushPubSubModule.js";
|
|
4
3
|
import {} from "../../../../index.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
async process(request, response, queryParams, body) {
|
|
10
|
-
// const user = await KasperoProxy.validateSession(request);
|
|
11
|
-
return await PushPubSubModule.readNotification(body._id, body.read);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default new ServerApi_PushRead();
|
|
4
|
+
export const read = async (req) => {
|
|
5
|
+
const body = req.body;
|
|
6
|
+
return await PushPubSubModule.readNotification(body._id, body.read);
|
|
7
|
+
};
|
|
15
8
|
//# sourceMappingURL=read.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/read.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAoD,MAAM,sBAAsB,CAAC;AACxF,MAAM,CAAC,MAAM,IAAI,GAAyC,KAAK,EAAE,GAAG,EAAE,EAAE;IACpE,MAAM,IAAI,GAAG,GAAG,CAAC,IAAwB,CAAC;IAC1C,OAAO,MAAM,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type PubSubRegisterClient
|
|
3
|
-
declare
|
|
4
|
-
constructor();
|
|
5
|
-
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_PushRegister): Promise<import("../../../../index.js").DB_Notifications[]>;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: ServerApi_PushRegister;
|
|
8
|
-
export default _default;
|
|
1
|
+
import { type TypedHandler } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
|
+
import { type PubSubRegisterClient } from "../../../../index.js";
|
|
3
|
+
export declare const register: TypedHandler<PubSubRegisterClient>;
|
|
9
4
|
//# sourceMappingURL=register.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/register.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,YAAY,EAAsB,MAAM,yCAAyC,CAAC;AAE/F,OAAO,EAAC,KAAK,oBAAoB,EAA4B,MAAM,sBAAsB,CAAC;AAC1F,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,oBAAoB,CAIvD,CAAC"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HttpMethod } from "@intuitionrobotics/thunderstorm";
|
|
1
|
+
import {} from "@intuitionrobotics/thunderstorm/backend";
|
|
3
2
|
import { PushPubSubModule } from "../../../modules/PushPubSubModule.js";
|
|
4
3
|
import {} from "../../../../index.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// const user = await KasperoProxy.validateSession(request);
|
|
11
|
-
return await PushPubSubModule.register(body, request);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default new ServerApi_PushRegister();
|
|
4
|
+
export const register = async (req) => {
|
|
5
|
+
const request = req;
|
|
6
|
+
const body = req.body;
|
|
7
|
+
return await PushPubSubModule.register(body, request);
|
|
8
|
+
};
|
|
15
9
|
//# sourceMappingURL=register.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/register.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/push/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAsD,MAAM,sBAAsB,CAAC;AAC1F,MAAM,CAAC,MAAM,QAAQ,GAAuC,KAAK,EAAE,GAAG,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,GAAqB,CAAC;IACtC,MAAM,IAAI,GAAG,GAAG,CAAC,IAA4B,CAAC;IAC9C,OAAO,MAAM,gBAAgB,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC,CAAC"}
|