@d19n/youfibre-odin-sdk 2.0.283 → 2.0.285
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 +21 -16
- package/dist/actions-v2/AddCaseAdditionalNotesDto.d.ts +73 -0
- package/dist/actions-v2/AddCaseAdditionalNotesDto.js +56 -0
- package/dist/actions-v2/FlagVulnerableCustomerDto.d.ts +73 -0
- package/dist/actions-v2/FlagVulnerableCustomerDto.js +56 -0
- package/dist/actions-v2/RecordAiTagsAccuracyDto.d.ts +73 -0
- package/dist/actions-v2/RecordAiTagsAccuracyDto.js +56 -0
- package/dist/actions-v2/UpdateCaseProvidersDto.d.ts +73 -0
- package/dist/actions-v2/UpdateCaseProvidersDto.js +56 -0
- package/dist/actions-v2/UpdateCaseSlaDto.d.ts +86 -0
- package/dist/actions-v2/UpdateCaseSlaDto.js +56 -0
- package/dist/records-v2/CaseRecord.d.ts +136 -0
- package/dist/records-v2/CaseRecord.js +153 -0
- package/dist/records-v2/index.d.ts +1 -1
- package/dist/records-v2/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -366,7 +366,7 @@ This SDK includes **178** entities across **12** modules.
|
|
|
366
366
|
|
|
367
367
|
## Actions
|
|
368
368
|
|
|
369
|
-
This SDK includes **
|
|
369
|
+
This SDK includes **844** actions.
|
|
370
370
|
|
|
371
371
|
### Action Types
|
|
372
372
|
|
|
@@ -825,25 +825,11 @@ This SDK includes **839** actions.
|
|
|
825
825
|
|
|
826
826
|
**MoveWayleaveWorkOrderToSubmitted Target Stages:** `WayleavePipelineStageSubmitted`
|
|
827
827
|
|
|
828
|
-
#### Address
|
|
829
|
-
|
|
830
|
-
| Action | Type | Event |
|
|
831
|
-
|--------|------|-------|
|
|
832
|
-
| `AddressCreate` | CREATE | k1.t-hEOJjsDb.CrmModule.Address.Create.AddressCreate |
|
|
833
|
-
| `AddressUpdate` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.AddressUpdate |
|
|
834
|
-
| `BulkUpdateSalesStatus` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.BulkUpdateSalesStatus |
|
|
835
|
-
| `UpdateExternalServiceId` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId |
|
|
836
|
-
|
|
837
|
-
#### AddressInteraction
|
|
838
|
-
|
|
839
|
-
| Action | Type | Event |
|
|
840
|
-
|--------|------|-------|
|
|
841
|
-
| `AddressInteractionCreate` | CREATE | k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate |
|
|
842
|
-
|
|
843
828
|
#### Case
|
|
844
829
|
|
|
845
830
|
| Action | Type | Event |
|
|
846
831
|
|--------|------|-------|
|
|
832
|
+
| `AddCaseAdditionalNotes` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes |
|
|
847
833
|
| `AllowCsatForCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase |
|
|
848
834
|
| `AssignCaseByUser` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCaseByUser |
|
|
849
835
|
| `AssignCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase |
|
|
@@ -875,6 +861,7 @@ This SDK includes **839** actions.
|
|
|
875
861
|
| `EscalateCaseActionYfcs` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionYFCS |
|
|
876
862
|
| `EscalateCaseTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
|
|
877
863
|
| `ExceptionInput` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ExceptionInput |
|
|
864
|
+
| `FlagVulnerableCustomer` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer |
|
|
878
865
|
| `MarkCaseClosed` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MarkCaseClosed |
|
|
879
866
|
| `MarkCaseResolved` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MarkCaseResolved |
|
|
880
867
|
| `MoveCaseOutageToSolvedAction2` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseOutageToSolvedAction2 |
|
|
@@ -890,6 +877,7 @@ This SDK includes **839** actions.
|
|
|
890
877
|
| `MoveDefaultCaseFromAnyStageToPendingReply` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply |
|
|
891
878
|
| `MoveDefaultCaseFromOpenToClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MarkCaseClosed |
|
|
892
879
|
| `MovetoClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed |
|
|
880
|
+
| `RecordAiTagsAccuracy` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy |
|
|
893
881
|
| `RemoveAssignmentFromCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.RemoveAssignmentFromCase |
|
|
894
882
|
| `ReturnCaseToAgentOnCustomerReply` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ReturnCaseToAgentOnCustomerReply |
|
|
895
883
|
| `TestingCsatUpdateFlow` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase |
|
|
@@ -899,6 +887,8 @@ This SDK includes **839** actions.
|
|
|
899
887
|
| `UpdateCaseFromLinkedCall` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall |
|
|
900
888
|
| `UpdateCaseOnDialAttempt` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseOnDialAttempt |
|
|
901
889
|
| `UpdateCaseOnDialConnected` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseOnDialConnected |
|
|
890
|
+
| `UpdateCaseProviders` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders |
|
|
891
|
+
| `UpdateCaseSla` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla |
|
|
902
892
|
| `UpdateFormalComplaint` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateFormalComplaint |
|
|
903
893
|
| `UpdateSentiment` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateSentiment |
|
|
904
894
|
| `UpdateTags` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateTags |
|
|
@@ -958,6 +948,21 @@ This SDK includes **839** actions.
|
|
|
958
948
|
| `assignCase` | UPDATE | `(id, properties, options?)` |
|
|
959
949
|
| `createNoteForCaseAssignment` | CREATE | `(properties, options?)` |
|
|
960
950
|
|
|
951
|
+
#### Address
|
|
952
|
+
|
|
953
|
+
| Action | Type | Event |
|
|
954
|
+
|--------|------|-------|
|
|
955
|
+
| `AddressCreate` | CREATE | k1.t-hEOJjsDb.CrmModule.Address.Create.AddressCreate |
|
|
956
|
+
| `AddressUpdate` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.AddressUpdate |
|
|
957
|
+
| `BulkUpdateSalesStatus` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.BulkUpdateSalesStatus |
|
|
958
|
+
| `UpdateExternalServiceId` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId |
|
|
959
|
+
|
|
960
|
+
#### AddressInteraction
|
|
961
|
+
|
|
962
|
+
| Action | Type | Event |
|
|
963
|
+
|--------|------|-------|
|
|
964
|
+
| `AddressInteractionCreate` | CREATE | k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate |
|
|
965
|
+
|
|
961
966
|
#### ContractBuyOut
|
|
962
967
|
|
|
963
968
|
| Action | Type | Event |
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AddCaseAdditionalNotes Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Writes the free-text additional notes a bulk stage move carries. Used with a caller-supplied target stage, which travels as the action options stageKey rather than as a field.
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey AddCaseAdditionalNotes
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for AddCaseAdditionalNotes updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes
|
|
18
|
+
*/
|
|
19
|
+
export interface AddCaseAdditionalNotesMessage extends OdinRecordUpdatedEvent<AddCaseAdditionalNotesDto, AddCaseAdditionalNotesProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for AddCaseAdditionalNotes action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface AddCaseAdditionalNotesProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Additional notes
|
|
30
|
+
*
|
|
31
|
+
* Additional Notes (Customer Service - Case)
|
|
32
|
+
* @type {TEXT_LONG}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
AdditionalNotes: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Record additional notes on the case
|
|
39
|
+
*
|
|
40
|
+
* Writes the free-text additional notes a bulk stage move carries. Used with a caller-supplied target stage, which travels as the action options stageKey rather than as a field.
|
|
41
|
+
*
|
|
42
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
43
|
+
* @module SupportModule
|
|
44
|
+
* @entity Case
|
|
45
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes
|
|
46
|
+
* @permission schema.action.addcaseadditionalnotes.trigger
|
|
47
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
48
|
+
*/
|
|
49
|
+
export declare class AddCaseAdditionalNotesDto extends OdinRecordUpdateDto<AddCaseAdditionalNotesProperties> {
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
52
|
+
static readonly ACTION_KEY = "AddCaseAdditionalNotes";
|
|
53
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
54
|
+
static readonly ENTITIES: string[];
|
|
55
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes";
|
|
56
|
+
static readonly PERMISSION = "schema.action.addcaseadditionalnotes.trigger";
|
|
57
|
+
/** Step metadata - entity this action targets */
|
|
58
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
59
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
60
|
+
static readonly STEP_SCHEMA_ACTION_ID = "99056dc7-837a-4e69-940a-457a26759aad";
|
|
61
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
62
|
+
readonly actionName: string;
|
|
63
|
+
readonly schemaActionId: string;
|
|
64
|
+
readonly entity: string;
|
|
65
|
+
constructor(record: OdinRecord<any> | {
|
|
66
|
+
id: string;
|
|
67
|
+
entity: string;
|
|
68
|
+
type?: string;
|
|
69
|
+
}, properties: AddCaseAdditionalNotesProperties, options?: {
|
|
70
|
+
journeyId?: string;
|
|
71
|
+
stageKey?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* AddCaseAdditionalNotes Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Writes the free-text additional notes a bulk stage move carries. Used with a caller-supplied target stage, which travels as the action options stageKey rather than as a field.
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey AddCaseAdditionalNotes
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AddCaseAdditionalNotesDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Record additional notes on the case
|
|
19
|
+
*
|
|
20
|
+
* Writes the free-text additional notes a bulk stage move carries. Used with a caller-supplied target stage, which travels as the action options stageKey rather than as a field.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes
|
|
26
|
+
* @permission schema.action.addcaseadditionalnotes.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class AddCaseAdditionalNotesDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'AddCaseAdditionalNotes';
|
|
40
|
+
this.schemaActionId = '99056dc7-837a-4e69-940a-457a26759aad';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.AddCaseAdditionalNotesDto = AddCaseAdditionalNotesDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
AddCaseAdditionalNotesDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
AddCaseAdditionalNotesDto.ACTION_KEY = 'AddCaseAdditionalNotes';
|
|
48
|
+
AddCaseAdditionalNotesDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
AddCaseAdditionalNotesDto.ENTITIES = ['Case'];
|
|
50
|
+
AddCaseAdditionalNotesDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.AddCaseAdditionalNotes';
|
|
51
|
+
AddCaseAdditionalNotesDto.PERMISSION = 'schema.action.addcaseadditionalnotes.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
AddCaseAdditionalNotesDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
AddCaseAdditionalNotesDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
55
|
+
AddCaseAdditionalNotesDto.STEP_SCHEMA_ACTION_ID = '99056dc7-837a-4e69-940a-457a26759aad';
|
|
56
|
+
AddCaseAdditionalNotesDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FlagVulnerableCustomer Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Marks (or clears) the vulnerable-customer flag on a case. Drives handling and prioritisation, so it is a deliberate, auditable event rather than a generic field edit.
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey FlagVulnerableCustomer
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for FlagVulnerableCustomer updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer
|
|
18
|
+
*/
|
|
19
|
+
export interface FlagVulnerableCustomerMessage extends OdinRecordUpdatedEvent<FlagVulnerableCustomerDto, FlagVulnerableCustomerProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for FlagVulnerableCustomer action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface FlagVulnerableCustomerProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Vulnerable customer
|
|
30
|
+
*
|
|
31
|
+
* Vulnerable Customer
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
VulnerableCustomer: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Flag the case as a vulnerable customer
|
|
39
|
+
*
|
|
40
|
+
* Marks (or clears) the vulnerable-customer flag on a case. Drives handling and prioritisation, so it is a deliberate, auditable event rather than a generic field edit.
|
|
41
|
+
*
|
|
42
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
43
|
+
* @module SupportModule
|
|
44
|
+
* @entity Case
|
|
45
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer
|
|
46
|
+
* @permission schema.action.flagvulnerablecustomer.trigger
|
|
47
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
48
|
+
*/
|
|
49
|
+
export declare class FlagVulnerableCustomerDto extends OdinRecordUpdateDto<FlagVulnerableCustomerProperties> {
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
52
|
+
static readonly ACTION_KEY = "FlagVulnerableCustomer";
|
|
53
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
54
|
+
static readonly ENTITIES: string[];
|
|
55
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer";
|
|
56
|
+
static readonly PERMISSION = "schema.action.flagvulnerablecustomer.trigger";
|
|
57
|
+
/** Step metadata - entity this action targets */
|
|
58
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
59
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
60
|
+
static readonly STEP_SCHEMA_ACTION_ID = "f10d2dac-1b90-4d10-9f23-0ae881a291e1";
|
|
61
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
62
|
+
readonly actionName: string;
|
|
63
|
+
readonly schemaActionId: string;
|
|
64
|
+
readonly entity: string;
|
|
65
|
+
constructor(record: OdinRecord<any> | {
|
|
66
|
+
id: string;
|
|
67
|
+
entity: string;
|
|
68
|
+
type?: string;
|
|
69
|
+
}, properties: FlagVulnerableCustomerProperties, options?: {
|
|
70
|
+
journeyId?: string;
|
|
71
|
+
stageKey?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* FlagVulnerableCustomer Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Marks (or clears) the vulnerable-customer flag on a case. Drives handling and prioritisation, so it is a deliberate, auditable event rather than a generic field edit.
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey FlagVulnerableCustomer
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FlagVulnerableCustomerDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Flag the case as a vulnerable customer
|
|
19
|
+
*
|
|
20
|
+
* Marks (or clears) the vulnerable-customer flag on a case. Drives handling and prioritisation, so it is a deliberate, auditable event rather than a generic field edit.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer
|
|
26
|
+
* @permission schema.action.flagvulnerablecustomer.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class FlagVulnerableCustomerDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'FlagVulnerableCustomer';
|
|
40
|
+
this.schemaActionId = 'f10d2dac-1b90-4d10-9f23-0ae881a291e1';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.FlagVulnerableCustomerDto = FlagVulnerableCustomerDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
FlagVulnerableCustomerDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
FlagVulnerableCustomerDto.ACTION_KEY = 'FlagVulnerableCustomer';
|
|
48
|
+
FlagVulnerableCustomerDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
FlagVulnerableCustomerDto.ENTITIES = ['Case'];
|
|
50
|
+
FlagVulnerableCustomerDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.FlagVulnerableCustomer';
|
|
51
|
+
FlagVulnerableCustomerDto.PERMISSION = 'schema.action.flagvulnerablecustomer.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
FlagVulnerableCustomerDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
FlagVulnerableCustomerDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
55
|
+
FlagVulnerableCustomerDto.STEP_SCHEMA_ACTION_ID = 'f10d2dac-1b90-4d10-9f23-0ae881a291e1';
|
|
56
|
+
FlagVulnerableCustomerDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RecordAiTagsAccuracy Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Stores an agent's verdict on the AI-generated tags for a case (POSITIVE / NEGATIVE / SKIPPED). Feedback signal for the tagging model, not a case-state change. Fired from youfibre-api-support ai.service.ts.
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey RecordAiTagsAccuracy
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for RecordAiTagsAccuracy updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy
|
|
18
|
+
*/
|
|
19
|
+
export interface RecordAiTagsAccuracyMessage extends OdinRecordUpdatedEvent<RecordAiTagsAccuracyDto, RecordAiTagsAccuracyProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for RecordAiTagsAccuracy action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface RecordAiTagsAccuracyProperties {
|
|
28
|
+
/**
|
|
29
|
+
* AI tags accuracy
|
|
30
|
+
*
|
|
31
|
+
* Accuracy of the AI tags
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
AiTagsAccuracy: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Record whether the AI tags were right
|
|
39
|
+
*
|
|
40
|
+
* Stores an agent's verdict on the AI-generated tags for a case (POSITIVE / NEGATIVE / SKIPPED). Feedback signal for the tagging model, not a case-state change. Fired from youfibre-api-support ai.service.ts.
|
|
41
|
+
*
|
|
42
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
43
|
+
* @module SupportModule
|
|
44
|
+
* @entity Case
|
|
45
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy
|
|
46
|
+
* @permission schema.action.recordaitagsaccuracy.trigger
|
|
47
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
48
|
+
*/
|
|
49
|
+
export declare class RecordAiTagsAccuracyDto extends OdinRecordUpdateDto<RecordAiTagsAccuracyProperties> {
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
52
|
+
static readonly ACTION_KEY = "RecordAiTagsAccuracy";
|
|
53
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
54
|
+
static readonly ENTITIES: string[];
|
|
55
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy";
|
|
56
|
+
static readonly PERMISSION = "schema.action.recordaitagsaccuracy.trigger";
|
|
57
|
+
/** Step metadata - entity this action targets */
|
|
58
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
59
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
60
|
+
static readonly STEP_SCHEMA_ACTION_ID = "d7e90130-6aab-4196-8f44-8f4c1fbd9ac9";
|
|
61
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
62
|
+
readonly actionName: string;
|
|
63
|
+
readonly schemaActionId: string;
|
|
64
|
+
readonly entity: string;
|
|
65
|
+
constructor(record: OdinRecord<any> | {
|
|
66
|
+
id: string;
|
|
67
|
+
entity: string;
|
|
68
|
+
type?: string;
|
|
69
|
+
}, properties: RecordAiTagsAccuracyProperties, options?: {
|
|
70
|
+
journeyId?: string;
|
|
71
|
+
stageKey?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* RecordAiTagsAccuracy Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Stores an agent's verdict on the AI-generated tags for a case (POSITIVE / NEGATIVE / SKIPPED). Feedback signal for the tagging model, not a case-state change. Fired from youfibre-api-support ai.service.ts.
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey RecordAiTagsAccuracy
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RecordAiTagsAccuracyDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Record whether the AI tags were right
|
|
19
|
+
*
|
|
20
|
+
* Stores an agent's verdict on the AI-generated tags for a case (POSITIVE / NEGATIVE / SKIPPED). Feedback signal for the tagging model, not a case-state change. Fired from youfibre-api-support ai.service.ts.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy
|
|
26
|
+
* @permission schema.action.recordaitagsaccuracy.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class RecordAiTagsAccuracyDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'RecordAiTagsAccuracy';
|
|
40
|
+
this.schemaActionId = 'd7e90130-6aab-4196-8f44-8f4c1fbd9ac9';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.RecordAiTagsAccuracyDto = RecordAiTagsAccuracyDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
RecordAiTagsAccuracyDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
RecordAiTagsAccuracyDto.ACTION_KEY = 'RecordAiTagsAccuracy';
|
|
48
|
+
RecordAiTagsAccuracyDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
RecordAiTagsAccuracyDto.ENTITIES = ['Case'];
|
|
50
|
+
RecordAiTagsAccuracyDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.RecordAiTagsAccuracy';
|
|
51
|
+
RecordAiTagsAccuracyDto.PERMISSION = 'schema.action.recordaitagsaccuracy.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
RecordAiTagsAccuracyDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
RecordAiTagsAccuracyDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
55
|
+
RecordAiTagsAccuracyDto.STEP_SCHEMA_ACTION_ID = 'd7e90130-6aab-4196-8f44-8f4c1fbd9ac9';
|
|
56
|
+
RecordAiTagsAccuracyDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCaseProviders Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Copies the network provider from the linked address onto the case. Case.Providers is an ENUM while Address.Providers is free text, so the caller filters values the column rejects before firing this.
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey UpdateCaseProviders
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCaseProviders updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCaseProvidersMessage extends OdinRecordUpdatedEvent<UpdateCaseProvidersDto, UpdateCaseProvidersProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCaseProviders action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCaseProvidersProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Providers
|
|
30
|
+
*
|
|
31
|
+
* Providers
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Providers: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Set the network providers on the case
|
|
39
|
+
*
|
|
40
|
+
* Copies the network provider from the linked address onto the case. Case.Providers is an ENUM while Address.Providers is free text, so the caller filters values the column rejects before firing this.
|
|
41
|
+
*
|
|
42
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
43
|
+
* @module SupportModule
|
|
44
|
+
* @entity Case
|
|
45
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders
|
|
46
|
+
* @permission schema.action.updatecaseproviders.trigger
|
|
47
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
48
|
+
*/
|
|
49
|
+
export declare class UpdateCaseProvidersDto extends OdinRecordUpdateDto<UpdateCaseProvidersProperties> {
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
52
|
+
static readonly ACTION_KEY = "UpdateCaseProviders";
|
|
53
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
54
|
+
static readonly ENTITIES: string[];
|
|
55
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders";
|
|
56
|
+
static readonly PERMISSION = "schema.action.updatecaseproviders.trigger";
|
|
57
|
+
/** Step metadata - entity this action targets */
|
|
58
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
59
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
60
|
+
static readonly STEP_SCHEMA_ACTION_ID = "108c9f2a-28ed-48bc-a448-837108c49423";
|
|
61
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
62
|
+
readonly actionName: string;
|
|
63
|
+
readonly schemaActionId: string;
|
|
64
|
+
readonly entity: string;
|
|
65
|
+
constructor(record: OdinRecord<any> | {
|
|
66
|
+
id: string;
|
|
67
|
+
entity: string;
|
|
68
|
+
type?: string;
|
|
69
|
+
}, properties: UpdateCaseProvidersProperties, options?: {
|
|
70
|
+
journeyId?: string;
|
|
71
|
+
stageKey?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCaseProviders Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Copies the network provider from the linked address onto the case. Case.Providers is an ENUM while Address.Providers is free text, so the caller filters values the column rejects before firing this.
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey UpdateCaseProviders
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCaseProvidersDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Set the network providers on the case
|
|
19
|
+
*
|
|
20
|
+
* Copies the network provider from the linked address onto the case. Case.Providers is an ENUM while Address.Providers is free text, so the caller filters values the column rejects before firing this.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders
|
|
26
|
+
* @permission schema.action.updatecaseproviders.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCaseProvidersDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateCaseProviders';
|
|
40
|
+
this.schemaActionId = '108c9f2a-28ed-48bc-a448-837108c49423';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCaseProvidersDto = UpdateCaseProvidersDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCaseProvidersDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCaseProvidersDto.ACTION_KEY = 'UpdateCaseProviders';
|
|
48
|
+
UpdateCaseProvidersDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
UpdateCaseProvidersDto.ENTITIES = ['Case'];
|
|
50
|
+
UpdateCaseProvidersDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseProviders';
|
|
51
|
+
UpdateCaseProvidersDto.PERMISSION = 'schema.action.updatecaseproviders.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCaseProvidersDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
UpdateCaseProvidersDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
55
|
+
UpdateCaseProvidersDto.STEP_SCHEMA_ACTION_ID = '108c9f2a-28ed-48bc-a448-837108c49423';
|
|
56
|
+
UpdateCaseProvidersDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCaseSla Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Applies the SLA band and its start/end dates, resolved from the org's category mapping when a case is created or re-categorised. All three fields are optional because a case with no mapping and no existing SLA has nothing to set — writing a null Sla is a 422 (CORE-994).
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey UpdateCaseSla
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCaseSla updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCaseSlaMessage extends OdinRecordUpdatedEvent<UpdateCaseSlaDto, UpdateCaseSlaProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCaseSla action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 3
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCaseSlaProperties {
|
|
28
|
+
/**
|
|
29
|
+
* SLA
|
|
30
|
+
*
|
|
31
|
+
* Data field for Case records. Used by Customer Service team.
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
*/
|
|
34
|
+
Sla?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* SLA start date
|
|
37
|
+
*
|
|
38
|
+
* The date used to generate the SLA date (defaults to case created and then is updated when the case goes to Pending Agent" (Customer Service - Case)
|
|
39
|
+
* @type {DATE_TIME}
|
|
40
|
+
*/
|
|
41
|
+
SlaStartDate?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* SLA end date
|
|
44
|
+
*
|
|
45
|
+
* The sla end date (Customer Service - Case)
|
|
46
|
+
* @type {DATE_TIME}
|
|
47
|
+
*/
|
|
48
|
+
SlaEndDate?: string | null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Set the case SLA and its window
|
|
52
|
+
*
|
|
53
|
+
* Applies the SLA band and its start/end dates, resolved from the org's category mapping when a case is created or re-categorised. All three fields are optional because a case with no mapping and no existing SLA has nothing to set — writing a null Sla is a 422 (CORE-994).
|
|
54
|
+
*
|
|
55
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
56
|
+
* @module SupportModule
|
|
57
|
+
* @entity Case
|
|
58
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla
|
|
59
|
+
* @permission schema.action.updatecasesla.trigger
|
|
60
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
61
|
+
*/
|
|
62
|
+
export declare class UpdateCaseSlaDto extends OdinRecordUpdateDto<UpdateCaseSlaProperties> {
|
|
63
|
+
/** Used by SDK generators to identify action type */
|
|
64
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
65
|
+
static readonly ACTION_KEY = "UpdateCaseSla";
|
|
66
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
67
|
+
static readonly ENTITIES: string[];
|
|
68
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla";
|
|
69
|
+
static readonly PERMISSION = "schema.action.updatecasesla.trigger";
|
|
70
|
+
/** Step metadata - entity this action targets */
|
|
71
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
72
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
73
|
+
static readonly STEP_SCHEMA_ACTION_ID = "9cce1c02-dd78-40b6-a919-5b6422ebf3c9";
|
|
74
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
75
|
+
readonly actionName: string;
|
|
76
|
+
readonly schemaActionId: string;
|
|
77
|
+
readonly entity: string;
|
|
78
|
+
constructor(record: OdinRecord<any> | {
|
|
79
|
+
id: string;
|
|
80
|
+
entity: string;
|
|
81
|
+
type?: string;
|
|
82
|
+
}, properties: UpdateCaseSlaProperties, options?: {
|
|
83
|
+
journeyId?: string;
|
|
84
|
+
stageKey?: string;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCaseSla Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Applies the SLA band and its start/end dates, resolved from the org's category mapping when a case is created or re-categorised. All three fields are optional because a case with no mapping and no existing SLA has nothing to set — writing a null Sla is a 422 (CORE-994).
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey UpdateCaseSla
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCaseSlaDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Set the case SLA and its window
|
|
19
|
+
*
|
|
20
|
+
* Applies the SLA band and its start/end dates, resolved from the org's category mapping when a case is created or re-categorised. All three fields are optional because a case with no mapping and no existing SLA has nothing to set — writing a null Sla is a 422 (CORE-994).
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla
|
|
26
|
+
* @permission schema.action.updatecasesla.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCaseSlaDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateCaseSla';
|
|
40
|
+
this.schemaActionId = '9cce1c02-dd78-40b6-a919-5b6422ebf3c9';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCaseSlaDto = UpdateCaseSlaDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCaseSlaDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCaseSlaDto.ACTION_KEY = 'UpdateCaseSla';
|
|
48
|
+
UpdateCaseSlaDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
UpdateCaseSlaDto.ENTITIES = ['Case'];
|
|
50
|
+
UpdateCaseSlaDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseSla';
|
|
51
|
+
UpdateCaseSlaDto.PERMISSION = 'schema.action.updatecasesla.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCaseSlaDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
UpdateCaseSlaDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
55
|
+
UpdateCaseSlaDto.STEP_SCHEMA_ACTION_ID = '9cce1c02-dd78-40b6-a919-5b6422ebf3c9';
|
|
56
|
+
UpdateCaseSlaDto.AUTO_LINK_PARENT = false;
|
|
@@ -23,6 +23,7 @@ import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/
|
|
|
23
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { CaseProperties, OutageCaseProperties } from '../entities-v2/Case';
|
|
26
|
+
import { AddCaseAdditionalNotesProperties } from '../actions-v2/AddCaseAdditionalNotesDto';
|
|
26
27
|
import { AllowCsatForCaseProperties } from '../actions-v2/AllowCsatForCaseDto';
|
|
27
28
|
import { AssignCaseByUserProperties } from '../actions-v2/AssignCaseByUserDto';
|
|
28
29
|
import { AssignCaseProperties } from '../actions-v2/AssignCaseDto';
|
|
@@ -39,12 +40,14 @@ import { EscalateCaseActionBrskProperties } from '../actions-v2/EscalateCaseActi
|
|
|
39
40
|
import { EscalateCaseActionYfProperties } from '../actions-v2/EscalateCaseActionYfDto';
|
|
40
41
|
import { EscalateCaseActionYfcsProperties } from '../actions-v2/EscalateCaseActionYfcsDto';
|
|
41
42
|
import { ExceptionInputProperties } from '../actions-v2/ExceptionInputDto';
|
|
43
|
+
import { FlagVulnerableCustomerProperties } from '../actions-v2/FlagVulnerableCustomerDto';
|
|
42
44
|
import { MarkCaseClosedProperties } from '../actions-v2/MarkCaseClosedDto';
|
|
43
45
|
import { MarkCaseResolvedProperties } from '../actions-v2/MarkCaseResolvedDto';
|
|
44
46
|
import { MoveCaseOutageToSolvedAction2Properties } from '../actions-v2/MoveCaseOutageToSolvedAction2Dto';
|
|
45
47
|
import { MoveCaseOutageToSolvedActionProperties } from '../actions-v2/MoveCaseOutageToSolvedActionDto';
|
|
46
48
|
import { UpdateAdditionalNoteProperties } from '../actions-v2/MoveCaseToClosedWithAdditionalNoteDto';
|
|
47
49
|
import { MoveCaseToSolvedActionProperties } from '../actions-v2/MoveCaseToSolvedActionDto';
|
|
50
|
+
import { RecordAiTagsAccuracyProperties } from '../actions-v2/RecordAiTagsAccuracyDto';
|
|
48
51
|
import { RemoveAssignmentFromCaseProperties } from '../actions-v2/RemoveAssignmentFromCaseDto';
|
|
49
52
|
import { ReturnCaseToAgentOnCustomerReplyProperties } from '../actions-v2/ReturnCaseToAgentOnCustomerReplyDto';
|
|
50
53
|
import { UpdateCaseChannelOnCallProperties } from '../actions-v2/UpdateCaseChannelOnCallDto';
|
|
@@ -52,6 +55,8 @@ import { UpdateCaseCsatProperties } from '../actions-v2/UpdateCaseCsatDto';
|
|
|
52
55
|
import { UpdateCaseFromLinkedCallProperties } from '../actions-v2/UpdateCaseFromLinkedCallDto';
|
|
53
56
|
import { UpdateCaseOnDialAttemptProperties } from '../actions-v2/UpdateCaseOnDialAttemptDto';
|
|
54
57
|
import { UpdateCaseOnDialConnectedProperties } from '../actions-v2/UpdateCaseOnDialConnectedDto';
|
|
58
|
+
import { UpdateCaseProvidersProperties } from '../actions-v2/UpdateCaseProvidersDto';
|
|
59
|
+
import { UpdateCaseSlaProperties } from '../actions-v2/UpdateCaseSlaDto';
|
|
55
60
|
import { UpdateFormalComplaintProperties } from '../actions-v2/UpdateFormalComplaintDto';
|
|
56
61
|
import { UpdateSentimentProperties } from '../actions-v2/UpdateSentimentDto';
|
|
57
62
|
import { UpdateTagsProperties } from '../actions-v2/UpdateTagsDto';
|
|
@@ -1893,6 +1898,32 @@ export declare class CaseRecord<TProps = CaseProperties> {
|
|
|
1893
1898
|
journeyId?: string;
|
|
1894
1899
|
stageKey?: string;
|
|
1895
1900
|
}): ActionBuilder;
|
|
1901
|
+
/**
|
|
1902
|
+
* AddCaseAdditionalNotes
|
|
1903
|
+
*
|
|
1904
|
+
* Updates this Case record with the specified properties.
|
|
1905
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
1906
|
+
*
|
|
1907
|
+
* @param properties - Required properties for this action
|
|
1908
|
+
* @param options - Optional settings
|
|
1909
|
+
* @param options.journeyId - Associate with a journey
|
|
1910
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
1911
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
1912
|
+
* @throws Error if called on a new (unsaved) record
|
|
1913
|
+
*
|
|
1914
|
+
* @example
|
|
1915
|
+
* ```typescript
|
|
1916
|
+
* const record = await odinClient.cases.get(id);
|
|
1917
|
+
* await record.addCaseAdditionalNotes({ ... }).execute();
|
|
1918
|
+
*
|
|
1919
|
+
* // Dry run (for debugging)
|
|
1920
|
+
* const payload = record.addCaseAdditionalNotes({ ... }).dryRun();
|
|
1921
|
+
* ```
|
|
1922
|
+
*/
|
|
1923
|
+
addCaseAdditionalNotes(properties: AddCaseAdditionalNotesProperties, options?: {
|
|
1924
|
+
journeyId?: string;
|
|
1925
|
+
stageKey?: string;
|
|
1926
|
+
}): ActionBuilder;
|
|
1896
1927
|
/**
|
|
1897
1928
|
* AllowCsatForCase
|
|
1898
1929
|
*
|
|
@@ -2554,6 +2585,32 @@ export declare class CaseRecord<TProps = CaseProperties> {
|
|
|
2554
2585
|
journeyId?: string;
|
|
2555
2586
|
stageKey?: string;
|
|
2556
2587
|
}): ActionBuilder;
|
|
2588
|
+
/**
|
|
2589
|
+
* FlagVulnerableCustomer
|
|
2590
|
+
*
|
|
2591
|
+
* Updates this Case record with the specified properties.
|
|
2592
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2593
|
+
*
|
|
2594
|
+
* @param properties - Required properties for this action
|
|
2595
|
+
* @param options - Optional settings
|
|
2596
|
+
* @param options.journeyId - Associate with a journey
|
|
2597
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
2598
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
2599
|
+
* @throws Error if called on a new (unsaved) record
|
|
2600
|
+
*
|
|
2601
|
+
* @example
|
|
2602
|
+
* ```typescript
|
|
2603
|
+
* const record = await odinClient.cases.get(id);
|
|
2604
|
+
* await record.flagVulnerableCustomer({ ... }).execute();
|
|
2605
|
+
*
|
|
2606
|
+
* // Dry run (for debugging)
|
|
2607
|
+
* const payload = record.flagVulnerableCustomer({ ... }).dryRun();
|
|
2608
|
+
* ```
|
|
2609
|
+
*/
|
|
2610
|
+
flagVulnerableCustomer(properties: FlagVulnerableCustomerProperties, options?: {
|
|
2611
|
+
journeyId?: string;
|
|
2612
|
+
stageKey?: string;
|
|
2613
|
+
}): ActionBuilder;
|
|
2557
2614
|
/**
|
|
2558
2615
|
* MarkCaseClosed
|
|
2559
2616
|
*
|
|
@@ -2932,6 +2989,32 @@ export declare class CaseRecord<TProps = CaseProperties> {
|
|
|
2932
2989
|
movetoClosed(options?: {
|
|
2933
2990
|
journeyId?: string;
|
|
2934
2991
|
}): ActionBuilder;
|
|
2992
|
+
/**
|
|
2993
|
+
* RecordAiTagsAccuracy
|
|
2994
|
+
*
|
|
2995
|
+
* Updates this Case record with the specified properties.
|
|
2996
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2997
|
+
*
|
|
2998
|
+
* @param properties - Required properties for this action
|
|
2999
|
+
* @param options - Optional settings
|
|
3000
|
+
* @param options.journeyId - Associate with a journey
|
|
3001
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
3002
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
3003
|
+
* @throws Error if called on a new (unsaved) record
|
|
3004
|
+
*
|
|
3005
|
+
* @example
|
|
3006
|
+
* ```typescript
|
|
3007
|
+
* const record = await odinClient.cases.get(id);
|
|
3008
|
+
* await record.recordAiTagsAccuracy({ ... }).execute();
|
|
3009
|
+
*
|
|
3010
|
+
* // Dry run (for debugging)
|
|
3011
|
+
* const payload = record.recordAiTagsAccuracy({ ... }).dryRun();
|
|
3012
|
+
* ```
|
|
3013
|
+
*/
|
|
3014
|
+
recordAiTagsAccuracy(properties: RecordAiTagsAccuracyProperties, options?: {
|
|
3015
|
+
journeyId?: string;
|
|
3016
|
+
stageKey?: string;
|
|
3017
|
+
}): ActionBuilder;
|
|
2935
3018
|
/**
|
|
2936
3019
|
* RemoveAssignmentFromCase
|
|
2937
3020
|
*
|
|
@@ -3143,6 +3226,59 @@ export declare class CaseRecord<TProps = CaseProperties> {
|
|
|
3143
3226
|
journeyId?: string;
|
|
3144
3227
|
stageKey?: string;
|
|
3145
3228
|
}): ActionBuilder;
|
|
3229
|
+
/**
|
|
3230
|
+
* UpdateCaseProviders
|
|
3231
|
+
*
|
|
3232
|
+
* Updates this Case record with the specified properties.
|
|
3233
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
3234
|
+
*
|
|
3235
|
+
* @param properties - Required properties for this action
|
|
3236
|
+
* @param options - Optional settings
|
|
3237
|
+
* @param options.journeyId - Associate with a journey
|
|
3238
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
3239
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
3240
|
+
* @throws Error if called on a new (unsaved) record
|
|
3241
|
+
*
|
|
3242
|
+
* @example
|
|
3243
|
+
* ```typescript
|
|
3244
|
+
* const record = await odinClient.cases.get(id);
|
|
3245
|
+
* await record.updateCaseProviders({ ... }).execute();
|
|
3246
|
+
*
|
|
3247
|
+
* // Dry run (for debugging)
|
|
3248
|
+
* const payload = record.updateCaseProviders({ ... }).dryRun();
|
|
3249
|
+
* ```
|
|
3250
|
+
*/
|
|
3251
|
+
updateCaseProviders(properties: UpdateCaseProvidersProperties, options?: {
|
|
3252
|
+
journeyId?: string;
|
|
3253
|
+
stageKey?: string;
|
|
3254
|
+
}): ActionBuilder;
|
|
3255
|
+
/**
|
|
3256
|
+
* UpdateCaseSla
|
|
3257
|
+
*
|
|
3258
|
+
* Updates this Case record.
|
|
3259
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
3260
|
+
*
|
|
3261
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
3262
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
3263
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
3264
|
+
* @throws Error if called on a new (unsaved) record
|
|
3265
|
+
*
|
|
3266
|
+
* @example
|
|
3267
|
+
* ```typescript
|
|
3268
|
+
* const record = await odinClient.cases.get(id);
|
|
3269
|
+
* await record.updateCaseSla({ ... }).execute();
|
|
3270
|
+
*
|
|
3271
|
+
* // Dry run (for debugging)
|
|
3272
|
+
* const payload = record.updateCaseSla({ ... }).dryRun();
|
|
3273
|
+
* ```
|
|
3274
|
+
*/
|
|
3275
|
+
updateCaseSla(propertiesOrOptions?: UpdateCaseSlaProperties | {
|
|
3276
|
+
journeyId?: string;
|
|
3277
|
+
stageKey?: string;
|
|
3278
|
+
}, options?: {
|
|
3279
|
+
journeyId?: string;
|
|
3280
|
+
stageKey?: string;
|
|
3281
|
+
}): ActionBuilder;
|
|
3146
3282
|
/**
|
|
3147
3283
|
* UpdateFormalComplaint
|
|
3148
3284
|
*
|
|
@@ -3078,6 +3078,35 @@ class CaseRecord {
|
|
|
3078
3078
|
// ============================================
|
|
3079
3079
|
// UPDATE ACTIONS (require existing record)
|
|
3080
3080
|
// ============================================
|
|
3081
|
+
/**
|
|
3082
|
+
* AddCaseAdditionalNotes
|
|
3083
|
+
*
|
|
3084
|
+
* Updates this Case record with the specified properties.
|
|
3085
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
3086
|
+
*
|
|
3087
|
+
* @param properties - Required properties for this action
|
|
3088
|
+
* @param options - Optional settings
|
|
3089
|
+
* @param options.journeyId - Associate with a journey
|
|
3090
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
3091
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
3092
|
+
* @throws Error if called on a new (unsaved) record
|
|
3093
|
+
*
|
|
3094
|
+
* @example
|
|
3095
|
+
* ```typescript
|
|
3096
|
+
* const record = await odinClient.cases.get(id);
|
|
3097
|
+
* await record.addCaseAdditionalNotes({ ... }).execute();
|
|
3098
|
+
*
|
|
3099
|
+
* // Dry run (for debugging)
|
|
3100
|
+
* const payload = record.addCaseAdditionalNotes({ ... }).dryRun();
|
|
3101
|
+
* ```
|
|
3102
|
+
*/
|
|
3103
|
+
addCaseAdditionalNotes(properties, options) {
|
|
3104
|
+
var _a;
|
|
3105
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
3106
|
+
throw new Error('addCaseAdditionalNotes requires an existing record. Use accessor.get() first.');
|
|
3107
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'AddCaseAdditionalNotes', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
3108
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
3109
|
+
}
|
|
3081
3110
|
/**
|
|
3082
3111
|
* AllowCsatForCase
|
|
3083
3112
|
*
|
|
@@ -3871,6 +3900,35 @@ class CaseRecord {
|
|
|
3871
3900
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'ExceptionInput', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
3872
3901
|
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
3873
3902
|
}
|
|
3903
|
+
/**
|
|
3904
|
+
* FlagVulnerableCustomer
|
|
3905
|
+
*
|
|
3906
|
+
* Updates this Case record with the specified properties.
|
|
3907
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
3908
|
+
*
|
|
3909
|
+
* @param properties - Required properties for this action
|
|
3910
|
+
* @param options - Optional settings
|
|
3911
|
+
* @param options.journeyId - Associate with a journey
|
|
3912
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
3913
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
3914
|
+
* @throws Error if called on a new (unsaved) record
|
|
3915
|
+
*
|
|
3916
|
+
* @example
|
|
3917
|
+
* ```typescript
|
|
3918
|
+
* const record = await odinClient.cases.get(id);
|
|
3919
|
+
* await record.flagVulnerableCustomer({ ... }).execute();
|
|
3920
|
+
*
|
|
3921
|
+
* // Dry run (for debugging)
|
|
3922
|
+
* const payload = record.flagVulnerableCustomer({ ... }).dryRun();
|
|
3923
|
+
* ```
|
|
3924
|
+
*/
|
|
3925
|
+
flagVulnerableCustomer(properties, options) {
|
|
3926
|
+
var _a;
|
|
3927
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
3928
|
+
throw new Error('flagVulnerableCustomer requires an existing record. Use accessor.get() first.');
|
|
3929
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'FlagVulnerableCustomer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
3930
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
3931
|
+
}
|
|
3874
3932
|
/**
|
|
3875
3933
|
* MarkCaseClosed
|
|
3876
3934
|
*
|
|
@@ -4300,6 +4358,35 @@ class CaseRecord {
|
|
|
4300
4358
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovetoClosed', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageClosed' }, options);
|
|
4301
4359
|
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4302
4360
|
}
|
|
4361
|
+
/**
|
|
4362
|
+
* RecordAiTagsAccuracy
|
|
4363
|
+
*
|
|
4364
|
+
* Updates this Case record with the specified properties.
|
|
4365
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
4366
|
+
*
|
|
4367
|
+
* @param properties - Required properties for this action
|
|
4368
|
+
* @param options - Optional settings
|
|
4369
|
+
* @param options.journeyId - Associate with a journey
|
|
4370
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
4371
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
4372
|
+
* @throws Error if called on a new (unsaved) record
|
|
4373
|
+
*
|
|
4374
|
+
* @example
|
|
4375
|
+
* ```typescript
|
|
4376
|
+
* const record = await odinClient.cases.get(id);
|
|
4377
|
+
* await record.recordAiTagsAccuracy({ ... }).execute();
|
|
4378
|
+
*
|
|
4379
|
+
* // Dry run (for debugging)
|
|
4380
|
+
* const payload = record.recordAiTagsAccuracy({ ... }).dryRun();
|
|
4381
|
+
* ```
|
|
4382
|
+
*/
|
|
4383
|
+
recordAiTagsAccuracy(properties, options) {
|
|
4384
|
+
var _a;
|
|
4385
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
4386
|
+
throw new Error('recordAiTagsAccuracy requires an existing record. Use accessor.get() first.');
|
|
4387
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'RecordAiTagsAccuracy', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
4388
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4389
|
+
}
|
|
4303
4390
|
/**
|
|
4304
4391
|
* RemoveAssignmentFromCase
|
|
4305
4392
|
*
|
|
@@ -4570,6 +4657,72 @@ class CaseRecord {
|
|
|
4570
4657
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCaseOnDialConnected', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
4571
4658
|
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4572
4659
|
}
|
|
4660
|
+
/**
|
|
4661
|
+
* UpdateCaseProviders
|
|
4662
|
+
*
|
|
4663
|
+
* Updates this Case record with the specified properties.
|
|
4664
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
4665
|
+
*
|
|
4666
|
+
* @param properties - Required properties for this action
|
|
4667
|
+
* @param options - Optional settings
|
|
4668
|
+
* @param options.journeyId - Associate with a journey
|
|
4669
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
4670
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
4671
|
+
* @throws Error if called on a new (unsaved) record
|
|
4672
|
+
*
|
|
4673
|
+
* @example
|
|
4674
|
+
* ```typescript
|
|
4675
|
+
* const record = await odinClient.cases.get(id);
|
|
4676
|
+
* await record.updateCaseProviders({ ... }).execute();
|
|
4677
|
+
*
|
|
4678
|
+
* // Dry run (for debugging)
|
|
4679
|
+
* const payload = record.updateCaseProviders({ ... }).dryRun();
|
|
4680
|
+
* ```
|
|
4681
|
+
*/
|
|
4682
|
+
updateCaseProviders(properties, options) {
|
|
4683
|
+
var _a;
|
|
4684
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
4685
|
+
throw new Error('updateCaseProviders requires an existing record. Use accessor.get() first.');
|
|
4686
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCaseProviders', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
4687
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4688
|
+
}
|
|
4689
|
+
/**
|
|
4690
|
+
* UpdateCaseSla
|
|
4691
|
+
*
|
|
4692
|
+
* Updates this Case record.
|
|
4693
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
4694
|
+
*
|
|
4695
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
4696
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
4697
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
4698
|
+
* @throws Error if called on a new (unsaved) record
|
|
4699
|
+
*
|
|
4700
|
+
* @example
|
|
4701
|
+
* ```typescript
|
|
4702
|
+
* const record = await odinClient.cases.get(id);
|
|
4703
|
+
* await record.updateCaseSla({ ... }).execute();
|
|
4704
|
+
*
|
|
4705
|
+
* // Dry run (for debugging)
|
|
4706
|
+
* const payload = record.updateCaseSla({ ... }).dryRun();
|
|
4707
|
+
* ```
|
|
4708
|
+
*/
|
|
4709
|
+
updateCaseSla(propertiesOrOptions, options) {
|
|
4710
|
+
var _a;
|
|
4711
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
4712
|
+
throw new Error('updateCaseSla requires an existing record. Use accessor.get() first.');
|
|
4713
|
+
let properties = {};
|
|
4714
|
+
let opts = options;
|
|
4715
|
+
if (propertiesOrOptions) {
|
|
4716
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
4717
|
+
opts = propertiesOrOptions;
|
|
4718
|
+
}
|
|
4719
|
+
else {
|
|
4720
|
+
properties = propertiesOrOptions;
|
|
4721
|
+
}
|
|
4722
|
+
}
|
|
4723
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCaseSla', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
4724
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4725
|
+
}
|
|
4573
4726
|
/**
|
|
4574
4727
|
* UpdateFormalComplaint
|
|
4575
4728
|
*
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export { OrderRecord, isOrderRecord } from './OrderRecord';
|
|
13
13
|
export { WorkOrderRecord, isWorkOrderRecord } from './WorkOrderRecord';
|
|
14
|
+
export { CaseRecord, isCaseRecord } from './CaseRecord';
|
|
14
15
|
export { AddressRecord, isAddressRecord } from './AddressRecord';
|
|
15
16
|
export { AddressInteractionRecord, isAddressInteractionRecord } from './AddressInteractionRecord';
|
|
16
|
-
export { CaseRecord, isCaseRecord } from './CaseRecord';
|
|
17
17
|
export { ContractBuyOutRecord, isContractBuyOutRecord } from './ContractBuyOutRecord';
|
|
18
18
|
export { DataIssueRecord, isDataIssueRecord } from './DataIssueRecord';
|
|
19
19
|
export { NoteRecord, isNoteRecord } from './NoteRecord';
|
package/dist/records-v2/index.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isDataIssueRecord = exports.DataIssueRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.
|
|
14
|
+
exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isDataIssueRecord = exports.DataIssueRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isAddressInteractionRecord = exports.AddressInteractionRecord = exports.isAddressRecord = exports.AddressRecord = exports.isCaseRecord = exports.CaseRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
|
|
15
15
|
exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isCustomerDeviceRecord = exports.CustomerDeviceRecord = exports.isConversationSummaryFeedbackRecord = exports.ConversationSummaryFeedbackRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isMessageRecord = exports.MessageRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isEmailRecord = exports.EmailRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallRecord = exports.CallRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isYfFieldServiceVisitRecord = exports.YfFieldServiceVisitRecord = void 0;
|
|
16
16
|
exports.isPgReportEventRecord = exports.PgReportEventRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isOutboundDialSessionRecord = exports.OutboundDialSessionRecord = exports.isOutboundDialCampaignRecord = exports.OutboundDialCampaignRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isModifyServiceRequestRecord = exports.ModifyServiceRequestRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = void 0;
|
|
17
17
|
exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTwilioActivityRecord = exports.TwilioActivityRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = void 0;
|
|
@@ -22,15 +22,15 @@ Object.defineProperty(exports, "isOrderRecord", { enumerable: true, get: functio
|
|
|
22
22
|
var WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
23
23
|
Object.defineProperty(exports, "WorkOrderRecord", { enumerable: true, get: function () { return WorkOrderRecord_1.WorkOrderRecord; } });
|
|
24
24
|
Object.defineProperty(exports, "isWorkOrderRecord", { enumerable: true, get: function () { return WorkOrderRecord_1.isWorkOrderRecord; } });
|
|
25
|
+
var CaseRecord_1 = require("./CaseRecord");
|
|
26
|
+
Object.defineProperty(exports, "CaseRecord", { enumerable: true, get: function () { return CaseRecord_1.CaseRecord; } });
|
|
27
|
+
Object.defineProperty(exports, "isCaseRecord", { enumerable: true, get: function () { return CaseRecord_1.isCaseRecord; } });
|
|
25
28
|
var AddressRecord_1 = require("./AddressRecord");
|
|
26
29
|
Object.defineProperty(exports, "AddressRecord", { enumerable: true, get: function () { return AddressRecord_1.AddressRecord; } });
|
|
27
30
|
Object.defineProperty(exports, "isAddressRecord", { enumerable: true, get: function () { return AddressRecord_1.isAddressRecord; } });
|
|
28
31
|
var AddressInteractionRecord_1 = require("./AddressInteractionRecord");
|
|
29
32
|
Object.defineProperty(exports, "AddressInteractionRecord", { enumerable: true, get: function () { return AddressInteractionRecord_1.AddressInteractionRecord; } });
|
|
30
33
|
Object.defineProperty(exports, "isAddressInteractionRecord", { enumerable: true, get: function () { return AddressInteractionRecord_1.isAddressInteractionRecord; } });
|
|
31
|
-
var CaseRecord_1 = require("./CaseRecord");
|
|
32
|
-
Object.defineProperty(exports, "CaseRecord", { enumerable: true, get: function () { return CaseRecord_1.CaseRecord; } });
|
|
33
|
-
Object.defineProperty(exports, "isCaseRecord", { enumerable: true, get: function () { return CaseRecord_1.isCaseRecord; } });
|
|
34
34
|
var ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
|
|
35
35
|
Object.defineProperty(exports, "ContractBuyOutRecord", { enumerable: true, get: function () { return ContractBuyOutRecord_1.ContractBuyOutRecord; } });
|
|
36
36
|
Object.defineProperty(exports, "isContractBuyOutRecord", { enumerable: true, get: function () { return ContractBuyOutRecord_1.isContractBuyOutRecord; } });
|