@spiffcommerce/core 29.1.2 → 29.2.0-beta.9392b841-e595-5697-83d1-d02467299033

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/CHANGELOG.md CHANGED
@@ -14,6 +14,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ ## [30.0.0] - 26-08-2025
18
+
19
+ ## Added
20
+
21
+ - The `updateRecipient` method now has extra arguments, primarily for custom fields.
22
+
23
+ ## [29.2.0] - 25-08-2025
24
+
25
+ ## Added
26
+
27
+ - Added the function `TextGlobalPropertyHandle.isTemplatingEnabled(): boolean`. Use this to determine whether you should display any templating tools.
28
+
17
29
  ## [29.1.2] - 25-08-2025
18
30
 
19
31
  ## Changed
package/dist/index.d.ts CHANGED
@@ -1454,6 +1454,11 @@ declare class FileUploadGlobalPropertyHandle extends GlobalPropertyHandle {
1454
1454
  }
1455
1455
  declare class TextGlobalPropertyHandle extends GlobalPropertyHandle {
1456
1456
  constructor(bundle: Bundle$1, property: GlobalPropertyConfigurationAspect);
1457
+ /**
1458
+ * If this returns false, you should not display any templating tools.
1459
+ * Note: Templates will currently still be rendered, regardless of what this function returns.
1460
+ */
1461
+ isTemplatingEnabled(): boolean;
1457
1462
  /**
1458
1463
  * Gets the current text
1459
1464
  */
@@ -2722,11 +2727,13 @@ interface WorkflowManager {
2722
2727
  /**
2723
2728
  * Create or amend the recipient fo the transaction.
2724
2729
  */
2725
- updateRecipient(firstName?: string, lastName?: string, address?: string, suburb?: string, state?: string, email?: string, postalCode?: string, country?: string, mobile?: string, company?: string): Promise<void>;
2730
+ updateRecipient(firstName?: string, lastName?: string, address?: string, suburb?: string, state?: string, email?: string, postalCode?: string, country?: string, mobile?: string, company?: string, apartment?: string, customField1?: string, customField2?: string, customField3?: string, customField4?: string, customField5?: string, conversionConfigurationId?: string): Promise<void>;
2726
2731
  /**
2727
2732
  * Returns the context object used for text templating.
2728
2733
  */
2729
- getTemplatingContext(): any;
2734
+ getTemplatingContext(): Promise<{
2735
+ [key: string]: any;
2736
+ }>;
2730
2737
  }
2731
2738
 
2732
2739
  declare enum AssetType {
@@ -2897,13 +2904,17 @@ interface GlobalPropertyConfigurationAspect {
2897
2904
  data?: GlobalPropertyConfigurationAspectData;
2898
2905
  }
2899
2906
  interface GlobalPropertyConfigurationAspectData {
2900
- fileUpload: GlobalPropertyConfigurationAspectFileUploadData;
2907
+ fileUpload?: GlobalPropertyConfigurationAspectFileUploadData;
2908
+ text?: GlobalPropertyConfigurationAspectTextData;
2901
2909
  }
2902
2910
  interface GlobalPropertyConfigurationAspectFileUploadData {
2903
2911
  colorPickerEnabled?: boolean;
2904
2912
  pmsPickerEnabled?: boolean;
2905
2913
  colorOptionId?: string;
2906
2914
  }
2915
+ interface GlobalPropertyConfigurationAspectTextData {
2916
+ templatingEnabled?: boolean;
2917
+ }
2907
2918
  interface GlobalPropertyConfigurationAspectCondition {
2908
2919
  targetAspectName?: string;
2909
2920
  action: AspectConditionAction;
@@ -3469,7 +3480,9 @@ interface RenderingConfiguration {
3469
3480
  /**
3470
3481
  * Contents variables for templating text.
3471
3482
  */
3472
- templatingContext?: any;
3483
+ templatingContext?: {
3484
+ [key: string]: any;
3485
+ };
3473
3486
  }
3474
3487
  interface ColorProfileProps {
3475
3488
  name: string;
@@ -3753,6 +3766,13 @@ interface Recipient {
3753
3766
  country?: string;
3754
3767
  mobile?: string;
3755
3768
  company?: string;
3769
+ apartment?: string;
3770
+ customField1?: string;
3771
+ customField2?: string;
3772
+ customField3?: string;
3773
+ customField4?: string;
3774
+ customField5?: string;
3775
+ conversionConfigurationId?: string;
3756
3776
  createdAt?: string;
3757
3777
  updatedAt?: string;
3758
3778
  deletedAt?: string;
@@ -5063,10 +5083,12 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
5063
5083
  declare const digitalContentStepService: DigitalContentStepService;
5064
5084
 
5065
5085
  declare class MockWorkflowManager implements WorkflowManager {
5066
- getTemplatingContext: () => void;
5086
+ getTemplatingContext: () => Promise<{
5087
+ [key: string]: any;
5088
+ }>;
5067
5089
  removeRecipientCallback: (callback: RecipientCallback) => void;
5068
5090
  addRecipientCallback: (callback: RecipientCallback) => void;
5069
- updateRecipient(_firstName?: string, _lastName?: string, _address?: string, _suburb?: string, _state?: string, _email?: string, _postalCode?: string, _country?: string, _mobile?: string, _company?: string): Promise<void>;
5091
+ updateRecipient(_firstName?: string, _lastName?: string, _address?: string, _suburb?: string, _state?: string, _email?: string, _postalCode?: string, _country?: string, _mobile?: string, _company?: string, _apartment?: string, _customField1?: string, _customField2?: string, _customField3?: string, _customField4?: string, _customField5?: string, _conversionConfigurationId?: string): Promise<void>;
5070
5092
  approveTransaction(_note?: string): Promise<void>;
5071
5093
  rejectTransaction(_note?: string): Promise<void>;
5072
5094
  private client;