@d19n/youfibre-odin-sdk 2.0.375 → 2.0.376

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.
@@ -1313,6 +1313,43 @@ class ContactRecord {
1313
1313
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'OrderBuilderUpdateContact', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
1314
1314
  return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
1315
1315
  }
1316
+ /**
1317
+ * SetContactYouFibreTvInterest
1318
+ *
1319
+ * Updates this Contact record.
1320
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
1321
+ *
1322
+ * @param propertiesOrOptions - Properties to update, or options object
1323
+ * @param options - Optional settings (journeyId, stageKey)
1324
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
1325
+ * @throws Error if called on a new (unsaved) record
1326
+ *
1327
+ * @example
1328
+ * ```typescript
1329
+ * const record = await odinClient.contacts.get(id);
1330
+ * await record.setContactYouFibreTvInterest({ ... }).execute();
1331
+ *
1332
+ * // Dry run (for debugging)
1333
+ * const payload = record.setContactYouFibreTvInterest({ ... }).dryRun();
1334
+ * ```
1335
+ */
1336
+ setContactYouFibreTvInterest(propertiesOrOptions, options) {
1337
+ var _a;
1338
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1339
+ throw new Error('setContactYouFibreTvInterest requires an existing record. Use accessor.get() first.');
1340
+ let properties = {};
1341
+ let opts = options;
1342
+ if (propertiesOrOptions) {
1343
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1344
+ opts = propertiesOrOptions;
1345
+ }
1346
+ else {
1347
+ properties = propertiesOrOptions;
1348
+ }
1349
+ }
1350
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'SetContactYouFibreTvInterest', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
1351
+ return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
1352
+ }
1316
1353
  /**
1317
1354
  * UpdateAdditionalCare
1318
1355
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.375",
3
+ "version": "2.0.376",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",