@uniformdev/mesh-sdk 19.184.1-alpha.0 → 19.184.1-alpha.22
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 +22 -4
- package/dist/index.d.ts +22 -4
- 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 { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, Locale, DataVariableDefinition, EntryData } from '@uniformdev/canvas';
|
|
3
|
+
import { AssetParamValue, DataType, DataSource, DataSourceVariantsKeys, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, Locale, DataVariableDefinition, EntryData } from '@uniformdev/canvas';
|
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
5
5
|
import { Emitter } from 'mitt';
|
|
6
6
|
|
|
@@ -90,6 +90,7 @@ interface paths$1 {
|
|
|
90
90
|
type: string;
|
|
91
91
|
displayName: string;
|
|
92
92
|
dataSourceEditorUrl?: string;
|
|
93
|
+
supportsUnpublishedData?: boolean;
|
|
93
94
|
dataSourceEditorLocations?: {
|
|
94
95
|
[key: string]: {
|
|
95
96
|
url: string;
|
|
@@ -264,6 +265,7 @@ interface paths$1 {
|
|
|
264
265
|
type: string;
|
|
265
266
|
displayName: string;
|
|
266
267
|
dataSourceEditorUrl?: string;
|
|
268
|
+
supportsUnpublishedData?: boolean;
|
|
267
269
|
dataSourceEditorLocations?: {
|
|
268
270
|
[key: string]: {
|
|
269
271
|
url: string;
|
|
@@ -437,6 +439,7 @@ interface paths$1 {
|
|
|
437
439
|
type: string;
|
|
438
440
|
displayName: string;
|
|
439
441
|
dataSourceEditorUrl?: string;
|
|
442
|
+
supportsUnpublishedData?: boolean;
|
|
440
443
|
dataSourceEditorLocations?: {
|
|
441
444
|
[key: string]: {
|
|
442
445
|
url: string;
|
|
@@ -858,6 +861,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
858
861
|
type: string;
|
|
859
862
|
displayName: string;
|
|
860
863
|
dataSourceEditorUrl?: string;
|
|
864
|
+
supportsUnpublishedData?: boolean;
|
|
861
865
|
dataSourceEditorLocations?: {
|
|
862
866
|
[key: string]: {
|
|
863
867
|
url: string;
|
|
@@ -1016,11 +1020,19 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1016
1020
|
dataConnector: DataConnectorInfo;
|
|
1017
1021
|
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1018
1022
|
dynamicInputs: DynamicInputs;
|
|
1023
|
+
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly) */
|
|
1024
|
+
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1019
1025
|
}, TIntegrationConfiguration>;
|
|
1020
1026
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1021
1027
|
|
|
1022
|
-
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
|
|
1023
|
-
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<
|
|
1028
|
+
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode' | 'variants'>;
|
|
1029
|
+
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1030
|
+
/**
|
|
1031
|
+
* If true, the data source should provide additional configuration to support the unpublished mode and save "unpublish" Data Source variant.
|
|
1032
|
+
* E.g. inputs for Preview API Token + Preview Environment.
|
|
1033
|
+
*/
|
|
1034
|
+
enableUnpublishedMode: DataSourceLocationValue['enableUnpublishedMode'];
|
|
1035
|
+
}, TIntegrationConfiguration>;
|
|
1024
1036
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1025
1037
|
|
|
1026
1038
|
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1185,7 +1197,13 @@ type CloseDialogMessage = {
|
|
|
1185
1197
|
dialogType: DialogType;
|
|
1186
1198
|
dialogData?: unknown;
|
|
1187
1199
|
};
|
|
1188
|
-
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'
|
|
1200
|
+
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'> & {
|
|
1201
|
+
/**
|
|
1202
|
+
* Ability to override Data Source variant for particular getDataResource request,
|
|
1203
|
+
* because by default it will use Canvas Editor global. But sometimes you don't want to switch to Unpublished Data and stick to standard one.
|
|
1204
|
+
*/
|
|
1205
|
+
dataSourceVariant?: DataSourceVariantsKeys | 'standard';
|
|
1206
|
+
};
|
|
1189
1207
|
/** Primitive data types that a parameter type accepts to be bound to composition data */
|
|
1190
1208
|
type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
1191
1209
|
/** Message to parent to create a data connection expression to insert in a param type */
|
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 { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, Locale, DataVariableDefinition, EntryData } from '@uniformdev/canvas';
|
|
3
|
+
import { AssetParamValue, DataType, DataSource, DataSourceVariantsKeys, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, Locale, DataVariableDefinition, EntryData } from '@uniformdev/canvas';
|
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
5
5
|
import { Emitter } from 'mitt';
|
|
6
6
|
|
|
@@ -90,6 +90,7 @@ interface paths$1 {
|
|
|
90
90
|
type: string;
|
|
91
91
|
displayName: string;
|
|
92
92
|
dataSourceEditorUrl?: string;
|
|
93
|
+
supportsUnpublishedData?: boolean;
|
|
93
94
|
dataSourceEditorLocations?: {
|
|
94
95
|
[key: string]: {
|
|
95
96
|
url: string;
|
|
@@ -264,6 +265,7 @@ interface paths$1 {
|
|
|
264
265
|
type: string;
|
|
265
266
|
displayName: string;
|
|
266
267
|
dataSourceEditorUrl?: string;
|
|
268
|
+
supportsUnpublishedData?: boolean;
|
|
267
269
|
dataSourceEditorLocations?: {
|
|
268
270
|
[key: string]: {
|
|
269
271
|
url: string;
|
|
@@ -437,6 +439,7 @@ interface paths$1 {
|
|
|
437
439
|
type: string;
|
|
438
440
|
displayName: string;
|
|
439
441
|
dataSourceEditorUrl?: string;
|
|
442
|
+
supportsUnpublishedData?: boolean;
|
|
440
443
|
dataSourceEditorLocations?: {
|
|
441
444
|
[key: string]: {
|
|
442
445
|
url: string;
|
|
@@ -858,6 +861,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
858
861
|
type: string;
|
|
859
862
|
displayName: string;
|
|
860
863
|
dataSourceEditorUrl?: string;
|
|
864
|
+
supportsUnpublishedData?: boolean;
|
|
861
865
|
dataSourceEditorLocations?: {
|
|
862
866
|
[key: string]: {
|
|
863
867
|
url: string;
|
|
@@ -1016,11 +1020,19 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1016
1020
|
dataConnector: DataConnectorInfo;
|
|
1017
1021
|
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1018
1022
|
dynamicInputs: DynamicInputs;
|
|
1023
|
+
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly) */
|
|
1024
|
+
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1019
1025
|
}, TIntegrationConfiguration>;
|
|
1020
1026
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1021
1027
|
|
|
1022
|
-
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
|
|
1023
|
-
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<
|
|
1028
|
+
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode' | 'variants'>;
|
|
1029
|
+
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1030
|
+
/**
|
|
1031
|
+
* If true, the data source should provide additional configuration to support the unpublished mode and save "unpublish" Data Source variant.
|
|
1032
|
+
* E.g. inputs for Preview API Token + Preview Environment.
|
|
1033
|
+
*/
|
|
1034
|
+
enableUnpublishedMode: DataSourceLocationValue['enableUnpublishedMode'];
|
|
1035
|
+
}, TIntegrationConfiguration>;
|
|
1024
1036
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1025
1037
|
|
|
1026
1038
|
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1185,7 +1197,13 @@ type CloseDialogMessage = {
|
|
|
1185
1197
|
dialogType: DialogType;
|
|
1186
1198
|
dialogData?: unknown;
|
|
1187
1199
|
};
|
|
1188
|
-
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'
|
|
1200
|
+
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'> & {
|
|
1201
|
+
/**
|
|
1202
|
+
* Ability to override Data Source variant for particular getDataResource request,
|
|
1203
|
+
* because by default it will use Canvas Editor global. But sometimes you don't want to switch to Unpublished Data and stick to standard one.
|
|
1204
|
+
*/
|
|
1205
|
+
dataSourceVariant?: DataSourceVariantsKeys | 'standard';
|
|
1206
|
+
};
|
|
1189
1207
|
/** Primitive data types that a parameter type accepts to be bound to composition data */
|
|
1190
1208
|
type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
1191
1209
|
/** Message to parent to create a data connection expression to insert in a param type */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.184.1-alpha.
|
|
3
|
+
"version": "19.184.1-alpha.22+a7fd564cd5",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@uniformdev/canvas": "19.184.1-alpha.
|
|
38
|
-
"@uniformdev/context": "19.184.1-alpha.
|
|
39
|
-
"@uniformdev/project-map": "19.184.1-alpha.
|
|
37
|
+
"@uniformdev/canvas": "19.184.1-alpha.22+a7fd564cd5",
|
|
38
|
+
"@uniformdev/context": "19.184.1-alpha.22+a7fd564cd5",
|
|
39
|
+
"@uniformdev/project-map": "19.184.1-alpha.22+a7fd564cd5",
|
|
40
40
|
"imagesloaded": "^5.0.0",
|
|
41
41
|
"mitt": "^3.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/imagesloaded": "^4.1.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a7fd564cd599786d0a9504495b7330cd77072039"
|
|
47
47
|
}
|