@trii/types 2.10.656 → 2.10.658

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.
Files changed (90) hide show
  1. package/dist/Collections/Api.d.ts +41 -0
  2. package/dist/Collections/Api.js +2 -0
  3. package/dist/Collections/Commission.d.ts +52 -0
  4. package/dist/Collections/Commission.js +10 -0
  5. package/dist/Collections/Common.d.ts +78 -0
  6. package/dist/Collections/Common.js +39 -0
  7. package/dist/Collections/Dashboard.d.ts +27 -0
  8. package/dist/Collections/Dashboard.js +2 -0
  9. package/dist/Collections/Debt.d.ts +97 -0
  10. package/dist/Collections/Debt.js +12 -0
  11. package/dist/Collections/Interest.d.ts +38 -0
  12. package/dist/Collections/Interest.js +25 -0
  13. package/dist/Collections/Payment.d.ts +87 -0
  14. package/dist/Collections/Payment.js +21 -0
  15. package/dist/Collections/PaymentPlan.d.ts +87 -0
  16. package/dist/Collections/PaymentPlan.js +21 -0
  17. package/dist/Collections/PaymentPlanConfiguration.d.ts +100 -0
  18. package/dist/Collections/PaymentPlanConfiguration.js +34 -0
  19. package/dist/Collections/Portfolio.d.ts +52 -0
  20. package/dist/Collections/Portfolio.js +12 -0
  21. package/dist/Collections/Promise.d.ts +49 -0
  22. package/dist/Collections/Promise.js +25 -0
  23. package/dist/Collections/index.d.ts +11 -0
  24. package/dist/Collections/index.js +27 -0
  25. package/dist/Common/Channels/Channel.d.ts +6 -1
  26. package/dist/Common/Channels/Channel.js +6 -1
  27. package/dist/Common/Channels/WhatsApp.d.ts +22 -0
  28. package/dist/Common/Channels/WhatsApp.js +7 -1
  29. package/dist/Common/Messages/Message.d.ts +9 -0
  30. package/dist/Common/Messages/Message.js +6 -1
  31. package/dist/Conversations/Conversation.d.ts +15 -0
  32. package/dist/Conversations/Conversation.js +8 -1
  33. package/dist/Reports/ScheduledReport.d.ts +146 -0
  34. package/dist/Reports/ScheduledReport.js +37 -1
  35. package/dist/Sales/Api.d.ts +40 -0
  36. package/dist/Sales/Api.js +2 -0
  37. package/dist/Sales/Common.d.ts +72 -0
  38. package/dist/Sales/Common.js +31 -0
  39. package/dist/Sales/Dashboard.d.ts +25 -0
  40. package/dist/Sales/Dashboard.js +2 -0
  41. package/dist/Sales/Lead.d.ts +99 -0
  42. package/dist/Sales/Lead.js +8 -0
  43. package/dist/Sales/index.d.ts +4 -0
  44. package/dist/Sales/index.js +20 -0
  45. package/dist/Spaces/spaces.d.ts +1 -0
  46. package/dist/Tickets/AI.d.ts +400 -0
  47. package/dist/Tickets/AI.js +113 -0
  48. package/dist/Tickets/AdvancedApi.d.ts +486 -0
  49. package/dist/Tickets/AdvancedApi.js +108 -0
  50. package/dist/Tickets/Api.d.ts +62 -0
  51. package/dist/Tickets/Api.js +8 -0
  52. package/dist/Tickets/Approval.d.ts +139 -0
  53. package/dist/Tickets/Approval.js +30 -0
  54. package/dist/Tickets/Automation.d.ts +237 -0
  55. package/dist/Tickets/Automation.js +74 -0
  56. package/dist/Tickets/Category.d.ts +25 -0
  57. package/dist/Tickets/Category.js +2 -0
  58. package/dist/Tickets/Common.d.ts +90 -0
  59. package/dist/Tickets/Common.js +38 -0
  60. package/dist/Tickets/Conversation.d.ts +68 -0
  61. package/dist/Tickets/Conversation.js +30 -0
  62. package/dist/Tickets/Dashboard.d.ts +408 -0
  63. package/dist/Tickets/Dashboard.js +206 -0
  64. package/dist/Tickets/Fields.d.ts +133 -0
  65. package/dist/Tickets/Fields.js +44 -0
  66. package/dist/Tickets/Layouts.d.ts +63 -0
  67. package/dist/Tickets/Layouts.js +22 -0
  68. package/dist/Tickets/Routing.d.ts +290 -0
  69. package/dist/Tickets/Routing.js +87 -0
  70. package/dist/Tickets/Satisfaction.d.ts +31 -0
  71. package/dist/Tickets/Satisfaction.js +9 -0
  72. package/dist/Tickets/Security.d.ts +302 -0
  73. package/dist/Tickets/Security.js +107 -0
  74. package/dist/Tickets/SelfService.d.ts +255 -0
  75. package/dist/Tickets/SelfService.js +56 -0
  76. package/dist/Tickets/Sla.d.ts +253 -0
  77. package/dist/Tickets/Sla.js +73 -0
  78. package/dist/Tickets/Task.d.ts +122 -0
  79. package/dist/Tickets/Task.js +17 -0
  80. package/dist/Tickets/Ticket.d.ts +133 -0
  81. package/dist/Tickets/Ticket.js +2 -0
  82. package/dist/Tickets/Views.d.ts +77 -0
  83. package/dist/Tickets/Views.js +23 -0
  84. package/dist/Tickets/Workflow.d.ts +109 -0
  85. package/dist/Tickets/Workflow.js +44 -0
  86. package/dist/Tickets/index.d.ts +20 -1
  87. package/dist/Tickets/index.js +20 -1
  88. package/dist/index.d.ts +2 -0
  89. package/dist/index.js +3 -1
  90. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TimeRange = exports.ReportSendType = void 0;
3
+ exports.ScheduledReportProcessorStatus = exports.ScheduledReportExecutionStatus = exports.ScheduledReportDeliveryType = exports.ScheduledReportFormat = exports.ScheduledReportStatus = exports.TimeRange = exports.ReportSendType = void 0;
4
4
  var ReportSendType;
5
5
  (function (ReportSendType) {
6
6
  ReportSendType[ReportSendType["daily"] = 1] = "daily";
@@ -19,3 +19,39 @@ var TimeRange;
19
19
  TimeRange[TimeRange["LAST_60_DAYS"] = 60] = "LAST_60_DAYS";
20
20
  TimeRange[TimeRange["CUSTOM"] = 0] = "CUSTOM";
21
21
  })(TimeRange || (exports.TimeRange = TimeRange = {}));
22
+ var ScheduledReportStatus;
23
+ (function (ScheduledReportStatus) {
24
+ ScheduledReportStatus["ACTIVE"] = "ACTIVE";
25
+ ScheduledReportStatus["PAUSED"] = "PAUSED";
26
+ ScheduledReportStatus["FINISHED"] = "FINISHED";
27
+ ScheduledReportStatus["FAILED"] = "FAILED";
28
+ ScheduledReportStatus["DELETED"] = "DELETED";
29
+ })(ScheduledReportStatus || (exports.ScheduledReportStatus = ScheduledReportStatus = {}));
30
+ var ScheduledReportFormat;
31
+ (function (ScheduledReportFormat) {
32
+ ScheduledReportFormat["XLSX"] = "XLSX";
33
+ ScheduledReportFormat["CSV"] = "CSV";
34
+ ScheduledReportFormat["JSONL"] = "JSONL";
35
+ ScheduledReportFormat["PDF"] = "PDF";
36
+ })(ScheduledReportFormat || (exports.ScheduledReportFormat = ScheduledReportFormat = {}));
37
+ var ScheduledReportDeliveryType;
38
+ (function (ScheduledReportDeliveryType) {
39
+ ScheduledReportDeliveryType["EMAIL"] = "EMAIL";
40
+ ScheduledReportDeliveryType["DOWNLOAD_CENTER"] = "DOWNLOAD_CENTER";
41
+ ScheduledReportDeliveryType["WEBHOOK"] = "WEBHOOK";
42
+ })(ScheduledReportDeliveryType || (exports.ScheduledReportDeliveryType = ScheduledReportDeliveryType = {}));
43
+ var ScheduledReportExecutionStatus;
44
+ (function (ScheduledReportExecutionStatus) {
45
+ ScheduledReportExecutionStatus["QUEUED"] = "QUEUED";
46
+ ScheduledReportExecutionStatus["RUNNING"] = "RUNNING";
47
+ ScheduledReportExecutionStatus["SUCCESS"] = "SUCCESS";
48
+ ScheduledReportExecutionStatus["FAILED"] = "FAILED";
49
+ ScheduledReportExecutionStatus["CANCELLED"] = "CANCELLED";
50
+ })(ScheduledReportExecutionStatus || (exports.ScheduledReportExecutionStatus = ScheduledReportExecutionStatus = {}));
51
+ var ScheduledReportProcessorStatus;
52
+ (function (ScheduledReportProcessorStatus) {
53
+ ScheduledReportProcessorStatus["ACCEPTED"] = "ACCEPTED";
54
+ ScheduledReportProcessorStatus["SKIPPED"] = "SKIPPED";
55
+ ScheduledReportProcessorStatus["COMPLETED"] = "COMPLETED";
56
+ ScheduledReportProcessorStatus["FAILED"] = "FAILED";
57
+ })(ScheduledReportProcessorStatus || (exports.ScheduledReportProcessorStatus = ScheduledReportProcessorStatus = {}));
@@ -0,0 +1,40 @@
1
+ import { ILead } from './Lead';
2
+ import { LeadOrigin, LeadPriority, LeadPropertyValue, LeadStage } from './Common';
3
+ export interface ILeadFilter {
4
+ search?: string;
5
+ stages?: LeadStage[];
6
+ statusIds?: string[];
7
+ priorities?: LeadPriority[];
8
+ origins?: LeadOrigin[];
9
+ contactIds?: string[];
10
+ assigneeIds?: string[];
11
+ campaignIds?: string[];
12
+ createdFrom?: Date;
13
+ createdTo?: Date;
14
+ expectedCloseFrom?: Date;
15
+ expectedCloseTo?: Date;
16
+ fields?: {
17
+ fieldNameKey: string;
18
+ operator: string;
19
+ value?: LeadPropertyValue;
20
+ }[];
21
+ }
22
+ export interface ILeadQuery {
23
+ cursor?: string;
24
+ limit?: number;
25
+ filter?: ILeadFilter;
26
+ sort?: {
27
+ fieldNameKey: string;
28
+ direction: 'ASC' | 'DESC';
29
+ }[];
30
+ }
31
+ export interface ILeadPage {
32
+ items: ILead[];
33
+ nextCursor?: string;
34
+ hasMore: boolean;
35
+ }
36
+ export interface ITransitionLeadDto {
37
+ expectedVersion: number;
38
+ toStatusId: string;
39
+ comment?: string;
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,72 @@
1
+ import { IContactInfo } from '../Contacts/contacts';
2
+ export interface ISalesMoney {
3
+ amount: string;
4
+ currency: string;
5
+ }
6
+ export interface ISalesAuditedEntity {
7
+ id: string;
8
+ spaceId: string;
9
+ createdAt: Date;
10
+ createdBy: string;
11
+ updatedAt?: Date;
12
+ updatedBy?: string;
13
+ deletedAt?: Date;
14
+ deletedBy?: string;
15
+ }
16
+ export declare enum LeadStage {
17
+ NEW = "NEW",
18
+ QUALIFIED = "QUALIFIED",
19
+ PROPOSAL = "PROPOSAL",
20
+ NEGOTIATION = "NEGOTIATION",
21
+ WON = "WON",
22
+ LOST = "LOST",
23
+ CANCELLED = "CANCELLED"
24
+ }
25
+ export declare enum LeadPriority {
26
+ LOW = "LOW",
27
+ MEDIUM = "MEDIUM",
28
+ HIGH = "HIGH"
29
+ }
30
+ export declare enum LeadOrigin {
31
+ MANUAL = "MANUAL",
32
+ API = "API",
33
+ IMPORT = "IMPORT",
34
+ AUTOMATION = "AUTOMATION",
35
+ WEB_FORM = "WEB_FORM",
36
+ REFERRAL = "REFERRAL",
37
+ CAMPAIGN = "CAMPAIGN",
38
+ SOCIAL_MEDIA = "SOCIAL_MEDIA",
39
+ OTHER = "OTHER"
40
+ }
41
+ export interface ILeadStatus extends ISalesAuditedEntity {
42
+ name: string;
43
+ description?: string;
44
+ color?: string;
45
+ order: number;
46
+ stage: LeadStage;
47
+ defaultProbability?: number;
48
+ isInitial: boolean;
49
+ isFinal: boolean;
50
+ enabled: boolean;
51
+ }
52
+ export type LeadPropertyValue = string | number | boolean | Date | null | LeadPropertyValue[] | {
53
+ [key: string]: LeadPropertyValue;
54
+ };
55
+ export interface ILeadProperty {
56
+ nameKey: string;
57
+ value: LeadPropertyValue;
58
+ }
59
+ export interface ISalesDateRange {
60
+ from: Date;
61
+ to: Date;
62
+ }
63
+ export interface ISalesMetricPoint {
64
+ date: Date;
65
+ value: number;
66
+ }
67
+ export interface ISalesMetricGroup {
68
+ key: string;
69
+ label: string;
70
+ value: number;
71
+ }
72
+ export type ILeadContactProjection = IContactInfo;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LeadOrigin = exports.LeadPriority = exports.LeadStage = void 0;
4
+ var LeadStage;
5
+ (function (LeadStage) {
6
+ LeadStage["NEW"] = "NEW";
7
+ LeadStage["QUALIFIED"] = "QUALIFIED";
8
+ LeadStage["PROPOSAL"] = "PROPOSAL";
9
+ LeadStage["NEGOTIATION"] = "NEGOTIATION";
10
+ LeadStage["WON"] = "WON";
11
+ LeadStage["LOST"] = "LOST";
12
+ LeadStage["CANCELLED"] = "CANCELLED";
13
+ })(LeadStage || (exports.LeadStage = LeadStage = {}));
14
+ var LeadPriority;
15
+ (function (LeadPriority) {
16
+ LeadPriority["LOW"] = "LOW";
17
+ LeadPriority["MEDIUM"] = "MEDIUM";
18
+ LeadPriority["HIGH"] = "HIGH";
19
+ })(LeadPriority || (exports.LeadPriority = LeadPriority = {}));
20
+ var LeadOrigin;
21
+ (function (LeadOrigin) {
22
+ LeadOrigin["MANUAL"] = "MANUAL";
23
+ LeadOrigin["API"] = "API";
24
+ LeadOrigin["IMPORT"] = "IMPORT";
25
+ LeadOrigin["AUTOMATION"] = "AUTOMATION";
26
+ LeadOrigin["WEB_FORM"] = "WEB_FORM";
27
+ LeadOrigin["REFERRAL"] = "REFERRAL";
28
+ LeadOrigin["CAMPAIGN"] = "CAMPAIGN";
29
+ LeadOrigin["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
30
+ LeadOrigin["OTHER"] = "OTHER";
31
+ })(LeadOrigin || (exports.LeadOrigin = LeadOrigin = {}));
@@ -0,0 +1,25 @@
1
+ import { ISalesDateRange, ISalesMoney, ISalesMetricGroup, ISalesMetricPoint } from './Common';
2
+ export interface ISalesDashboardFilter {
3
+ range: ISalesDateRange;
4
+ statusIds?: string[];
5
+ assigneeIds?: string[];
6
+ assignedGroupIds?: string[];
7
+ campaignIds?: string[];
8
+ }
9
+ export interface ISalesDashboardMetrics {
10
+ range: ISalesDateRange;
11
+ openLeads: number;
12
+ wonLeads: number;
13
+ lostLeads: number;
14
+ conversionPercentage: number;
15
+ pipelineValue: ISalesMoney;
16
+ weightedForecastValue: ISalesMoney;
17
+ wonValue: ISalesMoney;
18
+ averageSalesCycleDays: number;
19
+ createdSeries: ISalesMetricPoint[];
20
+ wonSeries: ISalesMetricPoint[];
21
+ byStatus: ISalesMetricGroup[];
22
+ byAssignee: ISalesMetricGroup[];
23
+ byOrigin: ISalesMetricGroup[];
24
+ byLossReason: ISalesMetricGroup[];
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,99 @@
1
+ import { ILeadContactProjection, ILeadProperty, ISalesAuditedEntity, ISalesMoney, LeadOrigin, LeadPriority, LeadStage } from './Common';
2
+ export declare enum LeadProbabilitySource {
3
+ STATUS_DEFAULT = "STATUS_DEFAULT",
4
+ MANUAL = "MANUAL"
5
+ }
6
+ export interface ILeadLineItem {
7
+ id: string;
8
+ productId?: string;
9
+ sku?: string;
10
+ description: string;
11
+ quantity: string;
12
+ unitPrice: ISalesMoney;
13
+ discount?: ISalesMoney;
14
+ tax?: ISalesMoney;
15
+ total: ISalesMoney;
16
+ }
17
+ export interface ILead {
18
+ id: string;
19
+ spaceId: string;
20
+ number: number;
21
+ title: string;
22
+ description?: string;
23
+ contactId: string;
24
+ contact?: ILeadContactProjection;
25
+ statusId: string;
26
+ stage: LeadStage;
27
+ priority: LeadPriority;
28
+ origin: LeadOrigin;
29
+ assigneeId?: string;
30
+ assignedGroupId?: string;
31
+ properties: ILeadProperty[];
32
+ version: number;
33
+ value?: ISalesMoney;
34
+ probability: number;
35
+ probabilitySource: LeadProbabilitySource;
36
+ expectedCloseAt?: Date;
37
+ wonAt?: Date;
38
+ lostAt?: Date;
39
+ lossReasonId?: string;
40
+ lossReasonDetail?: string;
41
+ campaignId?: string;
42
+ items?: ILeadLineItem[];
43
+ createdAt: Date;
44
+ createdBy: string;
45
+ updatedAt?: Date;
46
+ updatedBy?: string;
47
+ deletedAt?: Date;
48
+ deletedBy?: string;
49
+ }
50
+ export interface ILeadLossReason extends ISalesAuditedEntity {
51
+ name: string;
52
+ description?: string;
53
+ order: number;
54
+ enabled: boolean;
55
+ detailRequired?: boolean;
56
+ }
57
+ export interface ICreateLeadDto {
58
+ title: string;
59
+ description?: string;
60
+ contactId: string;
61
+ statusId?: string;
62
+ priority: LeadPriority;
63
+ origin: LeadOrigin;
64
+ assigneeId?: string;
65
+ assignedGroupId?: string;
66
+ properties?: ILeadProperty[];
67
+ source?: string;
68
+ idempotencyKey?: string;
69
+ value?: ISalesMoney;
70
+ probability?: number;
71
+ expectedCloseAt?: Date;
72
+ campaignId?: string;
73
+ items?: ILeadLineItem[];
74
+ }
75
+ export interface IUpdateLeadDto {
76
+ expectedVersion: number;
77
+ title?: string;
78
+ description?: string;
79
+ priority?: LeadPriority;
80
+ assigneeId?: string;
81
+ assignedGroupId?: string;
82
+ properties?: ILeadProperty[];
83
+ value?: ISalesMoney;
84
+ probability?: number;
85
+ expectedCloseAt?: Date;
86
+ campaignId?: string;
87
+ items?: ILeadLineItem[];
88
+ }
89
+ export interface IMarkLeadLostDto {
90
+ expectedVersion: number;
91
+ toStatusId: string;
92
+ lossReasonId: string;
93
+ lossReasonDetail?: string;
94
+ }
95
+ export interface IMarkLeadWonDto {
96
+ expectedVersion: number;
97
+ toStatusId: string;
98
+ finalValue?: ISalesMoney;
99
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LeadProbabilitySource = void 0;
4
+ var LeadProbabilitySource;
5
+ (function (LeadProbabilitySource) {
6
+ LeadProbabilitySource["STATUS_DEFAULT"] = "STATUS_DEFAULT";
7
+ LeadProbabilitySource["MANUAL"] = "MANUAL";
8
+ })(LeadProbabilitySource || (exports.LeadProbabilitySource = LeadProbabilitySource = {}));
@@ -0,0 +1,4 @@
1
+ export * from './Common';
2
+ export * from './Lead';
3
+ export * from './Api';
4
+ export * from './Dashboard';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Common"), exports);
18
+ __exportStar(require("./Lead"), exports);
19
+ __exportStar(require("./Api"), exports);
20
+ __exportStar(require("./Dashboard"), exports);
@@ -68,6 +68,7 @@ export interface ISpace {
68
68
  apiVersion: string | 'v1';
69
69
  subscriptionId: string;
70
70
  subscriptionExpirationDate?: Date;
71
+ konnectCustomerCreated?: boolean | false;
71
72
  image_url: string;
72
73
  domain_active: string;
73
74
  domain_subdomain: string;