@kl1/contracts 1.2.69-uat → 1.2.70-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/attribute/index.d.ts +7 -7
- package/dist/api-contracts/src/auth/index.d.ts +1 -1
- package/dist/api-contracts/src/aws/index.d.ts +2 -2
- package/dist/api-contracts/src/botpress/index.d.ts +2 -2
- package/dist/api-contracts/src/category/index.d.ts +7 -7
- package/dist/api-contracts/src/channel/index.d.ts +1 -1
- package/dist/api-contracts/src/chat/index.d.ts +1800 -1800
- package/dist/api-contracts/src/chat/schema.d.ts +400 -400
- package/dist/api-contracts/src/chat/validation.d.ts +321 -321
- package/dist/api-contracts/src/comment/index.d.ts +364 -364
- package/dist/api-contracts/src/comment/schema.d.ts +88 -88
- package/dist/api-contracts/src/company/index.d.ts +5 -5
- package/dist/api-contracts/src/contract.d.ts +3798 -3798
- package/dist/api-contracts/src/cx-log/index.d.ts +64 -64
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts +80 -80
- package/dist/api-contracts/src/dashboard/index.d.ts +26 -26
- package/dist/api-contracts/src/evaluate-form/index.d.ts +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +220 -220
- package/dist/api-contracts/src/instagram/index.d.ts +220 -220
- package/dist/api-contracts/src/line/index.d.ts +220 -220
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +1 -1
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-contract.d.ts +240 -240
- package/dist/api-contracts/src/mail/room-contract.d.ts +240 -240
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +80 -80
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +60 -60
- package/dist/api-contracts/src/messenger/index.d.ts +220 -220
- package/dist/api-contracts/src/permission/index.d.ts +1 -1
- package/dist/api-contracts/src/role/index.d.ts +5 -5
- package/dist/api-contracts/src/snippet/index.d.ts +8 -8
- package/dist/api-contracts/src/tag/index.d.ts +4 -4
- package/dist/api-contracts/src/telegram/index.d.ts +220 -220
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +2 -2
- package/dist/api-contracts/src/telephony-extension/index.d.ts +1 -1
- package/dist/api-contracts/src/ticket/index.d.ts +672 -672
- package/dist/api-contracts/src/ticket/schema.d.ts +44 -44
- package/dist/api-contracts/src/ticket/validation.d.ts +20 -20
- package/dist/api-contracts/src/upload/index.d.ts +2 -2
- package/dist/api-contracts/src/user/index.d.ts +6 -6
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +2 -2
- package/dist/api-contracts/src/viber/index.d.ts +220 -220
- package/dist/api-contracts/src/webchat/index.d.ts +220 -220
- package/dist/api-contracts/src/whatsapp/index.d.ts +220 -220
- package/dist/api-contracts/src/widget/index.d.ts +9 -9
- package/dist/api-contracts/src/workflow-rule/index.d.ts +260 -260
- package/dist/api-contracts/src/wrap-up-form/index.d.ts +187 -187
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts +20 -20
- package/dist/index.js +98 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +98 -92
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -169,6 +169,16 @@ export declare const WrapUpFormSchema: z.ZodObject<{
|
|
169
169
|
createdAt: Date;
|
170
170
|
updatedAt: Date;
|
171
171
|
deletedAt: Date | null;
|
172
|
+
tags: {
|
173
|
+
name: string;
|
174
|
+
id: string;
|
175
|
+
createdAt: Date;
|
176
|
+
updatedAt: Date;
|
177
|
+
deletedAt: Date | null;
|
178
|
+
}[];
|
179
|
+
callFrom: string | null;
|
180
|
+
callTo: string | null;
|
181
|
+
note: string | null;
|
172
182
|
categories: {
|
173
183
|
id: string;
|
174
184
|
value: string;
|
@@ -191,16 +201,6 @@ export declare const WrapUpFormSchema: z.ZodObject<{
|
|
191
201
|
}[];
|
192
202
|
}[];
|
193
203
|
}[];
|
194
|
-
tags: {
|
195
|
-
name: string;
|
196
|
-
id: string;
|
197
|
-
createdAt: Date;
|
198
|
-
updatedAt: Date;
|
199
|
-
deletedAt: Date | null;
|
200
|
-
}[];
|
201
|
-
callFrom: string | null;
|
202
|
-
callTo: string | null;
|
203
|
-
note: string | null;
|
204
204
|
customFields?: {
|
205
205
|
id: string;
|
206
206
|
createdAt: Date;
|
@@ -220,6 +220,16 @@ export declare const WrapUpFormSchema: z.ZodObject<{
|
|
220
220
|
createdAt: Date;
|
221
221
|
updatedAt: Date;
|
222
222
|
deletedAt: Date | null;
|
223
|
+
tags: {
|
224
|
+
name: string;
|
225
|
+
id: string;
|
226
|
+
createdAt: Date;
|
227
|
+
updatedAt: Date;
|
228
|
+
deletedAt: Date | null;
|
229
|
+
}[];
|
230
|
+
callFrom: string | null;
|
231
|
+
callTo: string | null;
|
232
|
+
note: string | null;
|
223
233
|
categories: {
|
224
234
|
id: string;
|
225
235
|
value: string;
|
@@ -242,16 +252,6 @@ export declare const WrapUpFormSchema: z.ZodObject<{
|
|
242
252
|
}[];
|
243
253
|
}[];
|
244
254
|
}[];
|
245
|
-
tags: {
|
246
|
-
name: string;
|
247
|
-
id: string;
|
248
|
-
createdAt: Date;
|
249
|
-
updatedAt: Date;
|
250
|
-
deletedAt: Date | null;
|
251
|
-
}[];
|
252
|
-
callFrom: string | null;
|
253
|
-
callTo: string | null;
|
254
|
-
note: string | null;
|
255
255
|
customFields?: {
|
256
256
|
id: string;
|
257
257
|
createdAt: Date;
|
package/dist/index.js
CHANGED
@@ -1950,7 +1950,7 @@ var attributeContract = (0, import_core3.initContract)().router(
|
|
1950
1950
|
}
|
1951
1951
|
},
|
1952
1952
|
{
|
1953
|
-
pathPrefix: "attributes"
|
1953
|
+
pathPrefix: "ms/attributes"
|
1954
1954
|
}
|
1955
1955
|
);
|
1956
1956
|
|
@@ -1973,7 +1973,7 @@ var authContract = (0, import_core4.initContract)().router(
|
|
1973
1973
|
summary: "Get current user"
|
1974
1974
|
}
|
1975
1975
|
},
|
1976
|
-
{ pathPrefix: "auth" }
|
1976
|
+
{ pathPrefix: "ms/auth" }
|
1977
1977
|
);
|
1978
1978
|
|
1979
1979
|
// src/aws/index.ts
|
@@ -2037,7 +2037,7 @@ var awsContract = (0, import_core5.initContract)().router(
|
|
2037
2037
|
}
|
2038
2038
|
},
|
2039
2039
|
{
|
2040
|
-
pathPrefix: "aws/s3"
|
2040
|
+
pathPrefix: "ms/aws/s3"
|
2041
2041
|
}
|
2042
2042
|
);
|
2043
2043
|
|
@@ -2165,7 +2165,7 @@ var categoryContract = (0, import_core6.initContract)().router(
|
|
2165
2165
|
}
|
2166
2166
|
},
|
2167
2167
|
{
|
2168
|
-
pathPrefix: "categories"
|
2168
|
+
pathPrefix: "ms/categories"
|
2169
2169
|
}
|
2170
2170
|
);
|
2171
2171
|
|
@@ -2842,7 +2842,7 @@ var channelSMSContract = (0, import_core7.initContract)().router(
|
|
2842
2842
|
}
|
2843
2843
|
},
|
2844
2844
|
{
|
2845
|
-
pathPrefix: "/channel/sms"
|
2845
|
+
pathPrefix: "ms/channel/sms"
|
2846
2846
|
}
|
2847
2847
|
);
|
2848
2848
|
|
@@ -3560,7 +3560,7 @@ var companyContract = (0, import_core10.initContract)().router(
|
|
3560
3560
|
}
|
3561
3561
|
},
|
3562
3562
|
{
|
3563
|
-
pathPrefix: "cs/companies"
|
3563
|
+
pathPrefix: "ms/cs/companies"
|
3564
3564
|
}
|
3565
3565
|
);
|
3566
3566
|
|
@@ -4188,66 +4188,69 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
|
|
4188
4188
|
}).partial().optional();
|
4189
4189
|
|
4190
4190
|
// src/cx-log/index.ts
|
4191
|
-
var cxLogContract = (0, import_core12.initContract)().router(
|
4192
|
-
|
4193
|
-
|
4194
|
-
|
4195
|
-
|
4196
|
-
|
4197
|
-
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
4201
|
-
|
4202
|
-
|
4203
|
-
|
4191
|
+
var cxLogContract = (0, import_core12.initContract)().router(
|
4192
|
+
{
|
4193
|
+
findAll: {
|
4194
|
+
method: "GET",
|
4195
|
+
path: "/cx-logs",
|
4196
|
+
headers: DefaultHeaderSchema,
|
4197
|
+
responses: {
|
4198
|
+
200: DefaultSuccessResponseSchema.extend({
|
4199
|
+
total: import_zod52.default.number(),
|
4200
|
+
page: import_zod52.default.number(),
|
4201
|
+
pageSize: import_zod52.default.number(),
|
4202
|
+
cxLogs: import_zod52.default.array(CxLogSchemaWithRelations)
|
4203
|
+
}),
|
4204
|
+
401: DefaultUnauthorizedSchema
|
4205
|
+
},
|
4206
|
+
query: GetAllCxLogQueryParamsSchema,
|
4207
|
+
summary: "Get all cx-logs"
|
4204
4208
|
},
|
4205
|
-
|
4206
|
-
|
4207
|
-
|
4208
|
-
|
4209
|
-
|
4210
|
-
|
4211
|
-
|
4212
|
-
|
4213
|
-
|
4214
|
-
|
4209
|
+
export: {
|
4210
|
+
method: "GET",
|
4211
|
+
path: "/cx-logs/export",
|
4212
|
+
headers: DefaultHeaderSchema,
|
4213
|
+
responses: {
|
4214
|
+
200: null,
|
4215
|
+
401: DefaultUnauthorizedSchema
|
4216
|
+
},
|
4217
|
+
query: GetAllCxLogQueryParamsSchema,
|
4218
|
+
summary: "Export cx-logs"
|
4215
4219
|
},
|
4216
|
-
|
4217
|
-
|
4218
|
-
|
4219
|
-
|
4220
|
-
|
4221
|
-
|
4222
|
-
|
4223
|
-
|
4224
|
-
|
4225
|
-
|
4226
|
-
|
4220
|
+
syncSla: {
|
4221
|
+
method: "POST",
|
4222
|
+
path: "/cx-logs/sync-sla",
|
4223
|
+
headers: DefaultHeaderSchema,
|
4224
|
+
responses: {
|
4225
|
+
200: null,
|
4226
|
+
401: DefaultUnauthorizedSchema,
|
4227
|
+
500: DefaultErrorResponseSchema
|
4228
|
+
},
|
4229
|
+
body: null,
|
4230
|
+
summary: "Export cx-logs"
|
4227
4231
|
},
|
4228
|
-
|
4229
|
-
|
4232
|
+
updateSla: {
|
4233
|
+
method: "POST",
|
4234
|
+
path: "/cx-logs",
|
4235
|
+
headers: import_zod52.default.object({
|
4236
|
+
// biome-ignore lint/style/useNamingConvention: <explanation>
|
4237
|
+
"x-tenant": import_zod52.default.string({ required_error: "Tenant id is required" }),
|
4238
|
+
"x-code": import_zod52.default.string().uuid().optional()
|
4239
|
+
}),
|
4240
|
+
responses: {
|
4241
|
+
200: null,
|
4242
|
+
403: DefaultUnauthorizedSchema,
|
4243
|
+
404: DefaultNotFoundSchema,
|
4244
|
+
500: DefaultErrorResponseSchema
|
4245
|
+
},
|
4246
|
+
body: import_zod52.default.object({
|
4247
|
+
roomId: import_zod52.default.string().uuid(),
|
4248
|
+
slaStatus: import_zod52.default.enum(["meet", "unmeet", "-"])
|
4249
|
+
})
|
4250
|
+
}
|
4230
4251
|
},
|
4231
|
-
|
4232
|
-
|
4233
|
-
path: "/cx-logs",
|
4234
|
-
headers: import_zod52.default.object({
|
4235
|
-
// biome-ignore lint/style/useNamingConvention: <explanation>
|
4236
|
-
"x-tenant": import_zod52.default.string({ required_error: "Tenant id is required" }),
|
4237
|
-
"x-code": import_zod52.default.string().uuid().optional()
|
4238
|
-
}),
|
4239
|
-
responses: {
|
4240
|
-
200: null,
|
4241
|
-
403: DefaultUnauthorizedSchema,
|
4242
|
-
404: DefaultNotFoundSchema,
|
4243
|
-
500: DefaultErrorResponseSchema
|
4244
|
-
},
|
4245
|
-
body: import_zod52.default.object({
|
4246
|
-
roomId: import_zod52.default.string().uuid(),
|
4247
|
-
slaStatus: import_zod52.default.enum(["meet", "unmeet", "-"])
|
4248
|
-
})
|
4249
|
-
}
|
4250
|
-
});
|
4252
|
+
{ pathPrefix: "ms" }
|
4253
|
+
);
|
4251
4254
|
|
4252
4255
|
// src/dashboard/index.ts
|
4253
4256
|
var import_core13 = require("@ts-rest/core");
|
@@ -4891,7 +4894,7 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
4891
4894
|
}
|
4892
4895
|
},
|
4893
4896
|
{
|
4894
|
-
pathPrefix: "dashboard"
|
4897
|
+
pathPrefix: "ms/dashboard"
|
4895
4898
|
}
|
4896
4899
|
);
|
4897
4900
|
|
@@ -4924,7 +4927,7 @@ var evaluateFormContract = (0, import_core14.initContract)().router(
|
|
4924
4927
|
summary: "Create evaluate form"
|
4925
4928
|
}
|
4926
4929
|
},
|
4927
|
-
{ pathPrefix: "evaluate-forms" }
|
4930
|
+
{ pathPrefix: "ms/evaluate-forms" }
|
4928
4931
|
);
|
4929
4932
|
|
4930
4933
|
// src/extension/index.ts
|
@@ -5358,20 +5361,23 @@ var lineContract = (0, import_core17.initContract)().router({
|
|
5358
5361
|
// src/mail/email-engine-webhooks-events.contract.ts
|
5359
5362
|
var import_core18 = require("@ts-rest/core");
|
5360
5363
|
var import_zod64 = __toESM(require("zod"));
|
5361
|
-
var emailEngineWebhooksEventsContract = (0, import_core18.initContract)().router(
|
5362
|
-
|
5363
|
-
|
5364
|
-
|
5365
|
-
|
5366
|
-
|
5367
|
-
|
5368
|
-
|
5369
|
-
|
5370
|
-
|
5371
|
-
|
5372
|
-
|
5373
|
-
|
5374
|
-
}
|
5364
|
+
var emailEngineWebhooksEventsContract = (0, import_core18.initContract)().router(
|
5365
|
+
{
|
5366
|
+
handleWebhooksEvents: {
|
5367
|
+
method: "POST",
|
5368
|
+
path: "/email_engine/webhooks",
|
5369
|
+
// we don't need to respone anything but added responses just for solving type error
|
5370
|
+
responses: {
|
5371
|
+
200: DefaultSuccessResponseSchema.extend({
|
5372
|
+
message: import_zod64.default.string()
|
5373
|
+
})
|
5374
|
+
},
|
5375
|
+
body: null,
|
5376
|
+
summary: "Handle email engine webhooks events such as authenticationSuccess, messageNew"
|
5377
|
+
}
|
5378
|
+
},
|
5379
|
+
{ pathPrefix: "ms" }
|
5380
|
+
);
|
5375
5381
|
|
5376
5382
|
// src/messenger/index.ts
|
5377
5383
|
var import_core19 = require("@ts-rest/core");
|
@@ -5507,7 +5513,7 @@ var permissionContract = (0, import_core20.initContract)().router(
|
|
5507
5513
|
summary: "Get all permissions"
|
5508
5514
|
}
|
5509
5515
|
},
|
5510
|
-
{ pathPrefix: "permission" }
|
5516
|
+
{ pathPrefix: "ms/permission" }
|
5511
5517
|
);
|
5512
5518
|
|
5513
5519
|
// src/role/index.ts
|
@@ -5610,7 +5616,7 @@ var roleContract = (0, import_core21.initContract)().router(
|
|
5610
5616
|
summary: "Get role by Id"
|
5611
5617
|
}
|
5612
5618
|
},
|
5613
|
-
{ pathPrefix: "role" }
|
5619
|
+
{ pathPrefix: "ms/role" }
|
5614
5620
|
);
|
5615
5621
|
|
5616
5622
|
// src/tag/index.ts
|
@@ -5683,7 +5689,7 @@ var tagContract = (0, import_core22.initContract)().router(
|
|
5683
5689
|
}
|
5684
5690
|
},
|
5685
5691
|
{
|
5686
|
-
pathPrefix: "tags"
|
5692
|
+
pathPrefix: "ms/tags"
|
5687
5693
|
}
|
5688
5694
|
);
|
5689
5695
|
|
@@ -5762,7 +5768,7 @@ var telephonyAgentPresenceStatusContract = (0, import_core23.initContract)().rou
|
|
5762
5768
|
summary: "Update presence status"
|
5763
5769
|
}
|
5764
5770
|
},
|
5765
|
-
{ pathPrefix: "telephony" }
|
5771
|
+
{ pathPrefix: "ms/telephony" }
|
5766
5772
|
);
|
5767
5773
|
|
5768
5774
|
// src/telephony-cdr/index.ts
|
@@ -6141,7 +6147,7 @@ var telephonyExtensionContract = (0, import_core25.initContract)().router(
|
|
6141
6147
|
summary: "Get all extension list by yeastar"
|
6142
6148
|
}
|
6143
6149
|
},
|
6144
|
-
{ pathPrefix: "telephony" }
|
6150
|
+
{ pathPrefix: "ms/telephony" }
|
6145
6151
|
);
|
6146
6152
|
|
6147
6153
|
// src/ticket/index.ts
|
@@ -6804,7 +6810,7 @@ var userContract = (0, import_core27.initContract)().router(
|
|
6804
6810
|
summary: "Delete a user."
|
6805
6811
|
}
|
6806
6812
|
},
|
6807
|
-
{ pathPrefix: "user" }
|
6813
|
+
{ pathPrefix: "ms/user" }
|
6808
6814
|
);
|
6809
6815
|
|
6810
6816
|
// src/user-presence-status-log/index.ts
|
@@ -6864,7 +6870,7 @@ var userPresenceStatusLogContract = (0, import_core28.initContract)().router(
|
|
6864
6870
|
}
|
6865
6871
|
}
|
6866
6872
|
},
|
6867
|
-
{ pathPrefix: "user-presence-status-log" }
|
6873
|
+
{ pathPrefix: "ms/user-presence-status-log" }
|
6868
6874
|
);
|
6869
6875
|
|
6870
6876
|
// src/widget/index.ts
|
@@ -7051,7 +7057,7 @@ var widgetContract = (0, import_core29.initContract)().router(
|
|
7051
7057
|
summary: "Delete a widget."
|
7052
7058
|
}
|
7053
7059
|
},
|
7054
|
-
{ pathPrefix: "widget" }
|
7060
|
+
{ pathPrefix: "ms/widget" }
|
7055
7061
|
);
|
7056
7062
|
|
7057
7063
|
// src/wrap-up-form/index.ts
|
@@ -7201,7 +7207,7 @@ var wrapUpFormContract = (0, import_core30.initContract)().router(
|
|
7201
7207
|
summary: "Update a wrap up form."
|
7202
7208
|
}
|
7203
7209
|
},
|
7204
|
-
{ pathPrefix: "wrap-up-form" }
|
7210
|
+
{ pathPrefix: "ms/wrap-up-form" }
|
7205
7211
|
);
|
7206
7212
|
|
7207
7213
|
// src/upload/index.ts
|
@@ -7265,7 +7271,7 @@ var uploadContract = (0, import_core31.initContract)().router(
|
|
7265
7271
|
}
|
7266
7272
|
},
|
7267
7273
|
{
|
7268
|
-
pathPrefix: "/upload"
|
7274
|
+
pathPrefix: "ms/upload"
|
7269
7275
|
}
|
7270
7276
|
);
|
7271
7277
|
|
@@ -7752,7 +7758,7 @@ var snippetContract = (0, import_core35.initContract)().router(
|
|
7752
7758
|
}
|
7753
7759
|
},
|
7754
7760
|
{
|
7755
|
-
pathPrefix: "snippets"
|
7761
|
+
pathPrefix: "ms/snippets"
|
7756
7762
|
}
|
7757
7763
|
);
|
7758
7764
|
|
@@ -8541,7 +8547,7 @@ var botContract = (0, import_core40.initContract)().router(
|
|
8541
8547
|
}
|
8542
8548
|
},
|
8543
8549
|
{
|
8544
|
-
pathPrefix: "/bots"
|
8550
|
+
pathPrefix: "ms/bots"
|
8545
8551
|
}
|
8546
8552
|
);
|
8547
8553
|
|
@@ -8853,10 +8859,10 @@ var workflowContract = (0, import_core43.initContract)().router(
|
|
8853
8859
|
chat: chatContract
|
8854
8860
|
},
|
8855
8861
|
{
|
8856
|
-
pathPrefix: "workflow/"
|
8862
|
+
pathPrefix: "ms/workflow/"
|
8857
8863
|
}
|
8858
8864
|
);
|
8859
|
-
var settingsPathPrefix = "settings/";
|
8865
|
+
var settingsPathPrefix = "ms/settings/";
|
8860
8866
|
var ticketSettingContract = (0, import_core43.initContract)().router(
|
8861
8867
|
{
|
8862
8868
|
ticketSetting: attributeContract
|