@milaboratories/milaboratories.monetization-test.model 1.0.22 → 1.0.24
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/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/bundle.js +58 -3
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.monetization-test.model@1.0.
|
|
3
|
+
> @milaboratories/milaboratories.monetization-test.model@1.0.24 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
|
|
4
4
|
> ts-builder build --target block-model && block-tools build-model
|
|
5
5
|
|
|
6
6
|
Building block-model project...
|
|
7
7
|
↳ rollup -c /configs/rollup.block-model.config.js
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist, dist[22m...[39m
|
|
10
|
-
[32mcreated [1mdist, dist[22m in [
|
|
10
|
+
[32mcreated [1mdist, dist[22m in [1m4.7s[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./src/index.ts[22m → [1mdist[22m...[39m
|
|
13
13
|
[1m[33m(!) Circular dependency[39m[22m
|
|
14
14
|
../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/components/PlDataTable.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
|
|
15
|
-
[32mcreated [1mdist[22m in [
|
|
15
|
+
[32mcreated [1mdist[22m in [1m4.2s[22m[39m
|
|
16
16
|
Build completed successfully
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.monetization-test.model@1.0.
|
|
3
|
+
> @milaboratories/milaboratories.monetization-test.model@1.0.24 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
|
|
4
4
|
> ts-builder types --target block-model
|
|
5
5
|
|
|
6
6
|
↳ tsc --noEmit --project ./tsconfig.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.monetization-test.model
|
|
2
2
|
|
|
3
|
+
## 1.0.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [31a1ac2]
|
|
8
|
+
- @platforma-sdk/model@1.44.14
|
|
9
|
+
|
|
10
|
+
## 1.0.23
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [fcdb249]
|
|
15
|
+
- @platforma-sdk/model@1.44.13
|
|
16
|
+
|
|
3
17
|
## 1.0.22
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -5600,9 +5600,11 @@
|
|
|
5600
5600
|
const RT_RESOURCE_MAP_PARTITIONED = PCD_PREFIX + 'Partitioned/ResourceMap';
|
|
5601
5601
|
const RT_JSON_PARTITIONED = PCD_PREFIX + 'JsonPartitioned';
|
|
5602
5602
|
const RT_BINARY_PARTITIONED = PCD_PREFIX + 'BinaryPartitioned';
|
|
5603
|
+
const RT_PARQUET_PARTITIONED = PCD_PREFIX + 'ParquetPartitioned';
|
|
5603
5604
|
const PCD_SUP_PREFIX = PCD_PREFIX + 'Partitioned/';
|
|
5604
5605
|
const RT_JSON_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'JsonPartitioned';
|
|
5605
5606
|
const RT_BINARY_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'BinaryPartitioned';
|
|
5607
|
+
const RT_PARQUET_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'ParquetPartitioned';
|
|
5606
5608
|
const removeIndexSuffix = (keyStr) => {
|
|
5607
5609
|
if (keyStr.endsWith('.index')) {
|
|
5608
5610
|
return { baseKey: keyStr.substring(0, keyStr.length - 6), type: 'index' };
|
|
@@ -5633,10 +5635,12 @@
|
|
|
5633
5635
|
break;
|
|
5634
5636
|
case RT_JSON_PARTITIONED:
|
|
5635
5637
|
case RT_BINARY_PARTITIONED:
|
|
5638
|
+
case RT_PARQUET_PARTITIONED:
|
|
5636
5639
|
keyLength = meta['partitionKeyLength'];
|
|
5637
5640
|
break;
|
|
5638
5641
|
case RT_BINARY_SUPER_PARTITIONED:
|
|
5639
5642
|
case RT_JSON_SUPER_PARTITIONED:
|
|
5643
|
+
case RT_PARQUET_SUPER_PARTITIONED:
|
|
5640
5644
|
keyLength = meta['superPartitionKeyLength'] + meta['partitionKeyLength'];
|
|
5641
5645
|
break;
|
|
5642
5646
|
}
|
|
@@ -5644,6 +5648,7 @@
|
|
|
5644
5648
|
case RT_RESOURCE_MAP:
|
|
5645
5649
|
case RT_JSON_PARTITIONED:
|
|
5646
5650
|
case RT_BINARY_PARTITIONED:
|
|
5651
|
+
case RT_PARQUET_PARTITIONED:
|
|
5647
5652
|
for (let keyStr of acc.listInputFields()) {
|
|
5648
5653
|
if (rt === RT_BINARY_PARTITIONED) {
|
|
5649
5654
|
keyStr = removeIndexSuffix(keyStr).baseKey;
|
|
@@ -5655,6 +5660,7 @@
|
|
|
5655
5660
|
case RT_RESOURCE_MAP_PARTITIONED:
|
|
5656
5661
|
case RT_BINARY_SUPER_PARTITIONED:
|
|
5657
5662
|
case RT_JSON_SUPER_PARTITIONED:
|
|
5663
|
+
case RT_PARQUET_SUPER_PARTITIONED:
|
|
5658
5664
|
for (const supKeyStr of acc.listInputFields()) {
|
|
5659
5665
|
const keyPrefix = [...JSON.parse(supKeyStr)];
|
|
5660
5666
|
const value = acc.resolve({ field: supKeyStr, assertFieldType: 'Input' });
|
|
@@ -5673,7 +5679,7 @@
|
|
|
5673
5679
|
return { data, keyLength };
|
|
5674
5680
|
}
|
|
5675
5681
|
function getUniquePartitionKeysForDataEntries(list) {
|
|
5676
|
-
if (list.type !== 'JsonPartitioned' && list.type !== 'BinaryPartitioned')
|
|
5682
|
+
if (list.type !== 'JsonPartitioned' && list.type !== 'BinaryPartitioned' && list.type !== 'ParquetPartitioned')
|
|
5677
5683
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${list.type}`);
|
|
5678
5684
|
const { parts, partitionKeyLength } = list;
|
|
5679
5685
|
const result = [];
|
|
@@ -5732,7 +5738,9 @@
|
|
|
5732
5738
|
const meta = acc.getDataAsJson();
|
|
5733
5739
|
// Prevent recursive super-partitioned resources
|
|
5734
5740
|
if (keyPrefix.length > 0
|
|
5735
|
-
&& (resourceType === RT_JSON_SUPER_PARTITIONED
|
|
5741
|
+
&& (resourceType === RT_JSON_SUPER_PARTITIONED
|
|
5742
|
+
|| resourceType === RT_BINARY_SUPER_PARTITIONED
|
|
5743
|
+
|| resourceType === RT_PARQUET_SUPER_PARTITIONED)) {
|
|
5736
5744
|
throw new Error(`Unexpected nested super-partitioned resource: ${resourceType}`);
|
|
5737
5745
|
}
|
|
5738
5746
|
switch (resourceType) {
|
|
@@ -5800,6 +5808,24 @@
|
|
|
5800
5808
|
parts,
|
|
5801
5809
|
};
|
|
5802
5810
|
}
|
|
5811
|
+
case RT_PARQUET_PARTITIONED: {
|
|
5812
|
+
if (typeof meta?.partitionKeyLength !== 'number') {
|
|
5813
|
+
throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);
|
|
5814
|
+
}
|
|
5815
|
+
const parts = [];
|
|
5816
|
+
for (const keyStr of acc.listInputFields()) {
|
|
5817
|
+
const value = acc.resolve({ field: keyStr, assertFieldType: 'Input' });
|
|
5818
|
+
if (value === undefined)
|
|
5819
|
+
return undefined;
|
|
5820
|
+
const key = [...keyPrefix, ...JSON.parse(keyStr)];
|
|
5821
|
+
parts.push({ key, value });
|
|
5822
|
+
}
|
|
5823
|
+
return {
|
|
5824
|
+
type: 'ParquetPartitioned',
|
|
5825
|
+
partitionKeyLength: meta.partitionKeyLength,
|
|
5826
|
+
parts,
|
|
5827
|
+
};
|
|
5828
|
+
}
|
|
5803
5829
|
case RT_JSON_SUPER_PARTITIONED: {
|
|
5804
5830
|
if (typeof meta?.superPartitionKeyLength !== 'number'
|
|
5805
5831
|
|| typeof meta?.partitionKeyLength !== 'number') {
|
|
@@ -5858,6 +5884,35 @@
|
|
|
5858
5884
|
parts,
|
|
5859
5885
|
};
|
|
5860
5886
|
}
|
|
5887
|
+
case RT_PARQUET_SUPER_PARTITIONED: {
|
|
5888
|
+
if (typeof meta?.superPartitionKeyLength !== 'number'
|
|
5889
|
+
|| typeof meta?.partitionKeyLength !== 'number') {
|
|
5890
|
+
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);
|
|
5891
|
+
}
|
|
5892
|
+
const totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;
|
|
5893
|
+
const parts = [];
|
|
5894
|
+
// Process all super partitions
|
|
5895
|
+
for (const supKeyStr of acc.listInputFields()) {
|
|
5896
|
+
const superPartition = acc.resolve({ field: supKeyStr, assertFieldType: 'Input' });
|
|
5897
|
+
if (superPartition === undefined)
|
|
5898
|
+
return undefined;
|
|
5899
|
+
// Validate inner type
|
|
5900
|
+
if (superPartition.resourceType.name !== RT_PARQUET_PARTITIONED) {
|
|
5901
|
+
throw new Error(`Expected ${RT_PARQUET_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);
|
|
5902
|
+
}
|
|
5903
|
+
const innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));
|
|
5904
|
+
if (innerResult === undefined)
|
|
5905
|
+
return undefined;
|
|
5906
|
+
if (innerResult.type !== 'ParquetPartitioned')
|
|
5907
|
+
throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);
|
|
5908
|
+
parts.push(...innerResult.parts);
|
|
5909
|
+
}
|
|
5910
|
+
return {
|
|
5911
|
+
type: 'ParquetPartitioned',
|
|
5912
|
+
partitionKeyLength: totalKeyLength,
|
|
5913
|
+
parts,
|
|
5914
|
+
};
|
|
5915
|
+
}
|
|
5861
5916
|
default:
|
|
5862
5917
|
throw new Error(`Unknown resource type: ${resourceType}`);
|
|
5863
5918
|
}
|
|
@@ -6805,7 +6860,7 @@
|
|
|
6805
6860
|
}
|
|
6806
6861
|
}
|
|
6807
6862
|
|
|
6808
|
-
var version = "1.44.
|
|
6863
|
+
var version = "1.44.14";
|
|
6809
6864
|
|
|
6810
6865
|
const PlatformaSDKVersion = version;
|
|
6811
6866
|
|