kuzzle-device-manager-types 3.0.0-3-dev.14 → 3.0.0-3-dev.15
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/lib/modules/model/ModelService.d.ts +3 -1
- package/dist/lib/modules/model/ModelsRegister.d.ts +4 -1
- package/dist/lib/modules/model/types/ModelApi.d.ts +3 -0
- package/dist/lib/modules/model/types/ModelContent.d.ts +6 -0
- package/dist/lib/modules/model/types/ModelDefinition.d.ts +6 -0
- package/package.json +1 -1
|
@@ -18,7 +18,9 @@ export declare class ModelService extends BaseService {
|
|
|
18
18
|
[valueName: string]: LocaleDetails;
|
|
19
19
|
}, engineIds?: string[], icon?: string): Promise<KDocument<AssetModelContent>>;
|
|
20
20
|
writeDevice(model: string, metadataMappings: MetadataMappings, defaultMetadata: JSONObject, metadataDetails: MetadataDetails, metadataGroups: MetadataGroups, measures: NamedMeasures, icon?: string): Promise<KDocument<DeviceModelContent>>;
|
|
21
|
-
writeGroup(engineGroups: string[], model: string, affinity: JSONObject, metadataMappings: MetadataMappings, defaultMetadata: JSONObject, metadataDetails: MetadataDetails, metadataGroups: MetadataGroups, icon?: string
|
|
21
|
+
writeGroup(engineGroups: string[], model: string, affinity: JSONObject, metadataMappings: MetadataMappings, defaultMetadata: JSONObject, metadataDetails: MetadataDetails, metadataGroups: MetadataGroups, icon?: string, locales?: {
|
|
22
|
+
[valueName: string]: LocaleDetails;
|
|
23
|
+
}): Promise<KDocument<GroupModelContent>>;
|
|
22
24
|
writeMeasure(type: string, valuesMappings: JSONObject, validationSchema?: SchemaObject, valuesDetails?: MeasureValuesDetails, locales?: {
|
|
23
25
|
[valueName: string]: LocaleDetails;
|
|
24
26
|
}, engineIds?: string[], icon?: string): Promise<KDocument<MeasureModelContent>>;
|
|
@@ -56,9 +56,12 @@ export declare class ModelsRegister {
|
|
|
56
56
|
* @param metadataDetails - Optional detailed metadata descriptions, localizations and definition.
|
|
57
57
|
* @param metadataGroups - Optional groups for organizing metadata, with localizations.
|
|
58
58
|
* @param icon - Optional icon representing the model.
|
|
59
|
+
* @param locales - Optional translations specific to the model.
|
|
59
60
|
* @throws PluginImplementationError if the model name is not in PascalCase.
|
|
60
61
|
*/
|
|
61
|
-
registerGroup(engineGroups: string[], model: string, affinity: GroupAffinity, metadataMappings?: MetadataMappings, defaultMetadata?: JSONObject, metadataDetails?: MetadataDetails, metadataGroups?: MetadataGroups, icon?: string
|
|
62
|
+
registerGroup(engineGroups: string[], model: string, affinity: GroupAffinity, metadataMappings?: MetadataMappings, defaultMetadata?: JSONObject, metadataDetails?: MetadataDetails, metadataGroups?: MetadataGroups, icon?: string, locales?: {
|
|
63
|
+
[valueName: string]: LocaleDetails;
|
|
64
|
+
}): void;
|
|
62
65
|
registerMeasure(type: string, measureDefinition: MeasureDefinition): void;
|
|
63
66
|
private load;
|
|
64
67
|
}
|
|
@@ -70,6 +70,9 @@ export interface ApiModelWriteGroupRequest extends ModelsControllerRequest {
|
|
|
70
70
|
metadataGroups?: MetadataGroups;
|
|
71
71
|
metadataMappings?: MetadataMappings;
|
|
72
72
|
defaultValues?: JSONObject;
|
|
73
|
+
locales?: {
|
|
74
|
+
[valueName: string]: LocaleDetails;
|
|
75
|
+
};
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
78
|
export type ApiModelWriteGroupResult = KDocument<GroupModelContent>;
|
|
@@ -528,6 +528,12 @@ export interface GroupModelContent extends KDocumentContent {
|
|
|
528
528
|
* ]
|
|
529
529
|
*/
|
|
530
530
|
tooltipModels?: TooltipModels;
|
|
531
|
+
/**
|
|
532
|
+
* Translations specific to the model
|
|
533
|
+
*/
|
|
534
|
+
locales?: {
|
|
535
|
+
[locale: string]: LocaleDetails;
|
|
536
|
+
};
|
|
531
537
|
};
|
|
532
538
|
}
|
|
533
539
|
export type ModelContent = MeasureModelContent | AssetModelContent | DeviceModelContent | GroupModelContent;
|