monorise 2.0.0-dev.2 → 2.0.0-dev.4
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/cli/cli.js +1 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +85 -14
- package/dist/core/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/react/actions/core.action.d.ts +24 -70
- package/dist/react/actions/core.action.d.ts.map +1 -1
- package/dist/react/index.d.ts +47 -138
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +32 -19
- package/dist/react/index.js.map +1 -1
- package/dist/react/types/api.type.d.ts +12 -0
- package/dist/react/types/api.type.d.ts.map +1 -1
- package/dist/sst/components/monorise-core.d.ts.map +1 -1
- package/dist/sst/components/q-function.d.ts +4 -0
- package/dist/sst/components/q-function.d.ts.map +1 -1
- package/dist/sst/components/single-table.d.ts.map +1 -1
- package/dist/sst/index.js +40 -16
- package/dist/sst/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -30,50 +30,38 @@ declare const Monorise: {
|
|
|
30
30
|
};
|
|
31
31
|
useEntityFeed: (opts: import("./actions/websocket.action").UseEntityFeedOptions) => import("./actions/websocket.action").UseEntityFeedReturn;
|
|
32
32
|
listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
33
|
-
error:
|
|
34
|
-
originalError?: unknown;
|
|
35
|
-
};
|
|
33
|
+
error: import(".").RequestError;
|
|
36
34
|
} | undefined>;
|
|
37
35
|
createEntity: <T extends Entity>(entityType: T, entity: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
38
36
|
data: import("../base/index").CreatedEntity<T>;
|
|
39
37
|
error?: undefined;
|
|
40
38
|
} | {
|
|
41
|
-
error:
|
|
42
|
-
originalError?: unknown;
|
|
43
|
-
};
|
|
39
|
+
error: import(".").RequestError;
|
|
44
40
|
data?: undefined;
|
|
45
41
|
}>;
|
|
46
42
|
upsertEntity: <T extends Entity>(entityType: T, id: string, entity: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
47
43
|
data: import("../base/index").CreatedEntity<T>;
|
|
48
44
|
error?: undefined;
|
|
49
45
|
} | {
|
|
50
|
-
error:
|
|
51
|
-
originalError?: unknown;
|
|
52
|
-
};
|
|
46
|
+
error: import(".").RequestError;
|
|
53
47
|
data?: undefined;
|
|
54
48
|
}>;
|
|
55
49
|
getEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
56
50
|
data?: import("../base/index").CreatedEntity<T>;
|
|
57
|
-
error?: import("./types/api.type").ApplicationRequestError | (
|
|
58
|
-
originalError?: unknown;
|
|
59
|
-
});
|
|
51
|
+
error?: import("./types/api.type").ApplicationRequestError | import(".").RequestError;
|
|
60
52
|
}>;
|
|
61
53
|
editEntity: <T extends Entity>(entityType: T, id: string, entity: Partial<import("../base/index").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
62
54
|
data: import("../base/index").CreatedEntity<T>;
|
|
63
55
|
error?: undefined;
|
|
64
56
|
} | {
|
|
65
|
-
error:
|
|
66
|
-
originalError?: unknown;
|
|
67
|
-
};
|
|
57
|
+
error: import(".").RequestError;
|
|
68
58
|
data?: undefined;
|
|
69
59
|
}>;
|
|
70
60
|
adjustEntity: <T extends Entity>(entityType: T, id: string, adjustments: Record<string, number>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
71
61
|
data: import("../base/index").CreatedEntity<T>;
|
|
72
62
|
error?: undefined;
|
|
73
63
|
} | {
|
|
74
|
-
error:
|
|
75
|
-
originalError?: unknown;
|
|
76
|
-
};
|
|
64
|
+
error: import(".").RequestError;
|
|
77
65
|
data?: undefined;
|
|
78
66
|
}>;
|
|
79
67
|
deleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
@@ -82,18 +70,14 @@ declare const Monorise: {
|
|
|
82
70
|
};
|
|
83
71
|
error?: undefined;
|
|
84
72
|
} | {
|
|
85
|
-
error:
|
|
86
|
-
originalError?: unknown;
|
|
87
|
-
};
|
|
73
|
+
error: import(".").RequestError;
|
|
88
74
|
data?: undefined;
|
|
89
75
|
}>;
|
|
90
76
|
executeTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
91
77
|
data: import(".").TransactionResult;
|
|
92
78
|
error?: undefined;
|
|
93
79
|
} | {
|
|
94
|
-
error:
|
|
95
|
-
originalError?: unknown;
|
|
96
|
-
};
|
|
80
|
+
error: import(".").RequestError;
|
|
97
81
|
data?: undefined;
|
|
98
82
|
}>;
|
|
99
83
|
getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
|
|
@@ -105,9 +89,7 @@ declare const Monorise: {
|
|
|
105
89
|
data: Mutual<B, T>;
|
|
106
90
|
error?: undefined;
|
|
107
91
|
} | {
|
|
108
|
-
error:
|
|
109
|
-
originalError?: unknown;
|
|
110
|
-
};
|
|
92
|
+
error: import(".").RequestError;
|
|
111
93
|
data?: undefined;
|
|
112
94
|
}>;
|
|
113
95
|
updateLocalEntity: <T extends Entity>(entityType: Entity, entityId: string, data?: Partial<import("../base/index").DraftEntity<T>>) => Promise<void>;
|
|
@@ -115,9 +97,7 @@ declare const Monorise: {
|
|
|
115
97
|
data: Mutual<B, T>;
|
|
116
98
|
error?: undefined;
|
|
117
99
|
} | {
|
|
118
|
-
error:
|
|
119
|
-
originalError?: unknown;
|
|
120
|
-
};
|
|
100
|
+
error: import(".").RequestError;
|
|
121
101
|
data?: undefined;
|
|
122
102
|
}>;
|
|
123
103
|
createLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data: import("../base/index").EntitySchemaMap[T] | Record<string, any>) => Promise<void>;
|
|
@@ -126,18 +106,14 @@ declare const Monorise: {
|
|
|
126
106
|
data: Mutual<B, T>;
|
|
127
107
|
error?: undefined;
|
|
128
108
|
} | {
|
|
129
|
-
error:
|
|
130
|
-
originalError?: unknown;
|
|
131
|
-
};
|
|
109
|
+
error: import(".").RequestError;
|
|
132
110
|
data?: undefined;
|
|
133
111
|
}>;
|
|
134
112
|
deleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId?: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
135
113
|
data: any;
|
|
136
114
|
error?: undefined;
|
|
137
115
|
} | {
|
|
138
|
-
error:
|
|
139
|
-
originalError?: unknown;
|
|
140
|
-
};
|
|
116
|
+
error: import(".").RequestError;
|
|
141
117
|
data?: undefined;
|
|
142
118
|
}>;
|
|
143
119
|
deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void;
|
|
@@ -150,9 +126,7 @@ declare const Monorise: {
|
|
|
150
126
|
data: import("../base/index").CreatedEntity<T>;
|
|
151
127
|
error?: undefined;
|
|
152
128
|
} | {
|
|
153
|
-
error:
|
|
154
|
-
originalError?: unknown;
|
|
155
|
-
};
|
|
129
|
+
error: import(".").RequestError;
|
|
156
130
|
data?: undefined;
|
|
157
131
|
}>;
|
|
158
132
|
};
|
|
@@ -165,9 +139,7 @@ declare const Monorise: {
|
|
|
165
139
|
data: import("../base/index").CreatedEntity<T>;
|
|
166
140
|
error?: undefined;
|
|
167
141
|
} | {
|
|
168
|
-
error:
|
|
169
|
-
originalError?: unknown;
|
|
170
|
-
};
|
|
142
|
+
error: import(".").RequestError;
|
|
171
143
|
data?: undefined;
|
|
172
144
|
}>;
|
|
173
145
|
};
|
|
@@ -180,9 +152,7 @@ declare const Monorise: {
|
|
|
180
152
|
data: import("../base/index").CreatedEntity<T>;
|
|
181
153
|
error?: undefined;
|
|
182
154
|
} | {
|
|
183
|
-
error:
|
|
184
|
-
originalError?: unknown;
|
|
185
|
-
};
|
|
155
|
+
error: import(".").RequestError;
|
|
186
156
|
data?: undefined;
|
|
187
157
|
}>;
|
|
188
158
|
};
|
|
@@ -195,9 +165,7 @@ declare const Monorise: {
|
|
|
195
165
|
data: import("../base/index").CreatedEntity<T>;
|
|
196
166
|
error?: undefined;
|
|
197
167
|
} | {
|
|
198
|
-
error:
|
|
199
|
-
originalError?: unknown;
|
|
200
|
-
};
|
|
168
|
+
error: import(".").RequestError;
|
|
201
169
|
data?: undefined;
|
|
202
170
|
}>;
|
|
203
171
|
};
|
|
@@ -212,9 +180,7 @@ declare const Monorise: {
|
|
|
212
180
|
};
|
|
213
181
|
error?: undefined;
|
|
214
182
|
} | {
|
|
215
|
-
error:
|
|
216
|
-
originalError?: unknown;
|
|
217
|
-
};
|
|
183
|
+
error: import(".").RequestError;
|
|
218
184
|
data?: undefined;
|
|
219
185
|
}>;
|
|
220
186
|
};
|
|
@@ -227,9 +193,7 @@ declare const Monorise: {
|
|
|
227
193
|
data: import(".").TransactionResult;
|
|
228
194
|
error?: undefined;
|
|
229
195
|
} | {
|
|
230
|
-
error:
|
|
231
|
-
originalError?: unknown;
|
|
232
|
-
};
|
|
196
|
+
error: import(".").RequestError;
|
|
233
197
|
data?: undefined;
|
|
234
198
|
}>;
|
|
235
199
|
};
|
|
@@ -242,9 +206,7 @@ declare const Monorise: {
|
|
|
242
206
|
data: Mutual<B, T>;
|
|
243
207
|
error?: undefined;
|
|
244
208
|
} | {
|
|
245
|
-
error:
|
|
246
|
-
originalError?: unknown;
|
|
247
|
-
};
|
|
209
|
+
error: import(".").RequestError;
|
|
248
210
|
data?: undefined;
|
|
249
211
|
}>;
|
|
250
212
|
};
|
|
@@ -257,9 +219,7 @@ declare const Monorise: {
|
|
|
257
219
|
data: Mutual<B, T>;
|
|
258
220
|
error?: undefined;
|
|
259
221
|
} | {
|
|
260
|
-
error:
|
|
261
|
-
originalError?: unknown;
|
|
262
|
-
};
|
|
222
|
+
error: import(".").RequestError;
|
|
263
223
|
data?: undefined;
|
|
264
224
|
}>;
|
|
265
225
|
};
|
|
@@ -272,9 +232,7 @@ declare const Monorise: {
|
|
|
272
232
|
data: any;
|
|
273
233
|
error?: undefined;
|
|
274
234
|
} | {
|
|
275
|
-
error:
|
|
276
|
-
originalError?: unknown;
|
|
277
|
-
};
|
|
235
|
+
error: import(".").RequestError;
|
|
278
236
|
data?: undefined;
|
|
279
237
|
}>;
|
|
280
238
|
};
|
|
@@ -363,9 +321,7 @@ declare const Monorise: {
|
|
|
363
321
|
};
|
|
364
322
|
error?: undefined;
|
|
365
323
|
} | {
|
|
366
|
-
error:
|
|
367
|
-
originalError?: unknown;
|
|
368
|
-
};
|
|
324
|
+
error: import(".").RequestError;
|
|
369
325
|
data?: undefined;
|
|
370
326
|
} | undefined>;
|
|
371
327
|
listMore: () => Promise<{
|
|
@@ -384,9 +340,7 @@ declare const Monorise: {
|
|
|
384
340
|
};
|
|
385
341
|
error?: undefined;
|
|
386
342
|
} | {
|
|
387
|
-
error:
|
|
388
|
-
originalError?: unknown;
|
|
389
|
-
};
|
|
343
|
+
error: import(".").RequestError;
|
|
390
344
|
data?: undefined;
|
|
391
345
|
} | undefined>;
|
|
392
346
|
};
|
|
@@ -936,40 +890,30 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
936
890
|
name: string | null;
|
|
937
891
|
context?: unknown;
|
|
938
892
|
}, listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
939
|
-
error:
|
|
940
|
-
originalError?: unknown;
|
|
941
|
-
};
|
|
893
|
+
error: import(".").RequestError;
|
|
942
894
|
} | undefined>, createEntity: <T extends Entity>(entityType: T, entity: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
943
895
|
data: import("../base/index").CreatedEntity<T>;
|
|
944
896
|
error?: undefined;
|
|
945
897
|
} | {
|
|
946
|
-
error:
|
|
947
|
-
originalError?: unknown;
|
|
948
|
-
};
|
|
898
|
+
error: import(".").RequestError;
|
|
949
899
|
data?: undefined;
|
|
950
900
|
}>, upsertEntity: <T extends Entity>(entityType: T, id: string, entity: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
951
901
|
data: import("../base/index").CreatedEntity<T>;
|
|
952
902
|
error?: undefined;
|
|
953
903
|
} | {
|
|
954
|
-
error:
|
|
955
|
-
originalError?: unknown;
|
|
956
|
-
};
|
|
904
|
+
error: import(".").RequestError;
|
|
957
905
|
data?: undefined;
|
|
958
906
|
}>, editEntity: <T extends Entity>(entityType: T, id: string, entity: Partial<import("../base/index").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
959
907
|
data: import("../base/index").CreatedEntity<T>;
|
|
960
908
|
error?: undefined;
|
|
961
909
|
} | {
|
|
962
|
-
error:
|
|
963
|
-
originalError?: unknown;
|
|
964
|
-
};
|
|
910
|
+
error: import(".").RequestError;
|
|
965
911
|
data?: undefined;
|
|
966
912
|
}>, adjustEntity: <T extends Entity>(entityType: T, id: string, adjustments: Record<string, number>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
967
913
|
data: import("../base/index").CreatedEntity<T>;
|
|
968
914
|
error?: undefined;
|
|
969
915
|
} | {
|
|
970
|
-
error:
|
|
971
|
-
originalError?: unknown;
|
|
972
|
-
};
|
|
916
|
+
error: import(".").RequestError;
|
|
973
917
|
data?: undefined;
|
|
974
918
|
}>, updateLocalEntity: <T extends Entity>(entityType: Entity, entityId: string, data?: Partial<import("../base/index").DraftEntity<T>>) => Promise<void>, deleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
975
919
|
data: {
|
|
@@ -977,17 +921,13 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
977
921
|
};
|
|
978
922
|
error?: undefined;
|
|
979
923
|
} | {
|
|
980
|
-
error:
|
|
981
|
-
originalError?: unknown;
|
|
982
|
-
};
|
|
924
|
+
error: import(".").RequestError;
|
|
983
925
|
data?: undefined;
|
|
984
926
|
}>, executeTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
985
927
|
data: import(".").TransactionResult;
|
|
986
928
|
error?: undefined;
|
|
987
929
|
} | {
|
|
988
|
-
error:
|
|
989
|
-
originalError?: unknown;
|
|
990
|
-
};
|
|
930
|
+
error: import(".").RequestError;
|
|
991
931
|
data?: undefined;
|
|
992
932
|
}>, getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
|
|
993
933
|
defaultMutualData?: Record<string, any>;
|
|
@@ -998,33 +938,25 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
998
938
|
data: Mutual<B, T>;
|
|
999
939
|
error?: undefined;
|
|
1000
940
|
} | {
|
|
1001
|
-
error:
|
|
1002
|
-
originalError?: unknown;
|
|
1003
|
-
};
|
|
941
|
+
error: import(".").RequestError;
|
|
1004
942
|
data?: undefined;
|
|
1005
943
|
}>, createMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1006
944
|
data: Mutual<B, T>;
|
|
1007
945
|
error?: undefined;
|
|
1008
946
|
} | {
|
|
1009
|
-
error:
|
|
1010
|
-
originalError?: unknown;
|
|
1011
|
-
};
|
|
947
|
+
error: import(".").RequestError;
|
|
1012
948
|
data?: undefined;
|
|
1013
949
|
}>, createLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data: import("../base/index").EntitySchemaMap[T] | Record<string, any>) => Promise<void>, upsertLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: MutualData<B, T>, data?: import("../base/index").EntitySchemaMap[T] | Record<string, any>) => Promise<void>, editMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1014
950
|
data: Mutual<B, T>;
|
|
1015
951
|
error?: undefined;
|
|
1016
952
|
} | {
|
|
1017
|
-
error:
|
|
1018
|
-
originalError?: unknown;
|
|
1019
|
-
};
|
|
953
|
+
error: import(".").RequestError;
|
|
1020
954
|
data?: undefined;
|
|
1021
955
|
}>, deleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId?: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1022
956
|
data: any;
|
|
1023
957
|
error?: undefined;
|
|
1024
958
|
} | {
|
|
1025
|
-
error:
|
|
1026
|
-
originalError?: unknown;
|
|
1027
|
-
};
|
|
959
|
+
error: import(".").RequestError;
|
|
1028
960
|
data?: undefined;
|
|
1029
961
|
}>, 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) => {
|
|
1030
962
|
isLoading: boolean;
|
|
@@ -1035,9 +967,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1035
967
|
data: import("../base/index").CreatedEntity<T>;
|
|
1036
968
|
error?: undefined;
|
|
1037
969
|
} | {
|
|
1038
|
-
error:
|
|
1039
|
-
originalError?: unknown;
|
|
1040
|
-
};
|
|
970
|
+
error: import(".").RequestError;
|
|
1041
971
|
data?: undefined;
|
|
1042
972
|
}>;
|
|
1043
973
|
}, useUpsertEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1049,9 +979,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1049
979
|
data: import("../base/index").CreatedEntity<T>;
|
|
1050
980
|
error?: undefined;
|
|
1051
981
|
} | {
|
|
1052
|
-
error:
|
|
1053
|
-
originalError?: unknown;
|
|
1054
|
-
};
|
|
982
|
+
error: import(".").RequestError;
|
|
1055
983
|
data?: undefined;
|
|
1056
984
|
}>;
|
|
1057
985
|
}, useEditEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1063,9 +991,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1063
991
|
data: import("../base/index").CreatedEntity<T>;
|
|
1064
992
|
error?: undefined;
|
|
1065
993
|
} | {
|
|
1066
|
-
error:
|
|
1067
|
-
originalError?: unknown;
|
|
1068
|
-
};
|
|
994
|
+
error: import(".").RequestError;
|
|
1069
995
|
data?: undefined;
|
|
1070
996
|
}>;
|
|
1071
997
|
}, useAdjustEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1077,9 +1003,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1077
1003
|
data: import("../base/index").CreatedEntity<T>;
|
|
1078
1004
|
error?: undefined;
|
|
1079
1005
|
} | {
|
|
1080
|
-
error:
|
|
1081
|
-
originalError?: unknown;
|
|
1082
|
-
};
|
|
1006
|
+
error: import(".").RequestError;
|
|
1083
1007
|
data?: undefined;
|
|
1084
1008
|
}>;
|
|
1085
1009
|
}, useDeleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1093,9 +1017,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1093
1017
|
};
|
|
1094
1018
|
error?: undefined;
|
|
1095
1019
|
} | {
|
|
1096
|
-
error:
|
|
1097
|
-
originalError?: unknown;
|
|
1098
|
-
};
|
|
1020
|
+
error: import(".").RequestError;
|
|
1099
1021
|
data?: undefined;
|
|
1100
1022
|
}>;
|
|
1101
1023
|
}, useExecuteTransaction: (operations: import(".").TransactionOperation[], opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1107,9 +1029,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1107
1029
|
data: import(".").TransactionResult;
|
|
1108
1030
|
error?: undefined;
|
|
1109
1031
|
} | {
|
|
1110
|
-
error:
|
|
1111
|
-
originalError?: unknown;
|
|
1112
|
-
};
|
|
1032
|
+
error: import(".").RequestError;
|
|
1113
1033
|
data?: undefined;
|
|
1114
1034
|
}>;
|
|
1115
1035
|
}, useCreateMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1121,9 +1041,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1121
1041
|
data: Mutual<B, T>;
|
|
1122
1042
|
error?: undefined;
|
|
1123
1043
|
} | {
|
|
1124
|
-
error:
|
|
1125
|
-
originalError?: unknown;
|
|
1126
|
-
};
|
|
1044
|
+
error: import(".").RequestError;
|
|
1127
1045
|
data?: undefined;
|
|
1128
1046
|
}>;
|
|
1129
1047
|
}, useEditMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1135,9 +1053,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1135
1053
|
data: Mutual<B, T>;
|
|
1136
1054
|
error?: undefined;
|
|
1137
1055
|
} | {
|
|
1138
|
-
error:
|
|
1139
|
-
originalError?: unknown;
|
|
1140
|
-
};
|
|
1056
|
+
error: import(".").RequestError;
|
|
1141
1057
|
data?: undefined;
|
|
1142
1058
|
}>;
|
|
1143
1059
|
}, useDeleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1149,9 +1065,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1149
1065
|
data: any;
|
|
1150
1066
|
error?: undefined;
|
|
1151
1067
|
} | {
|
|
1152
|
-
error:
|
|
1153
|
-
originalError?: unknown;
|
|
1154
|
-
};
|
|
1068
|
+
error: import(".").RequestError;
|
|
1155
1069
|
data?: undefined;
|
|
1156
1070
|
}>;
|
|
1157
1071
|
}, useEntity: <T extends Entity>(entityType: T, id?: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
@@ -1234,9 +1148,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1234
1148
|
};
|
|
1235
1149
|
error?: undefined;
|
|
1236
1150
|
} | {
|
|
1237
|
-
error:
|
|
1238
|
-
originalError?: unknown;
|
|
1239
|
-
};
|
|
1151
|
+
error: import(".").RequestError;
|
|
1240
1152
|
data?: undefined;
|
|
1241
1153
|
} | undefined>;
|
|
1242
1154
|
listMore: () => Promise<{
|
|
@@ -1255,16 +1167,12 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
1255
1167
|
};
|
|
1256
1168
|
error?: undefined;
|
|
1257
1169
|
} | {
|
|
1258
|
-
error:
|
|
1259
|
-
originalError?: unknown;
|
|
1260
|
-
};
|
|
1170
|
+
error: import(".").RequestError;
|
|
1261
1171
|
data?: undefined;
|
|
1262
1172
|
} | undefined>;
|
|
1263
1173
|
}, useEntityState: <T extends Entity>(entityType: T) => Record<Entity, import("./types/monorise.type").CommonStore<import("../base/index").CreatedEntity<Entity>>>[T], getEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<{
|
|
1264
1174
|
data?: import("../base/index").CreatedEntity<T>;
|
|
1265
|
-
error?: import("./types/api.type").ApplicationRequestError | (
|
|
1266
|
-
originalError?: unknown;
|
|
1267
|
-
});
|
|
1175
|
+
error?: import("./types/api.type").ApplicationRequestError | import(".").RequestError;
|
|
1268
1176
|
}>, updateLocalTaggedEntity: <T extends Entity>(entityType: T, entityId: string, tagName: string, data?: Partial<import("../base/index").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?: {
|
|
1269
1177
|
limit?: number;
|
|
1270
1178
|
skipInitialFetch?: boolean;
|
|
@@ -1283,4 +1191,5 @@ export { transactional } from './helpers/transactional';
|
|
|
1283
1191
|
export { MutualDataWithIndex, MutualDataMapping, MutualData, Mutual };
|
|
1284
1192
|
export type { CreatedEntity, DraftEntity, Entity, EntitySchemaMap, NumericFields, } from '../base/index';
|
|
1285
1193
|
export type { TransactionOperation, TransactionResult, TransactionResultEntry, } from './helpers/transactional';
|
|
1194
|
+
export type { RequestError } from './types/api.type';
|
|
1286
1195
|
//# 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;AAI3C,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;AAIrB,OAAO,EACL,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,KAAK,OAAO,CAAC,CAAC,SAAS,M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