@uniformdev/mesh-sdk 19.177.2-alpha.10 → 19.177.2-alpha.18

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 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;
@@ -117,6 +118,11 @@ interface paths$1 {
117
118
  assetLibrary?: {
118
119
  assetLibraryUrl: string;
119
120
  assetParameterUrl: string;
121
+ assetLibraryLocations?: {
122
+ [key: string]: {
123
+ url: string;
124
+ };
125
+ };
120
126
  unstable_dynamicAssets?: {
121
127
  dataConnectorId: string;
122
128
  assetsListArchetypeId: string;
@@ -259,6 +265,7 @@ interface paths$1 {
259
265
  type: string;
260
266
  displayName: string;
261
267
  dataSourceEditorUrl?: string;
268
+ supportsUnpublishedData?: boolean;
262
269
  dataSourceEditorLocations?: {
263
270
  [key: string]: {
264
271
  url: string;
@@ -286,6 +293,11 @@ interface paths$1 {
286
293
  assetLibrary?: {
287
294
  assetLibraryUrl: string;
288
295
  assetParameterUrl: string;
296
+ assetLibraryLocations?: {
297
+ [key: string]: {
298
+ url: string;
299
+ };
300
+ };
289
301
  unstable_dynamicAssets?: {
290
302
  dataConnectorId: string;
291
303
  assetsListArchetypeId: string;
@@ -427,6 +439,7 @@ interface paths$1 {
427
439
  type: string;
428
440
  displayName: string;
429
441
  dataSourceEditorUrl?: string;
442
+ supportsUnpublishedData?: boolean;
430
443
  dataSourceEditorLocations?: {
431
444
  [key: string]: {
432
445
  url: string;
@@ -454,6 +467,11 @@ interface paths$1 {
454
467
  assetLibrary?: {
455
468
  assetLibraryUrl: string;
456
469
  assetParameterUrl: string;
470
+ assetLibraryLocations?: {
471
+ [key: string]: {
472
+ url: string;
473
+ };
474
+ };
457
475
  unstable_dynamicAssets?: {
458
476
  dataConnectorId: string;
459
477
  assetsListArchetypeId: string;
@@ -843,6 +861,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
843
861
  type: string;
844
862
  displayName: string;
845
863
  dataSourceEditorUrl?: string | undefined;
864
+ supportsUnpublishedData?: boolean | undefined;
846
865
  dataSourceEditorLocations?: {
847
866
  [key: string]: {
848
867
  url: string;
@@ -870,6 +889,11 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
870
889
  assetLibrary?: {
871
890
  assetLibraryUrl: string;
872
891
  assetParameterUrl: string;
892
+ assetLibraryLocations?: {
893
+ [key: string]: {
894
+ url: string;
895
+ };
896
+ } | undefined;
873
897
  unstable_dynamicAssets?: {
874
898
  dataConnectorId: string;
875
899
  assetsListArchetypeId: string;
@@ -996,11 +1020,15 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
996
1020
  dataConnector: DataConnectorInfo;
997
1021
  /** Current dynamic inputs that are configured on the composition (if any). */
998
1022
  dynamicInputs: DynamicInputs;
1023
+ dataSourceVariant?: DataSourceVariantsKeys;
999
1024
  }, TIntegrationConfiguration>;
1000
1025
  type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
1001
1026
 
1002
- type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
1003
- type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
1027
+ type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode' | 'variants'>;
1028
+ type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
1029
+ enableUnpublishedMode: DataSourceLocationValue['enableUnpublishedMode'];
1030
+ dataSourceVariant: DataSourceVariantsKeys | 'standard';
1031
+ }, TIntegrationConfiguration>;
1004
1032
  type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
1005
1033
 
1006
1034
  type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
@@ -1160,7 +1188,9 @@ type CloseDialogMessage = {
1160
1188
  dialogType: DialogType;
1161
1189
  dialogData?: unknown;
1162
1190
  };
1163
- type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
1191
+ type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'> & {
1192
+ dataSourceVariant?: DataSourceVariantsKeys;
1193
+ };
1164
1194
  /** Primitive data types that a parameter type accepts to be bound to composition data */
1165
1195
  type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
1166
1196
  /** 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;
@@ -117,6 +118,11 @@ interface paths$1 {
117
118
  assetLibrary?: {
118
119
  assetLibraryUrl: string;
119
120
  assetParameterUrl: string;
121
+ assetLibraryLocations?: {
122
+ [key: string]: {
123
+ url: string;
124
+ };
125
+ };
120
126
  unstable_dynamicAssets?: {
121
127
  dataConnectorId: string;
122
128
  assetsListArchetypeId: string;
@@ -259,6 +265,7 @@ interface paths$1 {
259
265
  type: string;
260
266
  displayName: string;
261
267
  dataSourceEditorUrl?: string;
268
+ supportsUnpublishedData?: boolean;
262
269
  dataSourceEditorLocations?: {
263
270
  [key: string]: {
264
271
  url: string;
@@ -286,6 +293,11 @@ interface paths$1 {
286
293
  assetLibrary?: {
287
294
  assetLibraryUrl: string;
288
295
  assetParameterUrl: string;
296
+ assetLibraryLocations?: {
297
+ [key: string]: {
298
+ url: string;
299
+ };
300
+ };
289
301
  unstable_dynamicAssets?: {
290
302
  dataConnectorId: string;
291
303
  assetsListArchetypeId: string;
@@ -427,6 +439,7 @@ interface paths$1 {
427
439
  type: string;
428
440
  displayName: string;
429
441
  dataSourceEditorUrl?: string;
442
+ supportsUnpublishedData?: boolean;
430
443
  dataSourceEditorLocations?: {
431
444
  [key: string]: {
432
445
  url: string;
@@ -454,6 +467,11 @@ interface paths$1 {
454
467
  assetLibrary?: {
455
468
  assetLibraryUrl: string;
456
469
  assetParameterUrl: string;
470
+ assetLibraryLocations?: {
471
+ [key: string]: {
472
+ url: string;
473
+ };
474
+ };
457
475
  unstable_dynamicAssets?: {
458
476
  dataConnectorId: string;
459
477
  assetsListArchetypeId: string;
@@ -843,6 +861,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
843
861
  type: string;
844
862
  displayName: string;
845
863
  dataSourceEditorUrl?: string | undefined;
864
+ supportsUnpublishedData?: boolean | undefined;
846
865
  dataSourceEditorLocations?: {
847
866
  [key: string]: {
848
867
  url: string;
@@ -870,6 +889,11 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
870
889
  assetLibrary?: {
871
890
  assetLibraryUrl: string;
872
891
  assetParameterUrl: string;
892
+ assetLibraryLocations?: {
893
+ [key: string]: {
894
+ url: string;
895
+ };
896
+ } | undefined;
873
897
  unstable_dynamicAssets?: {
874
898
  dataConnectorId: string;
875
899
  assetsListArchetypeId: string;
@@ -996,11 +1020,15 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
996
1020
  dataConnector: DataConnectorInfo;
997
1021
  /** Current dynamic inputs that are configured on the composition (if any). */
998
1022
  dynamicInputs: DynamicInputs;
1023
+ dataSourceVariant?: DataSourceVariantsKeys;
999
1024
  }, TIntegrationConfiguration>;
1000
1025
  type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
1001
1026
 
1002
- type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
1003
- type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
1027
+ type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode' | 'variants'>;
1028
+ type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
1029
+ enableUnpublishedMode: DataSourceLocationValue['enableUnpublishedMode'];
1030
+ dataSourceVariant: DataSourceVariantsKeys | 'standard';
1031
+ }, TIntegrationConfiguration>;
1004
1032
  type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
1005
1033
 
1006
1034
  type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
@@ -1160,7 +1188,9 @@ type CloseDialogMessage = {
1160
1188
  dialogType: DialogType;
1161
1189
  dialogData?: unknown;
1162
1190
  };
1163
- type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
1191
+ type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'> & {
1192
+ dataSourceVariant?: DataSourceVariantsKeys;
1193
+ };
1164
1194
  /** Primitive data types that a parameter type accepts to be bound to composition data */
1165
1195
  type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
1166
1196
  /** 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.177.2-alpha.10+c9cb5f414c",
3
+ "version": "19.177.2-alpha.18+f0847a28d4",
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.177.2-alpha.10+c9cb5f414c",
37
- "@uniformdev/context": "19.177.2-alpha.10+c9cb5f414c",
38
- "@uniformdev/project-map": "19.177.2-alpha.10+c9cb5f414c",
36
+ "@uniformdev/canvas": "19.177.2-alpha.18+f0847a28d4",
37
+ "@uniformdev/context": "19.177.2-alpha.18+f0847a28d4",
38
+ "@uniformdev/project-map": "19.177.2-alpha.18+f0847a28d4",
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": "c9cb5f414c41dc1d2c37dff02a5b87484901657e"
45
+ "gitHead": "f0847a28d4ba83396723d0bb80311184a3143e00"
46
46
  }