@open-tender/store 1.1.233 → 1.1.234
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.
|
@@ -23,13 +23,7 @@ export declare const errorsApi: {
|
|
|
23
23
|
title: string;
|
|
24
24
|
detail: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
code: string;
|
|
28
|
-
status: number;
|
|
29
|
-
title: string;
|
|
30
|
-
detail: string;
|
|
31
|
-
};
|
|
32
|
-
unableToReachStore: {
|
|
26
|
+
missingKioskSettings: {
|
|
33
27
|
code: string;
|
|
34
28
|
status: number;
|
|
35
29
|
title: string;
|
|
@@ -26,17 +26,11 @@ exports.errorsApi = {
|
|
|
26
26
|
title: 'Internal Server Error',
|
|
27
27
|
detail: 'Internal server error.\nPlease contact Checkmate Support.'
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
missingKioskSettings: {
|
|
30
30
|
code: 'internal_server_error',
|
|
31
31
|
status: 500,
|
|
32
|
-
title: '
|
|
33
|
-
detail: '
|
|
34
|
-
},
|
|
35
|
-
unableToReachStore: {
|
|
36
|
-
code: 'internal_server_error',
|
|
37
|
-
status: 500,
|
|
38
|
-
title: 'Internal Server Error',
|
|
39
|
-
detail: 'No stores found.\nPlease contact Checkmate Support.'
|
|
32
|
+
title: 'Missing Kiosk Settings',
|
|
33
|
+
detail: 'Missing Kiosk Settings.\nPlease contact Checkmate Support.'
|
|
40
34
|
},
|
|
41
35
|
unableToReachConfigs: {
|
|
42
36
|
code: 'internal_server_error',
|
package/dist/cjs/slices/kiosk.js
CHANGED
|
@@ -33,16 +33,11 @@ var getError = function (kiosk, store, devices) {
|
|
|
33
33
|
var isEmptyKiosk = kiosk === null;
|
|
34
34
|
var isEmptyStore = store === null;
|
|
35
35
|
var isEmptyDevices = devices === null;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
? errors_1.errorsApi.internalServerError
|
|
36
|
+
return isEmptyStore || isEmptyDevices
|
|
37
|
+
? errors_1.errorsApi.missingKioskSettings
|
|
39
38
|
: isEmptyKiosk
|
|
40
39
|
? errors_1.errorsApi.unableToReachConfigs
|
|
41
|
-
:
|
|
42
|
-
? errors_1.errorsApi.unableToReachStore
|
|
43
|
-
: isEmptyDevices
|
|
44
|
-
? errors_1.errorsApi.unableToReachDevices
|
|
45
|
-
: errors_1.errorsApi.internalServerError;
|
|
40
|
+
: errors_1.errorsApi.internalServerError;
|
|
46
41
|
};
|
|
47
42
|
exports.fetchKioskConfig = (0, toolkit_1.createAsyncThunk)(KioskActionType.FetchKiosk, function (_a, _b) { return tslib_1.__awaiter(void 0, [_a, _b], void 0, function (_c, _d) {
|
|
48
43
|
var posTerminalId, app, api, _e, kiosk, _f, devicesList, _g, stores, store, devices, err, brand, content, settings, theme, ratio, displaySettings, err_1;
|
|
@@ -23,13 +23,7 @@ export declare const errorsApi: {
|
|
|
23
23
|
title: string;
|
|
24
24
|
detail: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
code: string;
|
|
28
|
-
status: number;
|
|
29
|
-
title: string;
|
|
30
|
-
detail: string;
|
|
31
|
-
};
|
|
32
|
-
unableToReachStore: {
|
|
26
|
+
missingKioskSettings: {
|
|
33
27
|
code: string;
|
|
34
28
|
status: number;
|
|
35
29
|
title: string;
|
|
@@ -23,17 +23,11 @@ export var errorsApi = {
|
|
|
23
23
|
title: 'Internal Server Error',
|
|
24
24
|
detail: 'Internal server error.\nPlease contact Checkmate Support.'
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
missingKioskSettings: {
|
|
27
27
|
code: 'internal_server_error',
|
|
28
28
|
status: 500,
|
|
29
|
-
title: '
|
|
30
|
-
detail: '
|
|
31
|
-
},
|
|
32
|
-
unableToReachStore: {
|
|
33
|
-
code: 'internal_server_error',
|
|
34
|
-
status: 500,
|
|
35
|
-
title: 'Internal Server Error',
|
|
36
|
-
detail: 'No stores found.\nPlease contact Checkmate Support.'
|
|
29
|
+
title: 'Missing Kiosk Settings',
|
|
30
|
+
detail: 'Missing Kiosk Settings.\nPlease contact Checkmate Support.'
|
|
37
31
|
},
|
|
38
32
|
unableToReachConfigs: {
|
|
39
33
|
code: 'internal_server_error',
|
package/dist/esm/slices/kiosk.js
CHANGED
|
@@ -30,16 +30,11 @@ var getError = function (kiosk, store, devices) {
|
|
|
30
30
|
var isEmptyKiosk = kiosk === null;
|
|
31
31
|
var isEmptyStore = store === null;
|
|
32
32
|
var isEmptyDevices = devices === null;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
? errorsApi.internalServerError
|
|
33
|
+
return isEmptyStore || isEmptyDevices
|
|
34
|
+
? errorsApi.missingKioskSettings
|
|
36
35
|
: isEmptyKiosk
|
|
37
36
|
? errorsApi.unableToReachConfigs
|
|
38
|
-
:
|
|
39
|
-
? errorsApi.unableToReachStore
|
|
40
|
-
: isEmptyDevices
|
|
41
|
-
? errorsApi.unableToReachDevices
|
|
42
|
-
: errorsApi.internalServerError;
|
|
37
|
+
: errorsApi.internalServerError;
|
|
43
38
|
};
|
|
44
39
|
export var fetchKioskConfig = createAsyncThunk(KioskActionType.FetchKiosk, function (_a, _b) { return __awaiter(void 0, [_a, _b], void 0, function (_c, _d) {
|
|
45
40
|
var posTerminalId, app, api, _e, kiosk, _f, devicesList, _g, stores, store, devices, err, brand, content, settings, theme, ratio, displaySettings, err_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.234",
|
|
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",
|