@ken-e/dataform-youtube 0.0.5 → 0.0.7

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.
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_annotation")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_annotations_a1_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_basic")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_basic_a2_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_cards")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_cards_a1_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -41,7 +41,7 @@ module.exports = (config) => {
41
41
  })
42
42
  .preOps((ctx) => {
43
43
  // Get pre_operations to find updated source partitions
44
- return `${helpers.staging_preops(ctx, config, "stg_ytc_combined")}`;
44
+ return `${helpers.staging_preops(ctx, config, "p_channel_combined_a2_")}`;
45
45
  })
46
46
  .query((ctx) =>
47
47
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_demographics")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_demographics_a1_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_device_os")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_device_os_a2_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -20,7 +20,7 @@ module.exports = (config) => {
20
20
  })
21
21
  .preOps((ctx) => {
22
22
  // Get pre_operations to find updated source partitions
23
- return `${helpers.staging_preops(ctx, config, "stg_ytc_end_screens")}`;
23
+ return `${helpers.staging_preops(ctx, config, "p_channel_end_screens_a1_")}`;
24
24
  })
25
25
  .query((ctx) =>
26
26
  config.sources
@@ -38,7 +38,7 @@ module.exports = (config) => {
38
38
  })
39
39
  .preOps((ctx) => {
40
40
  // Get pre_operations to find updated source partitions
41
- return `${helpers.staging_preops(ctx, config, "stg_ytc_list_basic")}`;
41
+ return `${helpers.staging_preops(ctx, config, "p_playlist_basic_a1_")}`;
42
42
  })
43
43
  .query((ctx) =>
44
44
  config.sources
@@ -38,7 +38,7 @@ module.exports = (config) => {
38
38
  })
39
39
  .preOps((ctx) => {
40
40
  // Get pre_operations to find updated source partitions
41
- return `${helpers.staging_preops(ctx, config, "stg_ytc_list_combined")}`;
41
+ return `${helpers.staging_preops(ctx, config, "p_playlist_combined_a1_")}`;
42
42
  })
43
43
  .query((ctx) =>
44
44
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_list_device_os")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_playlist_device_os_a1_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_list_playback")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_playlist_playback_location_a1_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -38,7 +38,7 @@ module.exports = (config) => {
38
38
  })
39
39
  .preOps((ctx) => {
40
40
  // Get pre_operations to find updated source partitions
41
- return `${helpers.staging_preops(ctx, config, "stg_ytc_list_province")}`;
41
+ return `${helpers.staging_preops(ctx, config, "p_playlist_province_a1_")}`;
42
42
  })
43
43
  .query((ctx) =>
44
44
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_list_traffic_source")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_playlist_traffic_source_a1_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_playback")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_playback_location_a2_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -38,7 +38,7 @@ module.exports = (config) => {
38
38
  })
39
39
  .preOps((ctx) => {
40
40
  // Get pre_operations to find updated source partitions
41
- return `${helpers.staging_preops(ctx, config, "stg_ytc_province")}`;
41
+ return `${helpers.staging_preops(ctx, config, "p_channel_province_a2_")}`;
42
42
  })
43
43
  .query((ctx) =>
44
44
  config.sources
@@ -36,7 +36,7 @@ module.exports = (config) => {
36
36
  })
37
37
  .preOps((ctx) => {
38
38
  // Get pre_operations to find updated source partitions
39
- return `${helpers.staging_preops(ctx, config, "stg_ytc_share_platform")}`;
39
+ return `${helpers.staging_preops(ctx, config, "p_channel_sharing_service_a1_")}`;
40
40
  })
41
41
  .query((ctx) =>
42
42
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_subtitles")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_subtitles_a2_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -37,7 +37,7 @@ module.exports = (config) => {
37
37
  })
38
38
  .preOps((ctx) => {
39
39
  // Get pre_operations to find updated source partitions
40
- return `${helpers.staging_preops(ctx, config, "stg_ytc_traffic_source")}`;
40
+ return `${helpers.staging_preops(ctx, config, "p_channel_traffic_source_a2_")}`;
41
41
  })
42
42
  .query((ctx) =>
43
43
  config.sources
@@ -14,7 +14,3 @@ module.exports = {
14
14
  staging_preops: BQ_DATA_TRANSFER_PARTITION_STAGING_PREOPS,
15
15
  output_preops: BQ_DATA_TRANSFER_PARTITION_OUTPUT_PREOPS,
16
16
  };
17
-
18
- function addTableSuffix(table) {
19
- return table + config.sourceTableSuffix;
20
- }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ken-e/dataform-youtube",
3
3
  "dependencies": {
4
4
  "@dataform/core": "3.0.9",
5
- "@ken-e/dataform-helpers": "0.0.6"
5
+ "@ken-e/dataform-helpers": "0.0.8"
6
6
  },
7
7
  "devDependencies": {
8
8
  "@eslint/js": "^9.18.0",
@@ -11,7 +11,7 @@
11
11
  "globals": "^15.14.0",
12
12
  "prettier": "3.4.2"
13
13
  },
14
- "version": "0.0.5",
14
+ "version": "0.0.7",
15
15
  "description": "A dataform package to process Youtube data from the BQ Data Transfer.",
16
16
  "main": "index.js",
17
17
  "scripts": {