1 | "use strict";
|
2 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7 | };
|
8 | var plugin_1 = require('./plugin');
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | var Mixpanel = (function () {
|
27 | function Mixpanel() {
|
28 | }
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | Mixpanel.alias = function (aliasId, originalId) { return; };
|
36 | |
37 |
|
38 |
|
39 |
|
40 | Mixpanel.distinctId = function () { return; };
|
41 | |
42 |
|
43 |
|
44 | Mixpanel.flush = function () { return; };
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 | Mixpanel.identify = function (distinctId) { return; };
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 | Mixpanel.init = function (token) { return; };
|
57 | |
58 |
|
59 |
|
60 |
|
61 |
|
62 | Mixpanel.registerSuperProperties = function (superProperties) { return; };
|
63 | |
64 |
|
65 |
|
66 |
|
67 | Mixpanel.reset = function () { return; };
|
68 | |
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | Mixpanel.track = function (eventName, eventProperties) { return; };
|
75 | |
76 |
|
77 |
|
78 |
|
79 | Mixpanel.showSurvey = function () { return; };
|
80 | Object.defineProperty(Mixpanel, "people", {
|
81 | |
82 |
|
83 |
|
84 |
|
85 | get: function () {
|
86 | return MixpanelPeople;
|
87 | },
|
88 | enumerable: true,
|
89 | configurable: true
|
90 | });
|
91 | ;
|
92 | __decorate([
|
93 | plugin_1.Cordova()
|
94 | ], Mixpanel, "alias", null);
|
95 | __decorate([
|
96 | plugin_1.Cordova()
|
97 | ], Mixpanel, "distinctId", null);
|
98 | __decorate([
|
99 | plugin_1.Cordova()
|
100 | ], Mixpanel, "flush", null);
|
101 | __decorate([
|
102 | plugin_1.Cordova()
|
103 | ], Mixpanel, "identify", null);
|
104 | __decorate([
|
105 | plugin_1.Cordova()
|
106 | ], Mixpanel, "init", null);
|
107 | __decorate([
|
108 | plugin_1.Cordova()
|
109 | ], Mixpanel, "registerSuperProperties", null);
|
110 | __decorate([
|
111 | plugin_1.Cordova()
|
112 | ], Mixpanel, "reset", null);
|
113 | __decorate([
|
114 | plugin_1.Cordova({
|
115 | successIndex: 2,
|
116 | errorIndex: 3
|
117 | })
|
118 | ], Mixpanel, "track", null);
|
119 | __decorate([
|
120 | plugin_1.Cordova()
|
121 | ], Mixpanel, "showSurvey", null);
|
122 | Mixpanel = __decorate([
|
123 | plugin_1.Plugin({
|
124 | pluginName: 'Mixpanel',
|
125 | plugin: 'cordova-plugin-mixpanel',
|
126 | pluginRef: 'mixpanel',
|
127 | repo: 'https://github.com/samzilverberg/cordova-mixpanel-plugin'
|
128 | })
|
129 | ], Mixpanel);
|
130 | return Mixpanel;
|
131 | }());
|
132 | exports.Mixpanel = Mixpanel;
|
133 |
|
134 |
|
135 |
|
136 | var MixpanelPeople = (function () {
|
137 | function MixpanelPeople() {
|
138 | }
|
139 | |
140 |
|
141 |
|
142 |
|
143 |
|
144 | MixpanelPeople.identify = function (distinctId) { return; };
|
145 | |
146 |
|
147 |
|
148 |
|
149 |
|
150 | MixpanelPeople.increment = function (peopleProperties) { return; };
|
151 | |
152 |
|
153 |
|
154 |
|
155 |
|
156 | MixpanelPeople.setPushId = function (pushId) { return; };
|
157 | |
158 |
|
159 |
|
160 |
|
161 |
|
162 | MixpanelPeople.set = function (peopleProperties) { return; };
|
163 | |
164 |
|
165 |
|
166 |
|
167 |
|
168 | MixpanelPeople.setOnce = function (peopleProperties) { return; };
|
169 | |
170 |
|
171 |
|
172 | MixpanelPeople.plugin = 'cordova-plugin-mixpanel';
|
173 | |
174 |
|
175 |
|
176 | MixpanelPeople.pluginRef = 'mixpanel.people';
|
177 | __decorate([
|
178 | plugin_1.Cordova()
|
179 | ], MixpanelPeople, "identify", null);
|
180 | __decorate([
|
181 | plugin_1.Cordova()
|
182 | ], MixpanelPeople, "increment", null);
|
183 | __decorate([
|
184 | plugin_1.Cordova()
|
185 | ], MixpanelPeople, "setPushId", null);
|
186 | __decorate([
|
187 | plugin_1.Cordova()
|
188 | ], MixpanelPeople, "set", null);
|
189 | __decorate([
|
190 | plugin_1.Cordova()
|
191 | ], MixpanelPeople, "setOnce", null);
|
192 | return MixpanelPeople;
|
193 | }());
|
194 | exports.MixpanelPeople = MixpanelPeople;
|
195 |
|
\ | No newline at end of file |