diff --git a/packages/td-tools/src/thing-model-helpers.ts b/packages/td-tools/src/thing-model-helpers.ts index 784243915..2248dfc01 100644 --- a/packages/td-tools/src/thing-model-helpers.ts +++ b/packages/td-tools/src/thing-model-helpers.ts @@ -36,26 +36,51 @@ const tmSchema = TMSchema; const ajv = new Ajv({ strict: false }); addFormats(ajv); +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export type LINK_TYPE = "tm:extends" | "tm:submodel"; + +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export type AFFORDANCE_TYPE = "properties" | "actions" | "events"; + +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export type COMPOSITION_TYPE = "extends" | "imports"; + +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export type ModelImportsInput = { uri?: string; type: AFFORDANCE_TYPE; name: string; }; +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export type CompositionOptions = { baseUrl?: string; selfComposition?: boolean; map?: Record; }; + +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export type modelComposeInput = { extends?: ThingModel[]; imports?: (ModelImportsInput & { affordance: DataSchema })[]; submodel?: Record; }; +/** + * @deprecated This package and therefore its functionality will be removed in the future. Please use '@thingweb/thing-model' package instead. + */ export class ThingModelHelpers { static tsSchemaValidator = ajv.compile(tmSchema) as ValidateFunction;