@stripchatdev/ext-helper 0.5.0 → 0.6.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.
- package/dist/helpers/index.d.ts +16 -0
- package/dist/helpers/react.d.ts +16 -0
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
package/dist/helpers/index.d.ts
CHANGED
|
@@ -145,6 +145,18 @@ declare type TV1ActionResult = {
|
|
|
145
145
|
code: number;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
+
declare type TV1AmplitudePropertyValue = string | number | boolean | null | undefined | TV1AmplitudePropertyValue[] | {
|
|
149
|
+
[key: string]: TV1AmplitudePropertyValue;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
declare type TV1AmplitudeTrackParams = {
|
|
153
|
+
eventProperties?: Record<string, TV1AmplitudePropertyValue>;
|
|
154
|
+
/** Name of the event; must be registered on the host, otherwise the request fails */
|
|
155
|
+
eventType: string;
|
|
156
|
+
/** Applied to the current user with `$set` semantics */
|
|
157
|
+
userProperties?: Record<string, TV1AmplitudePropertyValue>;
|
|
158
|
+
};
|
|
159
|
+
|
|
148
160
|
declare type TV1AnalyticsTrackParams = TV1UiInteractionTrackParams;
|
|
149
161
|
|
|
150
162
|
declare type TV1ChatEvents = {
|
|
@@ -1114,6 +1126,10 @@ declare type TV1StorageMethods = {
|
|
|
1114
1126
|
};
|
|
1115
1127
|
|
|
1116
1128
|
declare type TV1SystemMethods = {
|
|
1129
|
+
'v1.system.amplitude.track': {
|
|
1130
|
+
params: TV1AmplitudeTrackParams;
|
|
1131
|
+
result: null;
|
|
1132
|
+
};
|
|
1117
1133
|
'v1.system.analytics.track': {
|
|
1118
1134
|
params: TV1AnalyticsTrackParams;
|
|
1119
1135
|
result: null;
|
package/dist/helpers/react.d.ts
CHANGED
|
@@ -79,6 +79,18 @@ declare type TV1ActionResult = {
|
|
|
79
79
|
code: number;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
declare type TV1AmplitudePropertyValue = string | number | boolean | null | undefined | TV1AmplitudePropertyValue[] | {
|
|
83
|
+
[key: string]: TV1AmplitudePropertyValue;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
declare type TV1AmplitudeTrackParams = {
|
|
87
|
+
eventProperties?: Record<string, TV1AmplitudePropertyValue>;
|
|
88
|
+
/** Name of the event; must be registered on the host, otherwise the request fails */
|
|
89
|
+
eventType: string;
|
|
90
|
+
/** Applied to the current user with `$set` semantics */
|
|
91
|
+
userProperties?: Record<string, TV1AmplitudePropertyValue>;
|
|
92
|
+
};
|
|
93
|
+
|
|
82
94
|
declare type TV1AnalyticsTrackParams = TV1UiInteractionTrackParams;
|
|
83
95
|
|
|
84
96
|
declare type TV1ChatEvents = {
|
|
@@ -1048,6 +1060,10 @@ declare type TV1StorageMethods = {
|
|
|
1048
1060
|
};
|
|
1049
1061
|
|
|
1050
1062
|
declare type TV1SystemMethods = {
|
|
1063
|
+
'v1.system.amplitude.track': {
|
|
1064
|
+
params: TV1AmplitudeTrackParams;
|
|
1065
|
+
result: null;
|
|
1066
|
+
};
|
|
1051
1067
|
'v1.system.analytics.track': {
|
|
1052
1068
|
params: TV1AnalyticsTrackParams;
|
|
1053
1069
|
result: null;
|
package/dist/index.d.ts
CHANGED
|
@@ -121,6 +121,18 @@ export declare type TV1ActionResult = {
|
|
|
121
121
|
code: number;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
+
export declare type TV1AmplitudePropertyValue = string | number | boolean | null | undefined | TV1AmplitudePropertyValue[] | {
|
|
125
|
+
[key: string]: TV1AmplitudePropertyValue;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export declare type TV1AmplitudeTrackParams = {
|
|
129
|
+
eventProperties?: Record<string, TV1AmplitudePropertyValue>;
|
|
130
|
+
/** Name of the event; must be registered on the host, otherwise the request fails */
|
|
131
|
+
eventType: string;
|
|
132
|
+
/** Applied to the current user with `$set` semantics */
|
|
133
|
+
userProperties?: Record<string, TV1AmplitudePropertyValue>;
|
|
134
|
+
};
|
|
135
|
+
|
|
124
136
|
export declare type TV1AnalyticsTrackParams = TV1UiInteractionTrackParams;
|
|
125
137
|
|
|
126
138
|
declare type TV1ChatEvents = {
|
|
@@ -1109,6 +1121,10 @@ export declare type TV1StorageStringSetError = TV1ExtensionError<TV1StorageStrin
|
|
|
1109
1121
|
export declare type TV1StorageStringSetErrorCode = 'ERR_CODE_UNSPECIFIED' | 'ERR_STORAGE_VALUE_SIZE_LIMIT_EXCEEDED';
|
|
1110
1122
|
|
|
1111
1123
|
declare type TV1SystemMethods = {
|
|
1124
|
+
'v1.system.amplitude.track': {
|
|
1125
|
+
params: TV1AmplitudeTrackParams;
|
|
1126
|
+
result: null;
|
|
1127
|
+
};
|
|
1112
1128
|
'v1.system.analytics.track': {
|
|
1113
1129
|
params: TV1AnalyticsTrackParams;
|
|
1114
1130
|
result: null;
|