@contember/binding-common
Advanced tools
Comparing version 2.0.0-alpha.28 to 2.0.0-alpha.29
@@ -6,2 +6,5 @@ import { throwBindingError } from "../BindingError.js"; | ||
} | ||
getEnumNames() { | ||
return Array.from(this.store.enums.keys()); | ||
} | ||
getEnumValues(enumName) { | ||
@@ -8,0 +11,0 @@ return Array.from(this.store.enums.get(enumName) ?? throwBindingError(`Missing schema for enum ${enumName}`)); |
@@ -26,3 +26,3 @@ import { ContentQueryBuilder } from "@contember/client-content"; | ||
})), | ||
enums: Object.fromEntries(schema.getEntityNames().map((it) => [it, schema.getEnumValues(it)])) | ||
enums: Object.fromEntries(schema.getEnumNames().map((it) => [it, schema.getEnumValues(it)])) | ||
}; | ||
@@ -29,0 +29,0 @@ return new ContentQueryBuilder(schemaNames); |
@@ -6,2 +6,5 @@ import { throwBindingError } from "../BindingError.js"; | ||
} | ||
getEnumNames() { | ||
return Array.from(this.store.enums.keys()); | ||
} | ||
getEnumValues(enumName) { | ||
@@ -8,0 +11,0 @@ return Array.from(this.store.enums.get(enumName) ?? throwBindingError(`Missing schema for enum ${enumName}`)); |
@@ -26,3 +26,3 @@ import { ContentQueryBuilder } from "@contember/client-content"; | ||
})), | ||
enums: Object.fromEntries(schema.getEntityNames().map((it) => [it, schema.getEnumValues(it)])) | ||
enums: Object.fromEntries(schema.getEnumNames().map((it) => [it, schema.getEnumValues(it)])) | ||
}; | ||
@@ -29,0 +29,0 @@ return new ContentQueryBuilder(schemaNames); |
@@ -11,2 +11,3 @@ import type { EntityName, FieldName } from '../treeParameters'; | ||
constructor(store: SchemaStore); | ||
getEnumNames(): string[]; | ||
getEnumValues(enumName: SchemaEnumName): string[]; | ||
@@ -13,0 +14,0 @@ getEntityOrUndefined(entityName: EntityName): SchemaEntity | undefined; |
{ | ||
"name": "@contember/binding-common", | ||
"license": "Apache-2.0", | ||
"version": "2.0.0-alpha.28", | ||
"version": "2.0.0-alpha.29", | ||
"type": "module", | ||
@@ -32,5 +32,5 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@contember/client": "2.0.0-alpha.28", | ||
"@contember/client-content": "2.0.0-alpha.28", | ||
"@contember/utilities": "2.0.0-alpha.28", | ||
"@contember/client": "2.0.0-alpha.29", | ||
"@contember/client-content": "2.0.0-alpha.29", | ||
"@contember/utilities": "2.0.0-alpha.29", | ||
"chevrotain": "6.5.0", | ||
@@ -37,0 +37,0 @@ "fast-deep-equal": "^3.1.3", |
@@ -13,2 +13,7 @@ import type { EntityName, FieldName } from '../treeParameters' | ||
public getEnumNames(): string[] { | ||
return Array.from(this.store.enums.keys()) | ||
} | ||
public getEnumValues(enumName: SchemaEnumName): string[] { | ||
@@ -15,0 +20,0 @@ return Array.from(this.store.enums.get(enumName) ?? throwBindingError(`Missing schema for enum ${enumName}`)) |
@@ -28,3 +28,3 @@ import { ContentQueryBuilder, SchemaEntityNames, SchemaNames } from '@contember/client-content' | ||
})), | ||
enums: Object.fromEntries(schema.getEntityNames().map(it => [it, schema.getEnumValues(it)])), | ||
enums: Object.fromEntries(schema.getEnumNames().map(it => [it, schema.getEnumValues(it)])), | ||
} | ||
@@ -31,0 +31,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1917070
20818
+ Added@contember/client@2.0.0-alpha.29(transitive)
+ Added@contember/client-content@2.0.0-alpha.29(transitive)
+ Added@contember/graphql-builder@2.0.0-alpha.29(transitive)
+ Added@contember/graphql-client@2.0.0-alpha.29(transitive)
+ Added@contember/schema@2.0.0-alpha.29(transitive)
+ Added@contember/utilities@2.0.0-alpha.29(transitive)
- Removed@contember/client@2.0.0-alpha.28(transitive)
- Removed@contember/client-content@2.0.0-alpha.28(transitive)
- Removed@contember/graphql-builder@2.0.0-alpha.28(transitive)
- Removed@contember/graphql-client@2.0.0-alpha.28(transitive)
- Removed@contember/schema@2.0.0-alpha.28(transitive)
- Removed@contember/utilities@2.0.0-alpha.28(transitive)