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