@oursprivacy/platform-sdk 1.34.0 → 1.36.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 (40) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/consent-settings.d.mts +15 -0
  10. package/resources/consent-settings.d.mts.map +1 -1
  11. package/resources/consent-settings.d.ts +15 -0
  12. package/resources/consent-settings.d.ts.map +1 -1
  13. package/resources/experiments.d.mts +872 -195
  14. package/resources/experiments.d.mts.map +1 -1
  15. package/resources/experiments.d.ts +872 -195
  16. package/resources/experiments.d.ts.map +1 -1
  17. package/resources/experiments.js +48 -1
  18. package/resources/experiments.js.map +1 -1
  19. package/resources/experiments.mjs +48 -1
  20. package/resources/experiments.mjs.map +1 -1
  21. package/resources/index.d.mts +1 -1
  22. package/resources/index.d.mts.map +1 -1
  23. package/resources/index.d.ts +1 -1
  24. package/resources/index.d.ts.map +1 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/web-scanners.d.mts +2 -2
  28. package/resources/web-scanners.d.mts.map +1 -1
  29. package/resources/web-scanners.d.ts +2 -2
  30. package/resources/web-scanners.d.ts.map +1 -1
  31. package/src/client.ts +10 -0
  32. package/src/resources/consent-settings.ts +17 -0
  33. package/src/resources/experiments.ts +993 -193
  34. package/src/resources/index.ts +5 -0
  35. package/src/resources/web-scanners.ts +2 -0
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. package/version.mjs +1 -1
@@ -3664,6 +3664,23 @@ export interface ConsentSettingAnalyticsParams {
3664
3664
  */
3665
3665
  compareWithPreviousPeriod?: boolean;
3666
3666
 
3667
+ /**
3668
+ * Optional custom comparison-window lower bound, as a UTC calendar day in
3669
+ * `YYYY-MM-DD` format. Provide together with `comparisonTo`; the window between
3670
+ * them must be the same length as `from`–`to` (a mismatch returns `400`). When
3671
+ * omitted (with `compareWithPreviousPeriod=true`), the immediately preceding
3672
+ * equal-length period is used.
3673
+ */
3674
+ comparisonFrom?: string;
3675
+
3676
+ /**
3677
+ * Optional custom comparison-window upper bound, as a UTC calendar day in
3678
+ * `YYYY-MM-DD` format. Provide together with `comparisonFrom`; the window must
3679
+ * match the `from`–`to` length. Ignored unless both comparison bounds are
3680
+ * supplied.
3681
+ */
3682
+ comparisonTo?: string;
3683
+
3667
3684
  /**
3668
3685
  * Bucket size for the time-series rollup. `DAILY` (default) buckets per UTC day;
3669
3686
  * `HOURLY` buckets per UTC hour and limits the window to 14 days.