@d19n/youfibre-odin-sdk 2.0.246-beta.1 → 2.0.246-beta.2
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
CHANGED
|
@@ -360,7 +360,7 @@ This SDK includes **172** entities across **12** modules.
|
|
|
360
360
|
|
|
361
361
|
## Actions
|
|
362
362
|
|
|
363
|
-
This SDK includes **
|
|
363
|
+
This SDK includes **760** actions.
|
|
364
364
|
|
|
365
365
|
### Action Types
|
|
366
366
|
|
|
@@ -1365,6 +1365,7 @@ This SDK includes **759** actions.
|
|
|
1365
1365
|
| `CreatePreContractOrderSummary` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreatePreContractOrderSummary |
|
|
1366
1366
|
| `CreateRecontractOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractOrderConfirmation |
|
|
1367
1367
|
| `CreateRecontractReminderEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractReminderEmail |
|
|
1368
|
+
| `CreateTransactionConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation |
|
|
1368
1369
|
| `CreateTransactionalEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionalEmail |
|
|
1369
1370
|
| `SendDirectDebitCreatedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitCreatedEmail |
|
|
1370
1371
|
| `SendDirectDebitFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail |
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateTransactionConfirmation Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Send Transaction confirmation email
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey CreateTransactionConfirmation
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation
|
|
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 CreateTransactionConfirmation created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateTransactionConfirmationMessage extends OdinRecordCreatedEvent<CreateTransactionConfirmationDto, CreateTransactionConfirmationProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateTransactionConfirmation action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 10
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateTransactionConfirmationProperties {
|
|
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
|
+
/**
|
|
101
|
+
* CreateTransactionConfirmation
|
|
102
|
+
*
|
|
103
|
+
* Send Transaction confirmation email
|
|
104
|
+
*
|
|
105
|
+
* @actionType CREATE - Creates a new Email record
|
|
106
|
+
* @module NotificationModule
|
|
107
|
+
* @entity Email
|
|
108
|
+
* @entityType TRANSACTIONAL (TRANSACTIONAL)
|
|
109
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation
|
|
110
|
+
* @permission schema.action.createtransactionconfirmation.trigger
|
|
111
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
112
|
+
*/
|
|
113
|
+
export declare class CreateTransactionConfirmationDto extends OdinRecordCreateDto<CreateTransactionConfirmationProperties> {
|
|
114
|
+
/** Used by SDK generators to identify action type */
|
|
115
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
116
|
+
static readonly ACTION_KEY = "CreateTransactionConfirmation";
|
|
117
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
118
|
+
static readonly ENTITIES: string[];
|
|
119
|
+
static readonly ENTITY_TYPE = "TRANSACTIONAL";
|
|
120
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation";
|
|
121
|
+
static readonly PERMISSION = "schema.action.createtransactionconfirmation.trigger";
|
|
122
|
+
/** Step metadata - entity this action targets */
|
|
123
|
+
static readonly STEP_ENTITY = "NotificationModule:Email";
|
|
124
|
+
static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
|
|
125
|
+
static readonly STEP_SCHEMA_ACTION_ID = "765a7221-8b00-4a18-ba99-9bd1023dd55d";
|
|
126
|
+
static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
|
|
127
|
+
static readonly STEP_TYPE = "TRANSACTIONAL";
|
|
128
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
129
|
+
readonly actionName: string;
|
|
130
|
+
readonly schemaActionId: string;
|
|
131
|
+
readonly entity: string;
|
|
132
|
+
constructor(properties: CreateTransactionConfirmationProperties, options?: {
|
|
133
|
+
journeyId?: string;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateTransactionConfirmation Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Send Transaction confirmation email
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey CreateTransactionConfirmation
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateTransactionConfirmationDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateTransactionConfirmation
|
|
20
|
+
*
|
|
21
|
+
* Send Transaction confirmation email
|
|
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.CreateTransactionConfirmation
|
|
28
|
+
* @permission schema.action.createtransactionconfirmation.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateTransactionConfirmationDto 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 = 'CreateTransactionConfirmation';
|
|
40
|
+
this.schemaActionId = '765a7221-8b00-4a18-ba99-9bd1023dd55d';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateTransactionConfirmationDto = CreateTransactionConfirmationDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateTransactionConfirmationDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateTransactionConfirmationDto.ACTION_KEY = 'CreateTransactionConfirmation';
|
|
48
|
+
CreateTransactionConfirmationDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
CreateTransactionConfirmationDto.ENTITIES = ['Email'];
|
|
50
|
+
CreateTransactionConfirmationDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
CreateTransactionConfirmationDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionConfirmation';
|
|
52
|
+
CreateTransactionConfirmationDto.PERMISSION = 'schema.action.createtransactionconfirmation.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateTransactionConfirmationDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
CreateTransactionConfirmationDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
CreateTransactionConfirmationDto.STEP_SCHEMA_ACTION_ID = '765a7221-8b00-4a18-ba99-9bd1023dd55d';
|
|
57
|
+
CreateTransactionConfirmationDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
CreateTransactionConfirmationDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
CreateTransactionConfirmationDto.AUTO_LINK_PARENT = true;
|
|
@@ -41,6 +41,7 @@ import { CreateOrderReferralReferrerQualifiedEmailProperties } from '../actions-
|
|
|
41
41
|
import { CreatePreContractOrderSummaryProperties } from '../actions-v2/CreatePreContractOrderSummaryDto';
|
|
42
42
|
import { CreateRecontractOrderConfirmationProperties } from '../actions-v2/CreateRecontractOrderConfirmationDto';
|
|
43
43
|
import { CreateRecontractReminderEmailProperties } from '../actions-v2/CreateRecontractReminderEmailDto';
|
|
44
|
+
import { CreateTransactionConfirmationProperties } from '../actions-v2/CreateTransactionConfirmationDto';
|
|
44
45
|
import { CreateTransactionalEmailProperties } from '../actions-v2/CreateTransactionalEmailDto';
|
|
45
46
|
import { SendDirectDebitCreatedEmailProperties } from '../actions-v2/SendDirectDebitCreatedEmailDto';
|
|
46
47
|
import { SendDirectDebitFailedEmailProperties } from '../actions-v2/SendDirectDebitFailedEmailDto';
|
|
@@ -889,6 +890,34 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
889
890
|
journeyId?: string;
|
|
890
891
|
stageKey?: string;
|
|
891
892
|
}): ActionBuilder;
|
|
893
|
+
/**
|
|
894
|
+
* CreateTransactionConfirmation
|
|
895
|
+
*
|
|
896
|
+
* Creates a new Email record with the specified properties.
|
|
897
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
898
|
+
*
|
|
899
|
+
* @remarks Record type: TRANSACTIONAL
|
|
900
|
+
*
|
|
901
|
+
* @param properties - The properties for the new record
|
|
902
|
+
* @param options - Optional settings
|
|
903
|
+
* @param options.journeyId - Associate with a journey
|
|
904
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
905
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
906
|
+
*
|
|
907
|
+
* @example
|
|
908
|
+
* ```typescript
|
|
909
|
+
* // Create with properties
|
|
910
|
+
* const record = odinClient.emails.new();
|
|
911
|
+
* await record.createTransactionConfirmation({ ... }).execute();
|
|
912
|
+
*
|
|
913
|
+
* // Dry run (for debugging)
|
|
914
|
+
* const payload = record.createTransactionConfirmation({ ... }).dryRun();
|
|
915
|
+
* ```
|
|
916
|
+
*/
|
|
917
|
+
createTransactionConfirmation(properties?: CreateTransactionConfirmationProperties, options?: {
|
|
918
|
+
journeyId?: string;
|
|
919
|
+
stageKey?: string;
|
|
920
|
+
}): ActionBuilder;
|
|
892
921
|
/**
|
|
893
922
|
* CreateTransactionalEmail
|
|
894
923
|
*
|
|
@@ -1142,6 +1142,42 @@ class EmailRecord {
|
|
|
1142
1142
|
};
|
|
1143
1143
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
1144
1144
|
}
|
|
1145
|
+
/**
|
|
1146
|
+
* CreateTransactionConfirmation
|
|
1147
|
+
*
|
|
1148
|
+
* Creates a new Email record with the specified properties.
|
|
1149
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
1150
|
+
*
|
|
1151
|
+
* @remarks Record type: TRANSACTIONAL
|
|
1152
|
+
*
|
|
1153
|
+
* @param properties - The properties for the new record
|
|
1154
|
+
* @param options - Optional settings
|
|
1155
|
+
* @param options.journeyId - Associate with a journey
|
|
1156
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
1157
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
1158
|
+
*
|
|
1159
|
+
* @example
|
|
1160
|
+
* ```typescript
|
|
1161
|
+
* // Create with properties
|
|
1162
|
+
* const record = odinClient.emails.new();
|
|
1163
|
+
* await record.createTransactionConfirmation({ ... }).execute();
|
|
1164
|
+
*
|
|
1165
|
+
* // Dry run (for debugging)
|
|
1166
|
+
* const payload = record.createTransactionConfirmation({ ... }).dryRun();
|
|
1167
|
+
* ```
|
|
1168
|
+
*/
|
|
1169
|
+
createTransactionConfirmation(properties, options) {
|
|
1170
|
+
const payload = {
|
|
1171
|
+
entity: 'NotificationModule:Email',
|
|
1172
|
+
type: 'TRANSACTIONAL',
|
|
1173
|
+
actionName: 'CreateTransactionConfirmation',
|
|
1174
|
+
properties: properties || {},
|
|
1175
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
1176
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
1177
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
1178
|
+
};
|
|
1179
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
1180
|
+
}
|
|
1145
1181
|
/**
|
|
1146
1182
|
* CreateTransactionalEmail
|
|
1147
1183
|
*
|