@variantic/player 0.0.15 → 0.0.16
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.
|
@@ -29,6 +29,10 @@ export type TViewerApi = {
|
|
|
29
29
|
* @param value value to replace price with
|
|
30
30
|
*/
|
|
31
31
|
setPrice(value: number | string): void;
|
|
32
|
+
/**
|
|
33
|
+
* If enabled, returns price components calculated based on the selected pricing rule. Otherwise, returns null.
|
|
34
|
+
*/
|
|
35
|
+
getPricing(): TPricingData | null;
|
|
32
36
|
/** @ignore */
|
|
33
37
|
getScene(): any;
|
|
34
38
|
/** @ignore */
|
|
@@ -56,7 +60,7 @@ export type TViewerApi = {
|
|
|
56
60
|
/**
|
|
57
61
|
* Returns a list of materials matching the given filter ID, optionally grouped by the specified query ID.
|
|
58
62
|
*/
|
|
59
|
-
getMaterialsList({ filterId, groupingQueryId, page, perPage, }: TGetMaterialsListParams): Promise<TMaterialsList>;
|
|
63
|
+
getMaterialsList({ filterId, groupingQueryId, page, perPage, searchPhrase, searchProps, }: TGetMaterialsListParams): Promise<TMaterialsList>;
|
|
60
64
|
getMaterialsList(filterId: number, groupingQueryId?: number, page?: number, perPage?: number): Promise<TMaterialsList>;
|
|
61
65
|
/**
|
|
62
66
|
* Returns the current layout settings configuration.
|
|
@@ -190,7 +194,11 @@ export type TGetMaterialsListParams = {
|
|
|
190
194
|
groupingQueryId?: number;
|
|
191
195
|
page?: number;
|
|
192
196
|
perPage?: number;
|
|
197
|
+
searchPhrase?: string;
|
|
198
|
+
searchProps?: TMaterialSearchProp[];
|
|
199
|
+
langCode?: string;
|
|
193
200
|
};
|
|
201
|
+
export type TMaterialSearchProp = 'name' | 'code';
|
|
194
202
|
export type TGetConfigurationParams = {
|
|
195
203
|
/**
|
|
196
204
|
* Specifies whether to include hidden items
|
|
@@ -422,4 +430,14 @@ export type TCategory = {
|
|
|
422
430
|
export type TConfiguration = {
|
|
423
431
|
categories: TCategory[];
|
|
424
432
|
};
|
|
433
|
+
export type TPricingSection = {
|
|
434
|
+
name: string;
|
|
435
|
+
table: string[][];
|
|
436
|
+
price: number;
|
|
437
|
+
priceColumnIndex: number;
|
|
438
|
+
};
|
|
439
|
+
export type TPricingData = {
|
|
440
|
+
finalPrice: number;
|
|
441
|
+
sections: TPricingSection[];
|
|
442
|
+
};
|
|
425
443
|
export {};
|