@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.
Files changed (55) hide show
  1. package/core/core/api/wrapPromise.d.ts +1 -1
  2. package/core/core/decorators/kos-child.d.ts +1 -1
  3. package/core/core/decorators/kos-model-effect.d.ts +4 -1
  4. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  5. package/core/core/decorators/kosDependency.d.ts +1 -1
  6. package/core/core/decorators/kosModel.d.ts +3 -3
  7. package/core/core/decorators/kosTopicHandler.d.ts +1 -1
  8. package/core/core/dependency-manager.d.ts +9 -0
  9. package/core/core/dependency-manager.d.ts.map +1 -0
  10. package/core/core/extension/initialize-extension.d.ts +1 -1
  11. package/core/core/kosModel.d.ts +2 -4
  12. package/core/core/kosModel.d.ts.map +1 -1
  13. package/core/core/kosModelManager.d.ts +181 -32
  14. package/core/core/kosModelManager.d.ts.map +1 -1
  15. package/core/core/model-cache.d.ts +28 -0
  16. package/core/core/model-cache.d.ts.map +1 -0
  17. package/core/core/model-instantiator.d.ts +15 -0
  18. package/core/core/model-instantiator.d.ts.map +1 -0
  19. package/core/core/model-registry.d.ts +16 -0
  20. package/core/core/model-registry.d.ts.map +1 -0
  21. package/core/types/model.d.ts +1 -1
  22. package/core/util/date-utils.d.ts +102 -0
  23. package/core/util/date-utils.d.ts.map +1 -1
  24. package/core/util/index.d.ts +1 -0
  25. package/core/util/index.d.ts.map +1 -1
  26. package/core/util/kos-model-utils.d.ts +27 -27
  27. package/core/util/model-attribute-utils.d.ts +1 -1
  28. package/core/util/service-factory.d.ts +1 -1
  29. package/index.cjs +47 -46
  30. package/index.cjs.map +1 -1
  31. package/index.d.cts +1 -0
  32. package/index.d.ts +1 -0
  33. package/index.d.ts.map +1 -1
  34. package/index.js +3065 -2726
  35. package/index.js.map +1 -1
  36. package/models/models/studio-properties/index.d.ts +5 -0
  37. package/models/models/studio-properties/index.d.ts.map +1 -0
  38. package/models/models/studio-properties/services/index.d.ts +2 -0
  39. package/models/models/studio-properties/services/index.d.ts.map +1 -0
  40. package/models/models/studio-properties/services/studio-properties-services.d.ts +15 -0
  41. package/models/models/studio-properties/services/studio-properties-services.d.ts.map +1 -0
  42. package/models/models/studio-properties/studio-properties-model.d.ts +20 -0
  43. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -0
  44. package/models/models/studio-properties/studio-properties-registration.d.ts +87 -0
  45. package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -0
  46. package/models/models/studio-properties/types/index.d.ts +3 -0
  47. package/models/utils/client.d.ts +3 -3
  48. package/models/utils/openapi.d.ts +1441 -6928
  49. package/models/utils/persistence-store.d.ts +1 -1
  50. package/models/utils/service.d.ts +3 -3
  51. package/models/utils/types.d.ts +3 -3
  52. package/models/utils/types.d.ts.map +1 -1
  53. package/package.json +2 -2
  54. package/ui/components/loading-message/index.d.ts +2 -1
  55. package/ui/components/loading-message/index.d.ts.map +1 -1
@@ -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';
@@ -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;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,cAAc,2BAA2B,CAAC;AAC1C,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 kOS data model.
4
+ * Asynchronously destroys a KOS data model.
5
5
  *
6
6
  * @async
7
- * @param model - The kOS data model to destroy.
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 kOS data model.
13
+ * Asynchronously resets a KOS data model.
14
14
  *
15
15
  * @async
16
- * @param model - The kOS data model to reset.
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 kOS data model.
21
+ * Asynchronously retrieves the type of a KOS data model.
22
22
  *
23
23
  * @async
24
- * @param modelId - The ID of the kOS data model.
25
- * @returns The type of the kOS data model.
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 kOS data model and its type.
30
+ * Asynchronously retrieves a KOS data model and its type.
31
31
  *
32
32
  * @async
33
- * @param modelId - The ID of the kOS data model.
34
- * @returns An object containing the kOS data model and its type.
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 kOS data model and its type.
42
+ * Synchronously retrieves a KOS data model and its type.
43
43
  *
44
- * @param modelId - The ID of the kOS data model.
45
- * @returns An object containing the kOS data model and its type.
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 kOS data models of a specific type based on a predicate.
53
+ * Finds and filters KOS data models of a specific type based on a predicate.
54
54
  *
55
- * @param modelType - The type of the kOS data models to search for.
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 kOS data models.
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 kOS data model of a specific type based on a predicate.
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 kOS data models to search for.
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 kOS data model, or undefined if none is found.
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 kOS data model of a specific type associated with a given model.
75
+ * Retrieves a companion KOS data model of a specific type associated with a given model.
76
76
  *
77
- * @param model - The kOS data model for which to retrieve a companion model.
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 kOS data model of the specified type.
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 kOS data model for which to retrieve a companion model.
87
- * @returns The list of companion kOS data models
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 kOS data model type.
93
+ * Checks if an object is an instance of a specific KOS data model type.
94
94
  *
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.
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 kOS model framework to provide property expansion in model data.
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 kOS Server.
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.