@tossplace/pos-plugin-sdk 0.0.25 → 0.0.26

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/sdk.d.ts CHANGED
@@ -439,6 +439,28 @@ declare type MovePayload = {
439
439
  };
440
440
  };
441
441
 
442
+ /**
443
+ * @publicApi
444
+ */
445
+ export declare interface Navigation {
446
+ navigate(page: 'plugin-tab', packageName?: string): void;
447
+ navigate(page: 'business-type-setting'): void;
448
+ /**
449
+ * 포스에서 페이지를 이동합니다.
450
+ * @param page business-type-setting 업종유형 변경, plugin-tab 플러그인 탭 이동
451
+ * @param packageName 이동할 탭의 이름, 없는 경우 첫번째 플러그인 탭으로 이동합니다
452
+ */
453
+ navigate(page: 'business-type-setting' | 'plugin-tab', packageName?: string): void;
454
+ }
455
+
456
+ /**
457
+ * @publicApi
458
+ */
459
+ export declare class NavigationImpl implements Navigation {
460
+ navigate(page: 'plugin-tab', packageName?: string): void;
461
+ navigate(page: 'business-type-setting'): void;
462
+ }
463
+
442
464
  /**
443
465
  * @publicApi
444
466
  * @return number
@@ -575,7 +597,10 @@ export declare interface Payment {
575
597
  getPayment: (paymentId: PluginPayment['id']) => Promise<PluginPayment>;
576
598
  }
577
599
 
578
- declare type PaymentBeforeCancelCallback = (payload: {
600
+ /**
601
+ * @publicApi
602
+ */
603
+ export declare type PaymentBeforeCancelCallback = (payload: {
579
604
  order: PluginOrder;
580
605
  payment: PluginPayment;
581
606
  }) => Promise<void>;
@@ -1743,6 +1768,7 @@ export declare type PosPluginSdk = {
1743
1768
  sound: SoundTypes;
1744
1769
  kdsOrder: KdsOrder;
1745
1770
  pluginUnicast: PluginUnicastTypes;
1771
+ navigation: Navigation;
1746
1772
  };
1747
1773
 
1748
1774
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tossplace/pos-plugin-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "포스 플러그인 sdk",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/types/index.d.ts CHANGED
@@ -439,6 +439,28 @@ declare type MovePayload = {
439
439
  };
440
440
  };
441
441
 
442
+ /**
443
+ * @publicApi
444
+ */
445
+ export declare interface Navigation {
446
+ navigate(page: 'plugin-tab', packageName?: string): void;
447
+ navigate(page: 'business-type-setting'): void;
448
+ /**
449
+ * 포스에서 페이지를 이동합니다.
450
+ * @param page business-type-setting 업종유형 변경, plugin-tab 플러그인 탭 이동
451
+ * @param packageName 이동할 탭의 이름, 없는 경우 첫번째 플러그인 탭으로 이동합니다
452
+ */
453
+ navigate(page: 'business-type-setting' | 'plugin-tab', packageName?: string): void;
454
+ }
455
+
456
+ /**
457
+ * @publicApi
458
+ */
459
+ export declare class NavigationImpl implements Navigation {
460
+ navigate(page: 'plugin-tab', packageName?: string): void;
461
+ navigate(page: 'business-type-setting'): void;
462
+ }
463
+
442
464
  /**
443
465
  * @publicApi
444
466
  * @return number
@@ -575,7 +597,10 @@ export declare interface Payment {
575
597
  getPayment: (paymentId: PluginPayment['id']) => Promise<PluginPayment>;
576
598
  }
577
599
 
578
- declare type PaymentBeforeCancelCallback = (payload: {
600
+ /**
601
+ * @publicApi
602
+ */
603
+ export declare type PaymentBeforeCancelCallback = (payload: {
579
604
  order: PluginOrder;
580
605
  payment: PluginPayment;
581
606
  }) => Promise<void>;
@@ -1736,6 +1761,7 @@ export declare type PosPluginSdk = {
1736
1761
  sound: SoundTypes;
1737
1762
  kdsOrder: KdsOrder;
1738
1763
  pluginUnicast: PluginUnicastTypes;
1764
+ navigation: Navigation;
1739
1765
  };
1740
1766
 
1741
1767
  /**