@parra/parra-js-sdk 0.3.507 → 0.3.509
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/ParraAPI.d.ts +15 -1
- package/dist/ParraAPI.js +2 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1023,6 +1023,7 @@ export interface UserEntitlement {
|
|
1023
1023
|
is_free: boolean;
|
1024
1024
|
quantity_available?: number | null;
|
1025
1025
|
quantity_consumed?: number | null;
|
1026
|
+
course_id?: string | null;
|
1026
1027
|
}
|
1027
1028
|
export interface AppPurchaseResponseBody {
|
1028
1029
|
entitlements: Array<UserEntitlement>;
|
@@ -1049,7 +1050,9 @@ export declare enum PurchaseType {
|
|
1049
1050
|
subscription = "subscription"
|
1050
1051
|
}
|
1051
1052
|
export declare enum PurchasePlatform {
|
1052
|
-
apple = "apple"
|
1053
|
+
apple = "apple",
|
1054
|
+
parra = "parra",
|
1055
|
+
stripe = "stripe"
|
1053
1056
|
}
|
1054
1057
|
export declare enum PurchaseEnvironment {
|
1055
1058
|
production = "production",
|
@@ -1084,6 +1087,7 @@ export interface StripePurchase {
|
|
1084
1087
|
livemode?: boolean | null;
|
1085
1088
|
}
|
1086
1089
|
export interface LineItem {
|
1090
|
+
id: string;
|
1087
1091
|
product?: ProductStub;
|
1088
1092
|
quantity?: number;
|
1089
1093
|
price?: Price;
|
@@ -1491,6 +1495,13 @@ export interface CourseModule {
|
|
1491
1495
|
is_preview: boolean;
|
1492
1496
|
lessons?: Array<Lesson>;
|
1493
1497
|
}
|
1498
|
+
export interface CoursePaywall {
|
1499
|
+
paywall_id?: string | null;
|
1500
|
+
entitlement_id?: string | null;
|
1501
|
+
default_stripe_price_id?: string | null;
|
1502
|
+
context?: string | null;
|
1503
|
+
product_id?: string | null;
|
1504
|
+
}
|
1494
1505
|
export interface CourseStub {
|
1495
1506
|
id: string;
|
1496
1507
|
created_at: string;
|
@@ -1501,6 +1512,7 @@ export interface CourseStub {
|
|
1501
1512
|
title: string;
|
1502
1513
|
description?: string | null;
|
1503
1514
|
is_enrolled?: boolean | null;
|
1515
|
+
paywall?: CoursePaywall | null;
|
1504
1516
|
}
|
1505
1517
|
export interface Course {
|
1506
1518
|
id: string;
|
@@ -1512,6 +1524,7 @@ export interface Course {
|
|
1512
1524
|
title: string;
|
1513
1525
|
description?: string | null;
|
1514
1526
|
is_enrolled?: boolean | null;
|
1527
|
+
paywall?: CoursePaywall | null;
|
1515
1528
|
marketing_content?: MarketingContent | null;
|
1516
1529
|
header_image?: ImageAssetStub | null;
|
1517
1530
|
modules?: Array<CourseModule>;
|
@@ -1584,6 +1597,7 @@ export interface AppCourse {
|
|
1584
1597
|
marketing_content?: MarketingContent;
|
1585
1598
|
modules?: Array<AppCourseModule>;
|
1586
1599
|
instructors?: Array<CourseInstructor>;
|
1600
|
+
paywall?: CoursePaywall | null;
|
1587
1601
|
is_enrolled?: boolean | null;
|
1588
1602
|
}
|
1589
1603
|
export interface UpdateCourseModuleRequestBody {
|
package/dist/ParraAPI.js
CHANGED
@@ -153,6 +153,8 @@ var PurchaseType;
|
|
153
153
|
var PurchasePlatform;
|
154
154
|
(function (PurchasePlatform) {
|
155
155
|
PurchasePlatform["apple"] = "apple";
|
156
|
+
PurchasePlatform["parra"] = "parra";
|
157
|
+
PurchasePlatform["stripe"] = "stripe";
|
156
158
|
})(PurchasePlatform || (exports.PurchasePlatform = PurchasePlatform = {}));
|
157
159
|
var PurchaseEnvironment;
|
158
160
|
(function (PurchaseEnvironment) {
|