@trycourier/courier-react-native
Version:
Inbox, Push Notifications, and Preferences for React Native
25 lines (23 loc) • 793 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TrackingClient = void 0;
var _Modules = require("../Modules");
class TrackingClient {
constructor(clientId) {
this.clientId = clientId;
}
/**
* Posts a tracking URL with associated event data.
* @param props - The properties for posting the tracking URL.
* @param props.url - The tracking URL to be posted.
* @param props.event - The CourierTrackingEvent associated with the URL.
* @returns A promise that resolves when the tracking URL is successfully posted.
*/
async postTrackingUrl(props) {
await _Modules.Modules.Client.postTrackingUrl(this.clientId, props.url, props.event);
}
}
exports.TrackingClient = TrackingClient;
//# sourceMappingURL=TrackingClient.js.map