@d19n/youfibre-odin-sdk 2.0.293 → 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.
Files changed (37) hide show
  1. package/README.md +68 -61
  2. package/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.d.ts +135 -0
  3. package/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.js +59 -0
  4. package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.d.ts +135 -0
  5. package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.js +59 -0
  6. package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.d.ts +135 -0
  7. package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.js +59 -0
  8. package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.d.ts +135 -0
  9. package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.js +59 -0
  10. package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.d.ts +135 -0
  11. package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.js +59 -0
  12. package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.d.ts +135 -0
  13. package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.js +59 -0
  14. package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.d.ts +135 -0
  15. package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.js +59 -0
  16. package/dist/api-sdk-v2/ModifyServiceRequestApi.d.ts +2 -0
  17. package/dist/api-sdk-v2/ModifyServiceRequestApi.js +6 -0
  18. package/dist/api-sdk-v2/RecontractApi.d.ts +2 -0
  19. package/dist/api-sdk-v2/RecontractApi.js +6 -0
  20. package/dist/db-sdk-v2/ModifyServiceRequestDb.d.ts +2 -0
  21. package/dist/db-sdk-v2/ModifyServiceRequestDb.js +6 -0
  22. package/dist/db-sdk-v2/RecontractDb.d.ts +2 -0
  23. package/dist/db-sdk-v2/RecontractDb.js +6 -0
  24. package/dist/entities-v2/Contact.d.ts +8 -0
  25. package/dist/entities-v2/Contact.js +2 -0
  26. package/dist/entities-v2/ModifyServiceRequest.d.ts +3 -0
  27. package/dist/entities-v2/Recontract.d.ts +31 -0
  28. package/dist/entities-v2/Recontract.js +23 -1
  29. package/dist/records-v2/EmailRecord.d.ts +203 -0
  30. package/dist/records-v2/EmailRecord.js +252 -0
  31. package/dist/records-v2/ModifyServiceRequestRecord.d.ts +20 -0
  32. package/dist/records-v2/ModifyServiceRequestRecord.js +33 -0
  33. package/dist/records-v2/RecontractRecord.d.ts +20 -0
  34. package/dist/records-v2/RecontractRecord.js +33 -0
  35. package/dist/records-v2/index.d.ts +1 -1
  36. package/dist/records-v2/index.js +4 -4
  37. package/package.json +1 -1
@@ -23,6 +23,13 @@ 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 { EmailProperties, ReferralEmailProperties, SupportEmailProperties, TransactionalEmailProperties } from '../entities-v2/Email';
26
+ import { CreateAmcoCollectionBookedEmailProperties } from '../actions-v2/CreateAmcoCollectionBookedEmailDto';
27
+ import { CreateAmcoCollectionChargeEmailProperties } from '../actions-v2/CreateAmcoCollectionChargeEmailDto';
28
+ import { CreateAmcoCollectionCompleteEmailProperties } from '../actions-v2/CreateAmcoCollectionCompleteEmailDto';
29
+ import { CreateAmcoCollectionReceivedEmailProperties } from '../actions-v2/CreateAmcoCollectionReceivedEmailDto';
30
+ import { CreateAmcoDispatchConfirmedEmailProperties } from '../actions-v2/CreateAmcoDispatchConfirmedEmailDto';
31
+ import { CreateAmcoDispatchDeliveredEmailProperties } from '../actions-v2/CreateAmcoDispatchDeliveredEmailDto';
32
+ import { CreateAmcoDispatchSentEmailProperties } from '../actions-v2/CreateAmcoDispatchSentEmailDto';
26
33
  import { CreateCashbackRewardRefereeFailedEmailProperties } from '../actions-v2/CreateCashbackRewardRefereeFailedEmailDto';
27
34
  import { CreateCashbackRewardRefereePendingEmailProperties } from '../actions-v2/CreateCashbackRewardRefereePendingEmailDto';
28
35
  import { CreateCashbackRewardRefereeSuccessEmailProperties } from '../actions-v2/CreateCashbackRewardRefereeSuccessEmailDto';
@@ -412,6 +419,202 @@ export declare class EmailRecord<TProps = EmailProperties> {
412
419
  unlink(target: OdinRecord<any> | {
413
420
  id: string;
414
421
  } | string): Promise<void>;
422
+ /**
423
+ * CreateAmcoCollectionBookedEmail
424
+ *
425
+ * Creates a new Email record with the specified properties.
426
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
427
+ *
428
+ * @remarks Record type: TRANSACTIONAL
429
+ *
430
+ * @param properties - The properties for the new record
431
+ * @param options - Optional settings
432
+ * @param options.journeyId - Associate with a journey
433
+ * @param options.stageKey - Set initial pipeline stage
434
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
435
+ *
436
+ * @example
437
+ * ```typescript
438
+ * // Create with properties
439
+ * const record = odinClient.emails.new();
440
+ * await record.createAmcoCollectionBookedEmail({ ... }).execute();
441
+ *
442
+ * // Dry run (for debugging)
443
+ * const payload = record.createAmcoCollectionBookedEmail({ ... }).dryRun();
444
+ * ```
445
+ */
446
+ createAmcoCollectionBookedEmail(properties?: CreateAmcoCollectionBookedEmailProperties, options?: {
447
+ journeyId?: string;
448
+ stageKey?: string;
449
+ }): ActionBuilder;
450
+ /**
451
+ * CreateAmcoCollectionChargeEmail
452
+ *
453
+ * Creates a new Email record with the specified properties.
454
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
455
+ *
456
+ * @remarks Record type: TRANSACTIONAL
457
+ *
458
+ * @param properties - The properties for the new record
459
+ * @param options - Optional settings
460
+ * @param options.journeyId - Associate with a journey
461
+ * @param options.stageKey - Set initial pipeline stage
462
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
463
+ *
464
+ * @example
465
+ * ```typescript
466
+ * // Create with properties
467
+ * const record = odinClient.emails.new();
468
+ * await record.createAmcoCollectionChargeEmail({ ... }).execute();
469
+ *
470
+ * // Dry run (for debugging)
471
+ * const payload = record.createAmcoCollectionChargeEmail({ ... }).dryRun();
472
+ * ```
473
+ */
474
+ createAmcoCollectionChargeEmail(properties?: CreateAmcoCollectionChargeEmailProperties, options?: {
475
+ journeyId?: string;
476
+ stageKey?: string;
477
+ }): ActionBuilder;
478
+ /**
479
+ * CreateAmcoCollectionCompleteEmail
480
+ *
481
+ * Creates a new Email record with the specified properties.
482
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
483
+ *
484
+ * @remarks Record type: TRANSACTIONAL
485
+ *
486
+ * @param properties - The properties for the new record
487
+ * @param options - Optional settings
488
+ * @param options.journeyId - Associate with a journey
489
+ * @param options.stageKey - Set initial pipeline stage
490
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
491
+ *
492
+ * @example
493
+ * ```typescript
494
+ * // Create with properties
495
+ * const record = odinClient.emails.new();
496
+ * await record.createAmcoCollectionCompleteEmail({ ... }).execute();
497
+ *
498
+ * // Dry run (for debugging)
499
+ * const payload = record.createAmcoCollectionCompleteEmail({ ... }).dryRun();
500
+ * ```
501
+ */
502
+ createAmcoCollectionCompleteEmail(properties?: CreateAmcoCollectionCompleteEmailProperties, options?: {
503
+ journeyId?: string;
504
+ stageKey?: string;
505
+ }): ActionBuilder;
506
+ /**
507
+ * CreateAmcoCollectionReceivedEmail
508
+ *
509
+ * Creates a new Email record with the specified properties.
510
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
511
+ *
512
+ * @remarks Record type: TRANSACTIONAL
513
+ *
514
+ * @param properties - The properties for the new record
515
+ * @param options - Optional settings
516
+ * @param options.journeyId - Associate with a journey
517
+ * @param options.stageKey - Set initial pipeline stage
518
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
519
+ *
520
+ * @example
521
+ * ```typescript
522
+ * // Create with properties
523
+ * const record = odinClient.emails.new();
524
+ * await record.createAmcoCollectionReceivedEmail({ ... }).execute();
525
+ *
526
+ * // Dry run (for debugging)
527
+ * const payload = record.createAmcoCollectionReceivedEmail({ ... }).dryRun();
528
+ * ```
529
+ */
530
+ createAmcoCollectionReceivedEmail(properties?: CreateAmcoCollectionReceivedEmailProperties, options?: {
531
+ journeyId?: string;
532
+ stageKey?: string;
533
+ }): ActionBuilder;
534
+ /**
535
+ * CreateAmcoDispatchConfirmedEmail
536
+ *
537
+ * Creates a new Email record with the specified properties.
538
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
539
+ *
540
+ * @remarks Record type: TRANSACTIONAL
541
+ *
542
+ * @param properties - The properties for the new record
543
+ * @param options - Optional settings
544
+ * @param options.journeyId - Associate with a journey
545
+ * @param options.stageKey - Set initial pipeline stage
546
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
547
+ *
548
+ * @example
549
+ * ```typescript
550
+ * // Create with properties
551
+ * const record = odinClient.emails.new();
552
+ * await record.createAmcoDispatchConfirmedEmail({ ... }).execute();
553
+ *
554
+ * // Dry run (for debugging)
555
+ * const payload = record.createAmcoDispatchConfirmedEmail({ ... }).dryRun();
556
+ * ```
557
+ */
558
+ createAmcoDispatchConfirmedEmail(properties?: CreateAmcoDispatchConfirmedEmailProperties, options?: {
559
+ journeyId?: string;
560
+ stageKey?: string;
561
+ }): ActionBuilder;
562
+ /**
563
+ * CreateAmcoDispatchDeliveredEmail
564
+ *
565
+ * Creates a new Email record with the specified properties.
566
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
567
+ *
568
+ * @remarks Record type: TRANSACTIONAL
569
+ *
570
+ * @param properties - The properties for the new record
571
+ * @param options - Optional settings
572
+ * @param options.journeyId - Associate with a journey
573
+ * @param options.stageKey - Set initial pipeline stage
574
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
575
+ *
576
+ * @example
577
+ * ```typescript
578
+ * // Create with properties
579
+ * const record = odinClient.emails.new();
580
+ * await record.createAmcoDispatchDeliveredEmail({ ... }).execute();
581
+ *
582
+ * // Dry run (for debugging)
583
+ * const payload = record.createAmcoDispatchDeliveredEmail({ ... }).dryRun();
584
+ * ```
585
+ */
586
+ createAmcoDispatchDeliveredEmail(properties?: CreateAmcoDispatchDeliveredEmailProperties, options?: {
587
+ journeyId?: string;
588
+ stageKey?: string;
589
+ }): ActionBuilder;
590
+ /**
591
+ * CreateAmcoDispatchSentEmail
592
+ *
593
+ * Creates a new Email record with the specified properties.
594
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
595
+ *
596
+ * @remarks Record type: TRANSACTIONAL
597
+ *
598
+ * @param properties - The properties for the new record
599
+ * @param options - Optional settings
600
+ * @param options.journeyId - Associate with a journey
601
+ * @param options.stageKey - Set initial pipeline stage
602
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
603
+ *
604
+ * @example
605
+ * ```typescript
606
+ * // Create with properties
607
+ * const record = odinClient.emails.new();
608
+ * await record.createAmcoDispatchSentEmail({ ... }).execute();
609
+ *
610
+ * // Dry run (for debugging)
611
+ * const payload = record.createAmcoDispatchSentEmail({ ... }).dryRun();
612
+ * ```
613
+ */
614
+ createAmcoDispatchSentEmail(properties?: CreateAmcoDispatchSentEmailProperties, options?: {
615
+ journeyId?: string;
616
+ stageKey?: string;
617
+ }): ActionBuilder;
415
618
  /**
416
619
  * CreateCashbackRewardRefereeFailedEmail
417
620
  *
@@ -494,6 +494,258 @@ class EmailRecord {
494
494
  // ============================================
495
495
  // CREATE ACTIONS (no existing record required)
496
496
  // ============================================
497
+ /**
498
+ * CreateAmcoCollectionBookedEmail
499
+ *
500
+ * Creates a new Email record with the specified properties.
501
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
502
+ *
503
+ * @remarks Record type: TRANSACTIONAL
504
+ *
505
+ * @param properties - The properties for the new record
506
+ * @param options - Optional settings
507
+ * @param options.journeyId - Associate with a journey
508
+ * @param options.stageKey - Set initial pipeline stage
509
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
510
+ *
511
+ * @example
512
+ * ```typescript
513
+ * // Create with properties
514
+ * const record = odinClient.emails.new();
515
+ * await record.createAmcoCollectionBookedEmail({ ... }).execute();
516
+ *
517
+ * // Dry run (for debugging)
518
+ * const payload = record.createAmcoCollectionBookedEmail({ ... }).dryRun();
519
+ * ```
520
+ */
521
+ createAmcoCollectionBookedEmail(properties, options) {
522
+ const payload = {
523
+ entity: 'NotificationModule:Email',
524
+ type: 'TRANSACTIONAL',
525
+ actionName: 'CreateAmcoCollectionBookedEmail',
526
+ properties: properties || {},
527
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
528
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
529
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
530
+ };
531
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
532
+ }
533
+ /**
534
+ * CreateAmcoCollectionChargeEmail
535
+ *
536
+ * Creates a new Email record with the specified properties.
537
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
538
+ *
539
+ * @remarks Record type: TRANSACTIONAL
540
+ *
541
+ * @param properties - The properties for the new record
542
+ * @param options - Optional settings
543
+ * @param options.journeyId - Associate with a journey
544
+ * @param options.stageKey - Set initial pipeline stage
545
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
546
+ *
547
+ * @example
548
+ * ```typescript
549
+ * // Create with properties
550
+ * const record = odinClient.emails.new();
551
+ * await record.createAmcoCollectionChargeEmail({ ... }).execute();
552
+ *
553
+ * // Dry run (for debugging)
554
+ * const payload = record.createAmcoCollectionChargeEmail({ ... }).dryRun();
555
+ * ```
556
+ */
557
+ createAmcoCollectionChargeEmail(properties, options) {
558
+ const payload = {
559
+ entity: 'NotificationModule:Email',
560
+ type: 'TRANSACTIONAL',
561
+ actionName: 'CreateAmcoCollectionChargeEmail',
562
+ properties: properties || {},
563
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
564
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
565
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
566
+ };
567
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
568
+ }
569
+ /**
570
+ * CreateAmcoCollectionCompleteEmail
571
+ *
572
+ * Creates a new Email record with the specified properties.
573
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
574
+ *
575
+ * @remarks Record type: TRANSACTIONAL
576
+ *
577
+ * @param properties - The properties for the new record
578
+ * @param options - Optional settings
579
+ * @param options.journeyId - Associate with a journey
580
+ * @param options.stageKey - Set initial pipeline stage
581
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
582
+ *
583
+ * @example
584
+ * ```typescript
585
+ * // Create with properties
586
+ * const record = odinClient.emails.new();
587
+ * await record.createAmcoCollectionCompleteEmail({ ... }).execute();
588
+ *
589
+ * // Dry run (for debugging)
590
+ * const payload = record.createAmcoCollectionCompleteEmail({ ... }).dryRun();
591
+ * ```
592
+ */
593
+ createAmcoCollectionCompleteEmail(properties, options) {
594
+ const payload = {
595
+ entity: 'NotificationModule:Email',
596
+ type: 'TRANSACTIONAL',
597
+ actionName: 'CreateAmcoCollectionCompleteEmail',
598
+ properties: properties || {},
599
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
600
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
601
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
602
+ };
603
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
604
+ }
605
+ /**
606
+ * CreateAmcoCollectionReceivedEmail
607
+ *
608
+ * Creates a new Email record with the specified properties.
609
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
610
+ *
611
+ * @remarks Record type: TRANSACTIONAL
612
+ *
613
+ * @param properties - The properties for the new record
614
+ * @param options - Optional settings
615
+ * @param options.journeyId - Associate with a journey
616
+ * @param options.stageKey - Set initial pipeline stage
617
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
618
+ *
619
+ * @example
620
+ * ```typescript
621
+ * // Create with properties
622
+ * const record = odinClient.emails.new();
623
+ * await record.createAmcoCollectionReceivedEmail({ ... }).execute();
624
+ *
625
+ * // Dry run (for debugging)
626
+ * const payload = record.createAmcoCollectionReceivedEmail({ ... }).dryRun();
627
+ * ```
628
+ */
629
+ createAmcoCollectionReceivedEmail(properties, options) {
630
+ const payload = {
631
+ entity: 'NotificationModule:Email',
632
+ type: 'TRANSACTIONAL',
633
+ actionName: 'CreateAmcoCollectionReceivedEmail',
634
+ properties: properties || {},
635
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
636
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
637
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
638
+ };
639
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
640
+ }
641
+ /**
642
+ * CreateAmcoDispatchConfirmedEmail
643
+ *
644
+ * Creates a new Email record with the specified properties.
645
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
646
+ *
647
+ * @remarks Record type: TRANSACTIONAL
648
+ *
649
+ * @param properties - The properties for the new record
650
+ * @param options - Optional settings
651
+ * @param options.journeyId - Associate with a journey
652
+ * @param options.stageKey - Set initial pipeline stage
653
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
654
+ *
655
+ * @example
656
+ * ```typescript
657
+ * // Create with properties
658
+ * const record = odinClient.emails.new();
659
+ * await record.createAmcoDispatchConfirmedEmail({ ... }).execute();
660
+ *
661
+ * // Dry run (for debugging)
662
+ * const payload = record.createAmcoDispatchConfirmedEmail({ ... }).dryRun();
663
+ * ```
664
+ */
665
+ createAmcoDispatchConfirmedEmail(properties, options) {
666
+ const payload = {
667
+ entity: 'NotificationModule:Email',
668
+ type: 'TRANSACTIONAL',
669
+ actionName: 'CreateAmcoDispatchConfirmedEmail',
670
+ properties: properties || {},
671
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
672
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
673
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
674
+ };
675
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
676
+ }
677
+ /**
678
+ * CreateAmcoDispatchDeliveredEmail
679
+ *
680
+ * Creates a new Email record with the specified properties.
681
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
682
+ *
683
+ * @remarks Record type: TRANSACTIONAL
684
+ *
685
+ * @param properties - The properties for the new record
686
+ * @param options - Optional settings
687
+ * @param options.journeyId - Associate with a journey
688
+ * @param options.stageKey - Set initial pipeline stage
689
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
690
+ *
691
+ * @example
692
+ * ```typescript
693
+ * // Create with properties
694
+ * const record = odinClient.emails.new();
695
+ * await record.createAmcoDispatchDeliveredEmail({ ... }).execute();
696
+ *
697
+ * // Dry run (for debugging)
698
+ * const payload = record.createAmcoDispatchDeliveredEmail({ ... }).dryRun();
699
+ * ```
700
+ */
701
+ createAmcoDispatchDeliveredEmail(properties, options) {
702
+ const payload = {
703
+ entity: 'NotificationModule:Email',
704
+ type: 'TRANSACTIONAL',
705
+ actionName: 'CreateAmcoDispatchDeliveredEmail',
706
+ properties: properties || {},
707
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
708
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
709
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
710
+ };
711
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
712
+ }
713
+ /**
714
+ * CreateAmcoDispatchSentEmail
715
+ *
716
+ * Creates a new Email record with the specified properties.
717
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
718
+ *
719
+ * @remarks Record type: TRANSACTIONAL
720
+ *
721
+ * @param properties - The properties for the new record
722
+ * @param options - Optional settings
723
+ * @param options.journeyId - Associate with a journey
724
+ * @param options.stageKey - Set initial pipeline stage
725
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
726
+ *
727
+ * @example
728
+ * ```typescript
729
+ * // Create with properties
730
+ * const record = odinClient.emails.new();
731
+ * await record.createAmcoDispatchSentEmail({ ... }).execute();
732
+ *
733
+ * // Dry run (for debugging)
734
+ * const payload = record.createAmcoDispatchSentEmail({ ... }).dryRun();
735
+ * ```
736
+ */
737
+ createAmcoDispatchSentEmail(properties, options) {
738
+ const payload = {
739
+ entity: 'NotificationModule:Email',
740
+ type: 'TRANSACTIONAL',
741
+ actionName: 'CreateAmcoDispatchSentEmail',
742
+ properties: properties || {},
743
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
744
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
745
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
746
+ };
747
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
748
+ }
497
749
  /**
498
750
  * CreateCashbackRewardRefereeFailedEmail
499
751
  *
@@ -27,6 +27,7 @@ import { CreateModifyServiceRequestProperties } from '../actions-v2/CreateModify
27
27
  import { UpdateModifyServiceRequestProperties } from '../actions-v2/MoveMsrToCancelledDto';
28
28
  import { OrderKciRecord } from './OrderKciRecord';
29
29
  import { OrderRecord } from './OrderRecord';
30
+ import { RecontractRecord } from './RecontractRecord';
30
31
  /** Valid entity types for ModifyServiceRequest */
31
32
  export declare type ModifyServiceRequestType = 'DEFAULT';
32
33
  /**
@@ -404,6 +405,7 @@ export declare class ModifyServiceRequestRecord<TProps = ModifyServiceRequestPro
404
405
  private _preGeneratedId;
405
406
  private _orderKcis?;
406
407
  private _orders?;
408
+ private _recontracts?;
407
409
  /**
408
410
  * Create a record wrapper.
409
411
  * @param record - The underlying record, or null for create operations
@@ -481,6 +483,24 @@ export declare class ModifyServiceRequestRecord<TProps = ModifyServiceRequestPro
481
483
  * ```
482
484
  */
483
485
  get orders(): RecordLinkManager<OrderRecord, typeof ModifyServiceRequestRecord['ordersLabels'][number]>;
486
+ /** Valid labels for Recontract associations */
487
+ static readonly recontractsLabels: readonly ["Recontract__ModifyServiceRequest"];
488
+ /**
489
+ * Access linked Recontract records
490
+ * @remarks Available labels: Recontract__ModifyServiceRequest
491
+ * @throws Error if called on a new (unsaved) record
492
+ *
493
+ * @example
494
+ * ```typescript
495
+ * // Get all linked Recontract records
496
+ * const items = await record.recontracts.list();
497
+ * const first = await record.recontracts.first();
498
+ *
499
+ * // Filter by label
500
+ * const specific = await record.recontracts.first({ label: 'Recontract__ModifyServiceRequest' });
501
+ * ```
502
+ */
503
+ get recontracts(): RecordLinkManager<RecontractRecord, typeof ModifyServiceRequestRecord['recontractsLabels'][number]>;
484
504
  /**
485
505
  * Queue a link to be created with the next action.
486
506
  * Works for both create and update actions.
@@ -34,6 +34,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
34
34
  const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
35
35
  const OrderKciRecord_1 = require("./OrderKciRecord");
36
36
  const OrderRecord_1 = require("./OrderRecord");
37
+ const RecontractRecord_1 = require("./RecontractRecord");
37
38
  /**
38
39
  * Builder for action execution with dryRun support
39
40
  *
@@ -758,6 +759,36 @@ class ModifyServiceRequestRecord {
758
759
  }
759
760
  return this._orders;
760
761
  }
762
+ /**
763
+ * Access linked Recontract records
764
+ * @remarks Available labels: Recontract__ModifyServiceRequest
765
+ * @throws Error if called on a new (unsaved) record
766
+ *
767
+ * @example
768
+ * ```typescript
769
+ * // Get all linked Recontract records
770
+ * const items = await record.recontracts.list();
771
+ * const first = await record.recontracts.first();
772
+ *
773
+ * // Filter by label
774
+ * const specific = await record.recontracts.first({ label: 'Recontract__ModifyServiceRequest' });
775
+ * ```
776
+ */
777
+ get recontracts() {
778
+ var _a;
779
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
780
+ throw new Error('Cannot access links on a new (unsaved) record');
781
+ if (!this._recontracts) {
782
+ this._recontracts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
783
+ sourceEntity: 'ServiceModule:ModifyServiceRequest',
784
+ targetEntity: 'OrderModule:Recontract',
785
+ targetModuleName: 'OrderModule',
786
+ targetEntityName: 'Recontract',
787
+ labels: ['Recontract__ModifyServiceRequest'],
788
+ }, RecontractRecord_1.RecontractRecord);
789
+ }
790
+ return this._recontracts;
791
+ }
761
792
  // ============================================
762
793
  // LINK MANAGEMENT
763
794
  // ============================================
@@ -1016,6 +1047,8 @@ exports.ModifyServiceRequestRecord = ModifyServiceRequestRecord;
1016
1047
  ModifyServiceRequestRecord.orderKcisLabels = ['ModifyServiceRequest__OrderKci'];
1017
1048
  /** Valid labels for Order associations */
1018
1049
  ModifyServiceRequestRecord.ordersLabels = ['ModifyServiceRequest__Order'];
1050
+ /** Valid labels for Recontract associations */
1051
+ ModifyServiceRequestRecord.recontractsLabels = ['Recontract__ModifyServiceRequest'];
1019
1052
  /** Type guard to check if an object is a ModifyServiceRequestRecord */
1020
1053
  function isModifyServiceRequestRecord(obj) {
1021
1054
  return obj instanceof ModifyServiceRequestRecord;
@@ -25,6 +25,7 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
25
25
  import { RecontractProperties } from '../entities-v2/Recontract';
26
26
  import { CreateRecontractProperties } from '../actions-v2/CreateRecontractDto';
27
27
  import { OrderRecord } from './OrderRecord';
28
+ import { ModifyServiceRequestRecord } from './ModifyServiceRequestRecord';
28
29
  /** Valid entity types for Recontract */
29
30
  export declare type RecontractType = 'DEFAULT';
30
31
  /**
@@ -91,6 +92,7 @@ export declare class RecontractRecord<TProps = RecontractProperties> {
91
92
  private _pendingLinks;
92
93
  private _preGeneratedId;
93
94
  private _orders?;
95
+ private _modifyServiceRequests?;
94
96
  /**
95
97
  * Create a record wrapper.
96
98
  * @param record - The underlying record, or null for create operations
@@ -150,6 +152,24 @@ export declare class RecontractRecord<TProps = RecontractProperties> {
150
152
  * ```
151
153
  */
152
154
  get orders(): RecordLinkManager<OrderRecord, typeof RecontractRecord['ordersLabels'][number]>;
155
+ /** Valid labels for ModifyServiceRequest associations */
156
+ static readonly modifyServiceRequestsLabels: readonly ["Recontract__ModifyServiceRequest"];
157
+ /**
158
+ * Access linked ModifyServiceRequest records
159
+ * @remarks Available labels: Recontract__ModifyServiceRequest
160
+ * @throws Error if called on a new (unsaved) record
161
+ *
162
+ * @example
163
+ * ```typescript
164
+ * // Get all linked ModifyServiceRequest records
165
+ * const items = await record.modifyServiceRequests.list();
166
+ * const first = await record.modifyServiceRequests.first();
167
+ *
168
+ * // Filter by label
169
+ * const specific = await record.modifyServiceRequests.first({ label: 'Recontract__ModifyServiceRequest' });
170
+ * ```
171
+ */
172
+ get modifyServiceRequests(): RecordLinkManager<ModifyServiceRequestRecord, typeof RecontractRecord['modifyServiceRequestsLabels'][number]>;
153
173
  /**
154
174
  * Queue a link to be created with the next action.
155
175
  * Works for both create and update actions.
@@ -33,6 +33,7 @@ const uuid_1 = require("uuid");
33
33
  const core_1 = require("@d19n/odin-types/dist/core");
34
34
  const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
35
35
  const OrderRecord_1 = require("./OrderRecord");
36
+ const ModifyServiceRequestRecord_1 = require("./ModifyServiceRequestRecord");
36
37
  /**
37
38
  * Builder for action execution with dryRun support
38
39
  *
@@ -192,6 +193,36 @@ class RecontractRecord {
192
193
  }
193
194
  return this._orders;
194
195
  }
196
+ /**
197
+ * Access linked ModifyServiceRequest records
198
+ * @remarks Available labels: Recontract__ModifyServiceRequest
199
+ * @throws Error if called on a new (unsaved) record
200
+ *
201
+ * @example
202
+ * ```typescript
203
+ * // Get all linked ModifyServiceRequest records
204
+ * const items = await record.modifyServiceRequests.list();
205
+ * const first = await record.modifyServiceRequests.first();
206
+ *
207
+ * // Filter by label
208
+ * const specific = await record.modifyServiceRequests.first({ label: 'Recontract__ModifyServiceRequest' });
209
+ * ```
210
+ */
211
+ get modifyServiceRequests() {
212
+ var _a;
213
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
214
+ throw new Error('Cannot access links on a new (unsaved) record');
215
+ if (!this._modifyServiceRequests) {
216
+ this._modifyServiceRequests = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
217
+ sourceEntity: 'OrderModule:Recontract',
218
+ targetEntity: 'ServiceModule:ModifyServiceRequest',
219
+ targetModuleName: 'ServiceModule',
220
+ targetEntityName: 'ModifyServiceRequest',
221
+ labels: ['Recontract__ModifyServiceRequest'],
222
+ }, ModifyServiceRequestRecord_1.ModifyServiceRequestRecord);
223
+ }
224
+ return this._modifyServiceRequests;
225
+ }
195
226
  // ============================================
196
227
  // LINK MANAGEMENT
197
228
  // ============================================
@@ -273,6 +304,8 @@ exports.RecontractRecord = RecontractRecord;
273
304
  // ============================================
274
305
  /** Valid labels for Order associations */
275
306
  RecontractRecord.ordersLabels = ['Recontract__Order'];
307
+ /** Valid labels for ModifyServiceRequest associations */
308
+ RecontractRecord.modifyServiceRequestsLabels = ['Recontract__ModifyServiceRequest'];
276
309
  /** Type guard to check if an object is a RecontractRecord */
277
310
  function isRecontractRecord(obj) {
278
311
  return obj instanceof RecontractRecord;
@@ -39,6 +39,7 @@ export { AccountCreditRecord, isAccountCreditRecord } from './AccountCreditRecor
39
39
  export { ActivityLogRecord, isActivityLogRecord } from './ActivityLogRecord';
40
40
  export { AffiliateCodeRecord, isAffiliateCodeRecord } from './AffiliateCodeRecord';
41
41
  export { CallLegRecord, isCallLegRecord } from './CallLegRecord';
42
+ export { EmailRecord, isEmailRecord } from './EmailRecord';
42
43
  export { AppointmentRecord, isAppointmentRecord } from './AppointmentRecord';
43
44
  export { PgFileAllocationRecord, isPgFileAllocationRecord } from './PgFileAllocationRecord';
44
45
  export { BngProvisionRecord, isBngProvisionRecord } from './BngProvisionRecord';
@@ -48,7 +49,6 @@ export { TwilioCallEventRecord, isTwilioCallEventRecord } from './TwilioCallEven
48
49
  export { CallRecord, isCallRecord } from './CallRecord';
49
50
  export { ContactRecord, isContactRecord } from './ContactRecord';
50
51
  export { RewardRecord, isRewardRecord } from './RewardRecord';
51
- export { EmailRecord, isEmailRecord } from './EmailRecord';
52
52
  export { OrderKciRecord, isOrderKciRecord } from './OrderKciRecord';
53
53
  export { MessageRecord, isMessageRecord } from './MessageRecord';
54
54
  export { ConfigRecord, isConfigRecord } from './ConfigRecord';