@d19n/youfibre-odin-sdk 1.0.324 → 1.0.325
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/dist/actions-v2/CreateCaseForChatDto.d.ts +3 -4
- package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +10 -9
- package/dist/actions-v2/CreateSocialMediaCaseDto.d.ts +3 -4
- package/dist/actions-v2/UpdateEmailDto.d.ts +9 -10
- package/dist/records-v2/EmailRecord.d.ts +7 -6
- package/dist/records-v2/EmailRecord.js +15 -7
- package/package.json +1 -1
|
@@ -15,8 +15,8 @@ import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdated
|
|
|
15
15
|
/**
|
|
16
16
|
* Properties for CreateSocialMediaCase action
|
|
17
17
|
*
|
|
18
|
-
* @property Required fields:
|
|
19
|
-
* @property Optional fields:
|
|
18
|
+
* @property Required fields: 4
|
|
19
|
+
* @property Optional fields: 1
|
|
20
20
|
*/
|
|
21
21
|
export interface CreateSocialMediaCaseProperties {
|
|
22
22
|
/**
|
|
@@ -56,9 +56,8 @@ export interface CreateSocialMediaCaseProperties {
|
|
|
56
56
|
*
|
|
57
57
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
58
58
|
* @type {LOOKUP}
|
|
59
|
-
* @required
|
|
60
59
|
*/
|
|
61
|
-
ContactId
|
|
60
|
+
ContactId?: string | null;
|
|
62
61
|
}
|
|
63
62
|
/**
|
|
64
63
|
* CreateSocialMediaCase
|
|
@@ -22,8 +22,8 @@ export interface CreateCaseWithDpaMessage extends OdinRecordCreatedEvent<CreateC
|
|
|
22
22
|
/**
|
|
23
23
|
* Properties for CreateCaseWithDpa action
|
|
24
24
|
*
|
|
25
|
-
* @property Required fields:
|
|
26
|
-
* @property Optional fields:
|
|
25
|
+
* @property Required fields: 5
|
|
26
|
+
* @property Optional fields: 8
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateCaseWithDpaProperties {
|
|
29
29
|
/**
|
|
@@ -50,6 +50,14 @@ export interface CreateCaseWithDpaProperties {
|
|
|
50
50
|
* @required
|
|
51
51
|
*/
|
|
52
52
|
Channel: string;
|
|
53
|
+
/**
|
|
54
|
+
* Category
|
|
55
|
+
*
|
|
56
|
+
* Data field for Case records. Used by Customer Service team.
|
|
57
|
+
* @type {ENUM}
|
|
58
|
+
* @required
|
|
59
|
+
*/
|
|
60
|
+
Category: string;
|
|
53
61
|
/**
|
|
54
62
|
* DpaChecksPassed
|
|
55
63
|
*
|
|
@@ -65,13 +73,6 @@ export interface CreateCaseWithDpaProperties {
|
|
|
65
73
|
* @type {LOOKUP}
|
|
66
74
|
*/
|
|
67
75
|
AccountId?: string | null;
|
|
68
|
-
/**
|
|
69
|
-
* Category
|
|
70
|
-
*
|
|
71
|
-
* Data field for Case records. Used by Customer Service team.
|
|
72
|
-
* @type {ENUM}
|
|
73
|
-
*/
|
|
74
|
-
Category?: string | null;
|
|
75
76
|
/**
|
|
76
77
|
* DpaCustomerName
|
|
77
78
|
*
|
|
@@ -22,8 +22,8 @@ export interface CreateSocialMediaCaseMessage extends OdinRecordCreatedEvent<Cre
|
|
|
22
22
|
/**
|
|
23
23
|
* Properties for CreateSocialMediaCase action
|
|
24
24
|
*
|
|
25
|
-
* @property Required fields:
|
|
26
|
-
* @property Optional fields:
|
|
25
|
+
* @property Required fields: 4
|
|
26
|
+
* @property Optional fields: 1
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateSocialMediaCaseProperties {
|
|
29
29
|
/**
|
|
@@ -63,9 +63,8 @@ export interface CreateSocialMediaCaseProperties {
|
|
|
63
63
|
*
|
|
64
64
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
65
65
|
* @type {LOOKUP}
|
|
66
|
-
* @required
|
|
67
66
|
*/
|
|
68
|
-
ContactId
|
|
67
|
+
ContactId?: string | null;
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
71
70
|
* CreateSocialMediaCase
|
|
@@ -21,18 +21,10 @@ export interface UpdateEmailMessage extends OdinRecordUpdatedEvent<UpdateEmailDt
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for UpdateEmail action
|
|
23
23
|
*
|
|
24
|
-
* @property Required fields:
|
|
25
|
-
* @property Optional fields:
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 18
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateEmailProperties {
|
|
28
|
-
/**
|
|
29
|
-
* Date
|
|
30
|
-
*
|
|
31
|
-
* Date field for Email records. Used by Communications team.
|
|
32
|
-
* @type {DATE_TIME}
|
|
33
|
-
* @required
|
|
34
|
-
*/
|
|
35
|
-
Date: string;
|
|
36
28
|
/**
|
|
37
29
|
* Status
|
|
38
30
|
*
|
|
@@ -54,6 +46,13 @@ export interface UpdateEmailProperties {
|
|
|
54
46
|
* @type {ENUM}
|
|
55
47
|
*/
|
|
56
48
|
SenderType?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Date
|
|
51
|
+
*
|
|
52
|
+
* Date field for Email records. Used by Communications team.
|
|
53
|
+
* @type {DATE_TIME}
|
|
54
|
+
*/
|
|
55
|
+
Date?: string | null;
|
|
57
56
|
/**
|
|
58
57
|
* Bcc
|
|
59
58
|
*
|
|
@@ -285,13 +285,11 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
285
285
|
/**
|
|
286
286
|
* UpdateEmail
|
|
287
287
|
*
|
|
288
|
-
* Updates this Email record
|
|
288
|
+
* Updates this Email record.
|
|
289
289
|
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
290
290
|
*
|
|
291
|
-
* @param
|
|
292
|
-
* @param options - Optional settings
|
|
293
|
-
* @param options.journeyId - Associate with a journey
|
|
294
|
-
* @param options.stageKey - Transition to pipeline stage
|
|
291
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
292
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
295
293
|
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
296
294
|
* @throws Error if called on a new (unsaved) record
|
|
297
295
|
*
|
|
@@ -304,7 +302,10 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
304
302
|
* const payload = record.updateEmail({ ... }).dryRun();
|
|
305
303
|
* ```
|
|
306
304
|
*/
|
|
307
|
-
updateEmail(
|
|
305
|
+
updateEmail(propertiesOrOptions?: UpdateEmailProperties | {
|
|
306
|
+
journeyId?: string;
|
|
307
|
+
stageKey?: string;
|
|
308
|
+
}, options?: {
|
|
308
309
|
journeyId?: string;
|
|
309
310
|
stageKey?: string;
|
|
310
311
|
}): ActionBuilder;
|
|
@@ -390,13 +390,11 @@ class EmailRecord {
|
|
|
390
390
|
/**
|
|
391
391
|
* UpdateEmail
|
|
392
392
|
*
|
|
393
|
-
* Updates this Email record
|
|
393
|
+
* Updates this Email record.
|
|
394
394
|
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
395
395
|
*
|
|
396
|
-
* @param
|
|
397
|
-
* @param options - Optional settings
|
|
398
|
-
* @param options.journeyId - Associate with a journey
|
|
399
|
-
* @param options.stageKey - Transition to pipeline stage
|
|
396
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
397
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
400
398
|
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
401
399
|
* @throws Error if called on a new (unsaved) record
|
|
402
400
|
*
|
|
@@ -409,11 +407,21 @@ class EmailRecord {
|
|
|
409
407
|
* const payload = record.updateEmail({ ... }).dryRun();
|
|
410
408
|
* ```
|
|
411
409
|
*/
|
|
412
|
-
updateEmail(
|
|
410
|
+
updateEmail(propertiesOrOptions, options) {
|
|
413
411
|
var _a;
|
|
414
412
|
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
415
413
|
throw new Error('updateEmail requires an existing record. Use accessor.get() first.');
|
|
416
|
-
|
|
414
|
+
let properties = {};
|
|
415
|
+
let opts = options;
|
|
416
|
+
if (propertiesOrOptions) {
|
|
417
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
418
|
+
opts = propertiesOrOptions;
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
properties = propertiesOrOptions;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateEmail', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
417
425
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
418
426
|
}
|
|
419
427
|
/**
|