@d19n/youfibre-odin-sdk 2.0.9 → 2.0.10-beta.1
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 +4 -2
- package/dist/actions-v2/SendOrderReferralRefereeNotQualifiedDto.d.ts +121 -0
- package/dist/actions-v2/SendOrderReferralRefereeNotQualifiedDto.js +59 -0
- package/dist/actions-v2/SendOrderReferralRefereePendingEmailDto.d.ts +128 -0
- package/dist/actions-v2/SendOrderReferralRefereePendingEmailDto.js +59 -0
- package/dist/api-sdk-v2/EmailApi.d.ts +2 -0
- package/dist/api-sdk-v2/EmailApi.js +6 -0
- package/dist/api-sdk-v2/ReferralApi.d.ts +2 -0
- package/dist/api-sdk-v2/ReferralApi.js +6 -0
- package/dist/db-sdk-v2/EmailDb.d.ts +2 -0
- package/dist/db-sdk-v2/EmailDb.js +6 -0
- package/dist/db-sdk-v2/ReferralDb.d.ts +2 -0
- package/dist/db-sdk-v2/ReferralDb.js +6 -0
- package/dist/entities-v2/Email.d.ts +170 -0
- package/dist/entities-v2/Email.js +11 -1
- package/dist/entities-v2/Product.d.ts +42 -0
- package/dist/entities-v2/Product.js +2 -0
- package/dist/entities-v2/Referral.d.ts +7 -0
- package/dist/entities-v2/Referral.js +5 -1
- package/dist/records-v2/EmailRecord.d.ts +97 -3
- package/dist/records-v2/EmailRecord.js +122 -1
- package/dist/records-v2/ReferralRecord.d.ts +20 -0
- package/dist/records-v2/ReferralRecord.js +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -269,7 +269,7 @@ This SDK includes **164** entities across **12** modules.
|
|
|
269
269
|
| **Conversation** | Conversation Entity Definition | DEFAULT |
|
|
270
270
|
| **ConversationFeedback** | ConversationFeedback Entity Definition | DEFAULT |
|
|
271
271
|
| **CustomerDeviceConfiguration** | CustomerDeviceConfiguration Entity Definition | DEFAULT |
|
|
272
|
-
| **Email** | Email Entity Definition | SUPPORT, TRANSACTIONAL |
|
|
272
|
+
| **Email** | Email Entity Definition | REFERRAL, SUPPORT, TRANSACTIONAL |
|
|
273
273
|
| **EmailSender** | EmailSender Entity Definition | DEFAULT |
|
|
274
274
|
| **EmailTemplate** | EmailTemplate Entity Definition | DEFAULT |
|
|
275
275
|
| **Message** | Message Entity Definition | EVENT |
|
|
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
|
|
|
352
352
|
|
|
353
353
|
## Actions
|
|
354
354
|
|
|
355
|
-
This SDK includes **
|
|
355
|
+
This SDK includes **561** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -1618,6 +1618,8 @@ This SDK includes **559** actions.
|
|
|
1618
1618
|
| Action | Type | Event |
|
|
1619
1619
|
|--------|------|-------|
|
|
1620
1620
|
| `CreateTransactionalEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionalEmail |
|
|
1621
|
+
| `SendOrderReferralRefereeNotQualified` | CREATE | k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified |
|
|
1622
|
+
| `SendOrderReferralRefereePendingEmail` | CREATE | k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail |
|
|
1621
1623
|
| `SendTlosNinjaCaseEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendTlosNinjaCaseEmail |
|
|
1622
1624
|
| `UpdateEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateEmail |
|
|
1623
1625
|
| `UpdateSupportEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateSupportEmail |
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SendOrderReferralRefereeNotQualified Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Order Referral Referee Not Qualified
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType REFERRAL
|
|
9
|
+
* @actionKey SendOrderReferralRefereeNotQualified
|
|
10
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified
|
|
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 SendOrderReferralRefereeNotQualified created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified
|
|
19
|
+
*/
|
|
20
|
+
export interface SendOrderReferralRefereeNotQualifiedMessage extends OdinRecordCreatedEvent<SendOrderReferralRefereeNotQualifiedDto, SendOrderReferralRefereeNotQualifiedProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for SendOrderReferralRefereeNotQualified action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 8
|
|
27
|
+
*/
|
|
28
|
+
export interface SendOrderReferralRefereeNotQualifiedProperties {
|
|
29
|
+
/**
|
|
30
|
+
* DynamicData
|
|
31
|
+
*
|
|
32
|
+
* Data will pass to emailing service (variables)
|
|
33
|
+
* @type {JSON}
|
|
34
|
+
*/
|
|
35
|
+
DynamicData?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Referral Id
|
|
38
|
+
*
|
|
39
|
+
* Reference to referral
|
|
40
|
+
* @type {LOOKUP}
|
|
41
|
+
*/
|
|
42
|
+
ReferralId?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* MessageId
|
|
45
|
+
*
|
|
46
|
+
* SMTP Message Id (Communications - Email)
|
|
47
|
+
* @type {TEXT}
|
|
48
|
+
*/
|
|
49
|
+
MessageId?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* ContactId
|
|
52
|
+
*
|
|
53
|
+
* The related Contact to send the email
|
|
54
|
+
* @type {LOOKUP}
|
|
55
|
+
*/
|
|
56
|
+
ContactId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Date
|
|
59
|
+
*
|
|
60
|
+
* Date field for Email records. Used by Communications team.
|
|
61
|
+
* @type {DATE_TIME}
|
|
62
|
+
*/
|
|
63
|
+
Date?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* TemplateLabel
|
|
66
|
+
*
|
|
67
|
+
* The template label from email templates engine
|
|
68
|
+
* @type {TEXT}
|
|
69
|
+
*/
|
|
70
|
+
TemplateLabel?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* To
|
|
73
|
+
*
|
|
74
|
+
* Data field for Email records. Used by Communications team.
|
|
75
|
+
* @type {TEXT}
|
|
76
|
+
*/
|
|
77
|
+
To?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Subject
|
|
80
|
+
*
|
|
81
|
+
* Data field for Email records. Used by Communications team.
|
|
82
|
+
* @type {TEXT}
|
|
83
|
+
*/
|
|
84
|
+
Subject?: string | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* SendOrderReferralRefereeNotQualified
|
|
88
|
+
*
|
|
89
|
+
* Order Referral Referee Not Qualified
|
|
90
|
+
*
|
|
91
|
+
* @actionType CREATE - Creates a new Email record
|
|
92
|
+
* @module NotificationModule
|
|
93
|
+
* @entity Email
|
|
94
|
+
* @entityType REFERRAL (REFERRAL)
|
|
95
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified
|
|
96
|
+
* @permission schema.action.sendorderreferralrefereenotqualified.trigger
|
|
97
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
98
|
+
*/
|
|
99
|
+
export declare class SendOrderReferralRefereeNotQualifiedDto extends OdinRecordCreateDto<SendOrderReferralRefereeNotQualifiedProperties> {
|
|
100
|
+
/** Used by SDK generators to identify action type */
|
|
101
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
102
|
+
static readonly ACTION_KEY = "SendOrderReferralRefereeNotQualified";
|
|
103
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
104
|
+
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "REFERRAL";
|
|
106
|
+
static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified";
|
|
107
|
+
static readonly PERMISSION = "schema.action.sendorderreferralrefereenotqualified.trigger";
|
|
108
|
+
/** Step metadata - entity this action targets */
|
|
109
|
+
static readonly STEP_ENTITY = "NotificationModule:Email";
|
|
110
|
+
static readonly STEP_SCHEMA_ID = "a3b4d6b7-0647-4202-90a6-036e3c87c5ae";
|
|
111
|
+
static readonly STEP_SCHEMA_ACTION_ID = "f1348e17-d8c9-40b5-ae07-c9d60c026fcd";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "d9d0bf79-8d32-4f71-a6d7-3ce74dd5ba16";
|
|
113
|
+
static readonly STEP_TYPE = "REFERRAL";
|
|
114
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
115
|
+
readonly actionName: string;
|
|
116
|
+
readonly schemaActionId: string;
|
|
117
|
+
readonly entity: string;
|
|
118
|
+
constructor(properties: SendOrderReferralRefereeNotQualifiedProperties, options?: {
|
|
119
|
+
journeyId?: string;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SendOrderReferralRefereeNotQualified Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Order Referral Referee Not Qualified
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType REFERRAL
|
|
10
|
+
* @actionKey SendOrderReferralRefereeNotQualified
|
|
11
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SendOrderReferralRefereeNotQualifiedDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* SendOrderReferralRefereeNotQualified
|
|
20
|
+
*
|
|
21
|
+
* Order Referral Referee Not Qualified
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new Email record
|
|
24
|
+
* @module NotificationModule
|
|
25
|
+
* @entity Email
|
|
26
|
+
* @entityType REFERRAL (REFERRAL)
|
|
27
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified
|
|
28
|
+
* @permission schema.action.sendorderreferralrefereenotqualified.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class SendOrderReferralRefereeNotQualifiedDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'NotificationModule:Email',
|
|
35
|
+
type: 'REFERRAL',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'SendOrderReferralRefereeNotQualified';
|
|
40
|
+
this.schemaActionId = 'f1348e17-d8c9-40b5-ae07-c9d60c026fcd';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.SendOrderReferralRefereeNotQualifiedDto = SendOrderReferralRefereeNotQualifiedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
SendOrderReferralRefereeNotQualifiedDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
SendOrderReferralRefereeNotQualifiedDto.ACTION_KEY = 'SendOrderReferralRefereeNotQualified';
|
|
48
|
+
SendOrderReferralRefereeNotQualifiedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
SendOrderReferralRefereeNotQualifiedDto.ENTITIES = ['Email'];
|
|
50
|
+
SendOrderReferralRefereeNotQualifiedDto.ENTITY_TYPE = 'REFERRAL';
|
|
51
|
+
SendOrderReferralRefereeNotQualifiedDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereeNotQualified';
|
|
52
|
+
SendOrderReferralRefereeNotQualifiedDto.PERMISSION = 'schema.action.sendorderreferralrefereenotqualified.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
SendOrderReferralRefereeNotQualifiedDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
SendOrderReferralRefereeNotQualifiedDto.STEP_SCHEMA_ID = 'a3b4d6b7-0647-4202-90a6-036e3c87c5ae';
|
|
56
|
+
SendOrderReferralRefereeNotQualifiedDto.STEP_SCHEMA_ACTION_ID = 'f1348e17-d8c9-40b5-ae07-c9d60c026fcd';
|
|
57
|
+
SendOrderReferralRefereeNotQualifiedDto.STEP_SCHEMA_TYPE_ID = 'd9d0bf79-8d32-4f71-a6d7-3ce74dd5ba16';
|
|
58
|
+
SendOrderReferralRefereeNotQualifiedDto.STEP_TYPE = 'REFERRAL';
|
|
59
|
+
SendOrderReferralRefereeNotQualifiedDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SendOrderReferralRefereePendingEmail Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Order Referral Referee Pending
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType REFERRAL
|
|
9
|
+
* @actionKey SendOrderReferralRefereePendingEmail
|
|
10
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail
|
|
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 SendOrderReferralRefereePendingEmail created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail
|
|
19
|
+
*/
|
|
20
|
+
export interface SendOrderReferralRefereePendingEmailMessage extends OdinRecordCreatedEvent<SendOrderReferralRefereePendingEmailDto, SendOrderReferralRefereePendingEmailProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for SendOrderReferralRefereePendingEmail action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 9
|
|
27
|
+
*/
|
|
28
|
+
export interface SendOrderReferralRefereePendingEmailProperties {
|
|
29
|
+
/**
|
|
30
|
+
* TemplateLabel
|
|
31
|
+
*
|
|
32
|
+
* The template label from email templates engine
|
|
33
|
+
* @type {TEXT}
|
|
34
|
+
*/
|
|
35
|
+
TemplateLabel?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* DynamicData
|
|
38
|
+
*
|
|
39
|
+
* Data will pass to emailing service (variables)
|
|
40
|
+
* @type {JSON}
|
|
41
|
+
*/
|
|
42
|
+
DynamicData?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* ContactId
|
|
45
|
+
*
|
|
46
|
+
* The related Contact to send the email
|
|
47
|
+
* @type {LOOKUP}
|
|
48
|
+
*/
|
|
49
|
+
ContactId?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* To
|
|
52
|
+
*
|
|
53
|
+
* Data field for Email records. Used by Communications team.
|
|
54
|
+
* @type {TEXT}
|
|
55
|
+
*/
|
|
56
|
+
To?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Subject
|
|
59
|
+
*
|
|
60
|
+
* Data field for Email records. Used by Communications team.
|
|
61
|
+
* @type {TEXT}
|
|
62
|
+
*/
|
|
63
|
+
Subject?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* MessageId
|
|
66
|
+
*
|
|
67
|
+
* SMTP Message Id (Communications - Email)
|
|
68
|
+
* @type {TEXT}
|
|
69
|
+
*/
|
|
70
|
+
MessageId?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Email Sender
|
|
73
|
+
*
|
|
74
|
+
* The Email Sender related entity
|
|
75
|
+
* @type {LOOKUP}
|
|
76
|
+
*/
|
|
77
|
+
EmailSenderId?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Date
|
|
80
|
+
*
|
|
81
|
+
* Date field for Email records. Used by Communications team.
|
|
82
|
+
* @type {DATE_TIME}
|
|
83
|
+
*/
|
|
84
|
+
Date?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Referral Id
|
|
87
|
+
*
|
|
88
|
+
* Reference to referral
|
|
89
|
+
* @type {LOOKUP}
|
|
90
|
+
*/
|
|
91
|
+
ReferralId?: string | null;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* SendOrderReferralRefereePendingEmail
|
|
95
|
+
*
|
|
96
|
+
* Order Referral Referee Pending
|
|
97
|
+
*
|
|
98
|
+
* @actionType CREATE - Creates a new Email record
|
|
99
|
+
* @module NotificationModule
|
|
100
|
+
* @entity Email
|
|
101
|
+
* @entityType REFERRAL (REFERRAL)
|
|
102
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail
|
|
103
|
+
* @permission schema.action.sendorderreferralrefereependingemail.trigger
|
|
104
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
105
|
+
*/
|
|
106
|
+
export declare class SendOrderReferralRefereePendingEmailDto extends OdinRecordCreateDto<SendOrderReferralRefereePendingEmailProperties> {
|
|
107
|
+
/** Used by SDK generators to identify action type */
|
|
108
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
109
|
+
static readonly ACTION_KEY = "SendOrderReferralRefereePendingEmail";
|
|
110
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
111
|
+
static readonly ENTITIES: string[];
|
|
112
|
+
static readonly ENTITY_TYPE = "REFERRAL";
|
|
113
|
+
static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail";
|
|
114
|
+
static readonly PERMISSION = "schema.action.sendorderreferralrefereependingemail.trigger";
|
|
115
|
+
/** Step metadata - entity this action targets */
|
|
116
|
+
static readonly STEP_ENTITY = "NotificationModule:Email";
|
|
117
|
+
static readonly STEP_SCHEMA_ID = "a3b4d6b7-0647-4202-90a6-036e3c87c5ae";
|
|
118
|
+
static readonly STEP_SCHEMA_ACTION_ID = "a103026a-b665-4927-9eea-c1a222f1a4dd";
|
|
119
|
+
static readonly STEP_SCHEMA_TYPE_ID = "d9d0bf79-8d32-4f71-a6d7-3ce74dd5ba16";
|
|
120
|
+
static readonly STEP_TYPE = "REFERRAL";
|
|
121
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
122
|
+
readonly actionName: string;
|
|
123
|
+
readonly schemaActionId: string;
|
|
124
|
+
readonly entity: string;
|
|
125
|
+
constructor(properties: SendOrderReferralRefereePendingEmailProperties, options?: {
|
|
126
|
+
journeyId?: string;
|
|
127
|
+
});
|
|
128
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SendOrderReferralRefereePendingEmail Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Order Referral Referee Pending
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType REFERRAL
|
|
10
|
+
* @actionKey SendOrderReferralRefereePendingEmail
|
|
11
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SendOrderReferralRefereePendingEmailDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* SendOrderReferralRefereePendingEmail
|
|
20
|
+
*
|
|
21
|
+
* Order Referral Referee Pending
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new Email record
|
|
24
|
+
* @module NotificationModule
|
|
25
|
+
* @entity Email
|
|
26
|
+
* @entityType REFERRAL (REFERRAL)
|
|
27
|
+
* @event k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail
|
|
28
|
+
* @permission schema.action.sendorderreferralrefereependingemail.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class SendOrderReferralRefereePendingEmailDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'NotificationModule:Email',
|
|
35
|
+
type: 'REFERRAL',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'SendOrderReferralRefereePendingEmail';
|
|
40
|
+
this.schemaActionId = 'a103026a-b665-4927-9eea-c1a222f1a4dd';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.SendOrderReferralRefereePendingEmailDto = SendOrderReferralRefereePendingEmailDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
SendOrderReferralRefereePendingEmailDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
SendOrderReferralRefereePendingEmailDto.ACTION_KEY = 'SendOrderReferralRefereePendingEmail';
|
|
48
|
+
SendOrderReferralRefereePendingEmailDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
SendOrderReferralRefereePendingEmailDto.ENTITIES = ['Email'];
|
|
50
|
+
SendOrderReferralRefereePendingEmailDto.ENTITY_TYPE = 'REFERRAL';
|
|
51
|
+
SendOrderReferralRefereePendingEmailDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.NotificationModule.Email.Create.SendOrderReferralRefereePendingEmail';
|
|
52
|
+
SendOrderReferralRefereePendingEmailDto.PERMISSION = 'schema.action.sendorderreferralrefereependingemail.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
SendOrderReferralRefereePendingEmailDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
SendOrderReferralRefereePendingEmailDto.STEP_SCHEMA_ID = 'a3b4d6b7-0647-4202-90a6-036e3c87c5ae';
|
|
56
|
+
SendOrderReferralRefereePendingEmailDto.STEP_SCHEMA_ACTION_ID = 'a103026a-b665-4927-9eea-c1a222f1a4dd';
|
|
57
|
+
SendOrderReferralRefereePendingEmailDto.STEP_SCHEMA_TYPE_ID = 'd9d0bf79-8d32-4f71-a6d7-3ce74dd5ba16';
|
|
58
|
+
SendOrderReferralRefereePendingEmailDto.STEP_TYPE = 'REFERRAL';
|
|
59
|
+
SendOrderReferralRefereePendingEmailDto.AUTO_LINK_PARENT = true;
|
|
@@ -24,6 +24,7 @@ export declare class EmailApi extends ApiProvider {
|
|
|
24
24
|
private _contact?;
|
|
25
25
|
private _emailsender?;
|
|
26
26
|
private _workorder?;
|
|
27
|
+
private _referral?;
|
|
27
28
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
28
29
|
get user(): ApiRecordLinkManager;
|
|
29
30
|
get email(): ApiRecordLinkManager;
|
|
@@ -32,6 +33,7 @@ export declare class EmailApi extends ApiProvider {
|
|
|
32
33
|
get contact(): ApiRecordLinkManager;
|
|
33
34
|
get emailsender(): ApiRecordLinkManager;
|
|
34
35
|
get workorder(): ApiRecordLinkManager;
|
|
36
|
+
get referral(): ApiRecordLinkManager;
|
|
35
37
|
setRecord(sourceRecord: any): void;
|
|
36
38
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
37
39
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailProperties>>>;
|
|
@@ -75,6 +75,12 @@ class EmailApi extends api_provider_1.ApiProvider {
|
|
|
75
75
|
}
|
|
76
76
|
return this._workorder;
|
|
77
77
|
}
|
|
78
|
+
get referral() {
|
|
79
|
+
if (!this._referral) {
|
|
80
|
+
this._referral = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Email', 'CrmModule:Referral', 'Referral__Email');
|
|
81
|
+
}
|
|
82
|
+
return this._referral;
|
|
83
|
+
}
|
|
78
84
|
// ============================================
|
|
79
85
|
// STANDARD METHODS (Unchanged API)
|
|
80
86
|
// ============================================
|
|
@@ -23,6 +23,7 @@ export declare class ReferralApi extends ApiProvider {
|
|
|
23
23
|
private _campaign?;
|
|
24
24
|
private _order?;
|
|
25
25
|
private _reward?;
|
|
26
|
+
private _email?;
|
|
26
27
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
27
28
|
get referrerreferrals(): ApiRecordLinkManager;
|
|
28
29
|
get refereereferrals(): ApiRecordLinkManager;
|
|
@@ -30,6 +31,7 @@ export declare class ReferralApi extends ApiProvider {
|
|
|
30
31
|
get campaign(): ApiRecordLinkManager;
|
|
31
32
|
get order(): ApiRecordLinkManager;
|
|
32
33
|
get reward(): ApiRecordLinkManager;
|
|
34
|
+
get email(): ApiRecordLinkManager;
|
|
33
35
|
setRecord(sourceRecord: any): void;
|
|
34
36
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
35
37
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ReferralProperties>>>;
|
|
@@ -69,6 +69,12 @@ class ReferralApi extends api_provider_1.ApiProvider {
|
|
|
69
69
|
}
|
|
70
70
|
return this._reward;
|
|
71
71
|
}
|
|
72
|
+
get email() {
|
|
73
|
+
if (!this._email) {
|
|
74
|
+
this._email = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Referral', 'NotificationModule:Email', 'Referral__Email');
|
|
75
|
+
}
|
|
76
|
+
return this._email;
|
|
77
|
+
}
|
|
72
78
|
// ============================================
|
|
73
79
|
// STANDARD METHODS (Unchanged API)
|
|
74
80
|
// ============================================
|
|
@@ -28,6 +28,7 @@ export declare class EmailDb extends DbProvider {
|
|
|
28
28
|
private _contact?;
|
|
29
29
|
private _emailsender?;
|
|
30
30
|
private _workorder?;
|
|
31
|
+
private _referral?;
|
|
31
32
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
32
33
|
get user(): DbRecordLinkManager;
|
|
33
34
|
get email(): DbRecordLinkManager;
|
|
@@ -36,6 +37,7 @@ export declare class EmailDb extends DbProvider {
|
|
|
36
37
|
get contact(): DbRecordLinkManager;
|
|
37
38
|
get emailsender(): DbRecordLinkManager;
|
|
38
39
|
get workorder(): DbRecordLinkManager;
|
|
40
|
+
get referral(): DbRecordLinkManager;
|
|
39
41
|
setRecord(sourceRecord: any): void;
|
|
40
42
|
/**
|
|
41
43
|
* Search records with manual pagination control
|
|
@@ -80,6 +80,12 @@ class EmailDb extends db_provider_1.DbProvider {
|
|
|
80
80
|
}
|
|
81
81
|
return this._workorder;
|
|
82
82
|
}
|
|
83
|
+
get referral() {
|
|
84
|
+
if (!this._referral) {
|
|
85
|
+
this._referral = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Email', 'CrmModule:Referral', 'Referral__Email');
|
|
86
|
+
}
|
|
87
|
+
return this._referral;
|
|
88
|
+
}
|
|
83
89
|
// ============================================
|
|
84
90
|
// STANDARD METHODS
|
|
85
91
|
// ============================================
|
|
@@ -27,6 +27,7 @@ export declare class ReferralDb extends DbProvider {
|
|
|
27
27
|
private _campaign?;
|
|
28
28
|
private _order?;
|
|
29
29
|
private _reward?;
|
|
30
|
+
private _email?;
|
|
30
31
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
31
32
|
get referrerreferrals(): DbRecordLinkManager;
|
|
32
33
|
get refereereferrals(): DbRecordLinkManager;
|
|
@@ -34,6 +35,7 @@ export declare class ReferralDb extends DbProvider {
|
|
|
34
35
|
get campaign(): DbRecordLinkManager;
|
|
35
36
|
get order(): DbRecordLinkManager;
|
|
36
37
|
get reward(): DbRecordLinkManager;
|
|
38
|
+
get email(): DbRecordLinkManager;
|
|
37
39
|
setRecord(sourceRecord: any): void;
|
|
38
40
|
/**
|
|
39
41
|
* Search records with manual pagination control
|
|
@@ -74,6 +74,12 @@ class ReferralDb extends db_provider_1.DbProvider {
|
|
|
74
74
|
}
|
|
75
75
|
return this._reward;
|
|
76
76
|
}
|
|
77
|
+
get email() {
|
|
78
|
+
if (!this._email) {
|
|
79
|
+
this._email = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Referral', 'NotificationModule:Email', 'Referral__Email');
|
|
80
|
+
}
|
|
81
|
+
return this._email;
|
|
82
|
+
}
|
|
77
83
|
// ============================================
|
|
78
84
|
// STANDARD METHODS
|
|
79
85
|
// ============================================
|