@monorise/react 8.0.0 → 8.2.0

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.
@@ -25,6 +25,19 @@ export type TransactionDeleteEntity<T extends Entity = Entity> = {
25
25
  entityId: string;
26
26
  };
27
27
  export type TransactionOperation = TransactionCreateEntity | TransactionUpdateEntity | TransactionAdjustEntity | TransactionDeleteEntity;
28
+ export type TransactionResultEntry<T extends Entity = Entity> = {
29
+ operation: TransactionOperation['operation'];
30
+ entityType: T;
31
+ entityId: string;
32
+ data?: Record<string, unknown>;
33
+ createdAt?: string;
34
+ updatedAt?: string;
35
+ };
36
+ export type TransactionResult = {
37
+ results: TransactionResultEntry[];
38
+ };
39
+ export declare const getTransactionOperationRequestKey: (op: TransactionOperation) => string;
40
+ export declare const getTransactionCallRequestKey: (operations: TransactionOperation[]) => string;
28
41
  export declare const transactional: {
29
42
  createEntity: <T extends Entity>(entityType: T, payload: EntitySchemaMap[T] & {
30
43
  entityId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"transactional.d.ts","sourceRoot":"","sources":["../../helpers/transactional.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC/D,SAAS,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,CAAC,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC/D,SAAS,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,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9D,SAAS,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAC7C,UAAU,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC,CAAC;AAOF,eAAO,MAAM,iCAAiC,GAC5C,IAAI,oBAAoB,KACvB,MAWF,CAAC;AAUF,eAAO,MAAM,4BAA4B,GACvC,YAAY,oBAAoB,EAAE,KACjC,MAAsF,CAAC;AAK1F,eAAO,MAAM,aAAa;mBACT,CAAC,SAAS,MAAM,cACjB,CAAC,WACJ,eAAe,CAAC,CAAC,CAAC,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,KAClD,uBAAuB,CAAC,CAAC,CAAC;mBAYd,CAAC,SAAS,MAAM,cACjB,CAAC,YACH,MAAM,WACP,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAC7D,uBAAuB,CAAC,CAAC,CAAC;mBAad,CAAC,SAAS,MAAM,cACjB,CAAC,YACH,MAAM,eACH,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAC5D,uBAAuB,CAAC,CAAC,CAAC;mBAWd,CAAC,SAAS,MAAM,cACjB,CAAC,YACH,MAAM,KACf,uBAAuB,CAAC,CAAC,CAAC;CAK9B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { Entity, MonoriseEntityConfig } from '@monorise/base';
2
2
  import type { AxiosResponse } from 'axios';
3
+ import { initializeWebSocketManager, getWebSocketManager } from './actions/websocket.action';
4
+ import { WebSocketManager, type ConnectionState, type ClientMessage, type ServerMessage } from './websocket';
3
5
  import { getEntityRequestKey, getMutualRequestKey, getTagRequestKey, getUniqueFieldRequestKey } from './lib/utils';
4
6
  import { Mutual, MutualData, MutualDataMapping, MutualDataWithIndex } from './types/mutual.type';
5
7
  type Options<T extends Record<string, React.ComponentType<any>>> = {
@@ -13,6 +15,21 @@ type Options<T extends Record<string, React.ComponentType<any>>> = {
13
15
  onApiSuccess?: <T>(response: AxiosResponse<T>, feedbackSuccess: ((data: AxiosResponse<T>['data']) => React.ReactNode) | string | boolean) => void;
14
16
  };
15
17
  declare const Monorise: {
18
+ useEntitySocket: <T extends Entity>(entityType: T, opts?: {
19
+ limit?: number;
20
+ skipInitialFetch?: boolean;
21
+ }) => import("./actions/websocket.action").UseEntitySocketReturn<T>;
22
+ useMutualSocket: <B extends Entity, T extends Entity>(byEntityType: B, byEntityId: string | undefined, mutualEntityType: T, opts?: {
23
+ limit?: number;
24
+ skipInitialFetch?: boolean;
25
+ }) => import("./actions/websocket.action").UseMutualSocketReturn<T>;
26
+ useEphemeralSocket: <T = unknown>(channel: string | undefined, opts?: {
27
+ onMessage?: (data: T, senderId?: string) => void;
28
+ }) => {
29
+ isSubscribed: boolean;
30
+ send: (data: T) => void;
31
+ };
32
+ useEntityFeed: (opts: import("./actions/websocket.action").UseEntityFeedOptions) => import("./actions/websocket.action").UseEntityFeedReturn;
16
33
  listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<{
17
34
  error: Error & {
18
35
  originalError?: unknown;
@@ -71,6 +88,15 @@ declare const Monorise: {
71
88
  };
72
89
  data?: undefined;
73
90
  }>;
91
+ executeTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<{
92
+ data: import(".").TransactionResult;
93
+ error?: undefined;
94
+ } | {
95
+ error: Error & {
96
+ originalError?: unknown;
97
+ };
98
+ data?: undefined;
99
+ }>;
74
100
  getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
75
101
  defaultMutualData?: Record<string, any>;
76
102
  }) => Promise<{
@@ -251,11 +277,12 @@ declare const Monorise: {
251
277
  requestKey: string;
252
278
  isInterruptive?: boolean;
253
279
  message?: string | boolean;
254
- request: Promise<T>;
280
+ request?: Promise<T> | undefined;
255
281
  }) => void;
256
- endLoading: ({ requestKey, isInterruptive }: {
282
+ endLoading: ({ requestKey, isInterruptive, skipDedupe, }: {
257
283
  requestKey: string;
258
284
  isInterruptive?: boolean;
285
+ skipDedupe?: boolean;
259
286
  }) => void;
260
287
  setError: ({ requestKey, error }: {
261
288
  requestKey: string;
@@ -283,8 +310,8 @@ declare const Monorise: {
283
310
  modals?: Record<string, React.ComponentType<unknown>>;
284
311
  }) => void;
285
312
  setConfig: (config: Record<Entity, MonoriseEntityConfig>) => void;
286
- getConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>;
287
- useConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>;
313
+ getConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined, undefined>>;
314
+ useConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined, undefined>>;
288
315
  config: <T extends Record<string, React.ComponentType<any>>>(opts: Options<T>) => void;
289
316
  store: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<{
290
317
  app: {
@@ -583,7 +610,8 @@ declare const Monorise: {
583
610
  editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
584
611
  deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
585
612
  };
586
- transaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
613
+ executeTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import(".").TransactionResult, any, {}>>;
614
+ transaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import(".").TransactionResult, any, {}>>;
587
615
  setOptions: (opts: {
588
616
  entityApiBaseUrl?: string;
589
617
  mutualApiBaseUrl?: string;
@@ -884,20 +912,22 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
884
912
  editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
885
913
  deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
886
914
  };
887
- transaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
915
+ executeTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import(".").TransactionResult, any, {}>>;
916
+ transaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import(".").TransactionResult, any, {}>>;
888
917
  setOptions: (opts: {
889
918
  entityApiBaseUrl?: string;
890
919
  mutualApiBaseUrl?: string;
891
920
  tagApiBaseUrl?: string;
892
921
  }) => void;
893
- }, setConfig: (config: Record<Entity, MonoriseEntityConfig>) => void, getConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>, useConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined>>, startLoading: <T>({ requestKey, isInterruptive, message, request, }: {
922
+ }, setConfig: (config: Record<Entity, MonoriseEntityConfig>) => void, getConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined, undefined>>, useConfig: () => Record<Entity, MonoriseEntityConfig<Entity, import("zod").ZodRawShape, import("zod").ZodRawShape, import("zod").ZodRawShape, undefined, undefined, undefined>>, startLoading: <T>({ requestKey, isInterruptive, message, request, }: {
894
923
  requestKey: string;
895
924
  isInterruptive?: boolean;
896
925
  message?: string | boolean;
897
- request: Promise<T>;
898
- }) => void, endLoading: ({ requestKey, isInterruptive }: {
926
+ request?: Promise<T> | undefined;
927
+ }) => void, endLoading: ({ requestKey, isInterruptive, skipDedupe, }: {
899
928
  requestKey: string;
900
929
  isInterruptive?: boolean;
930
+ skipDedupe?: boolean;
901
931
  }) => void, setError: ({ requestKey, error }: {
902
932
  requestKey: string;
903
933
  error: import("./types/api.type").ApplicationRequestError;
@@ -966,6 +996,14 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
966
996
  originalError?: unknown;
967
997
  };
968
998
  data?: undefined;
999
+ }>, executeTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<{
1000
+ data: import(".").TransactionResult;
1001
+ error?: undefined;
1002
+ } | {
1003
+ error: Error & {
1004
+ originalError?: unknown;
1005
+ };
1006
+ data?: undefined;
969
1007
  }>, getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
970
1008
  defaultMutualData?: Record<string, any>;
971
1009
  }) => Promise<{
@@ -1114,11 +1152,22 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
1114
1152
  error?: import("./types/api.type").ApplicationRequestError | (Error & {
1115
1153
  originalError?: unknown;
1116
1154
  });
1117
- }>, updateLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, data?: Partial<import("@monorise/base").DraftEntity<T>>, params?: import("./services/core.service").ListEntitiesByTagParams) => void, deleteLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, params?: import("./services/core.service").ListEntitiesByTagParams) => void;
1118
- export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, logout, listMoreEntities, createEntity, upsertEntity, editEntity, adjustEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, createLocalMutual, upsertLocalMutual, editMutual, deleteMutual, deleteLocalMutual, useEntity, useEntityByUniqueField, useEntities, useMutual, useMutuals, useTaggedEntities, useEntityState, getEntityRequestKey, getMutualRequestKey, getTagRequestKey, getUniqueFieldRequestKey, getEntity, updateLocalTaggedEntity, deleteLocalTaggedEntity, };
1155
+ }>, updateLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, data?: Partial<import("@monorise/base").DraftEntity<T>>, params?: import("./services/core.service").ListEntitiesByTagParams) => void, deleteLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, params?: import("./services/core.service").ListEntitiesByTagParams) => void, useEntitySocket: <T extends Entity>(entityType: T, opts?: {
1156
+ limit?: number;
1157
+ skipInitialFetch?: boolean;
1158
+ }) => import("./actions/websocket.action").UseEntitySocketReturn<T>, useMutualSocket: <B extends Entity, T extends Entity>(byEntityType: B, byEntityId: string | undefined, mutualEntityType: T, opts?: {
1159
+ limit?: number;
1160
+ skipInitialFetch?: boolean;
1161
+ }) => import("./actions/websocket.action").UseMutualSocketReturn<T>, useEphemeralSocket: <T = unknown>(channel: string | undefined, opts?: {
1162
+ onMessage?: (data: T, senderId?: string) => void;
1163
+ }) => {
1164
+ isSubscribed: boolean;
1165
+ send: (data: T) => void;
1166
+ }, useEntityFeed: (opts: import("./actions/websocket.action").UseEntityFeedOptions) => import("./actions/websocket.action").UseEntityFeedReturn;
1167
+ export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, logout, listMoreEntities, createEntity, upsertEntity, editEntity, adjustEntity, updateLocalEntity, deleteEntity, executeTransaction, getMutual, createMutual, createLocalMutual, upsertLocalMutual, editMutual, deleteMutual, deleteLocalMutual, useEntity, useEntityByUniqueField, useEntities, useMutual, useMutuals, useTaggedEntities, useEntityState, getEntityRequestKey, getMutualRequestKey, getTagRequestKey, getUniqueFieldRequestKey, getEntity, updateLocalTaggedEntity, deleteLocalTaggedEntity, useEntitySocket, useMutualSocket, useEphemeralSocket, useEntityFeed, initializeWebSocketManager, getWebSocketManager, WebSocketManager, type ConnectionState, type ClientMessage, type ServerMessage, };
1119
1168
  export default Monorise;
1120
1169
  export { transactional } from './helpers/transactional';
1121
1170
  export { MutualDataWithIndex, MutualDataMapping, MutualData, Mutual };
1122
1171
  export type { CreatedEntity, DraftEntity, Entity, EntitySchemaMap, NumericFields, } from '@monorise/base';
1123
- export type { TransactionOperation } from './helpers/transactional';
1172
+ export type { TransactionOperation, TransactionResult, TransactionResultEntry, } from './helpers/transactional';
1124
1173
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACzB,M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