@preference-sl/prefconfigurator-wasm 1.0.0-4 → 1.0.0-5
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.wffaytasyo.wasm +0 -0
- package/_framework/PrefConfigurator.Abstractions.wffaytasyo.wasm.br +0 -0
- package/_framework/PrefConfigurator.Abstractions.wffaytasyo.wasm.gz +0 -0
- package/_framework/{PrefConfigurator.Application.2l3sz005ow.wasm → PrefConfigurator.Application.8593d9vd77.wasm} +0 -0
- package/_framework/PrefConfigurator.Application.8593d9vd77.wasm.br +0 -0
- package/_framework/{PrefConfigurator.Application.2l3sz005ow.wasm.gz → PrefConfigurator.Application.8593d9vd77.wasm.gz} +0 -0
- package/_framework/{PrefConfigurator.Infrastructure.w4lhoo4sz7.wasm → PrefConfigurator.Infrastructure.wu0qr4ct95.wasm} +0 -0
- package/_framework/PrefConfigurator.Infrastructure.wu0qr4ct95.wasm.br +0 -0
- package/_framework/PrefConfigurator.Infrastructure.wu0qr4ct95.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Wasm.3uydayqffo.wasm +0 -0
- package/_framework/PrefConfigurator.Wasm.3uydayqffo.wasm.br +0 -0
- package/_framework/PrefConfigurator.Wasm.3uydayqffo.wasm.gz +0 -0
- package/_framework/{System.Text.Json.tz7oagugff.wasm → System.Text.Json.1fv29nr7dg.wasm} +0 -0
- package/_framework/System.Text.Json.1fv29nr7dg.wasm.br +0 -0
- package/_framework/System.Text.Json.1fv29nr7dg.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 +105 -57
- package/js/prefconfigurator-api.js +12 -12
- package/package.json +1 -1
- package/_framework/PrefConfigurator.Abstractions.1dbqitgpk6.wasm +0 -0
- package/_framework/PrefConfigurator.Abstractions.1dbqitgpk6.wasm.br +0 -0
- package/_framework/PrefConfigurator.Abstractions.1dbqitgpk6.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Application.2l3sz005ow.wasm.br +0 -0
- package/_framework/PrefConfigurator.Infrastructure.w4lhoo4sz7.wasm.br +0 -0
- package/_framework/PrefConfigurator.Infrastructure.w4lhoo4sz7.wasm.gz +0 -0
- package/_framework/PrefConfigurator.Wasm.zyoen4rs5s.wasm +0 -0
- package/_framework/PrefConfigurator.Wasm.zyoen4rs5s.wasm.br +0 -0
- package/_framework/PrefConfigurator.Wasm.zyoen4rs5s.wasm.gz +0 -0
- package/_framework/System.Text.Json.tz7oagugff.wasm.br +0 -0
- package/_framework/System.Text.Json.tz7oagugff.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
|
|
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-xuTDr8CQnrnul/gV4LXFZiKOYqKNaKhwnhO7KvxC0Lw=",
|
|
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.wffaytasyo.wasm": "PrefConfigurator.Abstractions.wasm",
|
|
38
|
+
"PrefConfigurator.Application.8593d9vd77.wasm": "PrefConfigurator.Application.wasm",
|
|
39
|
+
"PrefConfigurator.Infrastructure.wu0qr4ct95.wasm": "PrefConfigurator.Infrastructure.wasm",
|
|
40
|
+
"PrefConfigurator.Wasm.3uydayqffo.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",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"System.Runtime.Serialization.Primitives.izguwlyy4t.wasm": "System.Runtime.Serialization.Primitives.wasm",
|
|
73
73
|
"System.Security.Cryptography.81im1fetsl.wasm": "System.Security.Cryptography.wasm",
|
|
74
74
|
"System.Text.Encodings.Web.xu4vg14f8l.wasm": "System.Text.Encodings.Web.wasm",
|
|
75
|
-
"System.Text.Json.
|
|
75
|
+
"System.Text.Json.1fv29nr7dg.wasm": "System.Text.Json.wasm",
|
|
76
76
|
"System.Text.RegularExpressions.zuttf5ml29.wasm": "System.Text.RegularExpressions.wasm",
|
|
77
77
|
"System.t8xd33e5pv.wasm": "System.wasm",
|
|
78
78
|
"System.Xml.Linq.mglmvb8jto.wasm": "System.Xml.Linq.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.wffaytasyo.wasm": "sha256-rAIL2Ey73ChlW5GasYdbpAxd9gvcescqUJ/HOh7uzF8=",
|
|
138
|
+
"PrefConfigurator.Application.8593d9vd77.wasm": "sha256-9I3hH8I/l8nMxYYhhTBfzrTdItHxER1aIbVJrHypPZM=",
|
|
139
|
+
"PrefConfigurator.Infrastructure.wu0qr4ct95.wasm": "sha256-2BEwezuyGw4xFgaNoF5wBWfVR4ga4FJDNHucwNdZD5I=",
|
|
140
|
+
"PrefConfigurator.Wasm.3uydayqffo.wasm": "sha256-m2PQvfApOpADhTLSWiBZDQDV+7u7oxz4ZBIw4RpSgdM=",
|
|
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=",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"System.Runtime.Serialization.Primitives.izguwlyy4t.wasm": "sha256-fuUFR4Vt8MMaX81++Ei8Ua1fCByU26lFuUUv/lCFHaM=",
|
|
171
171
|
"System.Security.Cryptography.81im1fetsl.wasm": "sha256-zGHZkz4c8Pkej/bNfeL9IhQprXbpeExSoKDsoU9kEhY=",
|
|
172
172
|
"System.Text.Encodings.Web.xu4vg14f8l.wasm": "sha256-Wd7opd7hUMB8t8f03fJ8OFx8Zy90mxhXdPoogyxlLeg=",
|
|
173
|
-
"System.Text.Json.
|
|
173
|
+
"System.Text.Json.1fv29nr7dg.wasm": "sha256-cx/rZC6WuZrfR1HPYZtjG3Du6ZDpwi8CG7q4/sCGu60=",
|
|
174
174
|
"System.Text.RegularExpressions.zuttf5ml29.wasm": "sha256-lYA4CMe6z32NqKw3KqMhKpVh7n3RxMKMDwvcuQ44foA=",
|
|
175
175
|
"System.t8xd33e5pv.wasm": "sha256-jdi196RMQvJqOZVnwRK7DGSWJifChhgNljcOjGeHSUY=",
|
|
176
176
|
"System.Xml.Linq.mglmvb8jto.wasm": "sha256-JuEj9dfBl39fqnbzXBS6GXngjNI7jj2ZEY6HaVcdW4U="
|
|
Binary file
|
|
Binary file
|
|
@@ -1,100 +1,139 @@
|
|
|
1
1
|
export interface ErrorInfo {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
Code?: string;
|
|
3
|
+
Message?: string;
|
|
4
|
+
Source?: string;
|
|
5
|
+
HttpStatus?: number;
|
|
6
|
+
RequestId?: string;
|
|
7
|
+
CorrelationId?: string;
|
|
8
|
+
TraceParent?: string;
|
|
9
|
+
Detail?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface OperationResult<T> {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
Ok: boolean;
|
|
14
|
+
Data?: T | null;
|
|
15
|
+
Error?: ErrorInfo | null;
|
|
16
|
+
CallId?: string | null;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface CreateItemResponse {
|
|
20
|
-
|
|
20
|
+
ItemId: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type JsonPrimitive = string | number | boolean | null;
|
|
24
24
|
export type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue };
|
|
25
25
|
|
|
26
26
|
export interface OptionValueInfo {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
ValueString?: string | null;
|
|
28
|
+
ValueNumeric?: number | null;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface OptionInfo {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
Maker?: string | null;
|
|
33
|
+
Code?: string | null;
|
|
34
|
+
Type?: string | null;
|
|
35
|
+
Description?: string | null;
|
|
36
|
+
ValueString?: string | null;
|
|
37
|
+
ValueNumeric?: number | null;
|
|
38
|
+
Hidden: boolean;
|
|
39
|
+
Values?: OptionValueInfo[] | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export interface OptionList {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
Name?: string | null;
|
|
44
|
+
Childs?: OptionList[] | null;
|
|
45
|
+
Options?: OptionInfo[] | null;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export interface OptionLocation {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
Order: number;
|
|
50
|
+
Area: string;
|
|
51
|
+
Tab: string;
|
|
52
|
+
Section: string;
|
|
53
|
+
Widget: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export interface EnhancedOptionInfo extends OptionInfo {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
PartitionPart?: string | null;
|
|
58
|
+
Locations?: OptionLocation[] | null;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export interface EnhancedOptionList {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
Name?: string | null;
|
|
63
|
+
Options?: EnhancedOptionInfo[] | null;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export interface DimensionsResponse {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
TotalL?: number | null;
|
|
68
|
+
TotalA?: number | null;
|
|
69
|
+
Values?: Record<string, number>;
|
|
70
|
+
ValuesText?: Record<string, string>;
|
|
71
|
+
LLabels?: string[];
|
|
72
|
+
ALabels?: string[];
|
|
73
|
+
LCount?: number;
|
|
74
|
+
ACount?: number;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface SetDimensionsResponse {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
RawResults?: Array<boolean | null>;
|
|
79
|
+
Succeeded?: boolean | null;
|
|
80
|
+
Status?: string | null;
|
|
81
|
+
Message?: string | null;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface SetOptionValueResponse {
|
|
85
|
-
succeeded
|
|
85
|
+
succeeded: boolean;
|
|
86
86
|
status?: string | null;
|
|
87
87
|
message?: string | null;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export interface SceneTexCoord {
|
|
91
|
+
Scale: number[];
|
|
92
|
+
Offset: number[];
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface ScenePlane {
|
|
96
|
+
Normal: number[];
|
|
97
|
+
Point: number[];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface SceneFloor {
|
|
101
|
+
Plane: ScenePlane;
|
|
102
|
+
TexCoord: SceneTexCoord;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface SceneMaterial {
|
|
106
|
+
Name: string;
|
|
107
|
+
BaseColor: string;
|
|
108
|
+
Roughness: string;
|
|
109
|
+
Normal: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface SceneWallData {
|
|
113
|
+
OuterWallTexCoord: SceneTexCoord;
|
|
114
|
+
InnerWallTexCoord: SceneTexCoord;
|
|
115
|
+
OuterFloor: SceneFloor;
|
|
116
|
+
InnerFloor: SceneFloor;
|
|
117
|
+
WallPolyline: string;
|
|
118
|
+
MinWallThickness: number;
|
|
119
|
+
Translation: number[];
|
|
120
|
+
FloorPath: string;
|
|
121
|
+
UpAxis: number;
|
|
122
|
+
DepthAxis: number;
|
|
123
|
+
Materials: SceneMaterial[];
|
|
124
|
+
InnerHeight?: number | null;
|
|
125
|
+
OuterHeight?: number | null;
|
|
126
|
+
ExtraInnerWallDepth?: number | null;
|
|
127
|
+
}
|
|
128
|
+
|
|
90
129
|
export interface Scene {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
130
|
+
Maker: string;
|
|
131
|
+
Name: string;
|
|
132
|
+
Format: string;
|
|
133
|
+
Uri: string;
|
|
134
|
+
ConfigFile: string;
|
|
135
|
+
DbMaterialsId: string;
|
|
136
|
+
WallDatas: SceneWallData[];
|
|
98
137
|
}
|
|
99
138
|
|
|
100
139
|
export interface JsInteropApiRaw {
|
|
@@ -106,9 +145,18 @@ export interface JsInteropApiRaw {
|
|
|
106
145
|
SetDimensions<T = SetDimensionsResponse>(modelId: string, dimensionName: string, dimensionValue: number): Promise<OperationResult<T> | string>;
|
|
107
146
|
SetOption<T = SetOptionValueResponse>(modelId: string, optionName: string, optionValue: string): Promise<OperationResult<T> | string>;
|
|
108
147
|
GetModelOptions<T = OptionInfo[]>(modelId: string): Promise<OperationResult<T> | string>;
|
|
109
|
-
GetScene<T = Scene>(): Promise<OperationResult<T> | string>;
|
|
110
|
-
GetModelAssetDataUrlAsync(modelId: string, modelImageConfigJson: string): Promise<OperationResult<string> | string>;
|
|
148
|
+
GetScene<T = Scene>(sceneName?: string, sceneFormat?: string, texturesRootPath?: string): Promise<OperationResult<T> | string>;
|
|
111
149
|
GetModelImage(modelId: string, modelImageConfigJson: string, sceneName?: string): Promise<OperationResult<string> | string>;
|
|
150
|
+
GetDefaultMaker(): string;
|
|
151
|
+
GetMakerPrefix(): string;
|
|
152
|
+
GetUiDefinitionName(): string;
|
|
153
|
+
GetOptionListName(): string;
|
|
154
|
+
GetBaseUrl(): string;
|
|
155
|
+
GetUsername(): string;
|
|
156
|
+
GetPassword(): string;
|
|
157
|
+
GetSceneName(): string;
|
|
158
|
+
GetSceneFormat(): string;
|
|
159
|
+
GetTextureRootPath(): string;
|
|
112
160
|
[key: string]: unknown;
|
|
113
161
|
}
|
|
114
162
|
|
|
@@ -16,19 +16,19 @@ export function parse(raw) {
|
|
|
16
16
|
|
|
17
17
|
export function ensureOk(raw) {
|
|
18
18
|
const res = parse(raw);
|
|
19
|
-
const ok = res?.
|
|
20
|
-
if (ok) return res?.
|
|
19
|
+
const ok = res?.Ok;
|
|
20
|
+
if (ok) return res?.Data ?? null;
|
|
21
21
|
|
|
22
|
-
const errObj = res?.
|
|
23
|
-
const err = new Error(errObj?.
|
|
24
|
-
err.code = errObj?.
|
|
25
|
-
err.source = errObj?.
|
|
26
|
-
err.httpStatus = errObj?.
|
|
27
|
-
err.requestId = errObj?.
|
|
28
|
-
err.correlationId = errObj?.
|
|
29
|
-
err.traceParent = errObj?.
|
|
30
|
-
err.detail = errObj?.
|
|
31
|
-
err.callId = res?.
|
|
22
|
+
const errObj = res?.Error;
|
|
23
|
+
const err = new Error(errObj?.Message ?? "Operation failed.");
|
|
24
|
+
err.code = errObj?.Code;
|
|
25
|
+
err.source = errObj?.Source;
|
|
26
|
+
err.httpStatus = errObj?.HttpStatus;
|
|
27
|
+
err.requestId = errObj?.RequestId;
|
|
28
|
+
err.correlationId = errObj?.CorrelationId;
|
|
29
|
+
err.traceParent = errObj?.TraceParent;
|
|
30
|
+
err.detail = errObj?.Detail;
|
|
31
|
+
err.callId = res?.CallId;
|
|
32
32
|
err.result = res;
|
|
33
33
|
throw err;
|
|
34
34
|
}
|
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": "1.0.0-
|
|
6
|
+
"version": "1.0.0-5",
|
|
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
|