@appgrowstack/app-contract 0.0.0-stage → 0.1.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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/access.d.ts +746 -0
- package/dist/access.js +144 -0
- package/dist/audience.d.ts +34 -0
- package/dist/audience.js +44 -0
- package/dist/creatives.d.ts +313 -0
- package/dist/creatives.js +301 -0
- package/dist/d1.d.ts +4791 -0
- package/dist/d1.js +1227 -0
- package/dist/events.d.ts +16 -0
- package/dist/events.js +27 -0
- package/dist/generated/schema.d.ts +17173 -0
- package/dist/generated/schema.js +4 -0
- package/dist/http.d.ts +3362 -0
- package/dist/http.js +349 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -0
- package/dist/ledger.d.ts +16 -0
- package/dist/ledger.js +21 -0
- package/dist/prices.d.ts +25 -0
- package/dist/prices.js +41 -0
- package/dist/registry.d.ts +7 -0
- package/dist/registry.js +8 -0
- package/dist/revenuecat.d.ts +5 -0
- package/dist/revenuecat.js +43 -0
- package/dist/reviews.d.ts +10 -0
- package/dist/reviews.js +11 -0
- package/dist/rpc.d.ts +929 -0
- package/dist/rpc.js +111 -0
- package/dist/sessions.d.ts +34 -0
- package/dist/sessions.js +78 -0
- package/dist/touch.d.ts +28 -0
- package/dist/touch.js +49 -0
- package/package.json +34 -4
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const campaignEventNames: readonly ["campaign_eligible", "campaign_skipped", "campaign_rejected", "campaigns_stale", "campaigns_loaded", "campaign_shown", "campaign_tapped", "campaign_dismissed", "campaign_action_completed"];
|
|
2
|
+
/** whats_new のきっかけ。SDK がバージョンの上がった最初の起動で出す */
|
|
3
|
+
export declare const appEventNames: readonly ["app_updated", "app_open"];
|
|
4
|
+
export declare const linkEventNames: readonly ["link_opened", "attribution_recorded", "invite_sent", "invite_accepted"];
|
|
5
|
+
export declare const supportEventNames: readonly ["support_ticket_created", "support_ticket_answered", "support_ticket_resolved"];
|
|
6
|
+
/** 型 survey の答え。SDK が submit_answer の答えから作り、アプリの計測に渡す(schema/inapp/events.schema.json)。どの件もきっかけにしない */
|
|
7
|
+
export declare const surveyEventNames: readonly ["survey_answered"];
|
|
8
|
+
/** R2 が RevenueCat の1件から残す出来事(K8-1。props は type・product_id・presented_offering_id・price_usd) */
|
|
9
|
+
export declare const subscriptionEventNames: readonly ["subscription_changed"];
|
|
10
|
+
/** アプリが撃つペイウォールとオンボーディングの出来事。R9 の ConfigReport のペイウォールの物差しが読む(K8-1) */
|
|
11
|
+
export declare const paywallEventNames: readonly ["paywall_shown", "paywall_closed", "paywall_purchase_tapped", "onboarding_step"];
|
|
12
|
+
/** R9 設定の SDK が作る出来事(schema/config/events.schema.json) */
|
|
13
|
+
export declare const configEventNames: readonly ["config_exposed", "config_rejected"];
|
|
14
|
+
export type AppGrowStackEventName = (typeof campaignEventNames)[number] | (typeof appEventNames)[number] | (typeof linkEventNames)[number] | (typeof supportEventNames)[number] | (typeof surveyEventNames)[number] | (typeof configEventNames)[number] | (typeof subscriptionEventNames)[number] | (typeof paywallEventNames)[number];
|
|
15
|
+
/** SDK がきっかけにしない出来事の頭(自分の出来事で自分を動かさない) */
|
|
16
|
+
export declare const NON_TRIGGER_PREFIXES: readonly ["campaign_", "campaigns_", "survey_"];
|
package/dist/events.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// app-growth が作る・読む出来事の名前(<文脈>_<過去形>)。形の正は schema/(inapp/events・config/events・links・support)。
|
|
2
|
+
// 共通のカタログ(app-sdk の swift-app-analytics/Schema/common/common.yaml・sent_by: sdk)に入れる名前はここと同じにする
|
|
3
|
+
export const campaignEventNames = [
|
|
4
|
+
"campaign_eligible",
|
|
5
|
+
"campaign_skipped",
|
|
6
|
+
"campaign_rejected",
|
|
7
|
+
"campaigns_stale",
|
|
8
|
+
"campaigns_loaded",
|
|
9
|
+
"campaign_shown",
|
|
10
|
+
"campaign_tapped",
|
|
11
|
+
"campaign_dismissed",
|
|
12
|
+
"campaign_action_completed",
|
|
13
|
+
];
|
|
14
|
+
/** whats_new のきっかけ。SDK がバージョンの上がった最初の起動で出す */
|
|
15
|
+
export const appEventNames = ["app_updated", "app_open"];
|
|
16
|
+
export const linkEventNames = ["link_opened", "attribution_recorded", "invite_sent", "invite_accepted"];
|
|
17
|
+
export const supportEventNames = ["support_ticket_created", "support_ticket_answered", "support_ticket_resolved"];
|
|
18
|
+
/** 型 survey の答え。SDK が submit_answer の答えから作り、アプリの計測に渡す(schema/inapp/events.schema.json)。どの件もきっかけにしない */
|
|
19
|
+
export const surveyEventNames = ["survey_answered"];
|
|
20
|
+
/** R2 が RevenueCat の1件から残す出来事(K8-1。props は type・product_id・presented_offering_id・price_usd) */
|
|
21
|
+
export const subscriptionEventNames = ["subscription_changed"];
|
|
22
|
+
/** アプリが撃つペイウォールとオンボーディングの出来事。R9 の ConfigReport のペイウォールの物差しが読む(K8-1) */
|
|
23
|
+
export const paywallEventNames = ["paywall_shown", "paywall_closed", "paywall_purchase_tapped", "onboarding_step"];
|
|
24
|
+
/** R9 設定の SDK が作る出来事(schema/config/events.schema.json) */
|
|
25
|
+
export const configEventNames = ["config_exposed", "config_rejected"];
|
|
26
|
+
/** SDK がきっかけにしない出来事の頭(自分の出来事で自分を動かさない) */
|
|
27
|
+
export const NON_TRIGGER_PREFIXES = ["campaign_", "campaigns_", "survey_"];
|