@revenuecat/purchases-typescript-internal 18.38.0 → 19.0.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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/paywallInteractionEvent.d.ts +49 -0
- package/dist/paywallInteractionEvent.js +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -24,3 +24,4 @@ __exportStar(require("./callbackTypes"), exports);
|
|
|
24
24
|
__exportStar(require("./webRedemption"), exports);
|
|
25
25
|
__exportStar(require("./storefront"), exports);
|
|
26
26
|
__exportStar(require("./virtualCurrency"), exports);
|
|
27
|
+
__exportStar(require("./paywallInteractionEvent"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A paywall control interaction, as delivered to the paywall listener's `onInteraction`.
|
|
3
|
+
* Keys use the snake_case names documented for the `paywall_component_interacted` event; keys that do
|
|
4
|
+
* not apply are omitted.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface PaywallInteractionEvent {
|
|
8
|
+
readonly timestamp: number;
|
|
9
|
+
readonly session_id: string;
|
|
10
|
+
readonly offering_id: string;
|
|
11
|
+
readonly paywall_id?: string;
|
|
12
|
+
readonly paywall_revision: number;
|
|
13
|
+
readonly display_mode?: string;
|
|
14
|
+
readonly dark_mode?: boolean;
|
|
15
|
+
readonly locale?: string;
|
|
16
|
+
readonly component_type: string;
|
|
17
|
+
readonly component_value: string;
|
|
18
|
+
readonly component_name?: string;
|
|
19
|
+
readonly component_url?: string;
|
|
20
|
+
readonly origin_index?: number;
|
|
21
|
+
readonly destination_index?: number;
|
|
22
|
+
readonly origin_context_name?: string;
|
|
23
|
+
readonly destination_context_name?: string;
|
|
24
|
+
readonly default_index?: number;
|
|
25
|
+
readonly origin_package_id?: string;
|
|
26
|
+
readonly destination_package_id?: string;
|
|
27
|
+
readonly default_package_id?: string;
|
|
28
|
+
readonly current_package_id?: string;
|
|
29
|
+
readonly resulting_package_id?: string;
|
|
30
|
+
readonly origin_product_id?: string;
|
|
31
|
+
readonly destination_product_id?: string;
|
|
32
|
+
readonly default_product_id?: string;
|
|
33
|
+
readonly current_product_id?: string;
|
|
34
|
+
readonly resulting_product_id?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Known values of `component_type` in {@link PaywallInteractionEvent}.
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export declare const PAYWALL_COMPONENT_TYPES: {
|
|
41
|
+
readonly TAB: "tab";
|
|
42
|
+
readonly SWITCH: "switch";
|
|
43
|
+
readonly CAROUSEL: "carousel";
|
|
44
|
+
readonly BUTTON: "button";
|
|
45
|
+
readonly TEXT: "text";
|
|
46
|
+
readonly PACKAGE: "package";
|
|
47
|
+
readonly PACKAGE_SELECTION_SHEET: "package_selection_sheet";
|
|
48
|
+
readonly PURCHASE_BUTTON: "purchase_button";
|
|
49
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAYWALL_COMPONENT_TYPES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Known values of `component_type` in {@link PaywallInteractionEvent}.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
exports.PAYWALL_COMPONENT_TYPES = {
|
|
9
|
+
TAB: "tab",
|
|
10
|
+
SWITCH: "switch",
|
|
11
|
+
CAROUSEL: "carousel",
|
|
12
|
+
BUTTON: "button",
|
|
13
|
+
TEXT: "text",
|
|
14
|
+
PACKAGE: "package",
|
|
15
|
+
PACKAGE_SELECTION_SHEET: "package_selection_sheet",
|
|
16
|
+
PURCHASE_BUTTON: "purchase_button",
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-typescript-internal",
|
|
3
3
|
"title": "Purchases typescript internal shared code",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "19.0.0",
|
|
5
5
|
"description": "Typescript code to be used by RevenueCat's hybrid SDKs. Not meant for external usage.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|