@bootpay/client-js 5.2.0-beta.10 → 5.2.0-beta.12
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.mjs +2894 -3034
- package/dist/index.umd.js +27 -27
- package/dist/src/bootpay-environment.d.ts +1 -1
- package/dist/src/bootpay-es5.d.ts +1 -1
- package/dist/src/bootpay-sdk.d.ts +2 -2
- package/dist/src/bootpay-widget.d.ts +2 -2
- package/dist/src/bootpay.d.ts +4 -4
- package/dist/src/index.d.ts +7 -7
- package/dist/src/lib/analytics.d.ts +3 -3
- package/dist/src/lib/bootpay-store.d.ts +1 -1
- package/dist/src/lib/bootpay-widget.d.ts +3 -3
- package/dist/src/lib/bootpay.d.ts +4 -4
- package/dist/src/lib/event/hooks/widget/message.d.ts +3 -3
- package/dist/src/lib/event/payment.d.ts +2 -2
- package/dist/src/lib/event/polling.d.ts +2 -2
- package/dist/src/lib/event/store.d.ts +1 -1
- package/dist/src/lib/event/user-token.d.ts +1 -1
- package/dist/src/lib/event/widget.d.ts +1 -1
- package/dist/src/lib/template/brandpay.d.ts +2 -2
- package/dist/src/lib/template/confirm-modal.d.ts +1 -1
- package/dist/src/lib/template/modal.d.ts +1 -1
- package/dist/src/lib/template/payment.d.ts +2 -2
- package/dist/src/lib/template/store.d.ts +2 -2
- package/dist/src/lib/template/user-token.d.ts +4 -4
- package/dist/src/lib/template/widget.d.ts +2 -2
- package/dist/src/support/alfred-progress/index.d.ts +1 -1
- package/dist/src/support/bootpay-manager.d.ts +2 -2
- package/dist/src/support/event-logger.d.ts +2 -2
- package/dist/src/support/event.d.ts +1 -1
- package/dist/src/support/ex-store.d.ts +2 -2
- package/dist/src/support/resource.d.ts +1 -1
- package/dist/src/support/storage.d.ts +1 -1
- package/dist/src/support/stores/bootpay-store.d.ts +2 -2
- package/dist/src/support/stores/widget-store.d.ts +4 -4
- package/dist/src/support/template-manager.d.ts +1 -1
- package/dist/src/support/widget-store.d.ts +2 -2
- package/dist/src/types/bootpay-interface.d.ts +1 -1
- package/dist/src/types/bootpay-sdk-interface.d.ts +1 -1
- package/dist/src/types/bootpay-widget-interface.d.ts +1 -1
- package/package.json +5 -7
- package/tsconfig.json +12 -8
- package/vite.config.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserTokenTemplateManager } from '
|
|
2
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from '
|
|
1
|
+
import { UserTokenTemplateManager } from './node_modules/lib/template/user-token';
|
|
2
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from './node_modules/types/bootpay-sdk-interface';
|
|
3
3
|
|
|
4
4
|
interface BootpaySdkInterface {
|
|
5
5
|
$templateUserToken: UserTokenTemplateManager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '
|
|
2
|
-
import { RequestPaymentModel, RequestSubscriptionModel } from '
|
|
1
|
+
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from './node_modules/types/bootpay-widget-interface';
|
|
2
|
+
import { RequestPaymentModel, RequestSubscriptionModel } from './node_modules/types/bootpay-interface';
|
|
3
3
|
|
|
4
4
|
export interface BootpayWidgetInterface {
|
|
5
5
|
render(el: string, data: RequestBootpayWidgetModel): void;
|
package/dist/src/bootpay.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '
|
|
2
|
-
import { EnvironmentInterface } from '
|
|
3
|
-
import { BootpayRequestPaymentManager } from '
|
|
4
|
-
import { BootpayAnalyticsManager } from '
|
|
1
|
+
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from './node_modules/types/bootpay-interface';
|
|
2
|
+
import { EnvironmentInterface } from './node_modules/support/environment';
|
|
3
|
+
import { BootpayRequestPaymentManager } from './node_modules/lib/bootpay';
|
|
4
|
+
import { BootpayAnalyticsManager } from './node_modules/lib/analytics';
|
|
5
5
|
|
|
6
6
|
export interface BootpayInterface {
|
|
7
7
|
$payment: BootpayRequestPaymentManager;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { default as Bootpay, BootpayInterface } from '
|
|
2
|
-
import { default as BootpaySDK } from '
|
|
3
|
-
import { default as BootpayEnvironment } from '
|
|
4
|
-
import { default as BootpayStore } from '
|
|
5
|
-
import { default as BootpayWidget, BootpayWidgetInterface } from '
|
|
6
|
-
import { UserTokenTemplateManager } from '
|
|
7
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from '
|
|
1
|
+
import { default as Bootpay, BootpayInterface } from './node_modules/bootpay';
|
|
2
|
+
import { default as BootpaySDK } from './node_modules/bootpay-sdk';
|
|
3
|
+
import { default as BootpayEnvironment } from './node_modules/bootpay-environment';
|
|
4
|
+
import { default as BootpayStore } from './node_modules/bootpay-store';
|
|
5
|
+
import { default as BootpayWidget, BootpayWidgetInterface } from './node_modules/bootpay-widget';
|
|
6
|
+
import { UserTokenTemplateManager } from './node_modules/lib/template/user-token';
|
|
7
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from './node_modules/types/bootpay-sdk-interface';
|
|
8
8
|
|
|
9
9
|
export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore };
|
|
10
10
|
export default Bootpay;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
3
|
-
import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '
|
|
1
|
+
import { Resource } from '../support/resource';
|
|
2
|
+
import { SessionStorageManager } from '../support/storage';
|
|
3
|
+
import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../types/bootpay-interface';
|
|
4
4
|
|
|
5
5
|
export declare class BootpayAnalyticsManager extends Resource {
|
|
6
6
|
$session: SessionStorageManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BootpayManager } from '
|
|
2
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '
|
|
3
|
-
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '
|
|
1
|
+
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
|
+
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../types/bootpay-widget-interface';
|
|
3
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../types/bootpay-interface';
|
|
4
4
|
|
|
5
5
|
export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
6
6
|
message: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BootpayManager } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
3
|
-
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '
|
|
4
|
-
import { EventLoggerManager } from '
|
|
1
|
+
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
|
+
import { SessionStorageManager } from '../support/storage';
|
|
3
|
+
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../types/bootpay-interface';
|
|
4
|
+
import { EventLoggerManager } from '../support/event-logger';
|
|
5
5
|
|
|
6
6
|
export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
7
7
|
$session: SessionStorageManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResponseBootpayWidgetTermsModel } from '
|
|
2
|
-
import { ExtraModel } from '
|
|
3
|
-
import { BootpayWindowEvent } from '
|
|
1
|
+
import { ResponseBootpayWidgetTermsModel } from '../../../../../../../types/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel } from '../../../../../../../types/bootpay-interface';
|
|
3
|
+
import { BootpayWindowEvent } from '../../../../../../../support/event';
|
|
4
4
|
|
|
5
5
|
export declare const WidgetWindowMessage: {
|
|
6
6
|
$eventPrefix: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BootpayWindowEvent } from '
|
|
2
|
-
import { BootpayPollingEvent } from '
|
|
1
|
+
import { BootpayWindowEvent } from '../../../support/event';
|
|
2
|
+
import { BootpayPollingEvent } from '../../node_modules/polling';
|
|
3
3
|
|
|
4
4
|
interface PollingDataModel {
|
|
5
5
|
applicationId: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Resource } from '
|
|
1
|
+
import { Resource } from '../../../support/resource';
|
|
2
2
|
|
|
3
3
|
export declare class BootpayPollingEvent extends Resource {
|
|
4
4
|
constructor();
|
|
@@ -7,6 +7,6 @@ export declare class BootpayPollingEvent extends Resource {
|
|
|
7
7
|
* Comment by GOSOMI
|
|
8
8
|
* @date: 2021-12-29
|
|
9
9
|
*/
|
|
10
|
-
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('
|
|
10
|
+
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('../../node_modules/axios').AxiosResponse<any, any>>;
|
|
11
11
|
}
|
|
12
12
|
export declare const BootpayPolling: BootpayPollingEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { WidgetStoreModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../support/template-manager';
|
|
2
|
+
import { WidgetStoreModel } from '../../../support/widget-store';
|
|
3
3
|
|
|
4
4
|
declare class BrandpayTemplateManager extends TemplateManager {
|
|
5
5
|
$brandpayWindowId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { ConfirmModel, PopupDisplayResponseModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../support/template-manager';
|
|
2
|
+
import { ConfirmModel, PopupDisplayResponseModel } from '../../../types/bootpay-interface';
|
|
3
3
|
|
|
4
4
|
declare class TemplatePaymentManager extends TemplateManager {
|
|
5
5
|
$template: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { ExStoreManager } from '
|
|
1
|
+
import { TemplateManager } from '../../../support/template-manager';
|
|
2
|
+
import { ExStoreManager } from '../../../support/ex-store';
|
|
3
3
|
|
|
4
4
|
declare class TemplateStoreManager extends TemplateManager {
|
|
5
5
|
$template: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { BootpayUserTokenEventManager } from '
|
|
3
|
-
import { SessionStorageManager } from '
|
|
4
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../support/template-manager';
|
|
2
|
+
import { BootpayUserTokenEventManager } from '../../event/user-token';
|
|
3
|
+
import { SessionStorageManager } from '../../../support/storage';
|
|
4
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from '../../../types/bootpay-sdk-interface';
|
|
5
5
|
|
|
6
6
|
export declare class UserTokenTemplateManager extends TemplateManager {
|
|
7
7
|
$session: SessionStorageManager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { WidgetStoreModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../support/template-manager';
|
|
2
|
+
import { WidgetStoreModel } from '../../../support/widget-store';
|
|
3
3
|
|
|
4
4
|
declare class TemplateWidgetManager extends TemplateManager {
|
|
5
5
|
$iFrameId: string;
|
|
@@ -3,7 +3,7 @@ export declare class BootpayManager {
|
|
|
3
3
|
$present(value: any): boolean;
|
|
4
4
|
$type(value: any, type: string): boolean;
|
|
5
5
|
$uuid(): string;
|
|
6
|
-
$encrypt(data: any):
|
|
7
|
-
$decrypt(payload: string):
|
|
6
|
+
$encrypt(data: any): string;
|
|
7
|
+
$decrypt(payload: string): string;
|
|
8
8
|
getUserAgent(): string;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Resource } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
1
|
+
import { Resource } from '../node_modules/resource';
|
|
2
|
+
import { SessionStorageManager } from '../node_modules/storage';
|
|
3
3
|
|
|
4
4
|
interface EventDataModel {
|
|
5
5
|
application_id?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BootpayStoreManager } from '
|
|
1
|
+
import { BootpayStoreManager } from '../node_modules/stores/bootpay-store';
|
|
2
2
|
|
|
3
3
|
export declare class ExStoreManager extends BootpayStoreManager {
|
|
4
4
|
data: any | undefined;
|
|
@@ -7,7 +7,7 @@ export declare class ExStoreManager extends BootpayStoreManager {
|
|
|
7
7
|
constructor();
|
|
8
8
|
setExData(el: string, data: RequestExModel): void;
|
|
9
9
|
encryptParameters(): string;
|
|
10
|
-
encryptKey():
|
|
10
|
+
encryptKey(): string;
|
|
11
11
|
currentBootpayStoreParameters(): string;
|
|
12
12
|
}
|
|
13
13
|
export declare const ExStore: ExStoreManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '
|
|
2
|
-
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '
|
|
3
|
-
import { BootpayStoreManager } from '
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../../types/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../../types/bootpay-interface';
|
|
3
|
+
import { BootpayStoreManager } from '../../node_modules/bootpay-store';
|
|
4
4
|
|
|
5
5
|
export declare class WidgetStoreManager extends BootpayStoreManager {
|
|
6
6
|
el: string | undefined;
|
|
@@ -12,7 +12,7 @@ export declare class WidgetStoreManager extends BootpayStoreManager {
|
|
|
12
12
|
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
13
13
|
updateOnProcessing(data: WidgetStoreData): void;
|
|
14
14
|
encryptParameters(): string;
|
|
15
|
-
encryptKey():
|
|
15
|
+
encryptKey(): string;
|
|
16
16
|
/**
|
|
17
17
|
* 결제 요청시 가져올 extra 값
|
|
18
18
|
* Comment by GOSOMI
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '
|
|
2
|
-
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '../types/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../types/bootpay-interface';
|
|
3
3
|
|
|
4
4
|
export interface WidgetStoreModel {
|
|
5
5
|
el: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtraModel, RequestPaymentModel, WidgetExtraModel } from '
|
|
1
|
+
import { ExtraModel, RequestPaymentModel, WidgetExtraModel } from '../node_modules/bootpay-interface';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
export interface RequestBootpayWidgetModel extends Partial<RequestPaymentModel> {
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.2.0-beta.
|
|
4
|
-
"main": "dist/index.
|
|
3
|
+
"version": "5.2.0-beta.12",
|
|
4
|
+
"main": "dist/index.mjs",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"import": "./dist/index.
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"./package.json": "./package.json"
|
|
7
|
+
"import": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/src/index.d.ts"
|
|
9
|
+
}
|
|
12
10
|
},
|
|
13
11
|
"styles": "dist/index.css",
|
|
14
12
|
"scripts": {
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
4
|
-
"module": "esnext",
|
|
3
|
+
"target": "es5",
|
|
5
4
|
"sourceMap": false,
|
|
6
5
|
"lib": [
|
|
7
6
|
"esnext",
|
|
8
7
|
"dom"
|
|
9
8
|
],
|
|
10
|
-
"
|
|
9
|
+
"module": "commonjs",
|
|
10
|
+
"moduleResolution": "node",
|
|
11
11
|
"allowSyntheticDefaultImports": true,
|
|
12
12
|
"resolveJsonModule": true,
|
|
13
13
|
"esModuleInterop": true,
|
|
@@ -21,16 +21,20 @@
|
|
|
21
21
|
"baseUrl": "./src/",
|
|
22
22
|
"paths": {
|
|
23
23
|
"*": [
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"./node_modules/*",
|
|
25
|
+
"./src/*"
|
|
26
26
|
]
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
|
+
"typeRoots": [
|
|
29
|
+
"./node_modules/@types",
|
|
30
|
+
"./src/types"
|
|
31
|
+
],
|
|
28
32
|
},
|
|
29
33
|
"include": [
|
|
30
34
|
"src/**/*.ts",
|
|
31
|
-
"src/**/*.d.ts",
|
|
32
35
|
"src/**/*.js",
|
|
33
|
-
"src/**/*.json"
|
|
36
|
+
"src/**/*.json",
|
|
37
|
+
"src/**/*.vue"
|
|
34
38
|
],
|
|
35
39
|
"exclude": [
|
|
36
40
|
"**/*.spec.ts",
|
package/vite.config.ts
CHANGED