@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.
- package/README.md +4 -2
- package/dist/actions-v2/SetContactYouFibreTvInterestDto.d.ts +72 -0
- package/dist/actions-v2/SetContactYouFibreTvInterestDto.js +56 -0
- package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.d.ts +5 -5
- package/dist/api-sdk-v2/QaBatchApi.d.ts +2 -0
- package/dist/api-sdk-v2/QaBatchApi.js +6 -0
- package/dist/api-sdk-v2/QaBatchSummaryApi.d.ts +48 -0
- package/dist/api-sdk-v2/QaBatchSummaryApi.js +155 -0
- package/dist/db-sdk-v2/QaBatchDb.d.ts +2 -0
- package/dist/db-sdk-v2/QaBatchDb.js +6 -0
- package/dist/db-sdk-v2/QaBatchSummaryDb.d.ts +120 -0
- package/dist/db-sdk-v2/QaBatchSummaryDb.js +204 -0
- package/dist/entities-v2/Contact.d.ts +9 -1
- package/dist/entities-v2/Contact.js +2 -0
- package/dist/entities-v2/Document.d.ts +2 -0
- package/dist/entities-v2/Document.js +2 -0
- package/dist/entities-v2/QaBatch.d.ts +46 -1
- package/dist/entities-v2/QaBatch.js +25 -1
- package/dist/entities-v2/QaBatchSummary.d.ts +219 -0
- package/dist/entities-v2/QaBatchSummary.js +124 -0
- package/dist/entities-v2/VoiceConfiguration.d.ts +130 -130
- package/dist/entities-v2/VoiceConfiguration.js +46 -46
- package/dist/records-v2/ContactRecord.d.ts +28 -0
- package/dist/records-v2/ContactRecord.js +37 -0
- package/package.json +1 -1
|
@@ -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
|
*
|