@aptos-scp/scp-component-store-selling-features-domain-model 2.22.1 → 2.24.0-patch.1
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/README.md +1 -0
- package/lib/domain/UIBusinessEventTypes.d.ts +1 -0
- package/lib/domain/UIBusinessEventTypes.js +1 -0
- package/lib/domain/model/Constants.d.ts +1 -0
- package/lib/domain/model/Constants.js +1 -0
- package/lib/domain/model/configuration/IAccessPolicyConfig.d.ts +8 -2
- package/lib/domain/model/configuration/IAutomaticLogOffOnTransactionCloseConfig.d.ts +8 -0
- package/lib/domain/model/configuration/IAutomaticLogOffOnTransactionCloseConfig.js +3 -0
- package/lib/domain/model/configuration/index.d.ts +1 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceStatusLine.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -105,6 +105,7 @@ export declare const PRINT_FISCAL_RECEIPT_EVENT: string;
|
|
|
105
105
|
export declare const FISCAL_POST_VOID_NO_RECEIPT: string;
|
|
106
106
|
export declare const PRINT_FISCAL_RETRY_EVENT: string;
|
|
107
107
|
export declare const PRINT_FISCAL_PRINTER_CHANGE_RETRY_EVENT: string;
|
|
108
|
+
export declare const GET_RECEIPT_FISCAL_DOCUMENT_NUMBER_EVENT: string;
|
|
108
109
|
export declare const QUANTITY_CHANGE_EVENT: string;
|
|
109
110
|
export declare const RECEIPT_STATUS_EVENT: string;
|
|
110
111
|
export declare const RECORD_CASH_DRAWER_STATUS_EVENT: string;
|
|
@@ -108,6 +108,7 @@ exports.PRINT_FISCAL_RECEIPT_EVENT = "PrintFiscalReceipt";
|
|
|
108
108
|
exports.FISCAL_POST_VOID_NO_RECEIPT = "FiscalPostVoidNoReceipt";
|
|
109
109
|
exports.PRINT_FISCAL_RETRY_EVENT = "PrintFiscalRetry";
|
|
110
110
|
exports.PRINT_FISCAL_PRINTER_CHANGE_RETRY_EVENT = "PrintFiscalPrinterChangeRetry";
|
|
111
|
+
exports.GET_RECEIPT_FISCAL_DOCUMENT_NUMBER_EVENT = "GetReceiptFiscalDocumentNumber";
|
|
111
112
|
exports.QUANTITY_CHANGE_EVENT = "QuantityChange";
|
|
112
113
|
exports.RECEIPT_STATUS_EVENT = "ReceiptStatus";
|
|
113
114
|
exports.RECORD_CASH_DRAWER_STATUS_EVENT = "RecordCashDrawerStatus";
|
|
@@ -579,6 +579,7 @@ export declare enum CollectedDataKey {
|
|
|
579
579
|
FiscalVarianceInformation = "FiscalVarianceInformation",
|
|
580
580
|
FiscalDeviceErrorCode = "fiscalDeviceErrorCode",
|
|
581
581
|
FiscalDeviceErrorDescription = "fiscalDeviceErrorDescription",
|
|
582
|
+
FiscalErrorSource = "fiscalErrorSource",
|
|
582
583
|
FiscalDeviceUserMessage = "fiscalDeviceUserMessage",
|
|
583
584
|
ForcedAuthorizationApproval = "ForcedAuthorizationApproval",
|
|
584
585
|
ForfeitChangeConfirmation = "ForfeitChangeConfirmation",
|
|
@@ -586,6 +586,7 @@ var CollectedDataKey;
|
|
|
586
586
|
CollectedDataKey["FiscalVarianceInformation"] = "FiscalVarianceInformation";
|
|
587
587
|
CollectedDataKey["FiscalDeviceErrorCode"] = "fiscalDeviceErrorCode";
|
|
588
588
|
CollectedDataKey["FiscalDeviceErrorDescription"] = "fiscalDeviceErrorDescription";
|
|
589
|
+
CollectedDataKey["FiscalErrorSource"] = "fiscalErrorSource";
|
|
589
590
|
CollectedDataKey["FiscalDeviceUserMessage"] = "fiscalDeviceUserMessage";
|
|
590
591
|
CollectedDataKey["ForcedAuthorizationApproval"] = "ForcedAuthorizationApproval";
|
|
591
592
|
CollectedDataKey["ForfeitChangeConfirmation"] = "ForfeitChangeConfirmation";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
minimumSecurityLevel: number;
|
|
1
|
+
export interface ISecurityPolicyConfig extends ILevelBasedSecurityPolicyConfig, IRoleBasedSecurityPolicyConfig {
|
|
3
2
|
supervisorOverrideAllowed: boolean;
|
|
3
|
+
}
|
|
4
|
+
export interface ILevelBasedSecurityPolicyConfig {
|
|
5
|
+
minimumSecurityLevel: number;
|
|
4
6
|
deferApprovalUntilTotal: boolean;
|
|
5
7
|
}
|
|
8
|
+
export interface IRoleBasedSecurityPolicyConfig {
|
|
9
|
+
roleIds: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare type IAccessPolicyConfig = ISecurityPolicyConfig;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface IAutomaticLogOffOnTransactionCloseConfig {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
merchandise: IAutomaticLogOffSettingsForTransactionTypeConfig;
|
|
4
|
+
}
|
|
5
|
+
export interface IAutomaticLogOffSettingsForTransactionTypeConfig {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
securityPolicy: string;
|
|
8
|
+
}
|
|
@@ -33,11 +33,13 @@ class FiscalDeviceStatusLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
33
33
|
successful: false,
|
|
34
34
|
errorCode: undefined,
|
|
35
35
|
errorDescription: undefined,
|
|
36
|
+
errorSource: undefined,
|
|
36
37
|
userMessage: undefined,
|
|
37
38
|
};
|
|
38
39
|
fiscalDeviceActivityResult.successful = (_a = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceActivitySuccessful), (_a !== null && _a !== void 0 ? _a : false));
|
|
39
40
|
fiscalDeviceActivityResult.errorCode = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorCode);
|
|
40
41
|
fiscalDeviceActivityResult.errorDescription = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorDescription);
|
|
42
|
+
fiscalDeviceActivityResult.errorSource = collectedData.get(Constants_1.CollectedDataKey.FiscalErrorSource);
|
|
41
43
|
fiscalDeviceActivityResult.userMessage = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceUserMessage);
|
|
42
44
|
const transactionLineReference = collectedData.get(Constants_1.CollectedDataKey.TransactionLineReference);
|
|
43
45
|
const fiscalDeviceInformation = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceInformation);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-scp/scp-component-store-selling-features-domain-model",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0-patch.1",
|
|
4
4
|
"description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@aptos-scp/scp-component-user": "^1.4.0",
|
|
86
86
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
87
87
|
"@aptos-scp/scp-types-commerce-devices": "^6.3.0",
|
|
88
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
88
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.85.0",
|
|
89
89
|
"@aptos-scp/scp-types-core": "^1.0.5",
|
|
90
90
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|
|
91
91
|
"@aptos-scp/scp-types-currency-conversion": "^1.2.0",
|