@d19n/youfibre-odin-sdk 2.0.284 → 2.0.286

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 (40) hide show
  1. package/README.md +35 -23
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/RecontractAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/RecontractAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +4 -2
  12. package/dist/actions-v2/AddCaseAdditionalNotesDto.d.ts +73 -0
  13. package/dist/actions-v2/AddCaseAdditionalNotesDto.js +56 -0
  14. package/dist/actions-v2/CreateCustomerDeviceRouterFromDispatchDto.d.ts +74 -0
  15. package/dist/actions-v2/CreateCustomerDeviceRouterFromDispatchDto.js +54 -0
  16. package/dist/actions-v2/CreateRecontractDto.d.ts +63 -0
  17. package/dist/actions-v2/CreateRecontractDto.js +59 -0
  18. package/dist/actions-v2/FlagVulnerableCustomerDto.d.ts +73 -0
  19. package/dist/actions-v2/FlagVulnerableCustomerDto.js +56 -0
  20. package/dist/actions-v2/RecordAiTagsAccuracyDto.d.ts +73 -0
  21. package/dist/actions-v2/RecordAiTagsAccuracyDto.js +56 -0
  22. package/dist/actions-v2/UpdateCaseProvidersDto.d.ts +73 -0
  23. package/dist/actions-v2/UpdateCaseProvidersDto.js +56 -0
  24. package/dist/actions-v2/UpdateCaseSlaDto.d.ts +86 -0
  25. package/dist/actions-v2/UpdateCaseSlaDto.js +56 -0
  26. package/dist/db-accessors-v2/RecontractDbAccessor.d.ts +149 -0
  27. package/dist/db-accessors-v2/RecontractDbAccessor.js +227 -0
  28. package/dist/db-accessors-v2/index.d.ts +1 -0
  29. package/dist/db-accessors-v2/index.js +4 -2
  30. package/dist/records-v2/CaseRecord.d.ts +136 -0
  31. package/dist/records-v2/CaseRecord.js +153 -0
  32. package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +29 -0
  33. package/dist/records-v2/CustomerDeviceRouterRecord.js +36 -0
  34. package/dist/records-v2/OrderRecord.d.ts +20 -0
  35. package/dist/records-v2/OrderRecord.js +33 -0
  36. package/dist/records-v2/RecontractRecord.d.ts +205 -0
  37. package/dist/records-v2/RecontractRecord.js +280 -0
  38. package/dist/records-v2/index.d.ts +3 -2
  39. package/dist/records-v2/index.js +14 -11
  40. package/package.json +1 -1
@@ -10,8 +10,8 @@
10
10
  */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NoteDbAccessor = exports.NetworkDeviceDbAccessor = exports.ModifyServiceRequestDbAccessor = exports.MessageDbAccessor = exports.LeadDbAccessor = exports.KnowledgeArticleDbAccessor = exports.InvoiceDbAccessor = exports.InvoiceItemDbAccessor = exports.ImpersonationTrackerDbAccessor = exports.FileDbAccessor = exports.FieldServiceProductDbAccessor = exports.FieldServiceDispatchedProductDbAccessor = exports.ExchangeDbAccessor = exports.EmailTemplateDbAccessor = exports.EmailSenderDbAccessor = exports.EmailDbAccessor = exports.DiscountDbAccessor = exports.DataIssueDbAccessor = exports.CustomerPhonePortingDbAccessor = exports.CustomerDeviceRouterDbAccessor = exports.CustomerDeviceDbAccessor = exports.CustomerDeviceOntDbAccessor = exports.CustomerDeviceConfigurationDbAccessor = exports.CustomerDeviceAtaDbAccessor = exports.CrmDatasetDbAccessor = exports.CreditNoteDbAccessor = exports.ConversationSummaryFeedbackDbAccessor = exports.ConversationDbAccessor = exports.ContractBuyOutDbAccessor = exports.ContactDbAccessor = exports.ContactIdentityDbAccessor = exports.ConfigDbAccessor = exports.ChurnRequestDbAccessor = exports.ChangeReasonDbAccessor = exports.CaseDbAccessor = exports.CampaignDbAccessor = exports.CallDbAccessor = exports.CallLegDbAccessor = exports.BrskEntityMigrationErrorDbAccessor = exports.BngProvisionDbAccessor = exports.BillingRequestDbAccessor = exports.BillingAdjustmentDbAccessor = exports.AppointmentDbAccessor = exports.AffiliateCodeDbAccessor = exports.AddressDbAccessor = exports.AddressInteractionDbAccessor = exports.ActivityDbAccessor = exports.ActivityLogDbAccessor = exports.AccountDbAccessor = exports.AccountCreditDbAccessor = void 0;
13
- exports.SmsTemplateDbAccessor = exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceDbAccessor = exports.ServiceAppointmentDbAccessor = exports.ServiceAppointmentConfigDbAccessor = exports.ScheduleSlotDbAccessor = exports.SalesTerritoryDbAccessor = exports.RewardDbAccessor = exports.ReturnsDbAccessor = exports.RemediationRequiredReasonDbAccessor = exports.RemediationOutcomeFormDbAccessor = exports.RegionDbAccessor = exports.ReferralDbAccessor = exports.PushNotificationDbAccessor = exports.ProductDbAccessor = exports.PriceBookDbAccessor = exports.PgWebhookDbAccessor = exports.PgWebhookAttemptDbAccessor = exports.PgVocalinkDbAccessor = exports.PgTransactionDbAccessor = exports.PgSortCodeSubstitutionDbAccessor = exports.PgReportEventDbAccessor = exports.PgPaymentMethodDbAccessor = exports.PgLogDbAccessor = exports.PgFileAllocationDbAccessor = exports.PgDisputeDbAccessor = exports.PgDirectDebitFileDbAccessor = exports.PgContactDbAccessor = exports.PgAccountValidationDbAccessor = exports.PermissionToFailDbAccessor = exports.PaymentDbAccessor = exports.PaymentMethodRefundDbAccessor = exports.PaymentMethodDbAccessor = exports.PICRequestDbAccessor = exports.OverlayRealA55DbAccessor = exports.OutboundDialSessionDbAccessor = exports.OutboundDialCampaignDbAccessor = exports.OutboundDialCampaignCaseDbAccessor = exports.OutageDbAccessor = exports.OrderDbAccessor = exports.OrderKciDbAccessor = exports.OrderItemDbAccessor = exports.OrderCheckDbAccessor = exports.OntReplacementApprovalDbAccessor = exports.OneTouchSwitchDbAccessor = exports.OhExternalAuditDbAccessor = exports.OfferTemplateDbAccessor = exports.OfferDbAccessor = exports.NotificationTemplateDbAccessor = void 0;
14
- exports.YfWifiSurveyDbAccessor = exports.YfFieldServiceVisitDbAccessor = exports.YfAgentLocationDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioWorkerDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.TwilioCallEventDbAccessor = exports.TwilioActivityDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = void 0;
13
+ exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceDbAccessor = exports.ServiceAppointmentDbAccessor = exports.ServiceAppointmentConfigDbAccessor = exports.ScheduleSlotDbAccessor = exports.SalesTerritoryDbAccessor = exports.RewardDbAccessor = exports.ReturnsDbAccessor = exports.RemediationRequiredReasonDbAccessor = exports.RemediationOutcomeFormDbAccessor = exports.RegionDbAccessor = exports.ReferralDbAccessor = exports.RecontractDbAccessor = exports.PushNotificationDbAccessor = exports.ProductDbAccessor = exports.PriceBookDbAccessor = exports.PgWebhookDbAccessor = exports.PgWebhookAttemptDbAccessor = exports.PgVocalinkDbAccessor = exports.PgTransactionDbAccessor = exports.PgSortCodeSubstitutionDbAccessor = exports.PgReportEventDbAccessor = exports.PgPaymentMethodDbAccessor = exports.PgLogDbAccessor = exports.PgFileAllocationDbAccessor = exports.PgDisputeDbAccessor = exports.PgDirectDebitFileDbAccessor = exports.PgContactDbAccessor = exports.PgAccountValidationDbAccessor = exports.PermissionToFailDbAccessor = exports.PaymentDbAccessor = exports.PaymentMethodRefundDbAccessor = exports.PaymentMethodDbAccessor = exports.PICRequestDbAccessor = exports.OverlayRealA55DbAccessor = exports.OutboundDialSessionDbAccessor = exports.OutboundDialCampaignDbAccessor = exports.OutboundDialCampaignCaseDbAccessor = exports.OutageDbAccessor = exports.OrderDbAccessor = exports.OrderKciDbAccessor = exports.OrderItemDbAccessor = exports.OrderCheckDbAccessor = exports.OntReplacementApprovalDbAccessor = exports.OneTouchSwitchDbAccessor = exports.OhExternalAuditDbAccessor = exports.OfferTemplateDbAccessor = exports.OfferDbAccessor = exports.NotificationTemplateDbAccessor = void 0;
14
+ exports.YfWifiSurveyDbAccessor = exports.YfFieldServiceVisitDbAccessor = exports.YfAgentLocationDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioWorkerDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.TwilioCallEventDbAccessor = exports.TwilioActivityDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = exports.SmsTemplateDbAccessor = void 0;
15
15
  var AccountCreditDbAccessor_1 = require("./AccountCreditDbAccessor");
16
16
  Object.defineProperty(exports, "AccountCreditDbAccessor", { enumerable: true, get: function () { return AccountCreditDbAccessor_1.AccountCreditDbAccessor; } });
17
17
  var AccountDbAccessor_1 = require("./AccountDbAccessor");
@@ -184,6 +184,8 @@ var ProductDbAccessor_1 = require("./ProductDbAccessor");
184
184
  Object.defineProperty(exports, "ProductDbAccessor", { enumerable: true, get: function () { return ProductDbAccessor_1.ProductDbAccessor; } });
185
185
  var PushNotificationDbAccessor_1 = require("./PushNotificationDbAccessor");
186
186
  Object.defineProperty(exports, "PushNotificationDbAccessor", { enumerable: true, get: function () { return PushNotificationDbAccessor_1.PushNotificationDbAccessor; } });
187
+ var RecontractDbAccessor_1 = require("./RecontractDbAccessor");
188
+ Object.defineProperty(exports, "RecontractDbAccessor", { enumerable: true, get: function () { return RecontractDbAccessor_1.RecontractDbAccessor; } });
187
189
  var ReferralDbAccessor_1 = require("./ReferralDbAccessor");
188
190
  Object.defineProperty(exports, "ReferralDbAccessor", { enumerable: true, get: function () { return ReferralDbAccessor_1.ReferralDbAccessor; } });
189
191
  var RegionDbAccessor_1 = require("./RegionDbAccessor");
@@ -23,6 +23,7 @@ import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/
23
23
  import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
24
24
  import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
25
25
  import { CaseProperties, OutageCaseProperties } from '../entities-v2/Case';
26
+ import { AddCaseAdditionalNotesProperties } from '../actions-v2/AddCaseAdditionalNotesDto';
26
27
  import { AllowCsatForCaseProperties } from '../actions-v2/AllowCsatForCaseDto';
27
28
  import { AssignCaseByUserProperties } from '../actions-v2/AssignCaseByUserDto';
28
29
  import { AssignCaseProperties } from '../actions-v2/AssignCaseDto';
@@ -39,12 +40,14 @@ import { EscalateCaseActionBrskProperties } from '../actions-v2/EscalateCaseActi
39
40
  import { EscalateCaseActionYfProperties } from '../actions-v2/EscalateCaseActionYfDto';
40
41
  import { EscalateCaseActionYfcsProperties } from '../actions-v2/EscalateCaseActionYfcsDto';
41
42
  import { ExceptionInputProperties } from '../actions-v2/ExceptionInputDto';
43
+ import { FlagVulnerableCustomerProperties } from '../actions-v2/FlagVulnerableCustomerDto';
42
44
  import { MarkCaseClosedProperties } from '../actions-v2/MarkCaseClosedDto';
43
45
  import { MarkCaseResolvedProperties } from '../actions-v2/MarkCaseResolvedDto';
44
46
  import { MoveCaseOutageToSolvedAction2Properties } from '../actions-v2/MoveCaseOutageToSolvedAction2Dto';
45
47
  import { MoveCaseOutageToSolvedActionProperties } from '../actions-v2/MoveCaseOutageToSolvedActionDto';
46
48
  import { UpdateAdditionalNoteProperties } from '../actions-v2/MoveCaseToClosedWithAdditionalNoteDto';
47
49
  import { MoveCaseToSolvedActionProperties } from '../actions-v2/MoveCaseToSolvedActionDto';
50
+ import { RecordAiTagsAccuracyProperties } from '../actions-v2/RecordAiTagsAccuracyDto';
48
51
  import { RemoveAssignmentFromCaseProperties } from '../actions-v2/RemoveAssignmentFromCaseDto';
49
52
  import { ReturnCaseToAgentOnCustomerReplyProperties } from '../actions-v2/ReturnCaseToAgentOnCustomerReplyDto';
50
53
  import { UpdateCaseChannelOnCallProperties } from '../actions-v2/UpdateCaseChannelOnCallDto';
@@ -52,6 +55,8 @@ import { UpdateCaseCsatProperties } from '../actions-v2/UpdateCaseCsatDto';
52
55
  import { UpdateCaseFromLinkedCallProperties } from '../actions-v2/UpdateCaseFromLinkedCallDto';
53
56
  import { UpdateCaseOnDialAttemptProperties } from '../actions-v2/UpdateCaseOnDialAttemptDto';
54
57
  import { UpdateCaseOnDialConnectedProperties } from '../actions-v2/UpdateCaseOnDialConnectedDto';
58
+ import { UpdateCaseProvidersProperties } from '../actions-v2/UpdateCaseProvidersDto';
59
+ import { UpdateCaseSlaProperties } from '../actions-v2/UpdateCaseSlaDto';
55
60
  import { UpdateFormalComplaintProperties } from '../actions-v2/UpdateFormalComplaintDto';
56
61
  import { UpdateSentimentProperties } from '../actions-v2/UpdateSentimentDto';
57
62
  import { UpdateTagsProperties } from '../actions-v2/UpdateTagsDto';
@@ -1893,6 +1898,32 @@ export declare class CaseRecord<TProps = CaseProperties> {
1893
1898
  journeyId?: string;
1894
1899
  stageKey?: string;
1895
1900
  }): ActionBuilder;
1901
+ /**
1902
+ * AddCaseAdditionalNotes
1903
+ *
1904
+ * Updates this Case record with the specified properties.
1905
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
1906
+ *
1907
+ * @param properties - Required properties for this action
1908
+ * @param options - Optional settings
1909
+ * @param options.journeyId - Associate with a journey
1910
+ * @param options.stageKey - Transition to pipeline stage
1911
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
1912
+ * @throws Error if called on a new (unsaved) record
1913
+ *
1914
+ * @example
1915
+ * ```typescript
1916
+ * const record = await odinClient.cases.get(id);
1917
+ * await record.addCaseAdditionalNotes({ ... }).execute();
1918
+ *
1919
+ * // Dry run (for debugging)
1920
+ * const payload = record.addCaseAdditionalNotes({ ... }).dryRun();
1921
+ * ```
1922
+ */
1923
+ addCaseAdditionalNotes(properties: AddCaseAdditionalNotesProperties, options?: {
1924
+ journeyId?: string;
1925
+ stageKey?: string;
1926
+ }): ActionBuilder;
1896
1927
  /**
1897
1928
  * AllowCsatForCase
1898
1929
  *
@@ -2554,6 +2585,32 @@ export declare class CaseRecord<TProps = CaseProperties> {
2554
2585
  journeyId?: string;
2555
2586
  stageKey?: string;
2556
2587
  }): ActionBuilder;
2588
+ /**
2589
+ * FlagVulnerableCustomer
2590
+ *
2591
+ * Updates this Case record with the specified properties.
2592
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
2593
+ *
2594
+ * @param properties - Required properties for this action
2595
+ * @param options - Optional settings
2596
+ * @param options.journeyId - Associate with a journey
2597
+ * @param options.stageKey - Transition to pipeline stage
2598
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
2599
+ * @throws Error if called on a new (unsaved) record
2600
+ *
2601
+ * @example
2602
+ * ```typescript
2603
+ * const record = await odinClient.cases.get(id);
2604
+ * await record.flagVulnerableCustomer({ ... }).execute();
2605
+ *
2606
+ * // Dry run (for debugging)
2607
+ * const payload = record.flagVulnerableCustomer({ ... }).dryRun();
2608
+ * ```
2609
+ */
2610
+ flagVulnerableCustomer(properties: FlagVulnerableCustomerProperties, options?: {
2611
+ journeyId?: string;
2612
+ stageKey?: string;
2613
+ }): ActionBuilder;
2557
2614
  /**
2558
2615
  * MarkCaseClosed
2559
2616
  *
@@ -2932,6 +2989,32 @@ export declare class CaseRecord<TProps = CaseProperties> {
2932
2989
  movetoClosed(options?: {
2933
2990
  journeyId?: string;
2934
2991
  }): ActionBuilder;
2992
+ /**
2993
+ * RecordAiTagsAccuracy
2994
+ *
2995
+ * Updates this Case record with the specified properties.
2996
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
2997
+ *
2998
+ * @param properties - Required properties for this action
2999
+ * @param options - Optional settings
3000
+ * @param options.journeyId - Associate with a journey
3001
+ * @param options.stageKey - Transition to pipeline stage
3002
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3003
+ * @throws Error if called on a new (unsaved) record
3004
+ *
3005
+ * @example
3006
+ * ```typescript
3007
+ * const record = await odinClient.cases.get(id);
3008
+ * await record.recordAiTagsAccuracy({ ... }).execute();
3009
+ *
3010
+ * // Dry run (for debugging)
3011
+ * const payload = record.recordAiTagsAccuracy({ ... }).dryRun();
3012
+ * ```
3013
+ */
3014
+ recordAiTagsAccuracy(properties: RecordAiTagsAccuracyProperties, options?: {
3015
+ journeyId?: string;
3016
+ stageKey?: string;
3017
+ }): ActionBuilder;
2935
3018
  /**
2936
3019
  * RemoveAssignmentFromCase
2937
3020
  *
@@ -3143,6 +3226,59 @@ export declare class CaseRecord<TProps = CaseProperties> {
3143
3226
  journeyId?: string;
3144
3227
  stageKey?: string;
3145
3228
  }): ActionBuilder;
3229
+ /**
3230
+ * UpdateCaseProviders
3231
+ *
3232
+ * Updates this Case record with the specified properties.
3233
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3234
+ *
3235
+ * @param properties - Required properties for this action
3236
+ * @param options - Optional settings
3237
+ * @param options.journeyId - Associate with a journey
3238
+ * @param options.stageKey - Transition to pipeline stage
3239
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3240
+ * @throws Error if called on a new (unsaved) record
3241
+ *
3242
+ * @example
3243
+ * ```typescript
3244
+ * const record = await odinClient.cases.get(id);
3245
+ * await record.updateCaseProviders({ ... }).execute();
3246
+ *
3247
+ * // Dry run (for debugging)
3248
+ * const payload = record.updateCaseProviders({ ... }).dryRun();
3249
+ * ```
3250
+ */
3251
+ updateCaseProviders(properties: UpdateCaseProvidersProperties, options?: {
3252
+ journeyId?: string;
3253
+ stageKey?: string;
3254
+ }): ActionBuilder;
3255
+ /**
3256
+ * UpdateCaseSla
3257
+ *
3258
+ * Updates this Case record.
3259
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3260
+ *
3261
+ * @param propertiesOrOptions - Properties to update, or options object
3262
+ * @param options - Optional settings (journeyId, stageKey)
3263
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3264
+ * @throws Error if called on a new (unsaved) record
3265
+ *
3266
+ * @example
3267
+ * ```typescript
3268
+ * const record = await odinClient.cases.get(id);
3269
+ * await record.updateCaseSla({ ... }).execute();
3270
+ *
3271
+ * // Dry run (for debugging)
3272
+ * const payload = record.updateCaseSla({ ... }).dryRun();
3273
+ * ```
3274
+ */
3275
+ updateCaseSla(propertiesOrOptions?: UpdateCaseSlaProperties | {
3276
+ journeyId?: string;
3277
+ stageKey?: string;
3278
+ }, options?: {
3279
+ journeyId?: string;
3280
+ stageKey?: string;
3281
+ }): ActionBuilder;
3146
3282
  /**
3147
3283
  * UpdateFormalComplaint
3148
3284
  *
@@ -3078,6 +3078,35 @@ class CaseRecord {
3078
3078
  // ============================================
3079
3079
  // UPDATE ACTIONS (require existing record)
3080
3080
  // ============================================
3081
+ /**
3082
+ * AddCaseAdditionalNotes
3083
+ *
3084
+ * Updates this Case record with the specified properties.
3085
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3086
+ *
3087
+ * @param properties - Required properties for this action
3088
+ * @param options - Optional settings
3089
+ * @param options.journeyId - Associate with a journey
3090
+ * @param options.stageKey - Transition to pipeline stage
3091
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3092
+ * @throws Error if called on a new (unsaved) record
3093
+ *
3094
+ * @example
3095
+ * ```typescript
3096
+ * const record = await odinClient.cases.get(id);
3097
+ * await record.addCaseAdditionalNotes({ ... }).execute();
3098
+ *
3099
+ * // Dry run (for debugging)
3100
+ * const payload = record.addCaseAdditionalNotes({ ... }).dryRun();
3101
+ * ```
3102
+ */
3103
+ addCaseAdditionalNotes(properties, options) {
3104
+ var _a;
3105
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3106
+ throw new Error('addCaseAdditionalNotes requires an existing record. Use accessor.get() first.');
3107
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'AddCaseAdditionalNotes', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
3108
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3109
+ }
3081
3110
  /**
3082
3111
  * AllowCsatForCase
3083
3112
  *
@@ -3871,6 +3900,35 @@ class CaseRecord {
3871
3900
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'ExceptionInput', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3872
3901
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3873
3902
  }
3903
+ /**
3904
+ * FlagVulnerableCustomer
3905
+ *
3906
+ * Updates this Case record with the specified properties.
3907
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3908
+ *
3909
+ * @param properties - Required properties for this action
3910
+ * @param options - Optional settings
3911
+ * @param options.journeyId - Associate with a journey
3912
+ * @param options.stageKey - Transition to pipeline stage
3913
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3914
+ * @throws Error if called on a new (unsaved) record
3915
+ *
3916
+ * @example
3917
+ * ```typescript
3918
+ * const record = await odinClient.cases.get(id);
3919
+ * await record.flagVulnerableCustomer({ ... }).execute();
3920
+ *
3921
+ * // Dry run (for debugging)
3922
+ * const payload = record.flagVulnerableCustomer({ ... }).dryRun();
3923
+ * ```
3924
+ */
3925
+ flagVulnerableCustomer(properties, options) {
3926
+ var _a;
3927
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3928
+ throw new Error('flagVulnerableCustomer requires an existing record. Use accessor.get() first.');
3929
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'FlagVulnerableCustomer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
3930
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3931
+ }
3874
3932
  /**
3875
3933
  * MarkCaseClosed
3876
3934
  *
@@ -4300,6 +4358,35 @@ class CaseRecord {
4300
4358
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovetoClosed', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageClosed' }, options);
4301
4359
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
4302
4360
  }
4361
+ /**
4362
+ * RecordAiTagsAccuracy
4363
+ *
4364
+ * Updates this Case record with the specified properties.
4365
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
4366
+ *
4367
+ * @param properties - Required properties for this action
4368
+ * @param options - Optional settings
4369
+ * @param options.journeyId - Associate with a journey
4370
+ * @param options.stageKey - Transition to pipeline stage
4371
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
4372
+ * @throws Error if called on a new (unsaved) record
4373
+ *
4374
+ * @example
4375
+ * ```typescript
4376
+ * const record = await odinClient.cases.get(id);
4377
+ * await record.recordAiTagsAccuracy({ ... }).execute();
4378
+ *
4379
+ * // Dry run (for debugging)
4380
+ * const payload = record.recordAiTagsAccuracy({ ... }).dryRun();
4381
+ * ```
4382
+ */
4383
+ recordAiTagsAccuracy(properties, options) {
4384
+ var _a;
4385
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
4386
+ throw new Error('recordAiTagsAccuracy requires an existing record. Use accessor.get() first.');
4387
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'RecordAiTagsAccuracy', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
4388
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
4389
+ }
4303
4390
  /**
4304
4391
  * RemoveAssignmentFromCase
4305
4392
  *
@@ -4570,6 +4657,72 @@ class CaseRecord {
4570
4657
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCaseOnDialConnected', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
4571
4658
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
4572
4659
  }
4660
+ /**
4661
+ * UpdateCaseProviders
4662
+ *
4663
+ * Updates this Case record with the specified properties.
4664
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
4665
+ *
4666
+ * @param properties - Required properties for this action
4667
+ * @param options - Optional settings
4668
+ * @param options.journeyId - Associate with a journey
4669
+ * @param options.stageKey - Transition to pipeline stage
4670
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
4671
+ * @throws Error if called on a new (unsaved) record
4672
+ *
4673
+ * @example
4674
+ * ```typescript
4675
+ * const record = await odinClient.cases.get(id);
4676
+ * await record.updateCaseProviders({ ... }).execute();
4677
+ *
4678
+ * // Dry run (for debugging)
4679
+ * const payload = record.updateCaseProviders({ ... }).dryRun();
4680
+ * ```
4681
+ */
4682
+ updateCaseProviders(properties, options) {
4683
+ var _a;
4684
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
4685
+ throw new Error('updateCaseProviders requires an existing record. Use accessor.get() first.');
4686
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCaseProviders', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
4687
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
4688
+ }
4689
+ /**
4690
+ * UpdateCaseSla
4691
+ *
4692
+ * Updates this Case record.
4693
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
4694
+ *
4695
+ * @param propertiesOrOptions - Properties to update, or options object
4696
+ * @param options - Optional settings (journeyId, stageKey)
4697
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
4698
+ * @throws Error if called on a new (unsaved) record
4699
+ *
4700
+ * @example
4701
+ * ```typescript
4702
+ * const record = await odinClient.cases.get(id);
4703
+ * await record.updateCaseSla({ ... }).execute();
4704
+ *
4705
+ * // Dry run (for debugging)
4706
+ * const payload = record.updateCaseSla({ ... }).dryRun();
4707
+ * ```
4708
+ */
4709
+ updateCaseSla(propertiesOrOptions, options) {
4710
+ var _a;
4711
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
4712
+ throw new Error('updateCaseSla requires an existing record. Use accessor.get() first.');
4713
+ let properties = {};
4714
+ let opts = options;
4715
+ if (propertiesOrOptions) {
4716
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
4717
+ opts = propertiesOrOptions;
4718
+ }
4719
+ else {
4720
+ properties = propertiesOrOptions;
4721
+ }
4722
+ }
4723
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCaseSla', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
4724
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
4725
+ }
4573
4726
  /**
4574
4727
  * UpdateFormalComplaint
4575
4728
  *
@@ -21,6 +21,7 @@ import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/
21
21
  import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
22
22
  import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
23
23
  import { CustomerDeviceRouterProperties } from '../entities-v2/CustomerDeviceRouter';
24
+ import { CreateCustomerDeviceRouterFromDispatchProperties } from '../actions-v2/CreateCustomerDeviceRouterFromDispatchDto';
24
25
  import { CustomerDeviceRouterCreateProperties } from '../actions-v2/CustomerDeviceRouterCreateDto';
25
26
  import { CustomerDeviceRouterUpdateProperties } from '../actions-v2/CustomerDeviceRouterUpdateDto';
26
27
  import { FileRecord } from './FileRecord';
@@ -272,6 +273,34 @@ export declare class CustomerDeviceRouterRecord<TProps = CustomerDeviceRouterPro
272
273
  unlink(target: OdinRecord<any> | {
273
274
  id: string;
274
275
  } | string): Promise<void>;
276
+ /**
277
+ * CreateCustomerDeviceRouterFromDispatch
278
+ *
279
+ * Creates a new CustomerDeviceRouter record with the specified properties.
280
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
281
+ *
282
+ * @param properties - The properties for the new record
283
+ * @param options - Optional settings
284
+ * @param options.type - Override the record type
285
+ * @param options.journeyId - Associate with a journey
286
+ * @param options.stageKey - Set initial pipeline stage
287
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
288
+ *
289
+ * @example
290
+ * ```typescript
291
+ * // Create with properties
292
+ * const record = odinClient.customerDeviceRouters.new();
293
+ * await record.createCustomerDeviceRouterFromDispatch({ ... }).execute();
294
+ *
295
+ * // Dry run (for debugging)
296
+ * const payload = record.createCustomerDeviceRouterFromDispatch({ ... }).dryRun();
297
+ * ```
298
+ */
299
+ createCustomerDeviceRouterFromDispatch(properties?: CreateCustomerDeviceRouterFromDispatchProperties, options?: {
300
+ type?: string;
301
+ journeyId?: string;
302
+ stageKey?: string;
303
+ }): ActionBuilder;
275
304
  /**
276
305
  * CustomerDeviceRouterCreate
277
306
  *
@@ -395,6 +395,42 @@ class CustomerDeviceRouterRecord {
395
395
  // ============================================
396
396
  // CREATE ACTIONS (no existing record required)
397
397
  // ============================================
398
+ /**
399
+ * CreateCustomerDeviceRouterFromDispatch
400
+ *
401
+ * Creates a new CustomerDeviceRouter record with the specified properties.
402
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
403
+ *
404
+ * @param properties - The properties for the new record
405
+ * @param options - Optional settings
406
+ * @param options.type - Override the record type
407
+ * @param options.journeyId - Associate with a journey
408
+ * @param options.stageKey - Set initial pipeline stage
409
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
410
+ *
411
+ * @example
412
+ * ```typescript
413
+ * // Create with properties
414
+ * const record = odinClient.customerDeviceRouters.new();
415
+ * await record.createCustomerDeviceRouterFromDispatch({ ... }).execute();
416
+ *
417
+ * // Dry run (for debugging)
418
+ * const payload = record.createCustomerDeviceRouterFromDispatch({ ... }).dryRun();
419
+ * ```
420
+ */
421
+ createCustomerDeviceRouterFromDispatch(properties, options) {
422
+ var _a, _b;
423
+ const payload = {
424
+ entity: 'ServiceModule:CustomerDeviceRouter',
425
+ 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,
426
+ actionName: 'CreateCustomerDeviceRouterFromDispatch',
427
+ properties: properties || {},
428
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
429
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
430
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
431
+ };
432
+ return new ActionBuilder(this._provider, 'ServiceModule', 'CustomerDeviceRouter', payload, () => { this._pendingLinks = []; });
433
+ }
398
434
  /**
399
435
  * CustomerDeviceRouterCreate
400
436
  *
@@ -70,6 +70,7 @@ import { ActivityLogRecord } from './ActivityLogRecord';
70
70
  import { InvoiceRecord } from './InvoiceRecord';
71
71
  import { ModifyServiceRequestRecord } from './ModifyServiceRequestRecord';
72
72
  import { ContactRecord } from './ContactRecord';
73
+ import { RecontractRecord } from './RecontractRecord';
73
74
  import { DataIssueRecord } from './DataIssueRecord';
74
75
  import { WorkOrderRecord } from './WorkOrderRecord';
75
76
  /**
@@ -727,6 +728,7 @@ export declare class OrderRecord<TProps = OrderProperties> {
727
728
  private _invoices?;
728
729
  private _modifyServiceRequests?;
729
730
  private _contacts?;
731
+ private _recontracts?;
730
732
  private _dataIssues?;
731
733
  private _workOrders?;
732
734
  /**
@@ -1312,6 +1314,24 @@ export declare class OrderRecord<TProps = OrderProperties> {
1312
1314
  * ```
1313
1315
  */
1314
1316
  get contacts(): RecordLinkManager<ContactRecord, typeof OrderRecord['contactsLabels'][number]>;
1317
+ /** Valid labels for Recontract associations */
1318
+ static readonly recontractsLabels: readonly ["Recontract__Order"];
1319
+ /**
1320
+ * Access linked Recontract records
1321
+ * @remarks Available labels: Recontract__Order
1322
+ * @throws Error if called on a new (unsaved) record
1323
+ *
1324
+ * @example
1325
+ * ```typescript
1326
+ * // Get all linked Recontract records
1327
+ * const items = await record.recontracts.list();
1328
+ * const first = await record.recontracts.first();
1329
+ *
1330
+ * // Filter by label
1331
+ * const specific = await record.recontracts.first({ label: 'Recontract__Order' });
1332
+ * ```
1333
+ */
1334
+ get recontracts(): RecordLinkManager<RecontractRecord, typeof OrderRecord['recontractsLabels'][number]>;
1315
1335
  /** Valid labels for DataIssue associations */
1316
1336
  static readonly dataIssuesLabels: readonly ["DataIssue__Order"];
1317
1337
  /**
@@ -60,6 +60,7 @@ const ActivityLogRecord_1 = require("./ActivityLogRecord");
60
60
  const InvoiceRecord_1 = require("./InvoiceRecord");
61
61
  const ModifyServiceRequestRecord_1 = require("./ModifyServiceRequestRecord");
62
62
  const ContactRecord_1 = require("./ContactRecord");
63
+ const RecontractRecord_1 = require("./RecontractRecord");
63
64
  const DataIssueRecord_1 = require("./DataIssueRecord");
64
65
  const WorkOrderRecord_1 = require("./WorkOrderRecord");
65
66
  /**
@@ -2060,6 +2061,36 @@ class OrderRecord {
2060
2061
  }
2061
2062
  return this._contacts;
2062
2063
  }
2064
+ /**
2065
+ * Access linked Recontract records
2066
+ * @remarks Available labels: Recontract__Order
2067
+ * @throws Error if called on a new (unsaved) record
2068
+ *
2069
+ * @example
2070
+ * ```typescript
2071
+ * // Get all linked Recontract records
2072
+ * const items = await record.recontracts.list();
2073
+ * const first = await record.recontracts.first();
2074
+ *
2075
+ * // Filter by label
2076
+ * const specific = await record.recontracts.first({ label: 'Recontract__Order' });
2077
+ * ```
2078
+ */
2079
+ get recontracts() {
2080
+ var _a;
2081
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
2082
+ throw new Error('Cannot access links on a new (unsaved) record');
2083
+ if (!this._recontracts) {
2084
+ this._recontracts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
2085
+ sourceEntity: 'OrderModule:Order',
2086
+ targetEntity: 'OrderModule:Recontract',
2087
+ targetModuleName: 'OrderModule',
2088
+ targetEntityName: 'Recontract',
2089
+ labels: ['Recontract__Order'],
2090
+ }, RecontractRecord_1.RecontractRecord);
2091
+ }
2092
+ return this._recontracts;
2093
+ }
2063
2094
  /**
2064
2095
  * Access linked DataIssue records
2065
2096
  * @remarks Available labels: DataIssue__Order
@@ -3368,6 +3399,8 @@ OrderRecord.invoicesLabels = ['Order__Invoice'];
3368
3399
  OrderRecord.modifyServiceRequestsLabels = ['ModifyServiceRequest__Order'];
3369
3400
  /** Valid labels for Contact associations */
3370
3401
  OrderRecord.contactsLabels = ['Order__Contact'];
3402
+ /** Valid labels for Recontract associations */
3403
+ OrderRecord.recontractsLabels = ['Recontract__Order'];
3371
3404
  /** Valid labels for DataIssue associations */
3372
3405
  OrderRecord.dataIssuesLabels = ['DataIssue__Order'];
3373
3406
  /** Valid labels for WorkOrder associations */