@mozilla/nimbus-shared
Advanced tools
Comparing version 0.0.7 to 0.0.9
# Changelog | ||
## Version 0.0.9 | ||
### Library Changes | ||
- Templated string for slug in audiences | ||
([#102](https://github.com/mozilla/nimbus-shared/issues/102)) | ||
## Version 0.0.8 | ||
### Library Changes | ||
- Changed audiences to allow a variable firefox_release | ||
([#98](https://github.com/mozilla/nimbus-shared/issues/98)) | ||
## Version 0.0.7 | ||
### Libary Changes | ||
### Library Changes | ||
@@ -7,0 +21,0 @@ - Fix a bug preventing data from being accessible in Python |
{ | ||
"Audiences": { | ||
"all_english": { | ||
"name": "All English users (release)", | ||
"name": "All English users", | ||
"description": "All users in en-* locales using the release channel.", | ||
"targeting": "localeLanguageCode == 'en' && browserSettings.update.channel == 'release'", | ||
"desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_channel = 'release'", | ||
"firefox_channel": "Release" | ||
"targeting": "localeLanguageCode == 'en' && browserSettings.update.channel == '{firefox_channel}'", | ||
"desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en')" | ||
}, | ||
"us_only": { | ||
"name": "US users (en; release)", | ||
"name": "US users (en)", | ||
"description": "All users in the US with an en-* locale using the release channel.", | ||
"targeting": "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == 'release'", | ||
"desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US' AND normalized_channel = 'release'", | ||
"firefox_channel": "Release" | ||
"targeting": "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == '{firefox_channel}'", | ||
"desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US'" | ||
}, | ||
"first_run": { | ||
"name": "First start-up users (en; release)", | ||
"name": "First start-up users (en)", | ||
"description": "First start-up users (e.g. for about:welcome) with an en-* locale using the release channel.", | ||
"targeting": "localeLanguageCode == 'en' && (isFirstStartup || currentExperiment.slug in activeExperiments) && browserSettings.update.channel == 'release'", | ||
"desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1 AND normalized_channel = 'release'", | ||
"firefox_channel": "Release" | ||
"targeting": "localeLanguageCode == 'en' && (isFirstStartup || '{slug}' in activeExperiments) && browserSettings.update.channel == '{firefox_channel}'", | ||
"desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1" | ||
} | ||
@@ -24,0 +21,0 @@ }, |
@@ -5,23 +5,20 @@ "use strict"; | ||
all_english: { | ||
name: "All English users (release)", | ||
name: "All English users", | ||
description: "All users in en-* locales using the release channel.", | ||
targeting: "localeLanguageCode == 'en' && browserSettings.update.channel == 'release'", | ||
desktop_telemetry: "STARTS_WITH(environment.settings.locale, 'en') AND normalized_channel = 'release'", | ||
firefox_channel: "Release", | ||
targeting: "localeLanguageCode == 'en' && browserSettings.update.channel == '{firefox_channel}'", | ||
desktop_telemetry: "STARTS_WITH(environment.settings.locale, 'en')", | ||
}, | ||
us_only: { | ||
name: "US users (en; release)", | ||
name: "US users (en)", | ||
description: "All users in the US with an en-* locale using the release channel.", | ||
targeting: "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == 'release'", | ||
desktop_telemetry: "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US' AND normalized_channel = 'release'", | ||
firefox_channel: "Release", | ||
targeting: "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == '{firefox_channel}'", | ||
desktop_telemetry: "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US'", | ||
}, | ||
first_run: { | ||
name: "First start-up users (en; release)", | ||
name: "First start-up users (en)", | ||
description: "First start-up users (e.g. for about:welcome) with an en-* locale using the release channel.", | ||
targeting: "localeLanguageCode == 'en' && (isFirstStartup || currentExperiment.slug in activeExperiments) && browserSettings.update.channel == 'release'", | ||
desktop_telemetry: "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1 AND normalized_channel = 'release'", | ||
firefox_channel: "Release", | ||
targeting: "localeLanguageCode == 'en' && (isFirstStartup || '{slug}' in activeExperiments) && browserSettings.update.channel == '{firefox_channel}'", | ||
desktop_telemetry: "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1", | ||
}, | ||
}; | ||
exports.default = audiences; |
@@ -8,3 +8,2 @@ export declare const data: { | ||
desktop_telemetry: string; | ||
firefox_channel: string; | ||
}; | ||
@@ -16,3 +15,2 @@ us_only: { | ||
desktop_telemetry: string; | ||
firefox_channel: string; | ||
}; | ||
@@ -24,3 +22,2 @@ first_run: { | ||
desktop_telemetry: string; | ||
firefox_channel: string; | ||
}; | ||
@@ -27,0 +24,0 @@ }; |
@@ -7,7 +7,7 @@ "use strict"; | ||
"all_english": { | ||
"name": "All English users (release)", "description": "All users in en-* locales using the release channel.", "targeting": "localeLanguageCode == 'en' && browserSettings.update.channel == 'release'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_channel = 'release'", "firefox_channel": "Release" | ||
"name": "All English users", "description": "All users in en-* locales using the release channel.", "targeting": "localeLanguageCode == 'en' && browserSettings.update.channel == '{firefox_channel}'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en')" | ||
}, "us_only": { | ||
"name": "US users (en; release)", "description": "All users in the US with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == 'release'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US' AND normalized_channel = 'release'", "firefox_channel": "Release" | ||
"name": "US users (en)", "description": "All users in the US with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == '{firefox_channel}'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US'" | ||
}, "first_run": { | ||
"name": "First start-up users (en; release)", "description": "First start-up users (e.g. for about:welcome) with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && (isFirstStartup || currentExperiment.slug in activeExperiments) && browserSettings.update.channel == 'release'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1 AND normalized_channel = 'release'", "firefox_channel": "Release" | ||
"name": "First start-up users (en)", "description": "First start-up users (e.g. for about:welcome) with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && (isFirstStartup || '{slug}' in activeExperiments) && browserSettings.update.channel == '{firefox_channel}'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1" | ||
} | ||
@@ -14,0 +14,0 @@ }, "ExperimentDesignPresets": { |
import { SchemaResult } from "../typeGuards"; | ||
import type { ExperimentRecipe, Experiment } from "../../types/experiments"; | ||
import type { Audience } from "../../types/targeting"; | ||
import type { FoodColors } from "../../types/test"; | ||
import type { Feature } from "../../types/features"; | ||
import type { Experiment, ExperimentRecipe } from "../../types/experiments"; | ||
import type { TriggerActionSchemas, SimpleCFRMessage, SpecialMessageActionSchemas } from "../../types/messaging"; | ||
import type { PreferenceExperimentArguments, BranchedAddonStudyArguments, AddonRolloutArguments, NormandyRecipe, PreferenceRollbackArguments, ConsoleLogArguments, AddonRollbackArguments, PreferenceRolloutArguments, MessagingExperimentArguments, MultiPreferenceExperimentArguments, ShowHeartbeatArguments, OptOutStudyArguments } from "../../types/normandy"; | ||
import type { Audience } from "../../types/targeting"; | ||
import type { Feature } from "../../types/features"; | ||
import type { ShowHeartbeatArguments, BranchedAddonStudyArguments, PreferenceRolloutArguments, AddonRolloutArguments, PreferenceExperimentArguments, PreferenceRollbackArguments, MultiPreferenceExperimentArguments, ConsoleLogArguments, NormandyRecipe, AddonRollbackArguments, MessagingExperimentArguments, OptOutStudyArguments } from "../../types/normandy"; | ||
export declare function targeting_isAudience(obj: object): obj is Audience; | ||
export declare function targeting_checkAudience(obj: object): SchemaResult; | ||
export declare function targeting_assertAudience(obj: object): asserts obj is Audience; | ||
export declare function test_isFoodColors(obj: object): obj is FoodColors; | ||
export declare function test_checkFoodColors(obj: object): SchemaResult; | ||
export declare function test_assertFoodColors(obj: object): asserts obj is FoodColors; | ||
export declare function features_isFeature(obj: object): obj is Feature; | ||
export declare function features_checkFeature(obj: object): SchemaResult; | ||
export declare function features_assertFeature(obj: object): asserts obj is Feature; | ||
export declare function experiments_isExperiment(obj: object): obj is Experiment; | ||
export declare function experiments_checkExperiment(obj: object): SchemaResult; | ||
export declare function experiments_assertExperiment(obj: object): asserts obj is Experiment; | ||
export declare function experiments_isExperimentRecipe(obj: object): obj is ExperimentRecipe; | ||
export declare function experiments_checkExperimentRecipe(obj: object): SchemaResult; | ||
export declare function experiments_assertExperimentRecipe(obj: object): asserts obj is ExperimentRecipe; | ||
export declare function experiments_isExperiment(obj: object): obj is Experiment; | ||
export declare function experiments_checkExperiment(obj: object): SchemaResult; | ||
export declare function experiments_assertExperiment(obj: object): asserts obj is Experiment; | ||
export declare function test_isFoodColors(obj: object): obj is FoodColors; | ||
export declare function test_checkFoodColors(obj: object): SchemaResult; | ||
export declare function test_assertFoodColors(obj: object): asserts obj is FoodColors; | ||
export declare function messaging_isTriggerActionSchemas(obj: object): obj is TriggerActionSchemas; | ||
@@ -26,43 +32,37 @@ export declare function messaging_checkTriggerActionSchemas(obj: object): SchemaResult; | ||
export declare function messaging_assertSpecialMessageActionSchemas(obj: object): asserts obj is SpecialMessageActionSchemas; | ||
export declare function normandy_isPreferenceExperimentArguments(obj: object): obj is PreferenceExperimentArguments; | ||
export declare function normandy_checkPreferenceExperimentArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertPreferenceExperimentArguments(obj: object): asserts obj is PreferenceExperimentArguments; | ||
export declare function normandy_isShowHeartbeatArguments(obj: object): obj is ShowHeartbeatArguments; | ||
export declare function normandy_checkShowHeartbeatArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertShowHeartbeatArguments(obj: object): asserts obj is ShowHeartbeatArguments; | ||
export declare function normandy_isBranchedAddonStudyArguments(obj: object): obj is BranchedAddonStudyArguments; | ||
export declare function normandy_checkBranchedAddonStudyArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertBranchedAddonStudyArguments(obj: object): asserts obj is BranchedAddonStudyArguments; | ||
export declare function normandy_isPreferenceRolloutArguments(obj: object): obj is PreferenceRolloutArguments; | ||
export declare function normandy_checkPreferenceRolloutArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertPreferenceRolloutArguments(obj: object): asserts obj is PreferenceRolloutArguments; | ||
export declare function normandy_isAddonRolloutArguments(obj: object): obj is AddonRolloutArguments; | ||
export declare function normandy_checkAddonRolloutArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertAddonRolloutArguments(obj: object): asserts obj is AddonRolloutArguments; | ||
export declare function normandy_isNormandyRecipe(obj: object): obj is NormandyRecipe; | ||
export declare function normandy_checkNormandyRecipe(obj: object): SchemaResult; | ||
export declare function normandy_assertNormandyRecipe(obj: object): asserts obj is NormandyRecipe; | ||
export declare function normandy_isPreferenceExperimentArguments(obj: object): obj is PreferenceExperimentArguments; | ||
export declare function normandy_checkPreferenceExperimentArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertPreferenceExperimentArguments(obj: object): asserts obj is PreferenceExperimentArguments; | ||
export declare function normandy_isPreferenceRollbackArguments(obj: object): obj is PreferenceRollbackArguments; | ||
export declare function normandy_checkPreferenceRollbackArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertPreferenceRollbackArguments(obj: object): asserts obj is PreferenceRollbackArguments; | ||
export declare function normandy_isMultiPreferenceExperimentArguments(obj: object): obj is MultiPreferenceExperimentArguments; | ||
export declare function normandy_checkMultiPreferenceExperimentArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertMultiPreferenceExperimentArguments(obj: object): asserts obj is MultiPreferenceExperimentArguments; | ||
export declare function normandy_isConsoleLogArguments(obj: object): obj is ConsoleLogArguments; | ||
export declare function normandy_checkConsoleLogArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertConsoleLogArguments(obj: object): asserts obj is ConsoleLogArguments; | ||
export declare function normandy_isNormandyRecipe(obj: object): obj is NormandyRecipe; | ||
export declare function normandy_checkNormandyRecipe(obj: object): SchemaResult; | ||
export declare function normandy_assertNormandyRecipe(obj: object): asserts obj is NormandyRecipe; | ||
export declare function normandy_isAddonRollbackArguments(obj: object): obj is AddonRollbackArguments; | ||
export declare function normandy_checkAddonRollbackArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertAddonRollbackArguments(obj: object): asserts obj is AddonRollbackArguments; | ||
export declare function normandy_isPreferenceRolloutArguments(obj: object): obj is PreferenceRolloutArguments; | ||
export declare function normandy_checkPreferenceRolloutArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertPreferenceRolloutArguments(obj: object): asserts obj is PreferenceRolloutArguments; | ||
export declare function normandy_isMessagingExperimentArguments(obj: object): obj is MessagingExperimentArguments; | ||
export declare function normandy_checkMessagingExperimentArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertMessagingExperimentArguments(obj: object): asserts obj is MessagingExperimentArguments; | ||
export declare function normandy_isMultiPreferenceExperimentArguments(obj: object): obj is MultiPreferenceExperimentArguments; | ||
export declare function normandy_checkMultiPreferenceExperimentArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertMultiPreferenceExperimentArguments(obj: object): asserts obj is MultiPreferenceExperimentArguments; | ||
export declare function normandy_isShowHeartbeatArguments(obj: object): obj is ShowHeartbeatArguments; | ||
export declare function normandy_checkShowHeartbeatArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertShowHeartbeatArguments(obj: object): asserts obj is ShowHeartbeatArguments; | ||
export declare function normandy_isOptOutStudyArguments(obj: object): obj is OptOutStudyArguments; | ||
export declare function normandy_checkOptOutStudyArguments(obj: object): SchemaResult; | ||
export declare function normandy_assertOptOutStudyArguments(obj: object): asserts obj is OptOutStudyArguments; | ||
export declare function targeting_isAudience(obj: object): obj is Audience; | ||
export declare function targeting_checkAudience(obj: object): SchemaResult; | ||
export declare function targeting_assertAudience(obj: object): asserts obj is Audience; | ||
export declare function features_isFeature(obj: object): obj is Feature; | ||
export declare function features_checkFeature(obj: object): SchemaResult; | ||
export declare function features_assertFeature(obj: object): asserts obj is Feature; |
"use strict"; | ||
/* eslint-disable @typescript-eslint/ban-types */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.features_assertFeature = exports.features_checkFeature = exports.features_isFeature = exports.targeting_assertAudience = exports.targeting_checkAudience = exports.targeting_isAudience = exports.normandy_assertOptOutStudyArguments = exports.normandy_checkOptOutStudyArguments = exports.normandy_isOptOutStudyArguments = exports.normandy_assertShowHeartbeatArguments = exports.normandy_checkShowHeartbeatArguments = exports.normandy_isShowHeartbeatArguments = exports.normandy_assertMultiPreferenceExperimentArguments = exports.normandy_checkMultiPreferenceExperimentArguments = exports.normandy_isMultiPreferenceExperimentArguments = exports.normandy_assertMessagingExperimentArguments = exports.normandy_checkMessagingExperimentArguments = exports.normandy_isMessagingExperimentArguments = exports.normandy_assertPreferenceRolloutArguments = exports.normandy_checkPreferenceRolloutArguments = exports.normandy_isPreferenceRolloutArguments = exports.normandy_assertAddonRollbackArguments = exports.normandy_checkAddonRollbackArguments = exports.normandy_isAddonRollbackArguments = exports.normandy_assertConsoleLogArguments = exports.normandy_checkConsoleLogArguments = exports.normandy_isConsoleLogArguments = exports.normandy_assertPreferenceRollbackArguments = exports.normandy_checkPreferenceRollbackArguments = exports.normandy_isPreferenceRollbackArguments = exports.normandy_assertNormandyRecipe = exports.normandy_checkNormandyRecipe = exports.normandy_isNormandyRecipe = exports.normandy_assertAddonRolloutArguments = exports.normandy_checkAddonRolloutArguments = exports.normandy_isAddonRolloutArguments = exports.normandy_assertBranchedAddonStudyArguments = exports.normandy_checkBranchedAddonStudyArguments = exports.normandy_isBranchedAddonStudyArguments = exports.normandy_assertPreferenceExperimentArguments = exports.normandy_checkPreferenceExperimentArguments = exports.normandy_isPreferenceExperimentArguments = exports.messaging_assertSpecialMessageActionSchemas = exports.messaging_checkSpecialMessageActionSchemas = exports.messaging_isSpecialMessageActionSchemas = exports.messaging_assertSimpleCFRMessage = exports.messaging_checkSimpleCFRMessage = exports.messaging_isSimpleCFRMessage = exports.messaging_assertTriggerActionSchemas = exports.messaging_checkTriggerActionSchemas = exports.messaging_isTriggerActionSchemas = exports.test_assertFoodColors = exports.test_checkFoodColors = exports.test_isFoodColors = exports.experiments_assertExperiment = exports.experiments_checkExperiment = exports.experiments_isExperiment = exports.experiments_assertExperimentRecipe = exports.experiments_checkExperimentRecipe = exports.experiments_isExperimentRecipe = void 0; | ||
exports.normandy_assertOptOutStudyArguments = exports.normandy_checkOptOutStudyArguments = exports.normandy_isOptOutStudyArguments = exports.normandy_assertMessagingExperimentArguments = exports.normandy_checkMessagingExperimentArguments = exports.normandy_isMessagingExperimentArguments = exports.normandy_assertAddonRollbackArguments = exports.normandy_checkAddonRollbackArguments = exports.normandy_isAddonRollbackArguments = exports.normandy_assertNormandyRecipe = exports.normandy_checkNormandyRecipe = exports.normandy_isNormandyRecipe = exports.normandy_assertConsoleLogArguments = exports.normandy_checkConsoleLogArguments = exports.normandy_isConsoleLogArguments = exports.normandy_assertMultiPreferenceExperimentArguments = exports.normandy_checkMultiPreferenceExperimentArguments = exports.normandy_isMultiPreferenceExperimentArguments = exports.normandy_assertPreferenceRollbackArguments = exports.normandy_checkPreferenceRollbackArguments = exports.normandy_isPreferenceRollbackArguments = exports.normandy_assertPreferenceExperimentArguments = exports.normandy_checkPreferenceExperimentArguments = exports.normandy_isPreferenceExperimentArguments = exports.normandy_assertAddonRolloutArguments = exports.normandy_checkAddonRolloutArguments = exports.normandy_isAddonRolloutArguments = exports.normandy_assertPreferenceRolloutArguments = exports.normandy_checkPreferenceRolloutArguments = exports.normandy_isPreferenceRolloutArguments = exports.normandy_assertBranchedAddonStudyArguments = exports.normandy_checkBranchedAddonStudyArguments = exports.normandy_isBranchedAddonStudyArguments = exports.normandy_assertShowHeartbeatArguments = exports.normandy_checkShowHeartbeatArguments = exports.normandy_isShowHeartbeatArguments = exports.messaging_assertSpecialMessageActionSchemas = exports.messaging_checkSpecialMessageActionSchemas = exports.messaging_isSpecialMessageActionSchemas = exports.messaging_assertSimpleCFRMessage = exports.messaging_checkSimpleCFRMessage = exports.messaging_isSimpleCFRMessage = exports.messaging_assertTriggerActionSchemas = exports.messaging_checkTriggerActionSchemas = exports.messaging_isTriggerActionSchemas = exports.experiments_assertExperimentRecipe = exports.experiments_checkExperimentRecipe = exports.experiments_isExperimentRecipe = exports.experiments_assertExperiment = exports.experiments_checkExperiment = exports.experiments_isExperiment = exports.features_assertFeature = exports.features_checkFeature = exports.features_isFeature = exports.test_assertFoodColors = exports.test_checkFoodColors = exports.test_isFoodColors = exports.targeting_assertAudience = exports.targeting_checkAudience = exports.targeting_isAudience = void 0; | ||
const typeGuards_1 = require("../typeGuards"); | ||
function targeting_isAudience(obj) { return typeGuards_1.isSchema("targeting/Audience", obj); } | ||
exports.targeting_isAudience = targeting_isAudience; | ||
function targeting_checkAudience(obj) { return typeGuards_1.checkSchema("targeting/Audience", obj); } | ||
exports.targeting_checkAudience = targeting_checkAudience; | ||
function targeting_assertAudience(obj) { return typeGuards_1.assertSchema("targeting/Audience", obj); } | ||
exports.targeting_assertAudience = targeting_assertAudience; | ||
function test_isFoodColors(obj) { return typeGuards_1.isSchema("test/FoodColors", obj); } | ||
exports.test_isFoodColors = test_isFoodColors; | ||
function test_checkFoodColors(obj) { return typeGuards_1.checkSchema("test/FoodColors", obj); } | ||
exports.test_checkFoodColors = test_checkFoodColors; | ||
function test_assertFoodColors(obj) { return typeGuards_1.assertSchema("test/FoodColors", obj); } | ||
exports.test_assertFoodColors = test_assertFoodColors; | ||
function features_isFeature(obj) { return typeGuards_1.isSchema("features/Feature", obj); } | ||
exports.features_isFeature = features_isFeature; | ||
function features_checkFeature(obj) { return typeGuards_1.checkSchema("features/Feature", obj); } | ||
exports.features_checkFeature = features_checkFeature; | ||
function features_assertFeature(obj) { return typeGuards_1.assertSchema("features/Feature", obj); } | ||
exports.features_assertFeature = features_assertFeature; | ||
function experiments_isExperiment(obj) { return typeGuards_1.isSchema("experiments/Experiment", obj); } | ||
exports.experiments_isExperiment = experiments_isExperiment; | ||
function experiments_checkExperiment(obj) { return typeGuards_1.checkSchema("experiments/Experiment", obj); } | ||
exports.experiments_checkExperiment = experiments_checkExperiment; | ||
function experiments_assertExperiment(obj) { return typeGuards_1.assertSchema("experiments/Experiment", obj); } | ||
exports.experiments_assertExperiment = experiments_assertExperiment; | ||
function experiments_isExperimentRecipe(obj) { return typeGuards_1.isSchema("experiments/ExperimentRecipe", obj); } | ||
@@ -12,14 +36,2 @@ exports.experiments_isExperimentRecipe = experiments_isExperimentRecipe; | ||
exports.experiments_assertExperimentRecipe = experiments_assertExperimentRecipe; | ||
function experiments_isExperiment(obj) { return typeGuards_1.isSchema("experiments/Experiment", obj); } | ||
exports.experiments_isExperiment = experiments_isExperiment; | ||
function experiments_checkExperiment(obj) { return typeGuards_1.checkSchema("experiments/Experiment", obj); } | ||
exports.experiments_checkExperiment = experiments_checkExperiment; | ||
function experiments_assertExperiment(obj) { return typeGuards_1.assertSchema("experiments/Experiment", obj); } | ||
exports.experiments_assertExperiment = experiments_assertExperiment; | ||
function test_isFoodColors(obj) { return typeGuards_1.isSchema("test/FoodColors", obj); } | ||
exports.test_isFoodColors = test_isFoodColors; | ||
function test_checkFoodColors(obj) { return typeGuards_1.checkSchema("test/FoodColors", obj); } | ||
exports.test_checkFoodColors = test_checkFoodColors; | ||
function test_assertFoodColors(obj) { return typeGuards_1.assertSchema("test/FoodColors", obj); } | ||
exports.test_assertFoodColors = test_assertFoodColors; | ||
function messaging_isTriggerActionSchemas(obj) { return typeGuards_1.isSchema("messaging/TriggerActionSchemas", obj); } | ||
@@ -43,8 +55,8 @@ exports.messaging_isTriggerActionSchemas = messaging_isTriggerActionSchemas; | ||
exports.messaging_assertSpecialMessageActionSchemas = messaging_assertSpecialMessageActionSchemas; | ||
function normandy_isPreferenceExperimentArguments(obj) { return typeGuards_1.isSchema("normandy/PreferenceExperimentArguments", obj); } | ||
exports.normandy_isPreferenceExperimentArguments = normandy_isPreferenceExperimentArguments; | ||
function normandy_checkPreferenceExperimentArguments(obj) { return typeGuards_1.checkSchema("normandy/PreferenceExperimentArguments", obj); } | ||
exports.normandy_checkPreferenceExperimentArguments = normandy_checkPreferenceExperimentArguments; | ||
function normandy_assertPreferenceExperimentArguments(obj) { return typeGuards_1.assertSchema("normandy/PreferenceExperimentArguments", obj); } | ||
exports.normandy_assertPreferenceExperimentArguments = normandy_assertPreferenceExperimentArguments; | ||
function normandy_isShowHeartbeatArguments(obj) { return typeGuards_1.isSchema("normandy/ShowHeartbeatArguments", obj); } | ||
exports.normandy_isShowHeartbeatArguments = normandy_isShowHeartbeatArguments; | ||
function normandy_checkShowHeartbeatArguments(obj) { return typeGuards_1.checkSchema("normandy/ShowHeartbeatArguments", obj); } | ||
exports.normandy_checkShowHeartbeatArguments = normandy_checkShowHeartbeatArguments; | ||
function normandy_assertShowHeartbeatArguments(obj) { return typeGuards_1.assertSchema("normandy/ShowHeartbeatArguments", obj); } | ||
exports.normandy_assertShowHeartbeatArguments = normandy_assertShowHeartbeatArguments; | ||
function normandy_isBranchedAddonStudyArguments(obj) { return typeGuards_1.isSchema("normandy/BranchedAddonStudyArguments", obj); } | ||
@@ -56,2 +68,8 @@ exports.normandy_isBranchedAddonStudyArguments = normandy_isBranchedAddonStudyArguments; | ||
exports.normandy_assertBranchedAddonStudyArguments = normandy_assertBranchedAddonStudyArguments; | ||
function normandy_isPreferenceRolloutArguments(obj) { return typeGuards_1.isSchema("normandy/PreferenceRolloutArguments", obj); } | ||
exports.normandy_isPreferenceRolloutArguments = normandy_isPreferenceRolloutArguments; | ||
function normandy_checkPreferenceRolloutArguments(obj) { return typeGuards_1.checkSchema("normandy/PreferenceRolloutArguments", obj); } | ||
exports.normandy_checkPreferenceRolloutArguments = normandy_checkPreferenceRolloutArguments; | ||
function normandy_assertPreferenceRolloutArguments(obj) { return typeGuards_1.assertSchema("normandy/PreferenceRolloutArguments", obj); } | ||
exports.normandy_assertPreferenceRolloutArguments = normandy_assertPreferenceRolloutArguments; | ||
function normandy_isAddonRolloutArguments(obj) { return typeGuards_1.isSchema("normandy/AddonRolloutArguments", obj); } | ||
@@ -63,8 +81,8 @@ exports.normandy_isAddonRolloutArguments = normandy_isAddonRolloutArguments; | ||
exports.normandy_assertAddonRolloutArguments = normandy_assertAddonRolloutArguments; | ||
function normandy_isNormandyRecipe(obj) { return typeGuards_1.isSchema("normandy/NormandyRecipe", obj); } | ||
exports.normandy_isNormandyRecipe = normandy_isNormandyRecipe; | ||
function normandy_checkNormandyRecipe(obj) { return typeGuards_1.checkSchema("normandy/NormandyRecipe", obj); } | ||
exports.normandy_checkNormandyRecipe = normandy_checkNormandyRecipe; | ||
function normandy_assertNormandyRecipe(obj) { return typeGuards_1.assertSchema("normandy/NormandyRecipe", obj); } | ||
exports.normandy_assertNormandyRecipe = normandy_assertNormandyRecipe; | ||
function normandy_isPreferenceExperimentArguments(obj) { return typeGuards_1.isSchema("normandy/PreferenceExperimentArguments", obj); } | ||
exports.normandy_isPreferenceExperimentArguments = normandy_isPreferenceExperimentArguments; | ||
function normandy_checkPreferenceExperimentArguments(obj) { return typeGuards_1.checkSchema("normandy/PreferenceExperimentArguments", obj); } | ||
exports.normandy_checkPreferenceExperimentArguments = normandy_checkPreferenceExperimentArguments; | ||
function normandy_assertPreferenceExperimentArguments(obj) { return typeGuards_1.assertSchema("normandy/PreferenceExperimentArguments", obj); } | ||
exports.normandy_assertPreferenceExperimentArguments = normandy_assertPreferenceExperimentArguments; | ||
function normandy_isPreferenceRollbackArguments(obj) { return typeGuards_1.isSchema("normandy/PreferenceRollbackArguments", obj); } | ||
@@ -76,2 +94,8 @@ exports.normandy_isPreferenceRollbackArguments = normandy_isPreferenceRollbackArguments; | ||
exports.normandy_assertPreferenceRollbackArguments = normandy_assertPreferenceRollbackArguments; | ||
function normandy_isMultiPreferenceExperimentArguments(obj) { return typeGuards_1.isSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
exports.normandy_isMultiPreferenceExperimentArguments = normandy_isMultiPreferenceExperimentArguments; | ||
function normandy_checkMultiPreferenceExperimentArguments(obj) { return typeGuards_1.checkSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
exports.normandy_checkMultiPreferenceExperimentArguments = normandy_checkMultiPreferenceExperimentArguments; | ||
function normandy_assertMultiPreferenceExperimentArguments(obj) { return typeGuards_1.assertSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
exports.normandy_assertMultiPreferenceExperimentArguments = normandy_assertMultiPreferenceExperimentArguments; | ||
function normandy_isConsoleLogArguments(obj) { return typeGuards_1.isSchema("normandy/ConsoleLogArguments", obj); } | ||
@@ -83,2 +107,8 @@ exports.normandy_isConsoleLogArguments = normandy_isConsoleLogArguments; | ||
exports.normandy_assertConsoleLogArguments = normandy_assertConsoleLogArguments; | ||
function normandy_isNormandyRecipe(obj) { return typeGuards_1.isSchema("normandy/NormandyRecipe", obj); } | ||
exports.normandy_isNormandyRecipe = normandy_isNormandyRecipe; | ||
function normandy_checkNormandyRecipe(obj) { return typeGuards_1.checkSchema("normandy/NormandyRecipe", obj); } | ||
exports.normandy_checkNormandyRecipe = normandy_checkNormandyRecipe; | ||
function normandy_assertNormandyRecipe(obj) { return typeGuards_1.assertSchema("normandy/NormandyRecipe", obj); } | ||
exports.normandy_assertNormandyRecipe = normandy_assertNormandyRecipe; | ||
function normandy_isAddonRollbackArguments(obj) { return typeGuards_1.isSchema("normandy/AddonRollbackArguments", obj); } | ||
@@ -90,8 +120,2 @@ exports.normandy_isAddonRollbackArguments = normandy_isAddonRollbackArguments; | ||
exports.normandy_assertAddonRollbackArguments = normandy_assertAddonRollbackArguments; | ||
function normandy_isPreferenceRolloutArguments(obj) { return typeGuards_1.isSchema("normandy/PreferenceRolloutArguments", obj); } | ||
exports.normandy_isPreferenceRolloutArguments = normandy_isPreferenceRolloutArguments; | ||
function normandy_checkPreferenceRolloutArguments(obj) { return typeGuards_1.checkSchema("normandy/PreferenceRolloutArguments", obj); } | ||
exports.normandy_checkPreferenceRolloutArguments = normandy_checkPreferenceRolloutArguments; | ||
function normandy_assertPreferenceRolloutArguments(obj) { return typeGuards_1.assertSchema("normandy/PreferenceRolloutArguments", obj); } | ||
exports.normandy_assertPreferenceRolloutArguments = normandy_assertPreferenceRolloutArguments; | ||
function normandy_isMessagingExperimentArguments(obj) { return typeGuards_1.isSchema("normandy/MessagingExperimentArguments", obj); } | ||
@@ -103,14 +127,2 @@ exports.normandy_isMessagingExperimentArguments = normandy_isMessagingExperimentArguments; | ||
exports.normandy_assertMessagingExperimentArguments = normandy_assertMessagingExperimentArguments; | ||
function normandy_isMultiPreferenceExperimentArguments(obj) { return typeGuards_1.isSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
exports.normandy_isMultiPreferenceExperimentArguments = normandy_isMultiPreferenceExperimentArguments; | ||
function normandy_checkMultiPreferenceExperimentArguments(obj) { return typeGuards_1.checkSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
exports.normandy_checkMultiPreferenceExperimentArguments = normandy_checkMultiPreferenceExperimentArguments; | ||
function normandy_assertMultiPreferenceExperimentArguments(obj) { return typeGuards_1.assertSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
exports.normandy_assertMultiPreferenceExperimentArguments = normandy_assertMultiPreferenceExperimentArguments; | ||
function normandy_isShowHeartbeatArguments(obj) { return typeGuards_1.isSchema("normandy/ShowHeartbeatArguments", obj); } | ||
exports.normandy_isShowHeartbeatArguments = normandy_isShowHeartbeatArguments; | ||
function normandy_checkShowHeartbeatArguments(obj) { return typeGuards_1.checkSchema("normandy/ShowHeartbeatArguments", obj); } | ||
exports.normandy_checkShowHeartbeatArguments = normandy_checkShowHeartbeatArguments; | ||
function normandy_assertShowHeartbeatArguments(obj) { return typeGuards_1.assertSchema("normandy/ShowHeartbeatArguments", obj); } | ||
exports.normandy_assertShowHeartbeatArguments = normandy_assertShowHeartbeatArguments; | ||
function normandy_isOptOutStudyArguments(obj) { return typeGuards_1.isSchema("normandy/OptOutStudyArguments", obj); } | ||
@@ -122,13 +134,1 @@ exports.normandy_isOptOutStudyArguments = normandy_isOptOutStudyArguments; | ||
exports.normandy_assertOptOutStudyArguments = normandy_assertOptOutStudyArguments; | ||
function targeting_isAudience(obj) { return typeGuards_1.isSchema("targeting/Audience", obj); } | ||
exports.targeting_isAudience = targeting_isAudience; | ||
function targeting_checkAudience(obj) { return typeGuards_1.checkSchema("targeting/Audience", obj); } | ||
exports.targeting_checkAudience = targeting_checkAudience; | ||
function targeting_assertAudience(obj) { return typeGuards_1.assertSchema("targeting/Audience", obj); } | ||
exports.targeting_assertAudience = targeting_assertAudience; | ||
function features_isFeature(obj) { return typeGuards_1.isSchema("features/Feature", obj); } | ||
exports.features_isFeature = features_isFeature; | ||
function features_checkFeature(obj) { return typeGuards_1.checkSchema("features/Feature", obj); } | ||
exports.features_checkFeature = features_checkFeature; | ||
function features_assertFeature(obj) { return typeGuards_1.assertSchema("features/Feature", obj); } | ||
exports.features_assertFeature = features_assertFeature; |
@@ -12,3 +12,2 @@ export interface Audience { | ||
desktop_telemetry?: string; | ||
firefox_channel: "Nightly" | "Beta" | "Release"; | ||
} |
{ | ||
"name": "@mozilla/nimbus-shared", | ||
"version": "0.0.7", | ||
"version": "0.0.9", | ||
"license": "MPL-2.0", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -23,10 +23,2 @@ { | ||
"description": "A boolean BigQuery SQL expression expressing whether a single row in telemetry.main would have\nmatched the audience definition. These are used for sizing experiment populations,\nnot for targeting." | ||
}, | ||
"firefox_channel": { | ||
"type": "string", | ||
"enum": [ | ||
"Nightly", | ||
"Beta", | ||
"Release" | ||
] | ||
} | ||
@@ -36,4 +28,3 @@ }, | ||
"name", | ||
"description", | ||
"firefox_channel" | ||
"description" | ||
], | ||
@@ -40,0 +31,0 @@ "additionalProperties": false |
export const data = { | ||
"Audiences": { | ||
"all_english": { | ||
"name": "All English users (release)", "description": "All users in en-* locales using the release channel.", "targeting": "localeLanguageCode == 'en' && browserSettings.update.channel == 'release'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_channel = 'release'", "firefox_channel": "Release" | ||
"name": "All English users", "description": "All users in en-* locales using the release channel.", "targeting": "localeLanguageCode == 'en' && browserSettings.update.channel == '{firefox_channel}'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en')" | ||
}, "us_only": { | ||
"name": "US users (en; release)", "description": "All users in the US with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == 'release'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US' AND normalized_channel = 'release'", "firefox_channel": "Release" | ||
"name": "US users (en)", "description": "All users in the US with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && region == 'US' && browserSettings.update.channel == '{firefox_channel}'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND normalized_country_code = 'US'" | ||
}, "first_run": { | ||
"name": "First start-up users (en; release)", "description": "First start-up users (e.g. for about:welcome) with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && (isFirstStartup || currentExperiment.slug in activeExperiments) && browserSettings.update.channel == 'release'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1 AND normalized_channel = 'release'", "firefox_channel": "Release" | ||
"name": "First start-up users (en)", "description": "First start-up users (e.g. for about:welcome) with an en-* locale using the release channel.", "targeting": "localeLanguageCode == 'en' && (isFirstStartup || '{slug}' in activeExperiments) && browserSettings.update.channel == '{firefox_channel}'", "desktop_telemetry": "STARTS_WITH(environment.settings.locale, 'en') AND payload.info.profile_subsession_counter = 1" | ||
} | ||
@@ -10,0 +10,0 @@ }, "ExperimentDesignPresets": { |
/* eslint-disable @typescript-eslint/ban-types */ | ||
import { checkSchema, isSchema, assertSchema, SchemaResult } from "../typeGuards"; | ||
import type { ExperimentRecipe, Experiment } from "../../types/experiments"; | ||
import type { Audience } from "../../types/targeting"; | ||
import type { FoodColors } from "../../types/test"; | ||
import type { Feature } from "../../types/features"; | ||
import type { Experiment, ExperimentRecipe } from "../../types/experiments"; | ||
import type { TriggerActionSchemas, SimpleCFRMessage, SpecialMessageActionSchemas } from "../../types/messaging"; | ||
import type { PreferenceExperimentArguments, BranchedAddonStudyArguments, AddonRolloutArguments, NormandyRecipe, PreferenceRollbackArguments, ConsoleLogArguments, AddonRollbackArguments, PreferenceRolloutArguments, MessagingExperimentArguments, MultiPreferenceExperimentArguments, ShowHeartbeatArguments, OptOutStudyArguments } from "../../types/normandy"; | ||
import type { Audience } from "../../types/targeting"; | ||
import type { Feature } from "../../types/features"; | ||
import type { ShowHeartbeatArguments, BranchedAddonStudyArguments, PreferenceRolloutArguments, AddonRolloutArguments, PreferenceExperimentArguments, PreferenceRollbackArguments, MultiPreferenceExperimentArguments, ConsoleLogArguments, NormandyRecipe, AddonRollbackArguments, MessagingExperimentArguments, OptOutStudyArguments } from "../../types/normandy"; | ||
export function experiments_isExperimentRecipe(obj: object): obj is ExperimentRecipe { return isSchema("experiments/ExperimentRecipe", obj); } | ||
export function experiments_checkExperimentRecipe(obj: object): SchemaResult { return checkSchema("experiments/ExperimentRecipe", obj); } | ||
export function experiments_assertExperimentRecipe(obj: object): asserts obj is ExperimentRecipe { return assertSchema("experiments/ExperimentRecipe", obj); } | ||
export function targeting_isAudience(obj: object): obj is Audience { return isSchema("targeting/Audience", obj); } | ||
export function targeting_checkAudience(obj: object): SchemaResult { return checkSchema("targeting/Audience", obj); } | ||
export function targeting_assertAudience(obj: object): asserts obj is Audience { return assertSchema("targeting/Audience", obj); } | ||
export function test_isFoodColors(obj: object): obj is FoodColors { return isSchema("test/FoodColors", obj); } | ||
export function test_checkFoodColors(obj: object): SchemaResult { return checkSchema("test/FoodColors", obj); } | ||
export function test_assertFoodColors(obj: object): asserts obj is FoodColors { return assertSchema("test/FoodColors", obj); } | ||
export function features_isFeature(obj: object): obj is Feature { return isSchema("features/Feature", obj); } | ||
export function features_checkFeature(obj: object): SchemaResult { return checkSchema("features/Feature", obj); } | ||
export function features_assertFeature(obj: object): asserts obj is Feature { return assertSchema("features/Feature", obj); } | ||
export function experiments_isExperiment(obj: object): obj is Experiment { return isSchema("experiments/Experiment", obj); } | ||
@@ -21,5 +31,5 @@ export function experiments_checkExperiment(obj: object): SchemaResult { return checkSchema("experiments/Experiment", obj); } | ||
export function test_isFoodColors(obj: object): obj is FoodColors { return isSchema("test/FoodColors", obj); } | ||
export function test_checkFoodColors(obj: object): SchemaResult { return checkSchema("test/FoodColors", obj); } | ||
export function test_assertFoodColors(obj: object): asserts obj is FoodColors { return assertSchema("test/FoodColors", obj); } | ||
export function experiments_isExperimentRecipe(obj: object): obj is ExperimentRecipe { return isSchema("experiments/ExperimentRecipe", obj); } | ||
export function experiments_checkExperimentRecipe(obj: object): SchemaResult { return checkSchema("experiments/ExperimentRecipe", obj); } | ||
export function experiments_assertExperimentRecipe(obj: object): asserts obj is ExperimentRecipe { return assertSchema("experiments/ExperimentRecipe", obj); } | ||
@@ -42,5 +52,5 @@ | ||
export function normandy_isPreferenceExperimentArguments(obj: object): obj is PreferenceExperimentArguments { return isSchema("normandy/PreferenceExperimentArguments", obj); } | ||
export function normandy_checkPreferenceExperimentArguments(obj: object): SchemaResult { return checkSchema("normandy/PreferenceExperimentArguments", obj); } | ||
export function normandy_assertPreferenceExperimentArguments(obj: object): asserts obj is PreferenceExperimentArguments { return assertSchema("normandy/PreferenceExperimentArguments", obj); } | ||
export function normandy_isShowHeartbeatArguments(obj: object): obj is ShowHeartbeatArguments { return isSchema("normandy/ShowHeartbeatArguments", obj); } | ||
export function normandy_checkShowHeartbeatArguments(obj: object): SchemaResult { return checkSchema("normandy/ShowHeartbeatArguments", obj); } | ||
export function normandy_assertShowHeartbeatArguments(obj: object): asserts obj is ShowHeartbeatArguments { return assertSchema("normandy/ShowHeartbeatArguments", obj); } | ||
@@ -53,2 +63,7 @@ | ||
export function normandy_isPreferenceRolloutArguments(obj: object): obj is PreferenceRolloutArguments { return isSchema("normandy/PreferenceRolloutArguments", obj); } | ||
export function normandy_checkPreferenceRolloutArguments(obj: object): SchemaResult { return checkSchema("normandy/PreferenceRolloutArguments", obj); } | ||
export function normandy_assertPreferenceRolloutArguments(obj: object): asserts obj is PreferenceRolloutArguments { return assertSchema("normandy/PreferenceRolloutArguments", obj); } | ||
export function normandy_isAddonRolloutArguments(obj: object): obj is AddonRolloutArguments { return isSchema("normandy/AddonRolloutArguments", obj); } | ||
@@ -59,5 +74,5 @@ export function normandy_checkAddonRolloutArguments(obj: object): SchemaResult { return checkSchema("normandy/AddonRolloutArguments", obj); } | ||
export function normandy_isNormandyRecipe(obj: object): obj is NormandyRecipe { return isSchema("normandy/NormandyRecipe", obj); } | ||
export function normandy_checkNormandyRecipe(obj: object): SchemaResult { return checkSchema("normandy/NormandyRecipe", obj); } | ||
export function normandy_assertNormandyRecipe(obj: object): asserts obj is NormandyRecipe { return assertSchema("normandy/NormandyRecipe", obj); } | ||
export function normandy_isPreferenceExperimentArguments(obj: object): obj is PreferenceExperimentArguments { return isSchema("normandy/PreferenceExperimentArguments", obj); } | ||
export function normandy_checkPreferenceExperimentArguments(obj: object): SchemaResult { return checkSchema("normandy/PreferenceExperimentArguments", obj); } | ||
export function normandy_assertPreferenceExperimentArguments(obj: object): asserts obj is PreferenceExperimentArguments { return assertSchema("normandy/PreferenceExperimentArguments", obj); } | ||
@@ -70,2 +85,7 @@ | ||
export function normandy_isMultiPreferenceExperimentArguments(obj: object): obj is MultiPreferenceExperimentArguments { return isSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
export function normandy_checkMultiPreferenceExperimentArguments(obj: object): SchemaResult { return checkSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
export function normandy_assertMultiPreferenceExperimentArguments(obj: object): asserts obj is MultiPreferenceExperimentArguments { return assertSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
export function normandy_isConsoleLogArguments(obj: object): obj is ConsoleLogArguments { return isSchema("normandy/ConsoleLogArguments", obj); } | ||
@@ -76,2 +96,7 @@ export function normandy_checkConsoleLogArguments(obj: object): SchemaResult { return checkSchema("normandy/ConsoleLogArguments", obj); } | ||
export function normandy_isNormandyRecipe(obj: object): obj is NormandyRecipe { return isSchema("normandy/NormandyRecipe", obj); } | ||
export function normandy_checkNormandyRecipe(obj: object): SchemaResult { return checkSchema("normandy/NormandyRecipe", obj); } | ||
export function normandy_assertNormandyRecipe(obj: object): asserts obj is NormandyRecipe { return assertSchema("normandy/NormandyRecipe", obj); } | ||
export function normandy_isAddonRollbackArguments(obj: object): obj is AddonRollbackArguments { return isSchema("normandy/AddonRollbackArguments", obj); } | ||
@@ -82,7 +107,2 @@ export function normandy_checkAddonRollbackArguments(obj: object): SchemaResult { return checkSchema("normandy/AddonRollbackArguments", obj); } | ||
export function normandy_isPreferenceRolloutArguments(obj: object): obj is PreferenceRolloutArguments { return isSchema("normandy/PreferenceRolloutArguments", obj); } | ||
export function normandy_checkPreferenceRolloutArguments(obj: object): SchemaResult { return checkSchema("normandy/PreferenceRolloutArguments", obj); } | ||
export function normandy_assertPreferenceRolloutArguments(obj: object): asserts obj is PreferenceRolloutArguments { return assertSchema("normandy/PreferenceRolloutArguments", obj); } | ||
export function normandy_isMessagingExperimentArguments(obj: object): obj is MessagingExperimentArguments { return isSchema("normandy/MessagingExperimentArguments", obj); } | ||
@@ -93,12 +113,2 @@ export function normandy_checkMessagingExperimentArguments(obj: object): SchemaResult { return checkSchema("normandy/MessagingExperimentArguments", obj); } | ||
export function normandy_isMultiPreferenceExperimentArguments(obj: object): obj is MultiPreferenceExperimentArguments { return isSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
export function normandy_checkMultiPreferenceExperimentArguments(obj: object): SchemaResult { return checkSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
export function normandy_assertMultiPreferenceExperimentArguments(obj: object): asserts obj is MultiPreferenceExperimentArguments { return assertSchema("normandy/MultiPreferenceExperimentArguments", obj); } | ||
export function normandy_isShowHeartbeatArguments(obj: object): obj is ShowHeartbeatArguments { return isSchema("normandy/ShowHeartbeatArguments", obj); } | ||
export function normandy_checkShowHeartbeatArguments(obj: object): SchemaResult { return checkSchema("normandy/ShowHeartbeatArguments", obj); } | ||
export function normandy_assertShowHeartbeatArguments(obj: object): asserts obj is ShowHeartbeatArguments { return assertSchema("normandy/ShowHeartbeatArguments", obj); } | ||
export function normandy_isOptOutStudyArguments(obj: object): obj is OptOutStudyArguments { return isSchema("normandy/OptOutStudyArguments", obj); } | ||
@@ -109,11 +119,1 @@ export function normandy_checkOptOutStudyArguments(obj: object): SchemaResult { return checkSchema("normandy/OptOutStudyArguments", obj); } | ||
export function targeting_isAudience(obj: object): obj is Audience { return isSchema("targeting/Audience", obj); } | ||
export function targeting_checkAudience(obj: object): SchemaResult { return checkSchema("targeting/Audience", obj); } | ||
export function targeting_assertAudience(obj: object): asserts obj is Audience { return assertSchema("targeting/Audience", obj); } | ||
export function features_isFeature(obj: object): obj is Feature { return isSchema("features/Feature", obj); } | ||
export function features_checkFeature(obj: object): SchemaResult { return checkSchema("features/Feature", obj); } | ||
export function features_assertFeature(obj: object): asserts obj is Feature { return assertSchema("features/Feature", obj); } | ||
@@ -12,3 +12,2 @@ export interface Audience { | ||
desktop_telemetry?: string; | ||
firefox_channel: "Nightly" | "Beta" | "Release"; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
535746
11443