@open-tender/store 1.1.104 → 1.1.105
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.
|
@@ -12,7 +12,7 @@ export interface CustomerState {
|
|
|
12
12
|
error: RequestError;
|
|
13
13
|
}
|
|
14
14
|
export declare enum CustomerActionType {
|
|
15
|
-
FetchCustomer = "
|
|
15
|
+
FetchCustomer = "customer/fetchCustomer"
|
|
16
16
|
}
|
|
17
17
|
export declare const fetchCustomer: import("@reduxjs/toolkit").AsyncThunk<CustomerEntities, {
|
|
18
18
|
customerId: number;
|
|
@@ -17,7 +17,7 @@ var initialState = {
|
|
|
17
17
|
};
|
|
18
18
|
var CustomerActionType;
|
|
19
19
|
(function (CustomerActionType) {
|
|
20
|
-
CustomerActionType["FetchCustomer"] = "
|
|
20
|
+
CustomerActionType["FetchCustomer"] = "customer/fetchCustomer";
|
|
21
21
|
})(CustomerActionType || (exports.CustomerActionType = CustomerActionType = {}));
|
|
22
22
|
exports.fetchCustomer = (0, toolkit_1.createAsyncThunk)(CustomerActionType.FetchCustomer, function (_a, _b) { return tslib_1.__awaiter(void 0, [_a, _b], void 0, function (_c, _d) {
|
|
23
23
|
var api, err_1;
|
package/dist/cjs/slices/kiosk.js
CHANGED
|
@@ -40,6 +40,10 @@ exports.fetchKioskConfig = (0, toolkit_1.createAsyncThunk)(KioskActionType.Fetch
|
|
|
40
40
|
posTerminalId = getState().pos.terminalId;
|
|
41
41
|
app = posTerminalId ? { apiUrl: apiUrl, posTerminalId: posTerminalId } : { apiUrl: apiUrl };
|
|
42
42
|
api = new services_1.PosAPI(app);
|
|
43
|
+
console.log('app');
|
|
44
|
+
console.log(app);
|
|
45
|
+
console.log('api');
|
|
46
|
+
console.log(api);
|
|
43
47
|
return [4 /*yield*/, Promise.all([
|
|
44
48
|
api.getKioskConfig(),
|
|
45
49
|
api.getSettings('DEVICES'),
|
|
@@ -12,7 +12,7 @@ export interface CustomerState {
|
|
|
12
12
|
error: RequestError;
|
|
13
13
|
}
|
|
14
14
|
export declare enum CustomerActionType {
|
|
15
|
-
FetchCustomer = "
|
|
15
|
+
FetchCustomer = "customer/fetchCustomer"
|
|
16
16
|
}
|
|
17
17
|
export declare const fetchCustomer: import("@reduxjs/toolkit").AsyncThunk<CustomerEntities, {
|
|
18
18
|
customerId: number;
|
|
@@ -14,7 +14,7 @@ var initialState = {
|
|
|
14
14
|
};
|
|
15
15
|
export var CustomerActionType;
|
|
16
16
|
(function (CustomerActionType) {
|
|
17
|
-
CustomerActionType["FetchCustomer"] = "
|
|
17
|
+
CustomerActionType["FetchCustomer"] = "customer/fetchCustomer";
|
|
18
18
|
})(CustomerActionType || (CustomerActionType = {}));
|
|
19
19
|
export var fetchCustomer = createAsyncThunk(CustomerActionType.FetchCustomer, function (_a, _b) { return __awaiter(void 0, [_a, _b], void 0, function (_c, _d) {
|
|
20
20
|
var api, err_1;
|
package/dist/esm/slices/kiosk.js
CHANGED
|
@@ -37,6 +37,10 @@ export var fetchKioskConfig = createAsyncThunk(KioskActionType.FetchKiosk, funct
|
|
|
37
37
|
posTerminalId = getState().pos.terminalId;
|
|
38
38
|
app = posTerminalId ? { apiUrl: apiUrl, posTerminalId: posTerminalId } : { apiUrl: apiUrl };
|
|
39
39
|
api = new PosAPI(app);
|
|
40
|
+
console.log('app');
|
|
41
|
+
console.log(app);
|
|
42
|
+
console.log('api');
|
|
43
|
+
console.log(api);
|
|
40
44
|
return [4 /*yield*/, Promise.all([
|
|
41
45
|
api.getKioskConfig(),
|
|
42
46
|
api.getSettings('DEVICES'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.105",
|
|
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",
|