finetune property naming
This commit is contained in:
parent
2b5056085c
commit
08d37dc037
2
dist/smartanalytics.classes.analytics.d.ts
vendored
2
dist/smartanalytics.classes.analytics.d.ts
vendored
@ -9,5 +9,5 @@ export declare class Analytics {
|
|||||||
apiEndPointArg: string;
|
apiEndPointArg: string;
|
||||||
secretKeyArg?: string;
|
secretKeyArg?: string;
|
||||||
});
|
});
|
||||||
recordEvent(identifierArg: string, analyticsDataArg: any): Promise<void>;
|
recordEvent(eventIdentifierArg: string, analyticsDataArg: any): Promise<void>;
|
||||||
}
|
}
|
||||||
|
6
dist/smartanalytics.classes.analytics.js
vendored
6
dist/smartanalytics.classes.analytics.js
vendored
@ -19,12 +19,12 @@ class Analytics {
|
|||||||
this.secretKey = optionsArg.secretKeyArg;
|
this.secretKey = optionsArg.secretKeyArg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
recordEvent(identifierArg, analyticsDataArg) {
|
recordEvent(eventIdentifierArg, analyticsDataArg) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let dataToSend = {
|
let dataToSend = {
|
||||||
projectId: this.projectId,
|
projectId: this.projectId,
|
||||||
appName: this.appName,
|
appName: this.appName,
|
||||||
identifier: identifierArg,
|
eventIdentifier: eventIdentifierArg,
|
||||||
analyticsData: analyticsDataArg
|
analyticsData: analyticsDataArg
|
||||||
};
|
};
|
||||||
yield plugins.smartrequest.post(this.apiEndPoint, {
|
yield plugins.smartrequest.post(this.apiEndPoint, {
|
||||||
@ -40,4 +40,4 @@ class Analytics {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.Analytics = Analytics;
|
exports.Analytics = Analytics;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhbmFseXRpY3MuY2xhc3Nlcy5hbmFseXRpY3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGFuYWx5dG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UFPLEVBQUU7b0JBQ1AsY0FBYyxFQUFFLElBQUksQ0FBQyxTQUFTO29CQUM5QixjQUFjLEVBQUUsa0JBQWtCO2lCQUNuQztnQkFDRCxXQUFXLEVBQUUsVUFBVTthQUN4QixDQUFDLENBQUMsS0FBSyxDQUFDLEdBQUc7Z0JBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQTtZQUNsQixDQUFDLENBQUMsQ0FBQTtRQUNKLENBQUM7S0FBQTtDQUNGO0FBcENELDhCQW9DQyJ9
|
@ -19,11 +19,11 @@ export class Analytics {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async recordEvent (identifierArg: string, analyticsDataArg: any) {
|
async recordEvent (eventIdentifierArg: string, analyticsDataArg: any) {
|
||||||
let dataToSend = {
|
let dataToSend = {
|
||||||
projectId: this.projectId,
|
projectId: this.projectId,
|
||||||
appName: this.appName,
|
appName: this.appName,
|
||||||
identifier: identifierArg,
|
eventIdentifier: eventIdentifierArg,
|
||||||
analyticsData: analyticsDataArg
|
analyticsData: analyticsDataArg
|
||||||
}
|
}
|
||||||
await plugins.smartrequest.post(this.apiEndPoint, {
|
await plugins.smartrequest.post(this.apiEndPoint, {
|
||||||
|
Loading…
Reference in New Issue
Block a user