@igaworks/adbrix-react-native-sdk 1.0.1 → 1.0.3-rc.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.
@@ -1,347 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.ABProperty = exports.ABItem = void 0;
7
- class ItemBuilder {
8
- constructor() {
9
- this.item = {};
10
- }
11
- productId(value) {
12
- this.item['abx:product_id'] = {
13
- value,
14
- type: 'string'
15
- };
16
- return this;
17
- }
18
- productName(value) {
19
- this.item['abx:product_name'] = {
20
- value,
21
- type: 'string'
22
- };
23
- return this;
24
- }
25
- price(value) {
26
- this.item['abx:price'] = {
27
- value,
28
- type: 'double'
29
- };
30
- return this;
31
- }
32
- discount(value) {
33
- this.item['abx:discount'] = {
34
- value,
35
- type: 'double'
36
- };
37
- return this;
38
- }
39
- quantity(value) {
40
- this.item['abx:quantity'] = {
41
- value,
42
- type: 'long'
43
- };
44
- return this;
45
- }
46
- category1(value) {
47
- this.item['abx:category1'] = {
48
- value,
49
- type: 'string'
50
- };
51
- return this;
52
- }
53
- category2(value) {
54
- this.item['abx:category2'] = {
55
- value,
56
- type: 'string'
57
- };
58
- return this;
59
- }
60
- category3(value) {
61
- this.item['abx:category3'] = {
62
- value,
63
- type: 'string'
64
- };
65
- return this;
66
- }
67
- category4(value) {
68
- this.item['abx:category4'] = {
69
- value,
70
- type: 'string'
71
- };
72
- return this;
73
- }
74
- category5(value) {
75
- this.item['abx:category5'] = {
76
- value,
77
- type: 'string'
78
- };
79
- return this;
80
- }
81
- currency(value) {
82
- this.item['abx:currency'] = {
83
- value,
84
- type: 'string'
85
- };
86
- return this;
87
- }
88
- customString(key, value) {
89
- this.item[key] = {
90
- value,
91
- type: 'string'
92
- };
93
- return this;
94
- }
95
- customLong(key, value) {
96
- this.item[key] = {
97
- value,
98
- type: 'long'
99
- };
100
- return this;
101
- }
102
- customDouble(key, value) {
103
- this.item[key] = {
104
- value,
105
- type: 'double'
106
- };
107
- return this;
108
- }
109
- customBool(key, value) {
110
- this.item[key] = {
111
- value,
112
- type: 'boolean'
113
- };
114
- return this;
115
- }
116
- build() {
117
- return this.item;
118
- }
119
- }
120
- class PropertiesBuilder {
121
- constructor(initialProperties = {}) {
122
- this.properties = {
123
- ...initialProperties
124
- };
125
- }
126
- items(itemsInput) {
127
- let itemsArray;
128
- if (Array.isArray(itemsInput)) {
129
- itemsArray = itemsInput;
130
- } else if (itemsInput && typeof itemsInput === 'object') {
131
- itemsArray = [itemsInput];
132
- } else {
133
- console.warn('[Properties] items() expects an array or single item object');
134
- return this;
135
- }
136
- this.properties['abx:items'] = itemsArray;
137
- return this;
138
- }
139
- orderId(value) {
140
- this.properties['abx:order_id'] = {
141
- value,
142
- type: 'string'
143
- };
144
- return this;
145
- }
146
- orderSales(value) {
147
- this.properties['abx:order_sales'] = {
148
- value,
149
- type: 'double'
150
- };
151
- return this;
152
- }
153
- deliveryCharge(value) {
154
- this.properties['abx:delivery_charge'] = {
155
- value,
156
- type: 'double'
157
- };
158
- return this;
159
- }
160
- penaltyCharge(value) {
161
- this.properties['abx:penalty_charge'] = {
162
- value,
163
- type: 'double'
164
- };
165
- return this;
166
- }
167
- paymentMethod(value) {
168
- this.properties['abx:payment_method'] = {
169
- value,
170
- type: 'string'
171
- };
172
- return this;
173
- }
174
- discount(value) {
175
- this.properties['abx:discount'] = {
176
- value,
177
- type: 'double'
178
- };
179
- return this;
180
- }
181
- signChannel(value) {
182
- this.properties['abx:sign_channel'] = {
183
- value,
184
- type: 'string'
185
- };
186
- return this;
187
- }
188
- inviteChannel(value) {
189
- this.properties['abx:invite_channel'] = {
190
- value,
191
- type: 'string'
192
- };
193
- return this;
194
- }
195
- sharingChannel(value) {
196
- this.properties['abx:sharing_channel'] = {
197
- value,
198
- type: 'string'
199
- };
200
- return this;
201
- }
202
- category1(value) {
203
- this.properties['abx:category1'] = {
204
- value,
205
- type: 'string'
206
- };
207
- return this;
208
- }
209
- category2(value) {
210
- this.properties['abx:category2'] = {
211
- value,
212
- type: 'string'
213
- };
214
- return this;
215
- }
216
- category3(value) {
217
- this.properties['abx:category3'] = {
218
- value,
219
- type: 'string'
220
- };
221
- return this;
222
- }
223
- category4(value) {
224
- this.properties['abx:category4'] = {
225
- value,
226
- type: 'string'
227
- };
228
- return this;
229
- }
230
- category5(value) {
231
- this.properties['abx:category5'] = {
232
- value,
233
- type: 'string'
234
- };
235
- return this;
236
- }
237
- keyword(value) {
238
- this.properties['abx:keyword'] = {
239
- value,
240
- type: 'string'
241
- };
242
- return this;
243
- }
244
- prevVer(value) {
245
- this.properties['abx:prev_ver'] = {
246
- value,
247
- type: 'string'
248
- };
249
- return this;
250
- }
251
- currVer(value) {
252
- this.properties['abx:curr_ver'] = {
253
- value,
254
- type: 'string'
255
- };
256
- return this;
257
- }
258
- level(value) {
259
- this.properties['abx:level'] = {
260
- value,
261
- type: 'long'
262
- };
263
- return this;
264
- }
265
- stage(value) {
266
- this.properties['abx:stage'] = {
267
- value,
268
- type: 'string'
269
- };
270
- return this;
271
- }
272
- isSkip(value) {
273
- this.properties['abx:is_skip'] = {
274
- value,
275
- type: 'boolean'
276
- };
277
- return this;
278
- }
279
- customDouble(key, value) {
280
- this.properties[key] = {
281
- value,
282
- type: 'double'
283
- };
284
- return this;
285
- }
286
- customLong(key, value) {
287
- this.properties[key] = {
288
- value,
289
- type: 'long'
290
- };
291
- return this;
292
- }
293
- customString(key, value) {
294
- this.properties[key] = {
295
- value,
296
- type: 'string'
297
- };
298
- return this;
299
- }
300
- customBool(key, value) {
301
- this.properties[key] = {
302
- value,
303
- type: 'boolean'
304
- };
305
- return this;
306
- }
307
- build() {
308
- return this.properties;
309
- }
310
- }
311
- const createBuilderMethod = methodName => {
312
- return function (...args) {
313
- const builder = new PropertiesBuilder();
314
- return builder[methodName](...args);
315
- };
316
- };
317
- const ABProperty = exports.ABProperty = {
318
- items: createBuilderMethod('items'),
319
- orderId: createBuilderMethod('orderId'),
320
- orderSales: createBuilderMethod('orderSales'),
321
- deliveryCharge: createBuilderMethod('deliveryCharge'),
322
- penaltyCharge: createBuilderMethod('penaltyCharge'),
323
- paymentMethod: createBuilderMethod('paymentMethod'),
324
- discount: createBuilderMethod('discount'),
325
- signChannel: createBuilderMethod('signChannel'),
326
- inviteChannel: createBuilderMethod('inviteChannel'),
327
- sharingChannel: createBuilderMethod('sharingChannel'),
328
- category1: createBuilderMethod('category1'),
329
- category2: createBuilderMethod('category2'),
330
- category3: createBuilderMethod('category3'),
331
- category4: createBuilderMethod('category4'),
332
- category5: createBuilderMethod('category5'),
333
- keyword: createBuilderMethod('keyword'),
334
- prevVer: createBuilderMethod('prevVer'),
335
- currVer: createBuilderMethod('currVer'),
336
- level: createBuilderMethod('level'),
337
- stage: createBuilderMethod('stage'),
338
- isSkip: createBuilderMethod('isSkip'),
339
- customDouble: createBuilderMethod('customDouble'),
340
- customLong: createBuilderMethod('customLong'),
341
- customString: createBuilderMethod('customString'),
342
- customBool: createBuilderMethod('customBool')
343
- };
344
- const ABItem = () => new ItemBuilder();
345
- exports.ABItem = ABItem;
346
- var _default = exports.default = ABProperty;
347
- //# sourceMappingURL=properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ItemBuilder","constructor","item","productId","value","type","productName","price","discount","quantity","category1","category2","category3","category4","category5","currency","customString","key","customLong","customDouble","customBool","build","PropertiesBuilder","initialProperties","properties","items","itemsInput","itemsArray","Array","isArray","console","warn","orderId","orderSales","deliveryCharge","penaltyCharge","paymentMethod","signChannel","inviteChannel","sharingChannel","keyword","prevVer","currVer","level","stage","isSkip","createBuilderMethod","methodName","args","builder","ABProperty","exports","ABItem","_default","default"],"sourceRoot":"../../src","sources":["properties.js"],"mappings":";;;;;;AACA,MAAMA,WAAW,CAAC;EAChBC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,IAAI,GAAG,CAAC,CAAC;EAChB;EAEAC,SAASA,CAACC,KAAK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CAAC;EAErDpC,SAAS,EAAEoC,mBAAmB,CAAC,WAAW,CAAC;EAC3CnC,SAAS,EAAEmC,mBAAmB,CAAC,WAAW,CAAC;EAC3ClC,SAAS,EAAEkC,mBAAmB,CAAC,WAAW,CAAC;EAC3CjC,SAAS,EAAEiC,mBAAmB,CAAC,WAAW,CAAC;EAC3ChC,SAAS,EAAEgC,mBAAmB,CAAC,WAAW,CAAC;EAC3CN,OAAO,EAAEM,mBAAmB,CAAC,SAAS,CAAC;EAEvCL,OAAO,EAAEK,mBAAmB,CAAC,SAAS,CAAC;EACvCJ,OAAO,EAAEI,mBAAmB,CAAC,SAAS,CAAC;EAEvCH,KAAK,EAAEG,mBAAmB,CAAC,OAAO,CAAC;EACnCF,KAAK,EAAEE,mBAAmB,CAAC,OAAO,CAAC;EACnCD,MAAM,EAAEC,mBAAmB,CAAC,QAAQ,CAAC;EAErC3B,YAAY,EAAE2B,mBAAmB,CAAC,cAAc,CAAC;EACjD5B,UAAU,EAAE4B,mBAAmB,CAAC,YAAY,CAAC;EAC7C9B,YAAY,EAAE8B,mBAAmB,CAAC,cAAc,CAAC;EACjD1B,UAAU,EAAE0B,mBAAmB,CAAC,YAAY;AAC9C,CAAC;AAEM,MAAMM,MAAM,GAAGA,CAAA,KAAM,IAAIpD,WAAW,CAAC,CAAC;AAACmD,OAAA,CAAAC,MAAA,GAAAA,MAAA;AAAA,IAAAC,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAE/BJ,UAAU","ignoreList":[]}
package/lib/index.d.ts DELETED
@@ -1,312 +0,0 @@
1
- export declare class AdbrixDeepLinkCallback {
2
- constructor(result: number, deepLink: string);
3
- readonly result: number;
4
- readonly deepLink: string;
5
- }
6
-
7
- export declare class Adbrix {
8
- static init(params: {
9
- applicationKey: string;
10
- secretKey: string;
11
- }): void;
12
-
13
- static initWithConfig(params: {
14
- applicationKey: string;
15
- secretKey: string;
16
- config?: Record<string, any> | null;
17
- }): void;
18
-
19
- static logEvent(params: {
20
- eventName: string;
21
- properties?: Record<string, any> | null;
22
- }): void;
23
-
24
- static enableSDK(): void;
25
- static disableSDK(): void;
26
-
27
- static blockDeferredDeepLinkLaunch(): Promise<AdbrixDeepLinkCallback | null>;
28
-
29
- static attAuthorized(authorized: boolean): void;
30
-
31
- }
32
-
33
- export interface ABEventType {
34
- LOGIN: string;
35
- LOGOUT: string;
36
- SIGN_UP: string;
37
- USE_CREDIT: string;
38
- APP_UPDATE: string;
39
- INVITE: string;
40
- PURCHASE: string;
41
- LEVEL_ACHIEVED: string;
42
- TUTORIAL_COMPLETED: string;
43
- CHARACTER_CREATED: string;
44
- STAGE_CLEARED: string;
45
- REFUND: string;
46
- ADD_TO_CART: string;
47
- ADD_TO_WISHLIST: string;
48
- PRODUCT_VIEW: string;
49
- CATEGORY_VIEW: string;
50
- REVIEW_ORDER: string;
51
- SEARCH: string;
52
- SHARE: string;
53
- VIEW_HOME: string;
54
- LIST_VIEW: string;
55
- CART_VIEW: string;
56
- PAYMENT_INFO_ADDED: string;
57
- }
58
-
59
- export interface ABEventPropertyType {
60
- IS_SKIP: string;
61
- LEVEL: string;
62
- STAGE: string;
63
- PREV_VER: string;
64
- CURR_VER: string;
65
- KEYWORD: string;
66
- SHARING_CHANNEL: string;
67
- SIGN_CHANNEL: string;
68
- INVITE_CHANNEL: string;
69
- ORDER_ID: string;
70
- DELIVERY_CHARGE: string;
71
- PENALTY_CHARGE: string;
72
- PAYMENT_METHOD: string;
73
- ORDER_SALES: string;
74
- DISCOUNT: string;
75
- CATEGORY1: string;
76
- CATEGORY2: string;
77
- CATEGORY3: string;
78
- CATEGORY4: string;
79
- CATEGORY5: string;
80
- ITEMS: string;
81
- ITEM_PRODUCT_ID: string;
82
- ITEM_PRODUCT_NAME: string;
83
- ITEM_PRICE: string;
84
- ITEM_QUANTITY: string;
85
- ITEM_DISCOUNT: string;
86
- ITEM_CURRENCY: string;
87
- ITEM_CATEGORY1: string;
88
- ITEM_CATEGORY2: string;
89
- ITEM_CATEGORY3: string;
90
- ITEM_CATEGORY4: string;
91
- ITEM_CATEGORY5: string;
92
- }
93
-
94
- export interface ABCurrencyType {
95
- KRW: string;
96
- USD: string;
97
- JPY: string;
98
- EUR: string;
99
- GBP: string;
100
- CNY: string;
101
- TWD: string;
102
- HKD: string;
103
- IDR: string;
104
- INR: string;
105
- RUB: string;
106
- THB: string;
107
- VND: string;
108
- MYR: string;
109
- }
110
-
111
- export interface ABConfigType {
112
- IOS_LOG_ENABLE: string;
113
- ANDROID_LOG_ENABLE: string;
114
- ANDROID_LOG_LEVEL: string;
115
- ANDROID_COLLECT_GOOGLE_ADVERTISING_ID: string;
116
- IOS_TRACKING_TIMEOUT: string;
117
- }
118
-
119
- export interface ABDeepLinkResultType {
120
- PROCESSED: number;
121
- ORGANIC: number;
122
- TRACKING_LINK_SETTINGS_INCORRECTLY: number;
123
- ORGANIC_NCPI_IN_PROCESS: number;
124
- NO_CONVERSION: number;
125
- }
126
-
127
- export interface ABAndroidLogLevelType {
128
- VERBOSE: number;
129
- DEBUG: number;
130
- INFO: number;
131
- WARN: number;
132
- ERROR: number;
133
- ASSERT_LEVEL: number;
134
- }
135
-
136
- export interface ABiOSTrackingTimeoutType {
137
- TIMEOUT_60: number;
138
- TIMEOUT_120: number;
139
- TIMEOUT_180: number;
140
- }
141
-
142
- export interface ABInviteChannelType {
143
- KAKAO: string;
144
- NAVER: string;
145
- LINE: string;
146
- GOOGLE: string;
147
- FACEBOOK: string;
148
- TWITTER: string;
149
- WHATS_APP: string;
150
- QQ: string;
151
- WE_CHAT: string;
152
- ETC: string;
153
- }
154
-
155
- export interface ABPaymentMethodType {
156
- CREDIT_CARD: string;
157
- BANK_TRANSFER: string;
158
- MOBILE_PAYMENT: string;
159
- GIFT_CARD: string;
160
- PAYPAL: string;
161
- POINTS: string;
162
- ETC: string;
163
- }
164
-
165
- export interface ABSharingChannelType {
166
- FACEBOOK: string;
167
- KAKAO_TALK: string;
168
- KAKAO_STORY: string;
169
- LINE: string;
170
- WHATS_APP: string;
171
- QQ: string;
172
- WE_CHAT: string;
173
- SMS: string;
174
- EMAIL: string;
175
- COPY_URL: string;
176
- ETC: string;
177
- }
178
-
179
- export interface ABSignUpChannelType {
180
- KAKAO: string;
181
- NAVER: string;
182
- LINE: string;
183
- GOOGLE: string;
184
- FACEBOOK: string;
185
- TWITTER: string;
186
- WHATS_APP: string;
187
- QQ: string;
188
- WE_CHAT: string;
189
- ETC: string;
190
- SKT_ID: string;
191
- APPLE_ID: string;
192
- USER_ID: string;
193
- }
194
-
195
- export declare const ABEvent: ABEventType;
196
- export declare const ABEventProperty: ABEventPropertyType;
197
- export declare const ABCurrency: ABCurrencyType;
198
- export declare const ABInviteChannel: ABInviteChannelType;
199
- export declare const ABPaymentMethod: ABPaymentMethodType;
200
- export declare const ABSharingChannel: ABSharingChannelType;
201
- export declare const ABSignUpChannel: ABSignUpChannelType;
202
- export declare const ABConfig: ABConfigType;
203
- export declare const ABDeepLinkResult: ABDeepLinkResultType;
204
- export declare const ABAndroidLogLevel: ABAndroidLogLevelType;
205
- export declare const ABiOSTrackingTimeout: ABiOSTrackingTimeoutType;
206
-
207
- export type ABCurrencyValue = ABCurrencyType[keyof ABCurrencyType];
208
- export type ABInviteChannelValue = ABInviteChannelType[keyof ABInviteChannelType];
209
- export type ABPaymentMethodValue = ABPaymentMethodType[keyof ABPaymentMethodType];
210
- export type ABSharingChannelValue = ABSharingChannelType[keyof ABSharingChannelType];
211
- export type ABSignUpChannelValue = ABSignUpChannelType[keyof ABSignUpChannelType];
212
-
213
- export interface TypedValue {
214
- value: any;
215
- type: 'string' | 'long' | 'double' | 'boolean';
216
- }
217
-
218
- export declare class ItemBuilder {
219
- productId(value: string): ItemBuilder;
220
- productName(value: string): ItemBuilder;
221
- price(value: number): ItemBuilder;
222
- discount(value: number): ItemBuilder;
223
- quantity(value: number): ItemBuilder;
224
- category1(value: string): ItemBuilder;
225
- category2(value: string): ItemBuilder;
226
- category3(value: string): ItemBuilder;
227
- category4(value: string): ItemBuilder;
228
- category5(value: string): ItemBuilder;
229
- currency(value: ABCurrencyValue): ItemBuilder;
230
-
231
- customString(key: string, value: string): ItemBuilder;
232
- customLong(key: string, value: number): ItemBuilder;
233
- customDouble(key: string, value: number): ItemBuilder;
234
- customBool(key: string, value: boolean): ItemBuilder;
235
-
236
- build(): Record<string, TypedValue>;
237
- }
238
-
239
- export declare class PropertiesBuilder {
240
- items(itemsInput: Array<Record<string, TypedValue> | Record<string, any>> | Record<string, TypedValue> | Record<string, any>): PropertiesBuilder;
241
-
242
- // Order 관련
243
- orderId(value: string): PropertiesBuilder;
244
- orderSales(value: number): PropertiesBuilder;
245
- deliveryCharge(value: number): PropertiesBuilder;
246
- penaltyCharge(value: number): PropertiesBuilder;
247
- paymentMethod(value: ABPaymentMethodValue): PropertiesBuilder;
248
- discount(value: number): PropertiesBuilder;
249
-
250
- // User 관련
251
- signChannel(value: ABSignUpChannelValue): PropertiesBuilder;
252
- inviteChannel(value: ABInviteChannelValue): PropertiesBuilder;
253
- sharingChannel(value: ABSharingChannelValue): PropertiesBuilder;
254
-
255
- // Common
256
- category1(value: string): PropertiesBuilder;
257
- category2(value: string): PropertiesBuilder;
258
- category3(value: string): PropertiesBuilder;
259
- category4(value: string): PropertiesBuilder;
260
- category5(value: string): PropertiesBuilder;
261
- keyword(value: string): PropertiesBuilder;
262
-
263
- // Version
264
- prevVer(value: string): PropertiesBuilder;
265
- currVer(value: string): PropertiesBuilder;
266
-
267
- // Game
268
- level(value: number): PropertiesBuilder;
269
- stage(value: string): PropertiesBuilder;
270
- isSkip(value: boolean): PropertiesBuilder;
271
-
272
- // Custom
273
- customDouble(key: string, value: number): PropertiesBuilder;
274
- customLong(key: string, value: number): PropertiesBuilder;
275
- customString(key: string, value: string): PropertiesBuilder;
276
- customBool(key: string, value: boolean): PropertiesBuilder;
277
-
278
- build(): Record<string, TypedValue>;
279
- }
280
-
281
- export interface PropertiesType {
282
- items: (itemsInput: Array<Record<string, TypedValue> | Record<string, any>> | Record<string, TypedValue> | Record<string, any>) => PropertiesBuilder;
283
- orderId: (value: string) => PropertiesBuilder;
284
- orderSales: (value: number) => PropertiesBuilder;
285
- deliveryCharge: (value: number) => PropertiesBuilder;
286
- penaltyCharge: (value: number) => PropertiesBuilder;
287
- paymentMethod: (value: ABPaymentMethodValue) => PropertiesBuilder;
288
- discount: (value: number) => PropertiesBuilder;
289
- signChannel: (value: ABSignUpChannelValue) => PropertiesBuilder;
290
- inviteChannel: (value: ABInviteChannelValue) => PropertiesBuilder;
291
- sharingChannel: (value: ABSharingChannelValue) => PropertiesBuilder;
292
- category1: (value: string) => PropertiesBuilder;
293
- category2: (value: string) => PropertiesBuilder;
294
- category3: (value: string) => PropertiesBuilder;
295
- category4: (value: string) => PropertiesBuilder;
296
- category5: (value: string) => PropertiesBuilder;
297
- keyword: (value: string) => PropertiesBuilder;
298
- prevVer: (value: string) => PropertiesBuilder;
299
- currVer: (value: string) => PropertiesBuilder;
300
- level: (value: number) => PropertiesBuilder;
301
- stage: (value: string) => PropertiesBuilder;
302
- isSkip: (value: boolean) => PropertiesBuilder;
303
- customDouble: (key: string, value: number) => PropertiesBuilder;
304
- customLong: (key: string, value: number) => PropertiesBuilder;
305
- customString: (key: string, value: string) => PropertiesBuilder;
306
- customBool: (key: string, value: boolean) => PropertiesBuilder;
307
- }
308
-
309
- export declare const ABProperty: PropertiesType;
310
- export declare const ABItem: () => ItemBuilder;
311
-
312
- export default Adbrix;