expo-superwall 0.2.7 → 0.2.9
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 +14 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/expo/modules/superwallexpo/json/StoreTransaction.kt +3 -1
- package/build/package.json +5 -5
- package/build/src/compat/lib/PaywallInfo.js +1 -1
- package/build/src/compat/lib/PaywallInfo.js.map +1 -1
- package/build/src/compat/lib/StoreTransaction.d.ts +7 -1
- package/build/src/compat/lib/StoreTransaction.d.ts.map +1 -1
- package/build/src/compat/lib/StoreTransaction.js +10 -1
- package/build/src/compat/lib/StoreTransaction.js.map +1 -1
- package/package.json +5 -5
- package/plugin/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bd460a7: Expose signature in android StoreTransaction
|
|
8
|
+
- e9eeff8: Expose appAcounttoken and purchaseToken on Android StoreTransaction
|
|
9
|
+
|
|
10
|
+
## 0.2.8
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- e0b57bc: fix(compat): none nullable access
|
|
15
|
+
- 314be3c: bump deps
|
|
16
|
+
|
|
3
17
|
## 0.2.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/android/build.gradle
CHANGED
|
@@ -43,7 +43,7 @@ android {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
dependencies {
|
|
46
|
-
implementation "com.superwall.sdk:superwall-android:2.5.
|
|
46
|
+
implementation "com.superwall.sdk:superwall-android:2.5.5"
|
|
47
47
|
implementation 'com.android.billingclient:billing:8.0.0'
|
|
48
48
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2'
|
|
49
49
|
}
|
|
@@ -26,6 +26,8 @@ fun StoreTransaction.toJson(): Map<String, Any?> {
|
|
|
26
26
|
map["expirationDate"] = expirationDate?.toIsoString()
|
|
27
27
|
map["offerId"] = offerId
|
|
28
28
|
map["revocationDate"] = revocationDate?.toIsoString()
|
|
29
|
-
|
|
29
|
+
map["appAccountToken"] = appAccountToken
|
|
30
|
+
map["purchaseToken"] = purchaseToken
|
|
31
|
+
map["signature"] = signature
|
|
30
32
|
return map
|
|
31
33
|
}
|
package/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-superwall",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Offical Expo Integration for Superwall",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/src/index.d.ts",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"homepage": "https://github.com/superwall/expo-superwall#readme",
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@biomejs/biome": "^2.
|
|
50
|
-
"@changesets/cli": "^2.29.
|
|
49
|
+
"@biomejs/biome": "^2.2.4",
|
|
50
|
+
"@changesets/cli": "^2.29.7",
|
|
51
51
|
"@types/react": "~19.0.10",
|
|
52
52
|
"expo": "*",
|
|
53
|
-
"expo-module-scripts": "^
|
|
53
|
+
"expo-module-scripts": "^5.0.7",
|
|
54
54
|
"react-native": "*"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
],
|
|
73
73
|
"packageManager": "yarn@4.7.0",
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"zustand": "^5.0.
|
|
75
|
+
"zustand": "^5.0.8"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -104,7 +104,7 @@ export class PaywallInfo {
|
|
|
104
104
|
closeReason: PaywallCloseReason.fromJson(json.closeReason),
|
|
105
105
|
localNotifications: json.localNotifications.map((n) => LocalNotification.fromJson(n)),
|
|
106
106
|
computedPropertyRequests: json.computedPropertyRequests.map((r) => ComputedPropertyRequest.fromJson(r)),
|
|
107
|
-
surveys: json.surveys
|
|
107
|
+
surveys: json.surveys?.map((s) => Survey.fromJson(s)),
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaywallInfo.js","sourceRoot":"","sources":["../../../../src/compat/lib/PaywallInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAA8B,6BAA6B,EAAE,MAAM,yBAAyB,CAAA;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC;;;;GAIG;AACH,MAAM,OAAO,WAAW;IACtB,UAAU,CAAQ;IAClB,IAAI,CAAQ;IACZ,GAAG,CAAQ;IACX,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,UAAU,CAAU;IACpB,wBAAwB,CAAS;IACjC,sBAAsB,CAAS;IAC/B,kBAAkB,CAAS;IAC3B,WAAW,CAAQ;IACnB,sBAAsB,CAAS;IAC/B,qBAAqB,CAAS;IAC9B,wBAAwB,CAAS;IACjC,oBAAoB,CAAS;IAC7B,oBAAoB,CAAS;IAC7B,oBAAoB,CAAS;IAC7B,uBAAuB,CAAS;IAChC,mBAAmB,CAAS;IAC5B,mBAAmB,CAAS;IAC5B,qBAAqB,CAAS;IAC9B,wBAAwB,CAAS;IACjC,oBAAoB,CAAS;IAC7B,oBAAoB,CAAS;IAC7B,gBAAgB,CAAS;IACzB,oBAAoB,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GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC1D,CAAC,CAAA;IACJ,CAAC;CACF","sourcesContent":["import { ComputedPropertyRequest } from \"./ComputedPropertyRequest\"\nimport { Experiment } from \"./Experiment\"\nimport { type FeatureGatingBehavior, featureGatingBehaviorFromJson } from \"./FeatureGatingBehavior\"\nimport { LocalNotification } from \"./LocalNotification\"\nimport { PaywallCloseReason } from \"./PaywallCloseReason\"\nimport { Product } from \"./Product\"\nimport { Survey } from \"./Survey\"\n\n/**\n * @category Models\n * @since 0.0.15\n * Represents information about a paywall.\n */\nexport class PaywallInfo {\n identifier: string\n name: string\n url: string\n experiment?: Experiment\n products: Product[]\n productIds: string[]\n presentedByEventWithName?: string\n presentedByEventWithId?: string\n presentedByEventAt?: string\n presentedBy: string\n presentationSourceType?: string\n responseLoadStartTime?: string\n responseLoadCompleteTime?: string\n responseLoadFailTime?: string\n responseLoadDuration?: number\n webViewLoadStartTime?: string\n webViewLoadCompleteTime?: string\n webViewLoadFailTime?: string\n webViewLoadDuration?: number\n productsLoadStartTime?: string\n productsLoadCompleteTime?: string\n productsLoadFailTime?: string\n productsLoadDuration?: number\n paywalljsVersion?: string\n isFreeTrialAvailable: boolean\n featureGatingBehavior: FeatureGatingBehavior // Assuming FeatureGatingBehavior is an enum defined elsewhere\n closeReason: PaywallCloseReason // Assuming PaywallCloseReason is an enum defined elsewhere\n localNotifications: LocalNotification[] // Assuming LocalNotification is defined elsewhere\n computedPropertyRequests: ComputedPropertyRequest[] // Assuming ComputedPropertyRequest is defined elsewhere\n surveys: Survey[] // Assuming Survey is defined elsewhere\n\n constructor({\n identifier,\n name,\n url,\n experiment,\n products,\n productIds,\n presentedByEventWithName,\n presentedByEventWithId,\n presentedByEventAt,\n presentedBy,\n presentationSourceType,\n responseLoadStartTime,\n responseLoadCompleteTime,\n responseLoadFailTime,\n responseLoadDuration,\n webViewLoadStartTime,\n webViewLoadCompleteTime,\n webViewLoadFailTime,\n webViewLoadDuration,\n productsLoadStartTime,\n productsLoadCompleteTime,\n productsLoadFailTime,\n productsLoadDuration,\n paywalljsVersion,\n isFreeTrialAvailable,\n featureGatingBehavior,\n closeReason,\n localNotifications,\n computedPropertyRequests,\n surveys,\n }: {\n identifier: string\n name: string\n url: string\n experiment?: Experiment\n products: Product[]\n productIds: string[]\n presentedByEventWithName?: string\n presentedByEventWithId?: string\n presentedByEventAt?: string\n presentedBy: string\n presentationSourceType?: string\n responseLoadStartTime?: string\n responseLoadCompleteTime?: string\n responseLoadFailTime?: string\n responseLoadDuration?: number\n webViewLoadStartTime?: string\n webViewLoadCompleteTime?: string\n webViewLoadFailTime?: string\n webViewLoadDuration?: number\n productsLoadStartTime?: string\n productsLoadCompleteTime?: string\n productsLoadFailTime?: string\n productsLoadDuration?: number\n paywalljsVersion?: string\n isFreeTrialAvailable: boolean\n featureGatingBehavior: FeatureGatingBehavior\n closeReason: PaywallCloseReason\n localNotifications: LocalNotification[]\n computedPropertyRequests: ComputedPropertyRequest[]\n surveys: Survey[]\n }) {\n this.identifier = identifier\n this.name = name\n this.url = url\n this.experiment = experiment\n this.products = products\n this.productIds = productIds\n this.presentedByEventWithName = presentedByEventWithName\n this.presentedByEventWithId = presentedByEventWithId\n this.presentedByEventAt = presentedByEventAt\n this.presentedBy = presentedBy\n this.presentationSourceType = presentationSourceType\n this.responseLoadStartTime = responseLoadStartTime\n this.responseLoadCompleteTime = responseLoadCompleteTime\n this.responseLoadFailTime = responseLoadFailTime\n this.responseLoadDuration = responseLoadDuration\n this.webViewLoadStartTime = webViewLoadStartTime\n this.webViewLoadCompleteTime = webViewLoadCompleteTime\n this.webViewLoadFailTime = webViewLoadFailTime\n this.webViewLoadDuration = webViewLoadDuration\n this.productsLoadStartTime = productsLoadStartTime\n this.productsLoadCompleteTime = productsLoadCompleteTime\n this.productsLoadFailTime = productsLoadFailTime\n this.productsLoadDuration = productsLoadDuration\n this.paywalljsVersion = paywalljsVersion\n this.isFreeTrialAvailable = isFreeTrialAvailable\n this.featureGatingBehavior = featureGatingBehavior\n this.closeReason = closeReason\n this.localNotifications = localNotifications\n this.computedPropertyRequests = computedPropertyRequests\n this.surveys = surveys\n }\n\n static fromJson(json: any): PaywallInfo {\n return new PaywallInfo({\n identifier: json.identifier,\n name: json.name,\n url: json.url,\n experiment: json.experiment ? Experiment.fromJson(json.experiment) : undefined,\n products: json.products.map((p: any) => Product.fromJson(p)),\n productIds: json.productIds,\n presentedByEventWithName: json.presentedByEventWithName,\n presentedByEventWithId: json.presentedByEventWithId,\n presentedByEventAt: json.presentedByEventAt,\n presentedBy: json.presentedBy,\n presentationSourceType: json.presentationSourceType,\n responseLoadStartTime: json.responseLoadStartTime,\n responseLoadCompleteTime: json.responseLoadCompleteTime,\n responseLoadFailTime: json.responseLoadFailTime,\n responseLoadDuration: json.responseLoadDuration,\n webViewLoadStartTime: json.webViewLoadStartTime,\n webViewLoadCompleteTime: json.webViewLoadCompleteTime,\n webViewLoadFailTime: json.webViewLoadFailTime,\n webViewLoadDuration: json.webViewLoadDuration,\n productsLoadStartTime: json.productsLoadStartTime,\n productsLoadCompleteTime: json.productsLoadCompleteTime,\n productsLoadFailTime: json.productsLoadFailTime,\n productsLoadDuration: json.productsLoadDuration,\n paywalljsVersion: json.paywalljsVersion,\n isFreeTrialAvailable: json.isFreeTrialAvailable,\n featureGatingBehavior: featureGatingBehaviorFromJson(json.featureGatingBehavior),\n closeReason: PaywallCloseReason.fromJson(json.closeReason),\n localNotifications: json.localNotifications.map((n: any) => LocalNotification.fromJson(n)),\n computedPropertyRequests: json.computedPropertyRequests.map((r: any) =>\n ComputedPropertyRequest.fromJson(r),\n ),\n surveys: json.surveys.map((s: any) => Survey.fromJson(s)),\n })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PaywallInfo.js","sourceRoot":"","sources":["../../../../src/compat/lib/PaywallInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,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I,CAAC,oBAAoB;YAC/C,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,qBAAqB,EAAE,6BAA6B,CAAC,IAAI,CAAC,qBAAqB,CAAC;YAChF,WAAW,EAAE,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;YAC1D,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC1F,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CACrE,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC,CACpC;YACD,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SAC3D,CAAC,CAAA;IACJ,CAAC;CACF","sourcesContent":["import { ComputedPropertyRequest } from \"./ComputedPropertyRequest\"\nimport { Experiment } from \"./Experiment\"\nimport { type FeatureGatingBehavior, featureGatingBehaviorFromJson } from \"./FeatureGatingBehavior\"\nimport { LocalNotification } from \"./LocalNotification\"\nimport { PaywallCloseReason } from \"./PaywallCloseReason\"\nimport { Product } from \"./Product\"\nimport { Survey } from \"./Survey\"\n\n/**\n * @category Models\n * @since 0.0.15\n * Represents information about a paywall.\n */\nexport class PaywallInfo {\n identifier: string\n name: string\n url: string\n experiment?: Experiment\n products: Product[]\n productIds: string[]\n presentedByEventWithName?: string\n presentedByEventWithId?: string\n presentedByEventAt?: string\n presentedBy: string\n presentationSourceType?: string\n responseLoadStartTime?: string\n responseLoadCompleteTime?: string\n responseLoadFailTime?: string\n responseLoadDuration?: number\n webViewLoadStartTime?: string\n webViewLoadCompleteTime?: string\n webViewLoadFailTime?: string\n webViewLoadDuration?: number\n productsLoadStartTime?: string\n productsLoadCompleteTime?: string\n productsLoadFailTime?: string\n productsLoadDuration?: number\n paywalljsVersion?: string\n isFreeTrialAvailable: boolean\n featureGatingBehavior: FeatureGatingBehavior // Assuming FeatureGatingBehavior is an enum defined elsewhere\n closeReason: PaywallCloseReason // Assuming PaywallCloseReason is an enum defined elsewhere\n localNotifications: LocalNotification[] // Assuming LocalNotification is defined elsewhere\n computedPropertyRequests: ComputedPropertyRequest[] // Assuming ComputedPropertyRequest is defined elsewhere\n surveys: Survey[] // Assuming Survey is defined elsewhere\n\n constructor({\n identifier,\n name,\n url,\n experiment,\n products,\n productIds,\n presentedByEventWithName,\n presentedByEventWithId,\n presentedByEventAt,\n presentedBy,\n presentationSourceType,\n responseLoadStartTime,\n responseLoadCompleteTime,\n responseLoadFailTime,\n responseLoadDuration,\n webViewLoadStartTime,\n webViewLoadCompleteTime,\n webViewLoadFailTime,\n webViewLoadDuration,\n productsLoadStartTime,\n productsLoadCompleteTime,\n productsLoadFailTime,\n productsLoadDuration,\n paywalljsVersion,\n isFreeTrialAvailable,\n featureGatingBehavior,\n closeReason,\n localNotifications,\n computedPropertyRequests,\n surveys,\n }: {\n identifier: string\n name: string\n url: string\n experiment?: Experiment\n products: Product[]\n productIds: string[]\n presentedByEventWithName?: string\n presentedByEventWithId?: string\n presentedByEventAt?: string\n presentedBy: string\n presentationSourceType?: string\n responseLoadStartTime?: string\n responseLoadCompleteTime?: string\n responseLoadFailTime?: string\n responseLoadDuration?: number\n webViewLoadStartTime?: string\n webViewLoadCompleteTime?: string\n webViewLoadFailTime?: string\n webViewLoadDuration?: number\n productsLoadStartTime?: string\n productsLoadCompleteTime?: string\n productsLoadFailTime?: string\n productsLoadDuration?: number\n paywalljsVersion?: string\n isFreeTrialAvailable: boolean\n featureGatingBehavior: FeatureGatingBehavior\n closeReason: PaywallCloseReason\n localNotifications: LocalNotification[]\n computedPropertyRequests: ComputedPropertyRequest[]\n surveys: Survey[]\n }) {\n this.identifier = identifier\n this.name = name\n this.url = url\n this.experiment = experiment\n this.products = products\n this.productIds = productIds\n this.presentedByEventWithName = presentedByEventWithName\n this.presentedByEventWithId = presentedByEventWithId\n this.presentedByEventAt = presentedByEventAt\n this.presentedBy = presentedBy\n this.presentationSourceType = presentationSourceType\n this.responseLoadStartTime = responseLoadStartTime\n this.responseLoadCompleteTime = responseLoadCompleteTime\n this.responseLoadFailTime = responseLoadFailTime\n this.responseLoadDuration = responseLoadDuration\n this.webViewLoadStartTime = webViewLoadStartTime\n this.webViewLoadCompleteTime = webViewLoadCompleteTime\n this.webViewLoadFailTime = webViewLoadFailTime\n this.webViewLoadDuration = webViewLoadDuration\n this.productsLoadStartTime = productsLoadStartTime\n this.productsLoadCompleteTime = productsLoadCompleteTime\n this.productsLoadFailTime = productsLoadFailTime\n this.productsLoadDuration = productsLoadDuration\n this.paywalljsVersion = paywalljsVersion\n this.isFreeTrialAvailable = isFreeTrialAvailable\n this.featureGatingBehavior = featureGatingBehavior\n this.closeReason = closeReason\n this.localNotifications = localNotifications\n this.computedPropertyRequests = computedPropertyRequests\n this.surveys = surveys\n }\n\n static fromJson(json: any): PaywallInfo {\n return new PaywallInfo({\n identifier: json.identifier,\n name: json.name,\n url: json.url,\n experiment: json.experiment ? Experiment.fromJson(json.experiment) : undefined,\n products: json.products.map((p: any) => Product.fromJson(p)),\n productIds: json.productIds,\n presentedByEventWithName: json.presentedByEventWithName,\n presentedByEventWithId: json.presentedByEventWithId,\n presentedByEventAt: json.presentedByEventAt,\n presentedBy: json.presentedBy,\n presentationSourceType: json.presentationSourceType,\n responseLoadStartTime: json.responseLoadStartTime,\n responseLoadCompleteTime: json.responseLoadCompleteTime,\n responseLoadFailTime: json.responseLoadFailTime,\n responseLoadDuration: json.responseLoadDuration,\n webViewLoadStartTime: json.webViewLoadStartTime,\n webViewLoadCompleteTime: json.webViewLoadCompleteTime,\n webViewLoadFailTime: json.webViewLoadFailTime,\n webViewLoadDuration: json.webViewLoadDuration,\n productsLoadStartTime: json.productsLoadStartTime,\n productsLoadCompleteTime: json.productsLoadCompleteTime,\n productsLoadFailTime: json.productsLoadFailTime,\n productsLoadDuration: json.productsLoadDuration,\n paywalljsVersion: json.paywalljsVersion,\n isFreeTrialAvailable: json.isFreeTrialAvailable,\n featureGatingBehavior: featureGatingBehaviorFromJson(json.featureGatingBehavior),\n closeReason: PaywallCloseReason.fromJson(json.closeReason),\n localNotifications: json.localNotifications.map((n: any) => LocalNotification.fromJson(n)),\n computedPropertyRequests: json.computedPropertyRequests.map((r: any) =>\n ComputedPropertyRequest.fromJson(r),\n ),\n surveys: json.surveys?.map((s: any) => Survey.fromJson(s)),\n })\n }\n}\n"]}
|
|
@@ -17,7 +17,10 @@ export declare class StoreTransaction {
|
|
|
17
17
|
expirationDate?: Date | null;
|
|
18
18
|
offerId?: string | null;
|
|
19
19
|
revocationDate?: Date | null;
|
|
20
|
-
|
|
20
|
+
appAccountToken?: string | null;
|
|
21
|
+
purchaseToken?: string | null;
|
|
22
|
+
signature?: string | null;
|
|
23
|
+
constructor({ configRequestId, appSessionId, transactionDate, originalTransactionIdentifier, storeTransactionId, originalTransactionDate, webOrderLineItemID, appBundleId, subscriptionGroupId, isUpgraded, expirationDate, offerId, revocationDate, appAccountToken, purchaseToken, signature, }: {
|
|
21
24
|
configRequestId: string;
|
|
22
25
|
appSessionId: string;
|
|
23
26
|
transactionDate?: string | null;
|
|
@@ -31,6 +34,9 @@ export declare class StoreTransaction {
|
|
|
31
34
|
expirationDate?: string | null;
|
|
32
35
|
offerId?: string | null;
|
|
33
36
|
revocationDate?: string | null;
|
|
37
|
+
appAccountToken?: string | null;
|
|
38
|
+
purchaseToken?: string | null;
|
|
39
|
+
signature?: string | null;
|
|
34
40
|
});
|
|
35
41
|
static fromJson(json: any): StoreTransaction;
|
|
36
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreTransaction.d.ts","sourceRoot":"","sources":["../../../../src/compat/lib/StoreTransaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAC7B,6BAA6B,EAAE,MAAM,CAAA;IACrC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,uBAAuB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACrC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3B,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"StoreTransaction.d.ts","sourceRoot":"","sources":["../../../../src/compat/lib/StoreTransaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAC7B,6BAA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CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;QAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACvB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC1B;IAqBD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB;CAoB7C"}
|
|
@@ -17,7 +17,10 @@ export class StoreTransaction {
|
|
|
17
17
|
expirationDate;
|
|
18
18
|
offerId;
|
|
19
19
|
revocationDate;
|
|
20
|
-
|
|
20
|
+
appAccountToken;
|
|
21
|
+
purchaseToken;
|
|
22
|
+
signature;
|
|
23
|
+
constructor({ configRequestId, appSessionId, transactionDate, originalTransactionIdentifier, storeTransactionId, originalTransactionDate, webOrderLineItemID, appBundleId, subscriptionGroupId, isUpgraded, expirationDate, offerId, revocationDate, appAccountToken, purchaseToken, signature, }) {
|
|
21
24
|
this.configRequestId = configRequestId;
|
|
22
25
|
this.appSessionId = appSessionId;
|
|
23
26
|
this.transactionDate = transactionDate ? new Date(transactionDate) : null;
|
|
@@ -33,6 +36,9 @@ export class StoreTransaction {
|
|
|
33
36
|
this.expirationDate = expirationDate ? new Date(expirationDate) : null;
|
|
34
37
|
this.offerId = offerId || null;
|
|
35
38
|
this.revocationDate = revocationDate ? new Date(revocationDate) : null;
|
|
39
|
+
this.appAccountToken = appAccountToken || null;
|
|
40
|
+
this.purchaseToken = purchaseToken || null;
|
|
41
|
+
this.signature = signature || null;
|
|
36
42
|
}
|
|
37
43
|
static fromJson(json) {
|
|
38
44
|
return new StoreTransaction({
|
|
@@ -49,6 +55,9 @@ export class StoreTransaction {
|
|
|
49
55
|
expirationDate: json.expirationDate,
|
|
50
56
|
offerId: json.offerId,
|
|
51
57
|
revocationDate: json.revocationDate,
|
|
58
|
+
appAccountToken: json.appAccountToken,
|
|
59
|
+
purchaseToken: json.purchaseToken,
|
|
60
|
+
signature: json.signature,
|
|
52
61
|
});
|
|
53
62
|
}
|
|
54
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreTransaction.js","sourceRoot":"","sources":["../../../../src/compat/lib/StoreTransaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAC3B,eAAe,CAAQ;IACvB,YAAY,CAAQ;IACpB,eAAe,CAAc;IAC7B,6BAA6B,CAAQ;IACrC,kBAAkB,CAAgB;IAClC,uBAAuB,CAAc;IACrC,kBAAkB,CAAgB;IAClC,WAAW,CAAgB;IAC3B,mBAAmB,CAAgB;IACnC,UAAU,CAAiB;IAC3B,cAAc,CAAc;IAC5B,OAAO,CAAgB;IACvB,cAAc,CAAc;
|
|
1
|
+
{"version":3,"file":"StoreTransaction.js","sourceRoot":"","sources":["../../../../src/compat/lib/StoreTransaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAC3B,eAAe,CAAQ;IACvB,YAAY,CAAQ;IACpB,eAAe,CAAc;IAC7B,6BAA6B,CAAQ;IACrC,kBAAkB,CAAgB;IAClC,uBAAuB,CAAc;IACrC,kBAAkB,CAAgB;IAClC,WAAW,CAAgB;IAC3B,mBAAmB,CAAgB;IACnC,UAAU,CAAiB;IAC3B,cAAc,CAAc;IAC5B,OAAO,CAAgB;IACvB,cAAc,CAAc;IAC5B,eAAe,CAAgB;IAC/B,aAAa,CAAgB;IAC7B,SAAS,CAAgB;IAEzB,YAAY,EACV,eAAe,EACf,YAAY,EACZ,eAAe,EACf,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd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AAC;YAC1B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,6BAA6B,EAAE,IAAI,CAAC,6BAA6B;YACjE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAA;IACJ,CAAC;CACF","sourcesContent":["/**\n * @category Models\n * @since 0.0.15\n * Represents a transaction from the app store.\n */\nexport class StoreTransaction {\n configRequestId: string\n appSessionId: string\n transactionDate?: Date | null\n originalTransactionIdentifier: string\n storeTransactionId?: string | null\n originalTransactionDate?: Date | null\n webOrderLineItemID?: string | null\n appBundleId?: string | null\n subscriptionGroupId?: string | null\n isUpgraded?: boolean | null\n expirationDate?: Date | null\n offerId?: string | null\n revocationDate?: Date | null\n appAccountToken?: string | null\n purchaseToken?: string | null\n signature?: string | null\n\n constructor({\n configRequestId,\n appSessionId,\n transactionDate,\n originalTransactionIdentifier,\n storeTransactionId,\n originalTransactionDate,\n webOrderLineItemID,\n appBundleId,\n subscriptionGroupId,\n isUpgraded,\n expirationDate,\n offerId,\n revocationDate,\n appAccountToken,\n purchaseToken,\n signature,\n }: {\n configRequestId: string\n appSessionId: string\n transactionDate?: string | null\n originalTransactionIdentifier: string\n storeTransactionId?: string | null\n originalTransactionDate?: string | null\n webOrderLineItemID?: string | null\n appBundleId?: string | null\n subscriptionGroupId?: string | null\n isUpgraded?: boolean | null\n expirationDate?: string | null\n offerId?: string | null\n revocationDate?: string | null\n appAccountToken?: string | null\n purchaseToken?: string | null\n signature?: string | null\n }) {\n this.configRequestId = configRequestId\n this.appSessionId = appSessionId\n this.transactionDate = transactionDate ? new Date(transactionDate) : null\n this.originalTransactionIdentifier = originalTransactionIdentifier\n this.storeTransactionId = storeTransactionId || null\n this.originalTransactionDate = originalTransactionDate\n ? new Date(originalTransactionDate)\n : null\n this.webOrderLineItemID = webOrderLineItemID || null\n this.appBundleId = appBundleId || null\n this.subscriptionGroupId = subscriptionGroupId || null\n this.isUpgraded = isUpgraded ?? null\n this.expirationDate = expirationDate ? new Date(expirationDate) : null\n this.offerId = offerId || null\n this.revocationDate = revocationDate ? new Date(revocationDate) : null\n this.appAccountToken = appAccountToken || null\n this.purchaseToken = purchaseToken || null\n this.signature = signature || null\n }\n\n static fromJson(json: any): StoreTransaction {\n return new StoreTransaction({\n configRequestId: json.configRequestId,\n appSessionId: json.appSessionId,\n transactionDate: json.transactionDate,\n originalTransactionIdentifier: json.originalTransactionIdentifier,\n storeTransactionId: json.storeTransactionId,\n originalTransactionDate: json.originalTransactionDate,\n webOrderLineItemID: json.webOrderLineItemID,\n appBundleId: json.appBundleId,\n subscriptionGroupId: json.subscriptionGroupId,\n isUpgraded: json.isUpgraded,\n expirationDate: json.expirationDate,\n offerId: json.offerId,\n revocationDate: json.revocationDate,\n appAccountToken: json.appAccountToken,\n purchaseToken: json.purchaseToken,\n signature: json.signature,\n })\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-superwall",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Offical Expo Integration for Superwall",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/src/index.d.ts",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"homepage": "https://github.com/superwall/expo-superwall#readme",
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@biomejs/biome": "^2.
|
|
50
|
-
"@changesets/cli": "^2.29.
|
|
49
|
+
"@biomejs/biome": "^2.2.4",
|
|
50
|
+
"@changesets/cli": "^2.29.7",
|
|
51
51
|
"@types/react": "~19.0.10",
|
|
52
52
|
"expo": "*",
|
|
53
|
-
"expo-module-scripts": "^
|
|
53
|
+
"expo-module-scripts": "^5.0.7",
|
|
54
54
|
"react-native": "*"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
],
|
|
73
73
|
"packageManager": "yarn@4.7.0",
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"zustand": "^5.0.
|
|
75
|
+
"zustand": "^5.0.8"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts"],"version":"5.
|
|
1
|
+
{"root":["./src/index.ts"],"version":"5.9.2"}
|