@kosdev-code/kos-ui-sdk 2.0.3 → 2.0.5
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/core/core/api/wrapPromise.d.ts +1 -1
- package/core/core/decorators/kos-child.d.ts +1 -1
- package/core/core/decorators/kos-model-effect.d.ts +4 -1
- package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
- package/core/core/decorators/kosDependency.d.ts +1 -1
- package/core/core/decorators/kosModel.d.ts +3 -3
- package/core/core/decorators/kosTopicHandler.d.ts +1 -1
- package/core/core/dependency-manager.d.ts +9 -0
- package/core/core/dependency-manager.d.ts.map +1 -0
- package/core/core/extension/initialize-extension.d.ts +1 -1
- package/core/core/kosModel.d.ts +2 -4
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/kosModelManager.d.ts +181 -32
- package/core/core/kosModelManager.d.ts.map +1 -1
- package/core/core/model-cache.d.ts +28 -0
- package/core/core/model-cache.d.ts.map +1 -0
- package/core/core/model-instantiator.d.ts +15 -0
- package/core/core/model-instantiator.d.ts.map +1 -0
- package/core/core/model-registry.d.ts +16 -0
- package/core/core/model-registry.d.ts.map +1 -0
- package/core/types/model.d.ts +1 -1
- package/core/util/date-utils.d.ts +102 -0
- package/core/util/date-utils.d.ts.map +1 -1
- package/core/util/index.d.ts +1 -0
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts +27 -27
- package/core/util/model-attribute-utils.d.ts +1 -1
- package/core/util/service-factory.d.ts +1 -1
- package/index.cjs +47 -46
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3065 -2726
- package/index.js.map +1 -1
- package/models/models/studio-properties/index.d.ts +5 -0
- package/models/models/studio-properties/index.d.ts.map +1 -0
- package/models/models/studio-properties/services/index.d.ts +2 -0
- package/models/models/studio-properties/services/index.d.ts.map +1 -0
- package/models/models/studio-properties/services/studio-properties-services.d.ts +15 -0
- package/models/models/studio-properties/services/studio-properties-services.d.ts.map +1 -0
- package/models/models/studio-properties/studio-properties-model.d.ts +20 -0
- package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -0
- package/models/models/studio-properties/studio-properties-registration.d.ts +87 -0
- package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -0
- package/models/models/studio-properties/types/index.d.ts +3 -0
- package/models/utils/client.d.ts +3 -3
- package/models/utils/openapi.d.ts +1441 -6928
- package/models/utils/persistence-store.d.ts +1 -1
- package/models/utils/service.d.ts +3 -3
- package/models/utils/types.d.ts +3 -3
- package/models/utils/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/ui/components/loading-message/index.d.ts +2 -1
- package/ui/components/loading-message/index.d.ts.map +1 -1
package/core/util/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './api-request-id';
|
|
|
2
2
|
export * from './apply-mixins';
|
|
3
3
|
export * from './container-utils';
|
|
4
4
|
export * from './date-utils';
|
|
5
|
+
export * as DateHelpers from './date-utils';
|
|
5
6
|
export { default as debounce } from './debounce';
|
|
6
7
|
export * from './feature-flags';
|
|
7
8
|
export * from './get-query-params';
|
package/core/util/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,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C,cAAc,QAAQ,CAAC;AACvB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { IKosDataModel, IKosModel } from '../core/kosModel';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Asynchronously destroys a
|
|
4
|
+
* Asynchronously destroys a KOS data model.
|
|
5
5
|
*
|
|
6
6
|
* @async
|
|
7
|
-
* @param model - The
|
|
7
|
+
* @param model - The KOS data model to destroy.
|
|
8
8
|
* @throws An error if the model cannot be destroyed.
|
|
9
9
|
*/
|
|
10
10
|
export declare const destroyKosModel: (model: IKosDataModel) => Promise<void>;
|
|
11
11
|
export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>;
|
|
12
12
|
/**
|
|
13
|
-
* Asynchronously resets a
|
|
13
|
+
* Asynchronously resets a KOS data model.
|
|
14
14
|
*
|
|
15
15
|
* @async
|
|
16
|
-
* @param model - The
|
|
16
|
+
* @param model - The KOS data model to reset.
|
|
17
17
|
* @throws An error if the model cannot be reset.
|
|
18
18
|
*/
|
|
19
19
|
export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
20
20
|
/**
|
|
21
|
-
* Asynchronously retrieves the type of a
|
|
21
|
+
* Asynchronously retrieves the type of a KOS data model.
|
|
22
22
|
*
|
|
23
23
|
* @async
|
|
24
|
-
* @param modelId - The ID of the
|
|
25
|
-
* @returns The type of the
|
|
24
|
+
* @param modelId - The ID of the KOS data model.
|
|
25
|
+
* @returns The type of the KOS data model.
|
|
26
26
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
27
27
|
*/
|
|
28
28
|
export declare const getKosModelType: (modelId: string) => Promise<string | undefined>;
|
|
29
29
|
/**
|
|
30
|
-
* Asynchronously retrieves a
|
|
30
|
+
* Asynchronously retrieves a KOS data model and its type.
|
|
31
31
|
*
|
|
32
32
|
* @async
|
|
33
|
-
* @param modelId - The ID of the
|
|
34
|
-
* @returns An object containing the
|
|
33
|
+
* @param modelId - The ID of the KOS data model.
|
|
34
|
+
* @returns An object containing the KOS data model and its type.
|
|
35
35
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
36
36
|
*/
|
|
37
37
|
export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(modelId: string) => Promise<{
|
|
@@ -39,10 +39,10 @@ export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(mode
|
|
|
39
39
|
type: string | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
/**
|
|
42
|
-
* Synchronously retrieves a
|
|
42
|
+
* Synchronously retrieves a KOS data model and its type.
|
|
43
43
|
*
|
|
44
|
-
* @param modelId - The ID of the
|
|
45
|
-
* @returns An object containing the
|
|
44
|
+
* @param modelId - The ID of the KOS data model.
|
|
45
|
+
* @returns An object containing the KOS data model and its type.
|
|
46
46
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
47
47
|
*/
|
|
48
48
|
export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(modelId: string) => {
|
|
@@ -50,50 +50,50 @@ export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(
|
|
|
50
50
|
type: string | undefined;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
|
-
* Finds and filters
|
|
53
|
+
* Finds and filters KOS data models of a specific type based on a predicate.
|
|
54
54
|
*
|
|
55
|
-
* @param modelType - The type of the
|
|
55
|
+
* @param modelType - The type of the KOS data models to search for.
|
|
56
56
|
* @param predicate - An object representing filter conditions.
|
|
57
|
-
* @returns An array of filtered
|
|
57
|
+
* @returns An array of filtered KOS data models.
|
|
58
58
|
* @throws An error if the model type is not provided.
|
|
59
59
|
*/
|
|
60
60
|
export declare const findModels: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
61
61
|
[k: string]: any;
|
|
62
62
|
}) => T[];
|
|
63
63
|
/**
|
|
64
|
-
* Finds and retrieves the first
|
|
64
|
+
* Finds and retrieves the first KOS data model of a specific type based on a predicate.
|
|
65
65
|
*
|
|
66
|
-
* @param modelType - The type of the
|
|
66
|
+
* @param modelType - The type of the KOS data models to search for.
|
|
67
67
|
* @param predicate - An object representing filter conditions.
|
|
68
|
-
* @returns The first matching
|
|
68
|
+
* @returns The first matching KOS data model, or undefined if none is found.
|
|
69
69
|
* @throws An error if the model type is not provided.
|
|
70
70
|
*/
|
|
71
71
|
export declare const findModel: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
72
72
|
[k: string]: any;
|
|
73
73
|
}) => T;
|
|
74
74
|
/**
|
|
75
|
-
* Retrieves a companion
|
|
75
|
+
* Retrieves a companion KOS data model of a specific type associated with a given model.
|
|
76
76
|
*
|
|
77
|
-
* @param model - The
|
|
77
|
+
* @param model - The KOS data model for which to retrieve a companion model.
|
|
78
78
|
* @param type - The type of the companion model.
|
|
79
|
-
* @returns The companion
|
|
79
|
+
* @returns The companion KOS data model of the specified type.
|
|
80
80
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
81
81
|
*/
|
|
82
82
|
export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKosDataModel, type: string) => T;
|
|
83
83
|
/**
|
|
84
84
|
* Retrieves all companion models for a given model.
|
|
85
85
|
*
|
|
86
|
-
* @param model - The
|
|
87
|
-
* @returns The list of companion
|
|
86
|
+
* @param model - The KOS data model for which to retrieve a companion model.
|
|
87
|
+
* @returns The list of companion KOS data models
|
|
88
88
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
89
89
|
*/
|
|
90
90
|
export declare const getAllKosCompanionModels: (model: IKosDataModel) => IKosDataModel[];
|
|
91
91
|
export declare const resolveKosCompanion: <T extends IKosDataModel>(modelId: string, resolver: (model: T) => boolean) => IKosModel | undefined;
|
|
92
92
|
/**
|
|
93
|
-
* Checks if an object is an instance of a specific
|
|
93
|
+
* Checks if an object is an instance of a specific KOS data model type.
|
|
94
94
|
*
|
|
95
|
-
* @param type - The type of the
|
|
96
|
-
* @returns A type guard function that checks if an object is an instance of the specified
|
|
95
|
+
* @param type - The type of the KOS data model to check against.
|
|
96
|
+
* @returns A type guard function that checks if an object is an instance of the specified KOS data model type.
|
|
97
97
|
*/
|
|
98
98
|
export declare const isKosModel: <T extends IKosDataModel>(type: string) => (model: any) => model is T;
|
|
99
99
|
export declare const isKosModelReady: (model: IKosDataModel) => boolean;
|
|
@@ -3,7 +3,7 @@ import { IKosDataModel } from '../core/kosModel';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates a property key string based on a given key from a Kos data model.
|
|
5
5
|
*
|
|
6
|
-
* Property keys are used by the
|
|
6
|
+
* Property keys are used by the KOS model framework to provide property expansion in model data.
|
|
7
7
|
*
|
|
8
8
|
* When create a model dependency or any model metadata that is derived from the existing model data,
|
|
9
9
|
* a property key should be used to reference the data model key.
|
|
@@ -116,7 +116,7 @@ export declare const ServiceFactory: {
|
|
|
116
116
|
*/
|
|
117
117
|
build: ({ destinationAddress, basePath, getAllPath, getOnePath, deleteModelPath, addModelPath, modifyModelPath, mock, }: ServiceFactoryParams) => {
|
|
118
118
|
/**
|
|
119
|
-
* Retrieves a list of entities managed by the
|
|
119
|
+
* Retrieves a list of entities managed by the KOS Server.
|
|
120
120
|
*
|
|
121
121
|
* @param params - The parameters for the request, including common options.
|
|
122
122
|
* @returns The list of entities.
|