@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.
Files changed (61) hide show
  1. package/README.md +9 -2
  2. package/dist/actions-v2/InvoiceUpdateDto.d.ts +9 -1
  3. package/dist/actions-v2/PauseCallRecordingDto.d.ts +73 -0
  4. package/dist/actions-v2/PauseCallRecordingDto.js +56 -0
  5. package/dist/actions-v2/ResumeCallRecordingDto.d.ts +73 -0
  6. package/dist/actions-v2/ResumeCallRecordingDto.js +56 -0
  7. package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +12 -10
  8. package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.d.ts +80 -0
  9. package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.js +56 -0
  10. package/dist/actions-v2/UpdateCampaignCallExternalIdDto.d.ts +73 -0
  11. package/dist/actions-v2/UpdateCampaignCallExternalIdDto.js +56 -0
  12. package/dist/actions-v2/UpdateCaseFromLinkedCallDto.d.ts +79 -0
  13. package/dist/actions-v2/UpdateCaseFromLinkedCallDto.js +56 -0
  14. package/dist/actions-v2/UpdateContactDto.d.ts +8 -1
  15. package/dist/actions-v2/VisitCreateSalesAppDto.d.ts +67 -0
  16. package/dist/actions-v2/VisitCreateSalesAppDto.js +54 -0
  17. package/dist/api-sdk-v2/AddressApi.d.ts +2 -2
  18. package/dist/api-sdk-v2/AddressApi.js +6 -6
  19. package/dist/api-sdk-v2/ContactApi.d.ts +4 -4
  20. package/dist/api-sdk-v2/ContactApi.js +12 -12
  21. package/dist/api-sdk-v2/FileApi.d.ts +2 -0
  22. package/dist/api-sdk-v2/FileApi.js +6 -0
  23. package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
  24. package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
  25. package/dist/api-sdk-v2/YfWifiSurveyApi.d.ts +50 -0
  26. package/dist/api-sdk-v2/YfWifiSurveyApi.js +161 -0
  27. package/dist/db-sdk-v2/AddressDb.d.ts +2 -2
  28. package/dist/db-sdk-v2/AddressDb.js +6 -6
  29. package/dist/db-sdk-v2/ContactDb.d.ts +4 -4
  30. package/dist/db-sdk-v2/ContactDb.js +12 -12
  31. package/dist/db-sdk-v2/FileDb.d.ts +2 -0
  32. package/dist/db-sdk-v2/FileDb.js +6 -0
  33. package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
  34. package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
  35. package/dist/db-sdk-v2/YfWifiSurveyDb.d.ts +122 -0
  36. package/dist/db-sdk-v2/YfWifiSurveyDb.js +210 -0
  37. package/dist/entities-v2/Address.d.ts +3 -3
  38. package/dist/entities-v2/Contact.d.ts +52 -46
  39. package/dist/entities-v2/Contact.js +26 -26
  40. package/dist/entities-v2/CustomerDeviceOnt.d.ts +7 -1
  41. package/dist/entities-v2/CustomerDeviceOnt.js +6 -0
  42. package/dist/entities-v2/File.d.ts +3 -0
  43. package/dist/entities-v2/Order.d.ts +7 -0
  44. package/dist/entities-v2/Order.js +2 -0
  45. package/dist/entities-v2/PaymentMethodRefund.d.ts +19 -0
  46. package/dist/entities-v2/PaymentMethodRefund.js +8 -0
  47. package/dist/entities-v2/WorkOrder.d.ts +7 -0
  48. package/dist/entities-v2/WorkOrder.js +5 -1
  49. package/dist/entities-v2/YfWifiSurvey.d.ts +164 -0
  50. package/dist/entities-v2/YfWifiSurvey.js +102 -0
  51. package/dist/records-v2/AddressRecord.d.ts +20 -20
  52. package/dist/records-v2/AddressRecord.js +33 -33
  53. package/dist/records-v2/CallRecord.d.ts +108 -0
  54. package/dist/records-v2/CallRecord.js +116 -0
  55. package/dist/records-v2/CaseRecord.d.ts +28 -0
  56. package/dist/records-v2/CaseRecord.js +37 -0
  57. package/dist/records-v2/ContactRecord.d.ts +26 -27
  58. package/dist/records-v2/ContactRecord.js +40 -48
  59. package/dist/records-v2/VisitRecord.d.ts +29 -0
  60. package/dist/records-v2/VisitRecord.js +36 -0
  61. 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.266",
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": "git pull --ff-only && rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
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",