@tossplace/pos-plugin-sdk 0.0.21 → 0.0.23
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.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/sdk.d.ts +38 -6
- package/package.json +1 -1
- package/types/index.d.ts +38 -6
package/dist/sdk.d.ts
CHANGED
|
@@ -395,6 +395,41 @@ export declare interface Merchant {
|
|
|
395
395
|
getMerchant: () => Promise<TossMerchant>;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
+
declare type MergePayload = {
|
|
399
|
+
from: {
|
|
400
|
+
table: {
|
|
401
|
+
id: PluginTable['id'];
|
|
402
|
+
};
|
|
403
|
+
order: {
|
|
404
|
+
id: PluginOrder['id'];
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
to: {
|
|
408
|
+
table: {
|
|
409
|
+
id: PluginTable['id'];
|
|
410
|
+
};
|
|
411
|
+
order: {
|
|
412
|
+
id: PluginOrder['id'];
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
declare type MovePayload = {
|
|
418
|
+
order: {
|
|
419
|
+
id: PluginOrder['id'];
|
|
420
|
+
};
|
|
421
|
+
from: {
|
|
422
|
+
table: {
|
|
423
|
+
id: PluginTable['id'];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
to: {
|
|
427
|
+
table: {
|
|
428
|
+
id: PluginTable['id'];
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
|
|
398
433
|
/**
|
|
399
434
|
* @publicApi
|
|
400
435
|
* @return number
|
|
@@ -1223,7 +1258,7 @@ declare interface PluginKdsOrderItem {
|
|
|
1223
1258
|
updatedAt: string;
|
|
1224
1259
|
}
|
|
1225
1260
|
|
|
1226
|
-
declare type PluginKdsOrderItemState = 'OPENED' | 'COMPLETED' | 'CANCELLED';
|
|
1261
|
+
declare type PluginKdsOrderItemState = 'REQUESTED' | 'OPENED' | 'COMPLETED' | 'CANCELLED';
|
|
1227
1262
|
|
|
1228
1263
|
declare type PluginKdsOrderRequestType = 'ADDED' | 'NEW' | 'CHANGED' | 'CANCELLED' | 'MERGED';
|
|
1229
1264
|
|
|
@@ -1800,11 +1835,8 @@ export declare interface Table {
|
|
|
1800
1835
|
})[]>;
|
|
1801
1836
|
getTable: (tableId: number) => Promise<PluginTable>;
|
|
1802
1837
|
on(event: 'clear' | 'add' | 'delete' | 'update', callback: (id: PluginTable['id']) => void): void;
|
|
1803
|
-
on(event: 'move', callback: (
|
|
1804
|
-
|
|
1805
|
-
table: PluginTable;
|
|
1806
|
-
order?: PluginOrder;
|
|
1807
|
-
}) => Promise<void>;
|
|
1838
|
+
on(event: 'move', callback: (payload: MovePayload) => void): void;
|
|
1839
|
+
on(event: 'merge', callback: (payload: MergePayload) => void): void;
|
|
1808
1840
|
}
|
|
1809
1841
|
|
|
1810
1842
|
/**
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -395,6 +395,41 @@ export declare interface Merchant {
|
|
|
395
395
|
getMerchant: () => Promise<TossMerchant>;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
+
declare type MergePayload = {
|
|
399
|
+
from: {
|
|
400
|
+
table: {
|
|
401
|
+
id: PluginTable['id'];
|
|
402
|
+
};
|
|
403
|
+
order: {
|
|
404
|
+
id: PluginOrder['id'];
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
to: {
|
|
408
|
+
table: {
|
|
409
|
+
id: PluginTable['id'];
|
|
410
|
+
};
|
|
411
|
+
order: {
|
|
412
|
+
id: PluginOrder['id'];
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
declare type MovePayload = {
|
|
418
|
+
order: {
|
|
419
|
+
id: PluginOrder['id'];
|
|
420
|
+
};
|
|
421
|
+
from: {
|
|
422
|
+
table: {
|
|
423
|
+
id: PluginTable['id'];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
to: {
|
|
427
|
+
table: {
|
|
428
|
+
id: PluginTable['id'];
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
|
|
398
433
|
/**
|
|
399
434
|
* @publicApi
|
|
400
435
|
* @return number
|
|
@@ -1223,7 +1258,7 @@ declare interface PluginKdsOrderItem {
|
|
|
1223
1258
|
updatedAt: string;
|
|
1224
1259
|
}
|
|
1225
1260
|
|
|
1226
|
-
declare type PluginKdsOrderItemState = 'OPENED' | 'COMPLETED' | 'CANCELLED';
|
|
1261
|
+
declare type PluginKdsOrderItemState = 'REQUESTED' | 'OPENED' | 'COMPLETED' | 'CANCELLED';
|
|
1227
1262
|
|
|
1228
1263
|
declare type PluginKdsOrderRequestType = 'ADDED' | 'NEW' | 'CHANGED' | 'CANCELLED' | 'MERGED';
|
|
1229
1264
|
|
|
@@ -1793,11 +1828,8 @@ export declare interface Table {
|
|
|
1793
1828
|
})[]>;
|
|
1794
1829
|
getTable: (tableId: number) => Promise<PluginTable>;
|
|
1795
1830
|
on(event: 'clear' | 'add' | 'delete' | 'update', callback: (id: PluginTable['id']) => void): void;
|
|
1796
|
-
on(event: 'move', callback: (
|
|
1797
|
-
|
|
1798
|
-
table: PluginTable;
|
|
1799
|
-
order?: PluginOrder;
|
|
1800
|
-
}) => Promise<void>;
|
|
1831
|
+
on(event: 'move', callback: (payload: MovePayload) => void): void;
|
|
1832
|
+
on(event: 'merge', callback: (payload: MergePayload) => void): void;
|
|
1801
1833
|
}
|
|
1802
1834
|
|
|
1803
1835
|
/**
|