@open-tender/store 0.2.2 → 0.2.3
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.
|
@@ -59,7 +59,7 @@ declare class PosAPI {
|
|
|
59
59
|
getOrders(args: FetchOrdersAPIArgs): Promise<Orders | null | undefined>;
|
|
60
60
|
patchOrder(orderId: string, data: OrderUpdate): Promise<Order | null | undefined>;
|
|
61
61
|
postReceipt(orderId: string): Promise<Order | null | undefined>;
|
|
62
|
-
postTicketsPrint(orderId: string, data
|
|
62
|
+
postTicketsPrint(orderId: string, data?: OrderUpdate): Promise<Order | null | undefined>;
|
|
63
63
|
postTicketsReset(orderId: string): Promise<Order | null | undefined>;
|
|
64
64
|
postTicketPrint(orderId: string, ticketNo: number, data?: TicketUpdate): Promise<Order | null | undefined>;
|
|
65
65
|
postTicketStatus(orderId: string, ticketNo: number, status: TicketStatusUpdate): Promise<Order | null | undefined>;
|
package/dist/cjs/services/api.js
CHANGED
|
@@ -291,6 +291,7 @@ var PosAPI = /** @class */ (function () {
|
|
|
291
291
|
return this.request("/orders/".concat(orderId, "/print"), 'POST', {});
|
|
292
292
|
};
|
|
293
293
|
PosAPI.prototype.postTicketsPrint = function (orderId, data) {
|
|
294
|
+
if (data === void 0) { data = {}; }
|
|
294
295
|
var endpoint = "/orders/".concat(orderId, "/tickets/print");
|
|
295
296
|
return this.request(endpoint, 'POST', data);
|
|
296
297
|
};
|
|
@@ -34,7 +34,7 @@ export declare const printReceipt: import("@reduxjs/toolkit").AsyncThunk<void, s
|
|
|
34
34
|
}>;
|
|
35
35
|
export declare const printTickets: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
36
36
|
orderId: string;
|
|
37
|
-
data
|
|
37
|
+
data?: OrderUpdate | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
state: AppState;
|
|
40
40
|
}>;
|
|
@@ -59,7 +59,7 @@ declare class PosAPI {
|
|
|
59
59
|
getOrders(args: FetchOrdersAPIArgs): Promise<Orders | null | undefined>;
|
|
60
60
|
patchOrder(orderId: string, data: OrderUpdate): Promise<Order | null | undefined>;
|
|
61
61
|
postReceipt(orderId: string): Promise<Order | null | undefined>;
|
|
62
|
-
postTicketsPrint(orderId: string, data
|
|
62
|
+
postTicketsPrint(orderId: string, data?: OrderUpdate): Promise<Order | null | undefined>;
|
|
63
63
|
postTicketsReset(orderId: string): Promise<Order | null | undefined>;
|
|
64
64
|
postTicketPrint(orderId: string, ticketNo: number, data?: TicketUpdate): Promise<Order | null | undefined>;
|
|
65
65
|
postTicketStatus(orderId: string, ticketNo: number, status: TicketStatusUpdate): Promise<Order | null | undefined>;
|
package/dist/esm/services/api.js
CHANGED
|
@@ -289,6 +289,7 @@ var PosAPI = /** @class */ (function () {
|
|
|
289
289
|
return this.request("/orders/".concat(orderId, "/print"), 'POST', {});
|
|
290
290
|
};
|
|
291
291
|
PosAPI.prototype.postTicketsPrint = function (orderId, data) {
|
|
292
|
+
if (data === void 0) { data = {}; }
|
|
292
293
|
var endpoint = "/orders/".concat(orderId, "/tickets/print");
|
|
293
294
|
return this.request(endpoint, 'POST', data);
|
|
294
295
|
};
|
|
@@ -34,7 +34,7 @@ export declare const printReceipt: import("@reduxjs/toolkit").AsyncThunk<void, s
|
|
|
34
34
|
}>;
|
|
35
35
|
export declare const printTickets: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
36
36
|
orderId: string;
|
|
37
|
-
data
|
|
37
|
+
data?: OrderUpdate | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
state: AppState;
|
|
40
40
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|