@d19n/youfibre-odin-sdk 2.0.181 → 2.0.182

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 CHANGED
@@ -354,7 +354,7 @@ This SDK includes **166** entities across **12** modules.
354
354
 
355
355
  ## Actions
356
356
 
357
- This SDK includes **686** actions.
357
+ This SDK includes **684** actions.
358
358
 
359
359
  ### Action Types
360
360
 
@@ -804,8 +804,6 @@ This SDK includes **686** actions.
804
804
  | `Casedefaultstageblocked` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToBlockedAction |
805
805
  | `CasteTransitionOpenToEscalated` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
806
806
  | `ChangeCaseChannel` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ChangeCaseChannel |
807
- | `CloseAndMergeCaseAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction |
808
- | `CloseAndMergeCase` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction |
809
807
  | `CreateCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
810
808
  | `CreateCaseFromCases` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases |
811
809
  | `CreateCaseFromContact` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
@@ -865,8 +863,6 @@ This SDK includes **686** actions.
865
863
 
866
864
  **CasteTransitionOpenToEscalated Target Stages:** `CaseDefaultStageEscalated`
867
865
 
868
- **CloseAndMergeCase Target Stages:** `CaseDefaultStageClosed`
869
-
870
866
  **EscalateCaseTransition Target Stages:** `CaseDefaultStageEscalated`
871
867
 
872
868
  **MoveCaseOutageToSolvedTransition Target Stages:** `OutagePipelineStageSolved`
@@ -23,7 +23,7 @@ export interface CboUpdateMessage extends OdinRecordUpdatedEvent<CboUpdateDto, C
23
23
  * Properties for CboUpdate action
24
24
  *
25
25
  * @property Required fields: 0
26
- * @property Optional fields: 6
26
+ * @property Optional fields: 7
27
27
  */
28
28
  export interface CboUpdateProperties {
29
29
  /**
@@ -61,6 +61,13 @@ export interface CboUpdateProperties {
61
61
  * @type {ENUM}
62
62
  */
63
63
  PreviousProvider?: string | null;
64
+ /**
65
+ * FinalBillVerified
66
+ *
67
+ * Final Bill Verifired (Sales - ContractBuyOut)
68
+ * @type {BOOLEAN}
69
+ */
70
+ FinalBillVerified?: boolean | null;
64
71
  }
65
72
  /**
66
73
  * CboUpdate
@@ -29,10 +29,10 @@ export interface UpdateAdditionalCareProperties {
29
29
  * Additional Care Consent
30
30
  *
31
31
  * Customer consent for recording additional care requiremetns (Sales - Contact)
32
- * @type {BOOLEAN}
32
+ * @type {ENUM}
33
33
  * @required
34
34
  */
35
- AdditionalCareConsent: boolean;
35
+ AdditionalCareConsent: string;
36
36
  /**
37
37
  * Medically Dependant
38
38
  *
@@ -53,10 +53,10 @@ export interface UpdateContactProperties {
53
53
  * Additional Care Consent
54
54
  *
55
55
  * Customer consent for recording additional care requiremetns (Sales - Contact)
56
- * @type {BOOLEAN}
56
+ * @type {ENUM}
57
57
  * @required
58
58
  */
59
- AdditionalCareConsent: boolean;
59
+ AdditionalCareConsent: string;
60
60
  /**
61
61
  * Phone
62
62
  *
@@ -703,6 +703,19 @@ export declare enum CaseSource {
703
703
  USERESPONSE = "USERESPONSE",
704
704
  WEBSITE = "WEBSITE"
705
705
  }
706
+ /**
707
+ * Valid values for Case.VulnerableCustomer
708
+ *
709
+ * Vulnerable Customer
710
+ *
711
+ * @remarks Available options:
712
+ * - `NO` - No
713
+ * - `YES` - Yes
714
+ */
715
+ export declare enum CaseVulnerableCustomer {
716
+ NO = "NO",
717
+ YES = "YES"
718
+ }
706
719
  /**
707
720
  * Valid values for Case.Deprecated
708
721
  *
@@ -895,8 +908,8 @@ export declare enum CasePropertyKeys {
895
908
  CCreatedAt = "C_CreatedAt",
896
909
  /** This id represents the id receved from social media platforms for a user (Customer Service - Case) */
897
910
  SocialMediaExternalId = "SocialMediaExternalId",
898
- /** Case merged into */
899
- CaseMergedInto = "CaseMergedInto",
911
+ /** Vulnerable Customer */
912
+ VulnerableCustomer = "VulnerableCustomer",
900
913
  /** Data field for Case records. Used by Customer Service team. */
901
914
  Deprecated = "Deprecated"
902
915
  }
@@ -1383,11 +1396,12 @@ export interface CaseProperties {
1383
1396
  * @type {TEXT}
1384
1397
  */
1385
1398
  SocialMediaExternalId: string;
1386
- /** Case merged into
1399
+ /** Vulnerable Customer
1387
1400
  *
1388
- * @type {LOOKUP}
1401
+ * @type {ENUM}
1402
+ * @enum {CaseVulnerableCustomer}
1389
1403
  */
1390
- CaseMergedInto: string;
1404
+ VulnerableCustomer: CaseVulnerableCustomer;
1391
1405
  /** Data field for Case records. Used by Customer Service team.
1392
1406
  *
1393
1407
  * @type {ENUM}
@@ -1878,11 +1892,12 @@ export interface OutageCaseProperties {
1878
1892
  * @type {TEXT}
1879
1893
  */
1880
1894
  SocialMediaExternalId: string;
1881
- /** Case merged into
1895
+ /** Vulnerable Customer
1882
1896
  *
1883
- * @type {LOOKUP}
1897
+ * @type {ENUM}
1898
+ * @enum {CaseVulnerableCustomer}
1884
1899
  */
1885
- CaseMergedInto: string;
1900
+ VulnerableCustomer: CaseVulnerableCustomer;
1886
1901
  /** Data field for Case records. Used by Customer Service team.
1887
1902
  *
1888
1903
  * @type {ENUM}
@@ -12,8 +12,8 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_CASE_CONVERSATION_CREATED = exports.ROUTING_KEY_LINK_CASE_TEAM_DELETED = exports.ROUTING_KEY_LINK_CASE_TEAM_CREATED = exports.ROUTING_KEY_LINK_CASE_NOTE_DELETED = exports.ROUTING_KEY_LINK_CASE_NOTE_CREATED = exports.ROUTING_KEY_LINK_CASE_FILE_DELETED = exports.ROUTING_KEY_LINK_CASE_FILE_CREATED = exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_CREATED = exports.ROUTING_KEY_LINK_CASE_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_CASE_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_CASE_OUTAGE_DELETED = exports.ROUTING_KEY_CASE_OUTAGE_UPDATED = exports.ROUTING_KEY_CASE_OUTAGE_CREATED = exports.ROUTING_KEY_CASE_DEFAULT_DELETED = exports.ROUTING_KEY_CASE_DEFAULT_UPDATED = exports.ROUTING_KEY_CASE_DEFAULT_CREATED = exports.ROUTING_KEY_CASE_DELETED = exports.ROUTING_KEY_CASE_UPDATED = exports.ROUTING_KEY_CASE_CREATED = exports.Case = exports.CasePropertyKeys = exports.CaseDeprecated = exports.CaseSource = exports.CaseReasonForReview = exports.CaseImpact = exports.CaseCsatReason = exports.CaseBusinessArea = exports.CaseSla = exports.CaseDpaCustomerType = exports.CaseDpaCustomerCategory = exports.CaseConversationStatus = exports.CaseBlockedReason = exports.CaseSubCategory = exports.CaseCategory = exports.CaseChannel = exports.CaseProblem = exports.CasePrimaryExceptionReason = exports.CasePrimaryException = exports.CaseFormalComplaint = exports.CaseOrigin = exports.CaseProviders = exports.CaseCsatResolutionReason = exports.CaseComplaint = exports.CaseCsatAgentReason = exports.OutageCaseStageKeys = exports.OutageCaseStageNames = exports.DefaultCaseStageKeys = exports.DefaultCaseStageNames = exports.CaseEntityTypes = void 0;
16
- exports.ROUTING_KEY_LINK_CASE_CASE_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_CREATED = exports.ROUTING_KEY_LINK_CASE_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CASE_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CASE_USER_DELETED = exports.ROUTING_KEY_LINK_CASE_USER_CREATED = exports.ROUTING_KEY_LINK_CASE_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CASE_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CASE_QUEUE_CHANGE_DELETED = exports.ROUTING_KEY_LINK_CASE_QUEUE_CHANGE_CREATED = exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_CASE_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CASE_EMAIL_DELETED = exports.ROUTING_KEY_LINK_CASE_EMAIL_CREATED = exports.ROUTING_KEY_LINK_CASE_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CASE_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CASE_ORDER_DELETED = exports.ROUTING_KEY_LINK_CASE_ORDER_CREATED = exports.ROUTING_KEY_LINK_CASE_CONVERSATION_DELETED = void 0;
15
+ exports.ROUTING_KEY_LINK_CASE_TEAM_DELETED = exports.ROUTING_KEY_LINK_CASE_TEAM_CREATED = exports.ROUTING_KEY_LINK_CASE_NOTE_DELETED = exports.ROUTING_KEY_LINK_CASE_NOTE_CREATED = exports.ROUTING_KEY_LINK_CASE_FILE_DELETED = exports.ROUTING_KEY_LINK_CASE_FILE_CREATED = exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_CREATED = exports.ROUTING_KEY_LINK_CASE_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_CASE_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_CASE_OUTAGE_DELETED = exports.ROUTING_KEY_CASE_OUTAGE_UPDATED = exports.ROUTING_KEY_CASE_OUTAGE_CREATED = exports.ROUTING_KEY_CASE_DEFAULT_DELETED = exports.ROUTING_KEY_CASE_DEFAULT_UPDATED = exports.ROUTING_KEY_CASE_DEFAULT_CREATED = exports.ROUTING_KEY_CASE_DELETED = exports.ROUTING_KEY_CASE_UPDATED = exports.ROUTING_KEY_CASE_CREATED = exports.Case = exports.CasePropertyKeys = exports.CaseDeprecated = exports.CaseVulnerableCustomer = exports.CaseSource = exports.CaseReasonForReview = exports.CaseImpact = exports.CaseCsatReason = exports.CaseBusinessArea = exports.CaseSla = exports.CaseDpaCustomerType = exports.CaseDpaCustomerCategory = exports.CaseConversationStatus = exports.CaseBlockedReason = exports.CaseSubCategory = exports.CaseCategory = exports.CaseChannel = exports.CaseProblem = exports.CasePrimaryExceptionReason = exports.CasePrimaryException = exports.CaseFormalComplaint = exports.CaseOrigin = exports.CaseProviders = exports.CaseCsatResolutionReason = exports.CaseComplaint = exports.CaseCsatAgentReason = exports.OutageCaseStageKeys = exports.OutageCaseStageNames = exports.DefaultCaseStageKeys = exports.DefaultCaseStageNames = exports.CaseEntityTypes = void 0;
16
+ exports.ROUTING_KEY_LINK_CASE_CASE_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_CREATED = exports.ROUTING_KEY_LINK_CASE_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CASE_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CASE_USER_DELETED = exports.ROUTING_KEY_LINK_CASE_USER_CREATED = exports.ROUTING_KEY_LINK_CASE_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CASE_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CASE_QUEUE_CHANGE_DELETED = exports.ROUTING_KEY_LINK_CASE_QUEUE_CHANGE_CREATED = exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_CASE_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CASE_EMAIL_DELETED = exports.ROUTING_KEY_LINK_CASE_EMAIL_CREATED = exports.ROUTING_KEY_LINK_CASE_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CASE_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CASE_ORDER_DELETED = exports.ROUTING_KEY_LINK_CASE_ORDER_CREATED = exports.ROUTING_KEY_LINK_CASE_CONVERSATION_DELETED = exports.ROUTING_KEY_LINK_CASE_CONVERSATION_CREATED = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
19
  * Available types for Case records
@@ -714,6 +714,20 @@ var CaseSource;
714
714
  CaseSource["USERESPONSE"] = "USERESPONSE";
715
715
  CaseSource["WEBSITE"] = "WEBSITE";
716
716
  })(CaseSource = exports.CaseSource || (exports.CaseSource = {}));
717
+ /**
718
+ * Valid values for Case.VulnerableCustomer
719
+ *
720
+ * Vulnerable Customer
721
+ *
722
+ * @remarks Available options:
723
+ * - `NO` - No
724
+ * - `YES` - Yes
725
+ */
726
+ var CaseVulnerableCustomer;
727
+ (function (CaseVulnerableCustomer) {
728
+ CaseVulnerableCustomer["NO"] = "NO";
729
+ CaseVulnerableCustomer["YES"] = "YES";
730
+ })(CaseVulnerableCustomer = exports.CaseVulnerableCustomer || (exports.CaseVulnerableCustomer = {}));
717
731
  /**
718
732
  * Valid values for Case.Deprecated
719
733
  *
@@ -908,8 +922,8 @@ var CasePropertyKeys;
908
922
  CasePropertyKeys["CCreatedAt"] = "C_CreatedAt";
909
923
  /** This id represents the id receved from social media platforms for a user (Customer Service - Case) */
910
924
  CasePropertyKeys["SocialMediaExternalId"] = "SocialMediaExternalId";
911
- /** Case merged into */
912
- CasePropertyKeys["CaseMergedInto"] = "CaseMergedInto";
925
+ /** Vulnerable Customer */
926
+ CasePropertyKeys["VulnerableCustomer"] = "VulnerableCustomer";
913
927
  /** Data field for Case records. Used by Customer Service team. */
914
928
  CasePropertyKeys["Deprecated"] = "Deprecated";
915
929
  })(CasePropertyKeys = exports.CasePropertyKeys || (exports.CasePropertyKeys = {}));
@@ -81,6 +81,19 @@ export declare enum ContactCurrentProvider {
81
81
  VODAFONE = "VODAFONE",
82
82
  ZEN = "ZEN"
83
83
  }
84
+ /**
85
+ * Valid values for Contact.AdditionalCareConsent
86
+ *
87
+ * Customer consent for recording additional care requiremetns (Sales - Contact)
88
+ *
89
+ * @remarks Available options:
90
+ * - `NO` - No
91
+ * - `YES` - Yes
92
+ */
93
+ export declare enum ContactAdditionalCareConsent {
94
+ NO = "NO",
95
+ YES = "YES"
96
+ }
84
97
  /**
85
98
  * Valid values for Contact.PortalStatus
86
99
  *
@@ -285,10 +298,10 @@ export declare enum ContactPropertyKeys {
285
298
  CompanyPosition = "CompanyPosition",
286
299
  /** hear about us other (Sales - Contact) */
287
300
  HearAboutUsOther = "HearAboutUsOther",
288
- /** Customer consent for recording additional care requiremetns (Sales - Contact) */
289
- AdditionalCareConsent = "AdditionalCareConsent",
290
301
  /** vulnerable customer */
291
302
  VulnerableCustomer = "VulnerableCustomer",
303
+ /** Customer consent for recording additional care requiremetns (Sales - Contact) */
304
+ AdditionalCareConsent = "AdditionalCareConsent",
292
305
  /** NONE if never registered, INACTIVE if requested a code, ACTIVE if completed registration (Sales - Contact) */
293
306
  PortalStatus = "PortalStatus",
294
307
  /** Referral Code (Sales - Contact) */
@@ -423,17 +436,18 @@ export interface ContactProperties {
423
436
  * @hidden This field is hidden in the UI
424
437
  */
425
438
  HearAboutUsOther: string;
426
- /** Customer consent for recording additional care requiremetns (Sales - Contact)
427
- *
428
- * @type {BOOLEAN}
429
- * @hidden This field is hidden in the UI
430
- */
431
- AdditionalCareConsent: boolean;
432
439
  /** vulnerable customer
433
440
  *
434
441
  * @type {BOOLEAN}
435
442
  */
436
443
  VulnerableCustomer: boolean;
444
+ /** Customer consent for recording additional care requiremetns (Sales - Contact)
445
+ *
446
+ * @type {ENUM}
447
+ * @enum {ContactAdditionalCareConsent}
448
+ * @hidden This field is hidden in the UI
449
+ */
450
+ AdditionalCareConsent: ContactAdditionalCareConsent;
437
451
  /** NONE if never registered, INACTIVE if requested a code, ACTIVE if completed registration (Sales - Contact)
438
452
  *
439
453
  * @type {ENUM}
@@ -727,11 +741,13 @@ export interface ContactProperties {
727
741
  *
728
742
  * @type {ENUM}
729
743
  * @enum {ContactWhitelistedTwilioQueue}
744
+ * @hidden This field is hidden in the UI
730
745
  */
731
746
  WhitelistedTwilioQueue: ContactWhitelistedTwilioQueue;
732
747
  /** Time when the whitelisting ends and the user falls back to the main IVR again.
733
748
  *
734
749
  * @type {DATE_TIME}
750
+ * @hidden This field is hidden in the UI
735
751
  */
736
752
  WhitelistTwilioEndTime: string;
737
753
  /** Phone number (Sales - Contact)
@@ -12,8 +12,8 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_CONTACT_REWARD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_DELETED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_CREATED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_FILE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_FILE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_DELETED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_CREATED = exports.ROUTING_KEY_CONTACT_DEFAULT_DELETED = exports.ROUTING_KEY_CONTACT_DEFAULT_UPDATED = exports.ROUTING_KEY_CONTACT_DEFAULT_CREATED = exports.ROUTING_KEY_CONTACT_DELETED = exports.ROUTING_KEY_CONTACT_UPDATED = exports.ROUTING_KEY_CONTACT_CREATED = exports.Contact = exports.ContactPropertyKeys = exports.ContactWhitelistedTwilioQueue = exports.ContactMedicallyDependant = exports.ContactTelecareAlarm = exports.ContactAdditionalCareRequired = exports.ContactAccountStatus = exports.ContactActivationSource = exports.ContactCurrentNetworkProvider = exports.ContactRole = exports.ContactPreviousProvider = exports.ContactHomeownerStatus = exports.ContactPortalStatus = exports.ContactCurrentProvider = exports.ContactEntityTypes = void 0;
16
- exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_DELETED = void 0;
15
+ exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_DELETED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_CREATED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_FILE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_FILE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_DELETED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_CREATED = exports.ROUTING_KEY_CONTACT_DEFAULT_DELETED = exports.ROUTING_KEY_CONTACT_DEFAULT_UPDATED = exports.ROUTING_KEY_CONTACT_DEFAULT_CREATED = exports.ROUTING_KEY_CONTACT_DELETED = exports.ROUTING_KEY_CONTACT_UPDATED = exports.ROUTING_KEY_CONTACT_CREATED = exports.Contact = exports.ContactPropertyKeys = exports.ContactWhitelistedTwilioQueue = exports.ContactMedicallyDependant = exports.ContactTelecareAlarm = exports.ContactAdditionalCareRequired = exports.ContactAccountStatus = exports.ContactActivationSource = exports.ContactCurrentNetworkProvider = exports.ContactRole = exports.ContactPreviousProvider = exports.ContactHomeownerStatus = exports.ContactPortalStatus = exports.ContactAdditionalCareConsent = exports.ContactCurrentProvider = exports.ContactEntityTypes = void 0;
16
+ exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_CREATED = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
19
  * Available types for Contact records
@@ -55,6 +55,20 @@ var ContactCurrentProvider;
55
55
  ContactCurrentProvider["VODAFONE"] = "VODAFONE";
56
56
  ContactCurrentProvider["ZEN"] = "ZEN";
57
57
  })(ContactCurrentProvider = exports.ContactCurrentProvider || (exports.ContactCurrentProvider = {}));
58
+ /**
59
+ * Valid values for Contact.AdditionalCareConsent
60
+ *
61
+ * Customer consent for recording additional care requiremetns (Sales - Contact)
62
+ *
63
+ * @remarks Available options:
64
+ * - `NO` - No
65
+ * - `YES` - Yes
66
+ */
67
+ var ContactAdditionalCareConsent;
68
+ (function (ContactAdditionalCareConsent) {
69
+ ContactAdditionalCareConsent["NO"] = "NO";
70
+ ContactAdditionalCareConsent["YES"] = "YES";
71
+ })(ContactAdditionalCareConsent = exports.ContactAdditionalCareConsent || (exports.ContactAdditionalCareConsent = {}));
58
72
  /**
59
73
  * Valid values for Contact.PortalStatus
60
74
  *
@@ -271,10 +285,10 @@ var ContactPropertyKeys;
271
285
  ContactPropertyKeys["CompanyPosition"] = "CompanyPosition";
272
286
  /** hear about us other (Sales - Contact) */
273
287
  ContactPropertyKeys["HearAboutUsOther"] = "HearAboutUsOther";
274
- /** Customer consent for recording additional care requiremetns (Sales - Contact) */
275
- ContactPropertyKeys["AdditionalCareConsent"] = "AdditionalCareConsent";
276
288
  /** vulnerable customer */
277
289
  ContactPropertyKeys["VulnerableCustomer"] = "VulnerableCustomer";
290
+ /** Customer consent for recording additional care requiremetns (Sales - Contact) */
291
+ ContactPropertyKeys["AdditionalCareConsent"] = "AdditionalCareConsent";
278
292
  /** NONE if never registered, INACTIVE if requested a code, ACTIVE if completed registration (Sales - Contact) */
279
293
  ContactPropertyKeys["PortalStatus"] = "PortalStatus";
280
294
  /** Referral Code (Sales - Contact) */
@@ -30,7 +30,6 @@ import { CreateNoteForCaseAssignmentProperties } from '../actions-v2/AssignCaseW
30
30
  import { EscalateCaseActionProperties } from '../actions-v2/CaseDefaultStageEscalatedDto';
31
31
  import { MoveCaseToBlockedActionProperties } from '../actions-v2/CaseTransitionEscalatedToBlockedDto';
32
32
  import { ChangeCaseChannelProperties } from '../actions-v2/ChangeCaseChannelDto';
33
- import { CloseAndMergeCaseActionProperties } from '../actions-v2/CloseAndMergeCaseActionDto';
34
33
  import { CreateCaseProperties } from '../actions-v2/CreateCaseDto';
35
34
  import { CreateCaseFromCasesProperties } from '../actions-v2/CreateCaseFromCasesDto';
36
35
  import { CreateCaseWithDpaProperties } from '../actions-v2/CreateCaseWithDpaDto';
@@ -975,68 +974,6 @@ export declare class CasteTransitionOpenToEscalatedFlowBuilder {
975
974
  private _buildRequestPayload;
976
975
  }
977
976
  /** Options for a flow step */
978
- export interface CloseAndMergeCaseFlowBuilderStepOptions {
979
- /** Associations to create with this step */
980
- associations?: Array<{
981
- recordId?: string;
982
- entity?: string;
983
- }>;
984
- /** Groups for this step */
985
- groups?: string[];
986
- }
987
- /**
988
- * FlowBuilder for CloseAndMergeCase multi-step action
989
- *
990
- * Use method chaining to add steps, then call execute() to run the flow.
991
- * Transitions to stage: CaseDefaultStageClosed
992
- */
993
- export declare class CloseAndMergeCaseFlowBuilder {
994
- private _record;
995
- private _provider;
996
- private _pendingLinks;
997
- private _options?;
998
- private _groups;
999
- private _steps;
1000
- constructor(record: CaseRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
1001
- journeyId?: string;
1002
- });
1003
- /**
1004
- * Add a group to the main action
1005
- * @param group - Group name to add
1006
- * @returns this (for method chaining)
1007
- */
1008
- addGroup(group: string): this;
1009
- /**
1010
- * Add CloseAndMergeCaseAction step to the flow
1011
- * @param id - ID of the record to update
1012
- * @param properties - Properties for this step
1013
- * @param options - Optional step settings
1014
- * @returns this (for method chaining)
1015
- */
1016
- closeAndMergeCaseAction(id: string, properties: CloseAndMergeCaseActionProperties, options?: CloseAndMergeCaseFlowBuilderStepOptions): this;
1017
- /**
1018
- * Execute the flow
1019
- * @returns The result from the API
1020
- */
1021
- execute(): Promise<IDbRecordCreateUpdateRes[]>;
1022
- /**
1023
- * Returns the request payload without executing (for debugging)
1024
- * @returns The request payload that would be sent to the API
1025
- */
1026
- dryRun(): Record<string, any>;
1027
- /**
1028
- * Prevents accidental `await flowBuilder` without .execute()
1029
- * Forces developers to explicitly call .execute()
1030
- * @throws Error always - use .execute() or .dryRun() instead
1031
- */
1032
- then(): never;
1033
- /**
1034
- * Build the request payload for the action
1035
- * @private
1036
- */
1037
- private _buildRequestPayload;
1038
- }
1039
- /** Options for a flow step */
1040
977
  export interface EscalateCaseTransitionFlowBuilderStepOptions {
1041
978
  /** Associations to create with this step */
1042
979
  associations?: Array<{
@@ -2302,56 +2239,6 @@ export declare class CaseRecord<TProps = CaseProperties> {
2302
2239
  journeyId?: string;
2303
2240
  stageKey?: string;
2304
2241
  }): ActionBuilder;
2305
- /**
2306
- * CloseAndMergeCaseAction
2307
- *
2308
- * Updates this Case record with the specified properties.
2309
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
2310
- *
2311
- * @param properties - Required properties for this action
2312
- * @param options - Optional settings
2313
- * @param options.journeyId - Associate with a journey
2314
- * @param options.stageKey - Transition to pipeline stage
2315
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
2316
- * @throws Error if called on a new (unsaved) record
2317
- *
2318
- * @example
2319
- * ```typescript
2320
- * const record = await odinClient.cases.get(id);
2321
- * await record.closeAndMergeCaseAction({ ... }).execute();
2322
- *
2323
- * // Dry run (for debugging)
2324
- * const payload = record.closeAndMergeCaseAction({ ... }).dryRun();
2325
- * ```
2326
- */
2327
- closeAndMergeCaseAction(properties: CloseAndMergeCaseActionProperties, options?: {
2328
- journeyId?: string;
2329
- stageKey?: string;
2330
- }): ActionBuilder;
2331
- /**
2332
- * CloseAndMergeCase
2333
- *
2334
- * Starts a stage transition flow on this Case record.
2335
- * Chain step methods and call .execute() to run the flow.
2336
- *
2337
- * @remarks Transitions to stage: CaseDefaultStageClosed
2338
- *
2339
- * @param options - Optional settings
2340
- * @param options.journeyId - Associate with a journey
2341
- * @returns FlowBuilder for chaining step methods
2342
- * @throws Error if called on a new (unsaved) record
2343
- *
2344
- * @example
2345
- * ```typescript
2346
- * const record = await odinClient.cases.get(id);
2347
- * await record.closeAndMergeCase()
2348
- * .closeAndMergeCaseAction(recordId, { ... })
2349
- * .execute();
2350
- * ```
2351
- */
2352
- closeAndMergeCase(options?: {
2353
- journeyId?: string;
2354
- }): CloseAndMergeCaseFlowBuilder;
2355
2242
  /**
2356
2243
  * EditCaseForm
2357
2244
  *
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
28
  });
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.isCaseRecord = exports.CaseRecord = exports.MoveDefaultCaseFromOpenToClosedFlowBuilder = exports.MoveCaseToClosedWithAdditionalNoteFlowBuilder = exports.MoveCaseToBlockedTransitionFlowBuilder = exports.EscalateCaseTransitionFlowBuilder = exports.CloseAndMergeCaseFlowBuilder = exports.CasteTransitionOpenToEscalatedFlowBuilder = exports.CasedefaultstageblockedFlowBuilder = exports.CaseTransitionSolvedToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToBlockedFlowBuilder = exports.CaseTransitionPendingAgentToEscalatedFlowBuilder = exports.CaseTransitionPendingAgentToBlockedFlowBuilder = exports.CaseTransitionOpenToBlockedFlowBuilder = exports.CaseTransitionEscalatedToEscalatedFlowBuilder = exports.CaseTransitionEscalatedToBlockedFlowBuilder = exports.CaseTransitionBlockedToEscalatedFlowBuilder = exports.CaseDefaultStageEscalatedFlowBuilder = exports.AssignCaseWithNoteFlowFlowBuilder = void 0;
31
+ exports.isCaseRecord = exports.CaseRecord = exports.MoveDefaultCaseFromOpenToClosedFlowBuilder = exports.MoveCaseToClosedWithAdditionalNoteFlowBuilder = exports.MoveCaseToBlockedTransitionFlowBuilder = exports.EscalateCaseTransitionFlowBuilder = exports.CasteTransitionOpenToEscalatedFlowBuilder = exports.CasedefaultstageblockedFlowBuilder = exports.CaseTransitionSolvedToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToBlockedFlowBuilder = exports.CaseTransitionPendingAgentToEscalatedFlowBuilder = exports.CaseTransitionPendingAgentToBlockedFlowBuilder = exports.CaseTransitionOpenToBlockedFlowBuilder = exports.CaseTransitionEscalatedToEscalatedFlowBuilder = exports.CaseTransitionEscalatedToBlockedFlowBuilder = exports.CaseTransitionBlockedToEscalatedFlowBuilder = exports.CaseDefaultStageEscalatedFlowBuilder = exports.AssignCaseWithNoteFlowFlowBuilder = void 0;
32
32
  const uuid_1 = require("uuid");
33
33
  const core_1 = require("@d19n/odin-types/dist/core");
34
34
  const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
@@ -1635,114 +1635,6 @@ class CasteTransitionOpenToEscalatedFlowBuilder {
1635
1635
  }
1636
1636
  }
1637
1637
  exports.CasteTransitionOpenToEscalatedFlowBuilder = CasteTransitionOpenToEscalatedFlowBuilder;
1638
- /**
1639
- * FlowBuilder for CloseAndMergeCase multi-step action
1640
- *
1641
- * Use method chaining to add steps, then call execute() to run the flow.
1642
- * Transitions to stage: CaseDefaultStageClosed
1643
- */
1644
- class CloseAndMergeCaseFlowBuilder {
1645
- constructor(record, provider, pendingLinks, options) {
1646
- this._groups = [];
1647
- this._steps = [];
1648
- this._record = record;
1649
- this._provider = provider;
1650
- this._pendingLinks = pendingLinks;
1651
- this._options = options;
1652
- }
1653
- /**
1654
- * Add a group to the main action
1655
- * @param group - Group name to add
1656
- * @returns this (for method chaining)
1657
- */
1658
- addGroup(group) {
1659
- this._groups.push(group);
1660
- return this;
1661
- }
1662
- /**
1663
- * Add CloseAndMergeCaseAction step to the flow
1664
- * @param id - ID of the record to update
1665
- * @param properties - Properties for this step
1666
- * @param options - Optional step settings
1667
- * @returns this (for method chaining)
1668
- */
1669
- closeAndMergeCaseAction(id, properties, options) {
1670
- var _a;
1671
- this._steps.push({
1672
- actionName: 'CloseAndMergeCaseAction',
1673
- properties,
1674
- id,
1675
- entity: 'SupportModule:Case',
1676
- type: 'DEFAULT',
1677
- autoLinkParent: false,
1678
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1679
- groups: options === null || options === void 0 ? void 0 : options.groups,
1680
- });
1681
- return this;
1682
- }
1683
- /**
1684
- * Execute the flow
1685
- * @returns The result from the API
1686
- */
1687
- execute() {
1688
- return __awaiter(this, void 0, void 0, function* () {
1689
- const payload = this._buildRequestPayload();
1690
- const result = yield this._provider._applyAction('SupportModule', 'Case', payload);
1691
- // Clear pending links on the record after execution
1692
- this._record.clearPendingLinks();
1693
- return result;
1694
- });
1695
- }
1696
- /**
1697
- * Returns the request payload without executing (for debugging)
1698
- * @returns The request payload that would be sent to the API
1699
- */
1700
- dryRun() {
1701
- return this._buildRequestPayload();
1702
- }
1703
- /**
1704
- * Prevents accidental `await flowBuilder` without .execute()
1705
- * Forces developers to explicitly call .execute()
1706
- * @throws Error always - use .execute() or .dryRun() instead
1707
- */
1708
- then() {
1709
- throw new Error('FlowBuilder cannot be awaited directly. Call .execute() to run the flow or .dryRun() to get the payload.');
1710
- }
1711
- /**
1712
- * Build the request payload for the action
1713
- * @private
1714
- */
1715
- _buildRequestPayload() {
1716
- const record = this._record.record;
1717
- if (!(record === null || record === void 0 ? void 0 : record.id))
1718
- throw new Error('Cannot execute flow on unsaved record');
1719
- // Build steps with parent associations
1720
- const stepsWithAssociations = this._steps.map(step => {
1721
- const stepAssociations = [...(step.associations || [])];
1722
- // Auto-add parent association if step requires it
1723
- if (step.autoLinkParent) {
1724
- stepAssociations.push({
1725
- entity: record.entity,
1726
- recordId: record.id,
1727
- linkType: null,
1728
- relationType: 'PARENT',
1729
- });
1730
- }
1731
- return {
1732
- entity: step.entity,
1733
- type: step.type,
1734
- actionName: step.actionName,
1735
- properties: step.properties,
1736
- title: step.title,
1737
- id: step.id,
1738
- associations: stepAssociations.length > 0 ? stepAssociations : undefined,
1739
- groups: step.groups,
1740
- };
1741
- });
1742
- return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CloseAndMergeCase', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageClosed' }, this._options);
1743
- }
1744
- }
1745
- exports.CloseAndMergeCaseFlowBuilder = CloseAndMergeCaseFlowBuilder;
1746
1638
  /**
1747
1639
  * FlowBuilder for EscalateCaseTransition multi-step action
1748
1640
  *
@@ -3537,62 +3429,6 @@ class CaseRecord {
3537
3429
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'ChangeCaseChannel', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3538
3430
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3539
3431
  }
3540
- /**
3541
- * CloseAndMergeCaseAction
3542
- *
3543
- * Updates this Case record with the specified properties.
3544
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3545
- *
3546
- * @param properties - Required properties for this action
3547
- * @param options - Optional settings
3548
- * @param options.journeyId - Associate with a journey
3549
- * @param options.stageKey - Transition to pipeline stage
3550
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3551
- * @throws Error if called on a new (unsaved) record
3552
- *
3553
- * @example
3554
- * ```typescript
3555
- * const record = await odinClient.cases.get(id);
3556
- * await record.closeAndMergeCaseAction({ ... }).execute();
3557
- *
3558
- * // Dry run (for debugging)
3559
- * const payload = record.closeAndMergeCaseAction({ ... }).dryRun();
3560
- * ```
3561
- */
3562
- closeAndMergeCaseAction(properties, options) {
3563
- var _a;
3564
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3565
- throw new Error('closeAndMergeCaseAction requires an existing record. Use accessor.get() first.');
3566
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CloseAndMergeCaseAction', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
3567
- return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3568
- }
3569
- /**
3570
- * CloseAndMergeCase
3571
- *
3572
- * Starts a stage transition flow on this Case record.
3573
- * Chain step methods and call .execute() to run the flow.
3574
- *
3575
- * @remarks Transitions to stage: CaseDefaultStageClosed
3576
- *
3577
- * @param options - Optional settings
3578
- * @param options.journeyId - Associate with a journey
3579
- * @returns FlowBuilder for chaining step methods
3580
- * @throws Error if called on a new (unsaved) record
3581
- *
3582
- * @example
3583
- * ```typescript
3584
- * const record = await odinClient.cases.get(id);
3585
- * await record.closeAndMergeCase()
3586
- * .closeAndMergeCaseAction(recordId, { ... })
3587
- * .execute();
3588
- * ```
3589
- */
3590
- closeAndMergeCase(options) {
3591
- var _a;
3592
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3593
- throw new Error('closeAndMergeCase requires an existing record. Use accessor.get() first.');
3594
- return new CloseAndMergeCaseFlowBuilder(this, this._provider, this._pendingLinks, options);
3595
- }
3596
3432
  /**
3597
3433
  * EditCaseForm
3598
3434
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.181",
3
+ "version": "2.0.182",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -1,93 +0,0 @@
1
- /**
2
- * CloseAndMergeCaseAction Action DTO
3
- *
4
- * Close And Merge Case Action
5
- *
6
- * @module SupportModule
7
- * @entity Case
8
- * @entityType DEFAULT
9
- * @actionKey CloseAndMergeCaseAction
10
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
- /**
16
- * RabbitMQ message payload for CloseAndMergeCaseAction updated events
17
- *
18
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
19
- */
20
- export interface CloseAndMergeCaseActionMessage extends OdinRecordUpdatedEvent<CloseAndMergeCaseActionDto, CloseAndMergeCaseActionProperties> {
21
- }
22
- /**
23
- * Properties for CloseAndMergeCaseAction action
24
- *
25
- * @property Required fields: 1
26
- * @property Optional fields: 3
27
- */
28
- export interface CloseAndMergeCaseActionProperties {
29
- /**
30
- * Case merged into
31
- *
32
- * Case merged into
33
- * @type {LOOKUP}
34
- * @required
35
- */
36
- CaseMergedInto: string;
37
- /**
38
- * Allow CSAT communications
39
- *
40
- * Allow CSAT communications
41
- * @type {BOOLEAN}
42
- * @default false
43
- */
44
- CsatAllowed?: boolean | null;
45
- /**
46
- * Contact
47
- *
48
- * Reference identifier for Case relationships. Used for data integrity.
49
- * @type {LOOKUP}
50
- */
51
- ContactId?: string | null;
52
- }
53
- /**
54
- * CloseAndMergeCaseAction
55
- *
56
- * Close And Merge Case Action
57
- *
58
- * @actionType UPDATE - Updates an existing Case record
59
- * @module SupportModule
60
- * @entity Case
61
- * @entityType DEFAULT (Default)
62
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
63
- * @permission schema.action.closeandmergecaseaction.trigger
64
- * @benchmark This action is tracked for performance benchmarks
65
- */
66
- export declare class CloseAndMergeCaseActionDto extends OdinRecordUpdateDto<CloseAndMergeCaseActionProperties> {
67
- /** Used by SDK generators to identify action type */
68
- static readonly ACTION_TYPE = "UPDATE";
69
- static readonly ACTION_KEY = "CloseAndMergeCaseAction";
70
- static readonly MODULE_NAME = "SupportModule";
71
- static readonly ENTITIES: string[];
72
- static readonly ENTITY_TYPE = "DEFAULT";
73
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction";
74
- static readonly PERMISSION = "schema.action.closeandmergecaseaction.trigger";
75
- /** Step metadata - entity this action targets */
76
- static readonly STEP_ENTITY = "SupportModule:Case";
77
- static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
78
- static readonly STEP_SCHEMA_ACTION_ID = "b41bfc98-62c7-4097-80c0-914e043777b3";
79
- static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
80
- static readonly STEP_TYPE = "DEFAULT";
81
- static readonly AUTO_LINK_PARENT = false;
82
- readonly actionName: string;
83
- readonly schemaActionId: string;
84
- readonly entity: string;
85
- constructor(record: OdinRecord<any> | {
86
- id: string;
87
- entity: string;
88
- type?: string;
89
- }, properties: CloseAndMergeCaseActionProperties, options?: {
90
- journeyId?: string;
91
- stageKey?: string;
92
- });
93
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /**
3
- * CloseAndMergeCaseAction Action DTO
4
- *
5
- * Close And Merge Case Action
6
- *
7
- * @module SupportModule
8
- * @entity Case
9
- * @entityType DEFAULT
10
- * @actionKey CloseAndMergeCaseAction
11
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
12
- *
13
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CloseAndMergeCaseActionDto = void 0;
17
- const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * CloseAndMergeCaseAction
20
- *
21
- * Close And Merge Case Action
22
- *
23
- * @actionType UPDATE - Updates an existing Case record
24
- * @module SupportModule
25
- * @entity Case
26
- * @entityType DEFAULT (Default)
27
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
28
- * @permission schema.action.closeandmergecaseaction.trigger
29
- * @benchmark This action is tracked for performance benchmarks
30
- */
31
- class CloseAndMergeCaseActionDto extends core_1.OdinRecordUpdateDto {
32
- constructor(record, properties, options) {
33
- super({
34
- id: record.id,
35
- entity: record.entity,
36
- type: record.type,
37
- properties,
38
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
39
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
40
- });
41
- this.actionName = 'CloseAndMergeCaseAction';
42
- this.schemaActionId = 'b41bfc98-62c7-4097-80c0-914e043777b3';
43
- this.entity = 'SupportModule:Case';
44
- }
45
- }
46
- exports.CloseAndMergeCaseActionDto = CloseAndMergeCaseActionDto;
47
- /** Used by SDK generators to identify action type */
48
- CloseAndMergeCaseActionDto.ACTION_TYPE = 'UPDATE';
49
- CloseAndMergeCaseActionDto.ACTION_KEY = 'CloseAndMergeCaseAction';
50
- CloseAndMergeCaseActionDto.MODULE_NAME = 'SupportModule';
51
- CloseAndMergeCaseActionDto.ENTITIES = ['Case'];
52
- CloseAndMergeCaseActionDto.ENTITY_TYPE = 'DEFAULT';
53
- CloseAndMergeCaseActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction';
54
- CloseAndMergeCaseActionDto.PERMISSION = 'schema.action.closeandmergecaseaction.trigger';
55
- /** Step metadata - entity this action targets */
56
- CloseAndMergeCaseActionDto.STEP_ENTITY = 'SupportModule:Case';
57
- CloseAndMergeCaseActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
58
- CloseAndMergeCaseActionDto.STEP_SCHEMA_ACTION_ID = 'b41bfc98-62c7-4097-80c0-914e043777b3';
59
- CloseAndMergeCaseActionDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
60
- CloseAndMergeCaseActionDto.STEP_TYPE = 'DEFAULT';
61
- CloseAndMergeCaseActionDto.AUTO_LINK_PARENT = false;
@@ -1,191 +0,0 @@
1
- /**
2
- * CloseAndMergeCase Action DTO
3
- *
4
- * Close And Merge Case
5
- *
6
- * @module SupportModule
7
- * @entity Case
8
- * @entityType DEFAULT
9
- * @actionKey CloseAndMergeCase
10
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
- /**
16
- * Properties for CloseAndMergeCaseAction action
17
- *
18
- * @property Required fields: 1
19
- * @property Optional fields: 3
20
- */
21
- export interface CloseAndMergeCaseActionProperties {
22
- /**
23
- * Case merged into
24
- *
25
- * Case merged into
26
- * @type {LOOKUP}
27
- * @required
28
- */
29
- CaseMergedInto: string;
30
- /**
31
- * Allow CSAT communications
32
- *
33
- * Allow CSAT communications
34
- * @type {BOOLEAN}
35
- * @default false
36
- */
37
- CsatAllowed?: boolean | null;
38
- /**
39
- * Contact
40
- *
41
- * Reference identifier for Case relationships. Used for data integrity.
42
- * @type {LOOKUP}
43
- */
44
- ContactId?: string | null;
45
- }
46
- /**
47
- * CloseAndMergeCaseAction
48
- *
49
- * Close And Merge Case Action
50
- *
51
- * @actionType UPDATE - Updates an existing Case record
52
- * @module SupportModule
53
- * @entity Case
54
- * @entityType DEFAULT (Default)
55
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
56
- * @permission schema.action.closeandmergecaseaction.trigger
57
- * @benchmark This action is tracked for performance benchmarks
58
- */
59
- export declare class CloseAndMergeCaseActionDto extends OdinRecordUpdateDto<CloseAndMergeCaseActionProperties> {
60
- /** Used by SDK generators to identify action type */
61
- static readonly ACTION_TYPE = "UPDATE";
62
- static readonly ACTION_KEY = "CloseAndMergeCaseAction";
63
- static readonly MODULE_NAME = "SupportModule";
64
- static readonly ENTITIES: string[];
65
- static readonly ENTITY_TYPE = "DEFAULT";
66
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction";
67
- static readonly PERMISSION = "schema.action.closeandmergecaseaction.trigger";
68
- /** Step metadata - entity this action targets */
69
- static readonly STEP_ENTITY = "SupportModule:Case";
70
- static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
71
- static readonly STEP_SCHEMA_ACTION_ID = "b41bfc98-62c7-4097-80c0-914e043777b3";
72
- static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
73
- static readonly STEP_TYPE = "DEFAULT";
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: CloseAndMergeCaseActionProperties, options?: {
83
- journeyId?: string;
84
- stageKey?: string;
85
- });
86
- }
87
- declare type StepClassMap = {
88
- CloseAndMergeCaseActionDto: CloseAndMergeCaseActionDto;
89
- };
90
- /**
91
- * Link definition for connecting steps in CloseAndMergeCase
92
- */
93
- export interface CloseAndMergeCaseStepLink {
94
- /**
95
- * The stepKey of the target step to link TO
96
- * Must reference another step's stepKey in the same flow
97
- */
98
- stepKey: string;
99
- /**
100
- * The schema association ID (UUID) defining the relationship
101
- * Use the association.id from the schema association definition
102
- * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
103
- */
104
- schemaAssociationId: string;
105
- }
106
- /**
107
- * Step definition with linking metadata for CloseAndMergeCase
108
- */
109
- export interface CloseAndMergeCaseStepDefinition {
110
- /** Unique identifier for this step */
111
- stepKey: string;
112
- /** The DTO class name for this step */
113
- dtoClass: string;
114
- /** The entity this step creates (Module:Entity format) */
115
- entity: string;
116
- /** Links to create after this step executes */
117
- linksTo: CloseAndMergeCaseStepLink[] | null;
118
- }
119
- /**
120
- * Type-safe step keys for CloseAndMergeCase
121
- */
122
- export declare const CloseAndMergeCaseSteps: {
123
- readonly step_1: "step_1";
124
- };
125
- export declare type CloseAndMergeCaseStepKey = typeof CloseAndMergeCaseSteps[keyof typeof CloseAndMergeCaseSteps];
126
- /**
127
- * RabbitMQ message payload for CloseAndMergeCase step flow events
128
- *
129
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
130
- */
131
- export interface CloseAndMergeCaseMessage extends OdinRecordUpdatedEvent<CloseAndMergeCaseDto, {}> {
132
- }
133
- /**
134
- * Properties for CloseAndMergeCase action
135
- *
136
- */
137
- export interface CloseAndMergeCaseProperties {
138
- }
139
- /**
140
- * CloseAndMergeCase
141
- *
142
- * Close And Merge Case
143
- *
144
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
145
- * @module SupportModule
146
- * @entity Case
147
- * @entityType DEFAULT (Default)
148
- * @targetStages CaseDefaultStageClosed
149
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
150
- * @permission schema.action.closeandmergecase.trigger
151
- * @benchmark This action is tracked for performance benchmarks
152
- */
153
- export declare class CloseAndMergeCaseDto extends OdinRecordUpdateDto<Record<string, any>> {
154
- /** Used by SDK generators to identify action type */
155
- static readonly ACTION_TYPE = "UPDATE";
156
- static readonly ACTION_KEY = "CloseAndMergeCase";
157
- static readonly MODULE_NAME = "SupportModule";
158
- static readonly ENTITIES: string[];
159
- static readonly ENTITY_TYPE = "DEFAULT";
160
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase";
161
- static readonly SCHEMA_ACTION_ID = "d3a1d71d-9690-4f6d-94ac-6f40c44a9c2f";
162
- static readonly PERMISSION = "schema.action.closeandmergecase.trigger";
163
- static readonly TARGET_STAGES: readonly ["CaseDefaultStageClosed"];
164
- static readonly IS_STAGE_TRANSITION = true;
165
- static readonly IS_MULTI_STEP_FLOW = false;
166
- static readonly HAS_STEP_LINKS = false;
167
- /**
168
- * Step definitions with linking metadata
169
- * Used by SDK and backend for auto-linking after step execution
170
- */
171
- static readonly stepDefinitions: CloseAndMergeCaseStepDefinition[];
172
- /** Type-safe step key accessor */
173
- static readonly Steps: {
174
- readonly step_1: "step_1";
175
- };
176
- readonly actionName: string;
177
- readonly schemaActionId: string;
178
- readonly entity: string;
179
- readonly stageKey: string;
180
- constructor(record: OdinRecord<any> | {
181
- id: string;
182
- entity: string;
183
- type?: string;
184
- }, options?: {
185
- journeyId?: string;
186
- });
187
- /** Step classes that can be used with this action */
188
- static readonly stepClasses: readonly ["CloseAndMergeCaseActionDto"];
189
- steps: StepClassMap[(typeof CloseAndMergeCaseDto.stepClasses)[number]][];
190
- }
191
- export {};
@@ -1,126 +0,0 @@
1
- "use strict";
2
- /**
3
- * CloseAndMergeCase Action DTO
4
- *
5
- * Close And Merge Case
6
- *
7
- * @module SupportModule
8
- * @entity Case
9
- * @entityType DEFAULT
10
- * @actionKey CloseAndMergeCase
11
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
12
- *
13
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CloseAndMergeCaseDto = exports.CloseAndMergeCaseSteps = exports.CloseAndMergeCaseActionDto = void 0;
17
- const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * CloseAndMergeCaseAction
20
- *
21
- * Close And Merge Case Action
22
- *
23
- * @actionType UPDATE - Updates an existing Case record
24
- * @module SupportModule
25
- * @entity Case
26
- * @entityType DEFAULT (Default)
27
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
28
- * @permission schema.action.closeandmergecaseaction.trigger
29
- * @benchmark This action is tracked for performance benchmarks
30
- */
31
- class CloseAndMergeCaseActionDto extends core_1.OdinRecordUpdateDto {
32
- constructor(record, properties, options) {
33
- super({
34
- id: record.id,
35
- entity: record.entity,
36
- type: record.type,
37
- properties,
38
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
39
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
40
- });
41
- this.actionName = 'CloseAndMergeCaseAction';
42
- this.schemaActionId = 'b41bfc98-62c7-4097-80c0-914e043777b3';
43
- this.entity = 'SupportModule:Case';
44
- }
45
- }
46
- exports.CloseAndMergeCaseActionDto = CloseAndMergeCaseActionDto;
47
- /** Used by SDK generators to identify action type */
48
- CloseAndMergeCaseActionDto.ACTION_TYPE = 'UPDATE';
49
- CloseAndMergeCaseActionDto.ACTION_KEY = 'CloseAndMergeCaseAction';
50
- CloseAndMergeCaseActionDto.MODULE_NAME = 'SupportModule';
51
- CloseAndMergeCaseActionDto.ENTITIES = ['Case'];
52
- CloseAndMergeCaseActionDto.ENTITY_TYPE = 'DEFAULT';
53
- CloseAndMergeCaseActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction';
54
- CloseAndMergeCaseActionDto.PERMISSION = 'schema.action.closeandmergecaseaction.trigger';
55
- /** Step metadata - entity this action targets */
56
- CloseAndMergeCaseActionDto.STEP_ENTITY = 'SupportModule:Case';
57
- CloseAndMergeCaseActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
58
- CloseAndMergeCaseActionDto.STEP_SCHEMA_ACTION_ID = 'b41bfc98-62c7-4097-80c0-914e043777b3';
59
- CloseAndMergeCaseActionDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
60
- CloseAndMergeCaseActionDto.STEP_TYPE = 'DEFAULT';
61
- CloseAndMergeCaseActionDto.AUTO_LINK_PARENT = false;
62
- /**
63
- * Type-safe step keys for CloseAndMergeCase
64
- */
65
- exports.CloseAndMergeCaseSteps = {
66
- step_1: 'step_1',
67
- };
68
- /**
69
- * CloseAndMergeCase
70
- *
71
- * Close And Merge Case
72
- *
73
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
74
- * @module SupportModule
75
- * @entity Case
76
- * @entityType DEFAULT (Default)
77
- * @targetStages CaseDefaultStageClosed
78
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
79
- * @permission schema.action.closeandmergecase.trigger
80
- * @benchmark This action is tracked for performance benchmarks
81
- */
82
- class CloseAndMergeCaseDto extends core_1.OdinRecordUpdateDto {
83
- constructor(record, options) {
84
- super({
85
- id: record.id,
86
- entity: record.entity,
87
- type: record.type,
88
- properties: {},
89
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
90
- });
91
- this.actionName = 'CloseAndMergeCase';
92
- this.schemaActionId = 'd3a1d71d-9690-4f6d-94ac-6f40c44a9c2f';
93
- this.entity = 'SupportModule:Case';
94
- this.stageKey = 'CaseDefaultStageClosed';
95
- }
96
- }
97
- exports.CloseAndMergeCaseDto = CloseAndMergeCaseDto;
98
- /** Used by SDK generators to identify action type */
99
- CloseAndMergeCaseDto.ACTION_TYPE = 'UPDATE';
100
- CloseAndMergeCaseDto.ACTION_KEY = 'CloseAndMergeCase';
101
- CloseAndMergeCaseDto.MODULE_NAME = 'SupportModule';
102
- CloseAndMergeCaseDto.ENTITIES = ['Case'];
103
- CloseAndMergeCaseDto.ENTITY_TYPE = 'DEFAULT';
104
- CloseAndMergeCaseDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase';
105
- CloseAndMergeCaseDto.SCHEMA_ACTION_ID = 'd3a1d71d-9690-4f6d-94ac-6f40c44a9c2f';
106
- CloseAndMergeCaseDto.PERMISSION = 'schema.action.closeandmergecase.trigger';
107
- CloseAndMergeCaseDto.TARGET_STAGES = ['CaseDefaultStageClosed'];
108
- CloseAndMergeCaseDto.IS_STAGE_TRANSITION = true;
109
- CloseAndMergeCaseDto.IS_MULTI_STEP_FLOW = false;
110
- CloseAndMergeCaseDto.HAS_STEP_LINKS = false;
111
- /**
112
- * Step definitions with linking metadata
113
- * Used by SDK and backend for auto-linking after step execution
114
- */
115
- CloseAndMergeCaseDto.stepDefinitions = [
116
- {
117
- stepKey: 'step_1',
118
- dtoClass: 'CloseAndMergeCaseActionDto',
119
- entity: 'SupportModule:Case',
120
- linksTo: null
121
- }
122
- ];
123
- /** Type-safe step key accessor */
124
- CloseAndMergeCaseDto.Steps = exports.CloseAndMergeCaseSteps;
125
- /** Step classes that can be used with this action */
126
- CloseAndMergeCaseDto.stepClasses = ['CloseAndMergeCaseActionDto'];