@variantic/player 0.0.24 → 0.0.26
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 +35 -3
- package/assembly.d.ts +4771 -0
- package/index.d.ts +2198 -0
- package/package.json +17 -10
- package/libs/packages/player/src/index.d.ts +0 -8
- package/libs/schemas/engine/src/index.d.ts +0 -4
- package/libs/schemas/engine/src/lib/documentation.d.ts +0 -9
- package/libs/schemas/engine/src/lib/engine.d.ts +0 -215
- package/libs/schemas/engine/src/lib/publication.d.ts +0 -82
- package/libs/schemas/engine/src/lib/studio.d.ts +0 -81
- package/libs/schemas/file-types/export-configuration/src/index.d.ts +0 -1
- package/libs/schemas/file-types/export-configuration/src/lib/export-configuration.d.ts +0 -10
- package/libs/schemas/file-types/vas/src/index.d.ts +0 -3
- package/libs/schemas/file-types/vas/src/lib/interaction.d.ts +0 -3
- package/libs/schemas/file-types/vas/src/lib/object-configuration.d.ts +0 -25
- package/libs/schemas/file-types/vas/src/lib/vas.d.ts +0 -612
- package/libs/schemas/library-api/src/index.d.ts +0 -1
- package/libs/schemas/library-api/src/lib/library-api.d.ts +0 -27
- package/libs/schemas/web-component/api/player/ar/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/ar/src/lib/ar.d.ts +0 -22
- package/libs/schemas/web-component/api/player/configuration/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/configuration/src/lib/configuration.d.ts +0 -27
- package/libs/schemas/web-component/api/player/documentation/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/documentation/src/lib/documentation.d.ts +0 -26
- package/libs/schemas/web-component/api/player/events/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/events/src/lib/events.d.ts +0 -19
- package/libs/schemas/web-component/api/player/integration-connector/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/integration-connector/src/lib/integration-connector.d.ts +0 -30
- package/libs/schemas/web-component/api/player/layout/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/layout/src/lib/layout.d.ts +0 -18
- package/libs/schemas/web-component/api/player/player/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/player/src/lib/player.d.ts +0 -46
- package/libs/schemas/web-component/api/player/snapshot/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/snapshot/src/lib/snapshot.d.ts +0 -29
- package/libs/schemas/web-component/api/player/viewer/src/index.d.ts +0 -1
- package/libs/schemas/web-component/api/player/viewer/src/lib/viewer.d.ts +0 -471
|
@@ -1,471 +0,0 @@
|
|
|
1
|
-
import type Emittery from 'emittery';
|
|
2
|
-
import type { TSettings } from '@variantic/schemas/engine';
|
|
3
|
-
import type { TTimestampEventPayload, TWebComponentEvents, TMouseClickedPayload, TMouseMovedPayload } from '@variantic/schemas/web-component-apis/player/events';
|
|
4
|
-
/**
|
|
5
|
-
* @category Addons API
|
|
6
|
-
*/
|
|
7
|
-
export type TViewerApi = {
|
|
8
|
-
events: Emittery<TViewerApiEvents>;
|
|
9
|
-
getPlayerInstance(): any;
|
|
10
|
-
get isLoaded(): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Returns the current configuration formatted for rendering.
|
|
13
|
-
*/
|
|
14
|
-
getConfiguration(options?: TGetConfigurationParams): TConfiguration | null;
|
|
15
|
-
/**
|
|
16
|
-
* Returns the current price value.
|
|
17
|
-
*/
|
|
18
|
-
getPrice(): number;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the current price formatted with set rounding settings.
|
|
21
|
-
*/
|
|
22
|
-
getRoundedPrice(): number;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the current price formatted with the appropriate currency symbol.
|
|
25
|
-
*/
|
|
26
|
-
getPriceWithCurrency(): string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Overrides the current price with the specified value.
|
|
29
|
-
*
|
|
30
|
-
* @param value value to replace price with
|
|
31
|
-
*/
|
|
32
|
-
setPrice(value: number | string): void;
|
|
33
|
-
/**
|
|
34
|
-
* If enabled, returns price components calculated based on the selected pricing rule. Otherwise, returns null.
|
|
35
|
-
*/
|
|
36
|
-
getPricing(): TPricingData | null;
|
|
37
|
-
/** @ignore */
|
|
38
|
-
getScene(): any;
|
|
39
|
-
/** @ignore */
|
|
40
|
-
getModel3D(): any;
|
|
41
|
-
/** @ignore */
|
|
42
|
-
getModelContainer3D(): any;
|
|
43
|
-
/**
|
|
44
|
-
* Returns the WebGL canvas element.
|
|
45
|
-
*/
|
|
46
|
-
getCanvas(): HTMLCanvasElement;
|
|
47
|
-
/**
|
|
48
|
-
* Returns all available material groups.
|
|
49
|
-
*/
|
|
50
|
-
getMaterialGroups(): Promise<TMaterialGroup[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Returns a mapping of group IDs to their selected material IDs.
|
|
53
|
-
*/
|
|
54
|
-
getSelectedMaterialByGroup(): {
|
|
55
|
-
[key: number]: number;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Returns the material definition for the specified material ID.
|
|
59
|
-
*/
|
|
60
|
-
getMaterialDataById(materialId: number): TMaterial;
|
|
61
|
-
/**
|
|
62
|
-
* Returns a list of materials matching the given filter ID, optionally grouped by the specified query ID.
|
|
63
|
-
*/
|
|
64
|
-
getMaterialsList({ filterId, groupingQueryId, page, perPage, searchPhrase, searchProps, }: TGetMaterialsListParams): Promise<TMaterialsList>;
|
|
65
|
-
getMaterialsList(filterId: number, groupingQueryId?: number, page?: number, perPage?: number): Promise<TMaterialsList>;
|
|
66
|
-
/**
|
|
67
|
-
* Returns the current layout settings configuration.
|
|
68
|
-
*/
|
|
69
|
-
getLayoutSettings(): TLayoutSettings;
|
|
70
|
-
/**
|
|
71
|
-
* Assigns the specified material ID to the given group ID.
|
|
72
|
-
*/
|
|
73
|
-
assignMaterial(groupId: number, materialId: number): Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* Assigns the specified material ID to the given group ID.
|
|
76
|
-
*/
|
|
77
|
-
assignMaterials(materials: Record<string, number>): Promise<void>;
|
|
78
|
-
/**
|
|
79
|
-
* Changes the camera projection type to either orthographic or perspective.
|
|
80
|
-
*/
|
|
81
|
-
changeCameraType(type: 'orthographic' | 'perspective'): void;
|
|
82
|
-
/**
|
|
83
|
-
* Applies the specified camera settings.
|
|
84
|
-
*/
|
|
85
|
-
setCameraSettings(settings: TCameraSettings): void;
|
|
86
|
-
/**
|
|
87
|
-
* Applies a subset of viewer settings without reloading the whole player.
|
|
88
|
-
*/
|
|
89
|
-
applySettings(settings: Partial<TSettings>): Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* Moves the camera based on the provided parameters.
|
|
92
|
-
*/
|
|
93
|
-
moveCamera(params: TMoveCameraParams): Promise<void>;
|
|
94
|
-
/**
|
|
95
|
-
* Adjusts the camera to fit the current object within view.
|
|
96
|
-
*/
|
|
97
|
-
autoFitCamera(): Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Generates a bill of materials for the specified template ID and filter ID.
|
|
100
|
-
*/
|
|
101
|
-
generateBom({ templateId, filterId, }: {
|
|
102
|
-
templateId: number;
|
|
103
|
-
filterId: number;
|
|
104
|
-
}): Promise<TBom>;
|
|
105
|
-
/**
|
|
106
|
-
* Returns the current floor settings.
|
|
107
|
-
*/
|
|
108
|
-
getSetFloorSettings(): TFloorSettings;
|
|
109
|
-
/**
|
|
110
|
-
* Returns the target unit for value transformation.
|
|
111
|
-
*/
|
|
112
|
-
getTargetUnit(): string;
|
|
113
|
-
/**
|
|
114
|
-
* Returns the list of available units.
|
|
115
|
-
*/
|
|
116
|
-
getUnits(): TUnit[];
|
|
117
|
-
/** @ignore */
|
|
118
|
-
getDimensions(filter?: 'default' | 'defaultNotControlledByEvent'): any[];
|
|
119
|
-
/**
|
|
120
|
-
* Changes the current unit to the specified unit.
|
|
121
|
-
*/
|
|
122
|
-
changeUnit(unit: string): void;
|
|
123
|
-
/**
|
|
124
|
-
* Converts a value from millimeters to the current set target unit.
|
|
125
|
-
*/
|
|
126
|
-
convertFromMillimeters(value: number | string, baseUnit: string): number | string;
|
|
127
|
-
/**
|
|
128
|
-
* Converts a value from the current set target unit to millimeters.
|
|
129
|
-
*/
|
|
130
|
-
convertToMillimeters(value: number | string, baseUnit: string): number | string;
|
|
131
|
-
/**
|
|
132
|
-
* Returns the localized string for the given key
|
|
133
|
-
*/
|
|
134
|
-
translate(key: string): string;
|
|
135
|
-
/**
|
|
136
|
-
* Switches the interface view to either preview or edit mode.
|
|
137
|
-
*/
|
|
138
|
-
changeView(view: 'preview' | 'edit'): void;
|
|
139
|
-
/**
|
|
140
|
-
* Updates the parameter identified by the code with the specified value.
|
|
141
|
-
*/
|
|
142
|
-
changeParameter(code: string, value: string | number): Promise<void>;
|
|
143
|
-
/**
|
|
144
|
-
* Updates multiple parameters in a single call.
|
|
145
|
-
*/
|
|
146
|
-
changeParameters(parameters: Record<string, string | number>): Promise<void>;
|
|
147
|
-
/**
|
|
148
|
-
* Normalizes the given value for a parameter, returning the value and its corresponding label.
|
|
149
|
-
*/
|
|
150
|
-
normalizeParameterValue(parameter: TParameter, value: string | number): {
|
|
151
|
-
value: string | number;
|
|
152
|
-
label: string;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Enables all layers in the current context.
|
|
156
|
-
*/
|
|
157
|
-
enableAllLayers(): void;
|
|
158
|
-
/**
|
|
159
|
-
* Disables all layers in the current context.
|
|
160
|
-
*/
|
|
161
|
-
disableAllLayers(): void;
|
|
162
|
-
/**
|
|
163
|
-
* Enables the layer with the specified ID.
|
|
164
|
-
*/
|
|
165
|
-
enableLayer(id: number): void;
|
|
166
|
-
/**
|
|
167
|
-
* Disables the layer with the specified ID.
|
|
168
|
-
*/
|
|
169
|
-
disableLayer(id: number): void;
|
|
170
|
-
/**
|
|
171
|
-
* Toggles dimension visibility based on the state and optional dimension IDs or presets.
|
|
172
|
-
*/
|
|
173
|
-
toggleDimensions(state: boolean, dimensions?: number[] | 'default' | 'defaultNotControlledByEvent'): void;
|
|
174
|
-
/**
|
|
175
|
-
* Loads preset with given ID and reloads the viewer
|
|
176
|
-
*/
|
|
177
|
-
loadPreset(id: string | TPreset): Promise<void>;
|
|
178
|
-
};
|
|
179
|
-
export type TViewerApiEvents = TWebComponentEvents<{
|
|
180
|
-
loaded: TTimestampEventPayload;
|
|
181
|
-
reloaded: TTimestampEventPayload;
|
|
182
|
-
reloadedAfterLoad: TTimestampEventPayload;
|
|
183
|
-
configurationUpdating: TTimestampEventPayload;
|
|
184
|
-
sceneReloaded: TTimestampEventPayload;
|
|
185
|
-
configurationUpdated: TConfiguration;
|
|
186
|
-
priceChanged: {
|
|
187
|
-
price: number;
|
|
188
|
-
priceWithCurrency: string;
|
|
189
|
-
};
|
|
190
|
-
bomGenerated: {
|
|
191
|
-
templateId: number;
|
|
192
|
-
filterId: number;
|
|
193
|
-
bom: TBom;
|
|
194
|
-
};
|
|
195
|
-
materialAssigned: {
|
|
196
|
-
groupId: number;
|
|
197
|
-
materialId: number;
|
|
198
|
-
};
|
|
199
|
-
materialAssignedAfterLoad: {
|
|
200
|
-
groupId: number;
|
|
201
|
-
materialId: number;
|
|
202
|
-
};
|
|
203
|
-
mouseClicked: TMouseClickedPayload;
|
|
204
|
-
mouseMoved: TMouseMovedPayload;
|
|
205
|
-
dimensionToggled: {
|
|
206
|
-
state: boolean;
|
|
207
|
-
};
|
|
208
|
-
}>;
|
|
209
|
-
export type TGetMaterialsListParams = {
|
|
210
|
-
filterId: number;
|
|
211
|
-
groupingQueryId?: number;
|
|
212
|
-
page?: number;
|
|
213
|
-
perPage?: number;
|
|
214
|
-
searchPhrase?: string;
|
|
215
|
-
searchProps?: TMaterialSearchProp[];
|
|
216
|
-
langCode?: string;
|
|
217
|
-
};
|
|
218
|
-
export type TMaterialSearchProp = 'name' | 'code';
|
|
219
|
-
export type TGetConfigurationParams = {
|
|
220
|
-
/**
|
|
221
|
-
* Specifies whether to include hidden items
|
|
222
|
-
* @defaultValue `true`
|
|
223
|
-
*/
|
|
224
|
-
includeHidden?: boolean;
|
|
225
|
-
};
|
|
226
|
-
export type TMoveCameraParams = {
|
|
227
|
-
/**
|
|
228
|
-
* Target camera angle
|
|
229
|
-
* @defaultValue `default`
|
|
230
|
-
*/
|
|
231
|
-
angle?: TCameraAngle;
|
|
232
|
-
/**
|
|
233
|
-
* Whether to move with animation
|
|
234
|
-
* @defaultValue `true`
|
|
235
|
-
*/
|
|
236
|
-
animation?: boolean;
|
|
237
|
-
};
|
|
238
|
-
export type TCameraAngle = 'default' | '-x+z' | '+x+z' | '-x-z' | '+x-z' | '+z' | '-z' | '+y' | '-y' | '+x' | '-x';
|
|
239
|
-
export type TMaterial = {
|
|
240
|
-
id: number;
|
|
241
|
-
name: string;
|
|
242
|
-
code: string;
|
|
243
|
-
price: number;
|
|
244
|
-
group: string;
|
|
245
|
-
type: string;
|
|
246
|
-
mass: number;
|
|
247
|
-
mass_unit: string;
|
|
248
|
-
dim_x: number;
|
|
249
|
-
dim_y: number;
|
|
250
|
-
dim_z: number;
|
|
251
|
-
dim_unit: string;
|
|
252
|
-
data_1: string;
|
|
253
|
-
data_2: string;
|
|
254
|
-
data_3: string;
|
|
255
|
-
data_4: string;
|
|
256
|
-
url: string;
|
|
257
|
-
photo: string;
|
|
258
|
-
enabled: boolean;
|
|
259
|
-
grain: boolean;
|
|
260
|
-
};
|
|
261
|
-
export type TMeta = {
|
|
262
|
-
totalItems: number;
|
|
263
|
-
itemCount: number;
|
|
264
|
-
itemsPerPage: number;
|
|
265
|
-
totalPages: number;
|
|
266
|
-
currentPage: number;
|
|
267
|
-
};
|
|
268
|
-
export type TMaterialsList = {
|
|
269
|
-
items: TMaterial[];
|
|
270
|
-
meta: TMeta;
|
|
271
|
-
};
|
|
272
|
-
export type TLayoutSettings = {
|
|
273
|
-
colors: {
|
|
274
|
-
primaryColor: string;
|
|
275
|
-
secondaryColor: string;
|
|
276
|
-
};
|
|
277
|
-
defaultConfigurationMode: 'configuration' | 'materials';
|
|
278
|
-
};
|
|
279
|
-
export type TFilterGroupingQuery = {
|
|
280
|
-
name: string;
|
|
281
|
-
default: boolean;
|
|
282
|
-
};
|
|
283
|
-
export type TFilter = {
|
|
284
|
-
name: string;
|
|
285
|
-
id: number;
|
|
286
|
-
groupingQueries: TFilterGroupingQuery[];
|
|
287
|
-
};
|
|
288
|
-
export type TMaterialGroup = {
|
|
289
|
-
id: number;
|
|
290
|
-
name: string;
|
|
291
|
-
filterData: TFilter;
|
|
292
|
-
filters: TFilter[];
|
|
293
|
-
showType: string;
|
|
294
|
-
};
|
|
295
|
-
export type TBom = {
|
|
296
|
-
name: string;
|
|
297
|
-
head: string[];
|
|
298
|
-
body: string[][];
|
|
299
|
-
};
|
|
300
|
-
export type TCameraSettings = {
|
|
301
|
-
autoCameraFit?: boolean;
|
|
302
|
-
fitAngle?: TCameraAngle;
|
|
303
|
-
cameraFitToSelected?: boolean;
|
|
304
|
-
cameraSnapToAngle?: boolean;
|
|
305
|
-
cameraType?: 'orthographic' | 'perspective';
|
|
306
|
-
enablePan?: boolean;
|
|
307
|
-
enableRotate?: boolean;
|
|
308
|
-
blockRotationAxes?: {
|
|
309
|
-
x?: boolean;
|
|
310
|
-
y?: boolean;
|
|
311
|
-
z?: boolean;
|
|
312
|
-
};
|
|
313
|
-
blockMoveUnderFloor?: boolean;
|
|
314
|
-
zoomBoundaries?: {
|
|
315
|
-
max?: number;
|
|
316
|
-
min?: number;
|
|
317
|
-
};
|
|
318
|
-
rotateBoundaries?: {
|
|
319
|
-
x?: {
|
|
320
|
-
min?: number;
|
|
321
|
-
max?: number;
|
|
322
|
-
};
|
|
323
|
-
y?: {
|
|
324
|
-
min?: number;
|
|
325
|
-
max?: number;
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
enableCameraOptimization?: boolean;
|
|
329
|
-
enableAutoRotate?: boolean;
|
|
330
|
-
autoRotateActivationTime?: number;
|
|
331
|
-
autoRotateSpeed?: number;
|
|
332
|
-
infinityRotationAxes?: {
|
|
333
|
-
x?: boolean;
|
|
334
|
-
y?: boolean;
|
|
335
|
-
};
|
|
336
|
-
isCameraSet?: boolean;
|
|
337
|
-
defaultFar?: boolean;
|
|
338
|
-
};
|
|
339
|
-
export type TFloorSettings = {
|
|
340
|
-
activeFloor: boolean;
|
|
341
|
-
activeFloorShadow: boolean;
|
|
342
|
-
useFloorInAR: boolean;
|
|
343
|
-
floorSize: {
|
|
344
|
-
x: number;
|
|
345
|
-
y: number;
|
|
346
|
-
};
|
|
347
|
-
floorSizeType: 'infinity' | 'likeObject' | 'custom';
|
|
348
|
-
selectedMaterialGroup: number | null;
|
|
349
|
-
selectedDefaultMaterial: number | null;
|
|
350
|
-
};
|
|
351
|
-
export type TUnit = {
|
|
352
|
-
unit: string;
|
|
353
|
-
label: string;
|
|
354
|
-
};
|
|
355
|
-
export type TParameterTypes = 'number-range' | 'number-predefined' | 'number-constant' | 'text-constant' | 'text-input' | 'boolean' | 'list-options' | 'list-buttons' | 'list-image-options' | 'list-image-buttons' | 'list-images' | 'button';
|
|
356
|
-
export type TParameterEvents = {
|
|
357
|
-
[K in keyof GlobalEventHandlersEventMap]?: (event: GlobalEventHandlersEventMap[K]) => void;
|
|
358
|
-
};
|
|
359
|
-
export type TParameterBase<TType extends TParameterTypes = TParameterTypes, TSettings = undefined> = {
|
|
360
|
-
code: string;
|
|
361
|
-
name: string;
|
|
362
|
-
type: TType;
|
|
363
|
-
unit: string;
|
|
364
|
-
unitLabel: string;
|
|
365
|
-
value: string;
|
|
366
|
-
valueLabel: string;
|
|
367
|
-
settings: TSettings;
|
|
368
|
-
events?: TParameterEvents;
|
|
369
|
-
isHidden?: boolean;
|
|
370
|
-
};
|
|
371
|
-
export type TParameterNumberRange = TParameterBase<'number-range', {
|
|
372
|
-
min: number;
|
|
373
|
-
minLabel: string;
|
|
374
|
-
max: number;
|
|
375
|
-
maxLabel: string;
|
|
376
|
-
preferred?: number[];
|
|
377
|
-
step: number;
|
|
378
|
-
}>;
|
|
379
|
-
type TNumberPredefinedStyleSettings = {
|
|
380
|
-
align?: 'content' | 'responsive';
|
|
381
|
-
};
|
|
382
|
-
export type TParameterNumberPredefined = TParameterBase<'number-predefined', {
|
|
383
|
-
options: string[];
|
|
384
|
-
optionLabels: string[];
|
|
385
|
-
styleSettings?: TNumberPredefinedStyleSettings;
|
|
386
|
-
}>;
|
|
387
|
-
export type TParameterNumberConstant = TParameterBase<'number-constant'>;
|
|
388
|
-
type TListStyleSettings = {
|
|
389
|
-
size?: 'sm' | 'md' | 'lg';
|
|
390
|
-
shape?: 'square' | 'portrait' | 'landscape';
|
|
391
|
-
align?: 'content' | 'responsive';
|
|
392
|
-
};
|
|
393
|
-
export type TParameterListOptions = TParameterBase<'list-options', {
|
|
394
|
-
defaultValue: string;
|
|
395
|
-
options: Record<string, string>;
|
|
396
|
-
optionsOrdered: {
|
|
397
|
-
key: string;
|
|
398
|
-
value: string;
|
|
399
|
-
}[];
|
|
400
|
-
styleSettings?: TListStyleSettings;
|
|
401
|
-
}>;
|
|
402
|
-
export type TParameterListButtons = TParameterBase<'list-buttons', {
|
|
403
|
-
defaultValue: string;
|
|
404
|
-
options: Record<string, string>;
|
|
405
|
-
optionsOrdered: {
|
|
406
|
-
key: string;
|
|
407
|
-
value: string;
|
|
408
|
-
}[];
|
|
409
|
-
styleSettings?: TListStyleSettings;
|
|
410
|
-
}>;
|
|
411
|
-
export type TParameterListImageOptions = TParameterBase<'list-image-options', {
|
|
412
|
-
defaultValue: string;
|
|
413
|
-
options: Record<string, string>;
|
|
414
|
-
optionsOrdered: {
|
|
415
|
-
key: string;
|
|
416
|
-
value: string;
|
|
417
|
-
}[];
|
|
418
|
-
optionsImages: Record<string, string>;
|
|
419
|
-
styleSettings?: TListStyleSettings;
|
|
420
|
-
}>;
|
|
421
|
-
export type TParameterListImageButtons = TParameterBase<'list-image-buttons', {
|
|
422
|
-
defaultValue: string;
|
|
423
|
-
options: Record<string, string>;
|
|
424
|
-
optionsOrdered: {
|
|
425
|
-
key: string;
|
|
426
|
-
value: string;
|
|
427
|
-
}[];
|
|
428
|
-
optionsImages: Record<string, string>;
|
|
429
|
-
styleSettings?: TListStyleSettings;
|
|
430
|
-
}>;
|
|
431
|
-
export type TParameterListImages = TParameterBase<'list-images', {
|
|
432
|
-
defaultValue: string | null;
|
|
433
|
-
options: Record<string, {
|
|
434
|
-
image: string | null;
|
|
435
|
-
label: string;
|
|
436
|
-
}>;
|
|
437
|
-
}>;
|
|
438
|
-
export type TParameterText = TParameterBase<'text-constant'>;
|
|
439
|
-
export type TParameterTextInput = TParameterBase<'text-input', {
|
|
440
|
-
maxLength: number;
|
|
441
|
-
placeholder: string;
|
|
442
|
-
}>;
|
|
443
|
-
export type TParameterBoolean = TParameterBase<'boolean'>;
|
|
444
|
-
export type TParameterButton = TParameterBase<'button'>;
|
|
445
|
-
export type TParameter = TParameterNumberRange | TParameterNumberPredefined | TParameterNumberConstant | TParameterListOptions | TParameterListButtons | TParameterListImageOptions | TParameterListImageButtons | TParameterListImages | TParameterText | TParameterTextInput | TParameterBoolean | TParameterButton;
|
|
446
|
-
export type TCategory = {
|
|
447
|
-
id: number;
|
|
448
|
-
name: string;
|
|
449
|
-
parameters: TParameter[];
|
|
450
|
-
isHidden?: boolean;
|
|
451
|
-
};
|
|
452
|
-
export type TConfiguration = {
|
|
453
|
-
categories: TCategory[];
|
|
454
|
-
};
|
|
455
|
-
export type TPricingSection = {
|
|
456
|
-
name: string;
|
|
457
|
-
table: string[][];
|
|
458
|
-
price: number;
|
|
459
|
-
priceColumnIndex: number;
|
|
460
|
-
};
|
|
461
|
-
export type TPricingData = {
|
|
462
|
-
finalPrice: number;
|
|
463
|
-
sections: TPricingSection[];
|
|
464
|
-
};
|
|
465
|
-
export type TPreset = {
|
|
466
|
-
id: string;
|
|
467
|
-
name: string;
|
|
468
|
-
configuration: any;
|
|
469
|
-
ignore?: string[];
|
|
470
|
-
};
|
|
471
|
-
export {};
|