@tossplace/pos-plugin-sdk 0.0.11 → 0.0.13

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
@@ -500,13 +500,18 @@ declare type NumberInput = BaseInput & {
500
500
  export declare interface Order {
501
501
  getOrder: (id: string) => Promise<PluginOrder>;
502
502
  /**
503
- * @param start yyyy-MM-dd
504
- * @param end yyyy-MM-dd
503
+ * @param start ISO 8601 포맷
504
+ * @param end ISO 8601 포맷
505
+ * @param page default 1
506
+ * @param size default 20
505
507
  * @description createdAt 기준으로 주문을 조회합니다
506
508
  */
507
- getOrders: (range: {
509
+ getOrders: (params: {
508
510
  start: string;
509
511
  end: string;
512
+ page?: number;
513
+ size?: number;
514
+ orderStates?: PluginOrderState[];
510
515
  }) => Promise<PluginOrder[]>;
511
516
  /**
512
517
  * @deprecated
@@ -1321,6 +1326,7 @@ export declare type PluginOrderDiningOption = 'HERE' | 'TOGO' | 'DELIVERY' | 'PI
1321
1326
  */
1322
1327
  export declare type PluginOrderDto = {
1323
1328
  memo?: string;
1329
+ numGuests?: number;
1324
1330
  discounts: PluginDiscount[];
1325
1331
  tableId?: number;
1326
1332
  lineItems: Omit<PluginOrderItem, 'id' | 'orderId'>[];
@@ -1360,10 +1366,6 @@ declare interface PluginOrderPaymentPrice {
1360
1366
  /**
1361
1367
  * @publicApi
1362
1368
  * 주문의 결제상태
1363
- * 상태 전이 규칙은 아래 문서를 참조해주세요. (22.09)
1364
- * https://www.notion.so/tossteam/1affab9356d24d2d9256ca21be2db473
1365
- * 또다른 문서도 있어요. (25.03)
1366
- * https://www.notion.so/tossteam/1c3a360d33e380979d4df2a1ba3bfd31
1367
1369
  *
1368
1370
  * OPENED: 결제 전 (초기 상태)
1369
1371
  * PAID: 부분 결제 (일부 금액만 결제된 상태)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tossplace/pos-plugin-sdk",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "포스 플러그인 sdk",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/types/index.d.ts CHANGED
@@ -487,13 +487,18 @@ declare type NumberInput = BaseInput & {
487
487
  export declare interface Order {
488
488
  getOrder: (id: string) => Promise<PluginOrder>;
489
489
  /**
490
- * @param start yyyy-MM-dd
491
- * @param end yyyy-MM-dd
490
+ * @param start ISO 8601 포맷
491
+ * @param end ISO 8601 포맷
492
+ * @param page default 1
493
+ * @param size default 20
492
494
  * @description createdAt 기준으로 주문을 조회합니다
493
495
  */
494
- getOrders: (range: {
496
+ getOrders: (params: {
495
497
  start: string;
496
498
  end: string;
499
+ page?: number;
500
+ size?: number;
501
+ orderStates?: PluginOrderState[];
497
502
  }) => Promise<PluginOrder[]>;
498
503
  /**
499
504
  * @deprecated
@@ -1308,6 +1313,7 @@ export declare type PluginOrderDiningOption = 'HERE' | 'TOGO' | 'DELIVERY' | 'PI
1308
1313
  */
1309
1314
  export declare type PluginOrderDto = {
1310
1315
  memo?: string;
1316
+ numGuests?: number;
1311
1317
  discounts: PluginDiscount[];
1312
1318
  tableId?: number;
1313
1319
  lineItems: Omit<PluginOrderItem, 'id' | 'orderId'>[];
@@ -1347,10 +1353,6 @@ declare interface PluginOrderPaymentPrice {
1347
1353
  /**
1348
1354
  * @publicApi
1349
1355
  * 주문의 결제상태
1350
- * 상태 전이 규칙은 아래 문서를 참조해주세요. (22.09)
1351
- * https://www.notion.so/tossteam/1affab9356d24d2d9256ca21be2db473
1352
- * 또다른 문서도 있어요. (25.03)
1353
- * https://www.notion.so/tossteam/1c3a360d33e380979d4df2a1ba3bfd31
1354
1356
  *
1355
1357
  * OPENED: 결제 전 (초기 상태)
1356
1358
  * PAID: 부분 결제 (일부 금액만 결제된 상태)