@d19n/youfibre-odin-sdk 2.0.80 → 2.0.82
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 +3 -1
- package/dist/actions-v2/SendDirectDebitCreatedEmailDto.d.ts +8 -1
- package/dist/actions-v2/SendDirectDebitFailedEmailDto.d.ts +121 -0
- package/dist/actions-v2/SendDirectDebitFailedEmailDto.js +59 -0
- package/dist/actions-v2/SendDirectDebitSetupConfirmationEmailDto.d.ts +8 -1
- package/dist/actions-v2/SendDirectDebitSetupRequestDto.d.ts +121 -0
- package/dist/actions-v2/SendDirectDebitSetupRequestDto.js +59 -0
- package/dist/actions-v2/SendRefundTransactionEmailDto.d.ts +8 -1
- package/dist/api-sdk-v2/ProductApi.d.ts +2 -2
- package/dist/api-sdk-v2/ProductApi.js +6 -6
- package/dist/api-sdk-v2/ServiceApi.d.ts +2 -2
- package/dist/api-sdk-v2/ServiceApi.js +6 -6
- package/dist/db-sdk-v2/FileDb.d.ts +122 -122
- package/dist/db-sdk-v2/FileDb.js +247 -247
- package/dist/db-sdk-v2/ProductDb.d.ts +2 -2
- package/dist/db-sdk-v2/ProductDb.js +6 -6
- package/dist/db-sdk-v2/ServiceDb.d.ts +2 -2
- package/dist/db-sdk-v2/ServiceDb.js +6 -6
- package/dist/entities-v2/Product.d.ts +7 -7
- package/dist/entities-v2/Product.js +6 -6
- package/dist/entities-v2/Service.d.ts +2 -2
- package/dist/records-v2/EmailRecord.d.ts +58 -0
- package/dist/records-v2/EmailRecord.js +72 -0
- package/dist/records-v2/ProductRecord.d.ts +20 -20
- package/dist/records-v2/ProductRecord.js +33 -33
- package/dist/records-v2/ServiceRecord.d.ts +19 -19
- package/dist/records-v2/ServiceRecord.js +32 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -351,7 +351,7 @@ This SDK includes **163** entities across **12** modules.
|
|
|
351
351
|
|
|
352
352
|
## Actions
|
|
353
353
|
|
|
354
|
-
This SDK includes **
|
|
354
|
+
This SDK includes **606** actions.
|
|
355
355
|
|
|
356
356
|
### Action Types
|
|
357
357
|
|
|
@@ -1206,7 +1206,9 @@ This SDK includes **604** actions.
|
|
|
1206
1206
|
| `CreateOrderReferralReferrerQualifiedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderReferralReferrerQualifiedEmail |
|
|
1207
1207
|
| `CreateTransactionalEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateTransactionalEmail |
|
|
1208
1208
|
| `SendDirectDebitCreatedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitCreatedEmail |
|
|
1209
|
+
| `SendDirectDebitFailedEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail |
|
|
1209
1210
|
| `SendDirectDebitSetupConfirmationEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupConfirmationEmail |
|
|
1211
|
+
| `SendDirectDebitSetupRequest` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest |
|
|
1210
1212
|
| `SendRefundTransactionEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendRefundTransactionEmail |
|
|
1211
1213
|
| `SendTlosNinjaCaseEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.SendTlosNinjaCaseEmail |
|
|
1212
1214
|
| `UpdateEmail` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Email.Update.UpdateEmail |
|
|
@@ -23,7 +23,7 @@ export interface SendDirectDebitCreatedEmailMessage extends OdinRecordCreatedEve
|
|
|
23
23
|
* Properties for SendDirectDebitCreatedEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 8
|
|
27
27
|
*/
|
|
28
28
|
export interface SendDirectDebitCreatedEmailProperties {
|
|
29
29
|
/**
|
|
@@ -75,6 +75,13 @@ export interface SendDirectDebitCreatedEmailProperties {
|
|
|
75
75
|
* @type {JSON}
|
|
76
76
|
*/
|
|
77
77
|
DynamicData?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Title
|
|
80
|
+
*
|
|
81
|
+
* Used for title
|
|
82
|
+
* @type {TEXT}
|
|
83
|
+
*/
|
|
84
|
+
Title?: string | null;
|
|
78
85
|
}
|
|
79
86
|
/**
|
|
80
87
|
* SendDirectDebitCreatedEmail
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SendDirectDebitFailedEmail Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Send Email when Payment method setup failed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey SendDirectDebitFailedEmail
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail
|
|
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 SendDirectDebitFailedEmail created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail
|
|
19
|
+
*/
|
|
20
|
+
export interface SendDirectDebitFailedEmailMessage extends OdinRecordCreatedEvent<SendDirectDebitFailedEmailDto, SendDirectDebitFailedEmailProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for SendDirectDebitFailedEmail action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 8
|
|
27
|
+
*/
|
|
28
|
+
export interface SendDirectDebitFailedEmailProperties {
|
|
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
|
+
/**
|
|
87
|
+
* SendDirectDebitFailedEmail
|
|
88
|
+
*
|
|
89
|
+
* Send Email when Payment method setup failed
|
|
90
|
+
*
|
|
91
|
+
* @actionType CREATE - Creates a new Email record
|
|
92
|
+
* @module NotificationModule
|
|
93
|
+
* @entity Email
|
|
94
|
+
* @entityType TRANSACTIONAL (TRANSACTIONAL)
|
|
95
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail
|
|
96
|
+
* @permission schema.action.senddirectdebitfailedemail.trigger
|
|
97
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
98
|
+
*/
|
|
99
|
+
export declare class SendDirectDebitFailedEmailDto extends OdinRecordCreateDto<SendDirectDebitFailedEmailProperties> {
|
|
100
|
+
/** Used by SDK generators to identify action type */
|
|
101
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
102
|
+
static readonly ACTION_KEY = "SendDirectDebitFailedEmail";
|
|
103
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
104
|
+
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "TRANSACTIONAL";
|
|
106
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail";
|
|
107
|
+
static readonly PERMISSION = "schema.action.senddirectdebitfailedemail.trigger";
|
|
108
|
+
/** Step metadata - entity this action targets */
|
|
109
|
+
static readonly STEP_ENTITY = "NotificationModule:Email";
|
|
110
|
+
static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
|
|
111
|
+
static readonly STEP_SCHEMA_ACTION_ID = "3e331ae2-76ac-49a5-9759-ecbb9cde0da0";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
|
|
113
|
+
static readonly STEP_TYPE = "TRANSACTIONAL";
|
|
114
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
115
|
+
readonly actionName: string;
|
|
116
|
+
readonly schemaActionId: string;
|
|
117
|
+
readonly entity: string;
|
|
118
|
+
constructor(properties: SendDirectDebitFailedEmailProperties, options?: {
|
|
119
|
+
journeyId?: string;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SendDirectDebitFailedEmail Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Send Email when Payment method setup failed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey SendDirectDebitFailedEmail
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SendDirectDebitFailedEmailDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* SendDirectDebitFailedEmail
|
|
20
|
+
*
|
|
21
|
+
* Send Email when Payment method setup failed
|
|
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.SendDirectDebitFailedEmail
|
|
28
|
+
* @permission schema.action.senddirectdebitfailedemail.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class SendDirectDebitFailedEmailDto 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 = 'SendDirectDebitFailedEmail';
|
|
40
|
+
this.schemaActionId = '3e331ae2-76ac-49a5-9759-ecbb9cde0da0';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.SendDirectDebitFailedEmailDto = SendDirectDebitFailedEmailDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
SendDirectDebitFailedEmailDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
SendDirectDebitFailedEmailDto.ACTION_KEY = 'SendDirectDebitFailedEmail';
|
|
48
|
+
SendDirectDebitFailedEmailDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
SendDirectDebitFailedEmailDto.ENTITIES = ['Email'];
|
|
50
|
+
SendDirectDebitFailedEmailDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
SendDirectDebitFailedEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitFailedEmail';
|
|
52
|
+
SendDirectDebitFailedEmailDto.PERMISSION = 'schema.action.senddirectdebitfailedemail.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
SendDirectDebitFailedEmailDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
SendDirectDebitFailedEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
SendDirectDebitFailedEmailDto.STEP_SCHEMA_ACTION_ID = '3e331ae2-76ac-49a5-9759-ecbb9cde0da0';
|
|
57
|
+
SendDirectDebitFailedEmailDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
SendDirectDebitFailedEmailDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
SendDirectDebitFailedEmailDto.AUTO_LINK_PARENT = true;
|
|
@@ -23,7 +23,7 @@ export interface SendDirectDebitSetupConfirmationEmailMessage extends OdinRecord
|
|
|
23
23
|
* Properties for SendDirectDebitSetupConfirmationEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 8
|
|
27
27
|
*/
|
|
28
28
|
export interface SendDirectDebitSetupConfirmationEmailProperties {
|
|
29
29
|
/**
|
|
@@ -75,6 +75,13 @@ export interface SendDirectDebitSetupConfirmationEmailProperties {
|
|
|
75
75
|
* @type {JSON}
|
|
76
76
|
*/
|
|
77
77
|
DynamicData?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Title
|
|
80
|
+
*
|
|
81
|
+
* Used for title
|
|
82
|
+
* @type {TEXT}
|
|
83
|
+
*/
|
|
84
|
+
Title?: string | null;
|
|
78
85
|
}
|
|
79
86
|
/**
|
|
80
87
|
* SendDirectDebitSetupConfirmationEmail
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SendDirectDebitSetupRequest Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Send email to request direct debit setup
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey SendDirectDebitSetupRequest
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest
|
|
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 SendDirectDebitSetupRequest created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface SendDirectDebitSetupRequestMessage extends OdinRecordCreatedEvent<SendDirectDebitSetupRequestDto, SendDirectDebitSetupRequestProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for SendDirectDebitSetupRequest action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 8
|
|
27
|
+
*/
|
|
28
|
+
export interface SendDirectDebitSetupRequestProperties {
|
|
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
|
+
/**
|
|
87
|
+
* SendDirectDebitSetupRequest
|
|
88
|
+
*
|
|
89
|
+
* Send email to request direct debit setup
|
|
90
|
+
*
|
|
91
|
+
* @actionType CREATE - Creates a new Email record
|
|
92
|
+
* @module NotificationModule
|
|
93
|
+
* @entity Email
|
|
94
|
+
* @entityType TRANSACTIONAL (TRANSACTIONAL)
|
|
95
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest
|
|
96
|
+
* @permission schema.action.senddirectdebitsetuprequest.trigger
|
|
97
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
98
|
+
*/
|
|
99
|
+
export declare class SendDirectDebitSetupRequestDto extends OdinRecordCreateDto<SendDirectDebitSetupRequestProperties> {
|
|
100
|
+
/** Used by SDK generators to identify action type */
|
|
101
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
102
|
+
static readonly ACTION_KEY = "SendDirectDebitSetupRequest";
|
|
103
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
104
|
+
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "TRANSACTIONAL";
|
|
106
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest";
|
|
107
|
+
static readonly PERMISSION = "schema.action.senddirectdebitsetuprequest.trigger";
|
|
108
|
+
/** Step metadata - entity this action targets */
|
|
109
|
+
static readonly STEP_ENTITY = "NotificationModule:Email";
|
|
110
|
+
static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
|
|
111
|
+
static readonly STEP_SCHEMA_ACTION_ID = "1b3a993b-effc-4b07-b005-e5abb552e050";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
|
|
113
|
+
static readonly STEP_TYPE = "TRANSACTIONAL";
|
|
114
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
115
|
+
readonly actionName: string;
|
|
116
|
+
readonly schemaActionId: string;
|
|
117
|
+
readonly entity: string;
|
|
118
|
+
constructor(properties: SendDirectDebitSetupRequestProperties, options?: {
|
|
119
|
+
journeyId?: string;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SendDirectDebitSetupRequest Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Send email to request direct debit setup
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey SendDirectDebitSetupRequest
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SendDirectDebitSetupRequestDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* SendDirectDebitSetupRequest
|
|
20
|
+
*
|
|
21
|
+
* Send email to request direct debit setup
|
|
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.SendDirectDebitSetupRequest
|
|
28
|
+
* @permission schema.action.senddirectdebitsetuprequest.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class SendDirectDebitSetupRequestDto 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 = 'SendDirectDebitSetupRequest';
|
|
40
|
+
this.schemaActionId = '1b3a993b-effc-4b07-b005-e5abb552e050';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.SendDirectDebitSetupRequestDto = SendDirectDebitSetupRequestDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
SendDirectDebitSetupRequestDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
SendDirectDebitSetupRequestDto.ACTION_KEY = 'SendDirectDebitSetupRequest';
|
|
48
|
+
SendDirectDebitSetupRequestDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
SendDirectDebitSetupRequestDto.ENTITIES = ['Email'];
|
|
50
|
+
SendDirectDebitSetupRequestDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
SendDirectDebitSetupRequestDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.SendDirectDebitSetupRequest';
|
|
52
|
+
SendDirectDebitSetupRequestDto.PERMISSION = 'schema.action.senddirectdebitsetuprequest.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
SendDirectDebitSetupRequestDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
SendDirectDebitSetupRequestDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
SendDirectDebitSetupRequestDto.STEP_SCHEMA_ACTION_ID = '1b3a993b-effc-4b07-b005-e5abb552e050';
|
|
57
|
+
SendDirectDebitSetupRequestDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
SendDirectDebitSetupRequestDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
SendDirectDebitSetupRequestDto.AUTO_LINK_PARENT = true;
|
|
@@ -22,7 +22,7 @@ export interface SendRefundTransactionEmailMessage extends OdinRecordCreatedEven
|
|
|
22
22
|
* Properties for SendRefundTransactionEmail action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 8
|
|
26
26
|
*/
|
|
27
27
|
export interface SendRefundTransactionEmailProperties {
|
|
28
28
|
/**
|
|
@@ -74,6 +74,13 @@ export interface SendRefundTransactionEmailProperties {
|
|
|
74
74
|
* @type {JSON}
|
|
75
75
|
*/
|
|
76
76
|
DynamicData?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Title
|
|
79
|
+
*
|
|
80
|
+
* Used for title
|
|
81
|
+
* @type {TEXT}
|
|
82
|
+
*/
|
|
83
|
+
Title?: string | null;
|
|
77
84
|
}
|
|
78
85
|
/**
|
|
79
86
|
* SendRefundTransactionEmail
|
|
@@ -20,7 +20,6 @@ export declare class ProductApi extends ApiProvider {
|
|
|
20
20
|
private _lead?;
|
|
21
21
|
private _restriction?;
|
|
22
22
|
private _consumptionschedule?;
|
|
23
|
-
private _service?;
|
|
24
23
|
private _pricebook?;
|
|
25
24
|
private _orderitem?;
|
|
26
25
|
private _offer?;
|
|
@@ -28,11 +27,11 @@ export declare class ProductApi extends ApiProvider {
|
|
|
28
27
|
private _product?;
|
|
29
28
|
private _vendor?;
|
|
30
29
|
private _fieldserviceproduct?;
|
|
30
|
+
private _service?;
|
|
31
31
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
32
32
|
get lead(): ApiRecordLinkManager;
|
|
33
33
|
get restriction(): ApiRecordLinkManager;
|
|
34
34
|
get consumptionschedule(): ApiRecordLinkManager;
|
|
35
|
-
get service(): ApiRecordLinkManager;
|
|
36
35
|
get pricebook(): ApiRecordLinkManager;
|
|
37
36
|
get orderitem(): ApiRecordLinkManager;
|
|
38
37
|
get offer(): ApiRecordLinkManager;
|
|
@@ -40,6 +39,7 @@ export declare class ProductApi extends ApiProvider {
|
|
|
40
39
|
get product(): ApiRecordLinkManager;
|
|
41
40
|
get vendor(): ApiRecordLinkManager;
|
|
42
41
|
get fieldserviceproduct(): ApiRecordLinkManager;
|
|
42
|
+
get service(): ApiRecordLinkManager;
|
|
43
43
|
setRecord(sourceRecord: any): void;
|
|
44
44
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
45
45
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ProductProperties>>>;
|
|
@@ -51,12 +51,6 @@ class ProductApi extends api_provider_1.ApiProvider {
|
|
|
51
51
|
}
|
|
52
52
|
return this._consumptionschedule;
|
|
53
53
|
}
|
|
54
|
-
get service() {
|
|
55
|
-
if (!this._service) {
|
|
56
|
-
this._service = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Product', 'ServiceModule:Service', 'Product__Service');
|
|
57
|
-
}
|
|
58
|
-
return this._service;
|
|
59
|
-
}
|
|
60
54
|
get pricebook() {
|
|
61
55
|
if (!this._pricebook) {
|
|
62
56
|
this._pricebook = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Product', 'ProductModule:PriceBook', 'PriceBook__Product');
|
|
@@ -99,6 +93,12 @@ class ProductApi extends api_provider_1.ApiProvider {
|
|
|
99
93
|
}
|
|
100
94
|
return this._fieldserviceproduct;
|
|
101
95
|
}
|
|
96
|
+
get service() {
|
|
97
|
+
if (!this._service) {
|
|
98
|
+
this._service = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Product', 'ServiceModule:Service', 'Product__Service');
|
|
99
|
+
}
|
|
100
|
+
return this._service;
|
|
101
|
+
}
|
|
102
102
|
// ============================================
|
|
103
103
|
// STANDARD METHODS (Unchanged API)
|
|
104
104
|
// ============================================
|
|
@@ -17,11 +17,11 @@ export declare class ServiceApi extends ApiProvider {
|
|
|
17
17
|
private readonly moduleName;
|
|
18
18
|
private readonly entityName;
|
|
19
19
|
private sourceRecord;
|
|
20
|
-
private _product?;
|
|
21
20
|
private _service?;
|
|
21
|
+
private _product?;
|
|
22
22
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
23
|
-
get product(): ApiRecordLinkManager;
|
|
24
23
|
get service(): ApiRecordLinkManager;
|
|
24
|
+
get product(): ApiRecordLinkManager;
|
|
25
25
|
setRecord(sourceRecord: any): void;
|
|
26
26
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
27
27
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ServiceProperties>>>;
|
|
@@ -33,18 +33,18 @@ class ServiceApi extends api_provider_1.ApiProvider {
|
|
|
33
33
|
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
34
34
|
// ============================================
|
|
35
35
|
// Usage remains identical: api.address.list(recordId)
|
|
36
|
-
get product() {
|
|
37
|
-
if (!this._product) {
|
|
38
|
-
this._product = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:Service', 'ProductModule:Product', 'Product__Service');
|
|
39
|
-
}
|
|
40
|
-
return this._product;
|
|
41
|
-
}
|
|
42
36
|
get service() {
|
|
43
37
|
if (!this._service) {
|
|
44
38
|
this._service = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:Service', 'ServiceModule:Service', 'Service__Service');
|
|
45
39
|
}
|
|
46
40
|
return this._service;
|
|
47
41
|
}
|
|
42
|
+
get product() {
|
|
43
|
+
if (!this._product) {
|
|
44
|
+
this._product = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:Service', 'ProductModule:Product', 'Product__Service');
|
|
45
|
+
}
|
|
46
|
+
return this._product;
|
|
47
|
+
}
|
|
48
48
|
// ============================================
|
|
49
49
|
// STANDARD METHODS (Unchanged API)
|
|
50
50
|
// ============================================
|