@aptos-scp/scp-component-store-selling-features-domain-model 2.45.2 → 2.47.0

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.
@@ -191,6 +191,8 @@ export declare const UPDATE_USER_PREFERRED_LANGUAGE_EVENT: string;
191
191
  export declare const UPDATE_USER_PREFERENCES_EVENT: string;
192
192
  export declare const PRINT_Z_REPORT: string;
193
193
  export declare const PRINT_X_REPORT: string;
194
+ export declare const PRINT_PERIODIC_REPORT: string;
195
+ export declare const PRINT_PERIODIC_SUM_REPORT: string;
194
196
  export declare const FISCAL_REPORT_STATUS: string;
195
197
  export declare const SYNC_FISCAL_PRINTER_ABORT_EVENT: string;
196
198
  export declare const FISCAL_PRINTER_STATUS_EVENT: string;
@@ -194,6 +194,8 @@ exports.UPDATE_USER_PREFERRED_LANGUAGE_EVENT = "UpdateUserPreferredLanguage";
194
194
  exports.UPDATE_USER_PREFERENCES_EVENT = "UpdateUserPreferences";
195
195
  exports.PRINT_Z_REPORT = "printZReport";
196
196
  exports.PRINT_X_REPORT = "printXReport";
197
+ exports.PRINT_PERIODIC_REPORT = "printPeriodicReport";
198
+ exports.PRINT_PERIODIC_SUM_REPORT = "printPeriodicSummaryReport";
197
199
  exports.FISCAL_REPORT_STATUS = "PrintFiscalReportStatus";
198
200
  exports.SYNC_FISCAL_PRINTER_ABORT_EVENT = "SyncFiscalPrinterAbortEvent";
199
201
  exports.FISCAL_PRINTER_STATUS_EVENT = "FiscalPrinterStatusEvent";
@@ -246,6 +246,8 @@ export declare enum UiInputKey {
246
246
  ADDED_ITEM_LINE_NUMBERS = "input_addedItemLineNumbers",
247
247
  PRINTER = "printer",
248
248
  ReportType = "reportType",
249
+ FiscReportStartDate = "input_fiscReportStartDate",
250
+ FiscReportEndDate = "input_fiscReportEndDate",
249
251
  PRINTER_STATUS = "input_printerStatus",
250
252
  PRIMARY_LANGUAGE = "primaryLanguage",
251
253
  PRINTER_INFO = "printerInfo",
@@ -470,7 +472,8 @@ export declare enum UiInputKey {
470
472
  SELECTED_RETURN_ITEMS = "input_selectedReturnItems",
471
473
  FEE_LINE_FOR_REFUND = "input_feeLineForRefund",
472
474
  FEE_REFUND_SOURCE = "input_feeRefundSource",
473
- FEE_REFUNDABLE_AMOUNT = "input_feeRefundableAmount"
475
+ FEE_REFUNDABLE_AMOUNT = "input_feeRefundableAmount",
476
+ ITEM_TERMS_AND_CONDITIONS_ACCEPTED = "input_itemTermsAndConditionsAccepted"
474
477
  }
475
478
  export declare enum CollectedDataKey {
476
479
  Abort = "abort",
@@ -772,6 +775,8 @@ export declare enum CollectedDataKey {
772
775
  SupervisorOverrideLineReference = "supervisorOverrideLineReference",
773
776
  SupervisorOverride = "supervisorOverride",
774
777
  ReportType = "reportType",
778
+ FiscReportStartDate = "fiscReportStartDate",
779
+ FiscReportEndDate = "fiscReportEndDate",
775
780
  SearchItemKey = "searchItemKey",
776
781
  SearchItemKeyType = "searchItemKeyType",
777
782
  SkipConfirmClose = "skipConfirmClose",
@@ -247,6 +247,8 @@ var UiInputKey;
247
247
  UiInputKey["ADDED_ITEM_LINE_NUMBERS"] = "input_addedItemLineNumbers";
248
248
  UiInputKey["PRINTER"] = "printer";
249
249
  UiInputKey["ReportType"] = "reportType";
250
+ UiInputKey["FiscReportStartDate"] = "input_fiscReportStartDate";
251
+ UiInputKey["FiscReportEndDate"] = "input_fiscReportEndDate";
250
252
  UiInputKey["PRINTER_STATUS"] = "input_printerStatus";
251
253
  UiInputKey["PRIMARY_LANGUAGE"] = "primaryLanguage";
252
254
  UiInputKey["PRINTER_INFO"] = "printerInfo";
@@ -472,6 +474,7 @@ var UiInputKey;
472
474
  UiInputKey["FEE_LINE_FOR_REFUND"] = "input_feeLineForRefund";
473
475
  UiInputKey["FEE_REFUND_SOURCE"] = "input_feeRefundSource";
474
476
  UiInputKey["FEE_REFUNDABLE_AMOUNT"] = "input_feeRefundableAmount";
477
+ UiInputKey["ITEM_TERMS_AND_CONDITIONS_ACCEPTED"] = "input_itemTermsAndConditionsAccepted";
475
478
  })(UiInputKey = exports.UiInputKey || (exports.UiInputKey = {}));
476
479
  //
477
480
  // Keys for use in relaying data collectedData (qualification) and nonContextualData (action).
@@ -779,6 +782,8 @@ var CollectedDataKey;
779
782
  CollectedDataKey["SupervisorOverrideLineReference"] = "supervisorOverrideLineReference";
780
783
  CollectedDataKey["SupervisorOverride"] = "supervisorOverride";
781
784
  CollectedDataKey["ReportType"] = "reportType";
785
+ CollectedDataKey["FiscReportStartDate"] = "fiscReportStartDate";
786
+ CollectedDataKey["FiscReportEndDate"] = "fiscReportEndDate";
782
787
  CollectedDataKey["SearchItemKey"] = "searchItemKey";
783
788
  CollectedDataKey["SearchItemKeyType"] = "searchItemKeyType";
784
789
  CollectedDataKey["SkipConfirmClose"] = "skipConfirmClose";
@@ -1,9 +1,14 @@
1
+ import { ConditionType, IConditionalAttributeBehaviorRuleAttributeGroups } from "./IConditionalAttributeBehaviorRuleConfig";
2
+ import { ITranslatableMessage } from "./IFeatureAccessConfig";
1
3
  export interface ICustomerConfig {
2
4
  loyalty: ILoyaltyConfig;
3
5
  }
4
6
  export interface ILoyaltyConfig {
5
7
  readonly enabled: boolean;
6
8
  readonly realTimePoints: IRealTimePointConfig;
9
+ readonly enrollment?: IEnrollmentConfig;
10
+ readonly displayBehavior?: IDisplayBehavior;
11
+ readonly redemption?: IRedemptionConfig;
7
12
  readonly applyPermanentMembershipDiscounts?: boolean;
8
13
  }
9
14
  export declare enum LoyaltyQualifyingTransactions {
@@ -18,6 +23,7 @@ export interface IDisplayBehavior {
18
23
  readonly showCurrentTransactionTotalPoints: boolean;
19
24
  readonly showCurrentTransactionRegularPoints: boolean;
20
25
  readonly showCurrentTransactionConditionalPoints: boolean;
26
+ readonly hiddenLoyaltyPlanIds: string[];
21
27
  }
22
28
  export interface IRealTimePointConfig {
23
29
  readonly qualifyingTransactions: LoyaltyQualifyingTransactions;
@@ -29,3 +35,88 @@ export declare enum AssignCustomerFromOriginalSaleForReturns {
29
35
  AssignWithPrompt = "AssignWithPrompt",
30
36
  AssignWithoutPrompt = "AssignWithoutPrompt"
31
37
  }
38
+ export interface IEnrollmentConfig {
39
+ readonly hiddenMembershipTypeCodes?: string[];
40
+ readonly manualEnrollment?: IEnabledConfig;
41
+ readonly customerFields?: ICustomerFieldsConfig;
42
+ readonly enrollmentPrompt?: IEnrollmentPromptConfig;
43
+ readonly minimumAgeValidation?: MinimumAgeValidation;
44
+ readonly customOptIn?: ICustomOptInConfig;
45
+ }
46
+ export interface IEnabledConfig {
47
+ readonly enabled?: boolean;
48
+ }
49
+ export interface ICustomerFieldsConfig {
50
+ readonly emailAddress?: ILoyaltyEnrollmentFieldConfig;
51
+ readonly attributes?: ILoyaltyScreenAttributesConfig;
52
+ }
53
+ export interface ILoyaltyScreenAttributesConfig {
54
+ readonly attributeGroupCodes?: string[];
55
+ readonly conditionsToDisableEnrollment?: IConditionalAttributeBehaviorRuleAttributeGroups;
56
+ readonly conditionType?: ConditionType;
57
+ }
58
+ export interface ILoyaltyEnrollmentFieldConfig {
59
+ readonly usage?: FieldUsage;
60
+ readonly displayBehavior?: DisplayBehavior;
61
+ readonly editableBehavior?: DisplayBehavior;
62
+ }
63
+ export interface IEnrollmentPromptConfig {
64
+ readonly appliesTo?: AppliesTo;
65
+ readonly deferralButton?: IDeferralButtonConfig;
66
+ }
67
+ export interface IDeferralButtonConfig {
68
+ readonly enabled?: boolean;
69
+ readonly deferralDays?: number;
70
+ }
71
+ export interface ICustomOptInConfig {
72
+ readonly customOptInDetails: ICustomOptInDetailsConfig;
73
+ readonly conditionsToDisableEnrollment?: IConditionalAttributeBehaviorRuleAttributeGroups;
74
+ readonly conditionType?: ConditionType;
75
+ readonly customerConfirmation?: ICustomerConfirmationConfig;
76
+ }
77
+ export interface ICustomOptInDetailsConfig {
78
+ readonly [key: string]: ICustomOptInContentConfig;
79
+ }
80
+ export interface ICustomOptInContentConfig {
81
+ readonly customOptInTitle: ITranslatableMessage;
82
+ readonly customOptInLink?: ITranslatableMessage;
83
+ readonly customOptInFullDetails?: ITranslatableMessage;
84
+ readonly optInResponseLabel?: ITranslatableMessage;
85
+ readonly customOptInSummary?: ITranslatableMessage;
86
+ readonly customOptInLinks?: ICustomOptInLinksConfig;
87
+ }
88
+ export interface ICustomOptInLinksConfig {
89
+ readonly [key: string]: ITranslatableMessage;
90
+ }
91
+ export interface ICustomerConfirmationConfig {
92
+ readonly enabled: boolean;
93
+ readonly allowBypassConfirmationUponDeviceError: boolean;
94
+ }
95
+ export interface IRedemptionConfig {
96
+ readonly calculateMaxVariableDiscount: boolean;
97
+ readonly automaticLoyaltyRedemptionBehavior: RedemptionBehavior;
98
+ }
99
+ export declare enum AppliesTo {
100
+ None = "None",
101
+ AllQualifyingCustomers = "AllQualifyingCustomers",
102
+ NewCustomersOnly = "NewCustomersOnly"
103
+ }
104
+ export declare enum MinimumAgeValidation {
105
+ NoValidation = "NoValidation",
106
+ PreventEnrollingMinors = "PreventEnrollingMinors",
107
+ PreventEnrollAndSaveWithCustomerTypeMinor = "PreventEnrollAndSaveWithCustomerTypeMinor"
108
+ }
109
+ export declare enum FieldUsage {
110
+ Required = "Required",
111
+ Optional = "Optional",
112
+ NotUsed = "NotUsed"
113
+ }
114
+ export declare enum DisplayBehavior {
115
+ Always = "Always",
116
+ OnlyIfEmpty = "OnlyIfEmpty"
117
+ }
118
+ export declare enum RedemptionBehavior {
119
+ Disabled = "Disabled",
120
+ Prompt = "Prompt",
121
+ ApplyWithoutPrompting = "ApplyWithoutPrompting"
122
+ }
@@ -12,4 +12,33 @@ var AssignCustomerFromOriginalSaleForReturns;
12
12
  AssignCustomerFromOriginalSaleForReturns["AssignWithPrompt"] = "AssignWithPrompt";
13
13
  AssignCustomerFromOriginalSaleForReturns["AssignWithoutPrompt"] = "AssignWithoutPrompt";
14
14
  })(AssignCustomerFromOriginalSaleForReturns = exports.AssignCustomerFromOriginalSaleForReturns || (exports.AssignCustomerFromOriginalSaleForReturns = {}));
15
+ var AppliesTo;
16
+ (function (AppliesTo) {
17
+ AppliesTo["None"] = "None";
18
+ AppliesTo["AllQualifyingCustomers"] = "AllQualifyingCustomers";
19
+ AppliesTo["NewCustomersOnly"] = "NewCustomersOnly";
20
+ })(AppliesTo = exports.AppliesTo || (exports.AppliesTo = {}));
21
+ var MinimumAgeValidation;
22
+ (function (MinimumAgeValidation) {
23
+ MinimumAgeValidation["NoValidation"] = "NoValidation";
24
+ MinimumAgeValidation["PreventEnrollingMinors"] = "PreventEnrollingMinors";
25
+ MinimumAgeValidation["PreventEnrollAndSaveWithCustomerTypeMinor"] = "PreventEnrollAndSaveWithCustomerTypeMinor";
26
+ })(MinimumAgeValidation = exports.MinimumAgeValidation || (exports.MinimumAgeValidation = {}));
27
+ var FieldUsage;
28
+ (function (FieldUsage) {
29
+ FieldUsage["Required"] = "Required";
30
+ FieldUsage["Optional"] = "Optional";
31
+ FieldUsage["NotUsed"] = "NotUsed";
32
+ })(FieldUsage = exports.FieldUsage || (exports.FieldUsage = {}));
33
+ var DisplayBehavior;
34
+ (function (DisplayBehavior) {
35
+ DisplayBehavior["Always"] = "Always";
36
+ DisplayBehavior["OnlyIfEmpty"] = "OnlyIfEmpty";
37
+ })(DisplayBehavior = exports.DisplayBehavior || (exports.DisplayBehavior = {}));
38
+ var RedemptionBehavior;
39
+ (function (RedemptionBehavior) {
40
+ RedemptionBehavior["Disabled"] = "Disabled";
41
+ RedemptionBehavior["Prompt"] = "Prompt";
42
+ RedemptionBehavior["ApplyWithoutPrompting"] = "ApplyWithoutPrompting";
43
+ })(RedemptionBehavior = exports.RedemptionBehavior || (exports.RedemptionBehavior = {}));
15
44
  //# sourceMappingURL=ICustomerConfig.js.map
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.45.2",
3
+ "version": "2.47.0",
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",