@d19n/youfibre-odin-sdk 2.0.334 → 2.0.335

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.
@@ -0,0 +1,142 @@
1
+ /**
2
+ * CreateAmcoReplacementSentEmail Action DTO
3
+ *
4
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateAmcoReplacementSentEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateAmcoReplacementSentEmail created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
19
+ */
20
+ export interface CreateAmcoReplacementSentEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementSentEmailDto, CreateAmcoReplacementSentEmailProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateAmcoReplacementSentEmail action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 11
27
+ */
28
+ export interface CreateAmcoReplacementSentEmailProperties {
29
+ /**
30
+ * Date
31
+ *
32
+ * Date field for Email records. Used by Communications team.
33
+ * @type {DATE_TIME}
34
+ */
35
+ Date?: string | null;
36
+ /**
37
+ * EmailingService
38
+ *
39
+ * The provider we use to send email (eg. Sendgrid)
40
+ * @type {ENUM}
41
+ */
42
+ EmailingService?: string | null;
43
+ /**
44
+ * ContactId
45
+ *
46
+ * The related Contact to send the email
47
+ * @type {LOOKUP}
48
+ */
49
+ ContactId?: string | null;
50
+ /**
51
+ * TemplateLabel
52
+ *
53
+ * The template label from email templates engine
54
+ * @type {TEXT}
55
+ */
56
+ TemplateLabel?: string | null;
57
+ /**
58
+ * MessageId
59
+ *
60
+ * SMTP Message Id (Communications - Email)
61
+ * @type {TEXT}
62
+ */
63
+ MessageId?: string | null;
64
+ /**
65
+ * EmailSenderId
66
+ *
67
+ * The Email Sender related entity
68
+ * @type {LOOKUP}
69
+ */
70
+ EmailSenderId?: string | null;
71
+ /**
72
+ * DynamicData
73
+ *
74
+ * Data will pass to emailing service (variables)
75
+ * @type {JSON}
76
+ */
77
+ DynamicData?: string | null;
78
+ /**
79
+ * Title
80
+ *
81
+ * Used for title
82
+ * @type {TEXT}
83
+ */
84
+ Title?: string | null;
85
+ /**
86
+ * Subject
87
+ *
88
+ * Data field for Email records. Used by Communications team.
89
+ * @type {TEXT}
90
+ */
91
+ Subject?: string | null;
92
+ /**
93
+ * To
94
+ *
95
+ * Data field for Email records. Used by Communications team.
96
+ * @type {TEXT}
97
+ */
98
+ To?: string | null;
99
+ /**
100
+ * Work Order
101
+ *
102
+ * WorkOrder
103
+ * @type {LOOKUP}
104
+ */
105
+ WorkOrder?: string | null;
106
+ }
107
+ /**
108
+ * CreateAmcoReplacementSentEmail
109
+ *
110
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
111
+ *
112
+ * @actionType CREATE - Creates a new Email record
113
+ * @module NotificationModule
114
+ * @entity Email
115
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
116
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
117
+ * @permission schema.action.createamcoreplacementsentemail.trigger
118
+ * @benchmark This action is tracked for performance benchmarks
119
+ */
120
+ export declare class CreateAmcoReplacementSentEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementSentEmailProperties> {
121
+ /** Used by SDK generators to identify action type */
122
+ static readonly ACTION_TYPE = "CREATE";
123
+ static readonly ACTION_KEY = "CreateAmcoReplacementSentEmail";
124
+ static readonly MODULE_NAME = "NotificationModule";
125
+ static readonly ENTITIES: string[];
126
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
127
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail";
128
+ static readonly PERMISSION = "schema.action.createamcoreplacementsentemail.trigger";
129
+ /** Step metadata - entity this action targets */
130
+ static readonly STEP_ENTITY = "NotificationModule:Email";
131
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
132
+ static readonly STEP_SCHEMA_ACTION_ID = "9f4ffbc9-fc9f-4127-b220-101d5c478865";
133
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
134
+ static readonly STEP_TYPE = "TRANSACTIONAL";
135
+ static readonly AUTO_LINK_PARENT = true;
136
+ readonly actionName: string;
137
+ readonly schemaActionId: string;
138
+ readonly entity: string;
139
+ constructor(properties: CreateAmcoReplacementSentEmailProperties, options?: {
140
+ journeyId?: string;
141
+ });
142
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAmcoReplacementSentEmail Action DTO
4
+ *
5
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateAmcoReplacementSentEmail
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateAmcoReplacementSentEmailDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateAmcoReplacementSentEmail
20
+ *
21
+ * 3PL-R2. Tells the customer their replacement equipment is on its way, when the REPLACEMENT_AMCO work order reaches En Route. Carries the outgoing tracking number and link.
22
+ *
23
+ * @actionType CREATE - Creates a new Email record
24
+ * @module NotificationModule
25
+ * @entity Email
26
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail
28
+ * @permission schema.action.createamcoreplacementsentemail.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateAmcoReplacementSentEmailDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:Email',
35
+ type: 'TRANSACTIONAL',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateAmcoReplacementSentEmail';
40
+ this.schemaActionId = '9f4ffbc9-fc9f-4127-b220-101d5c478865';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateAmcoReplacementSentEmailDto = CreateAmcoReplacementSentEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateAmcoReplacementSentEmailDto.ACTION_TYPE = 'CREATE';
47
+ CreateAmcoReplacementSentEmailDto.ACTION_KEY = 'CreateAmcoReplacementSentEmail';
48
+ CreateAmcoReplacementSentEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateAmcoReplacementSentEmailDto.ENTITIES = ['Email'];
50
+ CreateAmcoReplacementSentEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateAmcoReplacementSentEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail';
52
+ CreateAmcoReplacementSentEmailDto.PERMISSION = 'schema.action.createamcoreplacementsentemail.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateAmcoReplacementSentEmailDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateAmcoReplacementSentEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateAmcoReplacementSentEmailDto.STEP_SCHEMA_ACTION_ID = '9f4ffbc9-fc9f-4127-b220-101d5c478865';
57
+ CreateAmcoReplacementSentEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateAmcoReplacementSentEmailDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateAmcoReplacementSentEmailDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * MoveReplacementAmcoToFailedDelivery Action DTO
3
+ *
4
+ * Move the replacement work order to Failed Delivery.
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @entityType REPLACEMENT_AMCO
9
+ * @actionKey MoveReplacementAmcoToFailedDelivery
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for MoveReplacementAmcoToFailedDelivery step flow events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery
19
+ */
20
+ export interface MoveReplacementAmcoToFailedDeliveryMessage extends OdinRecordUpdatedEvent<MoveReplacementAmcoToFailedDeliveryDto, {}> {
21
+ }
22
+ /**
23
+ * Properties for MoveReplacementAmcoToFailedDelivery action
24
+ *
25
+ */
26
+ export interface MoveReplacementAmcoToFailedDeliveryProperties {
27
+ }
28
+ /**
29
+ * MoveReplacementAmcoToFailedDelivery
30
+ *
31
+ * Move the replacement work order to Failed Delivery.
32
+ *
33
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
34
+ * @module FieldServiceModule
35
+ * @entity WorkOrder
36
+ * @entityType REPLACEMENT_AMCO (Amco Replacement)
37
+ * @targetStages ReplacementAmcoStageFailedDelivery
38
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery
39
+ * @permission schema.action.movereplacementamcotofaileddelivery.trigger
40
+ * @benchmark This action is tracked for performance benchmarks
41
+ */
42
+ export declare class MoveReplacementAmcoToFailedDeliveryDto extends OdinRecordUpdateDto<Record<string, any>> {
43
+ /** Used by SDK generators to identify action type */
44
+ static readonly ACTION_TYPE = "UPDATE";
45
+ static readonly ACTION_KEY = "MoveReplacementAmcoToFailedDelivery";
46
+ static readonly MODULE_NAME = "FieldServiceModule";
47
+ static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "REPLACEMENT_AMCO";
49
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery";
50
+ static readonly SCHEMA_ACTION_ID = "42ce4033-7fbe-4444-a62b-8ce1e6139c6a";
51
+ static readonly PERMISSION = "schema.action.movereplacementamcotofaileddelivery.trigger";
52
+ static readonly TARGET_STAGES: readonly ["ReplacementAmcoStageFailedDelivery"];
53
+ static readonly IS_STAGE_TRANSITION = true;
54
+ static readonly IS_MULTI_STEP_FLOW = false;
55
+ static readonly HAS_STEP_LINKS = false;
56
+ readonly actionName: string;
57
+ readonly schemaActionId: string;
58
+ readonly entity: string;
59
+ readonly stageKey: string;
60
+ constructor(record: OdinRecord<any> | {
61
+ id: string;
62
+ entity: string;
63
+ type?: string;
64
+ }, options?: {
65
+ journeyId?: string;
66
+ });
67
+ /** Step classes that can be used with this action */
68
+ static readonly stepClasses: readonly [];
69
+ steps: [];
70
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /**
3
+ * MoveReplacementAmcoToFailedDelivery Action DTO
4
+ *
5
+ * Move the replacement work order to Failed Delivery.
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @entityType REPLACEMENT_AMCO
10
+ * @actionKey MoveReplacementAmcoToFailedDelivery
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MoveReplacementAmcoToFailedDeliveryDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * MoveReplacementAmcoToFailedDelivery
20
+ *
21
+ * Move the replacement work order to Failed Delivery.
22
+ *
23
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
24
+ * @module FieldServiceModule
25
+ * @entity WorkOrder
26
+ * @entityType REPLACEMENT_AMCO (Amco Replacement)
27
+ * @targetStages ReplacementAmcoStageFailedDelivery
28
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery
29
+ * @permission schema.action.movereplacementamcotofaileddelivery.trigger
30
+ * @benchmark This action is tracked for performance benchmarks
31
+ */
32
+ class MoveReplacementAmcoToFailedDeliveryDto extends core_1.OdinRecordUpdateDto {
33
+ constructor(record, options) {
34
+ super({
35
+ id: record.id,
36
+ entity: record.entity,
37
+ type: record.type,
38
+ properties: {},
39
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
40
+ });
41
+ this.actionName = 'MoveReplacementAmcoToFailedDelivery';
42
+ this.schemaActionId = '42ce4033-7fbe-4444-a62b-8ce1e6139c6a';
43
+ this.entity = 'FieldServiceModule:WorkOrder';
44
+ this.stageKey = 'ReplacementAmcoStageFailedDelivery';
45
+ }
46
+ }
47
+ exports.MoveReplacementAmcoToFailedDeliveryDto = MoveReplacementAmcoToFailedDeliveryDto;
48
+ /** Used by SDK generators to identify action type */
49
+ MoveReplacementAmcoToFailedDeliveryDto.ACTION_TYPE = 'UPDATE';
50
+ MoveReplacementAmcoToFailedDeliveryDto.ACTION_KEY = 'MoveReplacementAmcoToFailedDelivery';
51
+ MoveReplacementAmcoToFailedDeliveryDto.MODULE_NAME = 'FieldServiceModule';
52
+ MoveReplacementAmcoToFailedDeliveryDto.ENTITIES = ['WorkOrder'];
53
+ MoveReplacementAmcoToFailedDeliveryDto.ENTITY_TYPE = 'REPLACEMENT_AMCO';
54
+ MoveReplacementAmcoToFailedDeliveryDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery';
55
+ MoveReplacementAmcoToFailedDeliveryDto.SCHEMA_ACTION_ID = '42ce4033-7fbe-4444-a62b-8ce1e6139c6a';
56
+ MoveReplacementAmcoToFailedDeliveryDto.PERMISSION = 'schema.action.movereplacementamcotofaileddelivery.trigger';
57
+ MoveReplacementAmcoToFailedDeliveryDto.TARGET_STAGES = ['ReplacementAmcoStageFailedDelivery'];
58
+ MoveReplacementAmcoToFailedDeliveryDto.IS_STAGE_TRANSITION = true;
59
+ MoveReplacementAmcoToFailedDeliveryDto.IS_MULTI_STEP_FLOW = false;
60
+ MoveReplacementAmcoToFailedDeliveryDto.HAS_STEP_LINKS = false;
61
+ /** Step classes that can be used with this action */
62
+ MoveReplacementAmcoToFailedDeliveryDto.stepClasses = [];
@@ -621,7 +621,9 @@ export declare enum ReplacementAmcoWorkOrderStageNames {
621
621
  /** Cancelled (success) */
622
622
  Cancelled = "Cancelled",
623
623
  /** Complete (success) */
624
- Complete = "Complete"
624
+ Complete = "Complete",
625
+ /** Failed Delivery (fail) */
626
+ FailedDelivery = "Failed Delivery"
625
627
  }
626
628
  /**
627
629
  * Pipeline stage keys for REPLACEMENT_AMCO WorkOrder
@@ -651,7 +653,9 @@ export declare enum ReplacementAmcoWorkOrderStageKeys {
651
653
  /** Cancelled */
652
654
  ReplacementAmcoStageCancelled = "ReplacementAmcoStageCancelled",
653
655
  /** Complete */
654
- ReplacementAmcoStageComplete = "ReplacementAmcoStageComplete"
656
+ ReplacementAmcoStageComplete = "ReplacementAmcoStageComplete",
657
+ /** Failed Delivery */
658
+ ReplacementAmcoStageFailedDelivery = "ReplacementAmcoStageFailedDelivery"
655
659
  }
656
660
  /**
657
661
  * Pipeline stage names for SERVICE WorkOrder
@@ -590,6 +590,8 @@ var ReplacementAmcoWorkOrderStageNames;
590
590
  ReplacementAmcoWorkOrderStageNames["Cancelled"] = "Cancelled";
591
591
  /** Complete (success) */
592
592
  ReplacementAmcoWorkOrderStageNames["Complete"] = "Complete";
593
+ /** Failed Delivery (fail) */
594
+ ReplacementAmcoWorkOrderStageNames["FailedDelivery"] = "Failed Delivery";
593
595
  })(ReplacementAmcoWorkOrderStageNames = exports.ReplacementAmcoWorkOrderStageNames || (exports.ReplacementAmcoWorkOrderStageNames = {}));
594
596
  /**
595
597
  * Pipeline stage keys for REPLACEMENT_AMCO WorkOrder
@@ -621,6 +623,8 @@ var ReplacementAmcoWorkOrderStageKeys;
621
623
  ReplacementAmcoWorkOrderStageKeys["ReplacementAmcoStageCancelled"] = "ReplacementAmcoStageCancelled";
622
624
  /** Complete */
623
625
  ReplacementAmcoWorkOrderStageKeys["ReplacementAmcoStageComplete"] = "ReplacementAmcoStageComplete";
626
+ /** Failed Delivery */
627
+ ReplacementAmcoWorkOrderStageKeys["ReplacementAmcoStageFailedDelivery"] = "ReplacementAmcoStageFailedDelivery";
624
628
  })(ReplacementAmcoWorkOrderStageKeys = exports.ReplacementAmcoWorkOrderStageKeys || (exports.ReplacementAmcoWorkOrderStageKeys = {}));
625
629
  /**
626
630
  * Pipeline stage names for SERVICE WorkOrder
@@ -33,6 +33,10 @@ import { CreateAmcoDispatchConfirmedEmailProperties } from '../actions-v2/Create
33
33
  import { CreateAmcoDispatchDeliveredEmailProperties } from '../actions-v2/CreateAmcoDispatchDeliveredEmailDto';
34
34
  import { CreateAmcoDispatchFailedDeliveryEmailProperties } from '../actions-v2/CreateAmcoDispatchFailedDeliveryEmailDto';
35
35
  import { CreateAmcoDispatchSentEmailProperties } from '../actions-v2/CreateAmcoDispatchSentEmailDto';
36
+ import { CreateAmcoReplacementConfirmedEmailProperties } from '../actions-v2/CreateAmcoReplacementConfirmedEmailDto';
37
+ import { CreateAmcoReplacementDeliveredEmailProperties } from '../actions-v2/CreateAmcoReplacementDeliveredEmailDto';
38
+ import { CreateAmcoReplacementFailedDeliveryEmailProperties } from '../actions-v2/CreateAmcoReplacementFailedDeliveryEmailDto';
39
+ import { CreateAmcoReplacementSentEmailProperties } from '../actions-v2/CreateAmcoReplacementSentEmailDto';
36
40
  import { CreateCashbackRewardRefereeFailedEmailProperties } from '../actions-v2/CreateCashbackRewardRefereeFailedEmailDto';
37
41
  import { CreateCashbackRewardRefereePendingEmailProperties } from '../actions-v2/CreateCashbackRewardRefereePendingEmailDto';
38
42
  import { CreateCashbackRewardRefereeSuccessEmailProperties } from '../actions-v2/CreateCashbackRewardRefereeSuccessEmailDto';
@@ -727,6 +731,118 @@ export declare class EmailRecord<TProps = EmailProperties> {
727
731
  journeyId?: string;
728
732
  stageKey?: string;
729
733
  }): ActionBuilder;
734
+ /**
735
+ * CreateAmcoReplacementConfirmedEmail
736
+ *
737
+ * Creates a new Email record with the specified properties.
738
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
739
+ *
740
+ * @remarks Record type: TRANSACTIONAL
741
+ *
742
+ * @param properties - The properties for the new record
743
+ * @param options - Optional settings
744
+ * @param options.journeyId - Associate with a journey
745
+ * @param options.stageKey - Set initial pipeline stage
746
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
747
+ *
748
+ * @example
749
+ * ```typescript
750
+ * // Create with properties
751
+ * const record = odinClient.emails.new();
752
+ * await record.createAmcoReplacementConfirmedEmail({ ... }).execute();
753
+ *
754
+ * // Dry run (for debugging)
755
+ * const payload = record.createAmcoReplacementConfirmedEmail({ ... }).dryRun();
756
+ * ```
757
+ */
758
+ createAmcoReplacementConfirmedEmail(properties?: CreateAmcoReplacementConfirmedEmailProperties, options?: {
759
+ journeyId?: string;
760
+ stageKey?: string;
761
+ }): ActionBuilder;
762
+ /**
763
+ * CreateAmcoReplacementDeliveredEmail
764
+ *
765
+ * Creates a new Email record with the specified properties.
766
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
767
+ *
768
+ * @remarks Record type: TRANSACTIONAL
769
+ *
770
+ * @param properties - The properties for the new record
771
+ * @param options - Optional settings
772
+ * @param options.journeyId - Associate with a journey
773
+ * @param options.stageKey - Set initial pipeline stage
774
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
775
+ *
776
+ * @example
777
+ * ```typescript
778
+ * // Create with properties
779
+ * const record = odinClient.emails.new();
780
+ * await record.createAmcoReplacementDeliveredEmail({ ... }).execute();
781
+ *
782
+ * // Dry run (for debugging)
783
+ * const payload = record.createAmcoReplacementDeliveredEmail({ ... }).dryRun();
784
+ * ```
785
+ */
786
+ createAmcoReplacementDeliveredEmail(properties?: CreateAmcoReplacementDeliveredEmailProperties, options?: {
787
+ journeyId?: string;
788
+ stageKey?: string;
789
+ }): ActionBuilder;
790
+ /**
791
+ * CreateAmcoReplacementFailedDeliveryEmail
792
+ *
793
+ * Creates a new Email record with the specified properties.
794
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
795
+ *
796
+ * @remarks Record type: TRANSACTIONAL
797
+ *
798
+ * @param properties - The properties for the new record
799
+ * @param options - Optional settings
800
+ * @param options.journeyId - Associate with a journey
801
+ * @param options.stageKey - Set initial pipeline stage
802
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
803
+ *
804
+ * @example
805
+ * ```typescript
806
+ * // Create with properties
807
+ * const record = odinClient.emails.new();
808
+ * await record.createAmcoReplacementFailedDeliveryEmail({ ... }).execute();
809
+ *
810
+ * // Dry run (for debugging)
811
+ * const payload = record.createAmcoReplacementFailedDeliveryEmail({ ... }).dryRun();
812
+ * ```
813
+ */
814
+ createAmcoReplacementFailedDeliveryEmail(properties?: CreateAmcoReplacementFailedDeliveryEmailProperties, options?: {
815
+ journeyId?: string;
816
+ stageKey?: string;
817
+ }): ActionBuilder;
818
+ /**
819
+ * CreateAmcoReplacementSentEmail
820
+ *
821
+ * Creates a new Email record with the specified properties.
822
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
823
+ *
824
+ * @remarks Record type: TRANSACTIONAL
825
+ *
826
+ * @param properties - The properties for the new record
827
+ * @param options - Optional settings
828
+ * @param options.journeyId - Associate with a journey
829
+ * @param options.stageKey - Set initial pipeline stage
830
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
831
+ *
832
+ * @example
833
+ * ```typescript
834
+ * // Create with properties
835
+ * const record = odinClient.emails.new();
836
+ * await record.createAmcoReplacementSentEmail({ ... }).execute();
837
+ *
838
+ * // Dry run (for debugging)
839
+ * const payload = record.createAmcoReplacementSentEmail({ ... }).dryRun();
840
+ * ```
841
+ */
842
+ createAmcoReplacementSentEmail(properties?: CreateAmcoReplacementSentEmailProperties, options?: {
843
+ journeyId?: string;
844
+ stageKey?: string;
845
+ }): ActionBuilder;
730
846
  /**
731
847
  * CreateCashbackRewardRefereeFailedEmail
732
848
  *
@@ -887,6 +887,150 @@ class EmailRecord {
887
887
  };
888
888
  return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
889
889
  }
890
+ /**
891
+ * CreateAmcoReplacementConfirmedEmail
892
+ *
893
+ * Creates a new Email record with the specified properties.
894
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
895
+ *
896
+ * @remarks Record type: TRANSACTIONAL
897
+ *
898
+ * @param properties - The properties for the new record
899
+ * @param options - Optional settings
900
+ * @param options.journeyId - Associate with a journey
901
+ * @param options.stageKey - Set initial pipeline stage
902
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
903
+ *
904
+ * @example
905
+ * ```typescript
906
+ * // Create with properties
907
+ * const record = odinClient.emails.new();
908
+ * await record.createAmcoReplacementConfirmedEmail({ ... }).execute();
909
+ *
910
+ * // Dry run (for debugging)
911
+ * const payload = record.createAmcoReplacementConfirmedEmail({ ... }).dryRun();
912
+ * ```
913
+ */
914
+ createAmcoReplacementConfirmedEmail(properties, options) {
915
+ const payload = {
916
+ entity: 'NotificationModule:Email',
917
+ type: 'TRANSACTIONAL',
918
+ actionName: 'CreateAmcoReplacementConfirmedEmail',
919
+ properties: properties || {},
920
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
921
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
922
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
923
+ };
924
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
925
+ }
926
+ /**
927
+ * CreateAmcoReplacementDeliveredEmail
928
+ *
929
+ * Creates a new Email record with the specified properties.
930
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
931
+ *
932
+ * @remarks Record type: TRANSACTIONAL
933
+ *
934
+ * @param properties - The properties for the new record
935
+ * @param options - Optional settings
936
+ * @param options.journeyId - Associate with a journey
937
+ * @param options.stageKey - Set initial pipeline stage
938
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
939
+ *
940
+ * @example
941
+ * ```typescript
942
+ * // Create with properties
943
+ * const record = odinClient.emails.new();
944
+ * await record.createAmcoReplacementDeliveredEmail({ ... }).execute();
945
+ *
946
+ * // Dry run (for debugging)
947
+ * const payload = record.createAmcoReplacementDeliveredEmail({ ... }).dryRun();
948
+ * ```
949
+ */
950
+ createAmcoReplacementDeliveredEmail(properties, options) {
951
+ const payload = {
952
+ entity: 'NotificationModule:Email',
953
+ type: 'TRANSACTIONAL',
954
+ actionName: 'CreateAmcoReplacementDeliveredEmail',
955
+ properties: properties || {},
956
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
957
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
958
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
959
+ };
960
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
961
+ }
962
+ /**
963
+ * CreateAmcoReplacementFailedDeliveryEmail
964
+ *
965
+ * Creates a new Email record with the specified properties.
966
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
967
+ *
968
+ * @remarks Record type: TRANSACTIONAL
969
+ *
970
+ * @param properties - The properties for the new record
971
+ * @param options - Optional settings
972
+ * @param options.journeyId - Associate with a journey
973
+ * @param options.stageKey - Set initial pipeline stage
974
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
975
+ *
976
+ * @example
977
+ * ```typescript
978
+ * // Create with properties
979
+ * const record = odinClient.emails.new();
980
+ * await record.createAmcoReplacementFailedDeliveryEmail({ ... }).execute();
981
+ *
982
+ * // Dry run (for debugging)
983
+ * const payload = record.createAmcoReplacementFailedDeliveryEmail({ ... }).dryRun();
984
+ * ```
985
+ */
986
+ createAmcoReplacementFailedDeliveryEmail(properties, options) {
987
+ const payload = {
988
+ entity: 'NotificationModule:Email',
989
+ type: 'TRANSACTIONAL',
990
+ actionName: 'CreateAmcoReplacementFailedDeliveryEmail',
991
+ properties: properties || {},
992
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
993
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
994
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
995
+ };
996
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
997
+ }
998
+ /**
999
+ * CreateAmcoReplacementSentEmail
1000
+ *
1001
+ * Creates a new Email record with the specified properties.
1002
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
1003
+ *
1004
+ * @remarks Record type: TRANSACTIONAL
1005
+ *
1006
+ * @param properties - The properties for the new record
1007
+ * @param options - Optional settings
1008
+ * @param options.journeyId - Associate with a journey
1009
+ * @param options.stageKey - Set initial pipeline stage
1010
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
1011
+ *
1012
+ * @example
1013
+ * ```typescript
1014
+ * // Create with properties
1015
+ * const record = odinClient.emails.new();
1016
+ * await record.createAmcoReplacementSentEmail({ ... }).execute();
1017
+ *
1018
+ * // Dry run (for debugging)
1019
+ * const payload = record.createAmcoReplacementSentEmail({ ... }).dryRun();
1020
+ * ```
1021
+ */
1022
+ createAmcoReplacementSentEmail(properties, options) {
1023
+ const payload = {
1024
+ entity: 'NotificationModule:Email',
1025
+ type: 'TRANSACTIONAL',
1026
+ actionName: 'CreateAmcoReplacementSentEmail',
1027
+ properties: properties || {},
1028
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
1029
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
1030
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
1031
+ };
1032
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
1033
+ }
890
1034
  /**
891
1035
  * CreateCashbackRewardRefereeFailedEmail
892
1036
  *