@apps-in-toss/web-bridge 2.1.1 → 2.3.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.cjs +4 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +4 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -562,7 +562,10 @@ var IAP = {
|
|
|
562
562
|
* }
|
|
563
563
|
* ```
|
|
564
564
|
*/
|
|
565
|
-
completeProductGrant: createAsyncBridge("completeProductGrant")
|
|
565
|
+
completeProductGrant: createAsyncBridge("completeProductGrant"),
|
|
566
|
+
getSubscriptionInfo: createAsyncBridge(
|
|
567
|
+
"getSubscriptionInfo"
|
|
568
|
+
)
|
|
566
569
|
};
|
|
567
570
|
|
|
568
571
|
// src/getSafeAreaInsets.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -255,6 +255,17 @@ interface CompletedOrRefundedOrdersResult {
|
|
|
255
255
|
date: string;
|
|
256
256
|
}[];
|
|
257
257
|
}
|
|
258
|
+
interface IapSubscriptionInfoResult {
|
|
259
|
+
catalogId: number;
|
|
260
|
+
status: string;
|
|
261
|
+
expiresAt: string | null;
|
|
262
|
+
isAutoRenew: boolean;
|
|
263
|
+
gracePeriodExpiresAt: string | null;
|
|
264
|
+
isAccessible: boolean;
|
|
265
|
+
}
|
|
266
|
+
interface IapSubscriptionInfoResponse {
|
|
267
|
+
subscription: IapSubscriptionInfoResult;
|
|
268
|
+
}
|
|
258
269
|
/**
|
|
259
270
|
* @public
|
|
260
271
|
* @category 인앱결제
|
|
@@ -265,6 +276,7 @@ interface CompletedOrRefundedOrdersResult {
|
|
|
265
276
|
* @property {typeof getPendingOrders} [getPendingOrders] 대기 중인 주문 목록을 가져와요. 자세한 내용은 [getPendingOrders](https://developers-apps-in-toss.toss.im/bedrock/reference/framework/%EC%9D%B8%EC%95%B1%20%EA%B2%B0%EC%A0%9C/getPendingOrders.htm) 문서를 참고하세요.
|
|
266
277
|
* @property {typeof getCompletedOrRefundedOrders} [getCompletedOrRefundedOrders] 인앱결제로 구매하거나 환불한 주문 목록을 가져와요. 자세한 내용은 [getCompletedOrRefundedOrders](https://developers-apps-in-toss.toss.im/bedrock/reference/framework/%EC%9D%B8%EC%95%B1%20%EA%B2%B0%EC%A0%9C/getCompletedOrRefundedOrders.html) 문서를 참고하세요.
|
|
267
278
|
* @property {typeof completeProductGrant} [completeProductGrant] 상품 지급 처리를 완료했다는 메시지를 앱에 전달해요. 자세한 내용은 [completeProductGrant](https://developers-apps-in-toss.toss.im/bedrock/reference/framework/%EC%9D%B8%EC%95%B1%20%EA%B2%B0%EC%A0%9C/completeProductGrant.html) 문서를 참고하세요.
|
|
279
|
+
* @property {typeof getSubscriptionInfo} [getSubscriptionInfo] 구독 주문의 현재 상태 정보를 가져와요.
|
|
268
280
|
*/
|
|
269
281
|
declare const IAP: {
|
|
270
282
|
/**
|
|
@@ -423,6 +435,11 @@ declare const IAP: {
|
|
|
423
435
|
orderId: string;
|
|
424
436
|
};
|
|
425
437
|
}) => Promise<boolean>;
|
|
438
|
+
getSubscriptionInfo: (args_0: {
|
|
439
|
+
params: {
|
|
440
|
+
orderId: string;
|
|
441
|
+
};
|
|
442
|
+
}) => Promise<IapSubscriptionInfoResponse>;
|
|
426
443
|
};
|
|
427
444
|
|
|
428
445
|
/**
|
|
@@ -1031,4 +1048,4 @@ declare const getServerTime: (() => Promise<number | undefined>) & {
|
|
|
1031
1048
|
isSupported: () => boolean;
|
|
1032
1049
|
};
|
|
1033
1050
|
|
|
1034
|
-
export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, type ConsumableProductListItem, type CreateSubscriptionPurchaseOrderOptions, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, type NonConsumableProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type SubscriptionProductListItem, type TdsEvent, TossAds, type AttachBannerOptions as TossAdsAttachBannerOptions, type AttachBannerResult as TossAdsAttachBannerResult, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, getServerTime, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
|
|
1051
|
+
export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, type ConsumableProductListItem, type CreateSubscriptionPurchaseOrderOptions, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, type IapSubscriptionInfoResponse, type IapSubscriptionInfoResult, type NonConsumableProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type SubscriptionProductListItem, type TdsEvent, TossAds, type AttachBannerOptions as TossAdsAttachBannerOptions, type AttachBannerResult as TossAdsAttachBannerResult, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, getServerTime, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
|
package/dist/index.d.ts
CHANGED
|
@@ -255,6 +255,17 @@ interface CompletedOrRefundedOrdersResult {
|
|
|
255
255
|
date: string;
|
|
256
256
|
}[];
|
|
257
257
|
}
|
|
258
|
+
interface IapSubscriptionInfoResult {
|
|
259
|
+
catalogId: number;
|
|
260
|
+
status: string;
|
|
261
|
+
expiresAt: string | null;
|
|
262
|
+
isAutoRenew: boolean;
|
|
263
|
+
gracePeriodExpiresAt: string | null;
|
|
264
|
+
isAccessible: boolean;
|
|
265
|
+
}
|
|
266
|
+
interface IapSubscriptionInfoResponse {
|
|
267
|
+
subscription: IapSubscriptionInfoResult;
|
|
268
|
+
}
|
|
258
269
|
/**
|
|
259
270
|
* @public
|
|
260
271
|
* @category 인앱결제
|
|
@@ -265,6 +276,7 @@ interface CompletedOrRefundedOrdersResult {
|
|
|
265
276
|
* @property {typeof getPendingOrders} [getPendingOrders] 대기 중인 주문 목록을 가져와요. 자세한 내용은 [getPendingOrders](https://developers-apps-in-toss.toss.im/bedrock/reference/framework/%EC%9D%B8%EC%95%B1%20%EA%B2%B0%EC%A0%9C/getPendingOrders.htm) 문서를 참고하세요.
|
|
266
277
|
* @property {typeof getCompletedOrRefundedOrders} [getCompletedOrRefundedOrders] 인앱결제로 구매하거나 환불한 주문 목록을 가져와요. 자세한 내용은 [getCompletedOrRefundedOrders](https://developers-apps-in-toss.toss.im/bedrock/reference/framework/%EC%9D%B8%EC%95%B1%20%EA%B2%B0%EC%A0%9C/getCompletedOrRefundedOrders.html) 문서를 참고하세요.
|
|
267
278
|
* @property {typeof completeProductGrant} [completeProductGrant] 상품 지급 처리를 완료했다는 메시지를 앱에 전달해요. 자세한 내용은 [completeProductGrant](https://developers-apps-in-toss.toss.im/bedrock/reference/framework/%EC%9D%B8%EC%95%B1%20%EA%B2%B0%EC%A0%9C/completeProductGrant.html) 문서를 참고하세요.
|
|
279
|
+
* @property {typeof getSubscriptionInfo} [getSubscriptionInfo] 구독 주문의 현재 상태 정보를 가져와요.
|
|
268
280
|
*/
|
|
269
281
|
declare const IAP: {
|
|
270
282
|
/**
|
|
@@ -423,6 +435,11 @@ declare const IAP: {
|
|
|
423
435
|
orderId: string;
|
|
424
436
|
};
|
|
425
437
|
}) => Promise<boolean>;
|
|
438
|
+
getSubscriptionInfo: (args_0: {
|
|
439
|
+
params: {
|
|
440
|
+
orderId: string;
|
|
441
|
+
};
|
|
442
|
+
}) => Promise<IapSubscriptionInfoResponse>;
|
|
426
443
|
};
|
|
427
444
|
|
|
428
445
|
/**
|
|
@@ -1031,4 +1048,4 @@ declare const getServerTime: (() => Promise<number | undefined>) & {
|
|
|
1031
1048
|
isSupported: () => boolean;
|
|
1032
1049
|
};
|
|
1033
1050
|
|
|
1034
|
-
export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, type ConsumableProductListItem, type CreateSubscriptionPurchaseOrderOptions, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, type NonConsumableProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type SubscriptionProductListItem, type TdsEvent, TossAds, type AttachBannerOptions as TossAdsAttachBannerOptions, type AttachBannerResult as TossAdsAttachBannerResult, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, getServerTime, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
|
|
1051
|
+
export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, type ConsumableProductListItem, type CreateSubscriptionPurchaseOrderOptions, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, type IapSubscriptionInfoResponse, type IapSubscriptionInfoResult, type NonConsumableProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type SubscriptionProductListItem, type TdsEvent, TossAds, type AttachBannerOptions as TossAdsAttachBannerOptions, type AttachBannerResult as TossAdsAttachBannerResult, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, getServerTime, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
|
package/dist/index.js
CHANGED
|
@@ -511,7 +511,10 @@ var IAP = {
|
|
|
511
511
|
* }
|
|
512
512
|
* ```
|
|
513
513
|
*/
|
|
514
|
-
completeProductGrant: createAsyncBridge("completeProductGrant")
|
|
514
|
+
completeProductGrant: createAsyncBridge("completeProductGrant"),
|
|
515
|
+
getSubscriptionInfo: createAsyncBridge(
|
|
516
|
+
"getSubscriptionInfo"
|
|
517
|
+
)
|
|
515
518
|
};
|
|
516
519
|
|
|
517
520
|
// src/getSafeAreaInsets.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-bridge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"description": "Web Bridge for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apps-in-toss/types": "2.
|
|
30
|
+
"@apps-in-toss/types": "2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@apps-in-toss/bridge-core": "2.
|
|
34
|
-
"@apps-in-toss/native-modules": "^2.
|
|
33
|
+
"@apps-in-toss/bridge-core": "2.3.0",
|
|
34
|
+
"@apps-in-toss/native-modules": "^2.3.0",
|
|
35
35
|
"@swc/core": "^1.12.7",
|
|
36
36
|
"picocolors": "^1.1.1",
|
|
37
37
|
"ts-morph": "^26.0.0",
|