@mozilla/nimbus-schemas 2024.1.3 → 2024.3.1

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 (2) hide show
  1. package/index.d.ts +16 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export type LogSource = "jetstream" | "sizing" | "jetstream-preview";
10
10
  export type AnalysisErrors = AnalysisError[];
11
11
  export type Feature = FeatureWithExposure | FeatureWithoutExposure;
12
12
  export type FeatureVariableType = "int" | "string" | "boolean" | "json";
13
+ export type PrefBranch = "default" | "user";
13
14
  export type SizingReleaseChannel = "release" | "beta" | "nightly";
14
15
  export type SizingUserType = "new" | "existing";
15
16
  export type Statistics = Statistic[];
@@ -29,6 +30,14 @@ export interface AnalysisError {
29
30
  statistic?: string;
30
31
  timestamp: string;
31
32
  }
33
+ export interface ConfigVersionDetails {
34
+ path?: string;
35
+ revision?: string;
36
+ }
37
+ export interface ConfigVersions {
38
+ metric_definitions?: ConfigVersionDetails[];
39
+ jetstream_image?: ConfigVersionDetails;
40
+ }
32
41
  export interface ExternalConfig {
33
42
  reference_branch?: string;
34
43
  end_date?: string;
@@ -58,7 +67,11 @@ export interface FeatureVariable {
58
67
  enum?: string[];
59
68
  fallbackPref?: string;
60
69
  type?: FeatureVariableType;
61
- setPref?: string;
70
+ setPref?: string | SetPref;
71
+ }
72
+ export interface SetPref {
73
+ branch: PrefBranch;
74
+ pref: string;
62
75
  }
63
76
  export interface NimbusFeatureSchema {
64
77
  uri: string;
@@ -85,6 +98,8 @@ export interface Metadata {
85
98
  outcomes?: {
86
99
  [k: string]: Outcome;
87
100
  };
101
+ version_info?: ConfigVersions;
102
+ version_date?: string;
88
103
  schema_version?: number;
89
104
  }
90
105
  export interface Metric {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozilla/nimbus-schemas",
3
- "version": "2024.1.3",
3
+ "version": "2024.3.1",
4
4
  "description": "Schemas used by Mozilla Nimbus and related projects.",
5
5
  "main": "index.d.ts",
6
6
  "repository": {