@fgv/ts-res 5.1.0-2 → 5.1.0-21
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/index.browser.js.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/packlets/bundle/bundleBuilder.js.map +1 -0
- package/dist/packlets/bundle/bundleLoader.js.map +1 -0
- package/dist/packlets/bundle/bundleNormalizer.js.map +1 -0
- package/dist/packlets/bundle/bundleUtils.js.map +1 -0
- package/dist/packlets/bundle/convert.js.map +1 -0
- package/dist/packlets/bundle/index.js.map +1 -0
- package/dist/packlets/bundle/model.js.map +1 -0
- package/dist/packlets/common/conditions.js.map +1 -0
- package/dist/packlets/common/convert.js.map +1 -0
- package/dist/packlets/common/helpers/conditions.js.map +1 -0
- package/dist/packlets/common/helpers/context.js.map +1 -0
- package/dist/packlets/common/helpers/index.js.map +1 -0
- package/dist/packlets/common/helpers/qualifierDefaultValues.js.map +1 -0
- package/dist/packlets/common/helpers/resources.js +2 -4
- package/dist/packlets/common/helpers/resources.js.map +1 -0
- package/dist/packlets/common/index.js.map +1 -0
- package/dist/packlets/common/resources.js.map +1 -0
- package/dist/packlets/common/validate/conditions.js +4 -4
- package/dist/packlets/common/validate/conditions.js.map +1 -0
- package/dist/packlets/common/validate/index.js.map +1 -0
- package/dist/packlets/common/validate/regularExpressions.js +2 -2
- package/dist/packlets/common/validate/regularExpressions.js.map +1 -0
- package/dist/packlets/common/validate/resources.js +1 -1
- package/dist/packlets/common/validate/resources.js.map +1 -0
- package/dist/packlets/conditions/condition.js +3 -7
- package/dist/packlets/conditions/condition.js.map +1 -0
- package/dist/packlets/conditions/conditionCollector.js.map +1 -0
- package/dist/packlets/conditions/conditionDecls.js.map +1 -0
- package/dist/packlets/conditions/conditionSet.js.map +1 -0
- package/dist/packlets/conditions/conditionSetCollector.js.map +1 -0
- package/dist/packlets/conditions/conditionSetDecls.js.map +1 -0
- package/dist/packlets/conditions/conditionToken.js.map +1 -0
- package/dist/packlets/conditions/convert/conditionSetDecls.js.map +1 -0
- package/dist/packlets/conditions/convert/decls.js.map +1 -0
- package/dist/packlets/conditions/convert/index.js.map +1 -0
- package/dist/packlets/conditions/index.js.map +1 -0
- package/dist/packlets/config/common.js +78 -0
- package/dist/packlets/config/common.js.map +1 -0
- package/dist/packlets/config/configInitFactory.js +258 -0
- package/dist/packlets/config/configInitFactory.js.map +1 -0
- package/dist/packlets/config/convert.js +56 -0
- package/dist/packlets/config/convert.js.map +1 -0
- package/dist/packlets/config/index.browser.js +34 -0
- package/dist/packlets/config/index.browser.js.map +1 -0
- package/dist/packlets/config/index.js +28 -0
- package/dist/packlets/config/index.js.map +1 -0
- package/dist/packlets/config/json.js +23 -0
- package/dist/packlets/config/json.js.map +1 -0
- package/dist/packlets/config/predefined/default.js +138 -0
- package/dist/packlets/config/predefined/default.js.map +1 -0
- package/dist/packlets/config/predefined/extended.js +190 -0
- package/dist/packlets/config/predefined/extended.js.map +1 -0
- package/dist/packlets/config/predefined/index.js +25 -0
- package/dist/packlets/config/predefined/index.js.map +1 -0
- package/dist/packlets/config/systemConfiguration.js +147 -0
- package/dist/packlets/config/systemConfiguration.js.map +1 -0
- package/dist/packlets/context/contextDecls.js.map +1 -0
- package/dist/packlets/context/contextToken.js.map +1 -0
- package/dist/packlets/context/convert/decls.js.map +1 -0
- package/dist/packlets/context/convert/index.js.map +1 -0
- package/dist/packlets/context/index.js.map +1 -0
- package/dist/packlets/decisions/abstractDecision.js.map +1 -0
- package/dist/packlets/decisions/abstractDecisionCollector.js.map +1 -0
- package/dist/packlets/decisions/candidate.js.map +1 -0
- package/dist/packlets/decisions/common.js.map +1 -0
- package/dist/packlets/decisions/concreteDecision.js.map +1 -0
- package/dist/packlets/decisions/decision.js +1 -1
- package/dist/packlets/decisions/decision.js.map +1 -0
- package/dist/packlets/decisions/index.js.map +1 -0
- package/dist/packlets/import/fsItem.js +1 -4
- package/dist/packlets/import/fsItem.js.map +1 -0
- package/dist/packlets/import/importContext.js +3 -3
- package/dist/packlets/import/importContext.js.map +1 -0
- package/dist/packlets/import/importManager.js +7 -3
- package/dist/packlets/import/importManager.js.map +1 -0
- package/dist/packlets/import/importable.js.map +1 -0
- package/dist/packlets/import/importers/collectionImporter.js +2 -2
- package/dist/packlets/import/importers/collectionImporter.js.map +1 -0
- package/dist/packlets/import/importers/fsItemImporter.js +30 -14
- package/dist/packlets/import/importers/fsItemImporter.js.map +1 -0
- package/dist/packlets/import/importers/importer.js.map +1 -0
- package/dist/packlets/import/importers/index.browser.js.map +1 -0
- package/dist/packlets/import/importers/index.js.map +1 -0
- package/dist/packlets/import/importers/jsonImporter.js +2 -2
- package/dist/packlets/import/importers/jsonImporter.js.map +1 -0
- package/dist/packlets/import/importers/pathImporter.js +1 -1
- package/dist/packlets/import/importers/pathImporter.js.map +1 -0
- package/dist/packlets/import/index.browser.js.map +1 -0
- package/dist/packlets/import/index.js.map +1 -0
- package/dist/packlets/qualifier-types/config/convert.js +124 -0
- package/dist/packlets/qualifier-types/config/convert.js.map +1 -0
- package/dist/packlets/qualifier-types/config/index.js +25 -0
- package/dist/packlets/qualifier-types/config/index.js.map +1 -0
- package/dist/packlets/qualifier-types/config/json.js +32 -0
- package/dist/packlets/qualifier-types/config/json.js.map +1 -0
- package/dist/packlets/qualifier-types/convert.js.map +1 -0
- package/dist/packlets/qualifier-types/helpers.js.map +1 -0
- package/dist/packlets/qualifier-types/index.js.map +1 -0
- package/dist/packlets/qualifier-types/languageQualifierType.js +6 -7
- package/dist/packlets/qualifier-types/languageQualifierType.js.map +1 -0
- package/dist/packlets/qualifier-types/literalQualifierType.js +7 -10
- package/dist/packlets/qualifier-types/literalQualifierType.js.map +1 -0
- package/dist/packlets/qualifier-types/literalValueHierarchy.js.map +1 -0
- package/dist/packlets/qualifier-types/qualifierType.js +12 -13
- package/dist/packlets/qualifier-types/qualifierType.js.map +1 -0
- package/dist/packlets/qualifier-types/qualifierTypeCollector.js.map +1 -0
- package/dist/packlets/qualifier-types/territoryQualifierType.js +5 -5
- package/dist/packlets/qualifier-types/territoryQualifierType.js.map +1 -0
- package/dist/packlets/qualifiers/convert/decls.js.map +1 -0
- package/dist/packlets/qualifiers/convert/index.js.map +1 -0
- package/dist/packlets/qualifiers/convert/qualifier.js.map +1 -0
- package/dist/packlets/qualifiers/index.js.map +1 -0
- package/dist/packlets/qualifiers/qualifier.js +6 -7
- package/dist/packlets/qualifiers/qualifier.js.map +1 -0
- package/dist/packlets/qualifiers/qualifierCollector.js +2 -2
- package/dist/packlets/qualifiers/qualifierCollector.js.map +1 -0
- package/dist/packlets/qualifiers/qualifierDecl.js.map +1 -0
- package/dist/packlets/qualifiers/qualifierDefaultValueDecls.js.map +1 -0
- package/dist/packlets/qualifiers/qualifierDefaultValueToken.js.map +1 -0
- package/dist/packlets/resource-json/compiled/common.js.map +1 -0
- package/dist/packlets/resource-json/compiled/convert.js.map +1 -0
- package/dist/packlets/resource-json/compiled/index.js.map +1 -0
- package/dist/packlets/resource-json/compiled/json.js.map +1 -0
- package/dist/packlets/resource-json/convert.js.map +1 -0
- package/dist/packlets/resource-json/helpers.js.map +1 -0
- package/dist/packlets/resource-json/index.js.map +1 -0
- package/dist/packlets/resource-json/json.js.map +1 -0
- package/dist/packlets/resource-json/normalized.js.map +1 -0
- package/dist/packlets/resource-json/resourceDeclCollection.js +1 -1
- package/dist/packlets/resource-json/resourceDeclCollection.js.map +1 -0
- package/dist/packlets/resource-json/resourceDeclContainer.js.map +1 -0
- package/dist/packlets/resource-json/resourceDeclTree.js +1 -1
- package/dist/packlets/resource-json/resourceDeclTree.js.map +1 -0
- package/dist/packlets/resource-types/config/convert.js +35 -0
- package/dist/packlets/resource-types/config/convert.js.map +1 -0
- package/dist/packlets/resource-types/config/index.js +25 -0
- package/dist/packlets/resource-types/config/index.js.map +1 -0
- package/dist/packlets/resource-types/config/json.js +23 -0
- package/dist/packlets/resource-types/config/json.js.map +1 -0
- package/dist/packlets/resource-types/helpers.js.map +1 -0
- package/dist/packlets/resource-types/index.js.map +1 -0
- package/dist/packlets/resource-types/jsonResourceType.js +2 -2
- package/dist/packlets/resource-types/jsonResourceType.js.map +1 -0
- package/dist/packlets/resource-types/resourceType.js +2 -2
- package/dist/packlets/resource-types/resourceType.js.map +1 -0
- package/dist/packlets/resource-types/resourceTypeCollector.js.map +1 -0
- package/dist/packlets/resources/candidateReducer.js.map +1 -0
- package/dist/packlets/resources/candidateValue.js.map +1 -0
- package/dist/packlets/resources/candidateValueCollector.js.map +1 -0
- package/dist/packlets/resources/common.js.map +1 -0
- package/dist/packlets/resources/deltaGenerator.js.map +1 -0
- package/dist/packlets/resources/index.js.map +1 -0
- package/dist/packlets/resources/resource.js.map +1 -0
- package/dist/packlets/resources/resourceBuilder.js +2 -2
- package/dist/packlets/resources/resourceBuilder.js.map +1 -0
- package/dist/packlets/resources/resourceCandidate.js.map +1 -0
- package/dist/packlets/resources/resourceManagerBuilder.js +5 -5
- package/dist/packlets/resources/resourceManagerBuilder.js.map +1 -0
- package/dist/packlets/runtime/cacheListener.js.map +1 -0
- package/dist/packlets/runtime/cacheMetrics.js.map +1 -0
- package/dist/packlets/runtime/compiledResourceCollection.js +5 -5
- package/dist/packlets/runtime/compiledResourceCollection.js.map +1 -0
- package/dist/packlets/runtime/conditionSetResolutionResult.js.map +1 -0
- package/dist/packlets/runtime/context/contextQualifierProvider.js.map +1 -0
- package/dist/packlets/runtime/context/contextQualifierProviderValidator.js.map +1 -0
- package/dist/packlets/runtime/context/index.js.map +1 -0
- package/dist/packlets/runtime/context/simpleContextQualifierProvider.js.map +1 -0
- package/dist/packlets/runtime/context/validatingSimpleContextQualifierProvider.js.map +1 -0
- package/dist/packlets/runtime/iResourceManager.js.map +1 -0
- package/dist/packlets/runtime/index.js.map +1 -0
- package/dist/packlets/runtime/resource-tree/common.js.map +1 -0
- package/dist/packlets/runtime/resource-tree/index.js.map +1 -0
- package/dist/packlets/runtime/resource-tree/readOnlyResourceTree.js.map +1 -0
- package/dist/packlets/runtime/resource-tree/resourceTreeChildren.js.map +1 -0
- package/dist/packlets/runtime/resource-tree/resourceTreeChildrenValidator.js.map +1 -0
- package/dist/packlets/runtime/resourceResolver.js.map +1 -0
- package/dist/packlets/runtime/resourceTreeResolver.js.map +1 -0
- package/dist/packlets/runtime/validate.js.map +1 -0
- package/dist/packlets/zip-archive/convert.js.map +1 -0
- package/dist/packlets/zip-archive/index.browser.js.map +1 -0
- package/dist/packlets/zip-archive/index.js.map +1 -0
- package/dist/packlets/zip-archive/json.js.map +1 -0
- package/dist/packlets/zip-archive/types.js.map +1 -0
- package/dist/packlets/zip-archive/zipArchiveCreator.js.map +1 -0
- package/dist/packlets/zip-archive/zipArchiveFormat.js.map +1 -0
- package/dist/packlets/zip-archive/zipArchiveLoader.js.map +1 -0
- package/dist/ts-res.d.ts +134 -112
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/index.browser.d.ts.map +1 -0
- package/lib/index.browser.js.map +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js.map +1 -0
- package/lib/packlets/bundle/bundleBuilder.d.ts.map +1 -0
- package/lib/packlets/bundle/bundleBuilder.js.map +1 -0
- package/lib/packlets/bundle/bundleLoader.d.ts.map +1 -0
- package/lib/packlets/bundle/bundleLoader.js.map +1 -0
- package/lib/packlets/bundle/bundleNormalizer.d.ts.map +1 -0
- package/lib/packlets/bundle/bundleNormalizer.js.map +1 -0
- package/lib/packlets/bundle/bundleUtils.d.ts.map +1 -0
- package/lib/packlets/bundle/bundleUtils.js.map +1 -0
- package/lib/packlets/bundle/convert.d.ts.map +1 -0
- package/lib/packlets/bundle/convert.js.map +1 -0
- package/lib/packlets/bundle/index.d.ts.map +1 -0
- package/lib/packlets/bundle/index.js.map +1 -0
- package/lib/packlets/bundle/model.d.ts.map +1 -0
- package/lib/packlets/bundle/model.js.map +1 -0
- package/lib/packlets/common/conditions.d.ts.map +1 -0
- package/lib/packlets/common/conditions.js.map +1 -0
- package/lib/packlets/common/convert.d.ts.map +1 -0
- package/lib/packlets/common/convert.js.map +1 -0
- package/lib/packlets/common/helpers/conditions.d.ts.map +1 -0
- package/lib/packlets/common/helpers/conditions.js.map +1 -0
- package/lib/packlets/common/helpers/context.d.ts.map +1 -0
- package/lib/packlets/common/helpers/context.js.map +1 -0
- package/lib/packlets/common/helpers/index.d.ts.map +1 -0
- package/lib/packlets/common/helpers/index.js.map +1 -0
- package/lib/packlets/common/helpers/qualifierDefaultValues.d.ts.map +1 -0
- package/lib/packlets/common/helpers/qualifierDefaultValues.js.map +1 -0
- package/lib/packlets/common/helpers/resources.d.ts +2 -4
- package/lib/packlets/common/helpers/resources.d.ts.map +1 -0
- package/lib/packlets/common/helpers/resources.js +2 -4
- package/lib/packlets/common/helpers/resources.js.map +1 -0
- package/lib/packlets/common/index.d.ts.map +1 -0
- package/lib/packlets/common/index.js.map +1 -0
- package/lib/packlets/common/resources.d.ts.map +1 -0
- package/lib/packlets/common/resources.js.map +1 -0
- package/lib/packlets/common/validate/conditions.d.ts +4 -4
- package/lib/packlets/common/validate/conditions.d.ts.map +1 -0
- package/lib/packlets/common/validate/conditions.js +4 -4
- package/lib/packlets/common/validate/conditions.js.map +1 -0
- package/lib/packlets/common/validate/index.d.ts.map +1 -0
- package/lib/packlets/common/validate/index.js.map +1 -0
- package/lib/packlets/common/validate/regularExpressions.d.ts +2 -2
- package/lib/packlets/common/validate/regularExpressions.d.ts.map +1 -0
- package/lib/packlets/common/validate/regularExpressions.js +2 -2
- package/lib/packlets/common/validate/regularExpressions.js.map +1 -0
- package/lib/packlets/common/validate/resources.d.ts +1 -1
- package/lib/packlets/common/validate/resources.d.ts.map +1 -0
- package/lib/packlets/common/validate/resources.js +1 -1
- package/lib/packlets/common/validate/resources.js.map +1 -0
- package/lib/packlets/conditions/condition.d.ts +3 -7
- package/lib/packlets/conditions/condition.d.ts.map +1 -0
- package/lib/packlets/conditions/condition.js +3 -7
- package/lib/packlets/conditions/condition.js.map +1 -0
- package/lib/packlets/conditions/conditionCollector.d.ts.map +1 -0
- package/lib/packlets/conditions/conditionCollector.js.map +1 -0
- package/lib/packlets/conditions/conditionDecls.d.ts.map +1 -0
- package/lib/packlets/conditions/conditionDecls.js.map +1 -0
- package/lib/packlets/conditions/conditionSet.d.ts.map +1 -0
- package/lib/packlets/conditions/conditionSet.js.map +1 -0
- package/lib/packlets/conditions/conditionSetCollector.d.ts.map +1 -0
- package/lib/packlets/conditions/conditionSetCollector.js.map +1 -0
- package/lib/packlets/conditions/conditionSetDecls.d.ts.map +1 -0
- package/lib/packlets/conditions/conditionSetDecls.js.map +1 -0
- package/lib/packlets/conditions/conditionToken.d.ts.map +1 -0
- package/lib/packlets/conditions/conditionToken.js.map +1 -0
- package/lib/packlets/conditions/convert/conditionSetDecls.d.ts.map +1 -0
- package/lib/packlets/conditions/convert/conditionSetDecls.js.map +1 -0
- package/lib/packlets/conditions/convert/decls.d.ts.map +1 -0
- package/lib/packlets/conditions/convert/decls.js.map +1 -0
- package/lib/packlets/conditions/convert/index.d.ts.map +1 -0
- package/lib/packlets/conditions/convert/index.js.map +1 -0
- package/lib/packlets/conditions/index.d.ts.map +1 -0
- package/lib/packlets/conditions/index.js.map +1 -0
- package/lib/packlets/config/common.d.ts +35 -0
- package/lib/packlets/config/common.d.ts.map +1 -0
- package/lib/packlets/config/common.js +97 -0
- package/lib/packlets/config/common.js.map +1 -0
- package/lib/packlets/config/configInitFactory.d.ts +217 -0
- package/lib/packlets/config/configInitFactory.d.ts.map +1 -0
- package/lib/packlets/config/configInitFactory.js +303 -0
- package/lib/packlets/config/configInitFactory.js.map +1 -0
- package/lib/packlets/config/convert.d.ts +23 -0
- package/lib/packlets/config/convert.d.ts.map +1 -0
- package/lib/packlets/config/convert.js +93 -0
- package/lib/packlets/config/convert.js.map +1 -0
- package/lib/packlets/config/index.browser.d.ts +7 -0
- package/lib/packlets/config/index.browser.d.ts.map +1 -0
- package/lib/packlets/config/index.browser.js +74 -0
- package/lib/packlets/config/index.browser.js.map +1 -0
- package/lib/packlets/config/index.d.ts +7 -0
- package/lib/packlets/config/index.d.ts.map +1 -0
- package/lib/packlets/config/index.js +68 -0
- package/lib/packlets/config/index.js.map +1 -0
- package/lib/packlets/config/json.d.ts +20 -0
- package/lib/packlets/config/json.d.ts.map +1 -0
- package/lib/packlets/config/json.js +24 -0
- package/lib/packlets/config/json.js.map +1 -0
- package/lib/packlets/config/predefined/default.d.ts +57 -0
- package/lib/packlets/config/predefined/default.d.ts.map +1 -0
- package/lib/packlets/config/predefined/default.js +141 -0
- package/lib/packlets/config/predefined/default.js.map +1 -0
- package/lib/packlets/config/predefined/extended.d.ts +25 -0
- package/lib/packlets/config/predefined/extended.d.ts.map +1 -0
- package/lib/packlets/config/predefined/extended.js +193 -0
- package/lib/packlets/config/predefined/extended.js.map +1 -0
- package/lib/packlets/config/predefined/index.d.ts +4 -0
- package/lib/packlets/config/predefined/index.d.ts.map +1 -0
- package/lib/packlets/config/predefined/index.js +62 -0
- package/lib/packlets/config/predefined/index.js.map +1 -0
- package/lib/packlets/config/systemConfiguration.d.ts +94 -0
- package/lib/packlets/config/systemConfiguration.d.ts.map +1 -0
- package/lib/packlets/config/systemConfiguration.js +152 -0
- package/lib/packlets/config/systemConfiguration.js.map +1 -0
- package/lib/packlets/context/contextDecls.d.ts.map +1 -0
- package/lib/packlets/context/contextDecls.js.map +1 -0
- package/lib/packlets/context/contextToken.d.ts.map +1 -0
- package/lib/packlets/context/contextToken.js.map +1 -0
- package/lib/packlets/context/convert/decls.d.ts.map +1 -0
- package/lib/packlets/context/convert/decls.js.map +1 -0
- package/lib/packlets/context/convert/index.d.ts.map +1 -0
- package/lib/packlets/context/convert/index.js.map +1 -0
- package/lib/packlets/context/index.d.ts.map +1 -0
- package/lib/packlets/context/index.js.map +1 -0
- package/lib/packlets/decisions/abstractDecision.d.ts.map +1 -0
- package/lib/packlets/decisions/abstractDecision.js.map +1 -0
- package/lib/packlets/decisions/abstractDecisionCollector.d.ts.map +1 -0
- package/lib/packlets/decisions/abstractDecisionCollector.js.map +1 -0
- package/lib/packlets/decisions/candidate.d.ts.map +1 -0
- package/lib/packlets/decisions/candidate.js.map +1 -0
- package/lib/packlets/decisions/common.d.ts.map +1 -0
- package/lib/packlets/decisions/common.js.map +1 -0
- package/lib/packlets/decisions/concreteDecision.d.ts.map +1 -0
- package/lib/packlets/decisions/concreteDecision.js.map +1 -0
- package/lib/packlets/decisions/decision.d.ts +1 -1
- package/lib/packlets/decisions/decision.d.ts.map +1 -0
- package/lib/packlets/decisions/decision.js +1 -1
- package/lib/packlets/decisions/decision.js.map +1 -0
- package/lib/packlets/decisions/index.d.ts.map +1 -0
- package/lib/packlets/decisions/index.js.map +1 -0
- package/lib/packlets/import/fsItem.d.ts +1 -4
- package/lib/packlets/import/fsItem.d.ts.map +1 -0
- package/lib/packlets/import/fsItem.js +1 -4
- package/lib/packlets/import/fsItem.js.map +1 -0
- package/lib/packlets/import/importContext.d.ts +5 -5
- package/lib/packlets/import/importContext.d.ts.map +1 -0
- package/lib/packlets/import/importContext.js +3 -3
- package/lib/packlets/import/importContext.js.map +1 -0
- package/lib/packlets/import/importManager.d.ts +15 -1
- package/lib/packlets/import/importManager.d.ts.map +1 -0
- package/lib/packlets/import/importManager.js +7 -3
- package/lib/packlets/import/importManager.js.map +1 -0
- package/lib/packlets/import/importable.d.ts.map +1 -0
- package/lib/packlets/import/importable.js.map +1 -0
- package/lib/packlets/import/importers/collectionImporter.d.ts +2 -2
- package/lib/packlets/import/importers/collectionImporter.d.ts.map +1 -0
- package/lib/packlets/import/importers/collectionImporter.js +2 -2
- package/lib/packlets/import/importers/collectionImporter.js.map +1 -0
- package/lib/packlets/import/importers/fsItemImporter.d.ts +16 -2
- package/lib/packlets/import/importers/fsItemImporter.d.ts.map +1 -0
- package/lib/packlets/import/importers/fsItemImporter.js +29 -13
- package/lib/packlets/import/importers/fsItemImporter.js.map +1 -0
- package/lib/packlets/import/importers/importer.d.ts.map +1 -0
- package/lib/packlets/import/importers/importer.js.map +1 -0
- package/lib/packlets/import/importers/index.browser.d.ts.map +1 -0
- package/lib/packlets/import/importers/index.browser.js.map +1 -0
- package/lib/packlets/import/importers/index.d.ts.map +1 -0
- package/lib/packlets/import/importers/index.js.map +1 -0
- package/lib/packlets/import/importers/jsonImporter.d.ts +2 -2
- package/lib/packlets/import/importers/jsonImporter.d.ts.map +1 -0
- package/lib/packlets/import/importers/jsonImporter.js +2 -2
- package/lib/packlets/import/importers/jsonImporter.js.map +1 -0
- package/lib/packlets/import/importers/pathImporter.d.ts +1 -1
- package/lib/packlets/import/importers/pathImporter.d.ts.map +1 -0
- package/lib/packlets/import/importers/pathImporter.js +1 -1
- package/lib/packlets/import/importers/pathImporter.js.map +1 -0
- package/lib/packlets/import/index.browser.d.ts.map +1 -0
- package/lib/packlets/import/index.browser.js.map +1 -0
- package/lib/packlets/import/index.d.ts.map +1 -0
- package/lib/packlets/import/index.js.map +1 -0
- package/lib/packlets/qualifier-types/config/convert.d.ts +65 -0
- package/lib/packlets/qualifier-types/config/convert.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/config/convert.js +161 -0
- package/lib/packlets/qualifier-types/config/convert.js.map +1 -0
- package/lib/packlets/qualifier-types/config/index.d.ts +4 -0
- package/lib/packlets/qualifier-types/config/index.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/config/index.js +64 -0
- package/lib/packlets/qualifier-types/config/index.js.map +1 -0
- package/lib/packlets/qualifier-types/config/json.d.ts +91 -0
- package/lib/packlets/qualifier-types/config/json.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/config/json.js +35 -0
- package/lib/packlets/qualifier-types/config/json.js.map +1 -0
- package/lib/packlets/qualifier-types/convert.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/convert.js.map +1 -0
- package/lib/packlets/qualifier-types/helpers.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/helpers.js.map +1 -0
- package/lib/packlets/qualifier-types/index.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/index.js.map +1 -0
- package/lib/packlets/qualifier-types/languageQualifierType.d.ts +6 -7
- package/lib/packlets/qualifier-types/languageQualifierType.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/languageQualifierType.js +6 -7
- package/lib/packlets/qualifier-types/languageQualifierType.js.map +1 -0
- package/lib/packlets/qualifier-types/literalQualifierType.d.ts +7 -10
- package/lib/packlets/qualifier-types/literalQualifierType.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/literalQualifierType.js +7 -10
- package/lib/packlets/qualifier-types/literalQualifierType.js.map +1 -0
- package/lib/packlets/qualifier-types/literalValueHierarchy.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/literalValueHierarchy.js.map +1 -0
- package/lib/packlets/qualifier-types/qualifierType.d.ts +17 -18
- package/lib/packlets/qualifier-types/qualifierType.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/qualifierType.js +12 -13
- package/lib/packlets/qualifier-types/qualifierType.js.map +1 -0
- package/lib/packlets/qualifier-types/qualifierTypeCollector.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/qualifierTypeCollector.js.map +1 -0
- package/lib/packlets/qualifier-types/territoryQualifierType.d.ts +8 -8
- package/lib/packlets/qualifier-types/territoryQualifierType.d.ts.map +1 -0
- package/lib/packlets/qualifier-types/territoryQualifierType.js +5 -5
- package/lib/packlets/qualifier-types/territoryQualifierType.js.map +1 -0
- package/lib/packlets/qualifiers/convert/decls.d.ts.map +1 -0
- package/lib/packlets/qualifiers/convert/decls.js.map +1 -0
- package/lib/packlets/qualifiers/convert/index.d.ts.map +1 -0
- package/lib/packlets/qualifiers/convert/index.js.map +1 -0
- package/lib/packlets/qualifiers/convert/qualifier.d.ts.map +1 -0
- package/lib/packlets/qualifiers/convert/qualifier.js.map +1 -0
- package/lib/packlets/qualifiers/index.d.ts.map +1 -0
- package/lib/packlets/qualifiers/index.js.map +1 -0
- package/lib/packlets/qualifiers/qualifier.d.ts +6 -7
- package/lib/packlets/qualifiers/qualifier.d.ts.map +1 -0
- package/lib/packlets/qualifiers/qualifier.js +6 -7
- package/lib/packlets/qualifiers/qualifier.js.map +1 -0
- package/lib/packlets/qualifiers/qualifierCollector.d.ts +3 -3
- package/lib/packlets/qualifiers/qualifierCollector.d.ts.map +1 -0
- package/lib/packlets/qualifiers/qualifierCollector.js +2 -2
- package/lib/packlets/qualifiers/qualifierCollector.js.map +1 -0
- package/lib/packlets/qualifiers/qualifierDecl.d.ts.map +1 -0
- package/lib/packlets/qualifiers/qualifierDecl.js.map +1 -0
- package/lib/packlets/qualifiers/qualifierDefaultValueDecls.d.ts.map +1 -0
- package/lib/packlets/qualifiers/qualifierDefaultValueDecls.js.map +1 -0
- package/lib/packlets/qualifiers/qualifierDefaultValueToken.d.ts.map +1 -0
- package/lib/packlets/qualifiers/qualifierDefaultValueToken.js.map +1 -0
- package/lib/packlets/resource-json/compiled/common.d.ts.map +1 -0
- package/lib/packlets/resource-json/compiled/common.js.map +1 -0
- package/lib/packlets/resource-json/compiled/convert.d.ts.map +1 -0
- package/lib/packlets/resource-json/compiled/convert.js.map +1 -0
- package/lib/packlets/resource-json/compiled/index.d.ts.map +1 -0
- package/lib/packlets/resource-json/compiled/index.js.map +1 -0
- package/lib/packlets/resource-json/compiled/json.d.ts.map +1 -0
- package/lib/packlets/resource-json/compiled/json.js.map +1 -0
- package/lib/packlets/resource-json/convert.d.ts.map +1 -0
- package/lib/packlets/resource-json/convert.js.map +1 -0
- package/lib/packlets/resource-json/helpers.d.ts.map +1 -0
- package/lib/packlets/resource-json/helpers.js.map +1 -0
- package/lib/packlets/resource-json/index.d.ts.map +1 -0
- package/lib/packlets/resource-json/index.js.map +1 -0
- package/lib/packlets/resource-json/json.d.ts.map +1 -0
- package/lib/packlets/resource-json/json.js.map +1 -0
- package/lib/packlets/resource-json/normalized.d.ts.map +1 -0
- package/lib/packlets/resource-json/normalized.js.map +1 -0
- package/lib/packlets/resource-json/resourceDeclCollection.d.ts +1 -1
- package/lib/packlets/resource-json/resourceDeclCollection.d.ts.map +1 -0
- package/lib/packlets/resource-json/resourceDeclCollection.js +1 -1
- package/lib/packlets/resource-json/resourceDeclCollection.js.map +1 -0
- package/lib/packlets/resource-json/resourceDeclContainer.d.ts.map +1 -0
- package/lib/packlets/resource-json/resourceDeclContainer.js.map +1 -0
- package/lib/packlets/resource-json/resourceDeclTree.d.ts +1 -1
- package/lib/packlets/resource-json/resourceDeclTree.d.ts.map +1 -0
- package/lib/packlets/resource-json/resourceDeclTree.js +1 -1
- package/lib/packlets/resource-json/resourceDeclTree.js.map +1 -0
- package/lib/packlets/resource-types/config/convert.d.ts +8 -0
- package/lib/packlets/resource-types/config/convert.d.ts.map +1 -0
- package/lib/packlets/resource-types/config/convert.js +38 -0
- package/lib/packlets/resource-types/config/convert.js.map +1 -0
- package/lib/packlets/resource-types/config/index.d.ts +4 -0
- package/lib/packlets/resource-types/config/index.d.ts.map +1 -0
- package/lib/packlets/resource-types/config/index.js +64 -0
- package/lib/packlets/resource-types/config/index.js.map +1 -0
- package/lib/packlets/resource-types/config/json.d.ts +11 -0
- package/lib/packlets/resource-types/config/json.d.ts.map +1 -0
- package/lib/packlets/resource-types/config/json.js +24 -0
- package/lib/packlets/resource-types/config/json.js.map +1 -0
- package/lib/packlets/resource-types/helpers.d.ts.map +1 -0
- package/lib/packlets/resource-types/helpers.js.map +1 -0
- package/lib/packlets/resource-types/index.d.ts.map +1 -0
- package/lib/packlets/resource-types/index.js.map +1 -0
- package/lib/packlets/resource-types/jsonResourceType.d.ts +17 -5
- package/lib/packlets/resource-types/jsonResourceType.d.ts.map +1 -0
- package/lib/packlets/resource-types/jsonResourceType.js +2 -2
- package/lib/packlets/resource-types/jsonResourceType.js.map +1 -0
- package/lib/packlets/resource-types/resourceType.d.ts +5 -5
- package/lib/packlets/resource-types/resourceType.d.ts.map +1 -0
- package/lib/packlets/resource-types/resourceType.js +2 -2
- package/lib/packlets/resource-types/resourceType.js.map +1 -0
- package/lib/packlets/resource-types/resourceTypeCollector.d.ts.map +1 -0
- package/lib/packlets/resource-types/resourceTypeCollector.js.map +1 -0
- package/lib/packlets/resources/candidateReducer.d.ts.map +1 -0
- package/lib/packlets/resources/candidateReducer.js.map +1 -0
- package/lib/packlets/resources/candidateValue.d.ts.map +1 -0
- package/lib/packlets/resources/candidateValue.js.map +1 -0
- package/lib/packlets/resources/candidateValueCollector.d.ts.map +1 -0
- package/lib/packlets/resources/candidateValueCollector.js.map +1 -0
- package/lib/packlets/resources/common.d.ts.map +1 -0
- package/lib/packlets/resources/common.js.map +1 -0
- package/lib/packlets/resources/deltaGenerator.d.ts.map +1 -0
- package/lib/packlets/resources/deltaGenerator.js.map +1 -0
- package/lib/packlets/resources/index.d.ts.map +1 -0
- package/lib/packlets/resources/index.js.map +1 -0
- package/lib/packlets/resources/resource.d.ts.map +1 -0
- package/lib/packlets/resources/resource.js.map +1 -0
- package/lib/packlets/resources/resourceBuilder.d.ts +2 -2
- package/lib/packlets/resources/resourceBuilder.d.ts.map +1 -0
- package/lib/packlets/resources/resourceBuilder.js +2 -2
- package/lib/packlets/resources/resourceBuilder.js.map +1 -0
- package/lib/packlets/resources/resourceCandidate.d.ts.map +1 -0
- package/lib/packlets/resources/resourceCandidate.js.map +1 -0
- package/lib/packlets/resources/resourceManagerBuilder.d.ts +5 -5
- package/lib/packlets/resources/resourceManagerBuilder.d.ts.map +1 -0
- package/lib/packlets/resources/resourceManagerBuilder.js +5 -5
- package/lib/packlets/resources/resourceManagerBuilder.js.map +1 -0
- package/lib/packlets/runtime/cacheListener.d.ts.map +1 -0
- package/lib/packlets/runtime/cacheListener.js.map +1 -0
- package/lib/packlets/runtime/cacheMetrics.d.ts.map +1 -0
- package/lib/packlets/runtime/cacheMetrics.js.map +1 -0
- package/lib/packlets/runtime/compiledResourceCollection.d.ts +5 -5
- package/lib/packlets/runtime/compiledResourceCollection.d.ts.map +1 -0
- package/lib/packlets/runtime/compiledResourceCollection.js +5 -5
- package/lib/packlets/runtime/compiledResourceCollection.js.map +1 -0
- package/lib/packlets/runtime/conditionSetResolutionResult.d.ts.map +1 -0
- package/lib/packlets/runtime/conditionSetResolutionResult.js.map +1 -0
- package/lib/packlets/runtime/context/contextQualifierProvider.d.ts.map +1 -0
- package/lib/packlets/runtime/context/contextQualifierProvider.js.map +1 -0
- package/lib/packlets/runtime/context/contextQualifierProviderValidator.d.ts.map +1 -0
- package/lib/packlets/runtime/context/contextQualifierProviderValidator.js.map +1 -0
- package/lib/packlets/runtime/context/index.d.ts.map +1 -0
- package/lib/packlets/runtime/context/index.js.map +1 -0
- package/lib/packlets/runtime/context/simpleContextQualifierProvider.d.ts.map +1 -0
- package/lib/packlets/runtime/context/simpleContextQualifierProvider.js.map +1 -0
- package/lib/packlets/runtime/context/validatingSimpleContextQualifierProvider.d.ts.map +1 -0
- package/lib/packlets/runtime/context/validatingSimpleContextQualifierProvider.js.map +1 -0
- package/lib/packlets/runtime/iResourceManager.d.ts.map +1 -0
- package/lib/packlets/runtime/iResourceManager.js.map +1 -0
- package/lib/packlets/runtime/index.d.ts.map +1 -0
- package/lib/packlets/runtime/index.js.map +1 -0
- package/lib/packlets/runtime/resource-tree/common.d.ts.map +1 -0
- package/lib/packlets/runtime/resource-tree/common.js.map +1 -0
- package/lib/packlets/runtime/resource-tree/index.d.ts.map +1 -0
- package/lib/packlets/runtime/resource-tree/index.js.map +1 -0
- package/lib/packlets/runtime/resource-tree/readOnlyResourceTree.d.ts.map +1 -0
- package/lib/packlets/runtime/resource-tree/readOnlyResourceTree.js.map +1 -0
- package/lib/packlets/runtime/resource-tree/resourceTreeChildren.d.ts.map +1 -0
- package/lib/packlets/runtime/resource-tree/resourceTreeChildren.js.map +1 -0
- package/lib/packlets/runtime/resource-tree/resourceTreeChildrenValidator.d.ts.map +1 -0
- package/lib/packlets/runtime/resource-tree/resourceTreeChildrenValidator.js.map +1 -0
- package/lib/packlets/runtime/resourceResolver.d.ts.map +1 -0
- package/lib/packlets/runtime/resourceResolver.js.map +1 -0
- package/lib/packlets/runtime/resourceTreeResolver.d.ts.map +1 -0
- package/lib/packlets/runtime/resourceTreeResolver.js.map +1 -0
- package/lib/packlets/runtime/validate.d.ts.map +1 -0
- package/lib/packlets/runtime/validate.js.map +1 -0
- package/lib/packlets/zip-archive/convert.d.ts.map +1 -0
- package/lib/packlets/zip-archive/convert.js.map +1 -0
- package/lib/packlets/zip-archive/index.browser.d.ts.map +1 -0
- package/lib/packlets/zip-archive/index.browser.js.map +1 -0
- package/lib/packlets/zip-archive/index.d.ts.map +1 -0
- package/lib/packlets/zip-archive/index.js.map +1 -0
- package/lib/packlets/zip-archive/json.d.ts.map +1 -0
- package/lib/packlets/zip-archive/json.js.map +1 -0
- package/lib/packlets/zip-archive/types.d.ts.map +1 -0
- package/lib/packlets/zip-archive/types.js.map +1 -0
- package/lib/packlets/zip-archive/zipArchiveCreator.d.ts.map +1 -0
- package/lib/packlets/zip-archive/zipArchiveCreator.js.map +1 -0
- package/lib/packlets/zip-archive/zipArchiveFormat.d.ts.map +1 -0
- package/lib/packlets/zip-archive/zipArchiveFormat.js.map +1 -0
- package/lib/packlets/zip-archive/zipArchiveLoader.d.ts.map +1 -0
- package/lib/packlets/zip-archive/zipArchiveLoader.js.map +1 -0
- package/package.json +28 -26
- package/dist/test/data/sample.json +0 -32
- package/dist/test/unit/qualifier-types/testQualifierType.js +0 -76
- package/dist/test/unit/resource-types/testDerivedResourceType.js +0 -109
- package/dist/test/unit/resources/deltaGenerator.helpers.js +0 -282
package/dist/ts-res.d.ts
CHANGED
|
@@ -799,7 +799,7 @@ declare const childResourceDecl: Converter<Normalized.IChildResourceDecl>;
|
|
|
799
799
|
*/
|
|
800
800
|
declare class CollectionImporter implements IImporter {
|
|
801
801
|
/**
|
|
802
|
-
* {@
|
|
802
|
+
* {@inheritDoc Import.Importers.IImporter.types}
|
|
803
803
|
*/
|
|
804
804
|
readonly types: string[];
|
|
805
805
|
/**
|
|
@@ -813,7 +813,7 @@ declare class CollectionImporter implements IImporter {
|
|
|
813
813
|
*/
|
|
814
814
|
static create(): Result<CollectionImporter>;
|
|
815
815
|
/**
|
|
816
|
-
* {@
|
|
816
|
+
* {@inheritDoc Import.Importers.IImporter.import}
|
|
817
817
|
*/
|
|
818
818
|
import(item: IImportable, manager: ResourceManagerBuilder): DetailedResult<IImportable[], ImporterResultDetail>;
|
|
819
819
|
/**
|
|
@@ -1010,16 +1010,16 @@ declare class CompiledResourceCollection implements IResourceManager<IResource>
|
|
|
1010
1010
|
*/
|
|
1011
1011
|
get candidateValues(): ReadonlyArray<JsonValue>;
|
|
1012
1012
|
/**
|
|
1013
|
-
* {@
|
|
1013
|
+
* {@inheritDoc Runtime.IResourceManager.builtResources}
|
|
1014
1014
|
*/
|
|
1015
1015
|
get builtResources(): Collections.IReadOnlyValidatingResultMap<ResourceId, IResource>;
|
|
1016
1016
|
/**
|
|
1017
|
-
* {@
|
|
1017
|
+
* {@inheritDoc Runtime.IResourceManager.numResources}
|
|
1018
1018
|
*/
|
|
1019
1019
|
get numResources(): number;
|
|
1020
1020
|
protected _numCandidates?: number;
|
|
1021
1021
|
/**
|
|
1022
|
-
* {@
|
|
1022
|
+
* {@inheritDoc Runtime.IResourceManager.numCandidates}
|
|
1023
1023
|
*/
|
|
1024
1024
|
get numCandidates(): number;
|
|
1025
1025
|
/**
|
|
@@ -1037,11 +1037,11 @@ declare class CompiledResourceCollection implements IResourceManager<IResource>
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
static create(params: ICompiledResourceCollectionCreateParams): Result<CompiledResourceCollection>;
|
|
1039
1039
|
/**
|
|
1040
|
-
* {@
|
|
1040
|
+
* {@inheritDoc Runtime.IResourceManager.getBuiltResource}
|
|
1041
1041
|
*/
|
|
1042
1042
|
getBuiltResource(id: string): Result<IResource>;
|
|
1043
1043
|
/**
|
|
1044
|
-
* {@
|
|
1044
|
+
* {@inheritDoc Runtime.IResourceManager.validateContext}
|
|
1045
1045
|
*/
|
|
1046
1046
|
validateContext(context: Context.IContextDecl): Result<Context.IValidatedContextDecl>;
|
|
1047
1047
|
/**
|
|
@@ -1209,12 +1209,8 @@ export declare class Condition implements IValidatedConditionDecl {
|
|
|
1209
1209
|
protected _collectible: Collections.Collectible<ConditionKey, ConditionIndex>;
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Constructs a new {@link Conditions.Condition | Condition} object.
|
|
1212
|
-
* @param
|
|
1213
|
-
*
|
|
1214
|
-
* @param operator - The {@link ConditionOperator | operator} used when matching context value to condition value.
|
|
1215
|
-
* @param priority - The {@link ConditionPriority | relative priority} of this condition.
|
|
1216
|
-
* @param scoreAsDefault - The {@link QualifierMatchScore | score} to be used when this condition is the default.
|
|
1217
|
-
* @param index - The index of this condition.
|
|
1212
|
+
* @param params - The {@link Conditions.IValidatedConditionDecl | validated condition declaration}
|
|
1213
|
+
* used to construct this condition.
|
|
1218
1214
|
* @public
|
|
1219
1215
|
*/
|
|
1220
1216
|
protected constructor({ qualifier, value, operator, priority, scoreAsDefault, index }: IValidatedConditionDecl);
|
|
@@ -1238,7 +1234,7 @@ export declare class Condition implements IValidatedConditionDecl {
|
|
|
1238
1234
|
* @returns A {@link QualifierMatchScore | match score} indicating match quality if the condition is present
|
|
1239
1235
|
* in the context to be matched, `undefined` otherwise.
|
|
1240
1236
|
* @remarks
|
|
1241
|
-
* If {@link Context.IContextMatchOptions.partialContextMatch | `options.partialContextMatch
|
|
1237
|
+
* If {@link Context.IContextMatchOptions.partialContextMatch | `options.partialContextMatch`} is `true`, then
|
|
1242
1238
|
* the method will return `undefined` if the corresponding qualifier is not present in the context.
|
|
1243
1239
|
*/
|
|
1244
1240
|
getContextMatch(context: Context.IValidatedContextDecl, options?: Context.IContextMatchOptions): QualifierMatchScore | undefined;
|
|
@@ -1394,8 +1390,8 @@ declare const conditionKey: Converter<ConditionKey, unknown>;
|
|
|
1394
1390
|
|
|
1395
1391
|
/**
|
|
1396
1392
|
* The format of a {@link ConditionKey | condition key} is:
|
|
1397
|
-
*
|
|
1398
|
-
*
|
|
1393
|
+
* \<qualifierName\>-\[<value>\]\[\@<priority>\]\(\<scoreAsDefault\>\) where operator is `matches`, or
|
|
1394
|
+
* \<qualifierName\>-\<operator\>-\[<value>\]\[\@<priority>\]\(\<scoreAsDefault\>\)
|
|
1399
1395
|
* @internal
|
|
1400
1396
|
*/
|
|
1401
1397
|
declare const conditionKey_2: RegExp;
|
|
@@ -2450,7 +2446,7 @@ export declare class Decision<TVALUE extends JsonValue = JsonValue> implements I
|
|
|
2450
2446
|
static getAbstractKey(conditionSets: ReadonlyArray<ConditionSet>): DecisionKey;
|
|
2451
2447
|
/**
|
|
2452
2448
|
* Helper function to return a stable key for a set of condition sets.
|
|
2453
|
-
* @param
|
|
2449
|
+
* @param candidates - The candidates whose condition sets are used to create the key.
|
|
2454
2450
|
* @returns A key derived from the condition set hashes.
|
|
2455
2451
|
* @public
|
|
2456
2452
|
*/
|
|
@@ -2771,9 +2767,6 @@ declare class FsItem implements IFsItemProps {
|
|
|
2771
2767
|
* @param props - The {@link Import.IFsItemProps | file system item properties} to use for this item.
|
|
2772
2768
|
* @param qualifiers - The {@link Qualifiers.IReadOnlyQualifierCollector | qualifiers} used to parse
|
|
2773
2769
|
* embedded condition set tokens.
|
|
2774
|
-
* @param tree - file tree implementation to use for this item.
|
|
2775
|
-
* @returns `Success` containing the new {@link Import.FsItem | FsItem} if successful, or a `Failure`
|
|
2776
|
-
* containing an error message if not.
|
|
2777
2770
|
*/
|
|
2778
2771
|
protected constructor(props: IFsItemProps, qualifiers: IReadOnlyQualifierCollector);
|
|
2779
2772
|
/**
|
|
@@ -2791,7 +2784,7 @@ declare class FsItem implements IFsItemProps {
|
|
|
2791
2784
|
* @param importPath - The path to the file system item to import.
|
|
2792
2785
|
* @param qualifiers - The {@link Qualifiers.IReadOnlyQualifierCollector | qualifiers} used to parse
|
|
2793
2786
|
* embedded condition set tokens.
|
|
2794
|
-
* @param
|
|
2787
|
+
* @param tree - An optional {@link FileTree.FileTree | file tree} to use for this item.
|
|
2795
2788
|
* @returns `Success` containing the new {@link Import.FsItem | FsItem} if an item is created
|
|
2796
2789
|
* successfully, or a `Failure` containing an error message if it is not. Note that the result detail
|
|
2797
2790
|
* `skipped` indicates that the item was not created because it is not relevant - this is a soft error
|
|
@@ -2824,6 +2817,14 @@ declare class FsItemImporter implements IImporter {
|
|
|
2824
2817
|
* The {@link Qualifiers.IReadOnlyQualifierCollector | qualifier collector} to use for this importer.
|
|
2825
2818
|
*/
|
|
2826
2819
|
readonly qualifiers: IReadOnlyQualifierCollector;
|
|
2820
|
+
/**
|
|
2821
|
+
* Optional converter used to parse raw file contents before they are exposed as JSON importables.
|
|
2822
|
+
*/
|
|
2823
|
+
readonly fileContentConverter?: Converter<JsonValue>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Optional list of file extensions which should be parsed using the file content converter.
|
|
2826
|
+
*/
|
|
2827
|
+
readonly fileContentExtensions?: ReadonlyArray<string>;
|
|
2827
2828
|
/**
|
|
2828
2829
|
* The types of {@link Import.IImportable | importables} that this importer can handle.
|
|
2829
2830
|
*/
|
|
@@ -2840,9 +2841,12 @@ declare class FsItemImporter implements IImporter {
|
|
|
2840
2841
|
*/
|
|
2841
2842
|
static create(params: IFsItemImporterCreateParams): Result<FsItemImporter>;
|
|
2842
2843
|
/**
|
|
2843
|
-
* {@
|
|
2844
|
+
* {@inheritDoc Import.Importers.IImporter.import}
|
|
2844
2845
|
*/
|
|
2845
2846
|
import(item: IImportable, __manager: ResourceManagerBuilder): DetailedResult<IImportable[], ImporterResultDetail>;
|
|
2847
|
+
private _isSupportedFileExtension;
|
|
2848
|
+
private _getJsonContents;
|
|
2849
|
+
private _canConvertFileExtension;
|
|
2846
2850
|
/**
|
|
2847
2851
|
* Gets an {@link Import.FsItem | FsItem} from an {@link Import.IImportable | importable}.
|
|
2848
2852
|
* @param item - The importable to convert.
|
|
@@ -4021,6 +4025,8 @@ declare const identifierList: RegExp;
|
|
|
4021
4025
|
*/
|
|
4022
4026
|
declare interface IFsItemImporterCreateParams {
|
|
4023
4027
|
qualifiers: IReadOnlyQualifierCollector;
|
|
4028
|
+
fileContentConverter?: Converter<JsonValue>;
|
|
4029
|
+
fileContentExtensions?: ReadonlyArray<string>;
|
|
4024
4030
|
}
|
|
4025
4031
|
|
|
4026
4032
|
/**
|
|
@@ -4204,6 +4210,14 @@ declare interface IImporterCreateParams {
|
|
|
4204
4210
|
* An optional list of {@link Import.Importers.IImporter | importers} to use for the import.
|
|
4205
4211
|
*/
|
|
4206
4212
|
importers?: IImporter[];
|
|
4213
|
+
/**
|
|
4214
|
+
* An optional converter used to pre-process file contents before JSON import validation.
|
|
4215
|
+
*/
|
|
4216
|
+
fileContentConverter?: Converter<JsonValue>;
|
|
4217
|
+
/**
|
|
4218
|
+
* Optional file extensions which should be parsed using the supplied file content converter.
|
|
4219
|
+
*/
|
|
4220
|
+
fileContentExtensions?: ReadonlyArray<string>;
|
|
4207
4221
|
}
|
|
4208
4222
|
|
|
4209
4223
|
/**
|
|
@@ -4556,18 +4570,18 @@ declare type Importable = IImportablePath | IImportableFsItem | IImportableJson
|
|
|
4556
4570
|
*/
|
|
4557
4571
|
declare class ImportContext implements IValidatedImportContext {
|
|
4558
4572
|
/**
|
|
4559
|
-
* {@
|
|
4573
|
+
* {@inheritDoc Import.IImportContext.baseId}
|
|
4560
4574
|
*/
|
|
4561
4575
|
readonly baseId: ResourceId | undefined;
|
|
4562
4576
|
/**
|
|
4563
|
-
* {@
|
|
4577
|
+
* {@inheritDoc Import.IImportContext.conditions}
|
|
4564
4578
|
*/
|
|
4565
4579
|
readonly conditions: ReadonlyArray<IConditionDecl>;
|
|
4566
4580
|
/**
|
|
4567
4581
|
* Protected {@link Import.ImportContext | import context} for derived classes.
|
|
4568
4582
|
* Public consumers use {@link Import.ImportContext.create | create} to create new instances.
|
|
4569
|
-
* @param
|
|
4570
|
-
*
|
|
4583
|
+
* @param params - The {@link Import.IImportContext | import context} parameters including
|
|
4584
|
+
* the base ID and conditions to be applied to resources imported in this context.
|
|
4571
4585
|
*/
|
|
4572
4586
|
protected constructor({ baseId, conditions }: IImportContext);
|
|
4573
4587
|
/**
|
|
@@ -4587,7 +4601,7 @@ declare class ImportContext implements IValidatedImportContext {
|
|
|
4587
4601
|
withConditions(conditions: IConditionDecl[]): Result<ImportContext>;
|
|
4588
4602
|
/**
|
|
4589
4603
|
* Appends names to the base ID of the import context.
|
|
4590
|
-
* @param
|
|
4604
|
+
* @param names - The name segments to append to the base ID.
|
|
4591
4605
|
* @returns `Success` with a new {@link Import.ImportContext | import context} containing the new base ID
|
|
4592
4606
|
* if successful, or `Failure` with an error message if the operation fails.
|
|
4593
4607
|
*/
|
|
@@ -4717,9 +4731,13 @@ declare class ImportManager {
|
|
|
4717
4731
|
* and optional `FileTree`.
|
|
4718
4732
|
* @param qualifiers - The {@link Qualifiers.IReadOnlyQualifierCollector | qualifiers} to use for the import.
|
|
4719
4733
|
* @param tree - An optional `FileTree` for importing path items.
|
|
4734
|
+
* @param fileContentConverter - An optional converter used to pre-process raw file contents before JSON import
|
|
4735
|
+
* validation.
|
|
4736
|
+
* @param fileContentExtensions - Optional file extensions which should be parsed using the supplied file
|
|
4737
|
+
* content converter.
|
|
4720
4738
|
* @returns A read-only array of {@link Import.Importers.IImporter | importers}.
|
|
4721
4739
|
*/
|
|
4722
|
-
static getDefaultImporters(qualifiers: IReadOnlyQualifierCollector, tree?: FileTree.FileTree): ReadonlyArray<IImporter>;
|
|
4740
|
+
static getDefaultImporters(qualifiers: IReadOnlyQualifierCollector, tree?: FileTree.FileTree, fileContentConverter?: Converter<JsonValue>, fileContentExtensions?: ReadonlyArray<string>): ReadonlyArray<IImporter>;
|
|
4723
4741
|
/**
|
|
4724
4742
|
* Imports any items on the import stack.
|
|
4725
4743
|
* @returns `Success` with the {@link Import.ImportManager | ImportManager} if successful,
|
|
@@ -5059,7 +5077,7 @@ declare interface IReadOnlyContextQualifierProviderValidatorCreateParams<T exten
|
|
|
5059
5077
|
*/
|
|
5060
5078
|
declare interface IReadOnlyQualifierCollector extends Collections.IReadOnlyValidatingCollector<Qualifier> {
|
|
5061
5079
|
/**
|
|
5062
|
-
* {@
|
|
5080
|
+
* {@inheritDoc Qualifiers.QualifierCollector.qualifierTypes}
|
|
5063
5081
|
*/
|
|
5064
5082
|
readonly qualifierTypes: ReadOnlyQualifierTypeCollector;
|
|
5065
5083
|
/**
|
|
@@ -5273,7 +5291,7 @@ declare interface IResourceCandidateCreateParams {
|
|
|
5273
5291
|
*/
|
|
5274
5292
|
declare interface IResourceCandidateValidationProperties {
|
|
5275
5293
|
/**
|
|
5276
|
-
* {@
|
|
5294
|
+
* {@inheritDoc ResourceJson.Json.ILooseResourceCandidateDecl.id}
|
|
5277
5295
|
* @public
|
|
5278
5296
|
*/
|
|
5279
5297
|
id: ResourceId;
|
|
@@ -5283,12 +5301,12 @@ declare interface IResourceCandidateValidationProperties {
|
|
|
5283
5301
|
*/
|
|
5284
5302
|
completeness: CandidateCompleteness;
|
|
5285
5303
|
/**
|
|
5286
|
-
* {@
|
|
5304
|
+
* {@inheritDoc ResourceJson.Json.ILooseResourceCandidateDecl.json}
|
|
5287
5305
|
* @public
|
|
5288
5306
|
*/
|
|
5289
5307
|
json: JsonValue;
|
|
5290
5308
|
/**
|
|
5291
|
-
* {@
|
|
5309
|
+
* {@inheritDoc ResourceJson.Json.ILooseResourceCandidateDecl.mergeMethod}
|
|
5292
5310
|
* @public
|
|
5293
5311
|
*/
|
|
5294
5312
|
mergeMethod: ResourceValueMergeMethod;
|
|
@@ -6155,15 +6173,15 @@ declare interface ITerritoryQualifierTypeConfig {
|
|
|
6155
6173
|
*/
|
|
6156
6174
|
declare interface ITerritoryQualifierTypeCreateParams {
|
|
6157
6175
|
/**
|
|
6158
|
-
* {@
|
|
6176
|
+
* {@inheritDoc QualifierTypes.IQualifierTypeCreateParams.name}
|
|
6159
6177
|
*/
|
|
6160
6178
|
name?: string;
|
|
6161
6179
|
/**
|
|
6162
|
-
* {@
|
|
6180
|
+
* {@inheritDoc QualifierTypes.IQualifierTypeCreateParams.allowContextList}
|
|
6163
6181
|
*/
|
|
6164
6182
|
allowContextList?: boolean;
|
|
6165
6183
|
/**
|
|
6166
|
-
* {@
|
|
6184
|
+
* {@inheritDoc QualifierTypes.IQualifierTypeCreateParams.index}
|
|
6167
6185
|
*/
|
|
6168
6186
|
index?: number;
|
|
6169
6187
|
/**
|
|
@@ -6416,8 +6434,7 @@ declare interface IZipArchiveResult {
|
|
|
6416
6434
|
* Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with
|
|
6417
6435
|
* to create a new {@link ResourceId | resource ID}. Returns `undefined` if no names are defined.
|
|
6418
6436
|
*
|
|
6419
|
-
* @param
|
|
6420
|
-
* @param names - Additional names to join.
|
|
6437
|
+
* @param ids - The names or IDs to join.
|
|
6421
6438
|
* @returns `Success` with the new ID if the base and names are valid, `Success` with `undefined`
|
|
6422
6439
|
* if names were present, or `Failure` with an error message if the resulting id is invalid.
|
|
6423
6440
|
* @public
|
|
@@ -6428,8 +6445,7 @@ declare function joinOptionalResourceIds(...ids: (string | undefined)[]): Result
|
|
|
6428
6445
|
* Joins a list of {@link ResourceId | resource ID} or {@link ResourceName | resource name} with
|
|
6429
6446
|
* to create a new {@link ResourceId | resource ID}. Fails if resulting ID is invalid or empty.
|
|
6430
6447
|
*
|
|
6431
|
-
* @param
|
|
6432
|
-
* @param names - Additional names to join.
|
|
6448
|
+
* @param ids - The names or IDs to join.
|
|
6433
6449
|
* @returns `Success` with the new ID if the base and names are valid, or `Failure` with an error message
|
|
6434
6450
|
* if not.
|
|
6435
6451
|
* @public
|
|
@@ -6475,7 +6491,7 @@ declare namespace Json_2 {
|
|
|
6475
6491
|
*/
|
|
6476
6492
|
declare class JsonImporter implements IImporter {
|
|
6477
6493
|
/**
|
|
6478
|
-
* {@
|
|
6494
|
+
* {@inheritDoc Import.Importers.IImporter.types}
|
|
6479
6495
|
*/
|
|
6480
6496
|
readonly types: ReadonlyArray<string>;
|
|
6481
6497
|
/**
|
|
@@ -6489,7 +6505,7 @@ declare class JsonImporter implements IImporter {
|
|
|
6489
6505
|
*/
|
|
6490
6506
|
static create(): Result<JsonImporter>;
|
|
6491
6507
|
/**
|
|
6492
|
-
* {@
|
|
6508
|
+
* {@inheritDoc Import.Importers.IImporter.import}
|
|
6493
6509
|
*/
|
|
6494
6510
|
import(item: IImportable, manager: ResourceManagerBuilder): DetailedResult<IImportable[], ImporterResultDetail>;
|
|
6495
6511
|
private _tryImportResourceCollection;
|
|
@@ -6509,7 +6525,7 @@ declare const jsonQualifierTypeConfig: Converter<Model_2.IQualifierTypeConfig<Js
|
|
|
6509
6525
|
*/
|
|
6510
6526
|
declare class JsonResourceType extends ResourceType<JsonObject> {
|
|
6511
6527
|
/**
|
|
6512
|
-
* {@
|
|
6528
|
+
* {@inheritDoc ResourceTypes.ResourceType.systemTypeName}
|
|
6513
6529
|
*/
|
|
6514
6530
|
readonly systemTypeName: ResourceTypeName;
|
|
6515
6531
|
/**
|
|
@@ -6527,19 +6543,31 @@ declare class JsonResourceType extends ResourceType<JsonObject> {
|
|
|
6527
6543
|
*/
|
|
6528
6544
|
static create(params?: IJsonResourceTypeCreateParams): Result<JsonResourceType>;
|
|
6529
6545
|
/**
|
|
6530
|
-
* {@
|
|
6546
|
+
* {@inheritDoc ResourceTypes.ResourceType.validateDeclaration}
|
|
6531
6547
|
*/
|
|
6532
6548
|
validateDeclaration(props: IResourceCandidateValidationProperties): Result<JsonObject>;
|
|
6533
6549
|
/**
|
|
6534
|
-
*
|
|
6550
|
+
* Validates a JSON value for use as a resource instance value.
|
|
6551
|
+
* @param json - The JSON value to validate.
|
|
6552
|
+
* @param completeness - Describes {@link CandidateCompleteness | how complete} the candidate value is.
|
|
6553
|
+
* @returns `Success` with the strongly-typed resource value if the JSON is valid,
|
|
6554
|
+
* `Failure` with an error message otherwise.
|
|
6535
6555
|
*/
|
|
6536
6556
|
validate(json: JsonObject, completeness: CandidateCompleteness): Result<JsonObject>;
|
|
6537
6557
|
/**
|
|
6538
|
-
*
|
|
6558
|
+
* Validates a JSON value for use as a complete resource instance value.
|
|
6559
|
+
* @param json - The JSON value to validate.
|
|
6560
|
+
* @param completeness - Must be `'full'` to indicate a complete value.
|
|
6561
|
+
* @returns `Success` with the strongly-typed resource value if the JSON is valid,
|
|
6562
|
+
* `Failure` with an error message otherwise.
|
|
6539
6563
|
*/
|
|
6540
6564
|
validate(json: JsonObject, completeness: 'full'): Result<JsonObject>;
|
|
6541
6565
|
/**
|
|
6542
|
-
*
|
|
6566
|
+
* Validates a JSON value for use as a partial resource instance value.
|
|
6567
|
+
* @param json - The JSON value to validate.
|
|
6568
|
+
* @param completeness - Must be `'partial'` to indicate a partial value.
|
|
6569
|
+
* @returns `Success` with the strongly-typed partial resource value if the JSON is valid,
|
|
6570
|
+
* `Failure` with an error message otherwise.
|
|
6543
6571
|
*/
|
|
6544
6572
|
validate(json: JsonObject, completeness: 'partial'): Result<JsonObject>;
|
|
6545
6573
|
}
|
|
@@ -6570,14 +6598,13 @@ declare const LanguagePrioritySystemConfiguration: ISystemConfiguration;
|
|
|
6570
6598
|
*/
|
|
6571
6599
|
declare class LanguageQualifierType extends QualifierType<JsonCompatibleType<Config_2.ILanguageQualifierTypeConfig>> {
|
|
6572
6600
|
/**
|
|
6573
|
-
* {@
|
|
6601
|
+
* {@inheritDoc QualifierTypes.IQualifierType.systemTypeName}
|
|
6574
6602
|
*/
|
|
6575
6603
|
readonly systemTypeName: QualifierTypeName;
|
|
6576
6604
|
/**
|
|
6577
6605
|
* Creates a new instance of a {@link QualifierTypes.LanguageQualifierType | language qualifier type}.
|
|
6578
|
-
* @param
|
|
6579
|
-
*
|
|
6580
|
-
* list of values. Defaults to `true`.
|
|
6606
|
+
* @param params - The {@link QualifierTypes.ILanguageQualifierTypeCreateParams | create parameters}
|
|
6607
|
+
* for this qualifier type.
|
|
6581
6608
|
* @public
|
|
6582
6609
|
*/
|
|
6583
6610
|
protected constructor({ name, allowContextList, index }: ILanguageQualifierTypeCreateParams);
|
|
@@ -6599,7 +6626,7 @@ declare class LanguageQualifierType extends QualifierType<JsonCompatibleType<Con
|
|
|
6599
6626
|
*/
|
|
6600
6627
|
static createFromConfig(config: Config_2.IQualifierTypeConfig<Config_2.ILanguageQualifierTypeConfig>): Result<LanguageQualifierType>;
|
|
6601
6628
|
/**
|
|
6602
|
-
* {@
|
|
6629
|
+
* {@inheritDoc QualifierTypes.IQualifierType.isValidConditionValue}
|
|
6603
6630
|
*/
|
|
6604
6631
|
isValidConditionValue(value: string): value is QualifierConditionValue;
|
|
6605
6632
|
/**
|
|
@@ -6609,11 +6636,11 @@ declare class LanguageQualifierType extends QualifierType<JsonCompatibleType<Con
|
|
|
6609
6636
|
*/
|
|
6610
6637
|
getConfiguration(): Result<Config_2.ISystemLanguageQualifierTypeConfig>;
|
|
6611
6638
|
/**
|
|
6612
|
-
* {@
|
|
6639
|
+
* {@inheritDoc QualifierTypes.IQualifierType.getConfigurationJson}
|
|
6613
6640
|
*/
|
|
6614
6641
|
getConfigurationJson(): Result<JsonCompatibleType<Config_2.ISystemLanguageQualifierTypeConfig>>;
|
|
6615
6642
|
/**
|
|
6616
|
-
* {@
|
|
6643
|
+
* {@inheritDoc QualifierTypes.IQualifierType.validateConfigurationJson}
|
|
6617
6644
|
*/
|
|
6618
6645
|
validateConfigurationJson(from: unknown): Result<JsonCompatibleType<Config_2.ISystemLanguageQualifierTypeConfig>>;
|
|
6619
6646
|
/**
|
|
@@ -6648,7 +6675,7 @@ declare const languageQualifierTypeConfig: ObjectConverter<Model_2.ILanguageQual
|
|
|
6648
6675
|
*/
|
|
6649
6676
|
declare class LiteralQualifierType extends QualifierType<JsonCompatibleType<Config_2.ILiteralQualifierTypeConfig>> {
|
|
6650
6677
|
/**
|
|
6651
|
-
* {@
|
|
6678
|
+
* {@inheritDoc QualifierTypes.IQualifierType.systemTypeName}
|
|
6652
6679
|
*/
|
|
6653
6680
|
readonly systemTypeName: QualifierTypeName;
|
|
6654
6681
|
/**
|
|
@@ -6666,11 +6693,8 @@ declare class LiteralQualifierType extends QualifierType<JsonCompatibleType<Conf
|
|
|
6666
6693
|
readonly hierarchy?: LiteralValueHierarchy<string>;
|
|
6667
6694
|
/**
|
|
6668
6695
|
* Constructs a new {@link QualifierTypes.LiteralQualifierType | LiteralQualifierType}.
|
|
6669
|
-
* @param
|
|
6670
|
-
*
|
|
6671
|
-
* case-sensitive. Defaults to `false`.
|
|
6672
|
-
* @param allowContextList - Optional flag indicating whether the context can be a
|
|
6673
|
-
* list of values. Defaults to `false`.
|
|
6696
|
+
* @param params - The {@link QualifierTypes.ILiteralQualifierTypeCreateParams | create parameters}
|
|
6697
|
+
* for this qualifier type.
|
|
6674
6698
|
* @public
|
|
6675
6699
|
*/
|
|
6676
6700
|
protected constructor({ name, caseSensitive, allowContextList, enumeratedValues, hierarchy, index }: ILiteralQualifierTypeCreateParams);
|
|
@@ -6683,7 +6707,7 @@ declare class LiteralQualifierType extends QualifierType<JsonCompatibleType<Conf
|
|
|
6683
6707
|
*/
|
|
6684
6708
|
isValidConditionValue(value: string): value is QualifierConditionValue;
|
|
6685
6709
|
/**
|
|
6686
|
-
* {@
|
|
6710
|
+
* {@inheritDoc QualifierTypes.IQualifierType.isPotentialMatch}
|
|
6687
6711
|
*/
|
|
6688
6712
|
isPotentialMatch(conditionValue: string, contextValue: string): boolean;
|
|
6689
6713
|
/**
|
|
@@ -6693,11 +6717,11 @@ declare class LiteralQualifierType extends QualifierType<JsonCompatibleType<Conf
|
|
|
6693
6717
|
*/
|
|
6694
6718
|
getConfiguration(): Result<Config_2.ISystemLiteralQualifierTypeConfig>;
|
|
6695
6719
|
/**
|
|
6696
|
-
* {@
|
|
6720
|
+
* {@inheritDoc QualifierTypes.IQualifierType.getConfigurationJson}
|
|
6697
6721
|
*/
|
|
6698
6722
|
getConfigurationJson(): Result<JsonCompatibleType<Config_2.ISystemLiteralQualifierTypeConfig>>;
|
|
6699
6723
|
/**
|
|
6700
|
-
* {@
|
|
6724
|
+
* {@inheritDoc QualifierTypes.IQualifierType.validateConfigurationJson}
|
|
6701
6725
|
*/
|
|
6702
6726
|
validateConfigurationJson(from: unknown): Result<JsonCompatibleType<Config_2.ISystemLiteralQualifierTypeConfig>>;
|
|
6703
6727
|
/**
|
|
@@ -6708,7 +6732,7 @@ declare class LiteralQualifierType extends QualifierType<JsonCompatibleType<Conf
|
|
|
6708
6732
|
*/
|
|
6709
6733
|
validateConfiguration(from: unknown): Result<Config_2.ISystemLiteralQualifierTypeConfig>;
|
|
6710
6734
|
/**
|
|
6711
|
-
* {@
|
|
6735
|
+
* {@inheritDoc QualifierTypes.QualifierType._matchOne}
|
|
6712
6736
|
*/
|
|
6713
6737
|
protected _matchOne(condition: QualifierConditionValue, context: QualifierContextValue, __operator: ConditionOperator): QualifierMatchScore;
|
|
6714
6738
|
/**
|
|
@@ -7259,7 +7283,7 @@ declare class PathImporter implements IImporter {
|
|
|
7259
7283
|
*/
|
|
7260
7284
|
static create(params: IPathImporterCreateParams): Result<PathImporter>;
|
|
7261
7285
|
/**
|
|
7262
|
-
* {@
|
|
7286
|
+
* {@inheritDoc Import.Importers.IImporter.import}
|
|
7263
7287
|
*/
|
|
7264
7288
|
import(item: IImportable, __manager: ResourceManagerBuilder): DetailedResult<IImportable[], ImporterResultDetail>;
|
|
7265
7289
|
/**
|
|
@@ -7333,9 +7357,8 @@ export declare class Qualifier implements IValidatedQualifierDecl, ICollectible<
|
|
|
7333
7357
|
/**
|
|
7334
7358
|
* Constructs a new instance of a {@link Qualifiers.Qualifier | Qualifier} from the
|
|
7335
7359
|
* supplied {@link Qualifiers.IValidatedQualifierDecl | validated declaration}.
|
|
7336
|
-
* @param
|
|
7337
|
-
*
|
|
7338
|
-
* @param defaultPriority - The default {@link ConditionPriority | priority} of conditions
|
|
7360
|
+
* @param decl - The {@link Qualifiers.IValidatedQualifierDecl | validated declaration}
|
|
7361
|
+
* describing the qualifier to construct.
|
|
7339
7362
|
* @public
|
|
7340
7363
|
*/
|
|
7341
7364
|
protected constructor({ name, token, type, defaultPriority, tokenIsOptional, defaultValue, index }: IValidatedQualifierDecl);
|
|
@@ -7356,19 +7379,19 @@ export declare class Qualifier implements IValidatedQualifierDecl, ICollectible<
|
|
|
7356
7379
|
*/
|
|
7357
7380
|
setIndex(index: QualifierIndex): Result<QualifierIndex>;
|
|
7358
7381
|
/**
|
|
7359
|
-
* {@
|
|
7382
|
+
* {@inheritDoc QualifierTypes.QualifierType.isValidContextValue}
|
|
7360
7383
|
*/
|
|
7361
7384
|
isValidContextValue(value: string): value is QualifierContextValue;
|
|
7362
7385
|
/**
|
|
7363
|
-
* {@
|
|
7386
|
+
* {@inheritDoc QualifierTypes.QualifierType.isValidConditionValue}
|
|
7364
7387
|
*/
|
|
7365
7388
|
isValidConditionValue(value: string): value is QualifierConditionValue;
|
|
7366
7389
|
/**
|
|
7367
|
-
* {@
|
|
7390
|
+
* {@inheritDoc QualifierTypes.QualifierType.validateCondition}
|
|
7368
7391
|
*/
|
|
7369
7392
|
validateCondition(value: string, operator?: ConditionOperator): Result<QualifierConditionValue>;
|
|
7370
7393
|
/**
|
|
7371
|
-
* {@
|
|
7394
|
+
* {@inheritDoc QualifierTypes.QualifierType.validateContextValue}
|
|
7372
7395
|
*/
|
|
7373
7396
|
validateContextValue(value: string): Result<QualifierContextValue>;
|
|
7374
7397
|
}
|
|
@@ -7404,11 +7427,11 @@ declare class QualifierCollector extends ValidatingConvertingCollector<Qualifier
|
|
|
7404
7427
|
*/
|
|
7405
7428
|
static create(params: IQualifierCollectorCreateParams): Result<QualifierCollector>;
|
|
7406
7429
|
/**
|
|
7407
|
-
* {@
|
|
7430
|
+
* {@inheritDoc Qualifiers.IReadOnlyQualifierCollector.getByNameOrToken}
|
|
7408
7431
|
*/
|
|
7409
7432
|
getByNameOrToken(nameOrToken: string): Result<Qualifier>;
|
|
7410
7433
|
/**
|
|
7411
|
-
* {@
|
|
7434
|
+
* {@inheritDoc Qualifiers.IReadOnlyQualifierCollector.hasNameOrToken}
|
|
7412
7435
|
*/
|
|
7413
7436
|
hasNameOrToken(nameOrToken: string): boolean;
|
|
7414
7437
|
/**
|
|
@@ -7662,19 +7685,19 @@ export { Qualifiers }
|
|
|
7662
7685
|
*/
|
|
7663
7686
|
export declare abstract class QualifierType<TCFGJSON extends JsonObject = JsonObject> implements IQualifierType<TCFGJSON> {
|
|
7664
7687
|
/**
|
|
7665
|
-
* {@
|
|
7688
|
+
* {@inheritDoc QualifierTypes.IQualifierType.name}
|
|
7666
7689
|
*/
|
|
7667
7690
|
readonly name: QualifierTypeName;
|
|
7668
7691
|
/**
|
|
7669
|
-
* {@
|
|
7692
|
+
* {@inheritDoc QualifierTypes.IQualifierType.systemTypeName}
|
|
7670
7693
|
*/
|
|
7671
7694
|
abstract readonly systemTypeName: QualifierTypeName;
|
|
7672
7695
|
/**
|
|
7673
|
-
* {@
|
|
7696
|
+
* {@inheritDoc QualifierTypes.IQualifierType.key}
|
|
7674
7697
|
*/
|
|
7675
7698
|
get key(): QualifierTypeName;
|
|
7676
7699
|
/**
|
|
7677
|
-
* {@
|
|
7700
|
+
* {@inheritDoc QualifierTypes.IQualifierType.index}
|
|
7678
7701
|
*/
|
|
7679
7702
|
get index(): QualifierTypeIndex | undefined;
|
|
7680
7703
|
protected readonly _collectible: Collections.Collectible<QualifierTypeName, QualifierTypeIndex>;
|
|
@@ -7685,53 +7708,52 @@ export declare abstract class QualifierType<TCFGJSON extends JsonObject = JsonOb
|
|
|
7685
7708
|
readonly allowContextList: boolean;
|
|
7686
7709
|
/**
|
|
7687
7710
|
* Constructor for use by derived classes.
|
|
7688
|
-
* @param
|
|
7689
|
-
*
|
|
7690
|
-
* comma-separated list of runtime values in the context. Defaults to `false`.
|
|
7711
|
+
* @param params - The {@link QualifierTypes.IQualifierTypeCreateParams | create parameters}
|
|
7712
|
+
* for this qualifier type.
|
|
7691
7713
|
*/
|
|
7692
7714
|
protected constructor({ name, index, allowContextList }: IQualifierTypeCreateParams);
|
|
7693
7715
|
/**
|
|
7694
|
-
* {@
|
|
7716
|
+
* {@inheritDoc QualifierTypes.IQualifierType.isValidConditionValue}
|
|
7695
7717
|
*/
|
|
7696
7718
|
abstract isValidConditionValue(value: string): value is QualifierConditionValue;
|
|
7697
7719
|
/**
|
|
7698
|
-
* {@
|
|
7720
|
+
* {@inheritDoc QualifierTypes.IQualifierType.isValidContextValue}
|
|
7699
7721
|
*/
|
|
7700
7722
|
isValidContextValue(value: string): value is QualifierContextValue;
|
|
7701
7723
|
/**
|
|
7702
|
-
* {@
|
|
7724
|
+
* {@inheritDoc QualifierTypes.IQualifierType.isPotentialMatch}
|
|
7703
7725
|
*/
|
|
7704
7726
|
isPotentialMatch(conditionValue: string, contextValue: string): boolean;
|
|
7705
7727
|
/**
|
|
7706
|
-
* {@
|
|
7728
|
+
* {@inheritDoc QualifierTypes.IQualifierType.validateCondition}
|
|
7707
7729
|
*/
|
|
7708
7730
|
validateCondition(value: string, operator?: ConditionOperator): Result<QualifierConditionValue>;
|
|
7709
7731
|
/**
|
|
7710
|
-
* {@
|
|
7732
|
+
* {@inheritDoc QualifierTypes.IQualifierType.validateContextValue}
|
|
7711
7733
|
*/
|
|
7712
7734
|
validateContextValue(value: string): Result<QualifierContextValue>;
|
|
7713
7735
|
/**
|
|
7714
|
-
* {@
|
|
7736
|
+
* {@inheritDoc QualifierTypes.IQualifierType.matches}
|
|
7715
7737
|
*/
|
|
7716
7738
|
matches(condition: QualifierConditionValue, context: QualifierContextValue, operator: ConditionOperator): QualifierMatchScore;
|
|
7717
7739
|
/**
|
|
7718
|
-
* {@
|
|
7740
|
+
* {@inheritDoc QualifierTypes.IQualifierType.getConfigurationJson}
|
|
7719
7741
|
*/
|
|
7720
7742
|
abstract getConfigurationJson(): Result<JsonCompatibleType<Config_2.IQualifierTypeConfig<TCFGJSON>>>;
|
|
7721
7743
|
/**
|
|
7722
|
-
* {@
|
|
7744
|
+
* {@inheritDoc QualifierTypes.IQualifierType.validateConfigurationJson}
|
|
7723
7745
|
*/
|
|
7724
7746
|
abstract validateConfigurationJson(from: unknown): Result<JsonCompatibleType<Config_2.IQualifierTypeConfig<TCFGJSON>>>;
|
|
7725
7747
|
/**
|
|
7726
|
-
* {@
|
|
7748
|
+
* {@inheritDoc QualifierTypes.IQualifierType.setIndex}
|
|
7727
7749
|
*/
|
|
7728
7750
|
setIndex(index: number): Result<QualifierTypeIndex>;
|
|
7729
7751
|
/**
|
|
7730
|
-
* {@
|
|
7752
|
+
* {@inheritDoc Validate.isValidQualifierTypeName}
|
|
7731
7753
|
*/
|
|
7732
7754
|
static isValidName(name: string): name is QualifierTypeName;
|
|
7733
7755
|
/**
|
|
7734
|
-
* {@
|
|
7756
|
+
* {@inheritDoc Validate.isValidQualifierTypeIndex}
|
|
7735
7757
|
*/
|
|
7736
7758
|
static isValidIndex(index: number): index is QualifierTypeIndex;
|
|
7737
7759
|
/**
|
|
@@ -8284,7 +8306,7 @@ declare class ResourceBuilder {
|
|
|
8284
8306
|
/**
|
|
8285
8307
|
* Given a {@link ResourceJson.Json.IChildResourceCandidateDecl | child resource candidate declaration}, creates and adds a
|
|
8286
8308
|
* {@link Resources.ResourceCandidate | candidate} to the resource being built.
|
|
8287
|
-
* @param
|
|
8309
|
+
* @param childDecl - The {@link ResourceJson.Json.IChildResourceCandidateDecl | IChildResourceCandidateDecl} to add to the
|
|
8288
8310
|
* resource being built.
|
|
8289
8311
|
* @returns `Success` with the added {@link Resources.ResourceCandidate | candidate} if successful,
|
|
8290
8312
|
* or `Failure` with an error message if not.
|
|
@@ -8293,7 +8315,7 @@ declare class ResourceBuilder {
|
|
|
8293
8315
|
/**
|
|
8294
8316
|
* Given a {@link ResourceJson.Json.ILooseResourceCandidateDecl | resource candidate declaration}, creates and adds a
|
|
8295
8317
|
* {@link Resources.ResourceCandidate | candidate} to the resource being built.
|
|
8296
|
-
* @param
|
|
8318
|
+
* @param decl - The {@link ResourceJson.Json.ILooseResourceCandidateDecl | IResourceCandidateDecl} to add to the
|
|
8297
8319
|
* resource being built.
|
|
8298
8320
|
* @returns `Success` with the added {@link Resources.ResourceCandidate | candidate} if successful,
|
|
8299
8321
|
* or `Failure` with an error message if not. Fails with error detail 'type-mismatch' if the candidate
|
|
@@ -8473,7 +8495,7 @@ declare class ResourceDeclCollection implements IResourceDeclContainer {
|
|
|
8473
8495
|
*/
|
|
8474
8496
|
readonly collection: Normalized.IImporterResourceCollectionDecl;
|
|
8475
8497
|
/**
|
|
8476
|
-
* {@
|
|
8498
|
+
* {@inheritDoc ResourceJson.IResourceDeclContainer.context}
|
|
8477
8499
|
*/
|
|
8478
8500
|
get context(): Normalized.IContainerContextDecl | undefined;
|
|
8479
8501
|
protected _resources: Normalized.IImporterResourceDecl[];
|
|
@@ -8513,7 +8535,7 @@ declare class ResourceDeclTree implements IResourceDeclContainer {
|
|
|
8513
8535
|
*/
|
|
8514
8536
|
readonly tree: Normalized.IResourceTreeRootDecl;
|
|
8515
8537
|
/**
|
|
8516
|
-
* {@
|
|
8538
|
+
* {@inheritDoc ResourceJson.IResourceDeclContainer.context}
|
|
8517
8539
|
*/
|
|
8518
8540
|
get context(): Normalized.IContainerContextDecl | undefined;
|
|
8519
8541
|
protected _resources: Normalized.ILooseResourceDecl[];
|
|
@@ -8682,7 +8704,7 @@ export declare class ResourceManagerBuilder implements IResourceManager<Resource
|
|
|
8682
8704
|
*/
|
|
8683
8705
|
get size(): number;
|
|
8684
8706
|
/**
|
|
8685
|
-
* {@
|
|
8707
|
+
* {@inheritDoc Runtime.IResourceManager.numResources}
|
|
8686
8708
|
*/
|
|
8687
8709
|
get numResources(): number;
|
|
8688
8710
|
/**
|
|
@@ -8690,11 +8712,11 @@ export declare class ResourceManagerBuilder implements IResourceManager<Resource
|
|
|
8690
8712
|
*/
|
|
8691
8713
|
protected _numCandidates?: number;
|
|
8692
8714
|
/**
|
|
8693
|
-
* {@
|
|
8715
|
+
* {@inheritDoc Runtime.IResourceManager.numCandidates}
|
|
8694
8716
|
*/
|
|
8695
8717
|
get numCandidates(): number;
|
|
8696
8718
|
/**
|
|
8697
|
-
* {@
|
|
8719
|
+
* {@inheritDoc Runtime.IResourceManager.builtResources}
|
|
8698
8720
|
*/
|
|
8699
8721
|
get builtResources(): Collections.IReadOnlyValidatingResultMap<ResourceId, Resource>;
|
|
8700
8722
|
/**
|
|
@@ -8734,7 +8756,7 @@ export declare class ResourceManagerBuilder implements IResourceManager<Resource
|
|
|
8734
8756
|
/**
|
|
8735
8757
|
* Given a {@link ResourceJson.Json.ILooseResourceCandidateDecl | resource candidate declaration}, builds and adds
|
|
8736
8758
|
* a {@link Resources.ResourceCandidate | candidate} to the manager.
|
|
8737
|
-
* @param
|
|
8759
|
+
* @param decl - The {@link ResourceJson.Json.ILooseResourceCandidateDecl | loose resource candidate declaration} to add.
|
|
8738
8760
|
* @returns `Success` with the candidate if successful, or `Failure` with an error message if not.
|
|
8739
8761
|
* @public
|
|
8740
8762
|
*/
|
|
@@ -8749,7 +8771,7 @@ export declare class ResourceManagerBuilder implements IResourceManager<Resource
|
|
|
8749
8771
|
addCondition(decl: ResourceJson.Json.ILooseConditionDecl): Result<Condition>;
|
|
8750
8772
|
/**
|
|
8751
8773
|
* Adds a condition set to the manager.
|
|
8752
|
-
* @param
|
|
8774
|
+
* @param conditions - The {@link ResourceJson.Normalized.ConditionSetDecl | condition set declaration} to add.
|
|
8753
8775
|
* @returns `Success` with the condition set if successful, or `Failure` with an error message if not.
|
|
8754
8776
|
* @public
|
|
8755
8777
|
*/
|
|
@@ -9513,7 +9535,7 @@ export declare abstract class ResourceType<T = unknown> implements IResourceType
|
|
|
9513
9535
|
private _collectible;
|
|
9514
9536
|
private _template;
|
|
9515
9537
|
/**
|
|
9516
|
-
* {@
|
|
9538
|
+
* {@inheritDoc ResourceTypes.IResourceType.key}
|
|
9517
9539
|
*/
|
|
9518
9540
|
get key(): ResourceTypeName;
|
|
9519
9541
|
/**
|
|
@@ -9521,7 +9543,7 @@ export declare abstract class ResourceType<T = unknown> implements IResourceType
|
|
|
9521
9543
|
*/
|
|
9522
9544
|
abstract readonly systemTypeName: ResourceTypeName;
|
|
9523
9545
|
/**
|
|
9524
|
-
* {@
|
|
9546
|
+
* {@inheritDoc ResourceTypes.IResourceType.index}
|
|
9525
9547
|
*/
|
|
9526
9548
|
get index(): ResourceTypeIndex | undefined;
|
|
9527
9549
|
protected constructor(key: ResourceTypeName, index?: number, template?: JsonObject);
|
|
@@ -10012,7 +10034,7 @@ declare const TerritoryPrioritySystemConfiguration: ISystemConfiguration;
|
|
|
10012
10034
|
*/
|
|
10013
10035
|
declare class TerritoryQualifierType extends QualifierType<JsonCompatibleType<Config_2.ITerritoryQualifierTypeConfig>> {
|
|
10014
10036
|
/**
|
|
10015
|
-
* {@
|
|
10037
|
+
* {@inheritDoc QualifierTypes.IQualifierType.systemTypeName}
|
|
10016
10038
|
*/
|
|
10017
10039
|
readonly systemTypeName: QualifierTypeName;
|
|
10018
10040
|
/**
|
|
@@ -10035,7 +10057,7 @@ declare class TerritoryQualifierType extends QualifierType<JsonCompatibleType<Co
|
|
|
10035
10057
|
*/
|
|
10036
10058
|
protected constructor({ acceptLowercase, allowedTerritories, allowContextList, name, index, hierarchy }: ITerritoryQualifierTypeCreateParams);
|
|
10037
10059
|
/**
|
|
10038
|
-
* {@
|
|
10060
|
+
* {@inheritDoc QualifierTypes.QualifierType.isValidConditionValue}
|
|
10039
10061
|
*/
|
|
10040
10062
|
isValidConditionValue(value: string): value is QualifierConditionValue;
|
|
10041
10063
|
/**
|
|
@@ -10063,11 +10085,11 @@ declare class TerritoryQualifierType extends QualifierType<JsonCompatibleType<Co
|
|
|
10063
10085
|
*/
|
|
10064
10086
|
getConfiguration(): Result<Config_2.ISystemTerritoryQualifierTypeConfig>;
|
|
10065
10087
|
/**
|
|
10066
|
-
* {@
|
|
10088
|
+
* {@inheritDoc QualifierTypes.IQualifierType.getConfigurationJson}
|
|
10067
10089
|
*/
|
|
10068
10090
|
getConfigurationJson(): Result<JsonCompatibleType<Config_2.ISystemTerritoryQualifierTypeConfig>>;
|
|
10069
10091
|
/**
|
|
10070
|
-
* {@
|
|
10092
|
+
* {@inheritDoc QualifierTypes.IQualifierType.validateConfigurationJson}
|
|
10071
10093
|
*/
|
|
10072
10094
|
validateConfigurationJson(from: unknown): Result<JsonCompatibleType<Config_2.ISystemTerritoryQualifierTypeConfig>>;
|
|
10073
10095
|
/**
|
|
@@ -10078,7 +10100,7 @@ declare class TerritoryQualifierType extends QualifierType<JsonCompatibleType<Co
|
|
|
10078
10100
|
*/
|
|
10079
10101
|
validateConfiguration(from: unknown): Result<Config_2.ISystemTerritoryQualifierTypeConfig>;
|
|
10080
10102
|
/**
|
|
10081
|
-
* {@
|
|
10103
|
+
* {@inheritDoc QualifierTypes.QualifierType._matchOne}
|
|
10082
10104
|
*/
|
|
10083
10105
|
protected _matchOne(condition: QualifierConditionValue, context: QualifierContextValue, __operator?: ConditionOperator): QualifierMatchScore;
|
|
10084
10106
|
/**
|
|
@@ -10167,7 +10189,7 @@ declare function toConditionPriority(priority: number): Result<ConditionPriority
|
|
|
10167
10189
|
|
|
10168
10190
|
/**
|
|
10169
10191
|
* Converts a string to a {@link ConditionSetHash} if it is a valid condition set hash.
|
|
10170
|
-
* @param
|
|
10192
|
+
* @param hash - the string to convert
|
|
10171
10193
|
* @returns `Success` with the converted {@link ConditionSetHash} if successful, or `Failure` with an
|
|
10172
10194
|
* error message if not.
|
|
10173
10195
|
* @public
|
|
@@ -10238,9 +10260,9 @@ declare function toContextToken(token: string): Result<ContextToken>;
|
|
|
10238
10260
|
declare function toDecisionIndex(index: number): Result<DecisionIndex>;
|
|
10239
10261
|
|
|
10240
10262
|
/**
|
|
10241
|
-
* Converts a
|
|
10242
|
-
* @param
|
|
10243
|
-
* @returns `Success` with the converted {@link
|
|
10263
|
+
* Converts a string to a {@link DecisionKey} if it is a valid decision key.
|
|
10264
|
+
* @param key - the string to convert
|
|
10265
|
+
* @returns `Success` with the converted {@link DecisionKey} if successful, or `Failure` with an
|
|
10244
10266
|
* error message if not.
|
|
10245
10267
|
* @public
|
|
10246
10268
|
*/
|
|
@@ -10351,7 +10373,7 @@ declare function toResourceIndex(index: number): Result<ResourceIndex>;
|
|
|
10351
10373
|
/**
|
|
10352
10374
|
* Converts a string to a {@link ResourceName | resource name}.
|
|
10353
10375
|
*
|
|
10354
|
-
* @param
|
|
10376
|
+
* @param name - The string to convert.
|
|
10355
10377
|
* @returns `Success` with the converted name if valid, or `Failure` with an error message
|
|
10356
10378
|
* if not.
|
|
10357
10379
|
* @public
|