@trycourier/courier-react-native
Version:
Inbox, Push Notifications, and Preferences for React Native
33 lines (32 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CourierClient = void 0;
var _ = require("..");
var _ClientModule = require("./ClientModule");
var _InboxClient = require("./InboxClient");
var _PreferenceClient = require("./PreferenceClient");
var _TokenClient = require("./TokenClient");
var _TrackingClient = require("./TrackingClient");
class CourierClient extends _ClientModule.ClientModule {
constructor(props) {
const options = {
userId: props.userId,
showLogs: props.showLogs ?? __DEV__,
jwt: props.jwt,
clientKey: props.clientKey,
connectionId: props.clientKey,
tenantId: props.tenantId
};
super(options);
this.options = options;
this.tokens = new _TokenClient.TokenClient(this.clientId);
this.brands = new _.BrandClient(this.clientId);
this.inbox = new _InboxClient.InboxClient(this.clientId);
this.preferences = new _PreferenceClient.PreferenceClient(this.clientId);
this.tracking = new _TrackingClient.TrackingClient(this.clientId);
}
}
exports.CourierClient = CourierClient;
//# sourceMappingURL=CourierClient.js.map