Skip to content

Commit

Permalink
Add Account properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nulrich committed Dec 23, 2024
1 parent 81c3d74 commit bab12a5
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 2 deletions.
14 changes: 14 additions & 0 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,20 @@ export interface CommonProperties {
readonly anonymous_id?: string;
[k: string]: unknown;
};
/**
* Account properties
*/
readonly account?: {
/**
* Identifier of the account
*/
readonly id: string;
/**
* Name of the account
*/
readonly name?: string;
[k: string]: unknown;
};
/**
* Device connectivity properties
*/
Expand Down
9 changes: 8 additions & 1 deletion lib/cjs/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export declare type TelemetryUsageEvent = CommonTelemetryProperties & {
/**
* Schema of features usage common across SDKs
*/
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | AddAction | AddError | SetGlobalContext | SetUser | AddFeatureFlagEvaluation;
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | AddAction | AddError | SetGlobalContext | SetUser | SetAccount | AddFeatureFlagEvaluation;
/**
* Schema of browser specific features usage
*/
Expand Down Expand Up @@ -592,6 +592,13 @@ export interface SetUser {
feature: 'set-user';
[k: string]: unknown;
}
export interface SetAccount {
/**
* setAccount, setAccountProperty APIs
*/
feature: 'set-account';
[k: string]: unknown;
}
export interface AddFeatureFlagEvaluation {
/**
* addFeatureFlagEvaluation API
Expand Down
14 changes: 14 additions & 0 deletions lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,20 @@ export interface CommonProperties {
readonly anonymous_id?: string;
[k: string]: unknown;
};
/**
* Account properties
*/
readonly account?: {
/**
* Identifier of the account
*/
readonly id: string;
/**
* Name of the account
*/
readonly name?: string;
[k: string]: unknown;
};
/**
* Device connectivity properties
*/
Expand Down
9 changes: 8 additions & 1 deletion lib/esm/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export declare type TelemetryUsageEvent = CommonTelemetryProperties & {
/**
* Schema of features usage common across SDKs
*/
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | AddAction | AddError | SetGlobalContext | SetUser | AddFeatureFlagEvaluation;
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | AddAction | AddError | SetGlobalContext | SetUser | SetAccount | AddFeatureFlagEvaluation;
/**
* Schema of browser specific features usage
*/
Expand Down Expand Up @@ -592,6 +592,13 @@ export interface SetUser {
feature: 'set-user';
[k: string]: unknown;
}
export interface SetAccount {
/**
* setAccount, setAccountProperty APIs
*/
feature: 'set-account';
[k: string]: unknown;
}
export interface AddFeatureFlagEvaluation {
/**
* addFeatureFlagEvaluation API
Expand Down
19 changes: 19 additions & 0 deletions schemas/rum/_common-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,25 @@
},
"readOnly": true
},
"account": {
"type": "object",
"description": "Account properties",
"additionalProperties": true,
"required": ["id"],
"properties": {
"id": {
"type": "string",
"description": "Identifier of the account",
"readOnly": true
},
"name": {
"type": "string",
"description": "Name of the account",
"readOnly": true
}
},
"readOnly": true
},
"connectivity": {
"type": "object",
"description": "Device connectivity properties",
Expand Down
11 changes: 11 additions & 0 deletions schemas/telemetry/usage/common-features-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@
}
}
},
{
"required": ["feature"],
"title": "SetAccount",
"properties": {
"feature": {
"type": "string",
"description": "setAccount, setAccountProperty APIs",
"const": "set-account"
}
}
},
{
"required": ["feature"],
"title": "AddFeatureFlagEvaluation",
Expand Down

0 comments on commit bab12a5

Please sign in to comment.