@flipstream/sdk 0.0.0-stage → 0.4.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/LICENSE +202 -0
  3. package/README.md +280 -2
  4. package/dist/api/index.d.ts +1 -0
  5. package/dist/api/index.js +2 -0
  6. package/dist/api/index.js.map +1 -0
  7. package/dist/auth/discovery.d.ts +21 -0
  8. package/dist/auth/discovery.js +68 -0
  9. package/dist/auth/discovery.js.map +1 -0
  10. package/dist/auth/index.d.ts +5 -0
  11. package/dist/auth/index.js +5 -0
  12. package/dist/auth/index.js.map +1 -0
  13. package/dist/auth/pkce.d.ts +10 -0
  14. package/dist/auth/pkce.js +25 -0
  15. package/dist/auth/pkce.js.map +1 -0
  16. package/dist/auth/signIn.d.ts +97 -0
  17. package/dist/auth/signIn.js +133 -0
  18. package/dist/auth/signIn.js.map +1 -0
  19. package/dist/auth/transport.d.ts +18 -0
  20. package/dist/auth/transport.js +26 -0
  21. package/dist/auth/transport.js.map +1 -0
  22. package/dist/core/body.d.ts +14 -0
  23. package/dist/core/body.js +69 -0
  24. package/dist/core/body.js.map +1 -0
  25. package/dist/core/call.d.ts +17 -0
  26. package/dist/core/call.js +116 -0
  27. package/dist/core/call.js.map +1 -0
  28. package/dist/core/fetch.d.ts +35 -0
  29. package/dist/core/fetch.js +105 -0
  30. package/dist/core/fetch.js.map +1 -0
  31. package/dist/core/read.d.ts +17 -0
  32. package/dist/core/read.js +92 -0
  33. package/dist/core/read.js.map +1 -0
  34. package/dist/core/result.d.ts +94 -0
  35. package/dist/core/result.js +40 -0
  36. package/dist/core/result.js.map +1 -0
  37. package/dist/core/retry.d.ts +40 -0
  38. package/dist/core/retry.js +41 -0
  39. package/dist/core/retry.js.map +1 -0
  40. package/dist/core/transport.d.ts +62 -0
  41. package/dist/core/transport.js +9 -0
  42. package/dist/core/transport.js.map +1 -0
  43. package/dist/flipstream.d.ts +45 -0
  44. package/dist/flipstream.js +26 -0
  45. package/dist/flipstream.js.map +1 -0
  46. package/dist/index.d.ts +11 -0
  47. package/dist/index.js +8 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/node/headless.d.ts +20 -0
  50. package/dist/node/headless.js +28 -0
  51. package/dist/node/headless.js.map +1 -0
  52. package/dist/node/index.d.ts +4 -0
  53. package/dist/node/index.js +5 -0
  54. package/dist/node/index.js.map +1 -0
  55. package/dist/node/loopback.d.ts +58 -0
  56. package/dist/node/loopback.js +126 -0
  57. package/dist/node/loopback.js.map +1 -0
  58. package/dist/query/catalog.d.ts +15 -0
  59. package/dist/query/catalog.js +41 -0
  60. package/dist/query/catalog.js.map +1 -0
  61. package/dist/query/errors.d.ts +8 -0
  62. package/dist/query/errors.js +16 -0
  63. package/dist/query/errors.js.map +1 -0
  64. package/dist/query/query.d.ts +27 -0
  65. package/dist/query/query.js +35 -0
  66. package/dist/query/query.js.map +1 -0
  67. package/dist/recorded/query-planner/catalog-google_search_console.json +140 -0
  68. package/dist/recorded/query-planner/catalog.json +1234 -0
  69. package/dist/spec/query-planner/index.d.ts +1 -0
  70. package/dist/spec/query-planner/index.js +3 -0
  71. package/dist/spec/query-planner/index.js.map +1 -0
  72. package/dist/spec/query-planner/types.gen.d.ts +300 -0
  73. package/dist/spec/query-planner/types.gen.js +3 -0
  74. package/dist/spec/query-planner/types.gen.js.map +1 -0
  75. package/dist/spec/query-planner/zod.gen.d.ts +325 -0
  76. package/dist/spec/query-planner/zod.gen.js +137 -0
  77. package/dist/spec/query-planner/zod.gen.js.map +1 -0
  78. package/package.json +90 -4
@@ -0,0 +1,1234 @@
1
+ {
2
+ "catalogVersion": "0.7.0",
3
+ "generatedAt": "2026-10-12T12:00:00+00:00",
4
+ "modelContractVersion": "0.7.0",
5
+ "homepage": "https://flipstream.io",
6
+ "license": "CC-BY-4.0",
7
+ "defaultSource": "google_search_console",
8
+ "sources": [
9
+ {
10
+ "name": "google-ads",
11
+ "label": "Google Ads",
12
+ "description": "Google Ads performance across search, shopping, video, display and Performance Max: impressions, clicks, cost, conversions.",
13
+ "dimensions": [
14
+ {
15
+ "name": "report_date",
16
+ "label": "Date",
17
+ "description": "Reporting date",
18
+ "format": {
19
+ "type": "date",
20
+ "format": "YYYY-MM-DD"
21
+ }
22
+ },
23
+ {
24
+ "name": "hour_of_day",
25
+ "label": "Hour of Day",
26
+ "description": "Hour of day (0-23, campaign grain)",
27
+ "format": {
28
+ "type": "number",
29
+ "decimals": 0
30
+ }
31
+ },
32
+ {
33
+ "name": "campaign_name",
34
+ "label": "Campaign",
35
+ "description": "Campaign name",
36
+ "format": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ {
41
+ "name": "campaign_type_name",
42
+ "label": "Campaign Type",
43
+ "description": "Campaign type",
44
+ "format": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ {
49
+ "name": "ad_group_name",
50
+ "label": "Ad Group",
51
+ "description": "Ad group name",
52
+ "format": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "name": "keyword_text",
58
+ "label": "Keyword",
59
+ "description": "Search keyword",
60
+ "format": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ {
65
+ "name": "match_type_name",
66
+ "label": "Match Type",
67
+ "description": "Keyword match type",
68
+ "format": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ {
73
+ "name": "search_term",
74
+ "label": "Search Term",
75
+ "description": "The actual user search term",
76
+ "format": {
77
+ "type": "string"
78
+ }
79
+ },
80
+ {
81
+ "name": "matched_keyword_text",
82
+ "label": "Matched Keyword",
83
+ "description": "The keyword the search term matched",
84
+ "format": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ {
89
+ "name": "device_name",
90
+ "label": "Device",
91
+ "description": "Device (mobile, desktop, tablet, connected_tv, other)",
92
+ "format": {
93
+ "type": "string"
94
+ }
95
+ },
96
+ {
97
+ "name": "product_item_id",
98
+ "label": "Product ID",
99
+ "description": "Merchant product item id",
100
+ "format": {
101
+ "type": "string"
102
+ }
103
+ },
104
+ {
105
+ "name": "product_title",
106
+ "label": "Product Title",
107
+ "description": "Product title",
108
+ "format": {
109
+ "type": "string"
110
+ }
111
+ },
112
+ {
113
+ "name": "product_brand",
114
+ "label": "Product Brand",
115
+ "description": "Product brand",
116
+ "format": {
117
+ "type": "string"
118
+ }
119
+ },
120
+ {
121
+ "name": "product_type_l1",
122
+ "label": "Product Type",
123
+ "description": "Product type (level 1)",
124
+ "format": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ {
129
+ "name": "product_category_l1",
130
+ "label": "Product Category",
131
+ "description": "Product category (level 1)",
132
+ "format": {
133
+ "type": "string"
134
+ }
135
+ },
136
+ {
137
+ "name": "video_id",
138
+ "label": "Video ID",
139
+ "description": "Video id",
140
+ "format": {
141
+ "type": "string"
142
+ }
143
+ },
144
+ {
145
+ "name": "video_title",
146
+ "label": "Video",
147
+ "description": "Video title",
148
+ "format": {
149
+ "type": "string"
150
+ }
151
+ },
152
+ {
153
+ "name": "placement",
154
+ "label": "Placement",
155
+ "description": "Display/video placement",
156
+ "format": {
157
+ "type": "string"
158
+ }
159
+ },
160
+ {
161
+ "name": "placement_type_name",
162
+ "label": "Placement Type",
163
+ "description": "Placement type",
164
+ "format": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ {
169
+ "name": "asset_group_name",
170
+ "label": "Asset Group",
171
+ "description": "Performance Max asset group",
172
+ "format": {
173
+ "type": "string"
174
+ }
175
+ }
176
+ ],
177
+ "metrics": [
178
+ {
179
+ "name": "impressions",
180
+ "label": "Impressions",
181
+ "description": "Total impressions",
182
+ "format": {
183
+ "type": "number",
184
+ "decimals": 0,
185
+ "thousandSeparator": true
186
+ }
187
+ },
188
+ {
189
+ "name": "clicks",
190
+ "label": "Clicks",
191
+ "description": "Total clicks",
192
+ "format": {
193
+ "type": "number",
194
+ "decimals": 0,
195
+ "thousandSeparator": true
196
+ }
197
+ },
198
+ {
199
+ "name": "cost",
200
+ "label": "Cost",
201
+ "description": "Total ad spend",
202
+ "format": {
203
+ "type": "currency",
204
+ "decimals": 2
205
+ }
206
+ },
207
+ {
208
+ "name": "conversions",
209
+ "label": "Conversions",
210
+ "description": "Total conversions",
211
+ "format": {
212
+ "type": "number",
213
+ "decimals": 1,
214
+ "thousandSeparator": true
215
+ }
216
+ },
217
+ {
218
+ "name": "conversion_value",
219
+ "label": "Conversion Value",
220
+ "description": "Total conversion value",
221
+ "format": {
222
+ "type": "currency",
223
+ "decimals": 2
224
+ }
225
+ },
226
+ {
227
+ "name": "video_views",
228
+ "label": "Video Views",
229
+ "description": "Video views",
230
+ "format": {
231
+ "type": "number",
232
+ "decimals": 0,
233
+ "thousandSeparator": true
234
+ }
235
+ },
236
+ {
237
+ "name": "orders",
238
+ "label": "Orders",
239
+ "description": "Shopping orders",
240
+ "format": {
241
+ "type": "number",
242
+ "decimals": 0,
243
+ "thousandSeparator": true
244
+ }
245
+ },
246
+ {
247
+ "name": "revenue",
248
+ "label": "Revenue",
249
+ "description": "Shopping revenue",
250
+ "format": {
251
+ "type": "currency",
252
+ "decimals": 2
253
+ }
254
+ },
255
+ {
256
+ "name": "units_sold",
257
+ "label": "Units Sold",
258
+ "description": "Units sold",
259
+ "format": {
260
+ "type": "number",
261
+ "decimals": 0,
262
+ "thousandSeparator": true
263
+ }
264
+ },
265
+ {
266
+ "name": "cogs",
267
+ "label": "COGS",
268
+ "description": "Cost of goods sold",
269
+ "format": {
270
+ "type": "currency",
271
+ "decimals": 2
272
+ }
273
+ },
274
+ {
275
+ "name": "gross_profit",
276
+ "label": "Gross Profit",
277
+ "description": "Gross profit",
278
+ "format": {
279
+ "type": "currency",
280
+ "decimals": 2
281
+ }
282
+ },
283
+ {
284
+ "name": "video_view_rate",
285
+ "label": "Video View Rate",
286
+ "description": "Video views / impressions (aggregated)",
287
+ "format": {
288
+ "type": "percentage",
289
+ "decimals": 2
290
+ }
291
+ },
292
+ {
293
+ "name": "avg_cpv",
294
+ "label": "Avg. CPV",
295
+ "description": "Cost / video views (aggregated)",
296
+ "format": {
297
+ "type": "currency",
298
+ "decimals": 2
299
+ },
300
+ "lowerIsBetter": true
301
+ },
302
+ {
303
+ "name": "ctr",
304
+ "label": "CTR",
305
+ "description": "Click-through rate from aggregated clicks/impressions",
306
+ "format": {
307
+ "type": "percentage",
308
+ "decimals": 2
309
+ }
310
+ },
311
+ {
312
+ "name": "conversion_rate",
313
+ "label": "Conversion Rate",
314
+ "description": "Conversions / clicks (aggregated)",
315
+ "format": {
316
+ "type": "percentage",
317
+ "decimals": 2
318
+ }
319
+ },
320
+ {
321
+ "name": "avg_cpc",
322
+ "label": "Avg. CPC",
323
+ "description": "Cost / clicks (aggregated)",
324
+ "format": {
325
+ "type": "currency",
326
+ "decimals": 2
327
+ },
328
+ "lowerIsBetter": true
329
+ },
330
+ {
331
+ "name": "roas",
332
+ "label": "ROAS",
333
+ "description": "Conversion value / cost (aggregated)",
334
+ "format": {
335
+ "type": "number",
336
+ "decimals": 2
337
+ }
338
+ },
339
+ {
340
+ "name": "cost_per_conversion",
341
+ "label": "Cost / Conversion",
342
+ "description": "Cost per conversion (aggregated)",
343
+ "format": {
344
+ "type": "currency",
345
+ "decimals": 2
346
+ },
347
+ "lowerIsBetter": true
348
+ },
349
+ {
350
+ "name": "gross_profit_margin",
351
+ "label": "Gross Profit Margin",
352
+ "description": "Gross profit / revenue (aggregated)",
353
+ "format": {
354
+ "type": "percentage",
355
+ "decimals": 2
356
+ }
357
+ },
358
+ {
359
+ "name": "avg_order_value",
360
+ "label": "Avg. Order Value",
361
+ "description": "Revenue / orders (aggregated)",
362
+ "format": {
363
+ "type": "currency",
364
+ "decimals": 2
365
+ }
366
+ }
367
+ ],
368
+ "customDimensions": {
369
+ "supported": true,
370
+ "max": 100,
371
+ "resolve": "/custom-dimensions?connection_id={connectionId}"
372
+ }
373
+ },
374
+ {
375
+ "name": "ga4",
376
+ "label": "Google Analytics 4",
377
+ "description": "Web analytics: sessions, engagement, pages, events, ecommerce.",
378
+ "dimensions": [
379
+ {
380
+ "name": "session_date",
381
+ "label": "Date",
382
+ "description": "Date of the session",
383
+ "format": {
384
+ "type": "date",
385
+ "format": "YYYY-MM-DD"
386
+ }
387
+ },
388
+ {
389
+ "name": "session_default_channel_group",
390
+ "label": "Channel Group",
391
+ "description": "Default channel grouping (Organic Search, Direct, ...)",
392
+ "format": {
393
+ "type": "string"
394
+ }
395
+ },
396
+ {
397
+ "name": "device_category",
398
+ "label": "Device",
399
+ "description": "Device category (desktop, mobile, tablet)",
400
+ "format": {
401
+ "type": "string"
402
+ }
403
+ },
404
+ {
405
+ "name": "country",
406
+ "label": "Country",
407
+ "description": "Country of the session",
408
+ "format": {
409
+ "type": "string"
410
+ }
411
+ },
412
+ {
413
+ "name": "new_vs_returning",
414
+ "label": "New vs Returning",
415
+ "description": "New or returning visitor",
416
+ "format": {
417
+ "type": "string"
418
+ }
419
+ },
420
+ {
421
+ "name": "session_source_medium",
422
+ "label": "Source / Medium",
423
+ "description": "Session source and medium combined",
424
+ "format": {
425
+ "type": "string"
426
+ }
427
+ },
428
+ {
429
+ "name": "session_source",
430
+ "label": "Source",
431
+ "description": "Session source",
432
+ "format": {
433
+ "type": "string"
434
+ }
435
+ },
436
+ {
437
+ "name": "session_medium",
438
+ "label": "Medium",
439
+ "description": "Session medium",
440
+ "format": {
441
+ "type": "string"
442
+ }
443
+ },
444
+ {
445
+ "name": "session_campaign_name",
446
+ "label": "Campaign",
447
+ "description": "Session campaign name",
448
+ "format": {
449
+ "type": "string"
450
+ }
451
+ },
452
+ {
453
+ "name": "landing_page_plus_query_string",
454
+ "label": "Landing Page",
455
+ "description": "Landing page including query string",
456
+ "format": {
457
+ "type": "string"
458
+ }
459
+ },
460
+ {
461
+ "name": "page_path",
462
+ "label": "Page Path",
463
+ "description": "Page path",
464
+ "format": {
465
+ "type": "string"
466
+ }
467
+ },
468
+ {
469
+ "name": "page_title",
470
+ "label": "Page Title",
471
+ "description": "Page title",
472
+ "format": {
473
+ "type": "string"
474
+ }
475
+ },
476
+ {
477
+ "name": "event_name",
478
+ "label": "Event Name",
479
+ "description": "GA4 event name",
480
+ "format": {
481
+ "type": "string"
482
+ }
483
+ },
484
+ {
485
+ "name": "is_conversion_event",
486
+ "label": "Is Conversion Event",
487
+ "description": "Whether the event is marked as a conversion",
488
+ "format": {
489
+ "type": "string"
490
+ }
491
+ },
492
+ {
493
+ "name": "item_name",
494
+ "label": "Product Name",
495
+ "description": "Product (item) name",
496
+ "format": {
497
+ "type": "string"
498
+ }
499
+ },
500
+ {
501
+ "name": "item_id",
502
+ "label": "Product ID",
503
+ "description": "Product (item) id",
504
+ "format": {
505
+ "type": "string"
506
+ }
507
+ },
508
+ {
509
+ "name": "item_category",
510
+ "label": "Product Category",
511
+ "description": "Product category",
512
+ "format": {
513
+ "type": "string"
514
+ }
515
+ },
516
+ {
517
+ "name": "item_brand",
518
+ "label": "Product Brand",
519
+ "description": "Product brand",
520
+ "format": {
521
+ "type": "string"
522
+ }
523
+ },
524
+ {
525
+ "name": "funnel_step",
526
+ "label": "Funnel Step",
527
+ "description": "Shopping funnel step",
528
+ "format": {
529
+ "type": "string"
530
+ }
531
+ },
532
+ {
533
+ "name": "step_order",
534
+ "label": "Funnel Step Order",
535
+ "description": "Ordinal position of the funnel step",
536
+ "format": {
537
+ "type": "number",
538
+ "decimals": 0
539
+ }
540
+ }
541
+ ],
542
+ "metrics": [
543
+ {
544
+ "name": "sessions",
545
+ "label": "Sessions",
546
+ "description": "Total sessions",
547
+ "format": {
548
+ "type": "number",
549
+ "decimals": 0,
550
+ "thousandSeparator": true
551
+ }
552
+ },
553
+ {
554
+ "name": "engaged_sessions",
555
+ "label": "Engaged Sessions",
556
+ "description": "Sessions with engagement",
557
+ "format": {
558
+ "type": "number",
559
+ "decimals": 0,
560
+ "thousandSeparator": true
561
+ }
562
+ },
563
+ {
564
+ "name": "screen_page_views",
565
+ "label": "Page Views",
566
+ "description": "Total page views",
567
+ "format": {
568
+ "type": "number",
569
+ "decimals": 0,
570
+ "thousandSeparator": true
571
+ }
572
+ },
573
+ {
574
+ "name": "event_count",
575
+ "label": "Events",
576
+ "description": "Total events",
577
+ "format": {
578
+ "type": "number",
579
+ "decimals": 0,
580
+ "thousandSeparator": true
581
+ }
582
+ },
583
+ {
584
+ "name": "conversions",
585
+ "label": "Conversions",
586
+ "description": "Total conversions",
587
+ "format": {
588
+ "type": "number",
589
+ "decimals": 0,
590
+ "thousandSeparator": true
591
+ }
592
+ },
593
+ {
594
+ "name": "total_revenue",
595
+ "label": "Revenue",
596
+ "description": "Total revenue",
597
+ "format": {
598
+ "type": "currency",
599
+ "decimals": 2
600
+ }
601
+ },
602
+ {
603
+ "name": "engagement_rate",
604
+ "label": "Engagement Rate",
605
+ "description": "Engaged sessions / sessions (aggregated)",
606
+ "format": {
607
+ "type": "percentage",
608
+ "decimals": 2
609
+ }
610
+ },
611
+ {
612
+ "name": "conversion_rate",
613
+ "label": "Conversion Rate",
614
+ "description": "Conversions / sessions (aggregated)",
615
+ "format": {
616
+ "type": "percentage",
617
+ "decimals": 2
618
+ }
619
+ },
620
+ {
621
+ "name": "pages_per_session",
622
+ "label": "Pages / Session",
623
+ "description": "Page views per session (aggregated)",
624
+ "format": {
625
+ "type": "number",
626
+ "decimals": 2
627
+ }
628
+ },
629
+ {
630
+ "name": "events_per_session",
631
+ "label": "Events / Session",
632
+ "description": "Events per session (aggregated)",
633
+ "format": {
634
+ "type": "number",
635
+ "decimals": 2
636
+ }
637
+ },
638
+ {
639
+ "name": "revenue_per_session",
640
+ "label": "Revenue / Session",
641
+ "description": "Revenue per session (aggregated)",
642
+ "format": {
643
+ "type": "currency",
644
+ "decimals": 2
645
+ }
646
+ },
647
+ {
648
+ "name": "average_session_duration",
649
+ "label": "Avg. Session Duration",
650
+ "description": "Session-weighted average session duration in seconds",
651
+ "format": {
652
+ "type": "number",
653
+ "decimals": 1
654
+ }
655
+ },
656
+ {
657
+ "name": "transactions",
658
+ "label": "Transactions",
659
+ "description": "Ecommerce transactions",
660
+ "format": {
661
+ "type": "number",
662
+ "decimals": 0,
663
+ "thousandSeparator": true
664
+ }
665
+ },
666
+ {
667
+ "name": "purchase_revenue",
668
+ "label": "Purchase Revenue",
669
+ "description": "Ecommerce purchase revenue",
670
+ "format": {
671
+ "type": "currency",
672
+ "decimals": 2
673
+ }
674
+ },
675
+ {
676
+ "name": "ecommerce_purchases",
677
+ "label": "Purchases",
678
+ "description": "Ecommerce purchase events",
679
+ "format": {
680
+ "type": "number",
681
+ "decimals": 0,
682
+ "thousandSeparator": true
683
+ }
684
+ },
685
+ {
686
+ "name": "items_purchased",
687
+ "label": "Items Purchased",
688
+ "description": "Items purchased",
689
+ "format": {
690
+ "type": "number",
691
+ "decimals": 0,
692
+ "thousandSeparator": true
693
+ }
694
+ },
695
+ {
696
+ "name": "add_to_carts",
697
+ "label": "Add-to-Carts",
698
+ "description": "Add-to-cart events",
699
+ "format": {
700
+ "type": "number",
701
+ "decimals": 0,
702
+ "thousandSeparator": true
703
+ }
704
+ },
705
+ {
706
+ "name": "average_order_value",
707
+ "label": "Avg. Order Value",
708
+ "description": "Purchase revenue / transactions (aggregated)",
709
+ "format": {
710
+ "type": "currency",
711
+ "decimals": 2
712
+ }
713
+ },
714
+ {
715
+ "name": "items_viewed",
716
+ "label": "Items Viewed",
717
+ "description": "Product views",
718
+ "format": {
719
+ "type": "number",
720
+ "decimals": 0,
721
+ "thousandSeparator": true
722
+ }
723
+ },
724
+ {
725
+ "name": "items_added_to_cart",
726
+ "label": "Items Added to Cart",
727
+ "description": "Items added to cart",
728
+ "format": {
729
+ "type": "number",
730
+ "decimals": 0,
731
+ "thousandSeparator": true
732
+ }
733
+ },
734
+ {
735
+ "name": "item_revenue",
736
+ "label": "Item Revenue",
737
+ "description": "Product revenue",
738
+ "format": {
739
+ "type": "currency",
740
+ "decimals": 2
741
+ }
742
+ },
743
+ {
744
+ "name": "add_to_cart_rate",
745
+ "label": "Add-to-Cart Rate",
746
+ "description": "Items added to cart / items viewed (aggregated)",
747
+ "format": {
748
+ "type": "percentage",
749
+ "decimals": 2
750
+ }
751
+ },
752
+ {
753
+ "name": "purchase_rate",
754
+ "label": "Purchase Rate",
755
+ "description": "Items purchased / items viewed (aggregated)",
756
+ "format": {
757
+ "type": "percentage",
758
+ "decimals": 2
759
+ }
760
+ },
761
+ {
762
+ "name": "step_count",
763
+ "label": "Funnel Step Count",
764
+ "description": "Events at the funnel step",
765
+ "format": {
766
+ "type": "number",
767
+ "decimals": 0,
768
+ "thousandSeparator": true
769
+ }
770
+ },
771
+ {
772
+ "name": "events_per_view",
773
+ "label": "Events / View",
774
+ "description": "Events per page view (aggregated)",
775
+ "format": {
776
+ "type": "number",
777
+ "decimals": 2
778
+ }
779
+ },
780
+ {
781
+ "name": "revenue_per_view",
782
+ "label": "Revenue / View",
783
+ "description": "Revenue per page view (aggregated)",
784
+ "format": {
785
+ "type": "currency",
786
+ "decimals": 2
787
+ }
788
+ }
789
+ ]
790
+ },
791
+ {
792
+ "name": "google_search_console",
793
+ "label": "Google Search Console",
794
+ "description": "Search performance: clicks, impressions, CTR, position.",
795
+ "dimensions": [
796
+ {
797
+ "name": "search_date",
798
+ "label": "Date",
799
+ "description": "Date of search performance",
800
+ "format": {
801
+ "type": "date",
802
+ "format": "YYYY-MM-DD"
803
+ }
804
+ },
805
+ {
806
+ "name": "search_type",
807
+ "label": "Search Type",
808
+ "description": "Type of search (web, image, video)",
809
+ "format": {
810
+ "type": "string"
811
+ }
812
+ },
813
+ {
814
+ "name": "device",
815
+ "label": "Device",
816
+ "description": "Device type (desktop, mobile, tablet)",
817
+ "format": {
818
+ "type": "string"
819
+ }
820
+ },
821
+ {
822
+ "name": "country",
823
+ "label": "Country",
824
+ "description": "Country code (ISO 3-letter format)",
825
+ "format": {
826
+ "type": "string"
827
+ }
828
+ },
829
+ {
830
+ "name": "query",
831
+ "label": "Query",
832
+ "description": "Search query text",
833
+ "format": {
834
+ "type": "string"
835
+ }
836
+ },
837
+ {
838
+ "name": "page",
839
+ "label": "Page",
840
+ "description": "Landing page URL",
841
+ "format": {
842
+ "type": "string"
843
+ }
844
+ },
845
+ {
846
+ "name": "position_bucket",
847
+ "label": "Position Range",
848
+ "description": "Position range (1-3, 4-6, etc.)",
849
+ "format": {
850
+ "type": "string"
851
+ }
852
+ },
853
+ {
854
+ "name": "position_bucket_index",
855
+ "label": "Position Range Index",
856
+ "description": "Numeric sort index for position bucket",
857
+ "format": {
858
+ "type": "number",
859
+ "decimals": 0
860
+ }
861
+ }
862
+ ],
863
+ "metrics": [
864
+ {
865
+ "name": "clicks",
866
+ "label": "Clicks",
867
+ "description": "Total number of clicks",
868
+ "format": {
869
+ "type": "number",
870
+ "decimals": 0,
871
+ "thousandSeparator": true
872
+ }
873
+ },
874
+ {
875
+ "name": "impressions",
876
+ "label": "Impressions",
877
+ "description": "Total number of impressions",
878
+ "format": {
879
+ "type": "number",
880
+ "decimals": 0,
881
+ "thousandSeparator": true
882
+ }
883
+ },
884
+ {
885
+ "name": "avg_position",
886
+ "label": "Average Position",
887
+ "description": "Average search result position (lower is better)",
888
+ "format": {
889
+ "type": "number",
890
+ "decimals": 1
891
+ },
892
+ "lowerIsBetter": true
893
+ },
894
+ {
895
+ "name": "ctr",
896
+ "label": "CTR",
897
+ "description": "Click-through rate from aggregated clicks/impressions",
898
+ "format": {
899
+ "type": "percentage",
900
+ "decimals": 2
901
+ }
902
+ },
903
+ {
904
+ "name": "page_count",
905
+ "label": "Page Count",
906
+ "description": "Unique landing pages",
907
+ "format": {
908
+ "type": "number",
909
+ "decimals": 0,
910
+ "thousandSeparator": true
911
+ }
912
+ },
913
+ {
914
+ "name": "keyword_count",
915
+ "label": "Keyword Count",
916
+ "description": "Unique search queries",
917
+ "format": {
918
+ "type": "number",
919
+ "decimals": 0,
920
+ "thousandSeparator": true
921
+ }
922
+ }
923
+ ],
924
+ "customDimensions": {
925
+ "supported": true,
926
+ "max": 100,
927
+ "resolve": "/custom-dimensions?connection_id={connectionId}"
928
+ }
929
+ },
930
+ {
931
+ "name": "meta-ads",
932
+ "label": "Meta Ads",
933
+ "description": "Meta advertising performance: spend, impressions, clicks, breakdowns.",
934
+ "dimensions": [
935
+ {
936
+ "name": "report_date",
937
+ "label": "Date",
938
+ "description": "Reporting date",
939
+ "format": {
940
+ "type": "date",
941
+ "format": "YYYY-MM-DD"
942
+ }
943
+ },
944
+ {
945
+ "name": "month",
946
+ "label": "Month",
947
+ "description": "Calendar month (YYYY-MM)",
948
+ "format": {
949
+ "type": "string"
950
+ }
951
+ },
952
+ {
953
+ "name": "week_number",
954
+ "label": "Week",
955
+ "description": "ISO week number",
956
+ "format": {
957
+ "type": "number",
958
+ "decimals": 0
959
+ }
960
+ },
961
+ {
962
+ "name": "iso_year",
963
+ "label": "ISO Year",
964
+ "description": "ISO year (accompanies week number)",
965
+ "format": {
966
+ "type": "number",
967
+ "decimals": 0
968
+ }
969
+ },
970
+ {
971
+ "name": "campaign_name",
972
+ "label": "Campaign",
973
+ "description": "Campaign name",
974
+ "format": {
975
+ "type": "string"
976
+ }
977
+ },
978
+ {
979
+ "name": "publisher_platform",
980
+ "label": "Platform",
981
+ "description": "Publisher platform (facebook, instagram, ...)",
982
+ "format": {
983
+ "type": "string"
984
+ }
985
+ },
986
+ {
987
+ "name": "impression_device",
988
+ "label": "Device",
989
+ "description": "Device the impression was shown on",
990
+ "format": {
991
+ "type": "string"
992
+ }
993
+ },
994
+ {
995
+ "name": "hour_of_day",
996
+ "label": "Hour of Day",
997
+ "description": "Hour of day (0-23, campaign grain)",
998
+ "format": {
999
+ "type": "number",
1000
+ "decimals": 0
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "age",
1005
+ "label": "Age",
1006
+ "description": "Age bracket",
1007
+ "format": {
1008
+ "type": "string"
1009
+ }
1010
+ },
1011
+ {
1012
+ "name": "gender",
1013
+ "label": "Gender",
1014
+ "description": "Gender",
1015
+ "format": {
1016
+ "type": "string"
1017
+ }
1018
+ },
1019
+ {
1020
+ "name": "country",
1021
+ "label": "Country",
1022
+ "description": "Country (all-platform geo slice)",
1023
+ "format": {
1024
+ "type": "string"
1025
+ }
1026
+ },
1027
+ {
1028
+ "name": "region",
1029
+ "label": "Region",
1030
+ "description": "Region (all-platform geo slice)",
1031
+ "format": {
1032
+ "type": "string"
1033
+ }
1034
+ },
1035
+ {
1036
+ "name": "adset_name",
1037
+ "label": "Ad Set",
1038
+ "description": "Ad set name",
1039
+ "format": {
1040
+ "type": "string"
1041
+ }
1042
+ },
1043
+ {
1044
+ "name": "ad_name",
1045
+ "label": "Ad",
1046
+ "description": "Ad name",
1047
+ "format": {
1048
+ "type": "string"
1049
+ }
1050
+ },
1051
+ {
1052
+ "name": "platform_position",
1053
+ "label": "Placement Position",
1054
+ "description": "Position within the platform (feed, stories, ...)",
1055
+ "format": {
1056
+ "type": "string"
1057
+ }
1058
+ },
1059
+ {
1060
+ "name": "placement_label",
1061
+ "label": "Placement",
1062
+ "description": "Human-readable placement label",
1063
+ "format": {
1064
+ "type": "string"
1065
+ }
1066
+ },
1067
+ {
1068
+ "name": "funnel",
1069
+ "label": "Funnel",
1070
+ "description": "Funnel name",
1071
+ "format": {
1072
+ "type": "string"
1073
+ }
1074
+ },
1075
+ {
1076
+ "name": "funnel_step",
1077
+ "label": "Funnel Step",
1078
+ "description": "Funnel step",
1079
+ "format": {
1080
+ "type": "string"
1081
+ }
1082
+ },
1083
+ {
1084
+ "name": "canonical_event",
1085
+ "label": "Funnel Event",
1086
+ "description": "Canonical event backing the step",
1087
+ "format": {
1088
+ "type": "string"
1089
+ }
1090
+ },
1091
+ {
1092
+ "name": "creative_name",
1093
+ "label": "Creative",
1094
+ "description": "Creative name",
1095
+ "format": {
1096
+ "type": "string"
1097
+ }
1098
+ },
1099
+ {
1100
+ "name": "creative_title",
1101
+ "label": "Creative Title",
1102
+ "description": "Creative title text",
1103
+ "format": {
1104
+ "type": "string"
1105
+ }
1106
+ },
1107
+ {
1108
+ "name": "creative_format",
1109
+ "label": "Creative Format",
1110
+ "description": "Creative format",
1111
+ "format": {
1112
+ "type": "string"
1113
+ }
1114
+ },
1115
+ {
1116
+ "name": "call_to_action_type",
1117
+ "label": "Call to Action",
1118
+ "description": "Call-to-action type",
1119
+ "format": {
1120
+ "type": "string"
1121
+ }
1122
+ }
1123
+ ],
1124
+ "metrics": [
1125
+ {
1126
+ "name": "spend",
1127
+ "label": "Spend",
1128
+ "description": "Total ad spend",
1129
+ "format": {
1130
+ "type": "currency",
1131
+ "decimals": 2
1132
+ }
1133
+ },
1134
+ {
1135
+ "name": "impressions",
1136
+ "label": "Impressions",
1137
+ "description": "Total impressions",
1138
+ "format": {
1139
+ "type": "number",
1140
+ "decimals": 0,
1141
+ "thousandSeparator": true
1142
+ }
1143
+ },
1144
+ {
1145
+ "name": "clicks",
1146
+ "label": "Clicks",
1147
+ "description": "Total clicks",
1148
+ "format": {
1149
+ "type": "number",
1150
+ "decimals": 0,
1151
+ "thousandSeparator": true
1152
+ }
1153
+ },
1154
+ {
1155
+ "name": "inline_link_clicks",
1156
+ "label": "Link Clicks",
1157
+ "description": "Inline link clicks",
1158
+ "format": {
1159
+ "type": "number",
1160
+ "decimals": 0,
1161
+ "thousandSeparator": true
1162
+ }
1163
+ },
1164
+ {
1165
+ "name": "video_plays",
1166
+ "label": "Video Plays",
1167
+ "description": "Video plays",
1168
+ "format": {
1169
+ "type": "number",
1170
+ "decimals": 0,
1171
+ "thousandSeparator": true
1172
+ }
1173
+ },
1174
+ {
1175
+ "name": "step_count",
1176
+ "label": "Funnel Step Count",
1177
+ "description": "Events at the funnel step",
1178
+ "format": {
1179
+ "type": "number",
1180
+ "decimals": 0,
1181
+ "thousandSeparator": true
1182
+ }
1183
+ },
1184
+ {
1185
+ "name": "step_value",
1186
+ "label": "Funnel Step Value",
1187
+ "description": "Value of events at the funnel step",
1188
+ "format": {
1189
+ "type": "currency",
1190
+ "decimals": 2
1191
+ }
1192
+ },
1193
+ {
1194
+ "name": "ctr",
1195
+ "label": "CTR",
1196
+ "description": "Click-through rate from aggregated clicks/impressions",
1197
+ "format": {
1198
+ "type": "percentage",
1199
+ "decimals": 2
1200
+ }
1201
+ },
1202
+ {
1203
+ "name": "inline_link_click_ctr",
1204
+ "label": "Link CTR",
1205
+ "description": "Link click-through rate (aggregated)",
1206
+ "format": {
1207
+ "type": "percentage",
1208
+ "decimals": 2
1209
+ }
1210
+ },
1211
+ {
1212
+ "name": "cpc",
1213
+ "label": "CPC",
1214
+ "description": "Spend / clicks (aggregated)",
1215
+ "format": {
1216
+ "type": "currency",
1217
+ "decimals": 2
1218
+ },
1219
+ "lowerIsBetter": true
1220
+ },
1221
+ {
1222
+ "name": "cost_per_inline_link_click",
1223
+ "label": "Cost / Link Click",
1224
+ "description": "Spend per link click (aggregated)",
1225
+ "format": {
1226
+ "type": "currency",
1227
+ "decimals": 2
1228
+ },
1229
+ "lowerIsBetter": true
1230
+ }
1231
+ ]
1232
+ }
1233
+ ]
1234
+ }