@elqnt/entity 1.0.0 → 1.0.2
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-K2MPIZE7.js +182 -0
- package/dist/chunk-K2MPIZE7.js.map +1 -0
- package/dist/chunk-QZQSWI3P.mjs +182 -0
- package/dist/chunk-QZQSWI3P.mjs.map +1 -0
- package/dist/index.d.mts +9 -606
- package/dist/index.d.ts +9 -606
- package/dist/index.js +241 -385
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -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 +147 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/index.mjs +147 -0
- package/dist/models/index.mjs.map +1 -0
- package/package.json +6 -1
package/dist/index.js
CHANGED
|
@@ -1,237 +1,94 @@
|
|
|
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
|
-
EntityViewCreate: () => EntityViewCreate,
|
|
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; }
|
|
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
|
+
var _chunkK2MPIZE7js = require('./chunk-K2MPIZE7.js');
|
|
109
74
|
|
|
110
75
|
// context/entity-definition-context.tsx
|
|
111
|
-
var
|
|
76
|
+
var _react = require('react');
|
|
112
77
|
|
|
113
78
|
// 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";
|
|
79
|
+
|
|
80
|
+
var _reactredux = require('react-redux');
|
|
81
|
+
var _nats = require('@elqnt/nats');
|
|
225
82
|
|
|
226
83
|
// store/entity-definition-slice.ts
|
|
227
|
-
var
|
|
84
|
+
var _toolkit = require('@reduxjs/toolkit');
|
|
228
85
|
var initialState = {
|
|
229
86
|
definitions: {},
|
|
230
87
|
views: {},
|
|
231
88
|
isLoading: false,
|
|
232
89
|
loadingStates: {}
|
|
233
90
|
};
|
|
234
|
-
var entityDefinitionSlice = (0,
|
|
91
|
+
var entityDefinitionSlice = _toolkit.createSlice.call(void 0, {
|
|
235
92
|
name: "entityDefinition",
|
|
236
93
|
initialState,
|
|
237
94
|
reducers: {
|
|
@@ -260,13 +117,13 @@ var entityDefinitionSlice = (0, import_toolkit.createSlice)({
|
|
|
260
117
|
updateDefinition: (state, action) => {
|
|
261
118
|
const definition = action.payload;
|
|
262
119
|
state.definitions[definition.name] = definition;
|
|
263
|
-
if (state.selectedDefinition
|
|
120
|
+
if (_optionalChain([state, 'access', _ => _.selectedDefinition, 'optionalAccess', _2 => _2.name]) === definition.name) {
|
|
264
121
|
state.selectedDefinition = definition;
|
|
265
122
|
}
|
|
266
123
|
},
|
|
267
124
|
removeDefinition: (state, action) => {
|
|
268
125
|
delete state.definitions[action.payload];
|
|
269
|
-
if (state.selectedDefinition
|
|
126
|
+
if (_optionalChain([state, 'access', _3 => _3.selectedDefinition, 'optionalAccess', _4 => _4.name]) === action.payload) {
|
|
270
127
|
state.selectedDefinition = void 0;
|
|
271
128
|
}
|
|
272
129
|
},
|
|
@@ -291,7 +148,7 @@ var entityDefinitionSlice = (0, import_toolkit.createSlice)({
|
|
|
291
148
|
const index = views.findIndex((v) => v.id === view.id);
|
|
292
149
|
if (index !== -1) {
|
|
293
150
|
views[index] = view;
|
|
294
|
-
if (state.selectedView
|
|
151
|
+
if (_optionalChain([state, 'access', _5 => _5.selectedView, 'optionalAccess', _6 => _6.id]) === view.id) {
|
|
295
152
|
state.selectedView = view;
|
|
296
153
|
}
|
|
297
154
|
}
|
|
@@ -302,7 +159,7 @@ var entityDefinitionSlice = (0, import_toolkit.createSlice)({
|
|
|
302
159
|
const views = state.views[entityName];
|
|
303
160
|
if (views) {
|
|
304
161
|
state.views[entityName] = views.filter((v) => v.id !== viewId);
|
|
305
|
-
if (state.selectedView
|
|
162
|
+
if (_optionalChain([state, 'access', _7 => _7.selectedView, 'optionalAccess', _8 => _8.id]) === viewId) {
|
|
306
163
|
state.selectedView = void 0;
|
|
307
164
|
}
|
|
308
165
|
}
|
|
@@ -331,38 +188,38 @@ var entityDefinitionReducer = entityDefinitionSlice.reducer;
|
|
|
331
188
|
|
|
332
189
|
// hooks/use-entity-definition.ts
|
|
333
190
|
function useEntityDefinition(orgId, entityName, options = {}) {
|
|
334
|
-
const { autoLoad, module
|
|
335
|
-
const { natsConnected, request } = (0,
|
|
336
|
-
const dispatch = (0,
|
|
337
|
-
const definitions = (0,
|
|
191
|
+
const { autoLoad, module } = options;
|
|
192
|
+
const { natsConnected, request } = _nats.useNatsContext.call(void 0, );
|
|
193
|
+
const dispatch = _reactredux.useDispatch.call(void 0, );
|
|
194
|
+
const definitions = _reactredux.useSelector.call(void 0,
|
|
338
195
|
(state) => state.entityDefinition.definitions
|
|
339
196
|
);
|
|
340
|
-
const selectedDefinition = (0,
|
|
197
|
+
const selectedDefinition = _reactredux.useSelector.call(void 0,
|
|
341
198
|
(state) => state.entityDefinition.selectedDefinition
|
|
342
199
|
);
|
|
343
|
-
const views = (0,
|
|
200
|
+
const views = _reactredux.useSelector.call(void 0,
|
|
344
201
|
(state) => state.entityDefinition.views
|
|
345
202
|
);
|
|
346
|
-
const selectedView = (0,
|
|
203
|
+
const selectedView = _reactredux.useSelector.call(void 0,
|
|
347
204
|
(state) => state.entityDefinition.selectedView
|
|
348
205
|
);
|
|
349
|
-
const isLoading = (0,
|
|
206
|
+
const isLoading = _reactredux.useSelector.call(void 0,
|
|
350
207
|
(state) => state.entityDefinition.isLoading
|
|
351
208
|
);
|
|
352
|
-
const loadingStates = (0,
|
|
209
|
+
const loadingStates = _reactredux.useSelector.call(void 0,
|
|
353
210
|
(state) => state.entityDefinition.loadingStates
|
|
354
211
|
);
|
|
355
|
-
const error = (0,
|
|
212
|
+
const error = _reactredux.useSelector.call(void 0,
|
|
356
213
|
(state) => state.entityDefinition.error
|
|
357
214
|
);
|
|
358
|
-
const createOrgSchema = (0,
|
|
215
|
+
const createOrgSchema = _react.useCallback.call(void 0,
|
|
359
216
|
async (targetOrgId) => {
|
|
360
217
|
if (!natsConnected) {
|
|
361
218
|
throw new Error("Not connected to NATS");
|
|
362
219
|
}
|
|
363
220
|
dispatch(setOperationLoading({ operation: "createOrgSchema", loading: true }));
|
|
364
221
|
try {
|
|
365
|
-
const response = await request(EntityOrgSchemaCreate, { orgId: targetOrgId });
|
|
222
|
+
const response = await request(_chunkK2MPIZE7js.EntityOrgSchemaCreate, { orgId: targetOrgId });
|
|
366
223
|
if (response instanceof Error) {
|
|
367
224
|
throw response;
|
|
368
225
|
}
|
|
@@ -373,14 +230,14 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
373
230
|
},
|
|
374
231
|
[natsConnected, dispatch, request]
|
|
375
232
|
);
|
|
376
|
-
const dropOrgSchema = (0,
|
|
233
|
+
const dropOrgSchema = _react.useCallback.call(void 0,
|
|
377
234
|
async (targetOrgId) => {
|
|
378
235
|
if (!natsConnected) {
|
|
379
236
|
throw new Error("Not connected to NATS");
|
|
380
237
|
}
|
|
381
238
|
dispatch(setOperationLoading({ operation: "dropOrgSchema", loading: true }));
|
|
382
239
|
try {
|
|
383
|
-
const response = await request(EntityOrgSchemaDrop, { orgId: targetOrgId });
|
|
240
|
+
const response = await request(_chunkK2MPIZE7js.EntityOrgSchemaDrop, { orgId: targetOrgId });
|
|
384
241
|
if (response instanceof Error) {
|
|
385
242
|
throw response;
|
|
386
243
|
}
|
|
@@ -391,17 +248,17 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
391
248
|
},
|
|
392
249
|
[natsConnected, dispatch, request]
|
|
393
250
|
);
|
|
394
|
-
const loadDefinitions = (0,
|
|
251
|
+
const loadDefinitions = _react.useCallback.call(void 0, async () => {
|
|
395
252
|
if (!natsConnected || !orgId) return;
|
|
396
253
|
const loadingKey = "loadDefinitions";
|
|
397
254
|
if (loadingStates[loadingKey]) return;
|
|
398
255
|
dispatch(setOperationLoading({ operation: loadingKey, loading: true }));
|
|
399
256
|
try {
|
|
400
|
-
const response = await request(EntityDefinitionList, { orgId, module
|
|
257
|
+
const response = await request(_chunkK2MPIZE7js.EntityDefinitionList, { orgId, module });
|
|
401
258
|
if (response instanceof Error) {
|
|
402
259
|
dispatch(setError(response.message));
|
|
403
260
|
} else {
|
|
404
|
-
dispatch(setDefinitions(response
|
|
261
|
+
dispatch(setDefinitions(_nullishCoalesce(_optionalChain([response, 'optionalAccess', _9 => _9.definitions]), () => ( []))));
|
|
405
262
|
}
|
|
406
263
|
} catch (err) {
|
|
407
264
|
dispatch(setError(err instanceof Error ? err.message : "Unknown error"));
|
|
@@ -409,7 +266,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
409
266
|
dispatch(setOperationLoading({ operation: loadingKey, loading: false }));
|
|
410
267
|
}
|
|
411
268
|
}, [natsConnected, orgId, options.module, dispatch, request]);
|
|
412
|
-
(0,
|
|
269
|
+
_react.useEffect.call(void 0, () => {
|
|
413
270
|
let mounted = true;
|
|
414
271
|
if (autoLoad && natsConnected && orgId && mounted) {
|
|
415
272
|
loadDefinitions();
|
|
@@ -418,14 +275,14 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
418
275
|
mounted = false;
|
|
419
276
|
};
|
|
420
277
|
}, [autoLoad, natsConnected, orgId]);
|
|
421
|
-
const loadDefinition = (0,
|
|
278
|
+
const loadDefinition = _react.useCallback.call(void 0,
|
|
422
279
|
async (name) => {
|
|
423
280
|
if (!natsConnected || !orgId) return;
|
|
424
281
|
dispatch(
|
|
425
282
|
setOperationLoading({ operation: `load_${name}`, loading: true })
|
|
426
283
|
);
|
|
427
284
|
try {
|
|
428
|
-
const response = await request(EntityDefinitionGet, { entityName: name, orgId }, {});
|
|
285
|
+
const response = await request(_chunkK2MPIZE7js.EntityDefinitionGet, { entityName: name, orgId }, {});
|
|
429
286
|
if (response instanceof Error) {
|
|
430
287
|
dispatch(setError(response.message));
|
|
431
288
|
return;
|
|
@@ -439,7 +296,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
439
296
|
},
|
|
440
297
|
[natsConnected, orgId, dispatch, request]
|
|
441
298
|
);
|
|
442
|
-
(0,
|
|
299
|
+
_react.useEffect.call(void 0, () => {
|
|
443
300
|
if (natsConnected && orgId && entityName) {
|
|
444
301
|
loadDefinition(entityName);
|
|
445
302
|
}
|
|
@@ -450,7 +307,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
450
307
|
}
|
|
451
308
|
dispatch(setOperationLoading({ operation: "create", loading: true }));
|
|
452
309
|
try {
|
|
453
|
-
const response = await request(EntityDefinitionCreate, { definition, orgId }, {});
|
|
310
|
+
const response = await request(_chunkK2MPIZE7js.EntityDefinitionCreate, { definition, orgId }, {});
|
|
454
311
|
if (response instanceof Error) {
|
|
455
312
|
console.error("createDefinition error", response);
|
|
456
313
|
throw response;
|
|
@@ -472,7 +329,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
472
329
|
);
|
|
473
330
|
try {
|
|
474
331
|
const response = await request(
|
|
475
|
-
EntityDefinitionUpdate,
|
|
332
|
+
_chunkK2MPIZE7js.EntityDefinitionUpdate,
|
|
476
333
|
{
|
|
477
334
|
entityName: name,
|
|
478
335
|
definition,
|
|
@@ -501,7 +358,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
501
358
|
setOperationLoading({ operation: `delete_${name}`, loading: true })
|
|
502
359
|
);
|
|
503
360
|
try {
|
|
504
|
-
const response = await request(EntityDefinitionDelete, { entityName: name, orgId }, {});
|
|
361
|
+
const response = await request(_chunkK2MPIZE7js.EntityDefinitionDelete, { entityName: name, orgId }, {});
|
|
505
362
|
if (response instanceof Error) {
|
|
506
363
|
throw response;
|
|
507
364
|
}
|
|
@@ -513,7 +370,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
513
370
|
);
|
|
514
371
|
}
|
|
515
372
|
};
|
|
516
|
-
const loadViews = (0,
|
|
373
|
+
const loadViews = _react.useCallback.call(void 0,
|
|
517
374
|
async (entityName2) => {
|
|
518
375
|
if (!natsConnected || !orgId) return;
|
|
519
376
|
const loadingKey = `loadViews_${entityName2}`;
|
|
@@ -521,7 +378,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
521
378
|
dispatch(setOperationLoading({ operation: loadingKey, loading: true }));
|
|
522
379
|
try {
|
|
523
380
|
const response = await request(
|
|
524
|
-
EntityViewList,
|
|
381
|
+
_chunkK2MPIZE7js.EntityViewList,
|
|
525
382
|
{ entityName: entityName2, orgId },
|
|
526
383
|
{}
|
|
527
384
|
);
|
|
@@ -550,7 +407,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
550
407
|
dispatch(setOperationLoading({ operation: "create_view", loading: true }));
|
|
551
408
|
try {
|
|
552
409
|
const response = await request(
|
|
553
|
-
EntityViewCreate,
|
|
410
|
+
_chunkK2MPIZE7js.EntityViewCreate,
|
|
554
411
|
{ entityName: entityName2, view, orgId },
|
|
555
412
|
{}
|
|
556
413
|
);
|
|
@@ -577,7 +434,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
577
434
|
);
|
|
578
435
|
try {
|
|
579
436
|
const response = await request(
|
|
580
|
-
EntityViewUpdate,
|
|
437
|
+
_chunkK2MPIZE7js.EntityViewUpdate,
|
|
581
438
|
{ view, orgId },
|
|
582
439
|
{}
|
|
583
440
|
);
|
|
@@ -604,7 +461,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
604
461
|
);
|
|
605
462
|
try {
|
|
606
463
|
const response = await request(
|
|
607
|
-
EntityViewDelete,
|
|
464
|
+
_chunkK2MPIZE7js.EntityViewDelete,
|
|
608
465
|
{ viewId, orgId },
|
|
609
466
|
{}
|
|
610
467
|
);
|
|
@@ -622,7 +479,7 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
622
479
|
);
|
|
623
480
|
}
|
|
624
481
|
};
|
|
625
|
-
const refresh = (0,
|
|
482
|
+
const refresh = _react.useCallback.call(void 0, () => {
|
|
626
483
|
if (!natsConnected || !orgId) return;
|
|
627
484
|
if (entityName) {
|
|
628
485
|
loadDefinition(entityName);
|
|
@@ -660,14 +517,14 @@ function useEntityDefinition(orgId, entityName, options = {}) {
|
|
|
660
517
|
}
|
|
661
518
|
|
|
662
519
|
// hooks/use-entity-definition-details.ts
|
|
663
|
-
|
|
520
|
+
|
|
664
521
|
function useEntityDefinitionDetails(entityName) {
|
|
665
522
|
const context = useEntityDefinitionContext();
|
|
666
523
|
const definition = context.definitions[entityName];
|
|
667
|
-
const loadDefinitionDetails = (0,
|
|
524
|
+
const loadDefinitionDetails = _react.useCallback.call(void 0, async () => {
|
|
668
525
|
return context.loadDefinition(entityName);
|
|
669
526
|
}, [context, entityName]);
|
|
670
|
-
(0,
|
|
527
|
+
_react.useEffect.call(void 0, () => {
|
|
671
528
|
if (entityName && !definition) {
|
|
672
529
|
loadDefinitionDetails();
|
|
673
530
|
}
|
|
@@ -683,18 +540,18 @@ function useEntityDefinitionDetails(entityName) {
|
|
|
683
540
|
}
|
|
684
541
|
|
|
685
542
|
// hooks/use-entity-record.ts
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
689
546
|
|
|
690
547
|
// store/entity-record-slice.ts
|
|
691
|
-
|
|
548
|
+
|
|
692
549
|
var initialState2 = {
|
|
693
550
|
records: {},
|
|
694
551
|
isLoading: false,
|
|
695
552
|
loadingStates: {}
|
|
696
553
|
};
|
|
697
|
-
var entityRecordSlice = (0,
|
|
554
|
+
var entityRecordSlice = _toolkit.createSlice.call(void 0, {
|
|
698
555
|
name: "entityRecord",
|
|
699
556
|
initialState: initialState2,
|
|
700
557
|
reducers: {
|
|
@@ -790,9 +647,9 @@ var defaultQuery = {
|
|
|
790
647
|
};
|
|
791
648
|
function useEntityRecord(orgId, entityName, options = {}) {
|
|
792
649
|
const { autoLoad = true } = options;
|
|
793
|
-
const { natsConnected, request } = (0,
|
|
794
|
-
const dispatch = (0,
|
|
795
|
-
const recordState = (0,
|
|
650
|
+
const { natsConnected, request } = _nats.useNatsContext.call(void 0, );
|
|
651
|
+
const dispatch = _reactredux.useDispatch.call(void 0, );
|
|
652
|
+
const recordState = _reactredux.useSelector.call(void 0,
|
|
796
653
|
(state) => state.entityRecord.records[entityName] || {
|
|
797
654
|
items: {},
|
|
798
655
|
params: defaultQuery,
|
|
@@ -806,19 +663,19 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
806
663
|
selected: []
|
|
807
664
|
}
|
|
808
665
|
);
|
|
809
|
-
const selectedRecord = (0,
|
|
666
|
+
const selectedRecord = _reactredux.useSelector.call(void 0,
|
|
810
667
|
(state) => state.entityRecord.selectedRecord
|
|
811
668
|
);
|
|
812
|
-
const isLoading = (0,
|
|
669
|
+
const isLoading = _reactredux.useSelector.call(void 0,
|
|
813
670
|
(state) => state.entityRecord.isLoading
|
|
814
671
|
);
|
|
815
|
-
const loadingStates = (0,
|
|
672
|
+
const loadingStates = _reactredux.useSelector.call(void 0,
|
|
816
673
|
(state) => state.entityRecord.loadingStates
|
|
817
674
|
);
|
|
818
|
-
const error = (0,
|
|
675
|
+
const error = _reactredux.useSelector.call(void 0,
|
|
819
676
|
(state) => state.entityRecord.error
|
|
820
677
|
);
|
|
821
|
-
const loadRecords = (0,
|
|
678
|
+
const loadRecords = _react.useCallback.call(void 0,
|
|
822
679
|
async (params) => {
|
|
823
680
|
if (!natsConnected || !orgId) return;
|
|
824
681
|
const loadingKey = `load_${entityName}`;
|
|
@@ -827,7 +684,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
827
684
|
try {
|
|
828
685
|
const queryParams = { ...recordState.params, ...params };
|
|
829
686
|
const response = await request(
|
|
830
|
-
EntityRecordQuery,
|
|
687
|
+
_chunkK2MPIZE7js.EntityRecordQuery,
|
|
831
688
|
{
|
|
832
689
|
orgId,
|
|
833
690
|
entityName,
|
|
@@ -857,14 +714,14 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
857
714
|
},
|
|
858
715
|
[natsConnected, orgId, entityName, recordState.params, dispatch, request]
|
|
859
716
|
);
|
|
860
|
-
const loadRecord = (0,
|
|
717
|
+
const loadRecord = _react.useCallback.call(void 0,
|
|
861
718
|
async (recordId) => {
|
|
862
719
|
if (!natsConnected || !orgId) return;
|
|
863
720
|
const loadingKey = `load_${recordId}`;
|
|
864
721
|
if (loadingStates[loadingKey]) return;
|
|
865
722
|
dispatch(setOperationLoading2({ operation: loadingKey, loading: true }));
|
|
866
723
|
try {
|
|
867
|
-
const response = await request(EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
724
|
+
const response = await request(_chunkK2MPIZE7js.EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
868
725
|
if (response instanceof Error) {
|
|
869
726
|
dispatch(setError2(response.message));
|
|
870
727
|
return;
|
|
@@ -887,7 +744,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
887
744
|
);
|
|
888
745
|
try {
|
|
889
746
|
const response = await request(
|
|
890
|
-
EntityRecordCreate,
|
|
747
|
+
_chunkK2MPIZE7js.EntityRecordCreate,
|
|
891
748
|
{
|
|
892
749
|
orgId,
|
|
893
750
|
entityName,
|
|
@@ -917,7 +774,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
917
774
|
);
|
|
918
775
|
try {
|
|
919
776
|
const response = await request(
|
|
920
|
-
EntityRecordUpdate,
|
|
777
|
+
_chunkK2MPIZE7js.EntityRecordUpdate,
|
|
921
778
|
{
|
|
922
779
|
orgId,
|
|
923
780
|
entityName,
|
|
@@ -948,7 +805,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
948
805
|
);
|
|
949
806
|
try {
|
|
950
807
|
const response = await request(
|
|
951
|
-
EntityRecordDelete,
|
|
808
|
+
_chunkK2MPIZE7js.EntityRecordDelete,
|
|
952
809
|
{
|
|
953
810
|
orgId,
|
|
954
811
|
entityName,
|
|
@@ -972,7 +829,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
972
829
|
}
|
|
973
830
|
try {
|
|
974
831
|
const response = await request(
|
|
975
|
-
EntityRecordCount,
|
|
832
|
+
_chunkK2MPIZE7js.EntityRecordCount,
|
|
976
833
|
{
|
|
977
834
|
orgId,
|
|
978
835
|
entityName,
|
|
@@ -982,8 +839,8 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
982
839
|
if (response instanceof Error) {
|
|
983
840
|
throw response;
|
|
984
841
|
}
|
|
985
|
-
if (!response.metadata
|
|
986
|
-
throw new Error(response.metadata
|
|
842
|
+
if (!_optionalChain([response, 'access', _10 => _10.metadata, 'optionalAccess', _11 => _11.success])) {
|
|
843
|
+
throw new Error(_optionalChain([response, 'access', _12 => _12.metadata, 'optionalAccess', _13 => _13.error]) || "Failed to count records");
|
|
987
844
|
}
|
|
988
845
|
return response.count || 0;
|
|
989
846
|
} catch (err) {
|
|
@@ -996,7 +853,7 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
996
853
|
throw new Error("Not connected or missing orgId");
|
|
997
854
|
}
|
|
998
855
|
try {
|
|
999
|
-
const response = await request(EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
856
|
+
const response = await request(_chunkK2MPIZE7js.EntityRecordGet, { entityName, recordId, orgId }, {});
|
|
1000
857
|
if (response instanceof Error) {
|
|
1001
858
|
console.error("Error fetching record:", response.message);
|
|
1002
859
|
return null;
|
|
@@ -1018,10 +875,10 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
1018
875
|
dispatch(updateQueryParams({ entityName, params }));
|
|
1019
876
|
loadRecords(params);
|
|
1020
877
|
};
|
|
1021
|
-
const refresh = (0,
|
|
878
|
+
const refresh = _react.useCallback.call(void 0, () => {
|
|
1022
879
|
loadRecords();
|
|
1023
880
|
}, [loadRecords]);
|
|
1024
|
-
(0,
|
|
881
|
+
_react.useEffect.call(void 0, () => {
|
|
1025
882
|
let mounted = true;
|
|
1026
883
|
if (autoLoad && natsConnected && orgId && mounted) {
|
|
1027
884
|
loadRecords();
|
|
@@ -1057,10 +914,10 @@ function useEntityRecord(orgId, entityName, options = {}) {
|
|
|
1057
914
|
}
|
|
1058
915
|
|
|
1059
916
|
// hooks/use-debounce.ts
|
|
1060
|
-
|
|
917
|
+
|
|
1061
918
|
function useDebounce(callback, delay) {
|
|
1062
|
-
const timerRef = (0,
|
|
1063
|
-
return (0,
|
|
919
|
+
const timerRef = _react.useRef.call(void 0, null);
|
|
920
|
+
return _react.useCallback.call(void 0, (...args) => {
|
|
1064
921
|
if (timerRef.current) {
|
|
1065
922
|
clearTimeout(timerRef.current);
|
|
1066
923
|
}
|
|
@@ -1071,8 +928,8 @@ function useDebounce(callback, delay) {
|
|
|
1071
928
|
}
|
|
1072
929
|
|
|
1073
930
|
// context/entity-definition-context.tsx
|
|
1074
|
-
var
|
|
1075
|
-
var EntityDefinitionContext = (0,
|
|
931
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
932
|
+
var EntityDefinitionContext = _react.createContext.call(void 0, void 0);
|
|
1076
933
|
function EntityDefinitionProvider({
|
|
1077
934
|
children,
|
|
1078
935
|
orgId,
|
|
@@ -1080,11 +937,11 @@ function EntityDefinitionProvider({
|
|
|
1080
937
|
options = {}
|
|
1081
938
|
}) {
|
|
1082
939
|
const hookValue = useEntityDefinition(orgId, entityName, options);
|
|
1083
|
-
const value = (0,
|
|
1084
|
-
return /* @__PURE__ */ (0,
|
|
940
|
+
const value = _react.useMemo.call(void 0, () => hookValue, [hookValue]);
|
|
941
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityDefinitionContext.Provider, { value, children });
|
|
1085
942
|
}
|
|
1086
943
|
function useEntityDefinitionContext() {
|
|
1087
|
-
const context = (0,
|
|
944
|
+
const context = _react.useContext.call(void 0, EntityDefinitionContext);
|
|
1088
945
|
if (!context) {
|
|
1089
946
|
throw new Error(
|
|
1090
947
|
"useEntityDefinitionContext must be used within an EntityDefinitionProvider"
|
|
@@ -1094,9 +951,9 @@ function useEntityDefinitionContext() {
|
|
|
1094
951
|
}
|
|
1095
952
|
|
|
1096
953
|
// context/entity-record-context.tsx
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
var EntityRecordContext = (0,
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
var EntityRecordContext = _react.createContext.call(void 0, void 0);
|
|
1100
957
|
function EntityRecordProvider({
|
|
1101
958
|
children,
|
|
1102
959
|
orgId,
|
|
@@ -1104,11 +961,11 @@ function EntityRecordProvider({
|
|
|
1104
961
|
options = {}
|
|
1105
962
|
}) {
|
|
1106
963
|
const hookValue = useEntityRecord(orgId, entityName, options);
|
|
1107
|
-
const value = (0,
|
|
1108
|
-
return /* @__PURE__ */ (0,
|
|
964
|
+
const value = _react.useMemo.call(void 0, () => hookValue, [hookValue]);
|
|
965
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityRecordContext.Provider, { value, children });
|
|
1109
966
|
}
|
|
1110
967
|
function useEntityRecordContext() {
|
|
1111
|
-
const context = (0,
|
|
968
|
+
const context = _react.useContext.call(void 0, EntityRecordContext);
|
|
1112
969
|
if (!context) {
|
|
1113
970
|
throw new Error(
|
|
1114
971
|
"useEntityRecordContext must be used within an EntityRecordProvider"
|
|
@@ -1128,91 +985,90 @@ var PREDEFINED_COLORS = [
|
|
|
1128
985
|
{ value: "#6366F1", name: "Indigo" },
|
|
1129
986
|
{ value: "#A855F7", name: "Purple" }
|
|
1130
987
|
];
|
|
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
|
-
});
|
|
988
|
+
|
|
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
|
+
exports.EntityDefinitionContext = EntityDefinitionContext; exports.EntityDefinitionCreate = _chunkK2MPIZE7js.EntityDefinitionCreate; exports.EntityDefinitionCreated = _chunkK2MPIZE7js.EntityDefinitionCreated; exports.EntityDefinitionDelete = _chunkK2MPIZE7js.EntityDefinitionDelete; exports.EntityDefinitionDeleted = _chunkK2MPIZE7js.EntityDefinitionDeleted; exports.EntityDefinitionGet = _chunkK2MPIZE7js.EntityDefinitionGet; exports.EntityDefinitionGetServer = _chunkK2MPIZE7js.EntityDefinitionGetServer; exports.EntityDefinitionList = _chunkK2MPIZE7js.EntityDefinitionList; exports.EntityDefinitionProvider = EntityDefinitionProvider; exports.EntityDefinitionUpdate = _chunkK2MPIZE7js.EntityDefinitionUpdate; exports.EntityDefinitionUpdated = _chunkK2MPIZE7js.EntityDefinitionUpdated; exports.EntityFieldTypeBool = _chunkK2MPIZE7js.EntityFieldTypeBool; exports.EntityFieldTypeCurrency = _chunkK2MPIZE7js.EntityFieldTypeCurrency; exports.EntityFieldTypeDate = _chunkK2MPIZE7js.EntityFieldTypeDate; exports.EntityFieldTypeDateTime = _chunkK2MPIZE7js.EntityFieldTypeDateTime; exports.EntityFieldTypeDropdown = _chunkK2MPIZE7js.EntityFieldTypeDropdown; exports.EntityFieldTypeEmail = _chunkK2MPIZE7js.EntityFieldTypeEmail; exports.EntityFieldTypeFile = _chunkK2MPIZE7js.EntityFieldTypeFile; exports.EntityFieldTypeFloat = _chunkK2MPIZE7js.EntityFieldTypeFloat; exports.EntityFieldTypeImage = _chunkK2MPIZE7js.EntityFieldTypeImage; exports.EntityFieldTypeInt = _chunkK2MPIZE7js.EntityFieldTypeInt; exports.EntityFieldTypeJSON = _chunkK2MPIZE7js.EntityFieldTypeJSON; exports.EntityFieldTypeLookup = _chunkK2MPIZE7js.EntityFieldTypeLookup; exports.EntityFieldTypeMultiLookup = _chunkK2MPIZE7js.EntityFieldTypeMultiLookup; exports.EntityFieldTypeMultiSelect = _chunkK2MPIZE7js.EntityFieldTypeMultiSelect; exports.EntityFieldTypePhone = _chunkK2MPIZE7js.EntityFieldTypePhone; exports.EntityFieldTypeString = _chunkK2MPIZE7js.EntityFieldTypeString; exports.EntityFieldTypeStringMultiline = _chunkK2MPIZE7js.EntityFieldTypeStringMultiline; exports.EntityFieldTypeText = _chunkK2MPIZE7js.EntityFieldTypeText; exports.EntityFieldTypeURL = _chunkK2MPIZE7js.EntityFieldTypeURL; exports.EntityFieldTypes = _chunkK2MPIZE7js.EntityFieldTypes; exports.EntityFilterOperators = _chunkK2MPIZE7js.EntityFilterOperators; exports.EntityOrgSchemaCreate = _chunkK2MPIZE7js.EntityOrgSchemaCreate; exports.EntityOrgSchemaDrop = _chunkK2MPIZE7js.EntityOrgSchemaDrop; exports.EntityRecordContext = EntityRecordContext; exports.EntityRecordCount = _chunkK2MPIZE7js.EntityRecordCount; exports.EntityRecordCreate = _chunkK2MPIZE7js.EntityRecordCreate; exports.EntityRecordCreated = _chunkK2MPIZE7js.EntityRecordCreated; exports.EntityRecordDelete = _chunkK2MPIZE7js.EntityRecordDelete; exports.EntityRecordDeleted = _chunkK2MPIZE7js.EntityRecordDeleted; exports.EntityRecordGet = _chunkK2MPIZE7js.EntityRecordGet; exports.EntityRecordProvider = EntityRecordProvider; exports.EntityRecordQuery = _chunkK2MPIZE7js.EntityRecordQuery; exports.EntityRecordUpdate = _chunkK2MPIZE7js.EntityRecordUpdate; exports.EntityRecordUpdated = _chunkK2MPIZE7js.EntityRecordUpdated; exports.EntityRecordsBulkCreate = _chunkK2MPIZE7js.EntityRecordsBulkCreate; exports.EntityRecordsBulkCreated = _chunkK2MPIZE7js.EntityRecordsBulkCreated; exports.EntityRecordsBulkDelete = _chunkK2MPIZE7js.EntityRecordsBulkDelete; exports.EntityRecordsBulkDeleted = _chunkK2MPIZE7js.EntityRecordsBulkDeleted; exports.EntityRecordsBulkUpdate = _chunkK2MPIZE7js.EntityRecordsBulkUpdate; exports.EntityRecordsBulkUpdated = _chunkK2MPIZE7js.EntityRecordsBulkUpdated; exports.EntityViewCreate = _chunkK2MPIZE7js.EntityViewCreate; exports.EntityViewCreated = _chunkK2MPIZE7js.EntityViewCreated; exports.EntityViewDelete = _chunkK2MPIZE7js.EntityViewDelete; exports.EntityViewDeleted = _chunkK2MPIZE7js.EntityViewDeleted; exports.EntityViewList = _chunkK2MPIZE7js.EntityViewList; exports.EntityViewUpdate = _chunkK2MPIZE7js.EntityViewUpdate; exports.EntityViewUpdated = _chunkK2MPIZE7js.EntityViewUpdated; exports.OperatorBetween = _chunkK2MPIZE7js.OperatorBetween; exports.OperatorContains = _chunkK2MPIZE7js.OperatorContains; exports.OperatorEmpty = _chunkK2MPIZE7js.OperatorEmpty; exports.OperatorEndsWith = _chunkK2MPIZE7js.OperatorEndsWith; exports.OperatorEq = _chunkK2MPIZE7js.OperatorEq; exports.OperatorExists = _chunkK2MPIZE7js.OperatorExists; exports.OperatorGt = _chunkK2MPIZE7js.OperatorGt; exports.OperatorGte = _chunkK2MPIZE7js.OperatorGte; exports.OperatorIn = _chunkK2MPIZE7js.OperatorIn; exports.OperatorLt = _chunkK2MPIZE7js.OperatorLt; exports.OperatorLte = _chunkK2MPIZE7js.OperatorLte; exports.OperatorNe = _chunkK2MPIZE7js.OperatorNe; exports.OperatorNin = _chunkK2MPIZE7js.OperatorNin; exports.OperatorStartsWith = _chunkK2MPIZE7js.OperatorStartsWith; exports.PREDEFINED_COLORS = PREDEFINED_COLORS; exports.RecordChangeActionCreated = _chunkK2MPIZE7js.RecordChangeActionCreated; exports.RecordChangeActionDeleted = _chunkK2MPIZE7js.RecordChangeActionDeleted; exports.RecordChangeActionUpdated = _chunkK2MPIZE7js.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
1074
|
//# sourceMappingURL=index.js.map
|