@d19n/youfibre-odin-sdk 2.0.325 → 2.0.326
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 +2 -1
- package/dist/actions-v2/CreateRollingContractSummaryDto.d.ts +135 -0
- package/dist/actions-v2/CreateRollingContractSummaryDto.js +59 -0
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +2 -2
- package/dist/records-v2/EmailRecord.d.ts +29 -0
- package/dist/records-v2/EmailRecord.js +36 -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 **885** actions.
|
|
379
379
|
|
|
380
380
|
### Action Types
|
|
381
381
|
|
|
@@ -1433,6 +1433,7 @@ This SDK includes **884** actions.
|
|
|
1433
1433
|
| `CreateRecontractOrderConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractOrderConfirmation |
|
|
1434
1434
|
| `CreateRecontractReminderEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRecontractReminderEmail |
|
|
1435
1435
|
| `CreateRegisterInterestEmail` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRegisterInterestEmail |
|
|
1436
|
+
| `CreateRollingContractSummary` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRollingContractSummary |
|
|
1436
1437
|
| `CreateServiceAppointmentConfirmation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceAppointmentConfirmation |
|
|
1437
1438
|
| `CreateServiceAppointmentRescheduled` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceAppointmentRescheduled |
|
|
1438
1439
|
| `CreateServiceDeactivatedMandate` | CREATE | k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateServiceDeactivatedMandate |
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateRollingContractSummary Action DTO
|
|
3
|
+
*
|
|
4
|
+
* OT-1870. Send the monthly rolling contract summary on the day a fixed term ends.
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Email
|
|
8
|
+
* @entityType TRANSACTIONAL
|
|
9
|
+
* @actionKey CreateRollingContractSummary
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRollingContractSummary
|
|
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 CreateRollingContractSummary created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRollingContractSummary
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateRollingContractSummaryMessage extends OdinRecordCreatedEvent<CreateRollingContractSummaryDto, CreateRollingContractSummaryProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateRollingContractSummary action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 0
|
|
26
|
+
* @property Optional fields: 10
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateRollingContractSummaryProperties {
|
|
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
|
+
* CreateRollingContractSummary
|
|
102
|
+
*
|
|
103
|
+
* OT-1870. Send the monthly rolling contract summary on the day a fixed term ends.
|
|
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.CreateRollingContractSummary
|
|
110
|
+
* @permission schema.action.createrollingcontractsummary.trigger
|
|
111
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
112
|
+
*/
|
|
113
|
+
export declare class CreateRollingContractSummaryDto extends OdinRecordCreateDto<CreateRollingContractSummaryProperties> {
|
|
114
|
+
/** Used by SDK generators to identify action type */
|
|
115
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
116
|
+
static readonly ACTION_KEY = "CreateRollingContractSummary";
|
|
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.CreateRollingContractSummary";
|
|
121
|
+
static readonly PERMISSION = "schema.action.createrollingcontractsummary.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 = "b3dd4243-df50-4187-a7f9-5a2f5e4e49c8";
|
|
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: CreateRollingContractSummaryProperties, options?: {
|
|
133
|
+
journeyId?: string;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateRollingContractSummary Action DTO
|
|
4
|
+
*
|
|
5
|
+
* OT-1870. Send the monthly rolling contract summary on the day a fixed term ends.
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Email
|
|
9
|
+
* @entityType TRANSACTIONAL
|
|
10
|
+
* @actionKey CreateRollingContractSummary
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRollingContractSummary
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateRollingContractSummaryDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateRollingContractSummary
|
|
20
|
+
*
|
|
21
|
+
* OT-1870. Send the monthly rolling contract summary on the day a fixed term ends.
|
|
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.CreateRollingContractSummary
|
|
28
|
+
* @permission schema.action.createrollingcontractsummary.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateRollingContractSummaryDto 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 = 'CreateRollingContractSummary';
|
|
40
|
+
this.schemaActionId = 'b3dd4243-df50-4187-a7f9-5a2f5e4e49c8';
|
|
41
|
+
this.entity = 'NotificationModule:Email';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateRollingContractSummaryDto = CreateRollingContractSummaryDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateRollingContractSummaryDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateRollingContractSummaryDto.ACTION_KEY = 'CreateRollingContractSummary';
|
|
48
|
+
CreateRollingContractSummaryDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
CreateRollingContractSummaryDto.ENTITIES = ['Email'];
|
|
50
|
+
CreateRollingContractSummaryDto.ENTITY_TYPE = 'TRANSACTIONAL';
|
|
51
|
+
CreateRollingContractSummaryDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateRollingContractSummary';
|
|
52
|
+
CreateRollingContractSummaryDto.PERMISSION = 'schema.action.createrollingcontractsummary.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateRollingContractSummaryDto.STEP_ENTITY = 'NotificationModule:Email';
|
|
55
|
+
CreateRollingContractSummaryDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
|
|
56
|
+
CreateRollingContractSummaryDto.STEP_SCHEMA_ACTION_ID = 'b3dd4243-df50-4187-a7f9-5a2f5e4e49c8';
|
|
57
|
+
CreateRollingContractSummaryDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
|
|
58
|
+
CreateRollingContractSummaryDto.STEP_TYPE = 'TRANSACTIONAL';
|
|
59
|
+
CreateRollingContractSummaryDto.AUTO_LINK_PARENT = true;
|
|
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
|
|
|
23
23
|
* Use these constants instead of string literals for type safety
|
|
24
24
|
*/
|
|
25
25
|
export declare enum ConfigPropertyKeys {
|
|
26
|
-
/** Data field for Config records. Used by Platform team. */
|
|
27
|
-
Test = "Test",
|
|
28
26
|
/** the name of the app this config relates to (Platform - Config) */
|
|
29
27
|
AppName = "AppName",
|
|
30
28
|
/** object of { key: value } mappings (Platform - Config) */
|
|
31
|
-
Mappings = "Mappings"
|
|
29
|
+
Mappings = "Mappings",
|
|
30
|
+
/** Data field for Config records. Used by Platform team. */
|
|
31
|
+
Test = "Test"
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Properties for Config records
|
|
@@ -36,11 +36,6 @@ export declare enum ConfigPropertyKeys {
|
|
|
36
36
|
* @see SchemaModule:Config
|
|
37
37
|
*/
|
|
38
38
|
export interface ConfigProperties {
|
|
39
|
-
/** Data field for Config records. Used by Platform team.
|
|
40
|
-
*
|
|
41
|
-
* @type {TEXT}
|
|
42
|
-
*/
|
|
43
|
-
Test: string;
|
|
44
39
|
/** the name of the app this config relates to (Platform - Config)
|
|
45
40
|
*
|
|
46
41
|
* @type {TEXT}
|
|
@@ -51,6 +46,11 @@ export interface ConfigProperties {
|
|
|
51
46
|
* @type {JSON}
|
|
52
47
|
*/
|
|
53
48
|
Mappings: string;
|
|
49
|
+
/** Data field for Config records. Used by Platform team.
|
|
50
|
+
*
|
|
51
|
+
* @type {TEXT}
|
|
52
|
+
*/
|
|
53
|
+
Test: string;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Config entity from SchemaModule
|
|
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
|
|
|
28
28
|
*/
|
|
29
29
|
var ConfigPropertyKeys;
|
|
30
30
|
(function (ConfigPropertyKeys) {
|
|
31
|
-
/** Data field for Config records. Used by Platform team. */
|
|
32
|
-
ConfigPropertyKeys["Test"] = "Test";
|
|
33
31
|
/** the name of the app this config relates to (Platform - Config) */
|
|
34
32
|
ConfigPropertyKeys["AppName"] = "AppName";
|
|
35
33
|
/** object of { key: value } mappings (Platform - Config) */
|
|
36
34
|
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
|
+
/** Data field for Config records. Used by Platform team. */
|
|
36
|
+
ConfigPropertyKeys["Test"] = "Test";
|
|
37
37
|
})(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
|
|
38
38
|
/**
|
|
39
39
|
* Config entity from SchemaModule
|
|
@@ -69,6 +69,7 @@ import { CreatePreContractOrderSummaryProperties } from '../actions-v2/CreatePre
|
|
|
69
69
|
import { CreateRecontractOrderConfirmationProperties } from '../actions-v2/CreateRecontractOrderConfirmationDto';
|
|
70
70
|
import { CreateRecontractReminderEmailProperties } from '../actions-v2/CreateRecontractReminderEmailDto';
|
|
71
71
|
import { CreateRegisterInterestEmailProperties } from '../actions-v2/CreateRegisterInterestEmailDto';
|
|
72
|
+
import { CreateRollingContractSummaryProperties } from '../actions-v2/CreateRollingContractSummaryDto';
|
|
72
73
|
import { CreateServiceAppointmentConfirmationProperties } from '../actions-v2/CreateServiceAppointmentConfirmationDto';
|
|
73
74
|
import { CreateServiceAppointmentRescheduledProperties } from '../actions-v2/CreateServiceAppointmentRescheduledDto';
|
|
74
75
|
import { CreateServiceDeactivatedMandateProperties } from '../actions-v2/CreateServiceDeactivatedMandateDto';
|
|
@@ -1649,6 +1650,34 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
1649
1650
|
journeyId?: string;
|
|
1650
1651
|
stageKey?: string;
|
|
1651
1652
|
}): ActionBuilder;
|
|
1653
|
+
/**
|
|
1654
|
+
* CreateRollingContractSummary
|
|
1655
|
+
*
|
|
1656
|
+
* Creates a new Email record with the specified properties.
|
|
1657
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
1658
|
+
*
|
|
1659
|
+
* @remarks Record type: TRANSACTIONAL
|
|
1660
|
+
*
|
|
1661
|
+
* @param properties - The properties for the new record
|
|
1662
|
+
* @param options - Optional settings
|
|
1663
|
+
* @param options.journeyId - Associate with a journey
|
|
1664
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
1665
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
1666
|
+
*
|
|
1667
|
+
* @example
|
|
1668
|
+
* ```typescript
|
|
1669
|
+
* // Create with properties
|
|
1670
|
+
* const record = odinClient.emails.new();
|
|
1671
|
+
* await record.createRollingContractSummary({ ... }).execute();
|
|
1672
|
+
*
|
|
1673
|
+
* // Dry run (for debugging)
|
|
1674
|
+
* const payload = record.createRollingContractSummary({ ... }).dryRun();
|
|
1675
|
+
* ```
|
|
1676
|
+
*/
|
|
1677
|
+
createRollingContractSummary(properties?: CreateRollingContractSummaryProperties, options?: {
|
|
1678
|
+
journeyId?: string;
|
|
1679
|
+
stageKey?: string;
|
|
1680
|
+
}): ActionBuilder;
|
|
1652
1681
|
/**
|
|
1653
1682
|
* CreateServiceAppointmentConfirmation
|
|
1654
1683
|
*
|
|
@@ -2075,6 +2075,42 @@ class EmailRecord {
|
|
|
2075
2075
|
};
|
|
2076
2076
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
2077
2077
|
}
|
|
2078
|
+
/**
|
|
2079
|
+
* CreateRollingContractSummary
|
|
2080
|
+
*
|
|
2081
|
+
* Creates a new Email record with the specified properties.
|
|
2082
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
2083
|
+
*
|
|
2084
|
+
* @remarks Record type: TRANSACTIONAL
|
|
2085
|
+
*
|
|
2086
|
+
* @param properties - The properties for the new record
|
|
2087
|
+
* @param options - Optional settings
|
|
2088
|
+
* @param options.journeyId - Associate with a journey
|
|
2089
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
2090
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
2091
|
+
*
|
|
2092
|
+
* @example
|
|
2093
|
+
* ```typescript
|
|
2094
|
+
* // Create with properties
|
|
2095
|
+
* const record = odinClient.emails.new();
|
|
2096
|
+
* await record.createRollingContractSummary({ ... }).execute();
|
|
2097
|
+
*
|
|
2098
|
+
* // Dry run (for debugging)
|
|
2099
|
+
* const payload = record.createRollingContractSummary({ ... }).dryRun();
|
|
2100
|
+
* ```
|
|
2101
|
+
*/
|
|
2102
|
+
createRollingContractSummary(properties, options) {
|
|
2103
|
+
const payload = {
|
|
2104
|
+
entity: 'NotificationModule:Email',
|
|
2105
|
+
type: 'TRANSACTIONAL',
|
|
2106
|
+
actionName: 'CreateRollingContractSummary',
|
|
2107
|
+
properties: properties || {},
|
|
2108
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
2109
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
2110
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
2111
|
+
};
|
|
2112
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
2113
|
+
}
|
|
2078
2114
|
/**
|
|
2079
2115
|
* CreateServiceAppointmentConfirmation
|
|
2080
2116
|
*
|