@trii/types 2.10.670 → 2.10.672
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Conversations/Groups/Group.d.ts +1 -0
- package/dist/Conversations/index.d.ts +1 -1
- package/dist/Conversations/index.js +1 -1
- package/dist/Forms/API.d.ts +53 -0
- package/dist/Forms/API.js +2 -0
- package/dist/Forms/SubmittedForm.d.ts +56 -0
- package/dist/Forms/SubmittedForm.js +9 -0
- package/dist/Forms/index.d.ts +2 -0
- package/dist/Forms/index.js +18 -0
- package/dist/Presence/QueueRoutingState.d.ts +16 -0
- package/dist/Presence/QueueRoutingState.js +9 -0
- package/dist/Presence/index.d.ts +1 -1
- package/dist/Presence/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export * from './WebHook';
|
|
|
7
7
|
export * from './SocialWalls';
|
|
8
8
|
export * from './QuickResponse';
|
|
9
9
|
export * from './DashBoard/dashboard';
|
|
10
|
-
export * from '
|
|
10
|
+
export * from '../Forms/API';
|
|
11
11
|
export * from './DashBoard/dashboardChannels';
|
|
12
12
|
export * from './DashBoard/dashboardMessages';
|
|
13
13
|
export * from './Survey';
|
|
@@ -46,7 +46,7 @@ __exportStar(require("./WebHook"), exports);
|
|
|
46
46
|
__exportStar(require("./SocialWalls"), exports);
|
|
47
47
|
__exportStar(require("./QuickResponse"), exports);
|
|
48
48
|
__exportStar(require("./DashBoard/dashboard"), exports);
|
|
49
|
-
__exportStar(require("
|
|
49
|
+
__exportStar(require("../Forms/API"), exports);
|
|
50
50
|
__exportStar(require("./DashBoard/dashboardChannels"), exports);
|
|
51
51
|
__exportStar(require("./DashBoard/dashboardMessages"), exports);
|
|
52
52
|
__exportStar(require("./Survey"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FormItemType } from "../Common/Channels/Form";
|
|
2
|
+
import { FormAnswerV2, FormTag } from "./SubmittedForm";
|
|
3
|
+
export interface RequestInfo {
|
|
4
|
+
formId: string;
|
|
5
|
+
timeStart: Date | null;
|
|
6
|
+
timeEnd: Date | null;
|
|
7
|
+
skip: number | null;
|
|
8
|
+
limit: number | null;
|
|
9
|
+
}
|
|
10
|
+
export interface SummaryInfo {
|
|
11
|
+
formId: string;
|
|
12
|
+
timeStart: Date | null;
|
|
13
|
+
timeEnd: Date | null;
|
|
14
|
+
completedForms: number;
|
|
15
|
+
records: QuestionSummary[];
|
|
16
|
+
}
|
|
17
|
+
export interface QuestionSummary {
|
|
18
|
+
questionId: string;
|
|
19
|
+
question: string;
|
|
20
|
+
type: FormItemType;
|
|
21
|
+
fieldType: string;
|
|
22
|
+
count: number;
|
|
23
|
+
responses: ResponseSummary[];
|
|
24
|
+
}
|
|
25
|
+
export interface ResponseSummary {
|
|
26
|
+
count: number;
|
|
27
|
+
responseTitle: string;
|
|
28
|
+
}
|
|
29
|
+
export interface SubmittedFormsInfo {
|
|
30
|
+
formId: string;
|
|
31
|
+
timeStart: Date | null;
|
|
32
|
+
timeEnd: Date | null;
|
|
33
|
+
completedForms: number;
|
|
34
|
+
records: SubmittedFormRecord[];
|
|
35
|
+
}
|
|
36
|
+
export interface SubmittedFormRecord {
|
|
37
|
+
id: string;
|
|
38
|
+
tags: FormTag[];
|
|
39
|
+
responses: SubmittedFormResponse[];
|
|
40
|
+
expireAt: Date | null;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
completedAt: Date | null;
|
|
43
|
+
contractVersion: number;
|
|
44
|
+
formRevision: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SubmittedFormResponse {
|
|
47
|
+
type: FormItemType;
|
|
48
|
+
fieldType: string;
|
|
49
|
+
questionId: string;
|
|
50
|
+
question: string;
|
|
51
|
+
response: unknown | null;
|
|
52
|
+
answer?: FormAnswerV2 | null;
|
|
53
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FormItemType } from "../Common/Channels/Form";
|
|
2
|
+
export interface SubmittedForm {
|
|
3
|
+
id: string;
|
|
4
|
+
shardKey: string;
|
|
5
|
+
spaceId: string;
|
|
6
|
+
formId: string;
|
|
7
|
+
contractVersion: number;
|
|
8
|
+
formRevision: number;
|
|
9
|
+
schemaHash: string | null;
|
|
10
|
+
tags: FormTag[];
|
|
11
|
+
/** Compatibilidad con formularios V1. */
|
|
12
|
+
responses?: FormResponse[] | null;
|
|
13
|
+
answers: FormAnswerV2[];
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
expireAt: Date | null;
|
|
16
|
+
completedAt: Date | null;
|
|
17
|
+
}
|
|
18
|
+
export interface FormTag {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export declare enum FormStatus {
|
|
23
|
+
pending = 0,
|
|
24
|
+
completed = 1,
|
|
25
|
+
expired = 2
|
|
26
|
+
}
|
|
27
|
+
export interface FormResponse {
|
|
28
|
+
questionId: string;
|
|
29
|
+
type: FormItemType;
|
|
30
|
+
response: unknown;
|
|
31
|
+
}
|
|
32
|
+
export interface FormAnswerV2 {
|
|
33
|
+
fieldId: string;
|
|
34
|
+
fieldType: string;
|
|
35
|
+
/** Snapshot útil para exportaciones históricas. */
|
|
36
|
+
fieldLabel: string | null;
|
|
37
|
+
textValue: string | null;
|
|
38
|
+
numericValue: number | null;
|
|
39
|
+
/** Formatos canónicos: yyyy-MM-dd y HH:mm:ss. */
|
|
40
|
+
dateValue: string | null;
|
|
41
|
+
timeValue: string | null;
|
|
42
|
+
selectedOptions: FormSelectedOption[] | null;
|
|
43
|
+
files: FormSubmittedFile[] | null;
|
|
44
|
+
}
|
|
45
|
+
export interface FormSelectedOption {
|
|
46
|
+
id: string;
|
|
47
|
+
/** Snapshot histórico de la etiqueta. */
|
|
48
|
+
label: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface FormSubmittedFile {
|
|
51
|
+
storageId: string;
|
|
52
|
+
fileName: string;
|
|
53
|
+
contentType: string | null;
|
|
54
|
+
sizeBytes: number;
|
|
55
|
+
url: string | null;
|
|
56
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormStatus = void 0;
|
|
4
|
+
var FormStatus;
|
|
5
|
+
(function (FormStatus) {
|
|
6
|
+
FormStatus[FormStatus["pending"] = 0] = "pending";
|
|
7
|
+
FormStatus[FormStatus["completed"] = 1] = "completed";
|
|
8
|
+
FormStatus[FormStatus["expired"] = 2] = "expired";
|
|
9
|
+
})(FormStatus || (exports.FormStatus = FormStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./API"), exports);
|
|
18
|
+
__exportStar(require("./SubmittedForm"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface QueueRoutingState {
|
|
2
|
+
spaceId: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
queueId: string;
|
|
5
|
+
isEligible: boolean;
|
|
6
|
+
presenceStatus: RoutingPresenceStatus;
|
|
7
|
+
activeJobCount: number;
|
|
8
|
+
maxCapacity?: number;
|
|
9
|
+
notRespondingDetectedAt?: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
12
|
+
export declare enum RoutingPresenceStatus {
|
|
13
|
+
IDLE = 0,
|
|
14
|
+
INTERACTING = 1,
|
|
15
|
+
BUSY = 2
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoutingPresenceStatus = void 0;
|
|
4
|
+
var RoutingPresenceStatus;
|
|
5
|
+
(function (RoutingPresenceStatus) {
|
|
6
|
+
RoutingPresenceStatus[RoutingPresenceStatus["IDLE"] = 0] = "IDLE";
|
|
7
|
+
RoutingPresenceStatus[RoutingPresenceStatus["INTERACTING"] = 1] = "INTERACTING";
|
|
8
|
+
RoutingPresenceStatus[RoutingPresenceStatus["BUSY"] = 2] = "BUSY";
|
|
9
|
+
})(RoutingPresenceStatus || (exports.RoutingPresenceStatus = RoutingPresenceStatus = {}));
|
package/dist/Presence/index.d.ts
CHANGED
package/dist/Presence/index.js
CHANGED
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AgentPause"), exports);
|
|
18
18
|
__exportStar(require("./QueueParticipation"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./QueueRoutingState"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
|
|
36
|
+
exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
|
|
37
37
|
exports.Accounts = __importStar(require("./Accounts/index"));
|
|
38
38
|
exports.AuditLogs = __importStar(require("./AuditLogs/index"));
|
|
39
39
|
exports.Common = __importStar(require("./Common/index"));
|
|
@@ -55,3 +55,4 @@ exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
|
|
|
55
55
|
exports.AI = __importStar(require("./AI/index"));
|
|
56
56
|
exports.Shop = __importStar(require("./Shop/index"));
|
|
57
57
|
exports.APIResponses = __importStar(require("./ApiResponses/index"));
|
|
58
|
+
exports.Forms = __importStar(require("./Forms/index"));
|