Skip to content

Commit a2a2796

Browse files
add start/stop action telemetry type
1 parent c423741 commit a2a2796

3 files changed

Lines changed: 52 additions & 2 deletions

File tree

lib/cjs/generated/telemetry.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export declare type TelemetryUsageEvent = CommonTelemetryProperties & {
491491
/**
492492
* Schema of features usage common across SDKs
493493
*/
494-
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
494+
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | StartAction | StopAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
495495
/**
496496
* Schema of browser specific features usage
497497
*/
@@ -695,6 +695,20 @@ export interface AddAction {
695695
feature: 'add-action';
696696
[k: string]: unknown;
697697
}
698+
export interface StartAction {
699+
/**
700+
* startAction API
701+
*/
702+
feature: 'start-action';
703+
[k: string]: unknown;
704+
}
705+
export interface StopAction {
706+
/**
707+
* stopAction API
708+
*/
709+
feature: 'stop-action';
710+
[k: string]: unknown;
711+
}
698712
export interface AddError {
699713
/**
700714
* addError API

lib/esm/generated/telemetry.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export declare type TelemetryUsageEvent = CommonTelemetryProperties & {
491491
/**
492492
* Schema of features usage common across SDKs
493493
*/
494-
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
494+
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | StartAction | StopAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
495495
/**
496496
* Schema of browser specific features usage
497497
*/
@@ -695,6 +695,20 @@ export interface AddAction {
695695
feature: 'add-action';
696696
[k: string]: unknown;
697697
}
698+
export interface StartAction {
699+
/**
700+
* startAction API
701+
*/
702+
feature: 'start-action';
703+
[k: string]: unknown;
704+
}
705+
export interface StopAction {
706+
/**
707+
* stopAction API
708+
*/
709+
feature: 'stop-action';
710+
[k: string]: unknown;
711+
}
698712
export interface AddError {
699713
/**
700714
* addError API

schemas/telemetry/usage/common-features-schema.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,28 @@
9898
}
9999
}
100100
},
101+
{
102+
"required": ["feature"],
103+
"title": "StartAction",
104+
"properties": {
105+
"feature": {
106+
"type": "string",
107+
"description": "startAction API",
108+
"const": "start-action"
109+
}
110+
}
111+
},
112+
{
113+
"required": ["feature"],
114+
"title": "StopAction",
115+
"properties": {
116+
"feature": {
117+
"type": "string",
118+
"description": "stopAction API",
119+
"const": "stop-action"
120+
}
121+
}
122+
},
101123
{
102124
"required": ["feature"],
103125
"title": "AddError",

0 commit comments

Comments
 (0)