@3dsource/metabox-modular-configurator-api 0.0.1-dev.5 → 0.0.1-dev.7
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/README.md +1 -1
- package/index.d.ts +92 -49
- package/package.json +1 -1
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -96,66 +96,98 @@ interface ToMetaBoxMessage {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Represents a modular configurator object with its configuration,
|
|
100
|
-
*
|
|
99
|
+
* Represents a modular configurator object with its configuration, current configuration tree,
|
|
100
|
+
* all components by active component type, component selected materials,
|
|
101
|
+
* and associated environment.
|
|
101
102
|
*/
|
|
102
103
|
interface ModularConfiguratorEnvelope {
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* A record mapping product material selections.
|
|
113
|
-
*/
|
|
114
|
-
productMaterialsIds: SelectedIds;
|
|
115
|
-
/**
|
|
116
|
-
* The unique environment identifier.
|
|
117
|
-
*/
|
|
104
|
+
/** A reference to the modular configurator */
|
|
105
|
+
configurator: ModularConfiguratorApi;
|
|
106
|
+
/** The unique tree of components and parent and component type id */
|
|
107
|
+
configurationTree: ComponentWithParent[];
|
|
108
|
+
/** A record mapping all components by current component type */
|
|
109
|
+
componentsByComponentType: Record<string, string>;
|
|
110
|
+
/** A record mapping component material selections */
|
|
111
|
+
componentMaterialsIds: SelectedIds;
|
|
112
|
+
/** The unique environment identifier */
|
|
118
113
|
environmentId: string;
|
|
119
|
-
/**
|
|
120
|
-
* A record mapping environment material selections.
|
|
121
|
-
*/
|
|
114
|
+
/** A record mapping environment material selections */
|
|
122
115
|
environmentMaterialsIds: SelectedIds;
|
|
123
116
|
}
|
|
124
|
-
/**
|
|
125
|
-
|
|
126
|
-
*/
|
|
127
|
-
interface ModularConfigurator {
|
|
117
|
+
/** Represents the modular configurator api with its modular properties and components */
|
|
118
|
+
interface ModularConfiguratorApi {
|
|
128
119
|
/** Unique identifier for the configurator. */
|
|
129
120
|
id: string;
|
|
130
|
-
/**
|
|
131
|
-
/** Label for the product collection. */
|
|
132
|
-
productCollectionLabel: string;
|
|
121
|
+
/** Client information associated with the configurator. */
|
|
133
122
|
/** The name of the configurator. */
|
|
134
123
|
name: string;
|
|
135
|
-
/**
|
|
136
|
-
|
|
137
|
-
/** A list of products for the configurator. */
|
|
138
|
-
products: UniversalConfiguratorProduct[];
|
|
124
|
+
/** A list of components for the configurator. */
|
|
125
|
+
components: ModularConfiguratorComponent[];
|
|
139
126
|
/** A list of available environments. */
|
|
140
|
-
environments:
|
|
141
|
-
/**
|
|
142
|
-
|
|
127
|
+
environments: ModularConfiguratorEnvironment[];
|
|
128
|
+
/** A list of a component type for the configurator. */
|
|
129
|
+
componentTypes: ModularConfiguratorComponentType[];
|
|
130
|
+
/** The camera settings used in the configurator. */
|
|
131
|
+
/** Indicates if the configurator is active. */
|
|
132
|
+
connectors: ModularConfiguratorConnector[];
|
|
133
|
+
/** GraphQL typename for the Modular Configurator. */
|
|
134
|
+
__typename: 'ModularConfigurator';
|
|
143
135
|
}
|
|
144
136
|
/**
|
|
145
|
-
* Represents a
|
|
137
|
+
* Represents a configurator component within the modular configurator.
|
|
146
138
|
*/
|
|
147
|
-
interface
|
|
148
|
-
/** The
|
|
149
|
-
|
|
139
|
+
interface ModularConfiguratorComponent {
|
|
140
|
+
/** The id unique identifier. */
|
|
141
|
+
id: string;
|
|
142
|
+
/** The modular configurator component type identifier. */
|
|
143
|
+
componentType: ModularConfiguratorComponentType;
|
|
144
|
+
/** Display the name for the product. */
|
|
145
|
+
name: string;
|
|
150
146
|
/** Position index of the product. */
|
|
151
147
|
position: number;
|
|
152
|
-
/** Display label for the product. */
|
|
153
|
-
label: string;
|
|
154
|
-
/** Optional camera settings for the product. */
|
|
155
148
|
/** The detailed product information. */
|
|
156
149
|
product: Product;
|
|
157
|
-
/**
|
|
158
|
-
|
|
150
|
+
/** Optional camera settings for the product. */
|
|
151
|
+
/** Connectors between connectors and virtual sockets. */
|
|
152
|
+
virtualSocketToConnectorsMap?: ModularConfiguratorVirtualSocketToConnector[];
|
|
153
|
+
/** GraphQL typename for the component. */
|
|
154
|
+
__typename: 'ModularConfiguratorComponent';
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Represents a component type within the modular configurator.
|
|
158
|
+
*/
|
|
159
|
+
interface ModularConfiguratorComponentType {
|
|
160
|
+
/** Display the name for the component type. */
|
|
161
|
+
name: string;
|
|
162
|
+
/** Position index of the component type. */
|
|
163
|
+
position: number;
|
|
164
|
+
/** Is root current component type or not. */
|
|
165
|
+
isRoot: boolean;
|
|
166
|
+
/** Is required current component type or not. */
|
|
167
|
+
isRequired: boolean;
|
|
168
|
+
/** The id unique identifier. */
|
|
169
|
+
id: string;
|
|
170
|
+
/** GraphQL typename for the component type. */
|
|
171
|
+
__typename: 'ModularConfiguratorComponentType';
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Represents a vur virtual map socket to connectors the modular configurator.
|
|
175
|
+
*/
|
|
176
|
+
interface ModularConfiguratorVirtualSocketToConnector {
|
|
177
|
+
virtualSocketId: string;
|
|
178
|
+
connectorId: string;
|
|
179
|
+
/** GraphQL typename for the virtual map socket. */
|
|
180
|
+
__typename: 'ModularConfiguratorVirtualSocketToConnector';
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Represents a connector the modular configurator.
|
|
184
|
+
*/
|
|
185
|
+
interface ModularConfiguratorConnector {
|
|
186
|
+
id: string;
|
|
187
|
+
componentTypeId1: string;
|
|
188
|
+
componentTypeId2: string;
|
|
189
|
+
/** GraphQL typename for connector. */
|
|
190
|
+
__typename: 'ModularConfiguratorConnector';
|
|
159
191
|
}
|
|
160
192
|
/**
|
|
161
193
|
* Represents product details including visual assets and configuration.
|
|
@@ -236,9 +268,9 @@ interface Material {
|
|
|
236
268
|
__typename: 'Material';
|
|
237
269
|
}
|
|
238
270
|
/**
|
|
239
|
-
* Represents the environment settings for a
|
|
271
|
+
* Represents the environment settings for a modular configurator.
|
|
240
272
|
*/
|
|
241
|
-
interface
|
|
273
|
+
interface ModularConfiguratorEnvironment {
|
|
242
274
|
/** Unique identifier for the environment. */
|
|
243
275
|
environmentId: string;
|
|
244
276
|
/** Position index of the environment. */
|
|
@@ -248,7 +280,7 @@ interface UniversalConfiguratorEnvironment {
|
|
|
248
280
|
/** Detailed environment configuration. */
|
|
249
281
|
environment: Environment;
|
|
250
282
|
/** GraphQL typename for the environment. */
|
|
251
|
-
__typename: '
|
|
283
|
+
__typename: 'ModularConfiguratorEnvironment';
|
|
252
284
|
}
|
|
253
285
|
/**
|
|
254
286
|
* Represents an environment with associated media and configuration.
|
|
@@ -261,12 +293,21 @@ interface Environment {
|
|
|
261
293
|
/** Flag indicating if UDS is enabled. */
|
|
262
294
|
/** The north yaw of the sun in the environment. */
|
|
263
295
|
/** The UDS hour setting for the environment. */
|
|
264
|
-
/** GraphQL typename for the environment. */
|
|
265
|
-
__typename: 'Environment';
|
|
266
296
|
/** List of thumbnails for the environment (optional). */
|
|
267
297
|
thumbnailList: Thumbnail[];
|
|
268
298
|
/** List of slots for the environment (optional). */
|
|
269
299
|
slots: Slot[];
|
|
300
|
+
/** The model associated with the environment. */
|
|
301
|
+
/** GraphQL typename for the environment. */
|
|
302
|
+
__typename: 'Environment';
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Defines the structure for a component tree where every component has id and parent.
|
|
306
|
+
*/
|
|
307
|
+
interface ComponentWithParent {
|
|
308
|
+
id: string;
|
|
309
|
+
componentTypeId: string;
|
|
310
|
+
parentId: string | null;
|
|
270
311
|
}
|
|
271
312
|
/**
|
|
272
313
|
* Defines the structure for a mapping of selected materials.
|
|
@@ -282,9 +323,11 @@ interface FromMetaboxMessagePayloads {
|
|
|
282
323
|
* Dispatches Every time the configurator data is updated.
|
|
283
324
|
* I.e., when the user changes the configuration. (Material, Product, Environment)
|
|
284
325
|
*/
|
|
326
|
+
configuratorData: ModularConfiguratorEnvelope;
|
|
285
327
|
/**
|
|
286
328
|
* Dispatches Every time when the configurator product showcase will be changed.
|
|
287
329
|
*/
|
|
330
|
+
showcaseStatus: ShowCaseStatus;
|
|
288
331
|
/**
|
|
289
332
|
* Dispatches Every time when the configurator connected/disconnected with Unreal Engine.
|
|
290
333
|
*/
|
|
@@ -924,4 +967,4 @@ declare class WatchCallbacks extends CommandBase {
|
|
|
924
967
|
}
|
|
925
968
|
|
|
926
969
|
export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetPdf, GetScreenshot, InitShowcase, MetaboxModularConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetComponent, SetComponentMaterial, SetComponentType, SetEnvironment, SetEnvironmentMaterial, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetabox, saveImage, setUrlParams, sleep };
|
|
927
|
-
export type { ApplicationDeviceTypes, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxMessagePayloads, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType,
|
|
970
|
+
export type { ApplicationDeviceTypes, ComponentWithParent, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxMessagePayloads, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, ModularConfiguratorApi, ModularConfiguratorComponent, ModularConfiguratorComponentType, ModularConfiguratorConnector, ModularConfiguratorEnvelope, ModularConfiguratorEnvironment, ModularConfiguratorVirtualSocketToConnector, Product, SelectedIds, ShowCaseStatus, Slot, Test, Thumbnail, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads };
|