@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.
- package/README.md +8 -1
- package/dist/actions-v2/CreateAmcoReplacementConfirmedEmailDto.d.ts +142 -0
- package/dist/actions-v2/CreateAmcoReplacementConfirmedEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoReplacementDeliveredEmailDto.d.ts +142 -0
- package/dist/actions-v2/CreateAmcoReplacementDeliveredEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoReplacementFailedDeliveryEmailDto.d.ts +142 -0
- package/dist/actions-v2/CreateAmcoReplacementFailedDeliveryEmailDto.js +59 -0
- package/dist/actions-v2/CreateAmcoReplacementSentEmailDto.d.ts +142 -0
- package/dist/actions-v2/CreateAmcoReplacementSentEmailDto.js +59 -0
- package/dist/actions-v2/MoveReplacementAmcoToFailedDeliveryDto.d.ts +70 -0
- package/dist/actions-v2/MoveReplacementAmcoToFailedDeliveryDto.js +62 -0
- package/dist/entities-v2/WorkOrder.d.ts +6 -2
- package/dist/entities-v2/WorkOrder.js +4 -0
- package/dist/records-v2/EmailRecord.d.ts +116 -0
- package/dist/records-v2/EmailRecord.js +144 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +25 -0
- package/dist/records-v2/WorkOrderRecord.js +29 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -375,7 +375,7 @@ This SDK includes **187** entities across **12** modules.
|
|
|
375
375
|
|
|
376
376
|
## Actions
|
|
377
377
|
|
|
378
|
-
This SDK includes **
|
|
378
|
+
This SDK includes **891** actions.
|
|
379
379
|
|
|
380
380
|
### Action Types
|
|
381
381
|
|
|
@@ -587,6 +587,7 @@ This SDK includes **886** actions.
|
|
|
587
587
|
| `MoveReplacementAmcoToDelivered` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToDelivered |
|
|
588
588
|
| `MoveReplacementAmcoToEnRoute` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToEnRoute |
|
|
589
589
|
| `MoveReplacementAmcoToError` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToError |
|
|
590
|
+
| `MoveReplacementAmcoToFailedDelivery` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedDelivery |
|
|
590
591
|
| `MoveReplacementAmcoToFailedInspection` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToFailedInspection |
|
|
591
592
|
| `MoveReplacementAmcoToNonReturned` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToNonReturned |
|
|
592
593
|
| `MoveReplacementAmcoToPendingInspection` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveReplacementAmcoToPendingInspection |
|
|
@@ -788,6 +789,8 @@ This SDK includes **886** actions.
|
|
|
788
789
|
|
|
789
790
|
**MoveReplacementAmcoToError Target Stages:** `ReplacementAmcoStageError`
|
|
790
791
|
|
|
792
|
+
**MoveReplacementAmcoToFailedDelivery Target Stages:** `ReplacementAmcoStageFailedDelivery`
|
|
793
|
+
|
|
791
794
|
**MoveReplacementAmcoToFailedInspection Target Stages:** `ReplacementAmcoStageFailedInspection`
|
|
792
795
|
|
|
793
796
|
**MoveReplacementAmcoToNonReturned Target Stages:** `ReplacementAmcoStageNonReturned`
|
|
@@ -1397,6 +1400,10 @@ This SDK includes **886** actions.
|
|
|
1397
1400
|
| `CreateAmcoDispatchDeliveredEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchDeliveredEmail |
|
|
1398
1401
|
| `CreateAmcoDispatchFailedDeliveryEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchFailedDeliveryEmail |
|
|
1399
1402
|
| `CreateAmcoDispatchSentEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoDispatchSentEmail |
|
|
1403
|
+
| `CreateAmcoReplacementConfirmedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementConfirmedEmail |
|
|
1404
|
+
| `CreateAmcoReplacementDeliveredEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail |
|
|
1405
|
+
| `CreateAmcoReplacementFailedDeliveryEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail |
|
|
1406
|
+
| `CreateAmcoReplacementSentEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementSentEmail |
|
|
1400
1407
|
| `CreateCashbackRewardRefereeFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereeFailedEmail |
|
|
1401
1408
|
| `CreateCashbackRewardRefereePendingEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereePendingEmail |
|
|
1402
1409
|
| `CreateCashbackRewardRefereeSuccessEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateCashbackRewardRefereeSuccessEmail |
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateAmcoReplacementConfirmedEmail Action DTO
|
|
3
|
+
*
|
|
4
|
+
* 3PL-R1. Confirms the replacement equipment request when the REPLACEMENT_AMCO work order reaches Received. Names the items being sent and tells the customer a returns bag is coming with them.
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey CreateAmcoReplacementConfirmedEmail
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementConfirmedEmail
|
|
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 CreateAmcoReplacementConfirmedEmail created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementConfirmedEmail
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateAmcoReplacementConfirmedEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementConfirmedEmailDto, CreateAmcoReplacementConfirmedEmailProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateAmcoReplacementConfirmedEmail action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 11
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAmcoReplacementConfirmedEmailProperties {
|
|
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
|
+
* CreateAmcoReplacementConfirmedEmail
|
|
109
|
+
*
|
|
110
|
+
* 3PL-R1. Confirms the replacement equipment request when the REPLACEMENT_AMCO work order reaches Received. Names the items being sent and tells the customer a returns bag is coming with them.
|
|
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.CreateAmcoReplacementConfirmedEmail
|
|
117
|
+
* @permission schema.action.createamcoreplacementconfirmedemail.trigger
|
|
118
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
119
|
+
*/
|
|
120
|
+
export declare class CreateAmcoReplacementConfirmedEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementConfirmedEmailProperties> {
|
|
121
|
+
/** Used by SDK generators to identify action type */
|
|
122
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
123
|
+
static readonly ACTION_KEY = "CreateAmcoReplacementConfirmedEmail";
|
|
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.CreateAmcoReplacementConfirmedEmail";
|
|
128
|
+
static readonly PERMISSION = "schema.action.createamcoreplacementconfirmedemail.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 = "58a9bf19-3519-4a31-a0a6-df95c3b58bb7";
|
|
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: CreateAmcoReplacementConfirmedEmailProperties, options?: {
|
|
140
|
+
journeyId?: string;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateAmcoReplacementConfirmedEmail Action DTO
|
|
4
|
+
*
|
|
5
|
+
* 3PL-R1. Confirms the replacement equipment request when the REPLACEMENT_AMCO work order reaches Received. Names the items being sent and tells the customer a returns bag is coming with them.
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey CreateAmcoReplacementConfirmedEmail
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementConfirmedEmail
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateAmcoReplacementConfirmedEmailDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateAmcoReplacementConfirmedEmail
|
|
20
|
+
*
|
|
21
|
+
* 3PL-R1. Confirms the replacement equipment request when the REPLACEMENT_AMCO work order reaches Received. Names the items being sent and tells the customer a returns bag is coming with them.
|
|
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.CreateAmcoReplacementConfirmedEmail
|
|
28
|
+
* @permission schema.action.createamcoreplacementconfirmedemail.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateAmcoReplacementConfirmedEmailDto 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 = 'CreateAmcoReplacementConfirmedEmail';
|
|
40
|
+
this.schemaActionId = '58a9bf19-3519-4a31-a0a6-df95c3b58bb7';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateAmcoReplacementConfirmedEmailDto = CreateAmcoReplacementConfirmedEmailDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateAmcoReplacementConfirmedEmailDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateAmcoReplacementConfirmedEmailDto.ACTION_KEY = 'CreateAmcoReplacementConfirmedEmail';
|
|
48
|
+
CreateAmcoReplacementConfirmedEmailDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
CreateAmcoReplacementConfirmedEmailDto.ENTITIES = ['Email'];
|
|
50
|
+
CreateAmcoReplacementConfirmedEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
CreateAmcoReplacementConfirmedEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementConfirmedEmail';
|
|
52
|
+
CreateAmcoReplacementConfirmedEmailDto.PERMISSION = 'schema.action.createamcoreplacementconfirmedemail.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateAmcoReplacementConfirmedEmailDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
CreateAmcoReplacementConfirmedEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
CreateAmcoReplacementConfirmedEmailDto.STEP_SCHEMA_ACTION_ID = '58a9bf19-3519-4a31-a0a6-df95c3b58bb7';
|
|
57
|
+
CreateAmcoReplacementConfirmedEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
CreateAmcoReplacementConfirmedEmailDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
CreateAmcoReplacementConfirmedEmailDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateAmcoReplacementDeliveredEmail Action DTO
|
|
3
|
+
*
|
|
4
|
+
* 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey CreateAmcoReplacementDeliveredEmail
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
|
|
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 CreateAmcoReplacementDeliveredEmail created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateAmcoReplacementDeliveredEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementDeliveredEmailDto, CreateAmcoReplacementDeliveredEmailProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateAmcoReplacementDeliveredEmail action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 11
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAmcoReplacementDeliveredEmailProperties {
|
|
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
|
+
* CreateAmcoReplacementDeliveredEmail
|
|
109
|
+
*
|
|
110
|
+
* 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
|
|
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.CreateAmcoReplacementDeliveredEmail
|
|
117
|
+
* @permission schema.action.createamcoreplacementdeliveredemail.trigger
|
|
118
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
119
|
+
*/
|
|
120
|
+
export declare class CreateAmcoReplacementDeliveredEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementDeliveredEmailProperties> {
|
|
121
|
+
/** Used by SDK generators to identify action type */
|
|
122
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
123
|
+
static readonly ACTION_KEY = "CreateAmcoReplacementDeliveredEmail";
|
|
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.CreateAmcoReplacementDeliveredEmail";
|
|
128
|
+
static readonly PERMISSION = "schema.action.createamcoreplacementdeliveredemail.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 = "a9d21ee8-9bcc-4a58-a23b-427745c7c8fc";
|
|
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: CreateAmcoReplacementDeliveredEmailProperties, options?: {
|
|
140
|
+
journeyId?: string;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateAmcoReplacementDeliveredEmail Action DTO
|
|
4
|
+
*
|
|
5
|
+
* 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey CreateAmcoReplacementDeliveredEmail
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateAmcoReplacementDeliveredEmailDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateAmcoReplacementDeliveredEmail
|
|
20
|
+
*
|
|
21
|
+
* 3PL-R3. Confirms the replacement equipment was delivered, when the REPLACEMENT_AMCO work order reaches Delivered. This is the email that asks for the old unit back, so it carries the return deadline.
|
|
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.CreateAmcoReplacementDeliveredEmail
|
|
28
|
+
* @permission schema.action.createamcoreplacementdeliveredemail.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateAmcoReplacementDeliveredEmailDto 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 = 'CreateAmcoReplacementDeliveredEmail';
|
|
40
|
+
this.schemaActionId = 'a9d21ee8-9bcc-4a58-a23b-427745c7c8fc';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateAmcoReplacementDeliveredEmailDto = CreateAmcoReplacementDeliveredEmailDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateAmcoReplacementDeliveredEmailDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateAmcoReplacementDeliveredEmailDto.ACTION_KEY = 'CreateAmcoReplacementDeliveredEmail';
|
|
48
|
+
CreateAmcoReplacementDeliveredEmailDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
CreateAmcoReplacementDeliveredEmailDto.ENTITIES = ['Email'];
|
|
50
|
+
CreateAmcoReplacementDeliveredEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
CreateAmcoReplacementDeliveredEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementDeliveredEmail';
|
|
52
|
+
CreateAmcoReplacementDeliveredEmailDto.PERMISSION = 'schema.action.createamcoreplacementdeliveredemail.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateAmcoReplacementDeliveredEmailDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
CreateAmcoReplacementDeliveredEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
CreateAmcoReplacementDeliveredEmailDto.STEP_SCHEMA_ACTION_ID = 'a9d21ee8-9bcc-4a58-a23b-427745c7c8fc';
|
|
57
|
+
CreateAmcoReplacementDeliveredEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
CreateAmcoReplacementDeliveredEmailDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
CreateAmcoReplacementDeliveredEmailDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateAmcoReplacementFailedDeliveryEmail Action DTO
|
|
3
|
+
*
|
|
4
|
+
* 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey CreateAmcoReplacementFailedDeliveryEmail
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
|
|
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 CreateAmcoReplacementFailedDeliveryEmail created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateAmcoReplacementFailedDeliveryEmailMessage extends OdinRecordCreatedEvent<CreateAmcoReplacementFailedDeliveryEmailDto, CreateAmcoReplacementFailedDeliveryEmailProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateAmcoReplacementFailedDeliveryEmail action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 11
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAmcoReplacementFailedDeliveryEmailProperties {
|
|
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
|
+
* CreateAmcoReplacementFailedDeliveryEmail
|
|
109
|
+
*
|
|
110
|
+
* 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
|
|
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.CreateAmcoReplacementFailedDeliveryEmail
|
|
117
|
+
* @permission schema.action.createamcoreplacementfaileddeliveryemail.trigger
|
|
118
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
119
|
+
*/
|
|
120
|
+
export declare class CreateAmcoReplacementFailedDeliveryEmailDto extends OdinRecordCreateDto<CreateAmcoReplacementFailedDeliveryEmailProperties> {
|
|
121
|
+
/** Used by SDK generators to identify action type */
|
|
122
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
123
|
+
static readonly ACTION_KEY = "CreateAmcoReplacementFailedDeliveryEmail";
|
|
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.CreateAmcoReplacementFailedDeliveryEmail";
|
|
128
|
+
static readonly PERMISSION = "schema.action.createamcoreplacementfaileddeliveryemail.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 = "26502205-37ff-456a-a7c3-83a6ee8fb157";
|
|
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: CreateAmcoReplacementFailedDeliveryEmailProperties, options?: {
|
|
140
|
+
journeyId?: string;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateAmcoReplacementFailedDeliveryEmail Action DTO
|
|
4
|
+
*
|
|
5
|
+
* 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey CreateAmcoReplacementFailedDeliveryEmail
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateAmcoReplacementFailedDeliveryEmailDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateAmcoReplacementFailedDeliveryEmail
|
|
20
|
+
*
|
|
21
|
+
* 3PL-R4. Tells the customer their replacement equipment could not be delivered and is on its way back to us, when the REPLACEMENT_AMCO work order reaches Failed Delivery.
|
|
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.CreateAmcoReplacementFailedDeliveryEmail
|
|
28
|
+
* @permission schema.action.createamcoreplacementfaileddeliveryemail.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateAmcoReplacementFailedDeliveryEmailDto 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 = 'CreateAmcoReplacementFailedDeliveryEmail';
|
|
40
|
+
this.schemaActionId = '26502205-37ff-456a-a7c3-83a6ee8fb157';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateAmcoReplacementFailedDeliveryEmailDto = CreateAmcoReplacementFailedDeliveryEmailDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.ACTION_KEY = 'CreateAmcoReplacementFailedDeliveryEmail';
|
|
48
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.ENTITIES = ['Email'];
|
|
50
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateAmcoReplacementFailedDeliveryEmail';
|
|
52
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.PERMISSION = 'schema.action.createamcoreplacementfaileddeliveryemail.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.STEP_SCHEMA_ACTION_ID = '26502205-37ff-456a-a7c3-83a6ee8fb157';
|
|
57
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
CreateAmcoReplacementFailedDeliveryEmailDto.AUTO_LINK_PARENT = true;
|