@roomle/embedding-lib 5.25.0-alpha.5 → 5.25.0-alpha.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.
Files changed (56) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +4 -10
  2. package/package.json +1 -1
  3. package/packages/embedding-lib/src/examples/homag-intelligence-example.d.ts +9 -0
  4. package/packages/embedding-lib/src/examples/utils/homag-intelligence/create-catalog.d.ts +1 -0
  5. package/packages/embedding-lib/src/examples/utils/homag-intelligence/default-api-options.d.ts +43 -0
  6. package/packages/embedding-lib/src/examples/utils/homag-intelligence/dom-helper.d.ts +13 -0
  7. package/packages/embedding-lib/src/examples/utils/homag-intelligence/drag-in.d.ts +3 -0
  8. package/packages/embedding-lib/src/examples/utils/homag-intelligence/overlay.d.ts +2 -0
  9. package/packages/embedding-lib/src/examples/utils/homag-intelligence/state.d.ts +14 -0
  10. package/packages/embedding-lib/src/examples/utils/homag-intelligence/util.d.ts +19 -0
  11. package/packages/web-sdk/packages/common-core/src/main.d.ts +2 -2
  12. package/packages/web-sdk/packages/common-core/src/utils/init-data.d.ts +2 -0
  13. package/packages/web-sdk/packages/common-core/src/utils/shims.d.ts +6 -0
  14. package/packages/web-sdk/packages/configurator-core/src/configurator.d.ts +1 -1
  15. package/packages/web-sdk/packages/configurator-core/src/utils/test-helpers/utils.d.ts +2 -2
  16. package/packages/web-sdk/packages/glb-viewer-core/src/glb-viewer.d.ts +1 -1
  17. package/packages/web-sdk/packages/homag-intelligence/src/api.d.ts +22 -0
  18. package/packages/web-sdk/packages/homag-intelligence/src/callbacks.d.ts +37 -0
  19. package/packages/web-sdk/packages/homag-intelligence/src/emulator.d.ts +101 -0
  20. package/packages/web-sdk/packages/homag-intelligence/src/homag-intelligence.d.ts +28 -0
  21. package/packages/web-sdk/packages/homag-intelligence/src/loader.d.ts +24 -0
  22. package/packages/web-sdk/packages/homag-intelligence/src/model/oc-scripts-domain.model.d.ts +312 -0
  23. package/packages/web-sdk/packages/homag-intelligence/src/orders.d.ts +39 -0
  24. package/packages/web-sdk/packages/homag-intelligence/src/rml-plugin.d.ts +3 -0
  25. package/packages/web-sdk/packages/homag-intelligence/src/util.d.ts +5 -0
  26. package/packages/web-sdk/packages/material-viewer/src/material-viewer.d.ts +1 -1
  27. package/packages/web-sdk/packages/planner-core/src/planner.d.ts +1 -1
  28. package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +8 -1
  29. package/packages/web-sdk/packages/test-helpers/unit/global-setup.d.ts +1 -1
  30. package/packages/web-sdk/packages/tools-core/src/tools-core.d.ts +1 -1
  31. package/packages/web-sdk/packages/typings/external-objects.d.ts +8 -0
  32. package/packages/web-sdk/packages/typings/planner.d.ts +1 -1
  33. package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +1 -1
  34. package/src/common/composables/use-configurator-api.d.ts +1 -1
  35. package/src/common/composables/use-core-instances.d.ts +1 -1
  36. package/src/common/composables/use-static-item-parameters.d.ts +1 -1
  37. package/src/common/utils/helper.d.ts +1 -1
  38. package/src/common/utils/parameters.d.ts +0 -1
  39. package/src/common/utils/types.d.ts +0 -7
  40. package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +2 -1
  41. package/src/configurator/embedding/exposed-api.d.ts +2 -1
  42. package/src/planner/components/overlays/ProductSettings.vue.d.ts +2 -2
  43. package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +2 -2
  44. package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +2 -2
  45. package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +2 -2
  46. package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +2 -2
  47. package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +2 -2
  48. package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +2 -2
  49. package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +7 -7
  50. package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +1 -1
  51. package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +2 -2
  52. package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +1 -1
  53. package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +1 -1
  54. package/src/planner/utils/planner-sidebar.d.ts +1 -1
  55. package/packages/web-sdk/packages/acceptance-tests/src/utils/async-acceptance-test.d.ts +0 -3
  56. package/packages/web-sdk/packages/configurator-core/__acceptance__/boot.d.ts +0 -1
@@ -0,0 +1,312 @@
1
+ export declare const enum PosUserRight {
2
+ Simple = "Simple",
3
+ Advanced = "Advanced",
4
+ Master = "Master"
5
+ }
6
+ export declare const enum UserRightLevel {
7
+ Simple = 0,
8
+ Advanced = 1,
9
+ Master = 2
10
+ }
11
+ export declare const getUserRightLevel: (right?: PosUserRight | null) => UserRightLevel;
12
+ export interface PosArticleInfo {
13
+ /**
14
+ * Defined the library that is used / must match the MasterData
15
+ */
16
+ libraryId: string;
17
+ /**
18
+ * Defined the library that is used / must match the MasterData
19
+ */
20
+ catalog: string;
21
+ /**
22
+ * The id of the initial article
23
+ */
24
+ articleId: string;
25
+ /**
26
+ * The name of the initial article
27
+ */
28
+ articleName?: string;
29
+ desc?: string;
30
+ imageUrl?: string;
31
+ category?: string;
32
+ }
33
+ export interface PosPartData {
34
+ id: string;
35
+ hidden?: boolean;
36
+ relPos: number[];
37
+ dim: number[];
38
+ fullMatrix: number[];
39
+ openfullMatrix?: number[];
40
+ name: string;
41
+ material?: PosFaceMaterial[] | string;
42
+ extrude?: PosPartExtrudeInfo;
43
+ model?: PosPartModelInfo;
44
+ hideModelWhenOpen?: boolean;
45
+ modelOpen?: PosPartModelInfo;
46
+ }
47
+ export interface PosPartExtrudeInfo {
48
+ svg: string;
49
+ direction: string;
50
+ }
51
+ export interface PosFaceMaterial {
52
+ materialId: string;
53
+ faceKey?: PosFaceKey;
54
+ uvRotation?: number;
55
+ uvOffset?: number[];
56
+ uvScale?: number[];
57
+ }
58
+ export declare enum PosFaceKey {
59
+ Default = "default",
60
+ Bottom = "bottom",
61
+ Top = "top",
62
+ Left = "left",
63
+ Right = "right",
64
+ Front = "front",
65
+ Back = "back",
66
+ Side = "side"
67
+ }
68
+ export interface PosPartModelInfo {
69
+ url: string;
70
+ params?: string;
71
+ }
72
+ export interface PosModuleAttribute {
73
+ id: string;
74
+ value?: number | string | boolean;
75
+ isInput?: boolean;
76
+ }
77
+ export interface PosModuleData {
78
+ id: string;
79
+ name: string;
80
+ modules?: PosModuleData[];
81
+ parts?: PosPartData[];
82
+ imageUrl?: string;
83
+ attributes?: PosModuleAttribute[];
84
+ canBeDeleted?: boolean;
85
+ isGenerated?: boolean;
86
+ checkAttributes?: Map<string, string | number | boolean | undefined>;
87
+ }
88
+ export interface PosModuleRootData extends PosModuleData, PosArticleInfo {
89
+ /**
90
+ * Additional text for this root module
91
+ */
92
+ additionalText?: string;
93
+ /**
94
+ * Position of this article; if not set it is always 0,0,0 (x/y/z)
95
+ */
96
+ articlePos?: number[];
97
+ /**
98
+ * Rotation on the vertical axis in degree (0-359)
99
+ */
100
+ rotationY?: number;
101
+ logMessages: PosErrorMsg[];
102
+ dockInfos: PosDockInfo[];
103
+ insertLevelInfos?: PosInsertLevelInfo[];
104
+ insertLevelFixed?: boolean;
105
+ }
106
+ export interface PosInsertLevelInfo {
107
+ height: number;
108
+ isDefault?: boolean;
109
+ }
110
+ export interface PosDockInfo {
111
+ id: PosDock;
112
+ start: number[];
113
+ end: number[];
114
+ }
115
+ export declare const enum PosDock {
116
+ RightTop = "RightTop",
117
+ BackTop = "BackTop",
118
+ LeftTop = "LeftTop",
119
+ RightBottom = "RightBottom",
120
+ BackBottom = "BackBottom",
121
+ LeftBottom = "LeftBottom",
122
+ LeftBackTop = "LeftBackTop",
123
+ RightBackTop = "RightBackTop",
124
+ LeftBackBottom = "LeftBackBottom",
125
+ RightBackBottom = "RightBackBottom"
126
+ }
127
+ export interface PosErrorMsg {
128
+ category: LogMessageCategoryType;
129
+ msg: string;
130
+ seqNo: number;
131
+ timestamp: string;
132
+ scope?: LogMessageScope;
133
+ }
134
+ export interface LogMessageScope {
135
+ moduleUniqueId?: string;
136
+ attrId?: string;
137
+ }
138
+ export declare const enum LogMessageCategoryType {
139
+ Fatal = "Fatal",
140
+ Error = "Error",
141
+ Warning = "Warning",
142
+ Info = "Info",
143
+ Debug = "Debug"
144
+ }
145
+ export interface PosContourSegment {
146
+ cmd: string;
147
+ x: number;
148
+ y: number;
149
+ angle: number;
150
+ type?: string;
151
+ }
152
+ export interface PosContour {
153
+ level: number;
154
+ segments: PosContourSegment[];
155
+ }
156
+ export interface PosGroup {
157
+ /**
158
+ * The unique id of the Group
159
+ */
160
+ id: string;
161
+ /**
162
+ * One or multiple roots for this article group
163
+ */
164
+ roots: PosModuleRootData[];
165
+ /**
166
+ * Global (error) messages
167
+ */
168
+ logMessages: PosErrorMsg[];
169
+ /**
170
+ * Position/Orientation inside the room
171
+ */
172
+ /**
173
+ * Optional a position of this group
174
+ */
175
+ pos?: number[];
176
+ /**
177
+ * The rotation on the vertical axis in degree (0-360)
178
+ */
179
+ rotationY?: number;
180
+ /**
181
+ * Optional a contour list of the surrounding elements
182
+ */
183
+ contours?: PosContour[];
184
+ /**
185
+ * The version used for this data structure
186
+ */
187
+ ver?: number;
188
+ }
189
+ export interface PosArticle extends PosArticleInfo {
190
+ roots: PosModuleRootData[];
191
+ }
192
+ export interface PosSaveData {
193
+ groups: PosGroup[];
194
+ roomlePlannerId?: string;
195
+ perspectiveImageLink?: string;
196
+ topImageLink?: string;
197
+ room3dLink?: string;
198
+ room3dFullLink?: string;
199
+ }
200
+ export interface PosPriceData {
201
+ Groups: PosPriceGroup[];
202
+ LogMessages: PosErrorMsg[];
203
+ }
204
+ export interface PosPriceGroup {
205
+ Id: string;
206
+ Roots: PosRootPrice[];
207
+ }
208
+ export interface PosRootPrice {
209
+ Id: string;
210
+ TotalPrice?: number;
211
+ Currency?: string;
212
+ }
213
+ export interface PosArticleCalculation {
214
+ /**
215
+ * Calculates the article group
216
+ * @param article
217
+ * @returns calc
218
+ */
219
+ calc(article: PosGroup): PosGroup;
220
+ }
221
+ export type MDAttributeSelection = MDBoolAttributeSelection | MDTextAttributeSelection | MDIntegerAttributeSelection | MDRealAttributeSelection | MDDimAttributeSelection;
222
+ interface BaseAttributeSelection {
223
+ imageUrl?: string;
224
+ desc?: string;
225
+ name?: string;
226
+ }
227
+ export interface MDBoolAttributeSelection extends BaseAttributeSelection {
228
+ value?: boolean;
229
+ }
230
+ export interface MDTextAttributeSelection extends BaseAttributeSelection {
231
+ value?: string;
232
+ }
233
+ export interface MDIntegerAttributeSelection extends BaseAttributeSelection {
234
+ value?: number;
235
+ }
236
+ export interface MDRealAttributeSelection extends BaseAttributeSelection {
237
+ value?: number;
238
+ }
239
+ export interface MDDimAttributeSelection extends BaseAttributeSelection {
240
+ value?: number;
241
+ }
242
+ export interface MDNumberMinMaxAttributeSelection {
243
+ min?: number;
244
+ max?: string;
245
+ desc?: string;
246
+ }
247
+ export declare const enum MDType {
248
+ Dim = "Dim",
249
+ Integer = "Integer",
250
+ Real = "Real",
251
+ Bool = "Bool",
252
+ Text = "Text"
253
+ }
254
+ export type MDAttributeInfo = MDBoolAttributeInfo | MDTextAttributeInfo | MDIntegerAttributeInfo | MDRealAttributeInfo | MDDimAttributeInfo;
255
+ interface BaseMDAttributeInfo {
256
+ id: string;
257
+ name: string;
258
+ isMain?: boolean;
259
+ desc?: string;
260
+ group?: string;
261
+ imageUrl?: string;
262
+ type: MDType;
263
+ userRight?: PosUserRight | null;
264
+ userView?: string | null;
265
+ implicitRelevant?: boolean;
266
+ sorting?: number;
267
+ }
268
+ export interface MDBoolAttributeInfo extends BaseMDAttributeInfo {
269
+ selections?: MDBoolAttributeSelection[];
270
+ type: MDType.Bool;
271
+ }
272
+ export interface MDTextAttributeInfo extends BaseMDAttributeInfo {
273
+ selections?: MDTextAttributeSelection[];
274
+ type: MDType.Text;
275
+ }
276
+ export interface MDIntegerAttributeInfo extends BaseMDAttributeInfo {
277
+ selections?: (MDIntegerAttributeSelection | MDNumberMinMaxAttributeSelection)[];
278
+ type: MDType.Integer;
279
+ }
280
+ export interface MDRealAttributeInfo extends BaseMDAttributeInfo {
281
+ selections?: (MDRealAttributeSelection | MDNumberMinMaxAttributeSelection)[];
282
+ type: MDType.Real;
283
+ }
284
+ export interface MDDimAttributeInfo extends BaseMDAttributeInfo {
285
+ selections?: (MDDimAttributeSelection | MDNumberMinMaxAttributeSelection)[];
286
+ type: MDType.Dim;
287
+ }
288
+ export interface MDModuleInfo {
289
+ id: string;
290
+ name: string;
291
+ desc?: string;
292
+ group?: string;
293
+ imageUrl?: string;
294
+ assignedAttributes: string[];
295
+ }
296
+ export interface MasterData {
297
+ libraryId: string;
298
+ modules: MDModuleInfo[];
299
+ attributes: MDAttributeInfo[];
300
+ }
301
+ export interface CheckResult {
302
+ calcResult: CheckDropDownEntry[];
303
+ }
304
+ export interface CheckDropDownEntry {
305
+ value: string | number | boolean;
306
+ kind: CheckDropDownEntryKind;
307
+ }
308
+ export declare enum CheckDropDownEntryKind {
309
+ Normal = 0,
310
+ Conflicting = 1
311
+ }
312
+ export {};
@@ -0,0 +1,39 @@
1
+ import { default as RoomlePlanner } from '../../planner-core/src/roomle-planner';
2
+ import { GlueLogic } from './emulator';
3
+ import { ApiOptions } from './loader';
4
+
5
+ export declare const createEmptyOrder: () => {
6
+ id: any;
7
+ state: string;
8
+ orderNumber: string;
9
+ orderName: string;
10
+ orderDescription: string;
11
+ project: string;
12
+ personInCharge: string;
13
+ orderDate: string;
14
+ deliveryDatePlanned: string;
15
+ addresses: {
16
+ type: string;
17
+ street: string;
18
+ houseNumber: string;
19
+ postalCode: string;
20
+ city: string;
21
+ country: string;
22
+ }[];
23
+ customerName: string;
24
+ customerNumber: string;
25
+ createdAt: string;
26
+ changedAt: string;
27
+ changedBy: string;
28
+ items: any[];
29
+ };
30
+ export declare const sendToOM: (apiOptions: ApiOptions, roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, withPrice?: boolean) => Promise<void>;
31
+ export declare const fetchPrice: (apiOptions: ApiOptions, gluLogic: GlueLogic, planId?: string) => Promise<any>;
32
+ export default class Orders {
33
+ private _roomlePlanner;
34
+ private _gluLogic;
35
+ private _apiOptions;
36
+ constructor(roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, apiOptions: ApiOptions);
37
+ sendToOM(withPrice?: boolean): Promise<void>;
38
+ fetchPrice(planId?: string): Promise<any>;
39
+ }
@@ -0,0 +1,3 @@
1
+ export declare abstract class RmlPlugin {
2
+ abstract init(...args: any[]): Promise<this>;
3
+ }
@@ -0,0 +1,5 @@
1
+ type Logable = string | number | boolean | object | null | undefined;
2
+ export declare const logApiCallback: (...args: Logable[]) => void;
3
+ export declare const logMessage: (...args: Logable[]) => void;
4
+ export declare const logApiCall: (...args: Logable[]) => void;
5
+ export {};
@@ -7,7 +7,7 @@ export declare class MaterialViewer extends Main {
7
7
  protected setupDependencies(): void;
8
8
  protected cleanUpGlobals(): void;
9
9
  protected cleanUpDependencies(): void;
10
- protected bootFinished(): void;
10
+ protected bootFinished(): Promise<void>;
11
11
  getApi(): RoomleMaterialViewer;
12
12
  protected getContextName(): string;
13
13
  }
@@ -10,7 +10,7 @@ export declare class Planner<P extends readonly PluginName[] = readonly []> exte
10
10
  protected setupDependencies(): void;
11
11
  protected cleanUpGlobals(): void;
12
12
  protected cleanUpDependencies(): void;
13
- protected bootFinished(): void;
13
+ protected bootFinished(): Promise<void>;
14
14
  getApi(): RoomlePlanner<P>;
15
15
  protected getContextName(): string;
16
16
  }
@@ -1,3 +1,4 @@
1
+ import { default as RapiAccess } from '../../common-core/src/rapi-access';
1
2
  import { default as RoomlePlannerUiCallback } from './roomle-planner-ui-callback';
2
3
  import { GlbViewer } from '../../glb-viewer-core/src/glb-viewer';
3
4
  import { ExternalEmbeddable, GlobalAPI, KernelUtilityForUi, RubensAPI, default as Main } from '../../common-core/src/main';
@@ -26,6 +27,7 @@ import { ExternalGroupData, ExternalObject, ExtObjId } from '../../typings/exter
26
27
  import { PluginName } from '../../configurator-core/src/utils/plugin-types';
27
28
  import { Nullable } from '../../typings/helper';
28
29
  import { MaybePromise } from '../../common-core/src/utils/common-utils';
30
+ import { HomagIntelligence } from '../../homag-intelligence/src/homag-intelligence';
29
31
 
30
32
  export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
31
33
  export declare const EXT_OBJ_EXCEPTION = "Could not retrieve configuration for external object! Did you implement onGetConfigurationForExternalObject?";
@@ -75,9 +77,9 @@ export interface InsertItemResult {
75
77
  export default class RoomlePlanner<P extends readonly PluginName[] = readonly []> implements KernelAccessCallbackI, RoomlePlannerCallback, GlobalAPI, Context, KernelUtilityForUi, ExternalEmbeddable<RoomlePlannerUiCallback>, RubensAPI, ExternalObjectAPI {
76
78
  _creator_: string;
77
79
  private _activePlugins;
80
+ private _homagIntelligence;
78
81
  private _configuratorContext;
79
82
  private _domHelper;
80
- private _scriptLoader;
81
83
  private _kernelAccessCallback;
82
84
  private _plannerKernelAccess;
83
85
  private _rapiAccess;
@@ -518,4 +520,9 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
518
520
  * only possible if undo was called before
519
521
  */
520
522
  redo(): Promise<void>;
523
+ setHomagIntelligence(homagIntelligence: HomagIntelligence): void;
524
+ newPosDataFromId(id: string): any;
525
+ sendToOM(withPrice?: boolean): Promise<void>;
526
+ fetchPrice(planId?: string): Promise<any>;
527
+ getRapiAccess(): RapiAccess;
521
528
  }
@@ -1 +1 @@
1
- export {};
1
+
@@ -7,7 +7,7 @@ export declare class ToolsCore extends Main {
7
7
  protected setupDependencies(): void;
8
8
  protected cleanUpGlobals(): void;
9
9
  protected cleanUpDependencies(): void;
10
- protected bootFinished(): void;
10
+ protected bootFinished(): Promise<void>;
11
11
  getApi(): RoomleToolsCore;
12
12
  protected getContextName(): string;
13
13
  }
@@ -1,4 +1,6 @@
1
1
  import { RapiItem, RapiConfigurationEnhanced, Element, RapiTag } from './rapi-types';
2
+ import { default as RoomlePlanner } from '../planner-core/src/roomle-planner';
3
+ import { default as RoomleConfigurator } from '../configurator-core/src/roomle-configurator';
2
4
 
3
5
  export declare const EXTERNAL_ID_PREFIX = "__ext__obj__#";
4
6
  export type ExtObjId = `${typeof EXTERNAL_ID_PREFIX}${string}`;
@@ -17,4 +19,10 @@ export type ExternalTag = Partial<RapiTag> & Pick<RapiTag, 'label'> & {
17
19
  id: ExtObjId;
18
20
  };
19
21
  export type ExternalGroupData = object | string | string[];
22
+ export type RoomlePlannerWithExtObjs = RoomlePlanner<['external-objects']>;
23
+ export type RoomlePlannerType = RoomlePlanner | RoomlePlannerWithExtObjs;
24
+ export type RoomleConfiguratorWithExtObjs = RoomleConfigurator<[
25
+ 'external-objects'
26
+ ]>;
27
+ export type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
20
28
  export {};
@@ -284,7 +284,7 @@ export interface KernelObjectConfiguration {
284
284
  serializedDefinition: string;
285
285
  uniqueId: string;
286
286
  }
287
- declare class KernelObjectConfigurationArray extends EmsArray<KernelObjectConfiguration> {
287
+ export declare class KernelObjectConfigurationArray extends EmsArray<KernelObjectConfiguration> {
288
288
  }
289
289
  export interface LightSourceConfiguration {
290
290
  lightSourceAreaInSquareMeters: number;
@@ -2666,7 +2666,7 @@ declare const dynamicComponents: {
2666
2666
  required: true;
2667
2667
  };
2668
2668
  }>, {
2669
- api: import('vue').ShallowRef<RoomlePlanner<["external-objects"]>>;
2669
+ api: import('vue').ShallowRef<RoomlePlannerWithExtObjs>;
2670
2670
  }, {
2671
2671
  scalingDirection: number;
2672
2672
  }, {}, {
@@ -1,5 +1,5 @@
1
1
  import { ShallowRef } from 'vue';
2
2
 
3
3
  export declare const useConfiguratorApi: () => {
4
- configuratorApi: ShallowRef<any>;
4
+ configuratorApi: ShallowRef<RoomleConfiguratorType>;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { ShallowRef } from 'vue';
2
2
 
3
3
  export declare const useCoreInstances: () => {
4
- api: ShallowRef<RoomlePlanner<["external-objects"]>>;
4
+ api: ShallowRef<RoomlePlannerWithExtObjs>;
5
5
  planInteractionHandler: ShallowRef<PlanInteractionHandler>;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import { GridViewElement } from '../../configurator/components/grid-view/-utils/GridViewHelper';
2
2
  import { MaterialsForObjects } from '../../planner/business-logic/rooms';
3
3
 
4
- export declare const useStaticItemParameters: (api: RoomlePlanner<["external-objects"]>, materialRootTag?: string[] | string) => {
4
+ export declare const useStaticItemParameters: (api: RoomlePlannerWithExtObjs, materialRootTag?: string[] | string) => {
5
5
  show: {
6
6
  sizeControls: any;
7
7
  colorControls: any;
@@ -65,7 +65,7 @@ export type WithRequired<T, K extends keyof T> = T & {
65
65
  };
66
66
  export declare const radToDeg: (rad: number) => number;
67
67
  export declare const isValidPlanID: (planId: string) => boolean;
68
- export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: RoomlePlanner<["external-objects"]>) => {
68
+ export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: RoomlePlannerWithExtObjs) => {
69
69
  x: any;
70
70
  y: any;
71
71
  z: any;
@@ -2,7 +2,6 @@ import { RapiMaterial, RapiMaterialGroup, RapiTagForUi, RapiTexture } from '@roo
2
2
  import { KernelPartListParameter, UiPossibleChildTag } from '@roomle/web-sdk/typings/kernel';
3
3
  import { CollectionViewElement, TabCategory } from '../components/collection-view/-utils/types';
4
4
  import { VariantsMap } from '../../configurator/embedding/types';
5
- import { RoomleConfiguratorType } from './types';
6
5
  import { Translator } from '../composables/use-intl';
7
6
 
8
7
  export declare const DISABLED_PARAMETERS_ELEM_KEY = "disabled-parameters";
@@ -1,5 +1,3 @@
1
- import { default as RoomleConfigurator } from '@roomle/web-sdk/configurator-core/src/roomle-configurator';
2
- import { default as RoomlePlanner } from '@roomle/web-sdk/planner-core/src/roomle-planner';
3
1
  import { ExternalConfiguration } from '@roomle/web-sdk/typings/external-objects';
4
2
  import { KernelVector3 } from '@roomle/web-sdk/typings/kernel';
5
3
  import { RapiConfigurationEnhanced, RapiPlanSnapshotGetData, RapiPlan } from '@roomle/web-sdk/typings/rapi-types';
@@ -147,9 +145,4 @@ export type TutorialData = {
147
145
  [key: string]: CustomTutorialTranslation | CustomTutorialPlatform | CustomTutorialScope;
148
146
  };
149
147
  export type TooltipTarget<T> = ComponentPublicInstance<T>;
150
- export type RoomlePlannerWithExtObjs = RoomlePlanner<['external-objects']>;
151
- export type RoomleConfiguratorWithExtObjs = RoomleConfigurator<[
152
- 'external-objects'
153
- ]>;
154
- export type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
155
148
  export type RapiCallbacks = Record<any, any>;
@@ -1,12 +1,13 @@
1
1
  import { default as RapiAccess } from '@roomle/web-sdk/common-core/src/rapi-access';
2
2
  import { GlbViewer } from '@roomle/web-sdk/glb-viewer-core/src/glb-viewer';
3
3
  import { Configurator } from '@roomle/web-sdk/configurator-core/src/configurator';
4
- import { Nullable, RoomleConfiguratorType } from '../../common/utils/types';
4
+ import { Nullable } from '../../common/utils/types';
5
5
  import { UiInitData } from '../embedding/types';
6
6
  import { GlobalInitDataDefinition } from '@roomle/web-sdk/common-core/src/utils/shims';
7
7
  import { Planner } from '@roomle/web-sdk/planner-core/src/planner';
8
8
  import { GlobalCallback } from '@roomle/web-sdk/common-core/src/services/global-callback';
9
9
  import { default as IdbManager } from '@roomle/web-sdk/common-core/src/services/idb-manager';
10
+ import { RoomleConfiguratorType } from '@roomle/web-sdk/typings/external-objects';
10
11
 
11
12
  /**
12
13
  * We use this class in a plugin so we
@@ -3,7 +3,8 @@ import { LoadResponse, SdkConnector } from '../business-logic/sdk-connector';
3
3
  import { MessageHandler } from '../../../packages/common/src/utils/message-handler';
4
4
  import { Store } from 'vuex';
5
5
  import { StoreState } from '../../common/store';
6
- import { Nullable, RoomleConfiguratorType, RoomlePlannerWithExtObjs } from '../../common/utils/types';
6
+ import { Nullable } from '../../common/utils/types';
7
+ import { RoomlePlannerWithExtObjs, RoomleConfiguratorType } from '@roomle/web-sdk/typings/external-objects';
7
8
  import { Analytics } from '../../common/plugins/analytics';
8
9
  import { default as RoomleGLBViewer } from '@roomle/web-sdk/glb-viewer-core/src/roomle-glb-viewer';
9
10
  import { GlobalCallback } from '@roomle/web-sdk/common-core/src/services/global-callback';
@@ -4,10 +4,10 @@ import { CloseReason, ToggleCallback } from '../../../common/utils/types';
4
4
  declare const _default: import('vue').DefineComponent<{
5
5
  onClose: (_action: BUTTON_ACTIONS, _reason: CloseReason) => void;
6
6
  onToggleExpand?: ToggleCallback;
7
- api: RoomlePlanner<["external-objects"]>;
7
+ api: RoomlePlannerWithExtObjs;
8
8
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
9
  onClose: (_action: BUTTON_ACTIONS, _reason: CloseReason) => void;
10
10
  onToggleExpand?: ToggleCallback;
11
- api: RoomlePlanner<["external-objects"]>;
11
+ api: RoomlePlannerWithExtObjs;
12
12
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1,8 +1,8 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- api: RoomlePlanner<["external-objects"]>;
2
+ api: RoomlePlannerWithExtObjs;
3
3
  isConstructionElement?: boolean;
4
4
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
- api: RoomlePlanner<["external-objects"]>;
5
+ api: RoomlePlannerWithExtObjs;
6
6
  isConstructionElement?: boolean;
7
7
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- api: RoomlePlanner<["external-objects"]>;
2
+ api: RoomlePlannerWithExtObjs;
3
3
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
4
- api: RoomlePlanner<["external-objects"]>;
4
+ api: RoomlePlannerWithExtObjs;
5
5
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
6
  export default _default;
@@ -1,10 +1,10 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  selectionElement: PlanElementViewModel;
3
- api: RoomlePlanner<["external-objects"]>;
3
+ api: RoomlePlannerWithExtObjs;
4
4
  productName: string;
5
5
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
6
  selectionElement: PlanElementViewModel;
7
- api: RoomlePlanner<["external-objects"]>;
7
+ api: RoomlePlannerWithExtObjs;
8
8
  productName: string;
9
9
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- api: RoomlePlanner<["external-objects"]>;
2
+ api: RoomlePlannerWithExtObjs;
3
3
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
4
- api: RoomlePlanner<["external-objects"]>;
4
+ api: RoomlePlannerWithExtObjs;
5
5
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
6
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- api: RoomlePlanner<["external-objects"]>;
2
+ api: RoomlePlannerWithExtObjs;
3
3
  setValues: (values: KernelVector3) => Promise<void>;
4
4
  getValues: () => KernelVector3;
5
5
  labels: {
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<{
13
13
  z: boolean;
14
14
  };
15
15
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
16
- api: RoomlePlanner<["external-objects"]>;
16
+ api: RoomlePlannerWithExtObjs;
17
17
  setValues: (values: KernelVector3) => Promise<void>;
18
18
  getValues: () => KernelVector3;
19
19
  labels: {
@@ -4,14 +4,14 @@ declare const _default: import('vue').DefineComponent<{
4
4
  onExpand: (event: MouseEvent) => void;
5
5
  onCollapse?: (_payload: MouseEvent) => void;
6
6
  isDesktop?: boolean;
7
- api: RoomlePlanner<["external-objects"]>;
7
+ api: RoomlePlannerWithExtObjs;
8
8
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
9
  groups: RapiTag[];
10
10
  isExpanded?: boolean;
11
11
  onExpand: (event: MouseEvent) => void;
12
12
  onCollapse?: (_payload: MouseEvent) => void;
13
13
  isDesktop?: boolean;
14
- api: RoomlePlanner<["external-objects"]>;
14
+ api: RoomlePlannerWithExtObjs;
15
15
  }> & Readonly<{}>, {
16
16
  isDesktop: boolean;
17
17
  isExpanded: boolean;