@trii/types 2.10.799 → 2.10.800

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.
@@ -29,6 +29,29 @@ export declare enum TicketCreationMethod {
29
29
  Automation = "automation",
30
30
  Import = "import"
31
31
  }
32
+ /**
33
+ * How the request behind a ticket reached the organisation (ITicket.originChannel). It is a
34
+ * business classification, separate from channelType/channelId (the technical channel of a
35
+ * linked conversation, used by routing capacity). A ticket created from a conversation takes it
36
+ * from that conversation's channel; an agent picks it otherwise. `unknown` is for tickets whose
37
+ * channel cannot be determined (legacy rows, integrations that do not report it).
38
+ */
39
+ export declare enum TicketOriginChannel {
40
+ Email = "email",
41
+ Phone = "phone",
42
+ WhatsApp = "whatsapp",
43
+ WebChat = "web_chat",
44
+ WebForm = "web_form",
45
+ CustomerPortal = "customer_portal",
46
+ InPerson = "in_person",
47
+ Internal = "internal",
48
+ SMS = "sms",
49
+ Facebook = "facebook",
50
+ Instagram = "instagram",
51
+ Telegram = "telegram",
52
+ Other = "other",
53
+ Unknown = "unknown"
54
+ }
32
55
  export declare enum TicketAccessLevel {
33
56
  ALL = "ALL",
34
57
  GROUP = "GROUP",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TicketAccessLevel = exports.TicketCreationMethod = exports.TicketPriority = exports.TicketStage = void 0;
3
+ exports.TicketAccessLevel = exports.TicketOriginChannel = exports.TicketCreationMethod = exports.TicketPriority = exports.TicketStage = void 0;
4
4
  var TicketStage;
5
5
  (function (TicketStage) {
6
6
  TicketStage["NEW"] = "NEW";
@@ -34,6 +34,30 @@ var TicketCreationMethod;
34
34
  TicketCreationMethod["Automation"] = "automation";
35
35
  TicketCreationMethod["Import"] = "import";
36
36
  })(TicketCreationMethod || (exports.TicketCreationMethod = TicketCreationMethod = {}));
37
+ /**
38
+ * How the request behind a ticket reached the organisation (ITicket.originChannel). It is a
39
+ * business classification, separate from channelType/channelId (the technical channel of a
40
+ * linked conversation, used by routing capacity). A ticket created from a conversation takes it
41
+ * from that conversation's channel; an agent picks it otherwise. `unknown` is for tickets whose
42
+ * channel cannot be determined (legacy rows, integrations that do not report it).
43
+ */
44
+ var TicketOriginChannel;
45
+ (function (TicketOriginChannel) {
46
+ TicketOriginChannel["Email"] = "email";
47
+ TicketOriginChannel["Phone"] = "phone";
48
+ TicketOriginChannel["WhatsApp"] = "whatsapp";
49
+ TicketOriginChannel["WebChat"] = "web_chat";
50
+ TicketOriginChannel["WebForm"] = "web_form";
51
+ TicketOriginChannel["CustomerPortal"] = "customer_portal";
52
+ TicketOriginChannel["InPerson"] = "in_person";
53
+ TicketOriginChannel["Internal"] = "internal";
54
+ TicketOriginChannel["SMS"] = "sms";
55
+ TicketOriginChannel["Facebook"] = "facebook";
56
+ TicketOriginChannel["Instagram"] = "instagram";
57
+ TicketOriginChannel["Telegram"] = "telegram";
58
+ TicketOriginChannel["Other"] = "other";
59
+ TicketOriginChannel["Unknown"] = "unknown";
60
+ })(TicketOriginChannel || (exports.TicketOriginChannel = TicketOriginChannel = {}));
37
61
  var TicketAccessLevel;
38
62
  (function (TicketAccessLevel) {
39
63
  TicketAccessLevel["ALL"] = "ALL";
@@ -1,5 +1,5 @@
1
1
  import { ChannelType } from "../Common/Channels/ChannelType";
2
- import { ITicketAttachment, ITicketContactProjection, ITicketExternalReference, ITicketProperty, ITicketTagInfo, TicketCreationMethod, TicketPriority, TicketStage } from "./Common";
2
+ import { ITicketAttachment, ITicketContactProjection, ITicketExternalReference, ITicketProperty, ITicketTagInfo, TicketCreationMethod, TicketOriginChannel, TicketPriority, TicketStage } from "./Common";
3
3
  import { ITicketFormSubmissionReference } from "./Workflow";
4
4
  import { ITicketSlaState } from "./Sla";
5
5
  import { ITicketSecurityState } from "./Security";
@@ -43,6 +43,7 @@ export interface ITicket {
43
43
  version: number;
44
44
  categoryId: string;
45
45
  requestTypeId?: string;
46
+ originChannel: TicketOriginChannel;
46
47
  channelType?: ChannelType;
47
48
  channelId?: string;
48
49
  primaryConversationId?: string;
@@ -88,6 +89,8 @@ export interface ICreateTicketDto {
88
89
  idempotencyKey?: string;
89
90
  categoryId: string;
90
91
  requestTypeId?: string;
92
+ /** Required unless it can be derived: from channelType when present, or fixed by the create surface. */
93
+ originChannel?: TicketOriginChannel;
91
94
  channelType?: ChannelType;
92
95
  channelId?: string;
93
96
  primaryConversationId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.799",
3
+ "version": "2.10.800",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",