@stackedapp/types 1.3.2 → 1.4.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.
@@ -99,6 +99,8 @@ interface IBaseCondition {
99
99
  min?: number;
100
100
  /** maximum number of links of this type allowed */
101
101
  max?: number;
102
+ /** Display template for this link condition */
103
+ template?: string;
102
104
  }>;
103
105
  /** dynamic field conditions */
104
106
  dynamic?: IDynamicGroup;
@@ -183,6 +185,8 @@ interface ICompletionCondition extends IBaseCondition {
183
185
  linkedCompletions?: {
184
186
  /** Number of linked entity completions required */
185
187
  min: number;
188
+ /** Display template for this condition */
189
+ template?: string;
186
190
  };
187
191
  /**
188
192
  * Dynamic field tracker - tracks changes to dynamic fields AFTER offer surfacing.
@@ -195,8 +199,8 @@ interface ICompletionCondition extends IBaseCondition {
195
199
  * Keyed by condition ID for multiple trackers.
196
200
  */
197
201
  contractInteractions?: Record<string, {
198
- /** Display name for this condition (e.g., "Spend PIXEL", "Earn NFT") */
199
- name: string;
202
+ /** Display template for this condition (e.g., "Spend PIXEL", "Earn NFT") */
203
+ template: string;
200
204
  /**
201
205
  * Event type to track:
202
206
  * - 'spend': Currency transferred OUT (onchain_currency_tx kind=spend)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackedapp/types",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Public types for Stacked platform SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/stacked-types.d.ts",