@spiffcommerce/core 29.1.0 → 29.1.1-beta.1070aece-0a80-54e4-b717-197225c42d3c

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] - 21-08-2025
18
+
19
+ ## Added
20
+
21
+ - The `updateRecipient` method now has extra arguments, primarily for custom fields.
22
+
23
+ ## [29.1.1] - 20-08-2025
24
+
25
+ ## Fixed
26
+
27
+ - Inputting an incorrect code when calling `verifyCode` will no longer prevent you from succeeding if you then input the correct code in a subsequent request.
28
+
17
29
  ## [29.0.4] - 14-08-2025
18
30
 
19
31
  ## Fixed
package/dist/index.d.ts CHANGED
@@ -2722,11 +2722,13 @@ interface WorkflowManager {
2722
2722
  /**
2723
2723
  * Create or amend the recipient fo the transaction.
2724
2724
  */
2725
- updateRecipient(firstName?: string, lastName?: string, address?: string, suburb?: string, state?: string, email?: string, postalCode?: string, country?: string, mobile?: string, company?: string): Promise<void>;
2725
+ 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
2726
  /**
2727
2727
  * Returns the context object used for text templating.
2728
2728
  */
2729
- getTemplatingContext(): any;
2729
+ getTemplatingContext(): Promise<{
2730
+ [key: string]: any;
2731
+ }>;
2730
2732
  }
2731
2733
 
2732
2734
  declare enum AssetType {
@@ -3469,7 +3471,9 @@ interface RenderingConfiguration {
3469
3471
  /**
3470
3472
  * Contents variables for templating text.
3471
3473
  */
3472
- templatingContext?: any;
3474
+ templatingContext?: {
3475
+ [key: string]: any;
3476
+ };
3473
3477
  }
3474
3478
  interface ColorProfileProps {
3475
3479
  name: string;
@@ -3753,6 +3757,13 @@ interface Recipient {
3753
3757
  country?: string;
3754
3758
  mobile?: string;
3755
3759
  company?: string;
3760
+ apartment?: string;
3761
+ customField1?: string;
3762
+ customField2?: string;
3763
+ customField3?: string;
3764
+ customField4?: string;
3765
+ customField5?: string;
3766
+ conversionConfigurationId?: string;
3756
3767
  createdAt?: string;
3757
3768
  updatedAt?: string;
3758
3769
  deletedAt?: string;
@@ -5062,10 +5073,12 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
5062
5073
  declare const digitalContentStepService: DigitalContentStepService;
5063
5074
 
5064
5075
  declare class MockWorkflowManager implements WorkflowManager {
5065
- getTemplatingContext: () => void;
5076
+ getTemplatingContext: () => Promise<{
5077
+ [key: string]: any;
5078
+ }>;
5066
5079
  removeRecipientCallback: (callback: RecipientCallback) => void;
5067
5080
  addRecipientCallback: (callback: RecipientCallback) => void;
5068
- updateRecipient(_firstName?: string, _lastName?: string, _address?: string, _suburb?: string, _state?: string, _email?: string, _postalCode?: string, _country?: string, _mobile?: string, _company?: string): Promise<void>;
5081
+ 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>;
5069
5082
  approveTransaction(_note?: string): Promise<void>;
5070
5083
  rejectTransaction(_note?: string): Promise<void>;
5071
5084
  private client;