@sesamy/sesamy-js 1.120.3 → 1.121.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/sesamy-js.cjs +7 -7
- package/dist/sesamy-js.d.ts +6 -1
- package/dist/sesamy-js.iife.js +7 -7
- package/dist/sesamy-js.mjs +1367 -1355
- package/package.json +2 -2
package/dist/sesamy-js.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Contract } from '@sesamy/sdk';
|
|
|
5
5
|
import { CreateCheckoutParams } from '@sesamy/sdk';
|
|
6
6
|
import { Entitlement } from '@sesamy/sdk';
|
|
7
7
|
import { Fulfillment } from '@sesamy/sdk';
|
|
8
|
+
import { PaywallAccessCheckResult } from '@sesamy/sdk';
|
|
8
9
|
import { PaywallAccessResult } from '@sesamy/sdk';
|
|
9
10
|
import { Profile } from '@sesamy/sdk';
|
|
10
11
|
import { Subscription } from '@sesamy/sdk';
|
|
@@ -1081,7 +1082,7 @@ declare function registerAPI(config: ApiConfig): {
|
|
|
1081
1082
|
url?: string;
|
|
1082
1083
|
presentationUrl?: string;
|
|
1083
1084
|
publisherContentId?: string;
|
|
1084
|
-
type: "article" | "
|
|
1085
|
+
type: "article" | "audiobook" | "ebook" | "bundle" | "podcast" | "pass" | "publication" | "physical_issue";
|
|
1085
1086
|
origin?: {
|
|
1086
1087
|
type: "EXTERNAL";
|
|
1087
1088
|
id: string;
|
|
@@ -1187,6 +1188,10 @@ declare function registerAPI(config: ApiConfig): {
|
|
|
1187
1188
|
checkAccess: (paywallId: string, body: {
|
|
1188
1189
|
publisherContentId: string;
|
|
1189
1190
|
url?: string;
|
|
1191
|
+
}) => Promise<PaywallAccessCheckResult>;
|
|
1192
|
+
registerAccess: (paywallId: string, body: {
|
|
1193
|
+
publisherContentId: string;
|
|
1194
|
+
url: string;
|
|
1190
1195
|
}) => Promise<PaywallAccessResult>;
|
|
1191
1196
|
};
|
|
1192
1197
|
paymentIssues: {
|