@d19n/youfibre-odin-sdk 2.0.292 → 2.0.294
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 +75 -61
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/AgentStatusAccessor.d.ts +111 -0
- package/dist/accessors-v2/AgentStatusAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.d.ts +135 -0
- package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.js +59 -0
- package/dist/actions-v2/UpdateAgentStatusDto.d.ts +80 -0
- package/dist/actions-v2/UpdateAgentStatusDto.js +56 -0
- package/dist/actions-v2/UpdatePaymentMethodRefundDto.d.ts +93 -0
- package/dist/actions-v2/UpdatePaymentMethodRefundDto.js +56 -0
- package/dist/api-sdk-v2/ModifyServiceRequestApi.d.ts +2 -0
- package/dist/api-sdk-v2/ModifyServiceRequestApi.js +6 -0
- package/dist/api-sdk-v2/RecontractApi.d.ts +2 -0
- package/dist/api-sdk-v2/RecontractApi.js +6 -0
- package/dist/db-accessors-v2/AgentStatusDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/AgentStatusDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/db-sdk-v2/ModifyServiceRequestDb.d.ts +2 -0
- package/dist/db-sdk-v2/ModifyServiceRequestDb.js +6 -0
- package/dist/db-sdk-v2/RecontractDb.d.ts +2 -0
- package/dist/db-sdk-v2/RecontractDb.js +6 -0
- package/dist/entities-v2/Contact.d.ts +8 -0
- package/dist/entities-v2/Contact.js +2 -0
- package/dist/entities-v2/ModifyServiceRequest.d.ts +3 -0
- package/dist/entities-v2/Recontract.d.ts +31 -0
- package/dist/entities-v2/Recontract.js +23 -1
- package/dist/records-v2/AgentStatusRecord.d.ts +203 -0
- package/dist/records-v2/AgentStatusRecord.js +273 -0
- package/dist/records-v2/EmailRecord.d.ts +203 -0
- package/dist/records-v2/EmailRecord.js +252 -0
- package/dist/records-v2/ModifyServiceRequestRecord.d.ts +20 -0
- package/dist/records-v2/ModifyServiceRequestRecord.js +33 -0
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +28 -0
- package/dist/records-v2/PaymentMethodRefundRecord.js +37 -0
- package/dist/records-v2/RecontractRecord.d.ts +20 -0
- package/dist/records-v2/RecontractRecord.js +33 -0
- package/dist/records-v2/UserRecord.d.ts +20 -0
- package/dist/records-v2/UserRecord.js +33 -0
- package/dist/records-v2/index.d.ts +2 -1
- package/dist/records-v2/index.js +8 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -368,7 +368,7 @@ This SDK includes **180** entities across **12** modules.
|
|
|
368
368
|
|
|
369
369
|
## Actions
|
|
370
370
|
|
|
371
|
-
This SDK includes **
|
|
371
|
+
This SDK includes **861** actions.
|
|
372
372
|
|
|
373
373
|
### Action Types
|
|
374
374
|
|
|
@@ -1265,6 +1265,7 @@ This SDK includes **852** actions.
|
|
|
1265
1265
|
| `MovePaymentMethodRefundToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToFailed |
|
|
1266
1266
|
| `MovePaymentMethodRefundToInProgress` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToInProgress |
|
|
1267
1267
|
| `MovePaymentMethodRefundToRetrying` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Transition.MovePaymentMethodRefundToRetrying |
|
|
1268
|
+
| `UpdatePaymentMethodRefund` | UPDATE | k1.t-hEOJjsDb.BillingModule.PaymentMethodRefund.Update.UpdatePaymentMethodRefund |
|
|
1268
1269
|
|
|
1269
1270
|
**CompletePaymentMethodRefundFlow Target Stages:** `PaymentMethodRefundStageDone`
|
|
1270
1271
|
|
|
@@ -1348,6 +1349,73 @@ This SDK includes **852** actions.
|
|
|
1348
1349
|
| `UpdateCustomerCallLegOnOutboundCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallNoAnswer |
|
|
1349
1350
|
| `UpdateCustomerCallLegOnOutboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallRinging |
|
|
1350
1351
|
|
|
1352
|
+
#### Email
|
|
1353
|
+
|
|
1354
|
+
| Action | Type | Event |
|
|
1355
|
+
|--------|------|-------|
|
|
1356
|
+
| `CreateAmcoCollectionBookedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoCollectionBookedEmail |
|
|
1357
|
+
| `CreateAmcoCollectionChargeEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoCollectionChargeEmail |
|
|
1358
|
+
| `CreateAmcoCollectionCompleteEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoCollectionCompleteEmail |
|
|
1359
|
+
| `CreateAmcoCollectionReceivedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoCollectionReceivedEmail |
|
|
1360
|
+
| `CreateAmcoDispatchConfirmedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchConfirmedEmail |
|
|
1361
|
+
| `CreateAmcoDispatchDeliveredEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchDeliveredEmail |
|
|
1362
|
+
| `CreateAmcoDispatchSentEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchSentEmail |
|
|
1363
|
+
| `CreateCashbackRewardRefereeFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereeFailedEmail |
|
|
1364
|
+
| `CreateCashbackRewardRefereePendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereePendingEmail |
|
|
1365
|
+
| `CreateCashbackRewardRefereeSuccessEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereeSuccessEmail |
|
|
1366
|
+
| `CreateCashbackRewardReferrerFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardReferrerFailedEmail |
|
|
1367
|
+
| `CreateCashbackRewardReferrerPendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardReferrerPendingEmail |
|
|
1368
|
+
| `CreateCashbackRewardReferrerSuccessEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardReferrerSuccessEmail |
|
|
1369
|
+
| `CreateCboEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCboEmail |
|
|
1370
|
+
| `CreateFailedInvoicePayment` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateFailedInvoicePayment |
|
|
1371
|
+
| `CreateGenericRemediationRequired` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateGenericRemediationRequired |
|
|
1372
|
+
| `CreateInboundSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail |
|
|
1373
|
+
| `CreateNewCreditNote` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateNewCreditNote |
|
|
1374
|
+
| `CreateNewInvoice` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateNewInvoice |
|
|
1375
|
+
| `CreateOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation |
|
|
1376
|
+
| `CreateOrderPreviousConnectionEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderPreviousConnectionEmail |
|
|
1377
|
+
| `CreateOrderReferralRefereeCancelledEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereeCancelledEmail |
|
|
1378
|
+
| `CreateOrderReferralRefereeNotQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereeNotQualifiedEmail |
|
|
1379
|
+
| `CreateOrderReferralRefereePendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereePendingEmail |
|
|
1380
|
+
| `CreateOrderReferralRefereeQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereeQualifiedEmail |
|
|
1381
|
+
| `CreateOrderReferralReferrerCancelledEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerCancelledEmail |
|
|
1382
|
+
| `CreateOrderReferralReferrerNotQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerNotQualifiedEmail |
|
|
1383
|
+
| `CreateOrderReferralReferrerPendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerPendingEmail |
|
|
1384
|
+
| `CreateOrderReferralReferrerQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerQualifiedEmail |
|
|
1385
|
+
| `CreateOtsGainingCancellationIssue` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingCancellationIssue |
|
|
1386
|
+
| `CreateOtsGainingSwitchComplete` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingSwitchComplete |
|
|
1387
|
+
| `CreateOtsLosingSwitchConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsLosingSwitchConfirmation |
|
|
1388
|
+
| `CreateOtsLosingSwitchImpact` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsLosingSwitchImpact |
|
|
1389
|
+
| `CreateOtsSwitchLosingCompleteConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsSwitchLosingCompleteConfirmation |
|
|
1390
|
+
| `CreateOutageEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateOutageEmail |
|
|
1391
|
+
| `CreateOutboundSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateOutboundSupportEmail |
|
|
1392
|
+
| `CreatePaymentFailureNoMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePaymentFailureNoMandate |
|
|
1393
|
+
| `CreatePaymentRequest` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePaymentRequest |
|
|
1394
|
+
| `CreatePortalSignup` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePortalSignup |
|
|
1395
|
+
| `CreatePreContractOrderSummary` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePreContractOrderSummary |
|
|
1396
|
+
| `CreateRecontractOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractOrderConfirmation |
|
|
1397
|
+
| `CreateRecontractReminderEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractReminderEmail |
|
|
1398
|
+
| `CreateServiceAppointmentConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceAppointmentConfirmation |
|
|
1399
|
+
| `CreateServiceAppointmentRescheduled` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceAppointmentRescheduled |
|
|
1400
|
+
| `CreateServiceDeactivatedMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceDeactivatedMandate |
|
|
1401
|
+
| `CreateServiceDeactivatedNoMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceDeactivatedNoMandate |
|
|
1402
|
+
| `CreateServiceVisitCancelled` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceVisitCancelled |
|
|
1403
|
+
| `CreateTransactionConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation |
|
|
1404
|
+
| `CreateTransactionalEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionalEmail |
|
|
1405
|
+
| `CreateWorkOrderCancelledConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderCancelledConfirmation |
|
|
1406
|
+
| `CreateWorkOrderCancelledNoMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderCancelledNoMandate |
|
|
1407
|
+
| `CreateWorkOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderConfirmation |
|
|
1408
|
+
| `CreateWorkOrderInstallRescheduledConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderInstallRescheduledConfirmation |
|
|
1409
|
+
| `SendDirectDebitCreatedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitCreatedEmail |
|
|
1410
|
+
| `SendDirectDebitFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail |
|
|
1411
|
+
| `SendDirectDebitSetupConfirmationEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupConfirmationEmail |
|
|
1412
|
+
| `SendDirectDebitSetupRequest` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest |
|
|
1413
|
+
| `SendRefundTransactionEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendRefundTransactionEmail |
|
|
1414
|
+
| `SendTlosNinjaCaseEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendTlosNinjaCaseEmail |
|
|
1415
|
+
| `UpdateEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateEmail |
|
|
1416
|
+
| `UpdateSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateSupportEmail |
|
|
1417
|
+
| `UpdateTransactionalEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateTransactionalEmail |
|
|
1418
|
+
|
|
1351
1419
|
#### Appointment
|
|
1352
1420
|
|
|
1353
1421
|
| Action | Type | Event |
|
|
@@ -1449,66 +1517,6 @@ This SDK includes **852** actions.
|
|
|
1449
1517
|
|
|
1450
1518
|
**MoveCashbackRewardToFailed Target Stages:** `CashBackFlowStageFailed`
|
|
1451
1519
|
|
|
1452
|
-
#### Email
|
|
1453
|
-
|
|
1454
|
-
| Action | Type | Event |
|
|
1455
|
-
|--------|------|-------|
|
|
1456
|
-
| `CreateCashbackRewardRefereeFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereeFailedEmail |
|
|
1457
|
-
| `CreateCashbackRewardRefereePendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereePendingEmail |
|
|
1458
|
-
| `CreateCashbackRewardRefereeSuccessEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereeSuccessEmail |
|
|
1459
|
-
| `CreateCashbackRewardReferrerFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardReferrerFailedEmail |
|
|
1460
|
-
| `CreateCashbackRewardReferrerPendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardReferrerPendingEmail |
|
|
1461
|
-
| `CreateCashbackRewardReferrerSuccessEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardReferrerSuccessEmail |
|
|
1462
|
-
| `CreateCboEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCboEmail |
|
|
1463
|
-
| `CreateFailedInvoicePayment` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateFailedInvoicePayment |
|
|
1464
|
-
| `CreateGenericRemediationRequired` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateGenericRemediationRequired |
|
|
1465
|
-
| `CreateInboundSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail |
|
|
1466
|
-
| `CreateNewCreditNote` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateNewCreditNote |
|
|
1467
|
-
| `CreateNewInvoice` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateNewInvoice |
|
|
1468
|
-
| `CreateOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation |
|
|
1469
|
-
| `CreateOrderPreviousConnectionEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderPreviousConnectionEmail |
|
|
1470
|
-
| `CreateOrderReferralRefereeCancelledEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereeCancelledEmail |
|
|
1471
|
-
| `CreateOrderReferralRefereeNotQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereeNotQualifiedEmail |
|
|
1472
|
-
| `CreateOrderReferralRefereePendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereePendingEmail |
|
|
1473
|
-
| `CreateOrderReferralRefereeQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralRefereeQualifiedEmail |
|
|
1474
|
-
| `CreateOrderReferralReferrerCancelledEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerCancelledEmail |
|
|
1475
|
-
| `CreateOrderReferralReferrerNotQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerNotQualifiedEmail |
|
|
1476
|
-
| `CreateOrderReferralReferrerPendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerPendingEmail |
|
|
1477
|
-
| `CreateOrderReferralReferrerQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerQualifiedEmail |
|
|
1478
|
-
| `CreateOtsGainingCancellationIssue` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingCancellationIssue |
|
|
1479
|
-
| `CreateOtsGainingSwitchComplete` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsGainingSwitchComplete |
|
|
1480
|
-
| `CreateOtsLosingSwitchConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsLosingSwitchConfirmation |
|
|
1481
|
-
| `CreateOtsLosingSwitchImpact` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsLosingSwitchImpact |
|
|
1482
|
-
| `CreateOtsSwitchLosingCompleteConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOtsSwitchLosingCompleteConfirmation |
|
|
1483
|
-
| `CreateOutageEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateOutageEmail |
|
|
1484
|
-
| `CreateOutboundSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateOutboundSupportEmail |
|
|
1485
|
-
| `CreatePaymentFailureNoMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePaymentFailureNoMandate |
|
|
1486
|
-
| `CreatePaymentRequest` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePaymentRequest |
|
|
1487
|
-
| `CreatePortalSignup` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePortalSignup |
|
|
1488
|
-
| `CreatePreContractOrderSummary` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePreContractOrderSummary |
|
|
1489
|
-
| `CreateRecontractOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractOrderConfirmation |
|
|
1490
|
-
| `CreateRecontractReminderEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractReminderEmail |
|
|
1491
|
-
| `CreateServiceAppointmentConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceAppointmentConfirmation |
|
|
1492
|
-
| `CreateServiceAppointmentRescheduled` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceAppointmentRescheduled |
|
|
1493
|
-
| `CreateServiceDeactivatedMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceDeactivatedMandate |
|
|
1494
|
-
| `CreateServiceDeactivatedNoMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceDeactivatedNoMandate |
|
|
1495
|
-
| `CreateServiceVisitCancelled` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceVisitCancelled |
|
|
1496
|
-
| `CreateTransactionConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation |
|
|
1497
|
-
| `CreateTransactionalEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionalEmail |
|
|
1498
|
-
| `CreateWorkOrderCancelledConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderCancelledConfirmation |
|
|
1499
|
-
| `CreateWorkOrderCancelledNoMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderCancelledNoMandate |
|
|
1500
|
-
| `CreateWorkOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderConfirmation |
|
|
1501
|
-
| `CreateWorkOrderInstallRescheduledConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateWorkOrderInstallRescheduledConfirmation |
|
|
1502
|
-
| `SendDirectDebitCreatedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitCreatedEmail |
|
|
1503
|
-
| `SendDirectDebitFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail |
|
|
1504
|
-
| `SendDirectDebitSetupConfirmationEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupConfirmationEmail |
|
|
1505
|
-
| `SendDirectDebitSetupRequest` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest |
|
|
1506
|
-
| `SendRefundTransactionEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendRefundTransactionEmail |
|
|
1507
|
-
| `SendTlosNinjaCaseEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendTlosNinjaCaseEmail |
|
|
1508
|
-
| `UpdateEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateEmail |
|
|
1509
|
-
| `UpdateSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateSupportEmail |
|
|
1510
|
-
| `UpdateTransactionalEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateTransactionalEmail |
|
|
1511
|
-
|
|
1512
1520
|
#### OrderKci
|
|
1513
1521
|
|
|
1514
1522
|
| Action | Type | Event |
|
|
@@ -2327,6 +2335,12 @@ This SDK includes **852** actions.
|
|
|
2327
2335
|
| `ScheduleSlotCreate` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ScheduleSlot.Create.ScheduleSlotCreate |
|
|
2328
2336
|
| `ScheduleSlotUpdate` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.ScheduleSlot.Update.ScheduleSlotUpdate |
|
|
2329
2337
|
|
|
2338
|
+
#### AgentStatus
|
|
2339
|
+
|
|
2340
|
+
| Action | Type | Event |
|
|
2341
|
+
|--------|------|-------|
|
|
2342
|
+
| `UpdateAgentStatus` | UPDATE | k1.t-hEOJjsDb.SupportModule.AgentStatus.Update.UpdateAgentStatus |
|
|
2343
|
+
|
|
2330
2344
|
#### NotificationTemplate
|
|
2331
2345
|
|
|
2332
2346
|
| Action | Type | Event |
|
package/dist/EntityRegistry.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { ActivityLogAccessor } from './accessors-v2/ActivityLogAccessor';
|
|
|
18
18
|
import { AddressAccessor } from './accessors-v2/AddressAccessor';
|
|
19
19
|
import { AddressInteractionAccessor } from './accessors-v2/AddressInteractionAccessor';
|
|
20
20
|
import { AffiliateCodeAccessor } from './accessors-v2/AffiliateCodeAccessor';
|
|
21
|
+
import { AgentStatusAccessor } from './accessors-v2/AgentStatusAccessor';
|
|
21
22
|
import { AppointmentAccessor } from './accessors-v2/AppointmentAccessor';
|
|
22
23
|
import { BillingAdjustmentAccessor } from './accessors-v2/BillingAdjustmentAccessor';
|
|
23
24
|
import { BillingRequestAccessor } from './accessors-v2/BillingRequestAccessor';
|
|
@@ -138,6 +139,7 @@ export declare const EntityRegistry: {
|
|
|
138
139
|
readonly Address: typeof AddressAccessor;
|
|
139
140
|
readonly AddressInteraction: typeof AddressInteractionAccessor;
|
|
140
141
|
readonly AffiliateCode: typeof AffiliateCodeAccessor;
|
|
142
|
+
readonly AgentStatus: typeof AgentStatusAccessor;
|
|
141
143
|
readonly Appointment: typeof AppointmentAccessor;
|
|
142
144
|
readonly BillingAdjustment: typeof BillingAdjustmentAccessor;
|
|
143
145
|
readonly BillingRequest: typeof BillingRequestAccessor;
|
package/dist/EntityRegistry.js
CHANGED
|
@@ -21,6 +21,7 @@ const ActivityLogAccessor_1 = require("./accessors-v2/ActivityLogAccessor");
|
|
|
21
21
|
const AddressAccessor_1 = require("./accessors-v2/AddressAccessor");
|
|
22
22
|
const AddressInteractionAccessor_1 = require("./accessors-v2/AddressInteractionAccessor");
|
|
23
23
|
const AffiliateCodeAccessor_1 = require("./accessors-v2/AffiliateCodeAccessor");
|
|
24
|
+
const AgentStatusAccessor_1 = require("./accessors-v2/AgentStatusAccessor");
|
|
24
25
|
const AppointmentAccessor_1 = require("./accessors-v2/AppointmentAccessor");
|
|
25
26
|
const BillingAdjustmentAccessor_1 = require("./accessors-v2/BillingAdjustmentAccessor");
|
|
26
27
|
const BillingRequestAccessor_1 = require("./accessors-v2/BillingRequestAccessor");
|
|
@@ -141,6 +142,7 @@ exports.EntityRegistry = {
|
|
|
141
142
|
'Address': AddressAccessor_1.AddressAccessor,
|
|
142
143
|
'AddressInteraction': AddressInteractionAccessor_1.AddressInteractionAccessor,
|
|
143
144
|
'AffiliateCode': AffiliateCodeAccessor_1.AffiliateCodeAccessor,
|
|
145
|
+
'AgentStatus': AgentStatusAccessor_1.AgentStatusAccessor,
|
|
144
146
|
'Appointment': AppointmentAccessor_1.AppointmentAccessor,
|
|
145
147
|
'BillingAdjustment': BillingAdjustmentAccessor_1.BillingAdjustmentAccessor,
|
|
146
148
|
'BillingRequest': BillingRequestAccessor_1.BillingRequestAccessor,
|
package/dist/OdinApiClient.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { ActivityLogAccessor } from './accessors-v2/ActivityLogAccessor';
|
|
|
28
28
|
import { AddressAccessor } from './accessors-v2/AddressAccessor';
|
|
29
29
|
import { AddressInteractionAccessor } from './accessors-v2/AddressInteractionAccessor';
|
|
30
30
|
import { AffiliateCodeAccessor } from './accessors-v2/AffiliateCodeAccessor';
|
|
31
|
+
import { AgentStatusAccessor } from './accessors-v2/AgentStatusAccessor';
|
|
31
32
|
import { AppointmentAccessor } from './accessors-v2/AppointmentAccessor';
|
|
32
33
|
import { BillingAdjustmentAccessor } from './accessors-v2/BillingAdjustmentAccessor';
|
|
33
34
|
import { BillingRequestAccessor } from './accessors-v2/BillingRequestAccessor';
|
|
@@ -157,6 +158,7 @@ export declare class OdinApiClient {
|
|
|
157
158
|
private _addresses?;
|
|
158
159
|
private _addressInteractions?;
|
|
159
160
|
private _affiliateCodes?;
|
|
161
|
+
private _agentStatuses?;
|
|
160
162
|
private _appointments?;
|
|
161
163
|
private _billingAdjustments?;
|
|
162
164
|
private _billingRequests?;
|
|
@@ -294,6 +296,8 @@ export declare class OdinApiClient {
|
|
|
294
296
|
get addressInteractions(): AddressInteractionAccessor;
|
|
295
297
|
/** Access AffiliateCode records */
|
|
296
298
|
get affiliateCodes(): AffiliateCodeAccessor;
|
|
299
|
+
/** Access AgentStatus records */
|
|
300
|
+
get agentStatuses(): AgentStatusAccessor;
|
|
297
301
|
/** Access Appointment records */
|
|
298
302
|
get appointments(): AppointmentAccessor;
|
|
299
303
|
/** Access BillingAdjustment records */
|
package/dist/OdinApiClient.js
CHANGED
|
@@ -39,6 +39,7 @@ const ActivityLogAccessor_1 = require("./accessors-v2/ActivityLogAccessor");
|
|
|
39
39
|
const AddressAccessor_1 = require("./accessors-v2/AddressAccessor");
|
|
40
40
|
const AddressInteractionAccessor_1 = require("./accessors-v2/AddressInteractionAccessor");
|
|
41
41
|
const AffiliateCodeAccessor_1 = require("./accessors-v2/AffiliateCodeAccessor");
|
|
42
|
+
const AgentStatusAccessor_1 = require("./accessors-v2/AgentStatusAccessor");
|
|
42
43
|
const AppointmentAccessor_1 = require("./accessors-v2/AppointmentAccessor");
|
|
43
44
|
const BillingAdjustmentAccessor_1 = require("./accessors-v2/BillingAdjustmentAccessor");
|
|
44
45
|
const BillingRequestAccessor_1 = require("./accessors-v2/BillingRequestAccessor");
|
|
@@ -228,6 +229,13 @@ class OdinApiClient {
|
|
|
228
229
|
}
|
|
229
230
|
return this._affiliateCodes;
|
|
230
231
|
}
|
|
232
|
+
/** Access AgentStatus records */
|
|
233
|
+
get agentStatuses() {
|
|
234
|
+
if (!this._agentStatuses) {
|
|
235
|
+
this._agentStatuses = new AgentStatusAccessor_1.AgentStatusAccessor(this._provider);
|
|
236
|
+
}
|
|
237
|
+
return this._agentStatuses;
|
|
238
|
+
}
|
|
231
239
|
/** Access Appointment records */
|
|
232
240
|
get appointments() {
|
|
233
241
|
if (!this._appointments) {
|
package/dist/OdinDbClient.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { ActivityLogDbAccessor } from './db-accessors-v2/ActivityLogDbAccessor';
|
|
|
35
35
|
import { AddressDbAccessor } from './db-accessors-v2/AddressDbAccessor';
|
|
36
36
|
import { AddressInteractionDbAccessor } from './db-accessors-v2/AddressInteractionDbAccessor';
|
|
37
37
|
import { AffiliateCodeDbAccessor } from './db-accessors-v2/AffiliateCodeDbAccessor';
|
|
38
|
+
import { AgentStatusDbAccessor } from './db-accessors-v2/AgentStatusDbAccessor';
|
|
38
39
|
import { AppointmentDbAccessor } from './db-accessors-v2/AppointmentDbAccessor';
|
|
39
40
|
import { BillingAdjustmentDbAccessor } from './db-accessors-v2/BillingAdjustmentDbAccessor';
|
|
40
41
|
import { BillingRequestDbAccessor } from './db-accessors-v2/BillingRequestDbAccessor';
|
|
@@ -158,6 +159,7 @@ export declare class OdinDbClient {
|
|
|
158
159
|
private _addresses?;
|
|
159
160
|
private _addressInteractions?;
|
|
160
161
|
private _affiliateCodes?;
|
|
162
|
+
private _agentStatuses?;
|
|
161
163
|
private _appointments?;
|
|
162
164
|
private _billingAdjustments?;
|
|
163
165
|
private _billingRequests?;
|
|
@@ -304,6 +306,8 @@ export declare class OdinDbClient {
|
|
|
304
306
|
get addressInteractions(): AddressInteractionDbAccessor;
|
|
305
307
|
/** Access AffiliateCode records */
|
|
306
308
|
get affiliateCodes(): AffiliateCodeDbAccessor;
|
|
309
|
+
/** Access AgentStatus records */
|
|
310
|
+
get agentStatuses(): AgentStatusDbAccessor;
|
|
307
311
|
/** Access Appointment records */
|
|
308
312
|
get appointments(): AppointmentDbAccessor;
|
|
309
313
|
/** Access BillingAdjustment records */
|
package/dist/OdinDbClient.js
CHANGED
|
@@ -37,6 +37,7 @@ const ActivityLogDbAccessor_1 = require("./db-accessors-v2/ActivityLogDbAccessor
|
|
|
37
37
|
const AddressDbAccessor_1 = require("./db-accessors-v2/AddressDbAccessor");
|
|
38
38
|
const AddressInteractionDbAccessor_1 = require("./db-accessors-v2/AddressInteractionDbAccessor");
|
|
39
39
|
const AffiliateCodeDbAccessor_1 = require("./db-accessors-v2/AffiliateCodeDbAccessor");
|
|
40
|
+
const AgentStatusDbAccessor_1 = require("./db-accessors-v2/AgentStatusDbAccessor");
|
|
40
41
|
const AppointmentDbAccessor_1 = require("./db-accessors-v2/AppointmentDbAccessor");
|
|
41
42
|
const BillingAdjustmentDbAccessor_1 = require("./db-accessors-v2/BillingAdjustmentDbAccessor");
|
|
42
43
|
const BillingRequestDbAccessor_1 = require("./db-accessors-v2/BillingRequestDbAccessor");
|
|
@@ -229,6 +230,13 @@ class OdinDbClient {
|
|
|
229
230
|
}
|
|
230
231
|
return this._affiliateCodes;
|
|
231
232
|
}
|
|
233
|
+
/** Access AgentStatus records */
|
|
234
|
+
get agentStatuses() {
|
|
235
|
+
if (!this._agentStatuses) {
|
|
236
|
+
this._agentStatuses = new AgentStatusDbAccessor_1.AgentStatusDbAccessor(this._principal, this._dbService, this._defaultOptions);
|
|
237
|
+
}
|
|
238
|
+
return this._agentStatuses;
|
|
239
|
+
}
|
|
232
240
|
/** Access Appointment records */
|
|
233
241
|
get appointments() {
|
|
234
242
|
if (!this._appointments) {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentStatus Accessor
|
|
3
|
+
*
|
|
4
|
+
* Provides typed access to AgentStatus 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.updateAgentStatus({ ... });
|
|
12
|
+
*
|
|
13
|
+
* // Create new record
|
|
14
|
+
* const newRecord = accessor.new();
|
|
15
|
+
* await newRecord.createAgentStatus({ ... });
|
|
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 { AgentStatusProperties } from '../entities-v2/AgentStatus';
|
|
25
|
+
import { AgentStatusRecord } from '../records-v2/AgentStatusRecord';
|
|
26
|
+
/** List response with wrapped records */
|
|
27
|
+
export interface AgentStatusListResponse {
|
|
28
|
+
data: AgentStatusRecord[];
|
|
29
|
+
hasMore: boolean;
|
|
30
|
+
totalRecords: number;
|
|
31
|
+
}
|
|
32
|
+
/** Search response with wrapped records */
|
|
33
|
+
export interface AgentStatusSearchResponse {
|
|
34
|
+
records: AgentStatusRecord[];
|
|
35
|
+
totalRecords: number;
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class AgentStatusAccessor {
|
|
39
|
+
private readonly _provider;
|
|
40
|
+
private readonly _moduleName;
|
|
41
|
+
private readonly _entityName;
|
|
42
|
+
constructor(provider: ApiProvider);
|
|
43
|
+
constructor(authParams: OauthParams);
|
|
44
|
+
constructor(authToken: string, host?: string);
|
|
45
|
+
get moduleName(): string;
|
|
46
|
+
get entityName(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Create a new empty AgentStatus record instance for create operations.
|
|
49
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
50
|
+
*
|
|
51
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
52
|
+
* @returns A new record wrapper with pre-generated ID
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* // Auto-generated ID
|
|
57
|
+
* const note = odinClient.notes.new();
|
|
58
|
+
* console.log(note.id); // UUID available immediately
|
|
59
|
+
*
|
|
60
|
+
* // Custom ID
|
|
61
|
+
* const order = odinClient.orders.new("custom-id-123");
|
|
62
|
+
*
|
|
63
|
+
* // Reference ID before save
|
|
64
|
+
* const account = odinClient.accounts.new();
|
|
65
|
+
* const contact = odinClient.contacts.new();
|
|
66
|
+
* await contact
|
|
67
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
68
|
+
* .createContact({ FirstName: "John" });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
new(id?: string): AgentStatusRecord;
|
|
72
|
+
/**
|
|
73
|
+
* Get a single AgentStatus record by ID
|
|
74
|
+
*/
|
|
75
|
+
get(id: string): Promise<AgentStatusRecord>;
|
|
76
|
+
/**
|
|
77
|
+
* Get multiple AgentStatus records by IDs
|
|
78
|
+
*/
|
|
79
|
+
getMany(ids: string[]): Promise<AgentStatusRecord[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Search AgentStatus records
|
|
82
|
+
*/
|
|
83
|
+
search(params: Partial<OdinSearchV2>): Promise<AgentStatusSearchResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Search all AgentStatus records with automatic pagination
|
|
86
|
+
*/
|
|
87
|
+
searchAll(params: Partial<OdinSearchV2>): Promise<AgentStatusRecord[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Async generator for paginating through all matching records.
|
|
90
|
+
* Yields batches of wrapped records.
|
|
91
|
+
*/
|
|
92
|
+
paginate(params: Partial<OdinSearchV2>): AsyncGenerator<AgentStatusRecord[]>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a fluent query builder for AgentStatus records
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const results = await accessor
|
|
99
|
+
* .query()
|
|
100
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
101
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
102
|
+
* .select('id', 'title', 'properties.*')
|
|
103
|
+
* .sortBy('createdAt', 'desc')
|
|
104
|
+
* .limit(100)
|
|
105
|
+
* .execute();
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
query(): QueryBuilder<AgentStatusProperties, AgentStatusRecord>;
|
|
109
|
+
/** Access the underlying ApiProvider */
|
|
110
|
+
get provider(): ApiProvider;
|
|
111
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* AgentStatus Accessor
|
|
4
|
+
*
|
|
5
|
+
* Provides typed access to AgentStatus 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.updateAgentStatus({ ... });
|
|
13
|
+
*
|
|
14
|
+
* // Create new record
|
|
15
|
+
* const newRecord = accessor.new();
|
|
16
|
+
* await newRecord.createAgentStatus({ ... });
|
|
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.AgentStatusAccessor = 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 AgentStatusRecord_1 = require("../records-v2/AgentStatusRecord");
|
|
47
|
+
class AgentStatusAccessor {
|
|
48
|
+
constructor(providerOrAuth, host) {
|
|
49
|
+
this._moduleName = 'SupportModule';
|
|
50
|
+
this._entityName = 'AgentStatus';
|
|
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 AgentStatus 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 AgentStatusRecord_1.AgentStatusRecord(null, this._provider, id);
|
|
94
|
+
}
|
|
95
|
+
// ============================================
|
|
96
|
+
// RECORD RETRIEVAL
|
|
97
|
+
// ============================================
|
|
98
|
+
/**
|
|
99
|
+
* Get a single AgentStatus 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 AgentStatusRecord_1.AgentStatusRecord(record, this._provider);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get multiple AgentStatus 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 AgentStatusRecord_1.AgentStatusRecord(r, this._provider));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// ============================================
|
|
119
|
+
// SEARCH OPERATIONS
|
|
120
|
+
// ============================================
|
|
121
|
+
/**
|
|
122
|
+
* Search AgentStatus 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 AgentStatusRecord_1.AgentStatusRecord(r, this._provider)),
|
|
129
|
+
totalRecords: result.totalRecords,
|
|
130
|
+
hasMore: result.hasMore,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Search all AgentStatus records with automatic pagination
|
|
136
|
+
*/
|
|
137
|
+
searchAll(params) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
|
|
140
|
+
return result.records.map((r) => new AgentStatusRecord_1.AgentStatusRecord(r, this._provider));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Async generator for paginating through all matching records.
|
|
145
|
+
* Yields batches of wrapped records.
|
|
146
|
+
*/
|
|
147
|
+
paginate(params) {
|
|
148
|
+
var _a;
|
|
149
|
+
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
150
|
+
let hasMore = true;
|
|
151
|
+
let searchAfter;
|
|
152
|
+
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
153
|
+
while (hasMore) {
|
|
154
|
+
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
|
|
155
|
+
if (result.records.length > 0) {
|
|
156
|
+
yield yield __await(result.records.map((r) => new AgentStatusRecord_1.AgentStatusRecord(r, this._provider)));
|
|
157
|
+
const lastRecord = result.records[result.records.length - 1];
|
|
158
|
+
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
159
|
+
}
|
|
160
|
+
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
// ============================================
|
|
165
|
+
// QUERY BUILDER
|
|
166
|
+
// ============================================
|
|
167
|
+
/**
|
|
168
|
+
* Create a fluent query builder for AgentStatus records
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* const results = await accessor
|
|
173
|
+
* .query()
|
|
174
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
175
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
176
|
+
* .select('id', 'title', 'properties.*')
|
|
177
|
+
* .sortBy('createdAt', 'desc')
|
|
178
|
+
* .limit(100)
|
|
179
|
+
* .execute();
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
query() {
|
|
183
|
+
return (0, query_builder_1.createQueryBuilder)(this);
|
|
184
|
+
}
|
|
185
|
+
/** Access the underlying ApiProvider */
|
|
186
|
+
get provider() {
|
|
187
|
+
return this._provider;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.AgentStatusAccessor = AgentStatusAccessor;
|
|
@@ -13,6 +13,7 @@ export { ActivityAccessor, ActivitySearchResponse, ActivityListResponse } from '
|
|
|
13
13
|
export { AddressInteractionAccessor, AddressInteractionSearchResponse, AddressInteractionListResponse } from './AddressInteractionAccessor';
|
|
14
14
|
export { AddressAccessor, AddressSearchResponse, AddressListResponse } from './AddressAccessor';
|
|
15
15
|
export { AffiliateCodeAccessor, AffiliateCodeSearchResponse, AffiliateCodeListResponse } from './AffiliateCodeAccessor';
|
|
16
|
+
export { AgentStatusAccessor, AgentStatusSearchResponse, AgentStatusListResponse } from './AgentStatusAccessor';
|
|
16
17
|
export { AppointmentAccessor, AppointmentSearchResponse, AppointmentListResponse } from './AppointmentAccessor';
|
|
17
18
|
export { BillingAdjustmentAccessor, BillingAdjustmentSearchResponse, BillingAdjustmentListResponse } from './BillingAdjustmentAccessor';
|
|
18
19
|
export { BillingRequestAccessor, BillingRequestSearchResponse, BillingRequestListResponse } from './BillingRequestAccessor';
|