@monorise/react 8.3.2 → 8.4.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.
- package/dist/actions/core.action.d.ts +138 -1
- package/dist/actions/core.action.d.ts.map +1 -1
- package/dist/helpers/transactional.d.ts +2 -0
- package/dist/helpers/transactional.d.ts.map +1 -1
- package/dist/index.d.ts +277 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +424 -137
- package/dist/index.js.map +1 -1
- package/dist/lib/api.d.ts +1 -0
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +6 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/services/core.service.d.ts.map +1 -1
- package/dist/types/axios.type.d.ts +2 -0
- package/dist/types/axios.type.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CreatedEntity, DraftEntity, Entity, EntitySchemaMap } from '@monorise/base';
|
|
2
|
+
import { type TransactionOperation } from '../helpers/transactional';
|
|
2
3
|
import type { CommonOptions, CoreService, ListEntitiesByTagParams } from '../services/core.service';
|
|
3
4
|
import type { MonoriseStore } from '../store/monorise.store';
|
|
4
5
|
import type { ApplicationRequestError } from '../types/api.type';
|
|
5
6
|
import type { CommonStore } from '../types/monorise.type';
|
|
6
7
|
import type { Mutual, MutualData } from '../types/mutual.type';
|
|
7
8
|
import type { AppActions } from './app.action';
|
|
8
|
-
import { type TransactionOperation } from '../helpers/transactional';
|
|
9
9
|
declare const initCoreActions: (monoriseStore: MonoriseStore, appActions: AppActions, coreService: CoreService) => {
|
|
10
10
|
listMoreEntities: <T extends Entity>(entityType: T, opts?: CommonOptions) => Promise<{
|
|
11
11
|
error: Error & {
|
|
@@ -119,6 +119,143 @@ declare const initCoreActions: (monoriseStore: MonoriseStore, appActions: AppAct
|
|
|
119
119
|
data?: undefined;
|
|
120
120
|
}>;
|
|
121
121
|
deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void;
|
|
122
|
+
useCreateEntity: <T extends Entity>(entityType: T, opts?: CommonOptions) => {
|
|
123
|
+
isLoading: boolean;
|
|
124
|
+
error: ApplicationRequestError | undefined;
|
|
125
|
+
requestKey: string;
|
|
126
|
+
clearError: () => void;
|
|
127
|
+
mutate: (entity: DraftEntity<T>, mutateOpts?: CommonOptions) => Promise<{
|
|
128
|
+
data: CreatedEntity<T>;
|
|
129
|
+
error?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
error: Error & {
|
|
132
|
+
originalError?: unknown;
|
|
133
|
+
};
|
|
134
|
+
data?: undefined;
|
|
135
|
+
}>;
|
|
136
|
+
};
|
|
137
|
+
useUpsertEntity: <T extends Entity>(entityType: T, id: string, opts?: CommonOptions) => {
|
|
138
|
+
isLoading: boolean;
|
|
139
|
+
error: ApplicationRequestError | undefined;
|
|
140
|
+
requestKey: string;
|
|
141
|
+
clearError: () => void;
|
|
142
|
+
mutate: (entity: DraftEntity<T>, mutateOpts?: CommonOptions) => Promise<{
|
|
143
|
+
data: CreatedEntity<T>;
|
|
144
|
+
error?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
error: Error & {
|
|
147
|
+
originalError?: unknown;
|
|
148
|
+
};
|
|
149
|
+
data?: undefined;
|
|
150
|
+
}>;
|
|
151
|
+
};
|
|
152
|
+
useEditEntity: <T extends Entity>(entityType: T, id: string, opts?: CommonOptions) => {
|
|
153
|
+
isLoading: boolean;
|
|
154
|
+
error: ApplicationRequestError | undefined;
|
|
155
|
+
requestKey: string;
|
|
156
|
+
clearError: () => void;
|
|
157
|
+
mutate: (entity: Partial<DraftEntity<T>>, mutateOpts?: CommonOptions) => Promise<{
|
|
158
|
+
data: CreatedEntity<T>;
|
|
159
|
+
error?: undefined;
|
|
160
|
+
} | {
|
|
161
|
+
error: Error & {
|
|
162
|
+
originalError?: unknown;
|
|
163
|
+
};
|
|
164
|
+
data?: undefined;
|
|
165
|
+
}>;
|
|
166
|
+
};
|
|
167
|
+
useAdjustEntity: <T extends Entity>(entityType: T, id: string, opts?: CommonOptions) => {
|
|
168
|
+
isLoading: boolean;
|
|
169
|
+
error: ApplicationRequestError | undefined;
|
|
170
|
+
requestKey: string;
|
|
171
|
+
clearError: () => void;
|
|
172
|
+
mutate: (adjustments: Record<string, number>, mutateOpts?: CommonOptions) => Promise<{
|
|
173
|
+
data: CreatedEntity<T>;
|
|
174
|
+
error?: undefined;
|
|
175
|
+
} | {
|
|
176
|
+
error: Error & {
|
|
177
|
+
originalError?: unknown;
|
|
178
|
+
};
|
|
179
|
+
data?: undefined;
|
|
180
|
+
}>;
|
|
181
|
+
};
|
|
182
|
+
useDeleteEntity: <T extends Entity>(entityType: T, id: string, opts?: CommonOptions) => {
|
|
183
|
+
isLoading: boolean;
|
|
184
|
+
error: ApplicationRequestError | undefined;
|
|
185
|
+
requestKey: string;
|
|
186
|
+
clearError: () => void;
|
|
187
|
+
mutate: (mutateOpts?: CommonOptions) => Promise<{
|
|
188
|
+
data: {
|
|
189
|
+
entityId: string;
|
|
190
|
+
};
|
|
191
|
+
error?: undefined;
|
|
192
|
+
} | {
|
|
193
|
+
error: Error & {
|
|
194
|
+
originalError?: unknown;
|
|
195
|
+
};
|
|
196
|
+
data?: undefined;
|
|
197
|
+
}>;
|
|
198
|
+
};
|
|
199
|
+
useExecuteTransaction: (operations: TransactionOperation[], opts?: CommonOptions) => {
|
|
200
|
+
isLoading: boolean;
|
|
201
|
+
error: ApplicationRequestError | undefined;
|
|
202
|
+
requestKey: string;
|
|
203
|
+
clearError: () => void;
|
|
204
|
+
mutate: (mutateOpts?: CommonOptions) => Promise<{
|
|
205
|
+
data: import("..").TransactionResult;
|
|
206
|
+
error?: undefined;
|
|
207
|
+
} | {
|
|
208
|
+
error: Error & {
|
|
209
|
+
originalError?: unknown;
|
|
210
|
+
};
|
|
211
|
+
data?: undefined;
|
|
212
|
+
}>;
|
|
213
|
+
};
|
|
214
|
+
useCreateMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: CommonOptions) => {
|
|
215
|
+
isLoading: boolean;
|
|
216
|
+
error: ApplicationRequestError | undefined;
|
|
217
|
+
requestKey: string;
|
|
218
|
+
clearError: () => void;
|
|
219
|
+
mutate: (payload?: MutualData<B, T> | Record<string, any>, mutateOpts?: CommonOptions) => Promise<{
|
|
220
|
+
data: Mutual<B, T>;
|
|
221
|
+
error?: undefined;
|
|
222
|
+
} | {
|
|
223
|
+
error: Error & {
|
|
224
|
+
originalError?: unknown;
|
|
225
|
+
};
|
|
226
|
+
data?: undefined;
|
|
227
|
+
}>;
|
|
228
|
+
};
|
|
229
|
+
useEditMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: CommonOptions) => {
|
|
230
|
+
isLoading: boolean;
|
|
231
|
+
error: ApplicationRequestError | undefined;
|
|
232
|
+
requestKey: string;
|
|
233
|
+
clearError: () => void;
|
|
234
|
+
mutate: (payload?: MutualData<B, T> | Record<string, any>, mutateOpts?: CommonOptions) => Promise<{
|
|
235
|
+
data: Mutual<B, T>;
|
|
236
|
+
error?: undefined;
|
|
237
|
+
} | {
|
|
238
|
+
error: Error & {
|
|
239
|
+
originalError?: unknown;
|
|
240
|
+
};
|
|
241
|
+
data?: undefined;
|
|
242
|
+
}>;
|
|
243
|
+
};
|
|
244
|
+
useDeleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: CommonOptions) => {
|
|
245
|
+
isLoading: boolean;
|
|
246
|
+
error: ApplicationRequestError | undefined;
|
|
247
|
+
requestKey: string;
|
|
248
|
+
clearError: () => void;
|
|
249
|
+
mutate: (mutateOpts?: CommonOptions) => Promise<{
|
|
250
|
+
data: any;
|
|
251
|
+
error?: undefined;
|
|
252
|
+
} | {
|
|
253
|
+
error: Error & {
|
|
254
|
+
originalError?: unknown;
|
|
255
|
+
};
|
|
256
|
+
data?: undefined;
|
|
257
|
+
}>;
|
|
258
|
+
};
|
|
122
259
|
useEntity: <T extends Entity>(entityType: T, id?: string, opts?: CommonOptions) => {
|
|
123
260
|
entity: CreatedEntity<T> | undefined;
|
|
124
261
|
isLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.action.d.ts","sourceRoot":"","sources":["../../actions/core.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,MAAM,EACN,eAAe,EAChB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"core.action.d.ts","sourceRoot":"","sources":["../../actions/core.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,MAAM,EACN,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAEL,KAAK,oBAAoB,EAI1B,MAAM,0BAA0B,CAAC;AAkBlC,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAc/C,QAAA,MAAM,eAAe,GACnB,eAAe,aAAa,EAC5B,YAAY,UAAU,EACtB,aAAa,WAAW;uBAmFQ,CAAC,SAAS,MAAM,cAClC,CAAC,SACP,aAAa;;4BA2CsB,OAAO;;;mBA2RtB,CAAC,SAAS,MAAM,cAC9B,CAAC,UACL,WAAW,CAAC,CAAC,CAAC,SAChB,aAAa;;;;;4BA8FsB,OAAO;;;;mBAStB,CAAC,SAAS,MAAM,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CAAA;KAAE;;qBAuChC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;gCArnEd,OAAO;;;;;;;;;;;;;;;;;;;;;gCAAP,OAAO;;;;;qBA+oE1B,CAAC,SAAS,MAAM,cAAc,CAAC;8BAItB,CAAC,SAAS,MAAM,cACnC,CAAC,YACH,MAAM,WACP,MAAM,SACT,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WACpB,uBAAuB;8BAuBD,CAAC,SAAS,MAAM,cACnC,CAAC,YACH,MAAM,WACP,MAAM,WACN,uBAAuB;CAuDnC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -65,6 +65,8 @@ export type TransactionResult = {
|
|
|
65
65
|
results: TransactionResultEntry[];
|
|
66
66
|
};
|
|
67
67
|
export declare const getTransactionOperationRequestKey: (op: TransactionOperation) => string;
|
|
68
|
+
export declare const getTransactionOperationRequestKeys: (op: TransactionOperation) => string[];
|
|
69
|
+
export declare const getTransactionRequestKey: (operations: TransactionOperation[]) => string;
|
|
68
70
|
export declare const createTransactionCallRequestKey: (operations: TransactionOperation[]) => string;
|
|
69
71
|
export declare const transactional: {
|
|
70
72
|
createEntity: <T extends Entity>(entityType: T, payload: EntitySchemaMap[T] & {
|
|
@@ -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;
|
|
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;AAO9D,MAAM,MAAM,u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,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,gBACjC,CAAC,cACH,CAAC,cACD,MAAM,YACR,MAAM,WACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC/B,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC;mBASjB,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,gBACjC,CAAC,cACH,CAAC,cACD,MAAM,YACR,MAAM,KACf,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC;CAOjC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,143 @@ declare const Monorise: {
|
|
|
142
142
|
data?: undefined;
|
|
143
143
|
}>;
|
|
144
144
|
deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void;
|
|
145
|
+
useCreateEntity: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => {
|
|
146
|
+
isLoading: boolean;
|
|
147
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
148
|
+
requestKey: string;
|
|
149
|
+
clearError: () => void;
|
|
150
|
+
mutate: (entity: import("@monorise/base").DraftEntity<T>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
151
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
152
|
+
error?: undefined;
|
|
153
|
+
} | {
|
|
154
|
+
error: Error & {
|
|
155
|
+
originalError?: unknown;
|
|
156
|
+
};
|
|
157
|
+
data?: undefined;
|
|
158
|
+
}>;
|
|
159
|
+
};
|
|
160
|
+
useUpsertEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
161
|
+
isLoading: boolean;
|
|
162
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
163
|
+
requestKey: string;
|
|
164
|
+
clearError: () => void;
|
|
165
|
+
mutate: (entity: import("@monorise/base").DraftEntity<T>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
166
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
167
|
+
error?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
error: Error & {
|
|
170
|
+
originalError?: unknown;
|
|
171
|
+
};
|
|
172
|
+
data?: undefined;
|
|
173
|
+
}>;
|
|
174
|
+
};
|
|
175
|
+
useEditEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
176
|
+
isLoading: boolean;
|
|
177
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
178
|
+
requestKey: string;
|
|
179
|
+
clearError: () => void;
|
|
180
|
+
mutate: (entity: Partial<import("@monorise/base").DraftEntity<T>>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
181
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
182
|
+
error?: undefined;
|
|
183
|
+
} | {
|
|
184
|
+
error: Error & {
|
|
185
|
+
originalError?: unknown;
|
|
186
|
+
};
|
|
187
|
+
data?: undefined;
|
|
188
|
+
}>;
|
|
189
|
+
};
|
|
190
|
+
useAdjustEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
191
|
+
isLoading: boolean;
|
|
192
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
193
|
+
requestKey: string;
|
|
194
|
+
clearError: () => void;
|
|
195
|
+
mutate: (adjustments: Record<string, number>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
196
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
197
|
+
error?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
error: Error & {
|
|
200
|
+
originalError?: unknown;
|
|
201
|
+
};
|
|
202
|
+
data?: undefined;
|
|
203
|
+
}>;
|
|
204
|
+
};
|
|
205
|
+
useDeleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
206
|
+
isLoading: boolean;
|
|
207
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
208
|
+
requestKey: string;
|
|
209
|
+
clearError: () => void;
|
|
210
|
+
mutate: (mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
211
|
+
data: {
|
|
212
|
+
entityId: string;
|
|
213
|
+
};
|
|
214
|
+
error?: undefined;
|
|
215
|
+
} | {
|
|
216
|
+
error: Error & {
|
|
217
|
+
originalError?: unknown;
|
|
218
|
+
};
|
|
219
|
+
data?: undefined;
|
|
220
|
+
}>;
|
|
221
|
+
};
|
|
222
|
+
useExecuteTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => {
|
|
223
|
+
isLoading: boolean;
|
|
224
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
225
|
+
requestKey: string;
|
|
226
|
+
clearError: () => void;
|
|
227
|
+
mutate: (mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
228
|
+
data: import(".").TransactionResult;
|
|
229
|
+
error?: undefined;
|
|
230
|
+
} | {
|
|
231
|
+
error: Error & {
|
|
232
|
+
originalError?: unknown;
|
|
233
|
+
};
|
|
234
|
+
data?: undefined;
|
|
235
|
+
}>;
|
|
236
|
+
};
|
|
237
|
+
useCreateMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
238
|
+
isLoading: boolean;
|
|
239
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
240
|
+
requestKey: string;
|
|
241
|
+
clearError: () => void;
|
|
242
|
+
mutate: (payload?: MutualData<B, T> | Record<string, any>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
243
|
+
data: Mutual<B, T>;
|
|
244
|
+
error?: undefined;
|
|
245
|
+
} | {
|
|
246
|
+
error: Error & {
|
|
247
|
+
originalError?: unknown;
|
|
248
|
+
};
|
|
249
|
+
data?: undefined;
|
|
250
|
+
}>;
|
|
251
|
+
};
|
|
252
|
+
useEditMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
253
|
+
isLoading: boolean;
|
|
254
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
255
|
+
requestKey: string;
|
|
256
|
+
clearError: () => void;
|
|
257
|
+
mutate: (payload?: MutualData<B, T> | Record<string, any>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
258
|
+
data: Mutual<B, T>;
|
|
259
|
+
error?: undefined;
|
|
260
|
+
} | {
|
|
261
|
+
error: Error & {
|
|
262
|
+
originalError?: unknown;
|
|
263
|
+
};
|
|
264
|
+
data?: undefined;
|
|
265
|
+
}>;
|
|
266
|
+
};
|
|
267
|
+
useDeleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
268
|
+
isLoading: boolean;
|
|
269
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
270
|
+
requestKey: string;
|
|
271
|
+
clearError: () => void;
|
|
272
|
+
mutate: (mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
273
|
+
data: any;
|
|
274
|
+
error?: undefined;
|
|
275
|
+
} | {
|
|
276
|
+
error: Error & {
|
|
277
|
+
originalError?: unknown;
|
|
278
|
+
};
|
|
279
|
+
data?: undefined;
|
|
280
|
+
}>;
|
|
281
|
+
};
|
|
145
282
|
useEntity: <T extends Entity>(entityType: T, id?: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
146
283
|
entity: import("@monorise/base").CreatedEntity<T> | undefined;
|
|
147
284
|
isLoading: boolean;
|
|
@@ -471,6 +608,7 @@ declare const Monorise: {
|
|
|
471
608
|
axios: {
|
|
472
609
|
post: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
473
610
|
requestKey: string;
|
|
611
|
+
stateKeys?: string[];
|
|
474
612
|
isInterruptive?: boolean;
|
|
475
613
|
feedback?: {
|
|
476
614
|
loading?: string | boolean;
|
|
@@ -480,6 +618,7 @@ declare const Monorise: {
|
|
|
480
618
|
}) => Promise<R>;
|
|
481
619
|
put: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
482
620
|
requestKey: string;
|
|
621
|
+
stateKeys?: string[];
|
|
483
622
|
isInterruptive?: boolean;
|
|
484
623
|
feedback?: {
|
|
485
624
|
loading?: string | boolean;
|
|
@@ -489,6 +628,7 @@ declare const Monorise: {
|
|
|
489
628
|
}) => Promise<R>;
|
|
490
629
|
patch: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
491
630
|
requestKey: string;
|
|
631
|
+
stateKeys?: string[];
|
|
492
632
|
isInterruptive?: boolean;
|
|
493
633
|
feedback?: {
|
|
494
634
|
loading?: string | boolean;
|
|
@@ -498,6 +638,7 @@ declare const Monorise: {
|
|
|
498
638
|
}) => Promise<R>;
|
|
499
639
|
delete: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
500
640
|
requestKey: string;
|
|
641
|
+
stateKeys?: string[];
|
|
501
642
|
isInterruptive?: boolean;
|
|
502
643
|
feedback?: {
|
|
503
644
|
loading?: string | boolean;
|
|
@@ -507,6 +648,7 @@ declare const Monorise: {
|
|
|
507
648
|
}) => Promise<R>;
|
|
508
649
|
get: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
509
650
|
requestKey: string;
|
|
651
|
+
stateKeys?: string[];
|
|
510
652
|
isInterruptive?: boolean;
|
|
511
653
|
feedback?: {
|
|
512
654
|
loading?: string | boolean;
|
|
@@ -776,6 +918,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
776
918
|
}>, axios: {
|
|
777
919
|
post: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
778
920
|
requestKey: string;
|
|
921
|
+
stateKeys?: string[];
|
|
779
922
|
isInterruptive?: boolean;
|
|
780
923
|
feedback?: {
|
|
781
924
|
loading?: string | boolean;
|
|
@@ -785,6 +928,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
785
928
|
}) => Promise<R>;
|
|
786
929
|
put: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
787
930
|
requestKey: string;
|
|
931
|
+
stateKeys?: string[];
|
|
788
932
|
isInterruptive?: boolean;
|
|
789
933
|
feedback?: {
|
|
790
934
|
loading?: string | boolean;
|
|
@@ -794,6 +938,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
794
938
|
}) => Promise<R>;
|
|
795
939
|
patch: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
796
940
|
requestKey: string;
|
|
941
|
+
stateKeys?: string[];
|
|
797
942
|
isInterruptive?: boolean;
|
|
798
943
|
feedback?: {
|
|
799
944
|
loading?: string | boolean;
|
|
@@ -803,6 +948,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
803
948
|
}) => Promise<R>;
|
|
804
949
|
delete: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
805
950
|
requestKey: string;
|
|
951
|
+
stateKeys?: string[];
|
|
806
952
|
isInterruptive?: boolean;
|
|
807
953
|
feedback?: {
|
|
808
954
|
loading?: string | boolean;
|
|
@@ -812,6 +958,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
812
958
|
}) => Promise<R>;
|
|
813
959
|
get: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
814
960
|
requestKey: string;
|
|
961
|
+
stateKeys?: string[];
|
|
815
962
|
isInterruptive?: boolean;
|
|
816
963
|
feedback?: {
|
|
817
964
|
loading?: string | boolean;
|
|
@@ -1041,7 +1188,135 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1041
1188
|
originalError?: unknown;
|
|
1042
1189
|
};
|
|
1043
1190
|
data?: undefined;
|
|
1044
|
-
}>, deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void,
|
|
1191
|
+
}>, deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void, useCreateEntity: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => {
|
|
1192
|
+
isLoading: boolean;
|
|
1193
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1194
|
+
requestKey: string;
|
|
1195
|
+
clearError: () => void;
|
|
1196
|
+
mutate: (entity: import("@monorise/base").DraftEntity<T>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1197
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
1198
|
+
error?: undefined;
|
|
1199
|
+
} | {
|
|
1200
|
+
error: Error & {
|
|
1201
|
+
originalError?: unknown;
|
|
1202
|
+
};
|
|
1203
|
+
data?: undefined;
|
|
1204
|
+
}>;
|
|
1205
|
+
}, useUpsertEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1206
|
+
isLoading: boolean;
|
|
1207
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1208
|
+
requestKey: string;
|
|
1209
|
+
clearError: () => void;
|
|
1210
|
+
mutate: (entity: import("@monorise/base").DraftEntity<T>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1211
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
1212
|
+
error?: undefined;
|
|
1213
|
+
} | {
|
|
1214
|
+
error: Error & {
|
|
1215
|
+
originalError?: unknown;
|
|
1216
|
+
};
|
|
1217
|
+
data?: undefined;
|
|
1218
|
+
}>;
|
|
1219
|
+
}, useEditEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1220
|
+
isLoading: boolean;
|
|
1221
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1222
|
+
requestKey: string;
|
|
1223
|
+
clearError: () => void;
|
|
1224
|
+
mutate: (entity: Partial<import("@monorise/base").DraftEntity<T>>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1225
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
1226
|
+
error?: undefined;
|
|
1227
|
+
} | {
|
|
1228
|
+
error: Error & {
|
|
1229
|
+
originalError?: unknown;
|
|
1230
|
+
};
|
|
1231
|
+
data?: undefined;
|
|
1232
|
+
}>;
|
|
1233
|
+
}, useAdjustEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1234
|
+
isLoading: boolean;
|
|
1235
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1236
|
+
requestKey: string;
|
|
1237
|
+
clearError: () => void;
|
|
1238
|
+
mutate: (adjustments: Record<string, number>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1239
|
+
data: import("@monorise/base").CreatedEntity<T>;
|
|
1240
|
+
error?: undefined;
|
|
1241
|
+
} | {
|
|
1242
|
+
error: Error & {
|
|
1243
|
+
originalError?: unknown;
|
|
1244
|
+
};
|
|
1245
|
+
data?: undefined;
|
|
1246
|
+
}>;
|
|
1247
|
+
}, useDeleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1248
|
+
isLoading: boolean;
|
|
1249
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1250
|
+
requestKey: string;
|
|
1251
|
+
clearError: () => void;
|
|
1252
|
+
mutate: (mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1253
|
+
data: {
|
|
1254
|
+
entityId: string;
|
|
1255
|
+
};
|
|
1256
|
+
error?: undefined;
|
|
1257
|
+
} | {
|
|
1258
|
+
error: Error & {
|
|
1259
|
+
originalError?: unknown;
|
|
1260
|
+
};
|
|
1261
|
+
data?: undefined;
|
|
1262
|
+
}>;
|
|
1263
|
+
}, useExecuteTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => {
|
|
1264
|
+
isLoading: boolean;
|
|
1265
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1266
|
+
requestKey: string;
|
|
1267
|
+
clearError: () => void;
|
|
1268
|
+
mutate: (mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1269
|
+
data: import(".").TransactionResult;
|
|
1270
|
+
error?: undefined;
|
|
1271
|
+
} | {
|
|
1272
|
+
error: Error & {
|
|
1273
|
+
originalError?: unknown;
|
|
1274
|
+
};
|
|
1275
|
+
data?: undefined;
|
|
1276
|
+
}>;
|
|
1277
|
+
}, useCreateMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1278
|
+
isLoading: boolean;
|
|
1279
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1280
|
+
requestKey: string;
|
|
1281
|
+
clearError: () => void;
|
|
1282
|
+
mutate: (payload?: MutualData<B, T> | Record<string, any>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1283
|
+
data: Mutual<B, T>;
|
|
1284
|
+
error?: undefined;
|
|
1285
|
+
} | {
|
|
1286
|
+
error: Error & {
|
|
1287
|
+
originalError?: unknown;
|
|
1288
|
+
};
|
|
1289
|
+
data?: undefined;
|
|
1290
|
+
}>;
|
|
1291
|
+
}, useEditMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1292
|
+
isLoading: boolean;
|
|
1293
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1294
|
+
requestKey: string;
|
|
1295
|
+
clearError: () => void;
|
|
1296
|
+
mutate: (payload?: MutualData<B, T> | Record<string, any>, mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1297
|
+
data: Mutual<B, T>;
|
|
1298
|
+
error?: undefined;
|
|
1299
|
+
} | {
|
|
1300
|
+
error: Error & {
|
|
1301
|
+
originalError?: unknown;
|
|
1302
|
+
};
|
|
1303
|
+
data?: undefined;
|
|
1304
|
+
}>;
|
|
1305
|
+
}, useDeleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1306
|
+
isLoading: boolean;
|
|
1307
|
+
error: import("./types/api.type").ApplicationRequestError | undefined;
|
|
1308
|
+
requestKey: string;
|
|
1309
|
+
clearError: () => void;
|
|
1310
|
+
mutate: (mutateOpts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1311
|
+
data: any;
|
|
1312
|
+
error?: undefined;
|
|
1313
|
+
} | {
|
|
1314
|
+
error: Error & {
|
|
1315
|
+
originalError?: unknown;
|
|
1316
|
+
};
|
|
1317
|
+
data?: undefined;
|
|
1318
|
+
}>;
|
|
1319
|
+
}, useEntity: <T extends Entity>(entityType: T, id?: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
1045
1320
|
entity: import("@monorise/base").CreatedEntity<T> | undefined;
|
|
1046
1321
|
isLoading: boolean;
|
|
1047
1322
|
error?: import("./types/api.type").ApplicationRequestError;
|
|
@@ -1164,7 +1439,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1164
1439
|
isSubscribed: boolean;
|
|
1165
1440
|
send: (data: T) => void;
|
|
1166
1441
|
}, 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, };
|
|
1442
|
+
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, useCreateEntity, useUpsertEntity, useEditEntity, useAdjustEntity, useDeleteEntity, useExecuteTransaction, useCreateMutual, useEditMutual, useDeleteMutual, 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, };
|
|
1168
1443
|
export default Monorise;
|
|
1169
1444
|
export { transactional } from './helpers/transactional';
|
|
1170
1445
|
export { MutualDataWithIndex, MutualDataMapping, MutualData, Mutual };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;AAK3C,OAAO,EAEL,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAKrB,OAAO,EACL,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,KAAK,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,CAAC,CAAC,EACf,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAC1B,eAAe,EACX,CAAC,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,MA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