@softwear/latestcollectioncore 1.0.121 → 1.0.123
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/articleStatus.d.ts +1 -1
- package/dist/articleStatus.js +2 -2
- package/dist/buildPropertyMappingFn.js +3 -3
- package/metabrandsetting.json +1 -0
- package/package.json +1 -1
- package/src/articleStatus.ts +3 -2
- package/src/buildPropertyMappingFn.ts +3 -3
- package/test/applyPropertyMapping.spec.js +16 -8
package/dist/articleStatus.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare function whichShardsToProcess(dateRange: any, granularity: 'year' | 'mon
|
|
|
14
14
|
*/
|
|
15
15
|
declare function postAgg(v: any, timeFrame: number): void;
|
|
16
16
|
declare function getTimeGrouper(groupers: string[]): TimeGranularityE | undefined;
|
|
17
|
-
declare function runQuery(timeframe: HrTimeframeI, rawAggregations: RaGI, beginStock: boolean, transactions: TransactionI[], selectedGroupsValues: string[], skus: SkuI[], warehouses: any[], customers: any[], subtotalsForOuterGrouper: boolean, computedFilter: string, parentGroupTotals: boolean): RaGI;
|
|
17
|
+
declare function runQuery(timeframe: HrTimeframeI, rawAggregations: RaGI, beginStock: boolean, transactions: TransactionI[], selectedGroupsValues: string[], skus: SkuI[], warehouses: any[], customers: any[], subtotalsForOuterGrouper: boolean, computedFilter: string, parentGroupTotals: boolean, maxRows?: number): RaGI;
|
|
18
18
|
declare const _default: {
|
|
19
19
|
getDateRangeFromPicker: (inputDates: string[]) => HrTimeframeI;
|
|
20
20
|
getDateRangeFromDatePair: (inputDates: string[]) => HrTimeframeI;
|
package/dist/articleStatus.js
CHANGED
|
@@ -284,7 +284,7 @@ function getTimeGrouper(groupers) {
|
|
|
284
284
|
return types_1.TimeGranularityE.DAY;
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
|
-
function runQuery(timeframe, rawAggregations, beginStock, transactions, selectedGroupsValues, skus, warehouses, customers, subtotalsForOuterGrouper, computedFilter, parentGroupTotals) {
|
|
287
|
+
function runQuery(timeframe, rawAggregations, beginStock, transactions, selectedGroupsValues, skus, warehouses, customers, subtotalsForOuterGrouper, computedFilter, parentGroupTotals, maxRows = 500000) {
|
|
288
288
|
const timeGrouper = getTimeGrouper(selectedGroupsValues);
|
|
289
289
|
const aggregationExpression = selectedGroupsValues
|
|
290
290
|
.map((g) => {
|
|
@@ -315,7 +315,7 @@ function runQuery(timeframe, rawAggregations, beginStock, transactions, selected
|
|
|
315
315
|
customer: customers,
|
|
316
316
|
},
|
|
317
317
|
rawAggregations: rawAggregations,
|
|
318
|
-
maxRows:
|
|
318
|
+
maxRows: maxRows,
|
|
319
319
|
totals: timeGrouper === undefined,
|
|
320
320
|
subtotalsForOuterGrouper,
|
|
321
321
|
parentGroupTotals,
|
|
@@ -10,15 +10,15 @@ const mappingPairs = [
|
|
|
10
10
|
{ category: 'ColorCode', from: 'colorCodeSupplier', to: 'colorFamily', mustMatch: true },
|
|
11
11
|
{ category: 'ColorDescription', from: 'colorSupplier', to: 'colorFamily' },
|
|
12
12
|
{ category: 'ProductGroup', from: 'articleGroupSupplier', to: 'articleGroup' },
|
|
13
|
-
{ category: 'BTEGroup', from: 'articleGroupSupplier', to: 'BTEGROUP', mustMatch: true },
|
|
14
|
-
{ category: 'DTBGroup', from: 'articleGroupSupplier', to: 'DTBGROUP', mustMatch: true },
|
|
15
|
-
{ category: 'FedasGroup', from: 'articleGroupSupplier', to: 'FEDASGROUP', mustMatch: true },
|
|
16
13
|
{ category: 'Collection', from: 'collectionSupplier', to: 'collection' },
|
|
17
14
|
{ category: 'CustomSize', from: 'sizeSupplier', to: '_customsize' },
|
|
18
15
|
{ category: 'Size', from: 'sizeSupplier', to: 'size' },
|
|
19
16
|
{ category: 'Gender', from: 'articleGroupSupplier', to: '_gender', mustMatch: true },
|
|
20
17
|
{ category: 'GenderSupplier', from: 'genderSupplier', to: '_gender', mustMatch: true },
|
|
21
18
|
{ category: 'ERM', from: ['_gender', 'articleGroup'], to: '_erm-code', mustMatch: true, defaultMappingSource: 'ermmapping' },
|
|
19
|
+
{ category: 'BTEGroup', from: ['_gender', 'articleGroup'], to: 'BTEGROUP', mustMatch: true, defaultMappingSource: 'btemappingout' },
|
|
20
|
+
{ category: 'DTBGroup', from: ['_gender', 'articleGroup'], to: 'DTBGROUP', mustMatch: true, defaultMappingSource: 'dtbmappingout' },
|
|
21
|
+
{ category: 'FedasGroup', from: ['_gender', 'articleGroup'], to: 'FEDASGROUP', mustMatch: true, defaultMappingSource: 'fedasmappingout' },
|
|
22
22
|
];
|
|
23
23
|
const evaluateFromExpr = function (sku, from) {
|
|
24
24
|
if (typeof from == 'string')
|