@preference-sl/prefconfigurator-wasm 3.1.1 → 3.2.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.
Files changed (35) hide show
  1. package/_framework/PrefConfigurator.Abstractions.kke1rwqjie.wasm +0 -0
  2. package/_framework/PrefConfigurator.Abstractions.kke1rwqjie.wasm.br +0 -0
  3. package/_framework/PrefConfigurator.Abstractions.kke1rwqjie.wasm.gz +0 -0
  4. package/_framework/PrefConfigurator.Application.px4ro8pd3j.wasm +0 -0
  5. package/_framework/PrefConfigurator.Application.px4ro8pd3j.wasm.br +0 -0
  6. package/_framework/PrefConfigurator.Application.px4ro8pd3j.wasm.gz +0 -0
  7. package/_framework/PrefConfigurator.Infrastructure.zycmw8egcv.wasm +0 -0
  8. package/_framework/PrefConfigurator.Infrastructure.zycmw8egcv.wasm.br +0 -0
  9. package/_framework/PrefConfigurator.Infrastructure.zycmw8egcv.wasm.gz +0 -0
  10. package/_framework/PrefConfigurator.Wasm.rs8jkajccc.wasm +0 -0
  11. package/_framework/PrefConfigurator.Wasm.rs8jkajccc.wasm.br +0 -0
  12. package/_framework/PrefConfigurator.Wasm.rs8jkajccc.wasm.gz +0 -0
  13. package/_framework/System.Text.Json.aqnisbm79x.wasm +0 -0
  14. package/_framework/System.Text.Json.aqnisbm79x.wasm.br +0 -0
  15. package/_framework/System.Text.Json.aqnisbm79x.wasm.gz +0 -0
  16. package/_framework/blazor.boot.json +11 -11
  17. package/_framework/blazor.boot.json.br +0 -0
  18. package/_framework/blazor.boot.json.gz +0 -0
  19. package/js/prefconfigurator-api.d.ts +33 -0
  20. package/package.json +1 -1
  21. package/_framework/PrefConfigurator.Abstractions.iswqz2jtsr.wasm +0 -0
  22. package/_framework/PrefConfigurator.Abstractions.iswqz2jtsr.wasm.br +0 -0
  23. package/_framework/PrefConfigurator.Abstractions.iswqz2jtsr.wasm.gz +0 -0
  24. package/_framework/PrefConfigurator.Application.ha2qbo4u47.wasm +0 -0
  25. package/_framework/PrefConfigurator.Application.ha2qbo4u47.wasm.br +0 -0
  26. package/_framework/PrefConfigurator.Application.ha2qbo4u47.wasm.gz +0 -0
  27. package/_framework/PrefConfigurator.Infrastructure.xsh1v9aq3u.wasm +0 -0
  28. package/_framework/PrefConfigurator.Infrastructure.xsh1v9aq3u.wasm.br +0 -0
  29. package/_framework/PrefConfigurator.Infrastructure.xsh1v9aq3u.wasm.gz +0 -0
  30. package/_framework/PrefConfigurator.Wasm.bw2ozuqaz1.wasm +0 -0
  31. package/_framework/PrefConfigurator.Wasm.bw2ozuqaz1.wasm.br +0 -0
  32. package/_framework/PrefConfigurator.Wasm.bw2ozuqaz1.wasm.gz +0 -0
  33. package/_framework/System.Text.Json.1fv29nr7dg.wasm +0 -0
  34. package/_framework/System.Text.Json.1fv29nr7dg.wasm.br +0 -0
  35. package/_framework/System.Text.Json.1fv29nr7dg.wasm.gz +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "mainAssemblyName": "PrefConfigurator.Wasm",
3
3
  "resources": {
4
- "hash": "sha256-PFYI2Sg4Ig/uan1SFlGyhRtvJLaeNoE3QxQYtXZGQfE=",
4
+ "hash": "sha256-xNKzJXgAaa/p9//LF46fJ6u9G4wMGscC809lUHP7gWo=",
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.iswqz2jtsr.wasm": "PrefConfigurator.Abstractions.wasm",
38
- "PrefConfigurator.Application.ha2qbo4u47.wasm": "PrefConfigurator.Application.wasm",
39
- "PrefConfigurator.Infrastructure.xsh1v9aq3u.wasm": "PrefConfigurator.Infrastructure.wasm",
40
- "PrefConfigurator.Wasm.bw2ozuqaz1.wasm": "PrefConfigurator.Wasm.wasm",
37
+ "PrefConfigurator.Abstractions.kke1rwqjie.wasm": "PrefConfigurator.Abstractions.wasm",
38
+ "PrefConfigurator.Application.px4ro8pd3j.wasm": "PrefConfigurator.Application.wasm",
39
+ "PrefConfigurator.Infrastructure.zycmw8egcv.wasm": "PrefConfigurator.Infrastructure.wasm",
40
+ "PrefConfigurator.Wasm.rs8jkajccc.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.1fv29nr7dg.wasm": "System.Text.Json.wasm",
75
+ "System.Text.Json.aqnisbm79x.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.iswqz2jtsr.wasm": "sha256-guNMFH0GJsRk2EFKwYclHGjhAA4rPryDWvJZD9P8AxE=",
138
- "PrefConfigurator.Application.ha2qbo4u47.wasm": "sha256-52acmIgtWKfRggvgtvLOcxKo6W03OJA/CSHoU3z9rAI=",
139
- "PrefConfigurator.Infrastructure.xsh1v9aq3u.wasm": "sha256-n4xAra/jyzjH62s0oJMxeAoL/XHSKFY6Rdk4xofWU3E=",
140
- "PrefConfigurator.Wasm.bw2ozuqaz1.wasm": "sha256-VYDBQIbmLIqoI9BW3qHdsMo4Qldb9d0Oz4lFhmZnESs=",
137
+ "PrefConfigurator.Abstractions.kke1rwqjie.wasm": "sha256-BNsJIOn8BwRSwYGNaIcrVl9RXqxKqbfB5oTjUiv+xXQ=",
138
+ "PrefConfigurator.Application.px4ro8pd3j.wasm": "sha256-Q6bvJ5oEsmWfgAdnGWomf06rI+cO3MacgEOOGAp4Uvk=",
139
+ "PrefConfigurator.Infrastructure.zycmw8egcv.wasm": "sha256-KwvIbhgef5w/2NaYWT0O5OxVmpGlHvSyAf+6npiVzGw=",
140
+ "PrefConfigurator.Wasm.rs8jkajccc.wasm": "sha256-tSAy2owmRVn5DrPUP17vRekaverxd7r2e+YfY0gIWjQ=",
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.1fv29nr7dg.wasm": "sha256-cx/rZC6WuZrfR1HPYZtjG3Du6ZDpwi8CG7q4/sCGu60=",
173
+ "System.Text.Json.aqnisbm79x.wasm": "sha256-ohDspmXdAGN9nw6e4q4W44xtS7AweDuLHxkB7rLl7c8=",
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
@@ -174,11 +174,13 @@ export interface EnvJson {
174
174
  cloudPrefWebBaseUrl?: string | null;
175
175
  kbUiBaseUrl?: string | null;
176
176
  wallGeneratorBaseUrl?: string | null;
177
+ usdBaseUrl?: string | null;
177
178
  };
178
179
 
179
180
  maker: {
180
181
  name?: string | null;
181
182
  prefix?: string | null;
183
+ environment?: string | null;
182
184
  };
183
185
 
184
186
  ui: {
@@ -207,6 +209,15 @@ export interface EnvJson {
207
209
  materials: {
208
210
  daysToLive: number;
209
211
  };
212
+ usd?: {
213
+ sceneName?: string | null;
214
+ generateWall?: boolean | null;
215
+ quality?: string[] | null;
216
+ resolution?: string[] | null;
217
+ cameras?: string[] | null;
218
+ imageFormat?: string | null;
219
+ variantSets?: UsdVariantSet[] | null;
220
+ };
210
221
  };
211
222
 
212
223
  storage: {
@@ -274,6 +285,26 @@ export interface ModelImageConfig {
274
285
  cadRenderer?: CadRendererData | null;
275
286
  }
276
287
 
288
+ export interface UsdVariantSet {
289
+ name: string;
290
+ selection: string;
291
+ }
292
+
293
+ export interface UsdImagesModel {
294
+ itemId: string;
295
+ generateWall?: boolean | null;
296
+ }
297
+
298
+ export interface UsdImagesRequest {
299
+ sceneName?: string | null;
300
+ models?: UsdImagesModel[] | null;
301
+ quality?: string[] | null;
302
+ resolution?: string[] | null;
303
+ cameras?: string[] | null;
304
+ imageFormat?: string | null;
305
+ variantSets?: UsdVariantSet[] | null;
306
+ }
307
+
277
308
  export interface JsInteropApiRaw {
278
309
  InitializeFromEnvJson(json: string): void;
279
310
 
@@ -286,6 +317,7 @@ export interface JsInteropApiRaw {
286
317
  GetModelOptions<T = OptionInfo[]>(modelId: string): Promise<OperationResult<T> | string>;
287
318
  GetScene<T = Scene>(sceneName?: string, sceneFormat?: string, texturesRootPath?: string): Promise<OperationResult<T> | string>;
288
319
  GetModelImage(modelId: string, modelImageConfigJson: string, sceneName?: string): Promise<OperationResult<string> | string>;
320
+ GetUsdImages<T = string[]>(usdImagesRequestJson: string): Promise<OperationResult<T> | string>;
289
321
  GetDefaultMaker(): string;
290
322
  GetMakerPrefix(): string;
291
323
  GetUiDefinitionName(): string;
@@ -319,6 +351,7 @@ export type BoundApi<TRaw extends JsInteropApiRaw> = { [K in keyof TRaw]: TRaw[K
319
351
  SetDimensions(modelId: string, updates: SetDimensionValueRequest[]): Promise<SetDimensionsResponse>;
320
352
  SetOptions(modelId: string, updates: SetOptionValueRequest[]): Promise<SetOptionsResponse>;
321
353
  GetModelImage(modelId: string, config: ModelImageConfig, sceneName?: string): Promise<string>;
354
+ GetUsdImages(request: UsdImagesRequest): Promise<string[]>;
322
355
  };
323
356
 
324
357
  export function bindApi<TRaw extends JsInteropApiRaw>(rawApi: TRaw): BoundApi<TRaw>;
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.1.1",
6
+ "version": "3.2.0",
7
7
  "files": [
8
8
  "_framework/**",
9
9
  "**/*.js",