@spiffcommerce/core 29.3.0 → 30.0.0-beta.15bd22f4-b37c-5ee8-90e3-706e225bff55

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,12 @@ 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] - 27-08-2025
18
+
19
+ ## Added
20
+
21
+ - The `updateRecipient` method now has extra arguments, primarily for custom fields.
22
+
17
23
  ## [29.3.0] - 27-08-2025
18
24
 
19
25
  ## Added
package/dist/index.d.ts CHANGED
@@ -2743,11 +2743,13 @@ interface WorkflowManager {
2743
2743
  /**
2744
2744
  * Create or amend the recipient fo the transaction.
2745
2745
  */
2746
- updateRecipient(firstName?: string, lastName?: string, address?: string, suburb?: string, state?: string, email?: string, postalCode?: string, country?: string, mobile?: string, company?: string): Promise<void>;
2746
+ 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>;
2747
2747
  /**
2748
2748
  * Returns the context object used for text templating.
2749
2749
  */
2750
- getTemplatingContext(): any;
2750
+ getTemplatingContext(): Promise<{
2751
+ [key: string]: any;
2752
+ }>;
2751
2753
  }
2752
2754
 
2753
2755
  declare enum AssetType {
@@ -3495,7 +3497,9 @@ interface RenderingConfiguration {
3495
3497
  /**
3496
3498
  * Contents variables for templating text.
3497
3499
  */
3498
- templatingContext?: any;
3500
+ templatingContext?: {
3501
+ [key: string]: any;
3502
+ };
3499
3503
  }
3500
3504
  interface ColorProfileProps {
3501
3505
  name: string;
@@ -3779,6 +3783,13 @@ interface Recipient {
3779
3783
  country?: string;
3780
3784
  mobile?: string;
3781
3785
  company?: string;
3786
+ apartment?: string;
3787
+ customField1?: string;
3788
+ customField2?: string;
3789
+ customField3?: string;
3790
+ customField4?: string;
3791
+ customField5?: string;
3792
+ conversionConfigurationId?: string;
3782
3793
  createdAt?: string;
3783
3794
  updatedAt?: string;
3784
3795
  deletedAt?: string;
@@ -5089,10 +5100,12 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
5089
5100
  declare const digitalContentStepService: DigitalContentStepService;
5090
5101
 
5091
5102
  declare class MockWorkflowManager implements WorkflowManager {
5092
- getTemplatingContext: () => void;
5103
+ getTemplatingContext: () => Promise<{
5104
+ [key: string]: any;
5105
+ }>;
5093
5106
  removeRecipientCallback: (callback: RecipientCallback) => void;
5094
5107
  addRecipientCallback: (callback: RecipientCallback) => void;
5095
- updateRecipient(_firstName?: string, _lastName?: string, _address?: string, _suburb?: string, _state?: string, _email?: string, _postalCode?: string, _country?: string, _mobile?: string, _company?: string): Promise<void>;
5108
+ 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>;
5096
5109
  approveTransaction(_note?: string): Promise<void>;
5097
5110
  rejectTransaction(_note?: string): Promise<void>;
5098
5111
  private client;