@appgrowstack/app-events 0.0.0-stage → 0.8.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.
@@ -0,0 +1,957 @@
1
+ export const COMMON_CATALOG_SOURCE = {
2
+ "repo": "https://github.com/appgrowstack/app-sdk.git",
3
+ "path": "swift-app-analytics/Schema/common/common.yaml",
4
+ "catalogVersion": 3
5
+ };
6
+ export const COMMON_EVENT_NAMES = ["first_open", "internal_device", "screen_viewed", "tapped", "onboarding_step", "onboarding_completed", "signed_in", "experiment_assigned", "paywall_shown", "paywall_loaded", "paywall_scrolled", "paywall_plan_selected", "paywall_purchase_tapped", "paywall_purchase_result", "paywall_backgrounded", "paywall_closed", "purchase_completed", "restore_completed", "review_requested", "whats_new_shown", "whats_new_closed", "campaign_eligible", "campaign_skipped", "campaign_rejected", "campaigns_stale", "campaign_shown", "campaign_tapped", "campaign_dismissed", "campaign_action_completed", "app_updated", "link_opened"];
7
+ export const COMMON_CATALOG = {
8
+ "name": "common",
9
+ "catalogVersion": 3,
10
+ "events": [
11
+ {
12
+ "name": "first_open",
13
+ "kind": "outcome",
14
+ "dedup": "install",
15
+ "description": "このインストールで初めて起動した。継続率と集団の起点",
16
+ "sentBy": "package",
17
+ "parameters": [
18
+ {
19
+ "key": "kind",
20
+ "type": "enum",
21
+ "values": [
22
+ "fresh",
23
+ "upgraded"
24
+ ],
25
+ "extensible": true
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "name": "internal_device",
31
+ "kind": "outcome",
32
+ "dedup": "install",
33
+ "description": "作り手の端末。集計から外す",
34
+ "sentBy": "package",
35
+ "parameters": []
36
+ },
37
+ {
38
+ "name": "screen_viewed",
39
+ "kind": "screen",
40
+ "dedup": "always",
41
+ "description": "画面が表示された",
42
+ "sentBy": "app",
43
+ "parameters": [
44
+ {
45
+ "key": "screen",
46
+ "type": "enum",
47
+ "values": [
48
+ "onboarding",
49
+ "paywall",
50
+ "settings",
51
+ "whats_new"
52
+ ],
53
+ "extensible": true
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "tapped",
59
+ "kind": "interaction",
60
+ "dedup": "always",
61
+ "description": "計測すると決めたボタンを押した",
62
+ "sentBy": "app",
63
+ "parameters": [
64
+ {
65
+ "key": "target",
66
+ "type": "enum",
67
+ "values": [
68
+ "close",
69
+ "continue",
70
+ "purchase",
71
+ "restore",
72
+ "review",
73
+ "share"
74
+ ],
75
+ "extensible": true
76
+ },
77
+ {
78
+ "key": "screen",
79
+ "type": "enum",
80
+ "values": [
81
+ "onboarding",
82
+ "paywall",
83
+ "settings",
84
+ "whats_new"
85
+ ],
86
+ "extensible": true
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "name": "onboarding_step",
92
+ "kind": "screen",
93
+ "dedup": "always",
94
+ "description": "オンボーディングのステップに来た",
95
+ "sentBy": "app",
96
+ "parameters": [
97
+ {
98
+ "key": "step",
99
+ "type": "enum",
100
+ "values": [
101
+ "paywall"
102
+ ],
103
+ "extensible": true
104
+ },
105
+ {
106
+ "key": "index",
107
+ "type": "count"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "name": "onboarding_completed",
113
+ "kind": "outcome",
114
+ "dedup": "install",
115
+ "description": "オンボーディングを最後まで通った",
116
+ "sentBy": "app",
117
+ "parameters": []
118
+ },
119
+ {
120
+ "name": "signed_in",
121
+ "kind": "outcome",
122
+ "dedup": "always",
123
+ "description": "サインインが成立した",
124
+ "sentBy": "app",
125
+ "parameters": [
126
+ {
127
+ "key": "provider",
128
+ "type": "enum",
129
+ "values": [
130
+ "apple",
131
+ "google",
132
+ "anonymous",
133
+ "email",
134
+ "other"
135
+ ],
136
+ "extensible": true
137
+ },
138
+ {
139
+ "key": "source",
140
+ "type": "enum",
141
+ "values": [
142
+ "onboarding",
143
+ "settings",
144
+ "gate"
145
+ ],
146
+ "extensible": true
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "experiment_assigned",
152
+ "kind": "outcome",
153
+ "dedup": "install",
154
+ "description": "実験の群に入った",
155
+ "sentBy": "app",
156
+ "parameters": [
157
+ {
158
+ "key": "experiment",
159
+ "type": "token",
160
+ "pattern": "[a-z0-9_]{1,40}",
161
+ "maxLength": 64
162
+ },
163
+ {
164
+ "key": "arm",
165
+ "type": "token",
166
+ "pattern": "[a-z0-9_]{1,40}",
167
+ "maxLength": 64
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "paywall_shown",
173
+ "kind": "impression",
174
+ "dedup": "always",
175
+ "description": "ペイウォールが表示された",
176
+ "sentBy": "app",
177
+ "parameters": [
178
+ {
179
+ "key": "source",
180
+ "type": "enum",
181
+ "values": [
182
+ "onboarding",
183
+ "settings",
184
+ "limit"
185
+ ],
186
+ "extensible": true
187
+ },
188
+ {
189
+ "key": "pw_id",
190
+ "type": "token",
191
+ "pattern": "[a-f0-9]{8}",
192
+ "maxLength": 64
193
+ },
194
+ {
195
+ "key": "nth",
196
+ "type": "bucket",
197
+ "edges": [
198
+ 1,
199
+ 2,
200
+ 3,
201
+ 4,
202
+ 5,
203
+ 6,
204
+ 7,
205
+ 8,
206
+ 9,
207
+ 10,
208
+ 11
209
+ ]
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "name": "paywall_loaded",
215
+ "kind": "outcome",
216
+ "dedup": "always",
217
+ "description": "価格を読み終えた",
218
+ "sentBy": "app",
219
+ "parameters": [
220
+ {
221
+ "key": "source",
222
+ "type": "enum",
223
+ "values": [
224
+ "onboarding",
225
+ "settings",
226
+ "limit"
227
+ ],
228
+ "extensible": true
229
+ },
230
+ {
231
+ "key": "pw_id",
232
+ "type": "token",
233
+ "pattern": "[a-f0-9]{8}",
234
+ "maxLength": 64
235
+ },
236
+ {
237
+ "key": "result",
238
+ "type": "enum",
239
+ "values": [
240
+ "ok",
241
+ "unavailable"
242
+ ],
243
+ "extensible": true
244
+ },
245
+ {
246
+ "key": "load_s",
247
+ "type": "number"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "name": "paywall_scrolled",
253
+ "kind": "impression",
254
+ "dedup": "always",
255
+ "description": "ペイウォールの区切りが初めて画面に入った(1回の表示につき区切りごとに1回)",
256
+ "sentBy": "app",
257
+ "parameters": [
258
+ {
259
+ "key": "source",
260
+ "type": "enum",
261
+ "values": [
262
+ "onboarding",
263
+ "settings",
264
+ "limit"
265
+ ],
266
+ "extensible": true
267
+ },
268
+ {
269
+ "key": "pw_id",
270
+ "type": "token",
271
+ "pattern": "[a-f0-9]{8}",
272
+ "maxLength": 64
273
+ },
274
+ {
275
+ "key": "section",
276
+ "type": "enum",
277
+ "values": [
278
+ "benefits",
279
+ "plans",
280
+ "comparison"
281
+ ],
282
+ "extensible": true
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "name": "paywall_plan_selected",
288
+ "kind": "interaction",
289
+ "dedup": "always",
290
+ "description": "プランを切り替えた",
291
+ "sentBy": "app",
292
+ "parameters": [
293
+ {
294
+ "key": "source",
295
+ "type": "enum",
296
+ "values": [
297
+ "onboarding",
298
+ "settings",
299
+ "limit"
300
+ ],
301
+ "extensible": true
302
+ },
303
+ {
304
+ "key": "pw_id",
305
+ "type": "token",
306
+ "pattern": "[a-f0-9]{8}",
307
+ "maxLength": 64
308
+ },
309
+ {
310
+ "key": "to",
311
+ "type": "enum",
312
+ "values": [
313
+ "yearly",
314
+ "monthly",
315
+ "weekly",
316
+ "lifetime"
317
+ ],
318
+ "extensible": true
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "name": "paywall_purchase_tapped",
324
+ "kind": "interaction",
325
+ "dedup": "always",
326
+ "description": "購入ボタンを押した",
327
+ "sentBy": "app",
328
+ "parameters": [
329
+ {
330
+ "key": "source",
331
+ "type": "enum",
332
+ "values": [
333
+ "onboarding",
334
+ "settings",
335
+ "limit"
336
+ ],
337
+ "extensible": true
338
+ },
339
+ {
340
+ "key": "pw_id",
341
+ "type": "token",
342
+ "pattern": "[a-f0-9]{8}",
343
+ "maxLength": 64
344
+ },
345
+ {
346
+ "key": "product",
347
+ "type": "enum",
348
+ "values": [
349
+ "yearly",
350
+ "monthly",
351
+ "weekly",
352
+ "lifetime"
353
+ ],
354
+ "extensible": true
355
+ },
356
+ {
357
+ "key": "open_s",
358
+ "type": "count"
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "name": "paywall_purchase_result",
364
+ "kind": "outcome",
365
+ "dedup": "always",
366
+ "description": "購入の結果が返った",
367
+ "sentBy": "app",
368
+ "parameters": [
369
+ {
370
+ "key": "source",
371
+ "type": "enum",
372
+ "values": [
373
+ "onboarding",
374
+ "settings",
375
+ "limit"
376
+ ],
377
+ "extensible": true
378
+ },
379
+ {
380
+ "key": "pw_id",
381
+ "type": "token",
382
+ "pattern": "[a-f0-9]{8}",
383
+ "maxLength": 64
384
+ },
385
+ {
386
+ "key": "product",
387
+ "type": "enum",
388
+ "values": [
389
+ "yearly",
390
+ "monthly",
391
+ "weekly",
392
+ "lifetime"
393
+ ],
394
+ "extensible": true
395
+ },
396
+ {
397
+ "key": "result",
398
+ "type": "enum",
399
+ "values": [
400
+ "purchased",
401
+ "cancelled",
402
+ "pending",
403
+ "failed"
404
+ ],
405
+ "extensible": true
406
+ },
407
+ {
408
+ "key": "sheet_s",
409
+ "type": "count"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "name": "paywall_backgrounded",
415
+ "kind": "outcome",
416
+ "dedup": "always",
417
+ "description": "ペイウォールを出したままアプリが裏に回った",
418
+ "sentBy": "app",
419
+ "parameters": [
420
+ {
421
+ "key": "source",
422
+ "type": "enum",
423
+ "values": [
424
+ "onboarding",
425
+ "settings",
426
+ "limit"
427
+ ],
428
+ "extensible": true
429
+ },
430
+ {
431
+ "key": "pw_id",
432
+ "type": "token",
433
+ "pattern": "[a-f0-9]{8}",
434
+ "maxLength": 64
435
+ },
436
+ {
437
+ "key": "open_s",
438
+ "type": "count"
439
+ }
440
+ ]
441
+ },
442
+ {
443
+ "name": "paywall_closed",
444
+ "kind": "outcome",
445
+ "dedup": "always",
446
+ "description": "ペイウォールを閉じた",
447
+ "sentBy": "app",
448
+ "parameters": [
449
+ {
450
+ "key": "source",
451
+ "type": "enum",
452
+ "values": [
453
+ "onboarding",
454
+ "settings",
455
+ "limit"
456
+ ],
457
+ "extensible": true
458
+ },
459
+ {
460
+ "key": "pw_id",
461
+ "type": "token",
462
+ "pattern": "[a-f0-9]{8}",
463
+ "maxLength": 64
464
+ },
465
+ {
466
+ "key": "result",
467
+ "type": "enum",
468
+ "values": [
469
+ "purchased",
470
+ "restored",
471
+ "dismissed"
472
+ ],
473
+ "extensible": true
474
+ },
475
+ {
476
+ "key": "via",
477
+ "type": "enum",
478
+ "values": [
479
+ "close_button",
480
+ "later",
481
+ "continue_free",
482
+ "auto",
483
+ "swipe_down"
484
+ ],
485
+ "extensible": true
486
+ },
487
+ {
488
+ "key": "product",
489
+ "type": "enum",
490
+ "values": [
491
+ "yearly",
492
+ "monthly",
493
+ "weekly",
494
+ "lifetime"
495
+ ],
496
+ "extensible": true,
497
+ "optional": true
498
+ },
499
+ {
500
+ "key": "open_s",
501
+ "type": "count"
502
+ }
503
+ ]
504
+ },
505
+ {
506
+ "name": "purchase_completed",
507
+ "kind": "outcome",
508
+ "dedup": "always",
509
+ "description": "ペイウォールの上で購入が成立した(ペイウォールごとの転換に使う。売上と継続の数字は RevenueCat から読む)",
510
+ "sentBy": "app",
511
+ "parameters": [
512
+ {
513
+ "key": "source",
514
+ "type": "enum",
515
+ "values": [
516
+ "onboarding",
517
+ "settings",
518
+ "limit"
519
+ ],
520
+ "extensible": true
521
+ },
522
+ {
523
+ "key": "pw_id",
524
+ "type": "token",
525
+ "pattern": "[a-f0-9]{8}",
526
+ "maxLength": 64
527
+ },
528
+ {
529
+ "key": "product",
530
+ "type": "enum",
531
+ "values": [
532
+ "yearly",
533
+ "monthly",
534
+ "weekly",
535
+ "lifetime"
536
+ ],
537
+ "extensible": true
538
+ }
539
+ ]
540
+ },
541
+ {
542
+ "name": "restore_completed",
543
+ "kind": "outcome",
544
+ "dedup": "always",
545
+ "description": "復元の結果が返った",
546
+ "sentBy": "app",
547
+ "parameters": [
548
+ {
549
+ "key": "source",
550
+ "type": "enum",
551
+ "values": [
552
+ "paywall",
553
+ "settings"
554
+ ],
555
+ "extensible": true
556
+ },
557
+ {
558
+ "key": "result",
559
+ "type": "enum",
560
+ "values": [
561
+ "restored",
562
+ "nothing_to_restore",
563
+ "failed"
564
+ ],
565
+ "extensible": true
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "name": "review_requested",
571
+ "kind": "outcome",
572
+ "dedup": "always",
573
+ "description": "OS の評価の画面を呼んだ(出たかはアプリから分からない。呼んだら1回と数える)",
574
+ "sentBy": "app",
575
+ "parameters": [
576
+ {
577
+ "key": "moment",
578
+ "type": "enum",
579
+ "values": [
580
+ "after_whats_new"
581
+ ],
582
+ "extensible": true
583
+ }
584
+ ]
585
+ },
586
+ {
587
+ "name": "whats_new_shown",
588
+ "kind": "impression",
589
+ "dedup": "always",
590
+ "description": "新しいバージョンのお知らせを出した",
591
+ "sentBy": "app",
592
+ "parameters": [
593
+ {
594
+ "key": "release",
595
+ "type": "token",
596
+ "pattern": "[0-9]{1,3}(\\.[0-9]{1,3}){1,2}",
597
+ "maxLength": 64
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "name": "whats_new_closed",
603
+ "kind": "outcome",
604
+ "dedup": "always",
605
+ "description": "お知らせを閉じた",
606
+ "sentBy": "app",
607
+ "parameters": [
608
+ {
609
+ "key": "release",
610
+ "type": "token",
611
+ "pattern": "[0-9]{1,3}(\\.[0-9]{1,3}){1,2}",
612
+ "maxLength": 64
613
+ },
614
+ {
615
+ "key": "page",
616
+ "type": "count"
617
+ },
618
+ {
619
+ "key": "pages",
620
+ "type": "count"
621
+ },
622
+ {
623
+ "key": "via",
624
+ "type": "enum",
625
+ "values": [
626
+ "close_button",
627
+ "finished",
628
+ "swipe_down"
629
+ ],
630
+ "extensible": true
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "name": "campaign_eligible",
636
+ "kind": "outcome",
637
+ "dedup": "always",
638
+ "description": "判定の holdout まで全部の条件を通った。出す側(treatment)も出さない側(holdout)も記録し、成果の比べはこの人たちで数える",
639
+ "sentBy": "sdk",
640
+ "parameters": [
641
+ {
642
+ "key": "campaign",
643
+ "type": "token",
644
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
645
+ "maxLength": 64
646
+ },
647
+ {
648
+ "key": "set_version",
649
+ "type": "count"
650
+ },
651
+ {
652
+ "key": "trigger",
653
+ "type": "token",
654
+ "pattern": "[a-z0-9_]{1,40}",
655
+ "maxLength": 64
656
+ },
657
+ {
658
+ "key": "side",
659
+ "type": "enum",
660
+ "values": [
661
+ "treatment",
662
+ "holdout"
663
+ ]
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "name": "campaign_skipped",
669
+ "kind": "outcome",
670
+ "dedup": "always",
671
+ "description": "出す側で条件は通ったが出さなかった件と理由",
672
+ "sentBy": "sdk",
673
+ "parameters": [
674
+ {
675
+ "key": "campaign",
676
+ "type": "token",
677
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
678
+ "maxLength": 64
679
+ },
680
+ {
681
+ "key": "set_version",
682
+ "type": "count"
683
+ },
684
+ {
685
+ "key": "trigger",
686
+ "type": "token",
687
+ "pattern": "[a-z0-9_]{1,40}",
688
+ "maxLength": 64
689
+ },
690
+ {
691
+ "key": "reason",
692
+ "type": "enum",
693
+ "values": [
694
+ "busy",
695
+ "lower_priority",
696
+ "missing_locale",
697
+ "image_not_ready",
698
+ "fact_unavailable",
699
+ "withdrawn"
700
+ ]
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "name": "campaign_rejected",
706
+ "kind": "outcome",
707
+ "dedup": "always",
708
+ "description": "件か組を読めなかった・使えなかった(件の id・組のバージョン・理由ごとに1回)",
709
+ "sentBy": "sdk",
710
+ "parameters": [
711
+ {
712
+ "key": "campaign",
713
+ "type": "token",
714
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
715
+ "maxLength": 64
716
+ },
717
+ {
718
+ "key": "set_version",
719
+ "type": "count"
720
+ },
721
+ {
722
+ "key": "reason",
723
+ "type": "enum",
724
+ "values": [
725
+ "parse_error",
726
+ "schema_too_new",
727
+ "invalid",
728
+ "unknown_placement",
729
+ "unknown_action",
730
+ "unknown_asset",
731
+ "unknown_fact",
732
+ "unknown_operator",
733
+ "unknown_target",
734
+ "missing_value",
735
+ "unknown_value",
736
+ "type_mismatch"
737
+ ]
738
+ }
739
+ ]
740
+ },
741
+ {
742
+ "name": "campaigns_stale",
743
+ "kind": "outcome",
744
+ "dedup": "always",
745
+ "description": "手元の組が最後に取れてから cache_hours を過ぎた(組ごとに1回)",
746
+ "sentBy": "sdk",
747
+ "parameters": [
748
+ {
749
+ "key": "set_version",
750
+ "type": "count"
751
+ },
752
+ {
753
+ "key": "hours",
754
+ "type": "count"
755
+ }
756
+ ]
757
+ },
758
+ {
759
+ "name": "campaign_shown",
760
+ "kind": "impression",
761
+ "dedup": "always",
762
+ "description": "キャンペーンの件をプレースメントに出した(system のプレースメントは動きを動かした)",
763
+ "sentBy": "sdk",
764
+ "parameters": [
765
+ {
766
+ "key": "campaign",
767
+ "type": "token",
768
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
769
+ "maxLength": 64
770
+ },
771
+ {
772
+ "key": "set_version",
773
+ "type": "count"
774
+ },
775
+ {
776
+ "key": "trigger",
777
+ "type": "token",
778
+ "pattern": "[a-z0-9_]{1,40}",
779
+ "maxLength": 64
780
+ },
781
+ {
782
+ "key": "placement",
783
+ "type": "token",
784
+ "pattern": "[a-z0-9_]{1,40}",
785
+ "maxLength": 64
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "name": "campaign_tapped",
791
+ "kind": "interaction",
792
+ "dedup": "always",
793
+ "description": "キャンペーンの主のボタンをタップした",
794
+ "sentBy": "sdk",
795
+ "parameters": [
796
+ {
797
+ "key": "campaign",
798
+ "type": "token",
799
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
800
+ "maxLength": 64
801
+ },
802
+ {
803
+ "key": "set_version",
804
+ "type": "count"
805
+ },
806
+ {
807
+ "key": "trigger",
808
+ "type": "token",
809
+ "pattern": "[a-z0-9_]{1,40}",
810
+ "maxLength": 64
811
+ },
812
+ {
813
+ "key": "target",
814
+ "type": "enum",
815
+ "values": [
816
+ "action",
817
+ "link"
818
+ ]
819
+ }
820
+ ]
821
+ },
822
+ {
823
+ "name": "campaign_dismissed",
824
+ "kind": "interaction",
825
+ "dedup": "always",
826
+ "description": "キャンペーンを閉じた・どう閉じたか",
827
+ "sentBy": "sdk",
828
+ "parameters": [
829
+ {
830
+ "key": "campaign",
831
+ "type": "token",
832
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
833
+ "maxLength": 64
834
+ },
835
+ {
836
+ "key": "set_version",
837
+ "type": "count"
838
+ },
839
+ {
840
+ "key": "trigger",
841
+ "type": "token",
842
+ "pattern": "[a-z0-9_]{1,40}",
843
+ "maxLength": 64
844
+ },
845
+ {
846
+ "key": "via",
847
+ "type": "enum",
848
+ "values": [
849
+ "secondary",
850
+ "close_button",
851
+ "swipe_down",
852
+ "outside"
853
+ ]
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "name": "campaign_action_completed",
859
+ "kind": "outcome",
860
+ "dedup": "always",
861
+ "description": "キャンペーンの動き(request_review など)・リンクが終わったか",
862
+ "sentBy": "sdk",
863
+ "parameters": [
864
+ {
865
+ "key": "campaign",
866
+ "type": "token",
867
+ "pattern": "_set|_invalid|[a-z0-9-]{3,40}",
868
+ "maxLength": 64
869
+ },
870
+ {
871
+ "key": "set_version",
872
+ "type": "count"
873
+ },
874
+ {
875
+ "key": "trigger",
876
+ "type": "token",
877
+ "pattern": "[a-z0-9_]{1,40}",
878
+ "maxLength": 64
879
+ },
880
+ {
881
+ "key": "action",
882
+ "type": "token",
883
+ "pattern": "[a-z0-9_]{1,40}",
884
+ "maxLength": 64
885
+ },
886
+ {
887
+ "key": "result",
888
+ "type": "enum",
889
+ "values": [
890
+ "completed",
891
+ "failed",
892
+ "cancelled"
893
+ ]
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "name": "app_updated",
899
+ "kind": "outcome",
900
+ "dedup": "always",
901
+ "description": "アプリのバージョンが上がった最初の起動(キャンペーンの SDK が出し、whats_new のきっかけにする。アプリは自分で送らない)",
902
+ "sentBy": "sdk",
903
+ "parameters": [
904
+ {
905
+ "key": "from_version",
906
+ "type": "token",
907
+ "pattern": "[0-9]+(\\.[0-9]+){1,2}",
908
+ "maxLength": 64
909
+ },
910
+ {
911
+ "key": "to_version",
912
+ "type": "token",
913
+ "pattern": "[0-9]+(\\.[0-9]+){1,2}",
914
+ "maxLength": 64
915
+ }
916
+ ]
917
+ },
918
+ {
919
+ "name": "link_opened",
920
+ "kind": "outcome",
921
+ "dedup": "always",
922
+ "description": "キャンペーンの SDK が製品ページを開いた(kind=store_page)。短いリンクが押されたこと(kind=short)はサーバーが数える",
923
+ "sentBy": "sdk",
924
+ "parameters": [
925
+ {
926
+ "key": "kind",
927
+ "type": "enum",
928
+ "values": [
929
+ "short",
930
+ "store_page"
931
+ ]
932
+ },
933
+ {
934
+ "key": "target",
935
+ "type": "token",
936
+ "pattern": "[a-z][a-z0-9-]{1,63}",
937
+ "maxLength": 64,
938
+ "optional": true
939
+ },
940
+ {
941
+ "key": "campaign",
942
+ "type": "token",
943
+ "pattern": "[a-z0-9_-]{1,64}",
944
+ "maxLength": 64,
945
+ "optional": true
946
+ },
947
+ {
948
+ "key": "code",
949
+ "type": "token",
950
+ "pattern": "[A-Za-z0-9]{8}|[A-Za-z0-9]{16}|[a-z0-9][a-z0-9-]{1,39}",
951
+ "maxLength": 64,
952
+ "optional": true
953
+ }
954
+ ]
955
+ }
956
+ ]
957
+ };