@uniformdev/mesh-sdk 19.78.1 → 19.79.0
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.d.mts +102 -13
- package/dist/index.d.ts +102 -13
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import { DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
3
|
+
import { ComponentOverride, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -95,6 +95,11 @@ interface paths$1 {
|
|
|
95
95
|
}[];
|
|
96
96
|
unstable_assetLibrary?: {
|
|
97
97
|
url: string;
|
|
98
|
+
dynamicAssets?: {
|
|
99
|
+
dataConnectorId: string;
|
|
100
|
+
assetsListArchetypeId: string;
|
|
101
|
+
singleAssetArchetypeId: string;
|
|
102
|
+
};
|
|
98
103
|
};
|
|
99
104
|
ai?: {
|
|
100
105
|
generateUrl: string;
|
|
@@ -230,6 +235,11 @@ interface paths$1 {
|
|
|
230
235
|
}[];
|
|
231
236
|
unstable_assetLibrary?: {
|
|
232
237
|
url: string;
|
|
238
|
+
dynamicAssets?: {
|
|
239
|
+
dataConnectorId: string;
|
|
240
|
+
assetsListArchetypeId: string;
|
|
241
|
+
singleAssetArchetypeId: string;
|
|
242
|
+
};
|
|
233
243
|
};
|
|
234
244
|
ai?: {
|
|
235
245
|
generateUrl: string;
|
|
@@ -364,6 +374,11 @@ interface paths$1 {
|
|
|
364
374
|
}[];
|
|
365
375
|
unstable_assetLibrary?: {
|
|
366
376
|
url: string;
|
|
377
|
+
dynamicAssets?: {
|
|
378
|
+
dataConnectorId: string;
|
|
379
|
+
assetsListArchetypeId: string;
|
|
380
|
+
singleAssetArchetypeId: string;
|
|
381
|
+
};
|
|
367
382
|
};
|
|
368
383
|
ai?: {
|
|
369
384
|
generateUrl: string;
|
|
@@ -747,6 +762,11 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
747
762
|
}[] | undefined;
|
|
748
763
|
unstable_assetLibrary?: {
|
|
749
764
|
url: string;
|
|
765
|
+
dynamicAssets?: {
|
|
766
|
+
dataConnectorId: string;
|
|
767
|
+
assetsListArchetypeId: string;
|
|
768
|
+
singleAssetArchetypeId: string;
|
|
769
|
+
} | undefined;
|
|
750
770
|
} | undefined;
|
|
751
771
|
ai?: {
|
|
752
772
|
generateUrl: string;
|
|
@@ -819,27 +839,96 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
819
839
|
projectId: string;
|
|
820
840
|
/** The current Uniform integration source ID */
|
|
821
841
|
sourceId: string;
|
|
842
|
+
/** The resolved data if this source is connected to a data resource */
|
|
843
|
+
dataResourceData?: unknown;
|
|
844
|
+
/**
|
|
845
|
+
* Asset Library location is used in two places: Global Asset Library and Asset Parameter.
|
|
846
|
+
* This flag is necessary to distinguish between the two, because Parameter context requires
|
|
847
|
+
* "value" and "setValue" properties to manipulate the value of the parameter.
|
|
848
|
+
*/
|
|
849
|
+
isAssetParameterContext: boolean;
|
|
850
|
+
/**
|
|
851
|
+
* The maximum number of assets that can be selected in the Asset Library.
|
|
852
|
+
*
|
|
853
|
+
* Default: 1
|
|
854
|
+
*/
|
|
855
|
+
maxAssets?: number;
|
|
822
856
|
};
|
|
823
857
|
type AssetParamValue = AssetParamValueItem[];
|
|
824
858
|
type AssetParamValueItem = {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
type?: string;
|
|
859
|
+
type: string;
|
|
860
|
+
_id: string;
|
|
828
861
|
/**
|
|
829
862
|
* Internal Uniform source ID or
|
|
830
863
|
* dataType ID of the global integration library
|
|
831
864
|
* which created this asset item
|
|
832
865
|
*/
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
866
|
+
_source?: string;
|
|
867
|
+
fields: {
|
|
868
|
+
url: {
|
|
869
|
+
type: 'text';
|
|
870
|
+
value: string;
|
|
871
|
+
};
|
|
872
|
+
id?: {
|
|
873
|
+
type: 'text';
|
|
874
|
+
value: string | undefined;
|
|
875
|
+
};
|
|
876
|
+
title?: {
|
|
877
|
+
type: 'text';
|
|
878
|
+
value: string | undefined;
|
|
879
|
+
};
|
|
880
|
+
description?: {
|
|
881
|
+
type: 'text';
|
|
882
|
+
value: string | undefined;
|
|
883
|
+
};
|
|
884
|
+
mediaType?: {
|
|
885
|
+
type: 'text';
|
|
886
|
+
value: string | undefined;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* The width of the original asset
|
|
890
|
+
*
|
|
891
|
+
* Should resolve to a number but might
|
|
892
|
+
* be a string with a pointer reference
|
|
893
|
+
*/
|
|
894
|
+
width?: {
|
|
895
|
+
type: 'number';
|
|
896
|
+
value: number | string | undefined;
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* The height of the original asset
|
|
900
|
+
*
|
|
901
|
+
* Should resolve to a number but might
|
|
902
|
+
* be a string with a pointer reference
|
|
903
|
+
*/
|
|
904
|
+
height?: {
|
|
905
|
+
type: 'number';
|
|
906
|
+
value: number | string | undefined;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* The size in bytes of the original asset
|
|
910
|
+
*
|
|
911
|
+
* Should resolve to a number but might
|
|
912
|
+
* be a string with a pointer reference
|
|
913
|
+
*/
|
|
914
|
+
size?: {
|
|
915
|
+
type: 'number';
|
|
916
|
+
value: number | string | undefined;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Any key/value properties which the source
|
|
920
|
+
* wants to attach to the asset data
|
|
921
|
+
*/
|
|
922
|
+
custom?: {
|
|
923
|
+
type: string;
|
|
924
|
+
value: Record<string, unknown>;
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
_overrides?: {
|
|
928
|
+
fields: ComponentOverride['parameters'];
|
|
929
|
+
};
|
|
841
930
|
};
|
|
842
|
-
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'
|
|
931
|
+
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
|
|
843
932
|
|
|
844
933
|
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
845
934
|
type DataConnectorInfo = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import { DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
3
|
+
import { ComponentOverride, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
|
|
4
4
|
import { Emitter } from 'mitt';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -95,6 +95,11 @@ interface paths$1 {
|
|
|
95
95
|
}[];
|
|
96
96
|
unstable_assetLibrary?: {
|
|
97
97
|
url: string;
|
|
98
|
+
dynamicAssets?: {
|
|
99
|
+
dataConnectorId: string;
|
|
100
|
+
assetsListArchetypeId: string;
|
|
101
|
+
singleAssetArchetypeId: string;
|
|
102
|
+
};
|
|
98
103
|
};
|
|
99
104
|
ai?: {
|
|
100
105
|
generateUrl: string;
|
|
@@ -230,6 +235,11 @@ interface paths$1 {
|
|
|
230
235
|
}[];
|
|
231
236
|
unstable_assetLibrary?: {
|
|
232
237
|
url: string;
|
|
238
|
+
dynamicAssets?: {
|
|
239
|
+
dataConnectorId: string;
|
|
240
|
+
assetsListArchetypeId: string;
|
|
241
|
+
singleAssetArchetypeId: string;
|
|
242
|
+
};
|
|
233
243
|
};
|
|
234
244
|
ai?: {
|
|
235
245
|
generateUrl: string;
|
|
@@ -364,6 +374,11 @@ interface paths$1 {
|
|
|
364
374
|
}[];
|
|
365
375
|
unstable_assetLibrary?: {
|
|
366
376
|
url: string;
|
|
377
|
+
dynamicAssets?: {
|
|
378
|
+
dataConnectorId: string;
|
|
379
|
+
assetsListArchetypeId: string;
|
|
380
|
+
singleAssetArchetypeId: string;
|
|
381
|
+
};
|
|
367
382
|
};
|
|
368
383
|
ai?: {
|
|
369
384
|
generateUrl: string;
|
|
@@ -747,6 +762,11 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
747
762
|
}[] | undefined;
|
|
748
763
|
unstable_assetLibrary?: {
|
|
749
764
|
url: string;
|
|
765
|
+
dynamicAssets?: {
|
|
766
|
+
dataConnectorId: string;
|
|
767
|
+
assetsListArchetypeId: string;
|
|
768
|
+
singleAssetArchetypeId: string;
|
|
769
|
+
} | undefined;
|
|
750
770
|
} | undefined;
|
|
751
771
|
ai?: {
|
|
752
772
|
generateUrl: string;
|
|
@@ -819,27 +839,96 @@ type AssetLibraryLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
819
839
|
projectId: string;
|
|
820
840
|
/** The current Uniform integration source ID */
|
|
821
841
|
sourceId: string;
|
|
842
|
+
/** The resolved data if this source is connected to a data resource */
|
|
843
|
+
dataResourceData?: unknown;
|
|
844
|
+
/**
|
|
845
|
+
* Asset Library location is used in two places: Global Asset Library and Asset Parameter.
|
|
846
|
+
* This flag is necessary to distinguish between the two, because Parameter context requires
|
|
847
|
+
* "value" and "setValue" properties to manipulate the value of the parameter.
|
|
848
|
+
*/
|
|
849
|
+
isAssetParameterContext: boolean;
|
|
850
|
+
/**
|
|
851
|
+
* The maximum number of assets that can be selected in the Asset Library.
|
|
852
|
+
*
|
|
853
|
+
* Default: 1
|
|
854
|
+
*/
|
|
855
|
+
maxAssets?: number;
|
|
822
856
|
};
|
|
823
857
|
type AssetParamValue = AssetParamValueItem[];
|
|
824
858
|
type AssetParamValueItem = {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
type?: string;
|
|
859
|
+
type: string;
|
|
860
|
+
_id: string;
|
|
828
861
|
/**
|
|
829
862
|
* Internal Uniform source ID or
|
|
830
863
|
* dataType ID of the global integration library
|
|
831
864
|
* which created this asset item
|
|
832
865
|
*/
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
866
|
+
_source?: string;
|
|
867
|
+
fields: {
|
|
868
|
+
url: {
|
|
869
|
+
type: 'text';
|
|
870
|
+
value: string;
|
|
871
|
+
};
|
|
872
|
+
id?: {
|
|
873
|
+
type: 'text';
|
|
874
|
+
value: string | undefined;
|
|
875
|
+
};
|
|
876
|
+
title?: {
|
|
877
|
+
type: 'text';
|
|
878
|
+
value: string | undefined;
|
|
879
|
+
};
|
|
880
|
+
description?: {
|
|
881
|
+
type: 'text';
|
|
882
|
+
value: string | undefined;
|
|
883
|
+
};
|
|
884
|
+
mediaType?: {
|
|
885
|
+
type: 'text';
|
|
886
|
+
value: string | undefined;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* The width of the original asset
|
|
890
|
+
*
|
|
891
|
+
* Should resolve to a number but might
|
|
892
|
+
* be a string with a pointer reference
|
|
893
|
+
*/
|
|
894
|
+
width?: {
|
|
895
|
+
type: 'number';
|
|
896
|
+
value: number | string | undefined;
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* The height of the original asset
|
|
900
|
+
*
|
|
901
|
+
* Should resolve to a number but might
|
|
902
|
+
* be a string with a pointer reference
|
|
903
|
+
*/
|
|
904
|
+
height?: {
|
|
905
|
+
type: 'number';
|
|
906
|
+
value: number | string | undefined;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* The size in bytes of the original asset
|
|
910
|
+
*
|
|
911
|
+
* Should resolve to a number but might
|
|
912
|
+
* be a string with a pointer reference
|
|
913
|
+
*/
|
|
914
|
+
size?: {
|
|
915
|
+
type: 'number';
|
|
916
|
+
value: number | string | undefined;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Any key/value properties which the source
|
|
920
|
+
* wants to attach to the asset data
|
|
921
|
+
*/
|
|
922
|
+
custom?: {
|
|
923
|
+
type: string;
|
|
924
|
+
value: Record<string, unknown>;
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
_overrides?: {
|
|
928
|
+
fields: ComponentOverride['parameters'];
|
|
929
|
+
};
|
|
841
930
|
};
|
|
842
|
-
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'
|
|
931
|
+
type AssetLibraryLocation = MeshLocationCore<AssetParamValue, AssetLibraryLocationMetadata, AssetParamValue, 'assetLibrary'> & GetDataResourceLocation;
|
|
843
932
|
|
|
844
933
|
type DataTypeLocationValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
845
934
|
type DataConnectorInfo = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.79.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@uniformdev/canvas": "19.
|
|
37
|
-
"@uniformdev/context": "19.
|
|
38
|
-
"@uniformdev/project-map": "19.
|
|
36
|
+
"@uniformdev/canvas": "19.79.0",
|
|
37
|
+
"@uniformdev/context": "19.79.0",
|
|
38
|
+
"@uniformdev/project-map": "19.79.0",
|
|
39
39
|
"imagesloaded": "^5.0.0",
|
|
40
40
|
"mitt": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/imagesloaded": "^4.1.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "78f5ededbaa1a67d58d808eac23ab64769e14e10"
|
|
46
46
|
}
|