@aptos-scp/scp-component-store-selling-features-domain-model 2.23.0 → 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 CHANGED
@@ -92,3 +92,4 @@ When the build in Circle CI sees the version tag, it will publish the changes to
92
92
  ## License
93
93
 
94
94
  Please see [LICENSE.md](LICENSE.md).
95
+
@@ -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 IAccessPolicyConfig {
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutomaticLogOffOnTransactionCloseConfig.js.map
@@ -29,3 +29,4 @@ export * from "./IProductInquiryBehaviorsConfig";
29
29
  export * from "./IFeesConfig";
30
30
  export * from "./DataEntryRule";
31
31
  export * from "./IAutomaticTimeoutConfig";
32
+ export * from "./IAutomaticLogOffOnTransactionCloseConfig";
@@ -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.23.0",
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.83.0",
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",