@attlaz/client 1.136.0 → 1.137.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/dist/MarketPulse/Model/MarketPositionGroup.d.ts +0 -2
- package/dist/MarketPulse/Model/MarketPositionGroup.js +0 -3
- package/dist/MarketPulse/Model/MarketPositionSummary.d.ts +0 -6
- package/dist/MarketPulse/Model/MarketPositionSummary.js +0 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -13,8 +13,6 @@ export declare class MarketPositionGroup {
|
|
|
13
13
|
comparedCount: number;
|
|
14
14
|
/** Products with at least one accepted match: what can be compared at all. */
|
|
15
15
|
matchedCount: number;
|
|
16
|
-
/** @deprecated Counts by barcode alone, which is not how matching decides; use `matchedCount`. */
|
|
17
|
-
matchableCount: number;
|
|
18
16
|
/** Our price against the median competitor price, averaged; −20 is 20% cheaper. Null when none compared. */
|
|
19
17
|
avgPriceVsMedianPct: number | null;
|
|
20
18
|
bucketCounts: Record<PositionBucket, number>;
|
|
@@ -12,8 +12,6 @@ export class MarketPositionGroup {
|
|
|
12
12
|
comparedCount = 0;
|
|
13
13
|
/** Products with at least one accepted match: what can be compared at all. */
|
|
14
14
|
matchedCount = 0;
|
|
15
|
-
/** @deprecated Counts by barcode alone, which is not how matching decides; use `matchedCount`. */
|
|
16
|
-
matchableCount = 0;
|
|
17
15
|
/** Our price against the median competitor price, averaged; −20 is 20% cheaper. Null when none compared. */
|
|
18
16
|
avgPriceVsMedianPct = null;
|
|
19
17
|
bucketCounts = { very_sharp: 0, sharp: 0, market_rate: 0, expensive: 0, much_more_expensive: 0 };
|
|
@@ -23,7 +21,6 @@ export class MarketPositionGroup {
|
|
|
23
21
|
group.productCount = Number(raw.product_count ?? 0);
|
|
24
22
|
group.comparedCount = Number(raw.compared_count ?? 0);
|
|
25
23
|
group.matchedCount = Number(raw.matched_count ?? 0);
|
|
26
|
-
group.matchableCount = Number(raw.matchable_count ?? 0);
|
|
27
24
|
group.avgPriceVsMedianPct = raw.avg_price_vs_median_pct === null || raw.avg_price_vs_median_pct === undefined ? null : Number(raw.avg_price_vs_median_pct);
|
|
28
25
|
const buckets = raw.bucket_counts ?? {};
|
|
29
26
|
for (const bucket of POSITION_BUCKETS) {
|
|
@@ -22,12 +22,6 @@ export declare class MarketPositionSummary {
|
|
|
22
22
|
matchedCount: number;
|
|
23
23
|
/** Products with suggestions waiting in Match review and no accepted match yet. */
|
|
24
24
|
awaitingReviewCount: number;
|
|
25
|
-
/** @deprecated Counts by barcode alone, which is not how matching decides; use `matchedCount`. */
|
|
26
|
-
matchableCount: number;
|
|
27
|
-
/** The counted competitor prices, and how many of them a crawl saw within `recentDays`. */
|
|
28
|
-
competitorPriceCount: number;
|
|
29
|
-
recentCompetitorPriceCount: number;
|
|
30
|
-
recentDays: number;
|
|
31
25
|
priceHistoryFrom: Date | null;
|
|
32
26
|
static parse(raw: ApiRecord): MarketPositionSummary;
|
|
33
27
|
}
|
|
@@ -21,12 +21,6 @@ export class MarketPositionSummary {
|
|
|
21
21
|
matchedCount = 0;
|
|
22
22
|
/** Products with suggestions waiting in Match review and no accepted match yet. */
|
|
23
23
|
awaitingReviewCount = 0;
|
|
24
|
-
/** @deprecated Counts by barcode alone, which is not how matching decides; use `matchedCount`. */
|
|
25
|
-
matchableCount = 0;
|
|
26
|
-
/** The counted competitor prices, and how many of them a crawl saw within `recentDays`. */
|
|
27
|
-
competitorPriceCount = 0;
|
|
28
|
-
recentCompetitorPriceCount = 0;
|
|
29
|
-
recentDays = 0;
|
|
30
24
|
priceHistoryFrom = null;
|
|
31
25
|
static parse(raw) {
|
|
32
26
|
const summary = new MarketPositionSummary();
|
|
@@ -41,10 +35,6 @@ export class MarketPositionSummary {
|
|
|
41
35
|
summary.marketIndexByValue = raw.market_index_by_value === null || raw.market_index_by_value === undefined ? null : Number(raw.market_index_by_value);
|
|
42
36
|
summary.matchedCount = Number(raw.matched_count ?? 0);
|
|
43
37
|
summary.awaitingReviewCount = Number(raw.awaiting_review_count ?? 0);
|
|
44
|
-
summary.matchableCount = Number(raw.matchable_count ?? 0);
|
|
45
|
-
summary.competitorPriceCount = Number(raw.competitor_price_count ?? 0);
|
|
46
|
-
summary.recentCompetitorPriceCount = Number(raw.recent_competitor_price_count ?? 0);
|
|
47
|
-
summary.recentDays = Number(raw.recent_days ?? 0);
|
|
48
38
|
summary.priceHistoryFrom = raw.price_history_from ? new Date(raw.price_history_from) : null;
|
|
49
39
|
return summary;
|
|
50
40
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.136.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.136.0";
|