nucleus-core-ts 0.8.10 → 0.8.11
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 _0x6c58(){var _0x5c35ca=['mtK4CuTltw1K','mtq2mdG1m3zHEKXfrW','mta0otq0yM5JtxvH','ng5QzNnuDq','ndG3oteYy1bxq2rZ','odq5nZCWueHzvwjO','nM9JsM9kCW','nJuXmZu0oxbewuXcyG','mtbZELnIu0y','otyZodKWv2r4ue9T','ntCXoty1ouHXsfjmyG'];_0x6c58=function(){return _0x5c35ca;};return _0x6c58();}(function(_0x407192,_0x12e115){var _0x937568=_0x3349,_0x26e0bf=_0x407192();while(!![]){try{var _0x3ceb51=parseInt(_0x937568(0x17d))/0x1+-parseInt(_0x937568(0x17e))/0x2+-parseInt(_0x937568(0x17a))/0x3+-parseInt(_0x937568(0x17c))/0x4*(-parseInt(_0x937568(0x177))/0x5)+parseInt(_0x937568(0x17f))/0x6*(parseInt(_0x937568(0x180))/0x7)+parseInt(_0x937568(0x17b))/0x8*(parseInt(_0x937568(0x179))/0x9)+parseInt(_0x937568(0x176))/0xa*(-parseInt(_0x937568(0x178))/0xb);if(_0x3ceb51===_0x12e115)break;else _0x26e0bf['push'](_0x26e0bf['shift']());}catch(_0x132a8f){_0x26e0bf['push'](_0x26e0bf['shift']());}}}(_0x6c58,0x72414));import{g as _0x53d3b9,h as _0x5327b9,i as _0x176ba6,j as _0x4c3172,k as _0x12758b,l as _0x5ab892,t as _0x3ecf5d}from'./index-hhnypnb1.js';function _0x3349(_0xe93d25,_0x263240){_0xe93d25=_0xe93d25-0x176;var _0x6c5893=_0x6c58();var _0x334929=_0x6c5893[_0xe93d25];if(_0x3349['ZjGDVe']===undefined){var _0xbd809e=function(_0x2e4f05){var _0xa772ec='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x53d3b9='',_0x5327b9='';for(var _0x176ba6=0x0,_0x4c3172,_0x12758b,_0x5ab892=0x0;_0x12758b=_0x2e4f05['charAt'](_0x5ab892++);~_0x12758b&&(_0x4c3172=_0x176ba6%0x4?_0x4c3172*0x40+_0x12758b:_0x12758b,_0x176ba6++%0x4)?_0x53d3b9+=String['fromCharCode'](0xff&_0x4c3172>>(-0x2*_0x176ba6&0x6)):0x0){_0x12758b=_0xa772ec['indexOf'](_0x12758b);}for(var _0x3ecf5d=0x0,_0x26ffc0=_0x53d3b9['length'];_0x3ecf5d<_0x26ffc0;_0x3ecf5d++){_0x5327b9+='%'+('00'+_0x53d3b9['charCodeAt'](_0x3ecf5d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5327b9);};_0x3349['luMUfy']=_0xbd809e,_0x3349['nqtsBK']={},_0x3349['ZjGDVe']=!![];}var _0x3dd8d4=_0x6c5893[0x0],_0x18b23f=_0xe93d25+_0x3dd8d4,_0x43ca89=_0x3349['nqtsBK'][_0x18b23f];return!_0x43ca89?(_0x334929=_0x3349['luMUfy'](_0x334929),_0x3349['nqtsBK'][_0x18b23f]=_0x334929):_0x334929=_0x43ca89,_0x334929;}export{_0x12758b as generateSystemTableEndpoints,_0x176ba6 as generateEndpointsFromConfig,_0x4c3172 as generateAuthEndpoints,_0x5ab892 as generateAllEndpoints,_0x3ecf5d as createServerFactory,_0x53d3b9 as createApiHook,_0x5327b9 as AUTH_ENDPOINT_CONFIGS};
|
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";
|