@tossplace/pos-plugin-sdk 0.0.22 → 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 +37 -1
- package/package.json +1 -1
- package/types/index.d.ts +37 -1
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
|
|
@@ -1800,7 +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: (
|
|
1838
|
+
on(event: 'move', callback: (payload: MovePayload) => void): void;
|
|
1839
|
+
on(event: 'merge', callback: (payload: MergePayload) => void): void;
|
|
1804
1840
|
}
|
|
1805
1841
|
|
|
1806
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
|
|
@@ -1793,7 +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: (
|
|
1831
|
+
on(event: 'move', callback: (payload: MovePayload) => void): void;
|
|
1832
|
+
on(event: 'merge', callback: (payload: MergePayload) => void): void;
|
|
1797
1833
|
}
|
|
1798
1834
|
|
|
1799
1835
|
/**
|