@d19n/youfibre-odin-sdk 2.0.366 → 2.0.367

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 (76) hide show
  1. package/README.md +6 -26
  2. package/dist/EntityRegistry.d.ts +0 -8
  3. package/dist/EntityRegistry.js +0 -8
  4. package/dist/OdinApiClient.d.ts +0 -16
  5. package/dist/OdinApiClient.js +0 -32
  6. package/dist/OdinDbClient.d.ts +0 -16
  7. package/dist/OdinDbClient.js +0 -32
  8. package/dist/accessors-v2/index.d.ts +0 -4
  9. package/dist/accessors-v2/index.js +2 -10
  10. package/dist/actions-v2/CancelOrderForEtfPaidDto.d.ts +67 -0
  11. package/dist/actions-v2/CancelOrderForEtfPaidDto.js +59 -0
  12. package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
  13. package/dist/actions-v2/CreateOutboundDialSessionDto.d.ts +15 -1
  14. package/dist/actions-v2/UpdateOutboundDialSessionDto.d.ts +15 -1
  15. package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
  16. package/dist/api-sdk-v2/QaReportAmendmentApi.d.ts +48 -0
  17. package/dist/api-sdk-v2/QaReportAmendmentApi.js +155 -0
  18. package/dist/api-sdk-v2/QaReportApi.d.ts +2 -0
  19. package/dist/api-sdk-v2/QaReportApi.js +6 -0
  20. package/dist/db-accessors-v2/index.d.ts +0 -4
  21. package/dist/db-accessors-v2/index.js +2 -10
  22. package/dist/db-sdk-v2/CrmDatasetDb.d.ts +2 -2
  23. package/dist/db-sdk-v2/CrmDatasetDb.js +4 -4
  24. package/dist/db-sdk-v2/QaReportAmendmentDb.d.ts +120 -0
  25. package/dist/db-sdk-v2/QaReportAmendmentDb.js +204 -0
  26. package/dist/db-sdk-v2/QaReportDb.d.ts +2 -0
  27. package/dist/db-sdk-v2/QaReportDb.js +6 -0
  28. package/dist/entities-v2/HomeMove.d.ts +23 -1
  29. package/dist/entities-v2/HomeMove.js +17 -1
  30. package/dist/entities-v2/OrderItem.d.ts +2 -0
  31. package/dist/entities-v2/OrderItem.js +2 -0
  32. package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
  33. package/dist/entities-v2/OutboundDialCampaign.js +2 -0
  34. package/dist/entities-v2/OutboundDialSession.d.ts +17 -1
  35. package/dist/entities-v2/OutboundDialSession.js +4 -0
  36. package/dist/entities-v2/QaReport.d.ts +70 -1
  37. package/dist/entities-v2/QaReport.js +31 -1
  38. package/dist/entities-v2/QaReportAmendment.d.ts +209 -0
  39. package/dist/entities-v2/QaReportAmendment.js +120 -0
  40. package/dist/records-v2/OrderRecord.d.ts +25 -0
  41. package/dist/records-v2/OrderRecord.js +29 -0
  42. package/dist/records-v2/index.d.ts +0 -4
  43. package/dist/records-v2/index.js +2 -14
  44. package/package.json +1 -1
  45. package/dist/accessors-v2/QaAutoFailAccessor.d.ts +0 -112
  46. package/dist/accessors-v2/QaAutoFailAccessor.js +0 -191
  47. package/dist/accessors-v2/QaRubricAccessor.d.ts +0 -112
  48. package/dist/accessors-v2/QaRubricAccessor.js +0 -191
  49. package/dist/accessors-v2/QaRubricItemAccessor.d.ts +0 -112
  50. package/dist/accessors-v2/QaRubricItemAccessor.js +0 -191
  51. package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +0 -112
  52. package/dist/accessors-v2/QaRubricSectionAccessor.js +0 -191
  53. package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +0 -102
  54. package/dist/actions-v2/UpdateQaAutoFailDto.js +0 -56
  55. package/dist/actions-v2/UpdateQaRubricDto.d.ts +0 -103
  56. package/dist/actions-v2/UpdateQaRubricDto.js +0 -56
  57. package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +0 -157
  58. package/dist/actions-v2/UpdateQaRubricItemDto.js +0 -56
  59. package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +0 -87
  60. package/dist/actions-v2/UpdateQaRubricSectionDto.js +0 -56
  61. package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +0 -180
  62. package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +0 -265
  63. package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +0 -180
  64. package/dist/db-accessors-v2/QaRubricDbAccessor.js +0 -265
  65. package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +0 -180
  66. package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +0 -265
  67. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +0 -180
  68. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +0 -265
  69. package/dist/records-v2/QaAutoFailRecord.d.ts +0 -205
  70. package/dist/records-v2/QaAutoFailRecord.js +0 -275
  71. package/dist/records-v2/QaRubricItemRecord.d.ts +0 -205
  72. package/dist/records-v2/QaRubricItemRecord.js +0 -275
  73. package/dist/records-v2/QaRubricRecord.d.ts +0 -225
  74. package/dist/records-v2/QaRubricRecord.js +0 -308
  75. package/dist/records-v2/QaRubricSectionRecord.d.ts +0 -225
  76. package/dist/records-v2/QaRubricSectionRecord.js +0 -308
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ /**
3
+ * QaReportAmendment Entity Definition
4
+ *
5
+ * One change a manager made to a QA report: an item verdict or an auto-fail ruling, with the model's original beside it, the recomputed points, the reason, who and when. Written only by the amend route in youfibre-api-support; never edited by hand.
6
+ *
7
+ * @module SupportModule
8
+ * @entity QaReportAmendment
9
+ * @schemaId 295e0792-d5cb-44ba-8cbc-f78105341ab5
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ * Generated from Odin schema definition
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DEFAULT_DELETED = exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DEFAULT_UPDATED = exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DEFAULT_CREATED = exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DELETED = exports.ROUTING_KEY_QA_REPORT_AMENDMENT_UPDATED = exports.ROUTING_KEY_QA_REPORT_AMENDMENT_CREATED = exports.QaReportAmendment = exports.QaReportAmendmentPropertyKeys = exports.QaReportAmendmentSuperseded = exports.QaReportAmendmentKind = exports.QaReportAmendmentEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for QaReportAmendment records
19
+ */
20
+ var QaReportAmendmentEntityTypes;
21
+ (function (QaReportAmendmentEntityTypes) {
22
+ /** This is the default record type */
23
+ QaReportAmendmentEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(QaReportAmendmentEntityTypes = exports.QaReportAmendmentEntityTypes || (exports.QaReportAmendmentEntityTypes = {}));
25
+ /**
26
+ * Valid values for QaReportAmendment.Kind
27
+ *
28
+ * ITEM for a scored rubric item, AUTO_FAIL for an auto-fail ruling.
29
+ *
30
+ * @remarks Available options:
31
+ * - `AUTO_FAIL` - Auto-fail
32
+ * - `ITEM` - Item
33
+ */
34
+ var QaReportAmendmentKind;
35
+ (function (QaReportAmendmentKind) {
36
+ QaReportAmendmentKind["AUTO_FAIL"] = "AUTO_FAIL";
37
+ QaReportAmendmentKind["ITEM"] = "ITEM";
38
+ })(QaReportAmendmentKind = exports.QaReportAmendmentKind || (exports.QaReportAmendmentKind = {}));
39
+ /**
40
+ * Valid values for QaReportAmendment.Superseded
41
+ *
42
+ * NO while this change is the live one; YES once a later amendment or a restore replaced it. Rows are never deleted.
43
+ *
44
+ * @remarks Available options:
45
+ * - `NO` - No
46
+ * - `YES` - Yes
47
+ */
48
+ var QaReportAmendmentSuperseded;
49
+ (function (QaReportAmendmentSuperseded) {
50
+ QaReportAmendmentSuperseded["NO"] = "NO";
51
+ QaReportAmendmentSuperseded["YES"] = "YES";
52
+ })(QaReportAmendmentSuperseded = exports.QaReportAmendmentSuperseded || (exports.QaReportAmendmentSuperseded = {}));
53
+ /**
54
+ * Property keys for QaReportAmendment
55
+ * Use these constants instead of string literals for type safety
56
+ */
57
+ var QaReportAmendmentPropertyKeys;
58
+ (function (QaReportAmendmentPropertyKeys) {
59
+ /** The QA report this change belongs to. */
60
+ QaReportAmendmentPropertyKeys["ReportId"] = "ReportId";
61
+ /** ITEM for a scored rubric item, AUTO_FAIL for an auto-fail ruling. */
62
+ QaReportAmendmentPropertyKeys["Kind"] = "Kind";
63
+ /** The rubric item key (e.g. chat.standard_greeting) or the auto-fail code (e.g. AF4). */
64
+ QaReportAmendmentPropertyKeys["ItemKey"] = "ItemKey";
65
+ /** The item number in the report. Empty for an auto-fail. */
66
+ QaReportAmendmentPropertyKeys["ItemNumber"] = "ItemNumber";
67
+ /** What the model said: YES, PARTIAL, NO or NA for an item; TRIGGERED or RULED_OUT for an auto-fail. */
68
+ QaReportAmendmentPropertyKeys["AiVerdict"] = "AiVerdict";
69
+ /** The points the model awarded the item. Empty for an auto-fail. */
70
+ QaReportAmendmentPropertyKeys["AiPoints"] = "AiPoints";
71
+ /** The verdict after the amendment, same vocabulary as the model verdict. */
72
+ QaReportAmendmentPropertyKeys["Verdict"] = "Verdict";
73
+ /** The points after the amendment, recomputed by the scoring rule. Empty for an auto-fail. */
74
+ QaReportAmendmentPropertyKeys["Points"] = "Points";
75
+ /** The evidence text after the amendment, when the manager changed it. Empty when the model's text was kept. */
76
+ QaReportAmendmentPropertyKeys["Evidence"] = "Evidence";
77
+ /** The rationale text after the amendment, when the manager changed it. Empty when the model's text was kept. */
78
+ QaReportAmendmentPropertyKeys["Rationale"] = "Rationale";
79
+ /** Why the model was wrong, in the manager's words. Required by the route. */
80
+ QaReportAmendmentPropertyKeys["Reason"] = "Reason";
81
+ /** Display name of the manager. */
82
+ QaReportAmendmentPropertyKeys["AmendedBy"] = "AmendedBy";
83
+ /** When the change was made. */
84
+ QaReportAmendmentPropertyKeys["AmendedAt"] = "AmendedAt";
85
+ /** NO while this change is the live one; YES once a later amendment or a restore replaced it. Rows are never deleted. */
86
+ QaReportAmendmentPropertyKeys["Superseded"] = "Superseded";
87
+ })(QaReportAmendmentPropertyKeys = exports.QaReportAmendmentPropertyKeys || (exports.QaReportAmendmentPropertyKeys = {}));
88
+ /**
89
+ * QaReportAmendment entity from SupportModule
90
+ *
91
+ * One change a manager made to a QA report: an item verdict or an auto-fail ruling, with the model's original beside it, the recomputed points, the reason, who and when. Written only by the amend route in youfibre-api-support; never edited by hand.
92
+ *
93
+ * @module SupportModule
94
+ * @entity QaReportAmendment
95
+ * @schemaId 295e0792-d5cb-44ba-8cbc-f78105341ab5
96
+ * @recordPrefix QRA
97
+ * @capabilities searchable, updateable, undeletable, triggerable
98
+ */
99
+ class QaReportAmendment extends core_1.OdinRecord {
100
+ }
101
+ exports.QaReportAmendment = QaReportAmendment;
102
+ // ============================================
103
+ // RABBITMQ EVENT ROUTING KEYS
104
+ // ============================================
105
+ /**
106
+ * RabbitMQ routing keys for QaReportAmendment events
107
+ */
108
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_CREATED = 'SupportModule.QaReportAmendment.SubDbRecordCreated';
109
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_UPDATED = 'SupportModule.QaReportAmendment.SubDbRecordUpdated';
110
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DELETED = 'SupportModule.QaReportAmendment.SubDbRecordDeleted';
111
+ /**
112
+ * Type-specific routing keys for QaReportAmendment events
113
+ * Subscribe to these for events on specific entity types only
114
+ */
115
+ /** This is the default record type created */
116
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DEFAULT_CREATED = 'SupportModule.QaReportAmendment.DEFAULT.SubDbRecordCreated';
117
+ /** This is the default record type updated */
118
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DEFAULT_UPDATED = 'SupportModule.QaReportAmendment.DEFAULT.SubDbRecordUpdated';
119
+ /** This is the default record type deleted */
120
+ exports.ROUTING_KEY_QA_REPORT_AMENDMENT_DEFAULT_DELETED = 'SupportModule.QaReportAmendment.DEFAULT.SubDbRecordDeleted';
@@ -1535,6 +1535,31 @@ export declare class OrderRecord<TProps = OrderProperties> {
1535
1535
  cancelActiveOrder(options?: {
1536
1536
  journeyId?: string;
1537
1537
  }): CancelActiveOrderFlowBuilder;
1538
+ /**
1539
+ * CancelOrderForEtfPaid
1540
+ *
1541
+ * Transitions this Order record to a new pipeline stage.
1542
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
1543
+ *
1544
+ * @remarks Transitions to stage: OrderStageCancelled
1545
+ *
1546
+ * @param options - Optional settings
1547
+ * @param options.journeyId - Associate with a journey
1548
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
1549
+ * @throws Error if called on a new (unsaved) record
1550
+ *
1551
+ * @example
1552
+ * ```typescript
1553
+ * const record = await odinClient.orders.get(id);
1554
+ * await record.cancelOrderForEtfPaid().execute();
1555
+ *
1556
+ * // Dry run (for debugging)
1557
+ * const payload = record.cancelOrderForEtfPaid().dryRun();
1558
+ * ```
1559
+ */
1560
+ cancelOrderForEtfPaid(options?: {
1561
+ journeyId?: string;
1562
+ }): ActionBuilder;
1538
1563
  /**
1539
1564
  * CancelOrderForRecontract
1540
1565
  *
@@ -2377,6 +2377,35 @@ class OrderRecord {
2377
2377
  throw new Error('cancelActiveOrder requires an existing record. Use accessor.get() first.');
2378
2378
  return new CancelActiveOrderFlowBuilder(this, this._provider, this._pendingLinks, options);
2379
2379
  }
2380
+ /**
2381
+ * CancelOrderForEtfPaid
2382
+ *
2383
+ * Transitions this Order record to a new pipeline stage.
2384
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
2385
+ *
2386
+ * @remarks Transitions to stage: OrderStageCancelled
2387
+ *
2388
+ * @param options - Optional settings
2389
+ * @param options.journeyId - Associate with a journey
2390
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
2391
+ * @throws Error if called on a new (unsaved) record
2392
+ *
2393
+ * @example
2394
+ * ```typescript
2395
+ * const record = await odinClient.orders.get(id);
2396
+ * await record.cancelOrderForEtfPaid().execute();
2397
+ *
2398
+ * // Dry run (for debugging)
2399
+ * const payload = record.cancelOrderForEtfPaid().dryRun();
2400
+ * ```
2401
+ */
2402
+ cancelOrderForEtfPaid(options) {
2403
+ var _a;
2404
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
2405
+ throw new Error('cancelOrderForEtfPaid requires an existing record. Use accessor.get() first.');
2406
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CancelOrderForEtfPaid', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageCancelled' }, options);
2407
+ return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
2408
+ }
2380
2409
  /**
2381
2410
  * CancelOrderForRecontract
2382
2411
  *
@@ -131,10 +131,6 @@ export { PriceBookRecord, isPriceBookRecord } from './PriceBookRecord';
131
131
  export { ScheduleSlotRecord, isScheduleSlotRecord } from './ScheduleSlotRecord';
132
132
  export { AgentStatusRecord, isAgentStatusRecord } from './AgentStatusRecord';
133
133
  export { NotificationTemplateRecord, isNotificationTemplateRecord } from './NotificationTemplateRecord';
134
- export { QaAutoFailRecord, isQaAutoFailRecord } from './QaAutoFailRecord';
135
- export { QaRubricRecord, isQaRubricRecord } from './QaRubricRecord';
136
- export { QaRubricItemRecord, isQaRubricItemRecord } from './QaRubricItemRecord';
137
- export { QaRubricSectionRecord, isQaRubricSectionRecord } from './QaRubricSectionRecord';
138
134
  export { ServiceRecord, isServiceRecord } from './ServiceRecord';
139
135
  export { SmsTemplateRecord, isSmsTemplateRecord } from './SmsTemplateRecord';
140
136
  export { VisitRecord, isVisitRecord } from './VisitRecord';
@@ -15,8 +15,8 @@ exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaym
15
15
  exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isCustomerDeviceRecord = exports.CustomerDeviceRecord = exports.isConversationSummaryFeedbackRecord = exports.ConversationSummaryFeedbackRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isMessageRecord = exports.MessageRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallRecord = exports.CallRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isEmailRecord = exports.EmailRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isYfFieldVisitOutcomeFormRecord = exports.YfFieldVisitOutcomeFormRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = void 0;
16
16
  exports.isOutboundDialSessionRecord = exports.OutboundDialSessionRecord = exports.isOutboundDialCampaignRecord = exports.OutboundDialCampaignRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isModifyServiceRequestRecord = exports.ModifyServiceRequestRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isHomeMoveRecord = exports.HomeMoveRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEquipmentReturnItemRecord = exports.EquipmentReturnItemRecord = exports.isEquipmentReturnRecord = exports.EquipmentReturnRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isDocumentProcessingRecord = exports.DocumentProcessingRecord = exports.isDocumentRecord = exports.DocumentRecord = void 0;
17
17
  exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTwilioActivityRecord = exports.TwilioActivityRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isRecontractRecord = exports.RecontractRecord = exports.isQaReportRecord = exports.QaReportRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgReportEventRecord = exports.PgReportEventRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = void 0;
18
- exports.isQaRubricItemRecord = exports.QaRubricItemRecord = exports.isQaRubricRecord = exports.QaRubricRecord = exports.isQaAutoFailRecord = exports.QaAutoFailRecord = exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isAgentStatusRecord = exports.AgentStatusRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = void 0;
19
- exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isQaRubricSectionRecord = exports.QaRubricSectionRecord = void 0;
18
+ exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isAgentStatusRecord = exports.AgentStatusRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = void 0;
19
+ exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = void 0;
20
20
  var OrderRecord_1 = require("./OrderRecord");
21
21
  Object.defineProperty(exports, "OrderRecord", { enumerable: true, get: function () { return OrderRecord_1.OrderRecord; } });
22
22
  Object.defineProperty(exports, "isOrderRecord", { enumerable: true, get: function () { return OrderRecord_1.isOrderRecord; } });
@@ -383,18 +383,6 @@ Object.defineProperty(exports, "isAgentStatusRecord", { enumerable: true, get: f
383
383
  var NotificationTemplateRecord_1 = require("./NotificationTemplateRecord");
384
384
  Object.defineProperty(exports, "NotificationTemplateRecord", { enumerable: true, get: function () { return NotificationTemplateRecord_1.NotificationTemplateRecord; } });
385
385
  Object.defineProperty(exports, "isNotificationTemplateRecord", { enumerable: true, get: function () { return NotificationTemplateRecord_1.isNotificationTemplateRecord; } });
386
- var QaAutoFailRecord_1 = require("./QaAutoFailRecord");
387
- Object.defineProperty(exports, "QaAutoFailRecord", { enumerable: true, get: function () { return QaAutoFailRecord_1.QaAutoFailRecord; } });
388
- Object.defineProperty(exports, "isQaAutoFailRecord", { enumerable: true, get: function () { return QaAutoFailRecord_1.isQaAutoFailRecord; } });
389
- var QaRubricRecord_1 = require("./QaRubricRecord");
390
- Object.defineProperty(exports, "QaRubricRecord", { enumerable: true, get: function () { return QaRubricRecord_1.QaRubricRecord; } });
391
- Object.defineProperty(exports, "isQaRubricRecord", { enumerable: true, get: function () { return QaRubricRecord_1.isQaRubricRecord; } });
392
- var QaRubricItemRecord_1 = require("./QaRubricItemRecord");
393
- Object.defineProperty(exports, "QaRubricItemRecord", { enumerable: true, get: function () { return QaRubricItemRecord_1.QaRubricItemRecord; } });
394
- Object.defineProperty(exports, "isQaRubricItemRecord", { enumerable: true, get: function () { return QaRubricItemRecord_1.isQaRubricItemRecord; } });
395
- var QaRubricSectionRecord_1 = require("./QaRubricSectionRecord");
396
- Object.defineProperty(exports, "QaRubricSectionRecord", { enumerable: true, get: function () { return QaRubricSectionRecord_1.QaRubricSectionRecord; } });
397
- Object.defineProperty(exports, "isQaRubricSectionRecord", { enumerable: true, get: function () { return QaRubricSectionRecord_1.isQaRubricSectionRecord; } });
398
386
  var ServiceRecord_1 = require("./ServiceRecord");
399
387
  Object.defineProperty(exports, "ServiceRecord", { enumerable: true, get: function () { return ServiceRecord_1.ServiceRecord; } });
400
388
  Object.defineProperty(exports, "isServiceRecord", { enumerable: true, get: function () { return ServiceRecord_1.isServiceRecord; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.366",
3
+ "version": "2.0.367",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -1,112 +0,0 @@
1
- /**
2
- * QaAutoFail Accessor
3
- *
4
- * Provides typed access to QaAutoFail records via API.
5
- * Returns wrapped records with typed action methods.
6
- *
7
- * @example
8
- * ```typescript
9
- * // Get existing record
10
- * const record = await accessor.get(id);
11
- * await record.updateQaAutoFail({ ... });
12
- *
13
- * // Create new record
14
- * const newRecord = accessor.new();
15
- * await newRecord.createQaAutoFail({ ... });
16
- * ```
17
- *
18
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
- */
20
- import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
21
- import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
22
- import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
23
- import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
24
- import { QaAutoFailProperties } from '../entities-v2/QaAutoFail';
25
- import { QaAutoFailRecord } from '../records-v2/QaAutoFailRecord';
26
- /** List response with wrapped records */
27
- export interface QaAutoFailListResponse {
28
- data: QaAutoFailRecord[];
29
- hasMore: boolean;
30
- totalRecords: number;
31
- }
32
- /** Search response with wrapped records */
33
- export interface QaAutoFailSearchResponse {
34
- records: QaAutoFailRecord[];
35
- totalRecords: number;
36
- hasMore: boolean;
37
- aggregations?: Record<string, any>;
38
- }
39
- export declare class QaAutoFailAccessor {
40
- private readonly _provider;
41
- private readonly _moduleName;
42
- private readonly _entityName;
43
- constructor(provider: ApiProvider);
44
- constructor(authParams: OauthParams);
45
- constructor(authToken: string, host?: string);
46
- get moduleName(): string;
47
- get entityName(): string;
48
- /**
49
- * Create a new empty QaAutoFail record instance for create operations.
50
- * Pre-generates an ID that can be referenced before the record is saved.
51
- *
52
- * @param id - Optional ID to use (auto-generated UUID if not provided)
53
- * @returns A new record wrapper with pre-generated ID
54
- *
55
- * @example
56
- * ```typescript
57
- * // Auto-generated ID
58
- * const note = odinClient.notes.new();
59
- * console.log(note.id); // UUID available immediately
60
- *
61
- * // Custom ID
62
- * const order = odinClient.orders.new("custom-id-123");
63
- *
64
- * // Reference ID before save
65
- * const account = odinClient.accounts.new();
66
- * const contact = odinClient.contacts.new();
67
- * await contact
68
- * .link({ id: account.id, entity: "CrmModule:Account" })
69
- * .createContact({ FirstName: "John" });
70
- * ```
71
- */
72
- new(id?: string): QaAutoFailRecord;
73
- /**
74
- * Get a single QaAutoFail record by ID
75
- */
76
- get(id: string): Promise<QaAutoFailRecord>;
77
- /**
78
- * Get multiple QaAutoFail records by IDs
79
- */
80
- getMany(ids: string[]): Promise<QaAutoFailRecord[]>;
81
- /**
82
- * Search QaAutoFail records
83
- */
84
- search(params: Partial<OdinSearchV2>): Promise<QaAutoFailSearchResponse>;
85
- /**
86
- * Search all QaAutoFail records with automatic pagination
87
- */
88
- searchAll(params: Partial<OdinSearchV2>): Promise<QaAutoFailRecord[]>;
89
- /**
90
- * Async generator for paginating through all matching records.
91
- * Yields batches of wrapped records.
92
- */
93
- paginate(params: Partial<OdinSearchV2>): AsyncGenerator<QaAutoFailRecord[]>;
94
- /**
95
- * Create a fluent query builder for QaAutoFail records
96
- *
97
- * @example
98
- * ```typescript
99
- * const results = await accessor
100
- * .query()
101
- * .where('Status', 'in', ['Active', 'Pending'])
102
- * .where('CreatedAt', 'gte', '2025-01-01')
103
- * .select('id', 'title', 'properties.*')
104
- * .sortBy('createdAt', 'desc')
105
- * .limit(100)
106
- * .execute();
107
- * ```
108
- */
109
- query(): QueryBuilder<QaAutoFailProperties, QaAutoFailRecord>;
110
- /** Access the underlying ApiProvider */
111
- get provider(): ApiProvider;
112
- }
@@ -1,191 +0,0 @@
1
- "use strict";
2
- /**
3
- * QaAutoFail Accessor
4
- *
5
- * Provides typed access to QaAutoFail records via API.
6
- * Returns wrapped records with typed action methods.
7
- *
8
- * @example
9
- * ```typescript
10
- * // Get existing record
11
- * const record = await accessor.get(id);
12
- * await record.updateQaAutoFail({ ... });
13
- *
14
- * // Create new record
15
- * const newRecord = accessor.new();
16
- * await newRecord.createQaAutoFail({ ... });
17
- * ```
18
- *
19
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
- */
21
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
- return new (P || (P = Promise))(function (resolve, reject) {
24
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
31
- var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
32
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
33
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
34
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
35
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
36
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
37
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
38
- function fulfill(value) { resume("next", value); }
39
- function reject(value) { resume("throw", value); }
40
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
41
- };
42
- Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.QaAutoFailAccessor = void 0;
44
- const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
45
- const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
46
- const QaAutoFailRecord_1 = require("../records-v2/QaAutoFailRecord");
47
- class QaAutoFailAccessor {
48
- constructor(providerOrAuth, host) {
49
- this._moduleName = 'SupportModule';
50
- this._entityName = 'QaAutoFail';
51
- if (providerOrAuth instanceof api_provider_1.ApiProvider) {
52
- this._provider = providerOrAuth;
53
- }
54
- else if (typeof providerOrAuth === 'string') {
55
- // Auth token provided
56
- this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
57
- }
58
- else {
59
- // OauthParams provided
60
- this._provider = new api_provider_1.ApiProvider(providerOrAuth);
61
- }
62
- }
63
- get moduleName() { return this._moduleName; }
64
- get entityName() { return this._entityName; }
65
- // ============================================
66
- // RECORD CREATION
67
- // ============================================
68
- /**
69
- * Create a new empty QaAutoFail record instance for create operations.
70
- * Pre-generates an ID that can be referenced before the record is saved.
71
- *
72
- * @param id - Optional ID to use (auto-generated UUID if not provided)
73
- * @returns A new record wrapper with pre-generated ID
74
- *
75
- * @example
76
- * ```typescript
77
- * // Auto-generated ID
78
- * const note = odinClient.notes.new();
79
- * console.log(note.id); // UUID available immediately
80
- *
81
- * // Custom ID
82
- * const order = odinClient.orders.new("custom-id-123");
83
- *
84
- * // Reference ID before save
85
- * const account = odinClient.accounts.new();
86
- * const contact = odinClient.contacts.new();
87
- * await contact
88
- * .link({ id: account.id, entity: "CrmModule:Account" })
89
- * .createContact({ FirstName: "John" });
90
- * ```
91
- */
92
- new(id) {
93
- return new QaAutoFailRecord_1.QaAutoFailRecord(null, this._provider, id);
94
- }
95
- // ============================================
96
- // RECORD RETRIEVAL
97
- // ============================================
98
- /**
99
- * Get a single QaAutoFail record by ID
100
- */
101
- get(id) {
102
- return __awaiter(this, void 0, void 0, function* () {
103
- const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
104
- return new QaAutoFailRecord_1.QaAutoFailRecord(record, this._provider);
105
- });
106
- }
107
- /**
108
- * Get multiple QaAutoFail records by IDs
109
- */
110
- getMany(ids) {
111
- return __awaiter(this, void 0, void 0, function* () {
112
- if (ids.length === 0)
113
- return [];
114
- const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
115
- return records.map((r) => new QaAutoFailRecord_1.QaAutoFailRecord(r, this._provider));
116
- });
117
- }
118
- // ============================================
119
- // SEARCH OPERATIONS
120
- // ============================================
121
- /**
122
- * Search QaAutoFail records
123
- */
124
- search(params) {
125
- return __awaiter(this, void 0, void 0, function* () {
126
- const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
127
- return {
128
- records: result.records.map((r) => new QaAutoFailRecord_1.QaAutoFailRecord(r, this._provider)),
129
- totalRecords: result.totalRecords,
130
- hasMore: result.hasMore,
131
- aggregations: result.aggregations,
132
- };
133
- });
134
- }
135
- /**
136
- * Search all QaAutoFail records with automatic pagination
137
- */
138
- searchAll(params) {
139
- return __awaiter(this, void 0, void 0, function* () {
140
- const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
141
- return result.records.map((r) => new QaAutoFailRecord_1.QaAutoFailRecord(r, this._provider));
142
- });
143
- }
144
- /**
145
- * Async generator for paginating through all matching records.
146
- * Yields batches of wrapped records.
147
- */
148
- paginate(params) {
149
- var _a;
150
- return __asyncGenerator(this, arguments, function* paginate_1() {
151
- let hasMore = true;
152
- let searchAfter;
153
- const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
154
- while (hasMore) {
155
- const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
156
- if (result.records.length > 0) {
157
- yield yield __await(result.records.map((r) => new QaAutoFailRecord_1.QaAutoFailRecord(r, this._provider)));
158
- const lastRecord = result.records[result.records.length - 1];
159
- searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
160
- }
161
- hasMore = result.hasMore && result.records.length >= query.pageSize;
162
- }
163
- });
164
- }
165
- // ============================================
166
- // QUERY BUILDER
167
- // ============================================
168
- /**
169
- * Create a fluent query builder for QaAutoFail records
170
- *
171
- * @example
172
- * ```typescript
173
- * const results = await accessor
174
- * .query()
175
- * .where('Status', 'in', ['Active', 'Pending'])
176
- * .where('CreatedAt', 'gte', '2025-01-01')
177
- * .select('id', 'title', 'properties.*')
178
- * .sortBy('createdAt', 'desc')
179
- * .limit(100)
180
- * .execute();
181
- * ```
182
- */
183
- query() {
184
- return (0, query_builder_1.createQueryBuilder)(this);
185
- }
186
- /** Access the underlying ApiProvider */
187
- get provider() {
188
- return this._provider;
189
- }
190
- }
191
- exports.QaAutoFailAccessor = QaAutoFailAccessor;