@elqnt/entity 1.0.0 → 1.0.5
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/chunk-4GC36G4D.js +184 -0
- package/dist/chunk-4GC36G4D.js.map +1 -0
- package/dist/chunk-LIACJMHV.mjs +184 -0
- package/dist/chunk-LIACJMHV.mjs.map +1 -0
- package/dist/index.d.mts +9 -606
- package/dist/index.d.ts +9 -606
- package/dist/index.js +242 -385
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -108
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +602 -0
- package/dist/models/index.d.ts +602 -0
- package/dist/models/index.js +148 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/index.mjs +148 -0
- package/dist/models/index.mjs.map +1 -0
- package/package.json +6 -1
package/dist/index.js
CHANGED
|
@@ -1,237 +1,95 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
EntityViewCreated: () => EntityViewCreated,
|
|
76
|
-
EntityViewDelete: () => EntityViewDelete,
|
|
77
|
-
EntityViewDeleted: () => EntityViewDeleted,
|
|
78
|
-
EntityViewList: () => EntityViewList,
|
|
79
|
-
EntityViewUpdate: () => EntityViewUpdate,
|
|
80
|
-
EntityViewUpdated: () => EntityViewUpdated,
|
|
81
|
-
OperatorBetween: () => OperatorBetween,
|
|
82
|
-
OperatorContains: () => OperatorContains,
|
|
83
|
-
OperatorEmpty: () => OperatorEmpty,
|
|
84
|
-
OperatorEndsWith: () => OperatorEndsWith,
|
|
85
|
-
OperatorEq: () => OperatorEq,
|
|
86
|
-
OperatorExists: () => OperatorExists,
|
|
87
|
-
OperatorGt: () => OperatorGt,
|
|
88
|
-
OperatorGte: () => OperatorGte,
|
|
89
|
-
OperatorIn: () => OperatorIn,
|
|
90
|
-
OperatorLt: () => OperatorLt,
|
|
91
|
-
OperatorLte: () => OperatorLte,
|
|
92
|
-
OperatorNe: () => OperatorNe,
|
|
93
|
-
OperatorNin: () => OperatorNin,
|
|
94
|
-
OperatorStartsWith: () => OperatorStartsWith,
|
|
95
|
-
PREDEFINED_COLORS: () => PREDEFINED_COLORS,
|
|
96
|
-
RecordChangeActionCreated: () => RecordChangeActionCreated,
|
|
97
|
-
RecordChangeActionDeleted: () => RecordChangeActionDeleted,
|
|
98
|
-
RecordChangeActionUpdated: () => RecordChangeActionUpdated,
|
|
99
|
-
entityDefinitionReducer: () => entityDefinitionReducer,
|
|
100
|
-
entityRecordReducer: () => entityRecordReducer,
|
|
101
|
-
useDebounce: () => useDebounce,
|
|
102
|
-
useEntityDefinition: () => useEntityDefinition,
|
|
103
|
-
useEntityDefinitionContext: () => useEntityDefinitionContext,
|
|
104
|
-
useEntityDefinitionDetails: () => useEntityDefinitionDetails,
|
|
105
|
-
useEntityRecord: () => useEntityRecord,
|
|
106
|
-
useEntityRecordContext: () => useEntityRecordContext
|
|
107
|
-
});
|
|
108
|
-
module.exports = __toCommonJS(index_exports);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
var _chunk4GC36G4Djs = require('./chunk-4GC36G4D.js');
|
|
109
75
|
|
|
110
76
|
// context/entity-definition-context.tsx
|
|
111
|
-
var
|
|
77
|
+
var _react = require('react');
|
|
112
78
|
|
|
113
79
|
// hooks/use-entity-definition.ts
|
|
114
|
-
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
// models/entity.ts
|
|
119
|
-
var OperatorEq = "eq";
|
|
120
|
-
var OperatorNe = "ne";
|
|
121
|
-
var OperatorGt = "gt";
|
|
122
|
-
var OperatorGte = "gte";
|
|
123
|
-
var OperatorLt = "lt";
|
|
124
|
-
var OperatorLte = "lte";
|
|
125
|
-
var OperatorIn = "in";
|
|
126
|
-
var OperatorNin = "nin";
|
|
127
|
-
var OperatorContains = "contains";
|
|
128
|
-
var OperatorStartsWith = "startsWith";
|
|
129
|
-
var OperatorEndsWith = "endsWith";
|
|
130
|
-
var OperatorExists = "exists";
|
|
131
|
-
var OperatorEmpty = "empty";
|
|
132
|
-
var OperatorBetween = "between";
|
|
133
|
-
var EntityFilterOperators = {
|
|
134
|
-
eq: { value: "eq", label: "Equal to" },
|
|
135
|
-
ne: { value: "ne", label: "Not equal to" },
|
|
136
|
-
gt: { value: "gt", label: "Greater than" },
|
|
137
|
-
gte: { value: "gte", label: "Greater than or equal to" },
|
|
138
|
-
lt: { value: "lt", label: "Less than" },
|
|
139
|
-
lte: { value: "lte", label: "Less than or equal to" },
|
|
140
|
-
in: { value: "in", label: "In" },
|
|
141
|
-
nin: { value: "nin", label: "Not in" },
|
|
142
|
-
contains: { value: "contains", label: "Contains" },
|
|
143
|
-
startsWith: { value: "startsWith", label: "Starts with" },
|
|
144
|
-
endsWith: { value: "endsWith", label: "Ends with" },
|
|
145
|
-
exists: { value: "exists", label: "Exists" },
|
|
146
|
-
empty: { value: "empty", label: "Empty" },
|
|
147
|
-
between: { value: "between", label: "Between" }
|
|
148
|
-
};
|
|
149
|
-
var EntityFieldTypeString = "string";
|
|
150
|
-
var EntityFieldTypeStringMultiline = "stringMultiline";
|
|
151
|
-
var EntityFieldTypeText = "text";
|
|
152
|
-
var EntityFieldTypeInt = "int";
|
|
153
|
-
var EntityFieldTypeFloat = "float";
|
|
154
|
-
var EntityFieldTypeBool = "bool";
|
|
155
|
-
var EntityFieldTypeDate = "date";
|
|
156
|
-
var EntityFieldTypeDateTime = "datetime";
|
|
157
|
-
var EntityFieldTypeEmail = "email";
|
|
158
|
-
var EntityFieldTypePhone = "phone";
|
|
159
|
-
var EntityFieldTypeURL = "url";
|
|
160
|
-
var EntityFieldTypeDropdown = "dropdown";
|
|
161
|
-
var EntityFieldTypeMultiSelect = "multiselect";
|
|
162
|
-
var EntityFieldTypeLookup = "lookup";
|
|
163
|
-
var EntityFieldTypeMultiLookup = "multilookup";
|
|
164
|
-
var EntityFieldTypeCurrency = "currency";
|
|
165
|
-
var EntityFieldTypeFile = "file";
|
|
166
|
-
var EntityFieldTypeImage = "image";
|
|
167
|
-
var EntityFieldTypeJSON = "json";
|
|
168
|
-
var EntityFieldTypes = {
|
|
169
|
-
string: { value: "string", label: "Short Text" },
|
|
170
|
-
stringMultiline: { value: "stringMultiline", label: "Long Text" },
|
|
171
|
-
text: { value: "text", label: "Rich Text Editor" },
|
|
172
|
-
int: { value: "int", label: "Integer" },
|
|
173
|
-
float: { value: "float", label: "Decimal" },
|
|
174
|
-
bool: { value: "bool", label: "Boolean" },
|
|
175
|
-
date: { value: "date", label: "Date" },
|
|
176
|
-
datetime: { value: "datetime", label: "Date & Time" },
|
|
177
|
-
email: { value: "email", label: "Email" },
|
|
178
|
-
phone: { value: "phone", label: "Phone" },
|
|
179
|
-
url: { value: "url", label: "URL" },
|
|
180
|
-
dropdown: { value: "dropdown", label: "Dropdown" },
|
|
181
|
-
multiselect: { value: "multiselect", label: "Multi Select" },
|
|
182
|
-
lookup: { value: "lookup", label: "Lookup" },
|
|
183
|
-
multilookup: { value: "multilookup", label: "Multi Lookup" },
|
|
184
|
-
currency: { value: "currency", label: "Currency" },
|
|
185
|
-
file: { value: "file", label: "File" },
|
|
186
|
-
image: { value: "image", label: "Image" },
|
|
187
|
-
json: { value: "json", label: "JSON" }
|
|
188
|
-
};
|
|
189
|
-
var RecordChangeActionCreated = "created";
|
|
190
|
-
var RecordChangeActionUpdated = "updated";
|
|
191
|
-
var RecordChangeActionDeleted = "deleted";
|
|
192
|
-
var EntityOrgSchemaCreate = "entity.org.schema.create";
|
|
193
|
-
var EntityOrgSchemaDrop = "entity.org.schema.drop";
|
|
194
|
-
var EntityDefinitionCreate = "entity.definition.create";
|
|
195
|
-
var EntityDefinitionCreated = "entity.definition.created";
|
|
196
|
-
var EntityDefinitionUpdate = "entity.definition.update";
|
|
197
|
-
var EntityDefinitionGet = "entity.definition.get";
|
|
198
|
-
var EntityDefinitionGetServer = "entity.definition.get.server";
|
|
199
|
-
var EntityDefinitionList = "entity.definition.list";
|
|
200
|
-
var EntityDefinitionUpdated = "entity.definition.updated";
|
|
201
|
-
var EntityDefinitionDelete = "entity.definition.delete";
|
|
202
|
-
var EntityDefinitionDeleted = "entity.definition.deleted";
|
|
203
|
-
var EntityRecordCreate = "entity.record.create";
|
|
204
|
-
var EntityRecordCreated = "entity.record.created";
|
|
205
|
-
var EntityRecordGet = "entity.record.get";
|
|
206
|
-
var EntityRecordQuery = "entity.record.query";
|
|
207
|
-
var EntityRecordCount = "entity.record.count";
|
|
208
|
-
var EntityRecordUpdate = "entity.record.update";
|
|
209
|
-
var EntityRecordUpdated = "entity.record.updated";
|
|
210
|
-
var EntityRecordDelete = "entity.record.delete";
|
|
211
|
-
var EntityRecordDeleted = "entity.record.deleted";
|
|
212
|
-
var EntityRecordsBulkCreate = "entity.records.bulk.create";
|
|
213
|
-
var EntityRecordsBulkCreated = "entity.records.bulk.created";
|
|
214
|
-
var EntityRecordsBulkUpdate = "entity.records.bulk.update";
|
|
215
|
-
var EntityRecordsBulkUpdated = "entity.records.bulk.updated";
|
|
216
|
-
var EntityRecordsBulkDelete = "entity.records.bulk.delete";
|
|
217
|
-
var EntityRecordsBulkDeleted = "entity.records.bulk.deleted";
|
|
218
|
-
var EntityViewCreate = "entity.view.create";
|
|
219
|
-
var EntityViewCreated = "entity.view.created";
|
|
220
|
-
var EntityViewUpdate = "entity.view.update";
|
|
221
|
-
var EntityViewUpdated = "entity.view.updated";
|
|
222
|
-
var EntityViewDelete = "entity.view.delete";
|
|
223
|
-
var EntityViewDeleted = "entity.view.deleted";
|
|
224
|
-
var EntityViewList = "entity.view.list";
|
|
80
|
+
|
|
81
|
+
var _reactredux = require('react-redux');
|
|
82
|
+
var _nats = require('@elqnt/nats');
|
|
225
83
|
|
|
226
84
|
// store/entity-definition-slice.ts
|
|
227
|
-
var
|
|
85
|
+
var _toolkit = require('@reduxjs/toolkit');
|
|
228
86
|
var initialState = {
|
|
229
87
|
definitions: {},
|
|
230
88
|
views: {},
|
|
231
89
|
isLoading: false,
|
|
232
90
|
loadingStates: {}
|
|
233
91
|
};
|
|
234
|
-
var entityDefinitionSlice = (0,
|
|
92
|
+
var entityDefinitionSlice = _toolkit.createSlice.call(void 0, {
|
|
235
93
|
name: "entityDefinition",
|
|
236
94
|
initialState,
|
|
237
95
|
reducers: {
|
|
@@ -260,13 +118,13 @@ var entityDefinitionSlice = (0, import_toolkit.createSlice)({
|
|
|
260
118
|
updateDefinition: (state, action) => {
|
|
261
119
|
const definition = action.payload;
|
|
262
120
|
state.definitions[definition.name] = definition;
|
|
263
|
-
if (state.selectedDefinition
|
|
121
|
+
if (_optionalChain([state, 'access', _ => _.selectedDefinition, 'optionalAccess', _2 => _2.name]) === definition.name) {
|
|
264
122
|
state.selectedDefinition = definition;
|
|
265
123
|
}
|
|
266
124
|
},
|
|
267
125
|
removeDefinition: (state, action) => {
|
|
268
126
|
delete state.definitions[action.payload];
|
|
269
|
-
if (state.selectedDefinition
|
|
127
|
+
if (_optionalChain([state, 'access', _3 => _3.selectedDefinition, 'optionalAccess', _4 => _4.name]) === action.payload) {
|
|
270
128
|
state.selectedDefinition = void 0;
|
|
271
129
|
}
|
|
272
130
|
},
|
|
@@ -291,7 +149,7 @@ var entityDefinitionSlice = (0, import_toolkit.createSlice)({
|
|
|
291
149
|
const index = views.findIndex((v) => v.id === view.id);
|
|
292
150
|
if (index !== -1) {
|
|
293
151
|
views[index] = view;
|
|
294
|
-
if (state.selectedView
|
|
152
|
+
if (_optionalChain([state, 'access', _5 => _5.selectedView, 'optionalAccess', _6 => _6.id]) === view.id) {
|
|
295
153
|
state.selectedView = view;
|
|
296
154
|
}
|
|
297
155
|
}
|
|
@@ -302,7 +160,7 @@ var entityDefinitionSlice = (0, import_toolkit.createSlice)({
|
|
|
302
160
|
const views = state.views[entityName];
|
|
303
161
|
if (views) {
|
|
304
162
|
state.views[entityName] = views.filter((v) => v.id !== viewId);
|
|
305
|
-
if (state.selectedView
|
|
163
|
+
if (_optionalChain([state, 'access', _7 => _7.selectedView, 'optionalAccess', _8 => _8.id]) === viewId) {
|
|
306
164
|
state.selectedView = void 0;
|
|
307
165
|
}
|
|
308
166
|
}
|
|
@@ -331,38 +189,38 @@ var entityDefinitionReducer = entityDefinitionSlice.reducer;
|
|
|
331
189
|
|
|
332
190
|
// hooks/use-entity-definition.ts
|
|
333
191
|
function useEntityDefinition(orgId, entityName, options = {}) {
|
|
334
|
-
const { autoLoad, module
|
|
335
|
-
const { natsConnected, request } = (0,
|
|
336
|
-
const dispatch = (0,
|
|
337
|
-
const definitions = (0,
|
|
192
|
+
const { autoLoad, module } = options;
|
|
193
|
+
const { natsConnected, request } = _nats.useNatsContext.call(void 0, );
|
|
194
|
+
const dispatch = _reactredux.useDispatch.call(void 0, );
|
|
195
|
+
const definitions = _reactredux.useSelector.call(void 0,
|
|
338
196
|
(state) => state.entityDefinition.definitions
|
|
339
197
|
);
|
|
340
|
-
const selectedDefinition = (0,
|
|
198
|
+
const selectedDefinition = _reactredux.useSelector.call(void 0,
|
|
341
199
|
(state) => state.entityDefinition.selectedDefinition
|
|
342
200
|
);
|
|
343
|
-
const views = (0,
|
|
201
|
+
const views = _reactredux.useSelector.call(void 0,
|
|
344
202
|
(state) => state.entityDefinition.views
|
|
345
203
|
);
|
|
346
|
-
const selectedView = (0,
|
|
204
|
+
const selectedView = _reactredux.useSelector.call(void 0,
|
|
347
205
|
(state) => state.entityDefinition.selectedView
|
|
348
206
|
);
|
|
349
|
-
const isLoading = (0,
|
|
207
|
+
const isLoading = _reactredux.useSelector.call(void 0,
|
|
350
208
|
(state) => state.entityDefinition.isLoading
|
|
351
209
|
);
|
|
352
|
-
const loadingStates = (0,
|
|
210
|
+
const loadingStates = _reactredux.useSelector.call(void 0,
|
|
353
211
|
(state) => state.entityDefinition.loadingStates
|
|
354
212
|
);
|
|
355
|
-
const error = (0,
|
|
213
|
+
const error = _reactredux.useSelector.call(void 0,
|
|
356
214
|
(state) => state.entityDefinition.error
|
|
357
215
|
);
|
|
358
|
-
const createOrgSchema = (0,
|
|
216
|
+
const createOrgSchema = _react.useCallback.call(void 0,
|
|
359
217
|
async (targetOrgId) => {
|
|
360
218
|
if (!natsConnected) {
|
|
361
219
|
throw new Error("Not connected to NATS");
|
|
362
220
|
}
|
|
363
221
|
dispatch(setOperationLoading({ operation: "createOrgSchema", loading: true }));
|
|
364
222
|
try {
|
|
365
|
-
const response = await request(EntityOrgSchemaCreate, { orgId: targetOrgId });
|
|
223
|
+
const response = await request(_chunk4GC36G4Djs.EntityOrgSchemaCreate, { orgId: targetOrgId });
|
|
366
224
|
if (response instanceof Error) {
|
|
367
225
|
throw response;
|
|
368
226
|
}
|
|
@@ -373,14 +231,14 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
373
231
|
},
|
|
374
232
|
[natsConnected, dispatch, request]
|
|
375
233
|
);
|
|
376
|
-
const dropOrgSchema = (0,
|
|
234
|
+
const dropOrgSchema = _react.useCallback.call(void 0,
|
|
377
235
|
async (targetOrgId) => {
|
|
378
236
|
if (!natsConnected) {
|
|
379
237
|
throw new Error("Not connected to NATS");
|
|
380
238
|
}
|
|
381
239
|
dispatch(setOperationLoading({ operation: "dropOrgSchema", loading: true }));
|
|
382
240
|
try {
|
|
383
|
-
const response = await request(EntityOrgSchemaDrop, { orgId: targetOrgId });
|
|
241
|
+
const response = await request(_chunk4GC36G4Djs.EntityOrgSchemaDrop, { orgId: targetOrgId });
|
|
384
242
|
if (response instanceof Error) {
|
|
385
243
|
throw response;
|
|
386
244
|
}
|
|
@@ -391,17 +249,17 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
391
249
|
},
|
|
392
250
|
[natsConnected, dispatch, request]
|
|
393
251
|
);
|
|
394
|
-
const loadDefinitions = (0,
|
|
252
|
+
const loadDefinitions = _react.useCallback.call(void 0, async () => {
|
|
395
253
|
if (!natsConnected || !orgId) return;
|
|
396
254
|
const loadingKey = "loadDefinitions";
|
|
397
255
|
if (loadingStates[loadingKey]) return;
|
|
398
256
|
dispatch(setOperationLoading({ operation: loadingKey, loading: true }));
|
|
399
257
|
try {
|
|
400
|
-
const response = await request(EntityDefinitionList, { orgId, module
|
|
258
|
+
const response = await request(_chunk4GC36G4Djs.EntityDefinitionList, { orgId, module });
|
|
401
259
|
if (response instanceof Error) {
|
|
402
260
|
dispatch(setError(response.message));
|
|
403
261
|
} else {
|
|
404
|
-
dispatch(setDefinitions(response
|
|
262
|
+
dispatch(setDefinitions(_nullishCoalesce(_optionalChain([response, 'optionalAccess', _9 => _9.definitions]), () => ( []))));
|
|
405
263
|
}
|
|
406
264
|
} catch (err) {
|
|
407
265
|
dispatch(setError(err instanceof Error ? err.message : "Unknown error"));
|
|
@@ -409,7 +267,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
409
267
|
dispatch(setOperationLoading({ operation: loadingKey, loading: false }));
|
|
410
268
|
}
|
|
411
269
|
}, [natsConnected, orgId, options.module, dispatch, request]);
|
|
412
|
-
(0,
|
|
270
|
+
_react.useEffect.call(void 0, () => {
|
|
413
271
|
let mounted = true;
|
|
414
272
|
if (autoLoad && natsConnected && orgId && mounted) {
|
|
415
273
|
loadDefinitions();
|
|
@@ -418,14 +276,14 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
418
276
|
mounted = false;
|
|
419
277
|
};
|
|
420
278
|
}, [autoLoad, natsConnected, orgId]);
|
|
421
|
-
const loadDefinition = (0,
|
|
279
|
+
const loadDefinition = _react.useCallback.call(void 0,
|
|
422
280
|
async (name) => {
|
|
423
281
|
if (!natsConnected || !orgId) return;
|
|
424
282
|
dispatch(
|
|
425
283
|
setOperationLoading({ operation: `load_${name}`, loading: true })
|
|
426
284
|
);
|
|
427
285
|
try {
|
|
428
|
-
const response = await request(EntityDefinitionGet, { entityName: name, orgId }, {});
|
|
286
|
+
const response = await request(_chunk4GC36G4Djs.EntityDefinitionGet, { entityName: name, orgId }, {});
|
|
429
287
|
if (response instanceof Error) {
|
|
430
288
|
dispatch(setError(response.message));
|
|
431
289
|
return;
|
|
@@ -439,7 +297,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
439
297
|
},
|
|
440
298
|
[natsConnected, orgId, dispatch, request]
|
|
441
299
|
);
|
|
442
|
-
(0,
|
|
300
|
+
_react.useEffect.call(void 0, () => {
|
|
443
301
|
if (natsConnected && orgId && entityName) {
|
|
444
302
|
loadDefinition(entityName);
|
|
445
303
|
}
|
|
@@ -450,7 +308,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
450
308
|
}
|
|
451
309
|
dispatch(setOperationLoading({ operation: "create", loading: true }));
|
|
452
310
|
try {
|
|
453
|
-
const response = await request(EntityDefinitionCreate, { definition, orgId }, {});
|
|
311
|
+
const response = await request(_chunk4GC36G4Djs.EntityDefinitionCreate, { definition, orgId }, {});
|
|
454
312
|
if (response instanceof Error) {
|
|
455
313
|
console.error("createDefinition error", response);
|
|
456
314
|
throw response;
|
|
@@ -472,7 +330,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
472
330
|
);
|
|
473
331
|
try {
|
|
474
332
|
const response = await request(
|
|
475
|
-
EntityDefinitionUpdate,
|
|
333
|
+
_chunk4GC36G4Djs.EntityDefinitionUpdate,
|
|
476
334
|
{
|
|
477
335
|
entityName: name,
|
|
478
336
|
definition,
|
|
@@ -501,7 +359,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
501
359
|
setOperationLoading({ operation: `delete_${name}`, loading: true })
|
|
502
360
|
);
|
|
503
361
|
try {
|
|
504
|
-
const response = await request(EntityDefinitionDelete, { entityName: name, orgId }, {});
|
|
362
|
+
const response = await request(_chunk4GC36G4Djs.EntityDefinitionDelete, { entityName: name, orgId }, {});
|
|
505
363
|
if (response instanceof Error) {
|
|
506
364
|
throw response;
|
|
507
365
|
}
|
|
@@ -513,7 +371,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
513
371
|
);
|
|
514
372
|
}
|
|
515
373
|
};
|
|
516
|
-
const loadViews = (0,
|
|
374
|
+
const loadViews = _react.useCallback.call(void 0,
|
|
517
375
|
async (entityName2) => {
|
|
518
376
|
if (!natsConnected || !orgId) return;
|
|
519
377
|
const loadingKey = `loadViews_${entityName2}`;
|
|
@@ -521,7 +379,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
521
379
|
dispatch(setOperationLoading({ operation: loadingKey, loading: true }));
|
|
522
380
|
try {
|
|
523
381
|
const response = await request(
|
|
524
|
-
EntityViewList,
|
|
382
|
+
_chunk4GC36G4Djs.EntityViewList,
|
|
525
383
|
{ entityName: entityName2, orgId },
|
|
526
384
|
{}
|
|
527
385
|
);
|
|
@@ -550,7 +408,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
550
408
|
dispatch(setOperationLoading({ operation: "create_view", loading: true }));
|
|
551
409
|
try {
|
|
552
410
|
const response = await request(
|
|
553
|
-
EntityViewCreate,
|
|
411
|
+
_chunk4GC36G4Djs.EntityViewCreate,
|
|
554
412
|
{ entityName: entityName2, view, orgId },
|
|
555
413
|
{}
|
|
556
414
|
);
|
|
@@ -577,7 +435,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
577
435
|
);
|
|
578
436
|
try {
|
|
579
437
|
const response = await request(
|
|
580
|
-
EntityViewUpdate,
|
|
438
|
+
_chunk4GC36G4Djs.EntityViewUpdate,
|
|
581
439
|
{ view, orgId },
|
|
582
440
|
{}
|
|
583
441
|
);
|
|
@@ -604,7 +462,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
604
462
|
);
|
|
605
463
|
try {
|
|
606
464
|
const response = await request(
|
|
607
|
-
EntityViewDelete,
|
|
465
|
+
_chunk4GC36G4Djs.EntityViewDelete,
|
|
608
466
|
{ viewId, orgId },
|
|
609
467
|
{}
|
|
610
468
|
);
|
|
@@ -622,7 +480,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
622
480
|
);
|
|
623
481
|
}
|
|
624
482
|
};
|
|
625
|
-
const refresh = (0,
|
|
483
|
+
const refresh = _react.useCallback.call(void 0, () => {
|
|
626
484
|
if (!natsConnected || !orgId) return;
|
|
627
485
|
if (entityName) {
|
|
628
486
|
loadDefinition(entityName);
|
|
@@ -660,14 +518,14 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
660
518
|
}
|
|
661
519
|
|
|
662
520
|
// hooks/use-entity-definition-details.ts
|
|
663
|
-
|
|
521
|
+
|
|
664
522
|
function useEntityDefinitionDetails(entityName) {
|
|
665
523
|
const context = useEntityDefinitionContext();
|
|
666
524
|
const definition = context.definitions[entityName];
|
|
667
|
-
const loadDefinitionDetails = (0,
|
|
525
|
+
const loadDefinitionDetails = _react.useCallback.call(void 0, async () => {
|
|
668
526
|
return context.loadDefinition(entityName);
|
|
669
527
|
}, [context, entityName]);
|
|
670
|
-
(0,
|
|
528
|
+
_react.useEffect.call(void 0, () => {
|
|
671
529
|
if (entityName && !definition) {
|
|
672
530
|
loadDefinitionDetails();
|
|
673
531
|
}
|
|
@@ -683,18 +541,18 @@ function useEntityDefinitionDetails(entityName) {
|
|
|
683
541
|
}
|
|
684
542
|
|
|
685
543
|
// hooks/use-entity-record.ts
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
689
547
|
|
|
690
548
|
// store/entity-record-slice.ts
|
|
691
|
-
|
|
549
|
+
|
|
692
550
|
var initialState2 = {
|
|
693
551
|
records: {},
|
|
694
552
|
isLoading: false,
|
|
695
553
|
loadingStates: {}
|
|
696
554
|
};
|
|
697
|
-
var entityRecordSlice = (0,
|
|
555
|
+
var entityRecordSlice = _toolkit.createSlice.call(void 0, {
|
|
698
556
|
name: "entityRecord",
|
|
699
557
|
initialState: initialState2,
|
|
700
558
|
reducers: {
|
|
@@ -790,9 +648,9 @@ var defaultQuery = {
|
|
|
790
648
|
};
|
|
791
649
|
function useEntityRecord(orgId, entityName, options = {}) {
|
|
792
650
|
const { autoLoad = true } = options;
|
|
793
|
-
const { natsConnected, request } = (0,
|
|
794
|
-
const dispatch = (0,
|
|
795
|
-
const recordState = (0,
|
|
651
|
+
const { natsConnected, request } = _nats.useNatsContext.call(void 0, );
|
|
652
|
+
const dispatch = _reactredux.useDispatch.call(void 0, );
|
|
653
|
+
const recordState = _reactredux.useSelector.call(void 0,
|
|
796
654
|
(state) => state.entityRecord.records[entityName] || {
|
|
797
655
|
items: {},
|
|
798
656
|
params: defaultQuery,
|
|
@@ -806,19 +664,19 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
806
664
|
selected: []
|
|
807
665
|
}
|
|
808
666
|
);
|
|
809
|
-
const selectedRecord = (0,
|
|
667
|
+
const selectedRecord = _reactredux.useSelector.call(void 0,
|
|
810
668
|
(state) => state.entityRecord.selectedRecord
|
|
811
669
|
);
|
|
812
|
-
const isLoading = (0,
|
|
670
|
+
const isLoading = _reactredux.useSelector.call(void 0,
|
|
813
671
|
(state) => state.entityRecord.isLoading
|
|
814
672
|
);
|
|
815
|
-
const loadingStates = (0,
|
|
673
|
+
const loadingStates = _reactredux.useSelector.call(void 0,
|
|
816
674
|
(state) => state.entityRecord.loadingStates
|
|
817
675
|
);
|
|
818
|
-
const error = (0,
|
|
676
|
+
const error = _reactredux.useSelector.call(void 0,
|
|
819
677
|
(state) => state.entityRecord.error
|
|
820
678
|
);
|
|
821
|
-
const loadRecords = (0,
|
|
679
|
+
const loadRecords = _react.useCallback.call(void 0,
|
|
822
680
|
async (params) => {
|
|
823
681
|
if (!natsConnected || !orgId) return;
|
|
824
682
|
const loadingKey = `load_${entityName}`;
|
|
@@ -827,7 +685,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
827
685
|
try {
|
|
828
686
|
const queryParams = { ...recordState.params, ...params };
|
|
829
687
|
const response = await request(
|
|
830
|
-
EntityRecordQuery,
|
|
688
|
+
_chunk4GC36G4Djs.EntityRecordQuery,
|
|
831
689
|
{
|
|
832
690
|
orgId,
|
|
833
691
|
entityName,
|
|
@@ -857,14 +715,14 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
857
715
|
},
|
|
858
716
|
[natsConnected, orgId, entityName, recordState.params, dispatch, request]
|
|
859
717
|
);
|
|
860
|
-
const loadRecord = (0,
|
|
718
|
+
const loadRecord = _react.useCallback.call(void 0,
|
|
861
719
|
async (recordId) => {
|
|
862
720
|
if (!natsConnected || !orgId) return;
|
|
863
721
|
const loadingKey = `load_${recordId}`;
|
|
864
722
|
if (loadingStates[loadingKey]) return;
|
|
865
723
|
dispatch(setOperationLoading2({ operation: loadingKey, loading: true }));
|
|
866
724
|
try {
|
|
867
|
-
const response = await request(EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
725
|
+
const response = await request(_chunk4GC36G4Djs.EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
868
726
|
if (response instanceof Error) {
|
|
869
727
|
dispatch(setError2(response.message));
|
|
870
728
|
return;
|
|
@@ -887,7 +745,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
887
745
|
);
|
|
888
746
|
try {
|
|
889
747
|
const response = await request(
|
|
890
|
-
EntityRecordCreate,
|
|
748
|
+
_chunk4GC36G4Djs.EntityRecordCreate,
|
|
891
749
|
{
|
|
892
750
|
orgId,
|
|
893
751
|
entityName,
|
|
@@ -917,7 +775,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
917
775
|
);
|
|
918
776
|
try {
|
|
919
777
|
const response = await request(
|
|
920
|
-
EntityRecordUpdate,
|
|
778
|
+
_chunk4GC36G4Djs.EntityRecordUpdate,
|
|
921
779
|
{
|
|
922
780
|
orgId,
|
|
923
781
|
entityName,
|
|
@@ -948,7 +806,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
948
806
|
);
|
|
949
807
|
try {
|
|
950
808
|
const response = await request(
|
|
951
|
-
EntityRecordDelete,
|
|
809
|
+
_chunk4GC36G4Djs.EntityRecordDelete,
|
|
952
810
|
{
|
|
953
811
|
orgId,
|
|
954
812
|
entityName,
|
|
@@ -972,7 +830,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
972
830
|
}
|
|
973
831
|
try {
|
|
974
832
|
const response = await request(
|
|
975
|
-
EntityRecordCount,
|
|
833
|
+
_chunk4GC36G4Djs.EntityRecordCount,
|
|
976
834
|
{
|
|
977
835
|
orgId,
|
|
978
836
|
entityName,
|
|
@@ -982,8 +840,8 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
982
840
|
if (response instanceof Error) {
|
|
983
841
|
throw response;
|
|
984
842
|
}
|
|
985
|
-
if (!response.metadata
|
|
986
|
-
throw new Error(response.metadata
|
|
843
|
+
if (!_optionalChain([response, 'access', _10 => _10.metadata, 'optionalAccess', _11 => _11.success])) {
|
|
844
|
+
throw new Error(_optionalChain([response, 'access', _12 => _12.metadata, 'optionalAccess', _13 => _13.error]) || "Failed to count records");
|
|
987
845
|
}
|
|
988
846
|
return response.count || 0;
|
|
989
847
|
} catch (err) {
|
|
@@ -996,7 +854,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
996
854
|
throw new Error("Not connected or missing orgId");
|
|
997
855
|
}
|
|
998
856
|
try {
|
|
999
|
-
const response = await request(EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
857
|
+
const response = await request(_chunk4GC36G4Djs.EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
1000
858
|
if (response instanceof Error) {
|
|
1001
859
|
console.error("Error fetching record:", response.message);
|
|
1002
860
|
return null;
|
|
@@ -1018,10 +876,10 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
1018
876
|
dispatch(updateQueryParams({ entityName, params }));
|
|
1019
877
|
loadRecords(params);
|
|
1020
878
|
};
|
|
1021
|
-
const refresh = (0,
|
|
879
|
+
const refresh = _react.useCallback.call(void 0, () => {
|
|
1022
880
|
loadRecords();
|
|
1023
881
|
}, [loadRecords]);
|
|
1024
|
-
(0,
|
|
882
|
+
_react.useEffect.call(void 0, () => {
|
|
1025
883
|
let mounted = true;
|
|
1026
884
|
if (autoLoad && natsConnected && orgId && mounted) {
|
|
1027
885
|
loadRecords();
|
|
@@ -1057,10 +915,10 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
1057
915
|
}
|
|
1058
916
|
|
|
1059
917
|
// hooks/use-debounce.ts
|
|
1060
|
-
|
|
918
|
+
|
|
1061
919
|
function useDebounce(callback, delay) {
|
|
1062
|
-
const timerRef = (0,
|
|
1063
|
-
return (0,
|
|
920
|
+
const timerRef = _react.useRef.call(void 0, null);
|
|
921
|
+
return _react.useCallback.call(void 0, (...args) => {
|
|
1064
922
|
if (timerRef.current) {
|
|
1065
923
|
clearTimeout(timerRef.current);
|
|
1066
924
|
}
|
|
@@ -1071,8 +929,8 @@ function useDebounce(callback, delay) {
|
|
|
1071
929
|
}
|
|
1072
930
|
|
|
1073
931
|
// context/entity-definition-context.tsx
|
|
1074
|
-
var
|
|
1075
|
-
var EntityDefinitionContext = (0,
|
|
932
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
933
|
+
var EntityDefinitionContext = _react.createContext.call(void 0, void 0);
|
|
1076
934
|
function EntityDefinitionProvider({
|
|
1077
935
|
children,
|
|
1078
936
|
orgId,
|
|
@@ -1080,11 +938,11 @@ function EntityDefinitionProvider({
|
|
|
1080
938
|
options = {}
|
|
1081
939
|
}) {
|
|
1082
940
|
const hookValue = useEntityDefinition(orgId, entityName, options);
|
|
1083
|
-
const value = (0,
|
|
1084
|
-
return /* @__PURE__ */ (0,
|
|
941
|
+
const value = _react.useMemo.call(void 0, () => hookValue, [hookValue]);
|
|
942
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityDefinitionContext.Provider, { value, children });
|
|
1085
943
|
}
|
|
1086
944
|
function useEntityDefinitionContext() {
|
|
1087
|
-
const context = (0,
|
|
945
|
+
const context = _react.useContext.call(void 0, EntityDefinitionContext);
|
|
1088
946
|
if (!context) {
|
|
1089
947
|
throw new Error(
|
|
1090
948
|
"useEntityDefinitionContext must be used within an EntityDefinitionProvider"
|
|
@@ -1094,9 +952,9 @@ function useEntityDefinitionContext() {
|
|
|
1094
952
|
}
|
|
1095
953
|
|
|
1096
954
|
// context/entity-record-context.tsx
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
var EntityRecordContext = (0,
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
var EntityRecordContext = _react.createContext.call(void 0, void 0);
|
|
1100
958
|
function EntityRecordProvider({
|
|
1101
959
|
children,
|
|
1102
960
|
orgId,
|
|
@@ -1104,11 +962,11 @@ function EntityRecordProvider({
|
|
|
1104
962
|
options = {}
|
|
1105
963
|
}) {
|
|
1106
964
|
const hookValue = useEntityRecord(orgId, entityName, options);
|
|
1107
|
-
const value = (0,
|
|
1108
|
-
return /* @__PURE__ */ (0,
|
|
965
|
+
const value = _react.useMemo.call(void 0, () => hookValue, [hookValue]);
|
|
966
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityRecordContext.Provider, { value, children });
|
|
1109
967
|
}
|
|
1110
968
|
function useEntityRecordContext() {
|
|
1111
|
-
const context = (0,
|
|
969
|
+
const context = _react.useContext.call(void 0, EntityRecordContext);
|
|
1112
970
|
if (!context) {
|
|
1113
971
|
throw new Error(
|
|
1114
972
|
"useEntityRecordContext must be used within an EntityRecordProvider"
|
|
@@ -1128,91 +986,90 @@ var PREDEFINED_COLORS = [
|
|
|
1128
986
|
{ value: "#6366F1", name: "Indigo" },
|
|
1129
987
|
{ value: "#A855F7", name: "Purple" }
|
|
1130
988
|
];
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
});
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
exports.EntityDefinitionContext = EntityDefinitionContext; exports.EntityDefinitionCreate = _chunk4GC36G4Djs.EntityDefinitionCreate; exports.EntityDefinitionCreated = _chunk4GC36G4Djs.EntityDefinitionCreated; exports.EntityDefinitionDelete = _chunk4GC36G4Djs.EntityDefinitionDelete; exports.EntityDefinitionDeleted = _chunk4GC36G4Djs.EntityDefinitionDeleted; exports.EntityDefinitionGet = _chunk4GC36G4Djs.EntityDefinitionGet; exports.EntityDefinitionGetServer = _chunk4GC36G4Djs.EntityDefinitionGetServer; exports.EntityDefinitionList = _chunk4GC36G4Djs.EntityDefinitionList; exports.EntityDefinitionProvider = EntityDefinitionProvider; exports.EntityDefinitionUpdate = _chunk4GC36G4Djs.EntityDefinitionUpdate; exports.EntityDefinitionUpdated = _chunk4GC36G4Djs.EntityDefinitionUpdated; exports.EntityFieldTypeBool = _chunk4GC36G4Djs.EntityFieldTypeBool; exports.EntityFieldTypeCurrency = _chunk4GC36G4Djs.EntityFieldTypeCurrency; exports.EntityFieldTypeDate = _chunk4GC36G4Djs.EntityFieldTypeDate; exports.EntityFieldTypeDateTime = _chunk4GC36G4Djs.EntityFieldTypeDateTime; exports.EntityFieldTypeDropdown = _chunk4GC36G4Djs.EntityFieldTypeDropdown; exports.EntityFieldTypeEmail = _chunk4GC36G4Djs.EntityFieldTypeEmail; exports.EntityFieldTypeFile = _chunk4GC36G4Djs.EntityFieldTypeFile; exports.EntityFieldTypeFloat = _chunk4GC36G4Djs.EntityFieldTypeFloat; exports.EntityFieldTypeImage = _chunk4GC36G4Djs.EntityFieldTypeImage; exports.EntityFieldTypeInt = _chunk4GC36G4Djs.EntityFieldTypeInt; exports.EntityFieldTypeJSON = _chunk4GC36G4Djs.EntityFieldTypeJSON; exports.EntityFieldTypeLookup = _chunk4GC36G4Djs.EntityFieldTypeLookup; exports.EntityFieldTypeMultiLookup = _chunk4GC36G4Djs.EntityFieldTypeMultiLookup; exports.EntityFieldTypeMultiSelect = _chunk4GC36G4Djs.EntityFieldTypeMultiSelect; exports.EntityFieldTypePhone = _chunk4GC36G4Djs.EntityFieldTypePhone; exports.EntityFieldTypeString = _chunk4GC36G4Djs.EntityFieldTypeString; exports.EntityFieldTypeStringMultiline = _chunk4GC36G4Djs.EntityFieldTypeStringMultiline; exports.EntityFieldTypeText = _chunk4GC36G4Djs.EntityFieldTypeText; exports.EntityFieldTypeURL = _chunk4GC36G4Djs.EntityFieldTypeURL; exports.EntityFieldTypes = _chunk4GC36G4Djs.EntityFieldTypes; exports.EntityFilterOperators = _chunk4GC36G4Djs.EntityFilterOperators; exports.EntityOrgSchemaCreate = _chunk4GC36G4Djs.EntityOrgSchemaCreate; exports.EntityOrgSchemaDrop = _chunk4GC36G4Djs.EntityOrgSchemaDrop; exports.EntityRecordContext = EntityRecordContext; exports.EntityRecordCount = _chunk4GC36G4Djs.EntityRecordCount; exports.EntityRecordCreate = _chunk4GC36G4Djs.EntityRecordCreate; exports.EntityRecordCreated = _chunk4GC36G4Djs.EntityRecordCreated; exports.EntityRecordDelete = _chunk4GC36G4Djs.EntityRecordDelete; exports.EntityRecordDeleted = _chunk4GC36G4Djs.EntityRecordDeleted; exports.EntityRecordGet = _chunk4GC36G4Djs.EntityRecordGet; exports.EntityRecordProvider = EntityRecordProvider; exports.EntityRecordQuery = _chunk4GC36G4Djs.EntityRecordQuery; exports.EntityRecordUpdate = _chunk4GC36G4Djs.EntityRecordUpdate; exports.EntityRecordUpdated = _chunk4GC36G4Djs.EntityRecordUpdated; exports.EntityRecordsBulkCreate = _chunk4GC36G4Djs.EntityRecordsBulkCreate; exports.EntityRecordsBulkCreated = _chunk4GC36G4Djs.EntityRecordsBulkCreated; exports.EntityRecordsBulkDelete = _chunk4GC36G4Djs.EntityRecordsBulkDelete; exports.EntityRecordsBulkDeleted = _chunk4GC36G4Djs.EntityRecordsBulkDeleted; exports.EntityRecordsBulkUpdate = _chunk4GC36G4Djs.EntityRecordsBulkUpdate; exports.EntityRecordsBulkUpdated = _chunk4GC36G4Djs.EntityRecordsBulkUpdated; exports.EntityViewCreate = _chunk4GC36G4Djs.EntityViewCreate; exports.EntityViewCreated = _chunk4GC36G4Djs.EntityViewCreated; exports.EntityViewDelete = _chunk4GC36G4Djs.EntityViewDelete; exports.EntityViewDeleted = _chunk4GC36G4Djs.EntityViewDeleted; exports.EntityViewList = _chunk4GC36G4Djs.EntityViewList; exports.EntityViewUpdate = _chunk4GC36G4Djs.EntityViewUpdate; exports.EntityViewUpdated = _chunk4GC36G4Djs.EntityViewUpdated; exports.OperatorBetween = _chunk4GC36G4Djs.OperatorBetween; exports.OperatorContains = _chunk4GC36G4Djs.OperatorContains; exports.OperatorEmpty = _chunk4GC36G4Djs.OperatorEmpty; exports.OperatorEndsWith = _chunk4GC36G4Djs.OperatorEndsWith; exports.OperatorEq = _chunk4GC36G4Djs.OperatorEq; exports.OperatorExists = _chunk4GC36G4Djs.OperatorExists; exports.OperatorGt = _chunk4GC36G4Djs.OperatorGt; exports.OperatorGte = _chunk4GC36G4Djs.OperatorGte; exports.OperatorIn = _chunk4GC36G4Djs.OperatorIn; exports.OperatorLt = _chunk4GC36G4Djs.OperatorLt; exports.OperatorLte = _chunk4GC36G4Djs.OperatorLte; exports.OperatorNe = _chunk4GC36G4Djs.OperatorNe; exports.OperatorNin = _chunk4GC36G4Djs.OperatorNin; exports.OperatorStartsWith = _chunk4GC36G4Djs.OperatorStartsWith; exports.PREDEFINED_COLORS = PREDEFINED_COLORS; exports.RecordChangeActionCreated = _chunk4GC36G4Djs.RecordChangeActionCreated; exports.RecordChangeActionDeleted = _chunk4GC36G4Djs.RecordChangeActionDeleted; exports.RecordChangeActionUpdated = _chunk4GC36G4Djs.RecordChangeActionUpdated; exports.entityDefinitionReducer = entityDefinitionReducer; exports.entityRecordReducer = entityRecordReducer; exports.useDebounce = useDebounce; exports.useEntityDefinition = useEntityDefinition; exports.useEntityDefinitionContext = useEntityDefinitionContext; exports.useEntityDefinitionDetails = useEntityDefinitionDetails; exports.useEntityRecord = useEntityRecord; exports.useEntityRecordContext = useEntityRecordContext;
|
|
1218
1075
|
//# sourceMappingURL=index.js.map
|