@pc-nexus/core 0.5.0-next.13 → 0.5.0-next.14
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/index.d.ts +3 -2
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/lib/handler.d.ts +6 -0
- package/lib/handler.d.ts.map +1 -0
- package/lib/handler.js +1 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { EnvironmentType, NexusCode, NexusError, NexusHttpStatusCode, NexusInnerError, NexusInnerErrorType, Resolver, type Extension, type HandlerFunction, type HandlerFunctionEvent, type
|
|
2
|
-
export * from "./lib/common.js";
|
|
1
|
+
export { EnvironmentType, NexusCode, NexusError, NexusHttpStatusCode, NexusInnerError, NexusInnerErrorType, Resolver, type Extension, type HandlerFunction, type HandlerFunctionEvent, type NexusAppContext, type ResolverFunction, type Team, type User, type WebHookHandlerFunctionReturn, } from "@pc-nexus/internal";
|
|
3
2
|
export * from "./lib/authorize.js";
|
|
3
|
+
export * from "./lib/common.js";
|
|
4
|
+
export * from "./lib/handler.js";
|
|
4
5
|
export * from "./lib/i18n/index.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,4BAA4B,GACpC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { EnvironmentType, NexusCode, NexusError, NexusHttpStatusCode, NexusInnerError, NexusInnerErrorType, Resolver, } from "@pc-nexus/internal";
|
|
2
|
-
export * from "./lib/common.js";
|
|
3
2
|
export * from "./lib/authorize.js";
|
|
3
|
+
export * from "./lib/common.js";
|
|
4
|
+
export * from "./lib/handler.js";
|
|
4
5
|
export * from "./lib/i18n/index.js";
|
package/lib/handler.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HandlerFunction, LifecycleEventPayload, ScheduledEventPayload, SystemEventPayload, WebHookHandlerFunctionReturn, WebhookPayload } from "@pc-nexus/internal";
|
|
2
|
+
export type SystemEventHandlerFunction = HandlerFunction<SystemEventPayload, void>;
|
|
3
|
+
export type LifecycleEventHandlerFunction = HandlerFunction<LifecycleEventPayload, void>;
|
|
4
|
+
export type WebhokEventHandlerFunction = HandlerFunction<WebhookPayload, WebHookHandlerFunctionReturn>;
|
|
5
|
+
export type ScheduledEventHandlerFunction = HandlerFunction<ScheduledEventPayload, void>;
|
|
6
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/lib/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,EAC5B,cAAc,EACjB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;AAEnF,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;AAEzF,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,cAAc,EAAE,4BAA4B,CAAC,CAAC;AAEvG,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC"}
|
package/lib/handler.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pc-nexus/core",
|
|
3
|
-
"version": "0.5.0-next.
|
|
3
|
+
"version": "0.5.0-next.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"type": "module",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@pc-nexus/internal": "0.5.0-next.
|
|
32
|
+
"@pc-nexus/internal": "0.5.0-next.14",
|
|
33
33
|
"lodash": "^4.17.21"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {},
|