@contember/binding 1.1.0-alpha.0 → 1.1.0-alpha.1
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/development/accessorTree/NormalizedPersistedData.js.map +1 -1
- package/dist/development/accessorTree/RuntimeId.js +17 -4
- package/dist/development/accessorTree/RuntimeId.js.map +1 -1
- package/dist/development/accessors/EntityAccessor.js +0 -32
- package/dist/development/accessors/EntityAccessor.js.map +1 -1
- package/dist/development/accessors/EntityListAccessor.js +1 -1
- package/dist/development/accessors/EntityListAccessor.js.map +1 -1
- package/dist/development/core/AccessorErrorManager.js +3 -0
- package/dist/development/core/AccessorErrorManager.js.map +1 -1
- package/dist/development/core/DataBinding.js +6 -5
- package/dist/development/core/DataBinding.js.map +1 -1
- package/dist/development/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/development/core/MutationGenerator.js +5 -5
- package/dist/development/core/MutationGenerator.js.map +1 -1
- package/dist/development/core/RequestResponseNormalizer.js +27 -31
- package/dist/development/core/RequestResponseNormalizer.js.map +1 -1
- package/dist/development/core/StateInitializer.js +9 -9
- package/dist/development/core/StateInitializer.js.map +1 -1
- package/dist/development/core/TreeAugmenter.js +10 -10
- package/dist/development/core/TreeAugmenter.js.map +1 -1
- package/dist/development/core/TreeFilterGenerator.js +2 -2
- package/dist/development/core/TreeFilterGenerator.js.map +1 -1
- package/dist/development/core/TreeStore.js +3 -3
- package/dist/development/core/TreeStore.js.map +1 -1
- package/dist/development/core/operations/EntityOperations.js +5 -5
- package/dist/development/core/operations/EntityOperations.js.map +1 -1
- package/dist/development/core/operations/FieldOperations.js +2 -2
- package/dist/development/core/operations/FieldOperations.js.map +1 -1
- package/dist/development/core/operations/ListOperations.js +2 -2
- package/dist/development/core/operations/ListOperations.js.map +1 -1
- package/dist/development/core/operations/OperationsHelpers.js +2 -2
- package/dist/development/core/operations/OperationsHelpers.js.map +1 -1
- package/dist/development/core/requestAliases/MutationAlias.js +5 -3
- package/dist/development/core/requestAliases/MutationAlias.js.map +1 -1
- package/dist/development/dao/Environment.js +1 -1
- package/dist/development/dao/Environment.js.map +1 -1
- package/dist/development/index.js +1 -1
- package/dist/production/accessorTree/NormalizedPersistedData.js.map +1 -1
- package/dist/production/accessorTree/RuntimeId.js +17 -4
- package/dist/production/accessorTree/RuntimeId.js.map +1 -1
- package/dist/production/accessors/EntityAccessor.js +0 -32
- package/dist/production/accessors/EntityAccessor.js.map +1 -1
- package/dist/production/accessors/EntityListAccessor.js +1 -1
- package/dist/production/accessors/EntityListAccessor.js.map +1 -1
- package/dist/production/core/AccessorErrorManager.js +3 -0
- package/dist/production/core/AccessorErrorManager.js.map +1 -1
- package/dist/production/core/DataBinding.js +6 -5
- package/dist/production/core/DataBinding.js.map +1 -1
- package/dist/production/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/production/core/MutationGenerator.js +5 -5
- package/dist/production/core/MutationGenerator.js.map +1 -1
- package/dist/production/core/RequestResponseNormalizer.js +27 -31
- package/dist/production/core/RequestResponseNormalizer.js.map +1 -1
- package/dist/production/core/StateInitializer.js +9 -9
- package/dist/production/core/StateInitializer.js.map +1 -1
- package/dist/production/core/TreeAugmenter.js +10 -10
- package/dist/production/core/TreeAugmenter.js.map +1 -1
- package/dist/production/core/TreeFilterGenerator.js +2 -2
- package/dist/production/core/TreeFilterGenerator.js.map +1 -1
- package/dist/production/core/TreeStore.js +3 -3
- package/dist/production/core/TreeStore.js.map +1 -1
- package/dist/production/core/operations/EntityOperations.js +5 -5
- package/dist/production/core/operations/EntityOperations.js.map +1 -1
- package/dist/production/core/operations/FieldOperations.js.map +1 -1
- package/dist/production/core/operations/ListOperations.js +2 -2
- package/dist/production/core/operations/ListOperations.js.map +1 -1
- package/dist/production/core/operations/OperationsHelpers.js +2 -2
- package/dist/production/core/operations/OperationsHelpers.js.map +1 -1
- package/dist/production/core/requestAliases/MutationAlias.js +5 -3
- package/dist/production/core/requestAliases/MutationAlias.js.map +1 -1
- package/dist/production/dao/Environment.js +1 -1
- package/dist/production/dao/Environment.js.map +1 -1
- package/dist/production/index.js +1 -1
- package/dist/types/accessorTree/MutationRequestResponse.d.ts +5 -1
- package/dist/types/accessorTree/MutationRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +4 -4
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +1 -1
- package/dist/types/accessorTree/PersistResult.d.ts +2 -1
- package/dist/types/accessorTree/PersistResult.d.ts.map +1 -1
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +11 -10
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/RuntimeId.d.ts +16 -6
- package/dist/types/accessorTree/RuntimeId.d.ts.map +1 -1
- package/dist/types/accessors/EntityAccessor.d.ts +1 -3
- package/dist/types/accessors/EntityAccessor.d.ts.map +1 -1
- package/dist/types/accessors/EntityListAccessor.d.ts +2 -2
- package/dist/types/accessors/EntityListAccessor.d.ts.map +1 -1
- package/dist/types/core/AccessorErrorManager.d.ts.map +1 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +2 -2
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +1 -1
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +1 -1
- package/dist/types/core/StateInitializer.d.ts.map +1 -1
- package/dist/types/core/TreeStore.d.ts +3 -3
- package/dist/types/core/TreeStore.d.ts.map +1 -1
- package/dist/types/core/operations/ListOperations.d.ts +2 -1
- package/dist/types/core/operations/ListOperations.d.ts.map +1 -1
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +1 -1
- package/dist/types/dao/Environment.d.ts +5 -5
- package/dist/types/dao/Environment.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts +1 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/accessorTree/MutationRequestResponse.ts +3 -1
- package/src/accessorTree/NormalizedPersistedData.ts +4 -4
- package/src/accessorTree/PersistResult.ts +2 -1
- package/src/accessorTree/QueryRequestResponse.ts +17 -14
- package/src/accessorTree/RuntimeId.ts +27 -6
- package/src/accessors/EntityAccessor.ts +2 -51
- package/src/accessors/EntityListAccessor.ts +3 -3
- package/src/core/AccessorErrorManager.ts +3 -0
- package/src/core/DataBinding.ts +6 -6
- package/src/core/ErrorsPreprocessor.ts +2 -2
- package/src/core/MutationGenerator.ts +5 -5
- package/src/core/RequestResponseNormalizer.ts +37 -38
- package/src/core/StateInitializer.ts +14 -14
- package/src/core/TreeAugmenter.ts +11 -11
- package/src/core/TreeFilterGenerator.ts +5 -5
- package/src/core/TreeStore.ts +12 -6
- package/src/core/operations/EntityOperations.ts +5 -5
- package/src/core/operations/FieldOperations.ts +2 -2
- package/src/core/operations/ListOperations.ts +4 -4
- package/src/core/operations/OperationsHelpers.ts +2 -2
- package/src/core/requestAliases/MutationAlias.ts +5 -3
- package/src/dao/Environment.ts +6 -6
- package/src/treeParameters/primitives/EntityId.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RelationFilter, TreeFilter } from '@contember/client'
|
|
2
|
-
import { EntityListPersistedData,
|
|
2
|
+
import { EntityListPersistedData, ServerId } from '../accessorTree'
|
|
3
3
|
import {
|
|
4
4
|
EntityFieldMarkersContainer,
|
|
5
5
|
EntityListSubTreeMarker,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
HasManyRelationMarker,
|
|
8
8
|
HasOneRelationMarker,
|
|
9
9
|
} from '../markers'
|
|
10
|
-
import type { EntityName } from '../treeParameters'
|
|
10
|
+
import type { EntityId, EntityName } from '../treeParameters'
|
|
11
11
|
import { assertNever } from '../utils'
|
|
12
12
|
import { StateIterator } from './state'
|
|
13
13
|
import type { TreeStore } from './TreeStore'
|
|
@@ -34,7 +34,7 @@ export class TreeFilterGenerator {
|
|
|
34
34
|
|
|
35
35
|
private generateSubTreeFilter(
|
|
36
36
|
subTree: EntitySubTreeMarker | EntityListSubTreeMarker,
|
|
37
|
-
persistedData:
|
|
37
|
+
persistedData: ServerId | EntityListPersistedData | undefined,
|
|
38
38
|
): TreeFilter[] {
|
|
39
39
|
const filters: TreeFilter[] = []
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ export class TreeFilterGenerator {
|
|
|
42
42
|
return filters // Do nothing
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
if (persistedData instanceof
|
|
45
|
+
if (persistedData instanceof ServerId) {
|
|
46
46
|
const filter = this.generateTopLevelEntityFilter(
|
|
47
47
|
persistedData.value,
|
|
48
48
|
subTree.parameters.entityName,
|
|
@@ -60,7 +60,7 @@ export class TreeFilterGenerator {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
private generateTopLevelEntityFilter(
|
|
63
|
-
id:
|
|
63
|
+
id: EntityId,
|
|
64
64
|
entityName: EntityName,
|
|
65
65
|
fields: EntityFieldMarkersContainer,
|
|
66
66
|
): TreeFilter | undefined {
|
package/src/core/TreeStore.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
NormalizedPersistedData,
|
|
3
|
+
PersistedEntityDataStore,
|
|
4
|
+
ReceivedDataTree,
|
|
5
|
+
SubTreeDataStore,
|
|
6
|
+
UniqueEntityId,
|
|
7
|
+
} from '../accessorTree'
|
|
2
8
|
import { BindingError } from '../BindingError'
|
|
3
9
|
import type { Environment } from '../dao'
|
|
4
10
|
import { MarkerTreeRoot, PlaceholderGenerator } from '../markers'
|
|
@@ -25,7 +31,7 @@ import type { EntityListState, EntityRealmState, EntityRealmStateStub, EntitySta
|
|
|
25
31
|
const emptyEntityIdSet: ReadonlySet<EntityId> = new Set()
|
|
26
32
|
|
|
27
33
|
export class TreeStore {
|
|
28
|
-
public readonly entityStore: Map<
|
|
34
|
+
public readonly entityStore: Map<UniqueEntityId, EntityState> = new Map()
|
|
29
35
|
public readonly entityRealmStore: Map<EntityRealmKey, EntityRealmState | EntityRealmStateStub> = new Map()
|
|
30
36
|
|
|
31
37
|
// This is tricky. We allow placeholder name duplicates, only the (TreeRootId, PlaceholderName) tuple is unique.
|
|
@@ -189,11 +195,11 @@ export class TreeStore {
|
|
|
189
195
|
return subTreeState
|
|
190
196
|
}
|
|
191
197
|
|
|
192
|
-
public getEntityListPersistedIds(state: EntityListState): ReadonlySet<
|
|
198
|
+
public getEntityListPersistedIds(state: EntityListState): ReadonlySet<EntityId> {
|
|
193
199
|
const blueprint = state.blueprint
|
|
194
200
|
|
|
195
201
|
if (blueprint.parent) {
|
|
196
|
-
const entityData = this.persistedEntityData.get(blueprint.parent.entity.id.
|
|
202
|
+
const entityData = this.persistedEntityData.get(blueprint.parent.entity.id.uniqueValue)
|
|
197
203
|
return (entityData?.get(blueprint.marker.placeholderName) as Set<string> | undefined) ?? emptyEntityIdSet
|
|
198
204
|
} else {
|
|
199
205
|
return (this.subTreePersistedData.get(blueprint.marker.placeholderName) as Set<string>) ?? emptyEntityIdSet
|
|
@@ -235,8 +241,8 @@ export class TreeStore {
|
|
|
235
241
|
for (const realm of entity.realms.values()) {
|
|
236
242
|
this.disposeOfRealm(realm)
|
|
237
243
|
}
|
|
238
|
-
this.entityStore.delete(entity.id.
|
|
239
|
-
this.persistedEntityData.delete(entity.id.
|
|
244
|
+
this.entityStore.delete(entity.id.uniqueValue)
|
|
245
|
+
this.persistedEntityData.delete(entity.id.uniqueValue)
|
|
240
246
|
}
|
|
241
247
|
|
|
242
248
|
public effectivelyHasTreeRoot(candidateRoot: MarkerTreeRoot): boolean {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BatchUpdatesOptions, EntityAccessor, ErrorAccessor } from '../../accessors'
|
|
2
|
-
import {
|
|
2
|
+
import { ServerId, UnpersistedEntityDummyId } from '../../accessorTree'
|
|
3
3
|
import { BindingError } from '../../BindingError'
|
|
4
4
|
import { EntityFieldMarkersContainer, HasOneRelationMarker } from '../../markers'
|
|
5
5
|
import type { FieldName } from '../../treeParameters'
|
|
@@ -48,7 +48,7 @@ export class EntityOperations {
|
|
|
48
48
|
this.eventManager.syncOperation(() => {
|
|
49
49
|
const stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)
|
|
50
50
|
const fieldsToConnect = getEntityMarker(stateToConnect).fields
|
|
51
|
-
const persistedData = this.treeStore.persistedEntityData.get(outerState.entity.id.
|
|
51
|
+
const persistedData = this.treeStore.persistedEntityData.get(outerState.entity.id.uniqueValue)
|
|
52
52
|
|
|
53
53
|
const entityName = outerState.entity.entityName
|
|
54
54
|
const fieldSchema = this.treeStore.schema.getEntityField(entityName, fieldName)
|
|
@@ -127,7 +127,7 @@ export class EntityOperations {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
const persistedId = persistedData?.get(targetHasOneMarker.placeholderName)
|
|
130
|
-
if (persistedId instanceof
|
|
130
|
+
if (persistedId instanceof ServerId) {
|
|
131
131
|
if (persistedId.value === stateToConnect.entity.id.value) {
|
|
132
132
|
changesDelta-- // It was removed from the list but now we're adding it back.
|
|
133
133
|
} else if (persistedId.value === previouslyConnectedState.entity.id.value) {
|
|
@@ -167,7 +167,7 @@ export class EntityOperations {
|
|
|
167
167
|
initializeReplacement: EntityAccessor.BatchUpdatesHandler | undefined,
|
|
168
168
|
) {
|
|
169
169
|
this.eventManager.syncOperation(() => {
|
|
170
|
-
const persistedData = this.treeStore.persistedEntityData.get(outerState.entity.id.
|
|
170
|
+
const persistedData = this.treeStore.persistedEntityData.get(outerState.entity.id.uniqueValue)
|
|
171
171
|
|
|
172
172
|
for (const state of StateIterator.eachSiblingRealm(outerState)) {
|
|
173
173
|
const targetHasOneMarkers = this.resolveHasOneRelationMarkers(
|
|
@@ -194,7 +194,7 @@ export class EntityOperations {
|
|
|
194
194
|
}
|
|
195
195
|
const persistedId = persistedData?.get(targetHasOneMarker.placeholderName)
|
|
196
196
|
|
|
197
|
-
if (persistedId instanceof
|
|
197
|
+
if (persistedId instanceof ServerId) {
|
|
198
198
|
if (persistedId.value === stateToDisconnect.entity.id.value) {
|
|
199
199
|
changesDelta++ // Disconnecting the persisted entity.
|
|
200
200
|
} else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { validate as uuidValidate } from 'uuid'
|
|
2
2
|
import { ErrorAccessor, FieldAccessor } from '../../accessors'
|
|
3
|
-
import { ClientGeneratedUuid } from '../../accessorTree'
|
|
3
|
+
import { ClientGeneratedUuid, ServerId } from '../../accessorTree'
|
|
4
4
|
import { BindingError } from '../../BindingError'
|
|
5
5
|
import { PRIMARY_KEY_NAME } from '../../bindingTypes'
|
|
6
6
|
import type { FieldValue } from '../../treeParameters'
|
|
@@ -66,7 +66,7 @@ export class FieldOperations {
|
|
|
66
66
|
`Hint: you may use 'FieldAccessor.asUuid.setToUuid()'.`,
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
|
-
if (this.treeStore.entityStore.has(newValue)) {
|
|
69
|
+
if (this.treeStore.entityStore.has(ServerId.formatUniqueValue(newValue, entity.entityName))) {
|
|
70
70
|
throw new BindingError(
|
|
71
71
|
`Trying to set the '${PRIMARY_KEY_NAME}' field to '${newValue}' which is a valid uuid but is not unique. ` +
|
|
72
72
|
`It is already in use by an existing entity.`,
|
|
@@ -11,7 +11,7 @@ import { EntityListState, getEntityMarker, StateIterator } from '../state'
|
|
|
11
11
|
import type { StateInitializer } from '../StateInitializer'
|
|
12
12
|
import type { TreeStore } from '../TreeStore'
|
|
13
13
|
import { OperationsHelpers } from './OperationsHelpers'
|
|
14
|
-
import { EventListenersStore } from '../../treeParameters'
|
|
14
|
+
import { EntityId, EventListenersStore } from '../../treeParameters'
|
|
15
15
|
|
|
16
16
|
export class ListOperations {
|
|
17
17
|
public constructor(
|
|
@@ -185,14 +185,14 @@ export class ListOperations {
|
|
|
185
185
|
})
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
public getChildEntityById(state: EntityListState, id:
|
|
188
|
+
public getChildEntityById(state: EntityListState, id: EntityId) {
|
|
189
189
|
const realm = state.children.get(id)
|
|
190
190
|
if (realm === undefined) {
|
|
191
|
-
const isRuntimeId = uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)
|
|
191
|
+
const isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)
|
|
192
192
|
if (isRuntimeId) {
|
|
193
193
|
throw new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)
|
|
194
194
|
}
|
|
195
|
-
const looksLikeKey = this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id)
|
|
195
|
+
const looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))
|
|
196
196
|
throw new BindingError(
|
|
197
197
|
`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +
|
|
198
198
|
(looksLikeKey
|
|
@@ -54,8 +54,8 @@ export class OperationsHelpers {
|
|
|
54
54
|
) {
|
|
55
55
|
const previousId = entity.id
|
|
56
56
|
|
|
57
|
-
treeStore.entityStore.delete(previousId.
|
|
58
|
-
treeStore.entityStore.set(newId.
|
|
57
|
+
treeStore.entityStore.delete(previousId.uniqueValue)
|
|
58
|
+
treeStore.entityStore.set(newId.uniqueValue, entity)
|
|
59
59
|
|
|
60
60
|
let counter = 0
|
|
61
61
|
for (const realm of entity.realms.values()) {
|
|
@@ -19,7 +19,7 @@ const standaloneUuidPrefix = uuidToAliasReplacement
|
|
|
19
19
|
export class MutationAlias {
|
|
20
20
|
public static encodeTopLevel(operation: TopLevelMutationOperation): string {
|
|
21
21
|
const treeRootId = operation.treeRootId === undefined ? 'u' : `t${operation.treeRootId.replace('-', '_')}t`
|
|
22
|
-
const entityId = operation.entityId.replace(uuidToAliasRegex, uuidToAliasReplacement)
|
|
22
|
+
const entityId = String(operation.entityId).replace(uuidToAliasRegex, uuidToAliasReplacement)
|
|
23
23
|
|
|
24
24
|
const alias = `${treeRootId}${operation.subTreePlaceholder}__${operation.type}${operation.subTreeType}${entityId}`
|
|
25
25
|
|
|
@@ -57,10 +57,12 @@ export class MutationAlias {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
public static encodeEntityId(entityId: RuntimeId): string {
|
|
60
|
-
return `${standaloneUuidPrefix}${entityId.value.replace(uuidToAliasRegex, uuidToAliasReplacement)}`
|
|
60
|
+
return `${standaloneUuidPrefix}${String(entityId.value).replace(uuidToAliasRegex, uuidToAliasReplacement)}`
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
public static decodeEntityId(alias: string): RuntimeId['value'] {
|
|
64
|
-
|
|
64
|
+
const stringId = `${alias.substring(standaloneUuidPrefix.length).replace(aliasToUuidRegex, aliasToUuidReplacement)}`
|
|
65
|
+
const intId = parseInt(stringId)
|
|
66
|
+
return intId.toString() === stringId ? intId : stringId
|
|
65
67
|
}
|
|
66
68
|
}
|
package/src/dao/Environment.ts
CHANGED
|
@@ -114,14 +114,14 @@ class Environment {
|
|
|
114
114
|
return key in this.options.parameters
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
public getParameter<F>(key: string): string {
|
|
118
|
-
if (!(key in this.options.parameters)
|
|
117
|
+
public getParameter<F>(key: string): string | number {
|
|
118
|
+
if (!(key in this.options.parameters)) {
|
|
119
119
|
throw new BindingError(`Parameter ${key} not found`)
|
|
120
120
|
}
|
|
121
|
-
return this.options.parameters[key] as string
|
|
121
|
+
return this.options.parameters[key] as string | number
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
public getParameterOrElse<F>(key: string, fallback: F): string | F {
|
|
124
|
+
public getParameterOrElse<F>(key: string, fallback: F): string | number | F {
|
|
125
125
|
return this.options.parameters[key] ?? fallback
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -275,8 +275,8 @@ namespace Environment {
|
|
|
275
275
|
[key: string]: string[]
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
export
|
|
279
|
-
[
|
|
278
|
+
export type Parameters = {
|
|
279
|
+
[K in string]?: string | number
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
export interface CustomVariables {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This *CAN* include dummy values, not just uuids
|
|
2
|
-
export type EntityId = string
|
|
2
|
+
export type EntityId = string | number
|