@preference-sl/prefconfigurator-wasm 3.0.0 → 3.0.2
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/_framework/{PrefConfigurator.Abstractions.ln313jingu.wasm → PrefConfigurator.Abstractions.bf725dewk0.wasm} +0 -0
- package/_framework/PrefConfigurator.Abstractions.bf725dewk0.wasm.br +0 -0
- package/_framework/PrefConfigurator.Abstractions.bf725dewk0.wasm.gz +0 -0
- package/_framework/{PrefConfigurator.Application.kp3wvb8xsj.wasm → PrefConfigurator.Application.2a58uu9ncd.wasm} +0 -0
- package/_framework/PrefConfigurator.Application.2a58uu9ncd.wasm.br +0 -0
- package/_framework/PrefConfigurator.Application.2a58uu9ncd.wasm.gz +0 -0
- package/_framework/{PrefConfigurator.Infrastructure.8dso573rth.wasm → PrefConfigurator.Infrastructure.4idr4j6yxt.wasm} +0 -0
- package/_framework/PrefConfigurator.Infrastructure.4idr4j6yxt.wasm.br +0 -0
- package/_framework/PrefConfigurator.Infrastructure.4idr4j6yxt.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Wasm.mgok0ec7jf.wasm +0 -0
- package/_framework/PrefConfigurator.Wasm.mgok0ec7jf.wasm.br +0 -0
- package/_framework/PrefConfigurator.Wasm.mgok0ec7jf.wasm.gz +0 -0
- package/_framework/blazor.boot.json +9 -9
- package/_framework/blazor.boot.json.br +0 -0
- package/_framework/blazor.boot.json.gz +0 -0
- package/js/prefconfigurator-api.d.ts +29 -364
- package/package.json +1 -1
- package/_framework/PrefConfigurator.Abstractions.ln313jingu.wasm.br +0 -0
- package/_framework/PrefConfigurator.Abstractions.ln313jingu.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Application.kp3wvb8xsj.wasm.br +0 -0
- package/_framework/PrefConfigurator.Application.kp3wvb8xsj.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Infrastructure.8dso573rth.wasm.br +0 -0
- package/_framework/PrefConfigurator.Infrastructure.8dso573rth.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Wasm.982322j3zh.wasm +0 -0
- package/_framework/PrefConfigurator.Wasm.982322j3zh.wasm.br +0 -0
- package/_framework/PrefConfigurator.Wasm.982322j3zh.wasm.gz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainAssemblyName": "PrefConfigurator.Wasm",
|
|
3
3
|
"resources": {
|
|
4
|
-
"hash": "sha256-
|
|
4
|
+
"hash": "sha256-XVTnuCsXvnF9Xu4WOr3OVJYvo2yPuyi56kefSWLdHVI=",
|
|
5
5
|
"fingerprinting": {
|
|
6
6
|
"Microsoft.CSharp.soa7iupusj.wasm": "Microsoft.CSharp.wasm",
|
|
7
7
|
"Microsoft.Extensions.Caching.Abstractions.9tfokavdri.wasm": "Microsoft.Extensions.Caching.Abstractions.wasm",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"Microsoft.Extensions.Options.bzdoshyjeq.wasm": "Microsoft.Extensions.Options.wasm",
|
|
35
35
|
"Microsoft.Extensions.Primitives.ii8zcoqmmf.wasm": "Microsoft.Extensions.Primitives.wasm",
|
|
36
36
|
"Newtonsoft.Json.ou6h2ikg0u.wasm": "Newtonsoft.Json.wasm",
|
|
37
|
-
"PrefConfigurator.Abstractions.
|
|
38
|
-
"PrefConfigurator.Application.
|
|
39
|
-
"PrefConfigurator.Infrastructure.
|
|
40
|
-
"PrefConfigurator.Wasm.
|
|
37
|
+
"PrefConfigurator.Abstractions.bf725dewk0.wasm": "PrefConfigurator.Abstractions.wasm",
|
|
38
|
+
"PrefConfigurator.Application.2a58uu9ncd.wasm": "PrefConfigurator.Application.wasm",
|
|
39
|
+
"PrefConfigurator.Infrastructure.4idr4j6yxt.wasm": "PrefConfigurator.Infrastructure.wasm",
|
|
40
|
+
"PrefConfigurator.Wasm.mgok0ec7jf.wasm": "PrefConfigurator.Wasm.wasm",
|
|
41
41
|
"Preference.Hydra.OpenApi.oba396x8m7.wasm": "Preference.Hydra.OpenApi.wasm",
|
|
42
42
|
"System.Collections.Concurrent.kq7l3koqtq.wasm": "System.Collections.Concurrent.wasm",
|
|
43
43
|
"System.Collections.NonGeneric.u4veqqwbpo.wasm": "System.Collections.NonGeneric.wasm",
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
"Microsoft.Extensions.Options.bzdoshyjeq.wasm": "sha256-OUMXYxUKhNC6l0LAh4xpi+gy+X9b0XXW3pZh9YdZ9C8=",
|
|
135
135
|
"Microsoft.Extensions.Primitives.ii8zcoqmmf.wasm": "sha256-Jt5QBSXSDEahiZ89Pn1MhJ9A3C/ftN8ZXaBGV9JgqwQ=",
|
|
136
136
|
"Newtonsoft.Json.ou6h2ikg0u.wasm": "sha256-8EZ4H5Mb5yxuavrUzuw5k75ewxJQbdU+Y1rksETqPVo=",
|
|
137
|
-
"PrefConfigurator.Abstractions.
|
|
138
|
-
"PrefConfigurator.Application.
|
|
139
|
-
"PrefConfigurator.Infrastructure.
|
|
140
|
-
"PrefConfigurator.Wasm.
|
|
137
|
+
"PrefConfigurator.Abstractions.bf725dewk0.wasm": "sha256-6RRVkUulXXGoQ3rzuGSwjJD8mgo4h3g7Dh73bkqTrC4=",
|
|
138
|
+
"PrefConfigurator.Application.2a58uu9ncd.wasm": "sha256-ujKFCW8hfz41dtQxz9toZ2/ew/FXzJlvzwmGDHPDZic=",
|
|
139
|
+
"PrefConfigurator.Infrastructure.4idr4j6yxt.wasm": "sha256-5PJXg81VPxXYcZwtaHd2UO0WCy+cBOSEJnWjptw9hRA=",
|
|
140
|
+
"PrefConfigurator.Wasm.mgok0ec7jf.wasm": "sha256-Ks8E5lxjiie+yDZ87xQMQgf+jcP4plT4WYYHtYTslTw=",
|
|
141
141
|
"Preference.Hydra.OpenApi.oba396x8m7.wasm": "sha256-BOitG9XqTGoVdagU40GvNefDuOylKCPs3Gp5VG0M3oY=",
|
|
142
142
|
"System.Collections.Concurrent.kq7l3koqtq.wasm": "sha256-lDJetX8MOCPfYgq+j+JjNEwEFA9oW7BLaaNmAFUZQaE=",
|
|
143
143
|
"System.Collections.NonGeneric.u4veqqwbpo.wasm": "sha256-Hlfxail2eLYOSROomwSdgZ3zfxPgxeQCs+6AiZn4uBE=",
|
|
Binary file
|
|
Binary file
|
|
@@ -1,659 +1,324 @@
|
|
|
1
1
|
export interface ErrorInfo {
|
|
2
|
-
|
|
3
2
|
Code?: string;
|
|
4
|
-
|
|
5
3
|
Message?: string;
|
|
6
|
-
|
|
7
4
|
Source?: string;
|
|
8
|
-
|
|
9
5
|
HttpStatus?: number;
|
|
10
|
-
|
|
11
6
|
RequestId?: string;
|
|
12
|
-
|
|
13
7
|
CorrelationId?: string;
|
|
14
|
-
|
|
15
8
|
TraceParent?: string;
|
|
16
|
-
|
|
17
9
|
Detail?: string;
|
|
18
|
-
|
|
19
10
|
}
|
|
20
11
|
|
|
21
|
-
|
|
22
|
-
|
|
23
12
|
export interface OperationResult<T> {
|
|
24
|
-
|
|
25
13
|
Ok: boolean;
|
|
26
|
-
|
|
27
14
|
Data?: T | null;
|
|
28
|
-
|
|
29
15
|
Error?: ErrorInfo | null;
|
|
30
|
-
|
|
31
16
|
CallId?: string | null;
|
|
32
|
-
|
|
33
17
|
}
|
|
34
18
|
|
|
35
|
-
|
|
36
|
-
|
|
37
19
|
export interface CreateItemResponse {
|
|
38
|
-
|
|
39
20
|
ItemId: string;
|
|
40
|
-
|
|
41
21
|
}
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
23
|
export type JsonPrimitive = string | number | boolean | null;
|
|
46
|
-
|
|
47
24
|
export type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue };
|
|
48
25
|
|
|
49
|
-
|
|
50
|
-
|
|
51
26
|
export interface OptionValueInfo {
|
|
52
|
-
|
|
53
27
|
ValueString?: string | null;
|
|
54
|
-
|
|
55
28
|
ValueNumeric?: number | null;
|
|
56
|
-
|
|
57
29
|
Hidden: boolean;
|
|
58
|
-
|
|
59
30
|
}
|
|
60
31
|
|
|
61
|
-
|
|
62
|
-
|
|
63
32
|
export interface OptionInfo {
|
|
64
|
-
|
|
65
33
|
Maker?: string | null;
|
|
66
|
-
|
|
67
34
|
Code?: string | null;
|
|
68
|
-
|
|
69
35
|
Type?: string | null;
|
|
70
|
-
|
|
71
36
|
Description?: string | null;
|
|
72
|
-
|
|
73
37
|
ValueString?: string | null;
|
|
74
|
-
|
|
75
38
|
ValueNumeric?: number | null;
|
|
76
|
-
|
|
77
39
|
Hidden: boolean;
|
|
78
|
-
|
|
79
40
|
Values?: OptionValueInfo[] | null;
|
|
80
|
-
|
|
81
41
|
}
|
|
82
42
|
|
|
83
|
-
|
|
84
|
-
|
|
85
43
|
export interface OptionList {
|
|
86
|
-
|
|
87
44
|
Name?: string | null;
|
|
88
|
-
|
|
89
45
|
Childs?: OptionList[] | null;
|
|
90
|
-
|
|
91
46
|
Options?: OptionInfo[] | null;
|
|
92
|
-
|
|
93
47
|
}
|
|
94
48
|
|
|
95
|
-
|
|
96
|
-
|
|
97
49
|
export interface OptionLocation {
|
|
98
|
-
|
|
99
50
|
Order: number;
|
|
100
|
-
|
|
101
51
|
Area: string;
|
|
102
|
-
|
|
103
52
|
Tab: string;
|
|
104
|
-
|
|
105
53
|
Section: string;
|
|
106
|
-
|
|
107
54
|
Widget: string;
|
|
108
|
-
|
|
109
55
|
}
|
|
110
56
|
|
|
111
|
-
|
|
112
|
-
|
|
113
57
|
export interface EnhancedOptionInfo extends OptionInfo {
|
|
114
|
-
|
|
115
58
|
PartitionPart?: string | null;
|
|
116
|
-
|
|
117
59
|
ValueChanged: boolean;
|
|
118
|
-
|
|
119
60
|
Locations?: OptionLocation[] | null;
|
|
120
|
-
|
|
121
61
|
}
|
|
122
62
|
|
|
123
|
-
|
|
124
|
-
|
|
125
63
|
export interface EnhancedOptionList {
|
|
126
|
-
|
|
127
64
|
Name?: string | null;
|
|
128
|
-
|
|
129
65
|
Options?: EnhancedOptionInfo[] | null;
|
|
130
|
-
|
|
131
66
|
}
|
|
132
67
|
|
|
133
|
-
|
|
134
|
-
|
|
135
68
|
export interface DimensionsResponse {
|
|
136
|
-
|
|
137
69
|
TotalL?: number | null;
|
|
138
|
-
|
|
139
70
|
TotalA?: number | null;
|
|
140
|
-
|
|
141
71
|
Values?: Record<string, number>;
|
|
142
|
-
|
|
143
72
|
ValuesText?: Record<string, string>;
|
|
144
|
-
|
|
145
73
|
LLabels?: string[];
|
|
146
|
-
|
|
147
74
|
ALabels?: string[];
|
|
148
|
-
|
|
149
75
|
LCount?: number;
|
|
150
|
-
|
|
151
76
|
ACount?: number;
|
|
152
|
-
|
|
153
77
|
}
|
|
154
78
|
|
|
155
|
-
|
|
156
|
-
|
|
157
79
|
export interface SetDimensionsResponse {
|
|
158
|
-
|
|
159
80
|
RawResults?: Array<boolean | null>;
|
|
160
|
-
|
|
161
81
|
Succeeded?: boolean | null;
|
|
162
|
-
|
|
163
82
|
Status?: string | null;
|
|
164
|
-
|
|
165
83
|
Message?: string | null;
|
|
166
|
-
|
|
167
84
|
}
|
|
168
85
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export interface SetDimensionValueRequest
|
|
172
|
-
{
|
|
173
|
-
|
|
86
|
+
export interface SetDimensionValueRequest {
|
|
174
87
|
dimensionName: string;
|
|
175
|
-
|
|
176
88
|
dimensionValue: number;
|
|
177
|
-
|
|
178
89
|
}
|
|
179
90
|
|
|
180
|
-
|
|
181
|
-
|
|
182
91
|
export interface SetOptionValueResponse {
|
|
183
|
-
|
|
184
92
|
succeeded: boolean;
|
|
185
|
-
|
|
186
93
|
status?: string | null;
|
|
187
|
-
|
|
188
94
|
message?: string | null;
|
|
189
|
-
|
|
190
95
|
optionChanged?: boolean | null;
|
|
191
|
-
|
|
192
96
|
}
|
|
193
97
|
|
|
194
|
-
|
|
195
|
-
|
|
196
98
|
export interface SetOptionValueRequest {
|
|
197
|
-
|
|
198
99
|
optionName: string;
|
|
199
|
-
|
|
200
100
|
optionValue: string;
|
|
201
|
-
|
|
202
101
|
}
|
|
203
102
|
|
|
204
|
-
|
|
205
|
-
|
|
206
103
|
export interface SetOptionValueBatchResult {
|
|
207
|
-
|
|
208
104
|
optionName: string;
|
|
209
|
-
|
|
210
105
|
sent: boolean;
|
|
211
|
-
|
|
212
106
|
reason?: string | null;
|
|
213
|
-
|
|
214
107
|
response?: SetOptionValueResponse | null;
|
|
215
|
-
|
|
216
108
|
}
|
|
217
109
|
|
|
218
|
-
|
|
219
|
-
|
|
220
110
|
export interface SetOptionsResponse {
|
|
221
|
-
|
|
222
111
|
requestedCount: number;
|
|
223
|
-
|
|
224
112
|
sentCount: number;
|
|
225
|
-
|
|
226
113
|
skippedCount: number;
|
|
227
|
-
|
|
228
114
|
results: SetOptionValueBatchResult[];
|
|
229
|
-
|
|
230
115
|
}
|
|
231
116
|
|
|
232
|
-
|
|
233
|
-
|
|
234
117
|
export interface SceneTexCoord {
|
|
235
|
-
|
|
236
118
|
Scale: number[];
|
|
237
|
-
|
|
238
119
|
Offset: number[];
|
|
239
|
-
|
|
240
120
|
}
|
|
241
121
|
|
|
242
|
-
|
|
243
|
-
|
|
244
122
|
export interface ScenePlane {
|
|
245
|
-
|
|
246
123
|
Normal: number[];
|
|
247
|
-
|
|
248
124
|
Point: number[];
|
|
249
|
-
|
|
250
125
|
}
|
|
251
126
|
|
|
252
|
-
|
|
253
|
-
|
|
254
127
|
export interface SceneFloor {
|
|
255
|
-
|
|
256
128
|
Plane: ScenePlane;
|
|
257
|
-
|
|
258
129
|
TexCoord: SceneTexCoord;
|
|
259
|
-
|
|
260
130
|
}
|
|
261
131
|
|
|
262
|
-
|
|
263
|
-
|
|
264
132
|
export interface SceneMaterial {
|
|
265
|
-
|
|
266
133
|
Name: string;
|
|
267
|
-
|
|
268
134
|
BaseColor: string;
|
|
269
|
-
|
|
270
135
|
Roughness: string;
|
|
271
|
-
|
|
272
136
|
Normal: string;
|
|
273
|
-
|
|
274
137
|
}
|
|
275
138
|
|
|
276
|
-
|
|
277
|
-
|
|
278
139
|
export interface SceneWallData {
|
|
279
|
-
|
|
280
140
|
OuterWallTexCoord: SceneTexCoord;
|
|
281
|
-
|
|
282
141
|
InnerWallTexCoord: SceneTexCoord;
|
|
283
|
-
|
|
284
142
|
OuterFloor: SceneFloor;
|
|
285
|
-
|
|
286
143
|
InnerFloor: SceneFloor;
|
|
287
|
-
|
|
288
144
|
WallPolyline: string;
|
|
289
|
-
|
|
290
145
|
MinWallThickness: number;
|
|
291
|
-
|
|
292
146
|
Translation: number[];
|
|
293
|
-
|
|
294
147
|
FloorPath: string;
|
|
295
|
-
|
|
296
148
|
UpAxis: number;
|
|
297
|
-
|
|
298
149
|
DepthAxis: number;
|
|
299
|
-
|
|
300
150
|
Materials: SceneMaterial[];
|
|
301
|
-
|
|
302
151
|
InnerHeight?: number | null;
|
|
303
|
-
|
|
304
152
|
OuterHeight?: number | null;
|
|
305
|
-
|
|
306
153
|
ExtraInnerWallDepth?: number | null;
|
|
307
|
-
|
|
308
154
|
}
|
|
309
155
|
|
|
310
|
-
|
|
311
|
-
|
|
312
156
|
export interface Scene {
|
|
313
|
-
|
|
314
157
|
Maker: string;
|
|
315
|
-
|
|
316
158
|
Name: string;
|
|
317
|
-
|
|
318
159
|
Format: string;
|
|
319
|
-
|
|
320
160
|
Uri: string;
|
|
321
|
-
|
|
322
161
|
ConfigFile: string;
|
|
323
|
-
|
|
324
162
|
DbMaterialsId: string;
|
|
325
|
-
|
|
326
163
|
WallDatas: SceneWallData[];
|
|
327
|
-
|
|
328
164
|
}
|
|
329
165
|
|
|
330
|
-
|
|
331
|
-
|
|
332
166
|
export interface EnvJson {
|
|
333
|
-
|
|
334
167
|
version?: number | null;
|
|
335
168
|
|
|
336
|
-
|
|
337
|
-
|
|
338
169
|
services: {
|
|
339
|
-
|
|
340
170
|
baseUrl: string;
|
|
341
|
-
|
|
342
171
|
hydraBaseUrl?: string | null;
|
|
343
|
-
|
|
344
172
|
prefWebBaseUrl?: string | null;
|
|
345
|
-
|
|
346
173
|
kbApiBaseUrl?: string | null;
|
|
347
|
-
|
|
348
174
|
cloudPrefWebBaseUrl?: string | null;
|
|
349
|
-
|
|
350
175
|
kbUiBaseUrl?: string | null;
|
|
351
|
-
|
|
352
176
|
wallGeneratorBaseUrl?: string | null;
|
|
353
|
-
|
|
354
177
|
};
|
|
355
178
|
|
|
356
|
-
|
|
357
|
-
|
|
358
179
|
maker: {
|
|
359
|
-
|
|
360
180
|
name?: string | null;
|
|
361
|
-
|
|
362
181
|
prefix?: string | null;
|
|
363
|
-
|
|
364
182
|
};
|
|
365
183
|
|
|
366
|
-
|
|
367
|
-
|
|
368
184
|
ui: {
|
|
369
|
-
|
|
370
185
|
definitionName?: string | null;
|
|
371
|
-
|
|
372
186
|
optionListName?: string | null;
|
|
373
|
-
|
|
374
187
|
};
|
|
375
188
|
|
|
376
|
-
|
|
377
|
-
|
|
378
189
|
auth: {
|
|
379
|
-
|
|
380
190
|
username?: string | null;
|
|
381
|
-
|
|
382
191
|
password?: string | null;
|
|
383
|
-
|
|
384
192
|
};
|
|
385
193
|
|
|
386
|
-
|
|
387
|
-
|
|
388
194
|
images: {
|
|
389
|
-
|
|
390
195
|
model: {
|
|
391
|
-
|
|
392
196
|
onlyModelImage: boolean;
|
|
393
|
-
|
|
394
197
|
type2D: number;
|
|
395
|
-
|
|
396
198
|
type3D: number;
|
|
397
|
-
|
|
398
199
|
width: number;
|
|
399
|
-
|
|
400
200
|
height: number;
|
|
401
|
-
|
|
402
201
|
daysToLive: number;
|
|
403
|
-
|
|
404
202
|
};
|
|
405
|
-
|
|
406
203
|
scene: {
|
|
407
|
-
|
|
408
204
|
name: string;
|
|
409
|
-
|
|
410
205
|
format: string;
|
|
411
|
-
|
|
412
206
|
};
|
|
413
|
-
|
|
414
207
|
materials: {
|
|
415
|
-
|
|
416
208
|
daysToLive: number;
|
|
417
|
-
|
|
418
209
|
};
|
|
419
|
-
|
|
420
210
|
};
|
|
421
211
|
|
|
422
|
-
|
|
423
|
-
|
|
424
212
|
storage: {
|
|
425
|
-
|
|
426
213
|
gltf: {
|
|
427
|
-
|
|
428
214
|
dbName: string;
|
|
429
|
-
|
|
430
215
|
storeName: string;
|
|
431
|
-
|
|
432
216
|
};
|
|
433
|
-
|
|
434
217
|
};
|
|
435
218
|
|
|
436
|
-
|
|
437
|
-
|
|
438
219
|
runtime: {
|
|
439
|
-
|
|
440
220
|
logLevel: string;
|
|
441
|
-
|
|
442
221
|
};
|
|
443
222
|
|
|
444
|
-
|
|
445
|
-
|
|
446
223
|
flags?: Record<string, boolean> | null;
|
|
447
|
-
|
|
448
224
|
extra?: Record<string, any | null> | null;
|
|
449
|
-
|
|
450
225
|
}
|
|
451
226
|
|
|
452
|
-
|
|
453
|
-
|
|
454
227
|
export enum ViewMode {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
228
|
+
_0,
|
|
229
|
+
_1,
|
|
230
|
+
_2,
|
|
231
|
+
_3
|
|
458
232
|
}
|
|
459
233
|
|
|
460
|
-
|
|
461
|
-
|
|
462
234
|
export enum ImageType {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
235
|
+
_0,
|
|
236
|
+
_1,
|
|
237
|
+
_2,
|
|
238
|
+
_3,
|
|
239
|
+
_4,
|
|
240
|
+
_5,
|
|
241
|
+
_6,
|
|
242
|
+
_7,
|
|
243
|
+
_8,
|
|
244
|
+
_9,
|
|
245
|
+
_10,
|
|
246
|
+
_11,
|
|
247
|
+
_12,
|
|
248
|
+
_13,
|
|
249
|
+
_14,
|
|
250
|
+
_15,
|
|
251
|
+
_16,
|
|
252
|
+
_17
|
|
468
253
|
}
|
|
469
254
|
|
|
470
|
-
|
|
471
|
-
|
|
472
255
|
export interface CadRendererData {
|
|
473
|
-
|
|
474
256
|
viewMode: ViewMode;
|
|
475
|
-
|
|
476
257
|
cameraProjection?: number | null;
|
|
477
|
-
|
|
478
258
|
cameraPosition?: number | null;
|
|
479
|
-
|
|
480
259
|
predefinedView?: string | null;
|
|
481
|
-
|
|
482
260
|
backgroundColor?: number | null;
|
|
483
|
-
|
|
484
261
|
customProperties?: string | null;
|
|
485
|
-
|
|
486
262
|
texturesRootPath?: string | null;
|
|
487
|
-
|
|
488
263
|
base64Textures?: boolean | null;
|
|
489
|
-
|
|
490
264
|
}
|
|
491
265
|
|
|
492
|
-
|
|
493
|
-
|
|
494
266
|
export interface ModelImageConfig {
|
|
495
|
-
|
|
496
267
|
imageType: ImageType;
|
|
497
|
-
|
|
498
268
|
width: number;
|
|
499
|
-
|
|
500
269
|
height: number;
|
|
501
|
-
|
|
502
270
|
units: number;
|
|
503
|
-
|
|
504
271
|
usePrefOne: boolean;
|
|
505
|
-
|
|
506
272
|
languageId: number;
|
|
507
|
-
|
|
508
273
|
visualPropertiesXML?: string | null;
|
|
509
|
-
|
|
510
274
|
cadRenderer?: CadRendererData | null;
|
|
511
|
-
|
|
512
275
|
}
|
|
513
276
|
|
|
514
|
-
|
|
515
|
-
|
|
516
277
|
export interface JsInteropApiRaw {
|
|
517
|
-
|
|
518
278
|
InitializeFromEnvJson(json: string): void;
|
|
519
279
|
|
|
520
280
|
GetOptions<T = EnhancedOptionList>(): Promise<OperationResult<T> | string>;
|
|
521
|
-
|
|
522
281
|
UpdateOptions<T = EnhancedOptionList>(optionListJson: string, optionNameChanged: string): Promise<OperationResult<T> | string>;
|
|
523
|
-
|
|
524
282
|
CreateItem<T = CreateItemResponse>(modelCode: string, isPersistable: boolean): Promise<OperationResult<T> | string>;
|
|
525
|
-
|
|
526
283
|
GetDimensions<T = DimensionsResponse>(modelId: string): Promise<OperationResult<T> | string>;
|
|
527
|
-
|
|
528
284
|
SetDimensions<T = SetDimensionsResponse>(modelId: string, dimensions: SetDimensionValueRequest[]): Promise<OperationResult<T> | string>;
|
|
529
|
-
|
|
530
285
|
SetOptions<T = SetOptionsResponse>(modelId: string, options: SetOptionValueRequest[]): Promise<OperationResult<T> | string>;
|
|
531
|
-
|
|
532
286
|
GetModelOptions<T = OptionInfo[]>(modelId: string): Promise<OperationResult<T> | string>;
|
|
533
|
-
|
|
534
287
|
GetScene<T = Scene>(sceneName?: string, sceneFormat?: string, texturesRootPath?: string): Promise<OperationResult<T> | string>;
|
|
535
|
-
|
|
536
288
|
GetModelImage(modelId: string, modelImageConfigJson: string, sceneName?: string): Promise<OperationResult<string> | string>;
|
|
537
|
-
|
|
538
289
|
GetDefaultMaker(): string;
|
|
539
|
-
|
|
540
290
|
GetMakerPrefix(): string;
|
|
541
|
-
|
|
542
291
|
GetUiDefinitionName(): string;
|
|
543
|
-
|
|
544
292
|
GetOptionListName(): string;
|
|
545
|
-
|
|
546
293
|
GetBaseUrl(): string;
|
|
547
|
-
|
|
548
294
|
GetUsername(): string;
|
|
549
|
-
|
|
550
295
|
GetPassword(): string;
|
|
551
|
-
|
|
552
296
|
GetSceneName(): string;
|
|
553
|
-
|
|
554
297
|
GetSceneFormat(): string;
|
|
555
|
-
|
|
556
298
|
GetTextureRootPath(): string;
|
|
557
299
|
|
|
558
300
|
[key: string]: unknown;
|
|
559
|
-
|
|
560
301
|
}
|
|
561
302
|
|
|
562
|
-
|
|
563
|
-
|
|
564
303
|
export type RawOperation<T = JsonValue> = OperationResult<T> | string | null | undefined;
|
|
565
304
|
|
|
566
|
-
|
|
567
|
-
|
|
568
305
|
export function parse<T = JsonValue>(raw: RawOperation<T>): OperationResult<T>;
|
|
569
306
|
|
|
570
307
|
export function ensureOk<T = JsonValue>(raw: RawOperation<T>): T;
|
|
571
308
|
|
|
572
|
-
|
|
573
|
-
|
|
574
309
|
type AwaitedReturn<T> = T extends Promise<infer R> ? R : T;
|
|
575
|
-
|
|
576
310
|
type ExtractData<R> = AwaitedReturn<R> extends OperationResult<infer D> ? D : JsonValue;
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
type BoundMethod<F> =
|
|
581
|
-
|
|
582
|
-
F extends (...args: infer A) => Promise<infer R>
|
|
583
|
-
|
|
584
|
-
? (...args: A) => Promise<ExtractData<R>>
|
|
585
|
-
|
|
586
|
-
: F;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
//
|
|
311
|
+
type BoundMethod<F> = F extends (...args: infer A) => Promise<infer R> ? (...args: A) => Promise<ExtractData<R>> : F;
|
|
591
312
|
|
|
592
313
|
// BOUND API — PUBLIC API CORRECTLY TYPED
|
|
593
314
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
export type BoundApi<TRaw extends JsInteropApiRaw> = {
|
|
599
|
-
|
|
600
|
-
[K in keyof TRaw]: TRaw[K] extends Function
|
|
601
|
-
|
|
602
|
-
? BoundMethod<TRaw[K]>
|
|
603
|
-
|
|
604
|
-
: TRaw[K];
|
|
605
|
-
|
|
315
|
+
export type BoundApi<TRaw extends JsInteropApiRaw> = { [K in keyof TRaw]: TRaw[K] extends Function ? BoundMethod<TRaw[K]> : TRaw[K];
|
|
606
316
|
} & {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
317
|
InitializeFromEnvJson(config: EnvJson): void;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
optionList: OptionList,
|
|
617
|
-
|
|
618
|
-
changedOptionName: string
|
|
619
|
-
|
|
620
|
-
): Promise<EnhancedOptionList>;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
SetDimensions(
|
|
625
|
-
|
|
626
|
-
modelId: string,
|
|
627
|
-
|
|
628
|
-
updates: SetDimensionValueRequest[]
|
|
629
|
-
|
|
630
|
-
): Promise<SetDimensionsResponse>;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
SetOptions(
|
|
635
|
-
|
|
636
|
-
modelId: string,
|
|
637
|
-
|
|
638
|
-
updates: SetOptionValueRequest[]
|
|
639
|
-
|
|
640
|
-
): Promise<SetOptionsResponse>;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
GetModelImage(
|
|
645
|
-
|
|
646
|
-
modelId: string,
|
|
647
|
-
|
|
648
|
-
config: ModelImageConfig,
|
|
649
|
-
|
|
650
|
-
sceneName?: string
|
|
651
|
-
|
|
652
|
-
): Promise<string>;
|
|
653
|
-
|
|
318
|
+
UpdateOptions(optionList: OptionList, changedOptionName: string): Promise<EnhancedOptionList>;
|
|
319
|
+
SetDimensions(modelId: string, updates: SetDimensionValueRequest[]): Promise<SetDimensionsResponse>;
|
|
320
|
+
SetOptions(modelId: string, updates: SetOptionValueRequest[]): Promise<SetOptionsResponse>;
|
|
321
|
+
GetModelImage(modelId: string, config: ModelImageConfig, sceneName?: string): Promise<string>;
|
|
654
322
|
};
|
|
655
323
|
|
|
656
|
-
|
|
657
|
-
|
|
658
324
|
export function bindApi<TRaw extends JsInteropApiRaw>(rawApi: TRaw): BoundApi<TRaw>;
|
|
659
|
-
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"postinstall": "node scripts/postinstall.js"
|
|
4
4
|
},
|
|
5
5
|
"description": ".NET WebAssembly runtime package that centralizes logic for building product configurators, exposing a simple API for integration into ecommerce platforms.",
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.2",
|
|
7
7
|
"files": [
|
|
8
8
|
"_framework/**",
|
|
9
9
|
"**/*.js",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|