nucleus-core-ts 0.8.10 → 0.8.12
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/client.js +1 -1
- package/dist/dist/index.d.ts +38 -12
- package/dist/fe/index.d.ts +2 -0
- package/dist/fe/index.js +1 -0
- package/dist/index-hhnypnb1.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/Client/Proxy/httpProxy.js +1 -1
- package/dist/src/Client/Proxy/index.js +1 -1
- package/dist/src/Client/Proxy/server.js +1 -1
- package/dist/src/Client/Proxy/utils.js +1 -1
- package/dist/src/Client/Proxy/wsProxy.js +1 -1
- package/dist/src/Client/PubSub/index.d.ts +4 -0
- package/dist/src/Client/PubSub/store.d.ts +3 -0
- package/dist/src/Client/PubSub/types.d.ts +80 -0
- package/dist/src/Client/PubSub/usePubSub.d.ts +17 -0
- package/dist/src/Client/index.d.ts +1 -0
- package/dist/src/ElysiaPlugin/index.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/index.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/pubsub/ack-manager.d.ts +16 -0
- package/dist/src/ElysiaPlugin/routes/pubsub/client-manager.d.ts +22 -0
- package/dist/src/ElysiaPlugin/routes/pubsub/index.d.ts +54 -0
- package/dist/src/ElysiaPlugin/routes/pubsub/types.d.ts +73 -0
- package/dist/src/ElysiaPlugin/utils.d.ts +5 -0
- package/dist/src/types.d.ts +31 -0
- package/package.json +1 -1
- package/schemas/config.nucleus.json +82 -0
- package/scripts/generate-schema.ts +6 -6
- package/scripts/generate-types-schema.ts +55 -0
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x31e2(_0x2a15d6,_0x2294a8){_0x2a15d6=_0x2a15d6-0x13f;var _0x20e460=_0x20e4();var _0x31e2dd=_0x20e460[_0x2a15d6];if(_0x31e2['TsBVJb']===undefined){var _0x14affa=function(_0x48604e){var _0x3fb0d7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x18638a='',_0x2399e8='';for(var _0x3f359d=0x0,_0x3b407a,_0x5d206a,_0x11c207=0x0;_0x5d206a=_0x48604e['charAt'](_0x11c207++);~_0x5d206a&&(_0x3b407a=_0x3f359d%0x4?_0x3b407a*0x40+_0x5d206a:_0x5d206a,_0x3f359d++%0x4)?_0x18638a+=String['fromCharCode'](0xff&_0x3b407a>>(-0x2*_0x3f359d&0x6)):0x0){_0x5d206a=_0x3fb0d7['indexOf'](_0x5d206a);}for(var _0x25ce85=0x0,_0x2cc0da=_0x18638a['length'];_0x25ce85<_0x2cc0da;_0x25ce85++){_0x2399e8+='%'+('00'+_0x18638a['charCodeAt'](_0x25ce85)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2399e8);};_0x31e2['pWRbaE']=_0x14affa,_0x31e2['uEmbPY']={},_0x31e2['TsBVJb']=!![];}var _0x4bd96c=_0x20e460[0x0],_0x1298ae=_0x2a15d6+_0x4bd96c,_0x3b7459=_0x31e2['uEmbPY'][_0x1298ae];return!_0x3b7459?(_0x31e2dd=_0x31e2['pWRbaE'](_0x31e2dd),_0x31e2['uEmbPY'][_0x1298ae]=_0x31e2dd):_0x31e2dd=_0x3b7459,_0x31e2dd;}(function(_0x53545e,_0x4630da){var _0x3f6d63=_0x31e2,_0x2e46a7=_0x53545e();while(!![]){try{var _0x4eaedb=-parseInt(_0x3f6d63(0x148))/0x1+parseInt(_0x3f6d63(0x147))/0x2*(-parseInt(_0x3f6d63(0x13f))/0x3)+-parseInt(_0x3f6d63(0x140))/0x4+-parseInt(_0x3f6d63(0x146))/0x5+parseInt(_0x3f6d63(0x142))/0x6*(-parseInt(_0x3f6d63(0x141))/0x7)+parseInt(_0x3f6d63(0x145))/0x8*(parseInt(_0x3f6d63(0x144))/0x9)+parseInt(_0x3f6d63(0x143))/0xa;if(_0x4eaedb===_0x4630da)break;else _0x2e46a7['push'](_0x2e46a7['shift']());}catch(_0x284b4d){_0x2e46a7['push'](_0x2e46a7['shift']());}}}(_0x20e4,0x1ed65));import{g as _0x18638a,h as _0x2399e8,i as _0x3f359d,j as _0x3b407a,k as _0x5d206a,l as _0x11c207,t as _0x25ce85}from'./index-hhnypnb1.js';export{_0x5d206a as generateSystemTableEndpoints,_0x3f359d as generateEndpointsFromConfig,_0x3b407a as generateAuthEndpoints,_0x11c207 as generateAllEndpoints,_0x25ce85 as createServerFactory,_0x18638a as createApiHook,_0x2399e8 as AUTH_ENDPOINT_CONFIGS};function _0x20e4(){var _0x1788ed=['ntG0y1jNwwnx','mtiYnZu1nxfJywH6tG','mte0sKTTBKnT','mty5mJi2vLzWDhfh','mtaYow1Sr2rnsG','odiWmJe2zfr0CgP3','mZa4nZDyAu9mAem','nJzLug93Bvm','nJi2ndG5mezxAKLPqq','mJmXmZLlvKTJsfu'];_0x20e4=function(){return _0x1788ed;};return _0x20e4();}
|
package/dist/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
declare var Ti: () => import("h-state").StoreType<{
|
|
2
|
+
connection: {
|
|
3
|
+
status: string;
|
|
4
|
+
clientId: null;
|
|
5
|
+
subscribedTopics: never[];
|
|
6
|
+
error: null;
|
|
7
|
+
reconnectAttempt: number;
|
|
8
|
+
};
|
|
9
|
+
events: never[];
|
|
10
|
+
maxEvents: number;
|
|
11
|
+
}, Record<string, unknown>>;
|
|
12
|
+
declare function gd(r: any): {
|
|
13
|
+
isConnected: boolean;
|
|
14
|
+
isConnecting: boolean;
|
|
15
|
+
clientId: null;
|
|
16
|
+
subscribedTopics: never[];
|
|
17
|
+
events: never[];
|
|
18
|
+
error: null;
|
|
19
|
+
reconnectAttempt: number;
|
|
20
|
+
connect: () => void;
|
|
21
|
+
disconnect: () => void;
|
|
22
|
+
subscribe: (d: any) => void;
|
|
23
|
+
unsubscribe: (d: any) => void;
|
|
24
|
+
clearEvents: unknown;
|
|
25
|
+
getEventsByTopic: (d: any) => never[];
|
|
26
|
+
};
|
|
27
|
+
import { s as wd } from "./index-hhnypnb1.js";
|
|
28
|
+
import { k as dP } from "./index-hhnypnb1.js";
|
|
29
|
+
import { i as wP } from "./index-hhnypnb1.js";
|
|
30
|
+
import { j as _P } from "./index-hhnypnb1.js";
|
|
31
|
+
import { l as mP } from "./index-hhnypnb1.js";
|
|
32
|
+
import { t as uP } from "./index-hhnypnb1.js";
|
|
33
|
+
import { g as gP } from "./index-hhnypnb1.js";
|
|
34
|
+
import { r as ld } from "./index-hhnypnb1.js";
|
|
35
|
+
declare function J4(r: any): Promise<km<"", {
|
|
10
36
|
decorator: {};
|
|
11
37
|
store: {};
|
|
12
38
|
derive: {};
|
|
@@ -34,7 +60,7 @@ declare function o9(r: any): Promise<Td<"", {
|
|
|
34
60
|
standaloneSchema: {};
|
|
35
61
|
response: {};
|
|
36
62
|
}>>;
|
|
37
|
-
import { h as
|
|
38
|
-
import
|
|
39
|
-
export {
|
|
63
|
+
import { h as lP } from "./index-hhnypnb1.js";
|
|
64
|
+
import km from "elysia";
|
|
65
|
+
export { Ti as usePubSubStore, gd as usePubSub, wd as serverFetch, dP as generateSystemTableEndpoints, wP as generateEndpointsFromConfig, _P as generateAuthEndpoints, mP as generateAllEndpoints, uP as createServerFactory, gP as createApiHook, ld as ServerFetch, J4 as NucleusElysiaPlugin, lP as AUTH_ENDPOINT_CONFIGS };
|
|
40
66
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/fe/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export { UsersPage, useUsersStore, } from "./components/UsersPage";
|
|
|
35
35
|
export type { ResendVerificationAction, VerifyEmailAction, VerifyEmailPageConfig, VerifyEmailState, VerifyEmailStep, } from "./components/VerifyEmailPage";
|
|
36
36
|
export { useVerifyEmailStore, VerifyEmailPage, } from "./components/VerifyEmailPage";
|
|
37
37
|
export { useNucleusEntity } from "./hooks/useNucleusEntity";
|
|
38
|
+
export { usePubSub, usePubSubStore } from "../src/Client/PubSub";
|
|
39
|
+
export type { PubSubConfig, PubSubConnectionState, PubSubEvent, } from "../src/Client/PubSub";
|
|
38
40
|
export type { BulkDeleteResponse, ColumnConfig, ColumnEnum, ColumnReference, ColumnType, ColumnValidation, DeleteResponse, FieldConfig, FilterCondition, ListResponse, MutationResponse, NucleusColumn, NucleusEntity, NucleusEntityShowcaseProps, PaginationMeta, QueryParams, SingleResponse, SortCondition, SortDirection, UseNucleusEntityOptions, UseNucleusEntityReturn, } from "./types";
|
|
39
41
|
export { cn } from "./utils/cn";
|
|
40
42
|
export { formatLabel, getColumnType, getDefaultValue, isArrayColumn, isJsonColumn, isReferenceColumn, shouldExcludeColumn, shouldExcludeFromForm, } from "./utils/columnUtils";
|
package/dist/fe/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export { DEFAULT_PASSWORD_POLICY, SetPasswordPage, useSetPasswordStore } from ".
|
|
|
23
23
|
export { UsersPage, useUsersStore } from "./components/UsersPage";
|
|
24
24
|
export { useVerifyEmailStore, VerifyEmailPage } from "./components/VerifyEmailPage";
|
|
25
25
|
export { useNucleusEntity } from "./hooks/useNucleusEntity";
|
|
26
|
+
export { usePubSub, usePubSubStore } from "../src/Client/PubSub";
|
|
26
27
|
export { cn } from "./utils/cn";
|
|
27
28
|
export { formatLabel, getColumnType, getDefaultValue, isArrayColumn, isJsonColumn, isReferenceColumn, shouldExcludeColumn, shouldExcludeFromForm } from "./utils/columnUtils";
|
|
28
29
|
export { generateBulkEndpointKey, generateDistinctEndpointKey, generateEntityEndpointKey, generateGetByIdEndpointKey, singularize, toUpperSnakeCase } from "./utils/endpointKeys";
|