@softwear/latestcollectioncore 1.0.150 → 1.0.152
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.js +11 -4
- package/dist/consts.d.ts +10 -20
- package/dist/consts.js +10 -20
- package/package.json +1 -1
- package/src/articleStatus.ts +9 -2
- package/src/consts.ts +10 -20
package/dist/articleStatus.js
CHANGED
|
@@ -209,10 +209,17 @@ function aggregate({ beginTimestamp, endTimestamp, filterExpression, aggregation
|
|
|
209
209
|
subtotalsForOuterGrouper,
|
|
210
210
|
parentGroupTotals,
|
|
211
211
|
});
|
|
212
|
-
if (!beginStock)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
if (!beginStock) {
|
|
213
|
+
for (const t of transactions) {
|
|
214
|
+
if (t.type != '0')
|
|
215
|
+
compiledAggregator(t);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
for (const t of transactions) {
|
|
220
|
+
compiledAggregator(t);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
216
223
|
return rawAggregations;
|
|
217
224
|
}
|
|
218
225
|
function whichShardsToProcess(dateRange, granularity) {
|
package/dist/consts.d.ts
CHANGED
|
@@ -5,31 +5,21 @@ declare const SUBSCRIPTION_LIMITS: {
|
|
|
5
5
|
readonly maxDownloadBarcodes: 1000;
|
|
6
6
|
readonly maxCustomers: 0;
|
|
7
7
|
};
|
|
8
|
-
readonly
|
|
9
|
-
readonly maxBarcodes: 1000;
|
|
10
|
-
readonly maxDownloadBarcodes: 1000;
|
|
11
|
-
readonly maxCustomers: 100;
|
|
12
|
-
};
|
|
13
|
-
readonly small: {
|
|
14
|
-
readonly maxBarcodes: 50000;
|
|
15
|
-
readonly maxDownloadBarcodes: 2500;
|
|
16
|
-
readonly maxCustomers: 5000;
|
|
17
|
-
};
|
|
18
|
-
readonly medium: {
|
|
8
|
+
readonly basiq: {
|
|
19
9
|
readonly maxBarcodes: 100000;
|
|
20
|
-
readonly maxDownloadBarcodes: 5000;
|
|
21
|
-
readonly maxCustomers: 7500;
|
|
22
|
-
};
|
|
23
|
-
readonly large: {
|
|
24
|
-
readonly maxBarcodes: 250000;
|
|
25
10
|
readonly maxDownloadBarcodes: 10000;
|
|
26
|
-
readonly maxCustomers:
|
|
11
|
+
readonly maxCustomers: 1000;
|
|
27
12
|
};
|
|
28
|
-
readonly
|
|
29
|
-
readonly maxBarcodes:
|
|
30
|
-
readonly maxDownloadBarcodes:
|
|
13
|
+
readonly pro: {
|
|
14
|
+
readonly maxBarcodes: 200000;
|
|
15
|
+
readonly maxDownloadBarcodes: 20000;
|
|
31
16
|
readonly maxCustomers: 10000;
|
|
32
17
|
};
|
|
18
|
+
readonly ultimate: {
|
|
19
|
+
readonly maxBarcodes: 500000;
|
|
20
|
+
readonly maxDownloadBarcodes: 50000;
|
|
21
|
+
readonly maxCustomers: 100000;
|
|
22
|
+
};
|
|
33
23
|
};
|
|
34
24
|
declare const latestCollectionGLN: "8719332204995";
|
|
35
25
|
declare const DATA_PROVIDERS: "euretco,fashionunited,fashioncloud,linolux,barcodebot,triumph_it";
|
package/dist/consts.js
CHANGED
|
@@ -23,31 +23,21 @@ const SUBSCRIPTION_LIMITS = {
|
|
|
23
23
|
maxDownloadBarcodes: 1000,
|
|
24
24
|
maxCustomers: 0,
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
maxBarcodes: 1000,
|
|
28
|
-
maxDownloadBarcodes: 1000,
|
|
29
|
-
maxCustomers: 100,
|
|
30
|
-
},
|
|
31
|
-
small: {
|
|
32
|
-
maxBarcodes: 50000,
|
|
33
|
-
maxDownloadBarcodes: 2500,
|
|
34
|
-
maxCustomers: 5000,
|
|
35
|
-
},
|
|
36
|
-
medium: {
|
|
26
|
+
basiq: {
|
|
37
27
|
maxBarcodes: 100000,
|
|
38
|
-
maxDownloadBarcodes: 5000,
|
|
39
|
-
maxCustomers: 7500,
|
|
40
|
-
},
|
|
41
|
-
large: {
|
|
42
|
-
maxBarcodes: 250000,
|
|
43
28
|
maxDownloadBarcodes: 10000,
|
|
44
|
-
maxCustomers:
|
|
29
|
+
maxCustomers: 1000,
|
|
45
30
|
},
|
|
46
|
-
|
|
47
|
-
maxBarcodes:
|
|
48
|
-
maxDownloadBarcodes:
|
|
31
|
+
pro: {
|
|
32
|
+
maxBarcodes: 200000,
|
|
33
|
+
maxDownloadBarcodes: 20000,
|
|
49
34
|
maxCustomers: 10000,
|
|
50
35
|
},
|
|
36
|
+
ultimate: {
|
|
37
|
+
maxBarcodes: 500000,
|
|
38
|
+
maxDownloadBarcodes: 50000,
|
|
39
|
+
maxCustomers: 100000,
|
|
40
|
+
},
|
|
51
41
|
};
|
|
52
42
|
exports.SUBSCRIPTION_LIMITS = SUBSCRIPTION_LIMITS;
|
|
53
43
|
const latestCollectionGLN = '8719332204995';
|
package/package.json
CHANGED
package/src/articleStatus.ts
CHANGED
|
@@ -301,8 +301,15 @@ function aggregate({
|
|
|
301
301
|
subtotalsForOuterGrouper,
|
|
302
302
|
parentGroupTotals,
|
|
303
303
|
})
|
|
304
|
-
if (!beginStock)
|
|
305
|
-
|
|
304
|
+
if (!beginStock) {
|
|
305
|
+
for (const t of transactions) {
|
|
306
|
+
if (t.type != '0') compiledAggregator(t)
|
|
307
|
+
}
|
|
308
|
+
} else {
|
|
309
|
+
for (const t of transactions) {
|
|
310
|
+
compiledAggregator(t)
|
|
311
|
+
}
|
|
312
|
+
}
|
|
306
313
|
|
|
307
314
|
return rawAggregations
|
|
308
315
|
}
|
package/src/consts.ts
CHANGED
|
@@ -19,31 +19,21 @@ const SUBSCRIPTION_LIMITS = {
|
|
|
19
19
|
maxDownloadBarcodes: 1000,
|
|
20
20
|
maxCustomers: 0,
|
|
21
21
|
},
|
|
22
|
-
|
|
23
|
-
maxBarcodes: 1000,
|
|
24
|
-
maxDownloadBarcodes: 1000,
|
|
25
|
-
maxCustomers: 100,
|
|
26
|
-
},
|
|
27
|
-
small: {
|
|
28
|
-
maxBarcodes: 50000,
|
|
29
|
-
maxDownloadBarcodes: 2500,
|
|
30
|
-
maxCustomers: 5000,
|
|
31
|
-
},
|
|
32
|
-
medium: {
|
|
22
|
+
basiq: {
|
|
33
23
|
maxBarcodes: 100000,
|
|
34
|
-
maxDownloadBarcodes: 5000,
|
|
35
|
-
maxCustomers: 7500,
|
|
36
|
-
},
|
|
37
|
-
large: {
|
|
38
|
-
maxBarcodes: 250000,
|
|
39
24
|
maxDownloadBarcodes: 10000,
|
|
40
|
-
maxCustomers:
|
|
25
|
+
maxCustomers: 1000,
|
|
41
26
|
},
|
|
42
|
-
|
|
43
|
-
maxBarcodes:
|
|
44
|
-
maxDownloadBarcodes:
|
|
27
|
+
pro: {
|
|
28
|
+
maxBarcodes: 200000,
|
|
29
|
+
maxDownloadBarcodes: 20000,
|
|
45
30
|
maxCustomers: 10000,
|
|
46
31
|
},
|
|
32
|
+
ultimate: {
|
|
33
|
+
maxBarcodes: 500000,
|
|
34
|
+
maxDownloadBarcodes: 50000,
|
|
35
|
+
maxCustomers: 100000,
|
|
36
|
+
},
|
|
47
37
|
} as const
|
|
48
38
|
const latestCollectionGLN = '8719332204995' as const
|
|
49
39
|
const DATA_PROVIDERS = 'euretco,fashionunited,fashioncloud,linolux,barcodebot,triumph_it' as const
|