@d19n/youfibre-odin-sdk 2.0.266 → 2.0.270
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 +9 -2
- package/dist/actions-v2/InvoiceUpdateDto.d.ts +9 -1
- package/dist/actions-v2/PauseCallRecordingDto.d.ts +73 -0
- package/dist/actions-v2/PauseCallRecordingDto.js +56 -0
- package/dist/actions-v2/ResumeCallRecordingDto.d.ts +73 -0
- package/dist/actions-v2/ResumeCallRecordingDto.js +56 -0
- package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +12 -10
- package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.d.ts +80 -0
- package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.js +56 -0
- package/dist/actions-v2/UpdateCampaignCallExternalIdDto.d.ts +73 -0
- package/dist/actions-v2/UpdateCampaignCallExternalIdDto.js +56 -0
- package/dist/actions-v2/UpdateCaseFromLinkedCallDto.d.ts +79 -0
- package/dist/actions-v2/UpdateCaseFromLinkedCallDto.js +56 -0
- package/dist/actions-v2/UpdateContactDto.d.ts +8 -1
- package/dist/actions-v2/VisitCreateSalesAppDto.d.ts +67 -0
- package/dist/actions-v2/VisitCreateSalesAppDto.js +54 -0
- package/dist/api-sdk-v2/AddressApi.d.ts +2 -2
- package/dist/api-sdk-v2/AddressApi.js +6 -6
- package/dist/api-sdk-v2/ContactApi.d.ts +4 -4
- package/dist/api-sdk-v2/ContactApi.js +12 -12
- package/dist/api-sdk-v2/FileApi.d.ts +2 -0
- package/dist/api-sdk-v2/FileApi.js +6 -0
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
- package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
- package/dist/api-sdk-v2/YfWifiSurveyApi.d.ts +50 -0
- package/dist/api-sdk-v2/YfWifiSurveyApi.js +161 -0
- package/dist/db-sdk-v2/AddressDb.d.ts +2 -2
- package/dist/db-sdk-v2/AddressDb.js +6 -6
- package/dist/db-sdk-v2/ContactDb.d.ts +4 -4
- package/dist/db-sdk-v2/ContactDb.js +12 -12
- package/dist/db-sdk-v2/FileDb.d.ts +2 -0
- package/dist/db-sdk-v2/FileDb.js +6 -0
- package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
- package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
- package/dist/db-sdk-v2/YfWifiSurveyDb.d.ts +122 -0
- package/dist/db-sdk-v2/YfWifiSurveyDb.js +210 -0
- package/dist/entities-v2/Address.d.ts +3 -3
- package/dist/entities-v2/Contact.d.ts +52 -46
- package/dist/entities-v2/Contact.js +26 -26
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +7 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +6 -0
- package/dist/entities-v2/File.d.ts +3 -0
- package/dist/entities-v2/Order.d.ts +7 -0
- package/dist/entities-v2/Order.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +19 -0
- package/dist/entities-v2/PaymentMethodRefund.js +8 -0
- package/dist/entities-v2/WorkOrder.d.ts +7 -0
- package/dist/entities-v2/WorkOrder.js +5 -1
- package/dist/entities-v2/YfWifiSurvey.d.ts +164 -0
- package/dist/entities-v2/YfWifiSurvey.js +102 -0
- package/dist/records-v2/AddressRecord.d.ts +20 -20
- package/dist/records-v2/AddressRecord.js +33 -33
- package/dist/records-v2/CallRecord.d.ts +108 -0
- package/dist/records-v2/CallRecord.js +116 -0
- package/dist/records-v2/CaseRecord.d.ts +28 -0
- package/dist/records-v2/CaseRecord.js +37 -0
- package/dist/records-v2/ContactRecord.d.ts +26 -27
- package/dist/records-v2/ContactRecord.js +40 -48
- package/dist/records-v2/VisitRecord.d.ts +29 -0
- package/dist/records-v2/VisitRecord.js +36 -0
- package/package.json +3 -2
|
@@ -400,6 +400,42 @@ class VisitRecord {
|
|
|
400
400
|
};
|
|
401
401
|
return new ActionBuilder(this._provider, 'CrmModule', 'Visit', payload, () => { this._pendingLinks = []; });
|
|
402
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* VisitCreateSalesApp
|
|
405
|
+
*
|
|
406
|
+
* Creates a new Visit record with the specified properties.
|
|
407
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
408
|
+
*
|
|
409
|
+
* @param properties - The properties for the new record
|
|
410
|
+
* @param options - Optional settings
|
|
411
|
+
* @param options.type - Override the record type
|
|
412
|
+
* @param options.journeyId - Associate with a journey
|
|
413
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
414
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
415
|
+
*
|
|
416
|
+
* @example
|
|
417
|
+
* ```typescript
|
|
418
|
+
* // Create with properties
|
|
419
|
+
* const record = odinClient.visits.new();
|
|
420
|
+
* await record.visitCreateSalesApp({ ... }).execute();
|
|
421
|
+
*
|
|
422
|
+
* // Dry run (for debugging)
|
|
423
|
+
* const payload = record.visitCreateSalesApp({ ... }).dryRun();
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
visitCreateSalesApp(properties, options) {
|
|
427
|
+
var _a, _b;
|
|
428
|
+
const payload = {
|
|
429
|
+
entity: 'CrmModule:Visit',
|
|
430
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
431
|
+
actionName: 'VisitCreateSalesApp',
|
|
432
|
+
properties: properties || {},
|
|
433
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
434
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
435
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
436
|
+
};
|
|
437
|
+
return new ActionBuilder(this._provider, 'CrmModule', 'Visit', payload, () => { this._pendingLinks = []; });
|
|
438
|
+
}
|
|
403
439
|
// ============================================
|
|
404
440
|
// UPDATE ACTIONS (require existing record)
|
|
405
441
|
// ============================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.270",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test:wholesale-provider": "npx --yes tsx src/wholesale-provider/test/netomnia-provider.spec.ts && npx --yes tsx src/wholesale-provider/test/kci-effect-bridge.spec.ts",
|
|
51
|
-
"release": "
|
|
51
|
+
"release:beta": "echo Local publish disabled. Use GitHub Actions workflow_dispatch on .github/workflows/release.yml with target=beta && exit 1",
|
|
52
|
+
"release:prod": "echo Local publish disabled. Use GitHub Actions workflow_dispatch on .github/workflows/release.yml with target=prod && exit 1"
|
|
52
53
|
},
|
|
53
54
|
"files": [
|
|
54
55
|
"dist",
|