@kl1/contracts 1.3.66 → 1.3.68
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +104 -0
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/index.d.ts +1 -0
- package/dist/api-contracts/src/index.d.ts.map +1 -1
- package/dist/api-contracts/src/invoice/index.d.ts +108 -0
- package/dist/api-contracts/src/invoice/index.d.ts.map +1 -0
- package/dist/api-contracts/src/invoice/schema.d.ts +48 -0
- package/dist/api-contracts/src/invoice/schema.d.ts.map +1 -0
- package/dist/api-contracts/src/mail/mail-contract.d.ts +6 -6
- package/dist/api-contracts/src/mail/mail-server-contract.d.ts +6 -6
- package/dist/api-contracts/src/mail/schemas/account.schema.d.ts +2 -2
- package/dist/index.js +669 -627
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +668 -627
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1700,7 +1700,7 @@ var smsSettingContract = initContract().router({
|
|
1700
1700
|
});
|
1701
1701
|
|
1702
1702
|
// src/contract.ts
|
1703
|
-
import { initContract as
|
1703
|
+
import { initContract as initContract44 } from "@ts-rest/core";
|
1704
1704
|
|
1705
1705
|
// src/activity-log/index.ts
|
1706
1706
|
import { initContract as initContract2 } from "@ts-rest/core";
|
@@ -9015,8 +9015,47 @@ var whatsappContract = initContract42().router({
|
|
9015
9015
|
}
|
9016
9016
|
});
|
9017
9017
|
|
9018
|
+
// src/invoice/index.ts
|
9019
|
+
import { initContract as initContract43 } from "@ts-rest/core";
|
9020
|
+
import { z as z117 } from "zod";
|
9021
|
+
|
9022
|
+
// src/invoice/schema.ts
|
9023
|
+
import z116 from "zod";
|
9024
|
+
var InvoiceSchema = DefaultEntitySchema.extend({
|
9025
|
+
invoiceId: z116.string(),
|
9026
|
+
amountPaid: z116.number(),
|
9027
|
+
billingReason: z116.string(),
|
9028
|
+
collectionMethod: z116.string(),
|
9029
|
+
created: z116.number(),
|
9030
|
+
currency: z116.string(),
|
9031
|
+
hostedInvoiceUrl: z116.string(),
|
9032
|
+
invoicePdf: z116.string(),
|
9033
|
+
number: z116.string(),
|
9034
|
+
paid: z116.boolean()
|
9035
|
+
});
|
9036
|
+
|
9037
|
+
// src/invoice/index.ts
|
9038
|
+
var invoiceContract = initContract43().router(
|
9039
|
+
{
|
9040
|
+
getInvoices: {
|
9041
|
+
method: "GET",
|
9042
|
+
path: "/",
|
9043
|
+
query: null,
|
9044
|
+
responses: {
|
9045
|
+
200: DefaultSuccessResponseSchema.extend({
|
9046
|
+
invoices: z117.array(InvoiceSchema)
|
9047
|
+
}),
|
9048
|
+
500: DefaultErrorResponseSchema
|
9049
|
+
}
|
9050
|
+
}
|
9051
|
+
},
|
9052
|
+
{
|
9053
|
+
pathPrefix: "ms/invoices"
|
9054
|
+
}
|
9055
|
+
);
|
9056
|
+
|
9018
9057
|
// src/contract.ts
|
9019
|
-
var apiContract =
|
9058
|
+
var apiContract = initContract44().router({
|
9020
9059
|
auth: authContract,
|
9021
9060
|
cxLog: cxLogContract,
|
9022
9061
|
dashboard: dashboardContract,
|
@@ -9038,7 +9077,8 @@ var apiContract = initContract43().router({
|
|
9038
9077
|
upload: uploadContract,
|
9039
9078
|
snippet: snippetContract,
|
9040
9079
|
bot: botContract,
|
9041
|
-
|
9080
|
+
invoice: invoiceContract,
|
9081
|
+
...initContract44().router(
|
9042
9082
|
{
|
9043
9083
|
channel: channelContract
|
9044
9084
|
},
|
@@ -9047,62 +9087,62 @@ var apiContract = initContract43().router({
|
|
9047
9087
|
}
|
9048
9088
|
)
|
9049
9089
|
});
|
9050
|
-
var contactContract2 =
|
9090
|
+
var contactContract2 = initContract44().router({
|
9051
9091
|
contact: contactContract
|
9052
9092
|
});
|
9053
|
-
var ticketContract2 =
|
9093
|
+
var ticketContract2 = initContract44().router({
|
9054
9094
|
ticket: ticketContract
|
9055
9095
|
});
|
9056
|
-
var extensionContract2 =
|
9096
|
+
var extensionContract2 = initContract44().router({
|
9057
9097
|
extension: extensionContract
|
9058
9098
|
});
|
9059
|
-
var commentActivityContract =
|
9099
|
+
var commentActivityContract = initContract44().router({
|
9060
9100
|
comment: commentContract,
|
9061
9101
|
activityLog: activityLogContract
|
9062
9102
|
});
|
9063
|
-
var platformContract =
|
9103
|
+
var platformContract = initContract44().router({
|
9064
9104
|
viber: viberContract
|
9065
9105
|
});
|
9066
|
-
var platformLineContract =
|
9106
|
+
var platformLineContract = initContract44().router({
|
9067
9107
|
line: lineContract
|
9068
9108
|
});
|
9069
|
-
var platformTelegramContract =
|
9109
|
+
var platformTelegramContract = initContract44().router({
|
9070
9110
|
telegram: telegramContract
|
9071
9111
|
});
|
9072
|
-
var platformMessengerContract =
|
9112
|
+
var platformMessengerContract = initContract44().router({
|
9073
9113
|
messenger: messengerContract
|
9074
9114
|
});
|
9075
|
-
var platformInstagramContract =
|
9115
|
+
var platformInstagramContract = initContract44().router({
|
9076
9116
|
instagram: instagramContract
|
9077
9117
|
});
|
9078
|
-
var platformBotpressContract =
|
9118
|
+
var platformBotpressContract = initContract44().router({
|
9079
9119
|
botpress: botpressContract
|
9080
9120
|
});
|
9081
|
-
var platformSMSContract =
|
9121
|
+
var platformSMSContract = initContract44().router({
|
9082
9122
|
sms: smsContract
|
9083
9123
|
});
|
9084
|
-
var platformWhatsappContract =
|
9124
|
+
var platformWhatsappContract = initContract44().router({
|
9085
9125
|
whatsapp: whatsappContract
|
9086
9126
|
});
|
9087
|
-
var facebookFeedContract2 =
|
9127
|
+
var facebookFeedContract2 = initContract44().router({
|
9088
9128
|
facebookFeed: facebookFeedContract
|
9089
9129
|
});
|
9090
|
-
var feedPostContract =
|
9130
|
+
var feedPostContract = initContract44().router({
|
9091
9131
|
main: mainFeedContract
|
9092
9132
|
});
|
9093
|
-
var telephonyContract =
|
9133
|
+
var telephonyContract = initContract44().router({
|
9094
9134
|
telephonyCdr: telephonyCdrContract
|
9095
9135
|
});
|
9096
|
-
var notificationContract =
|
9136
|
+
var notificationContract = initContract44().router({
|
9097
9137
|
notification: userNotificationContract
|
9098
9138
|
});
|
9099
|
-
var publicApiContract2 =
|
9139
|
+
var publicApiContract2 = initContract44().router({
|
9100
9140
|
publicApi: publicApiContract
|
9101
9141
|
});
|
9102
|
-
var businessCalendarContract2 =
|
9142
|
+
var businessCalendarContract2 = initContract44().router({
|
9103
9143
|
businessCalendar: businessCalendarContract
|
9104
9144
|
});
|
9105
|
-
var workflowContract =
|
9145
|
+
var workflowContract = initContract44().router(
|
9106
9146
|
{
|
9107
9147
|
chat: chatContract
|
9108
9148
|
},
|
@@ -9111,7 +9151,7 @@ var workflowContract = initContract43().router(
|
|
9111
9151
|
}
|
9112
9152
|
);
|
9113
9153
|
var settingsPathPrefix = "ms/settings/";
|
9114
|
-
var ticketSettingContract =
|
9154
|
+
var ticketSettingContract = initContract44().router(
|
9115
9155
|
{
|
9116
9156
|
ticketSetting: attributeContract
|
9117
9157
|
},
|
@@ -9119,7 +9159,7 @@ var ticketSettingContract = initContract43().router(
|
|
9119
9159
|
pathPrefix: `${settingsPathPrefix}ticket/`
|
9120
9160
|
}
|
9121
9161
|
);
|
9122
|
-
var contactSettingContract =
|
9162
|
+
var contactSettingContract = initContract44().router(
|
9123
9163
|
{
|
9124
9164
|
contactSetting: attributeContract
|
9125
9165
|
},
|
@@ -9127,7 +9167,7 @@ var contactSettingContract = initContract43().router(
|
|
9127
9167
|
pathPrefix: `${settingsPathPrefix}contact/`
|
9128
9168
|
}
|
9129
9169
|
);
|
9130
|
-
var companySettingContract =
|
9170
|
+
var companySettingContract = initContract44().router(
|
9131
9171
|
{
|
9132
9172
|
companySetting: attributeContract
|
9133
9173
|
},
|
@@ -9135,7 +9175,7 @@ var companySettingContract = initContract43().router(
|
|
9135
9175
|
pathPrefix: `${settingsPathPrefix}company/`
|
9136
9176
|
}
|
9137
9177
|
);
|
9138
|
-
var caseLogSettingContract =
|
9178
|
+
var caseLogSettingContract = initContract44().router(
|
9139
9179
|
{
|
9140
9180
|
caseLogSetting: attributeContract
|
9141
9181
|
},
|
@@ -9143,7 +9183,7 @@ var caseLogSettingContract = initContract43().router(
|
|
9143
9183
|
pathPrefix: `${settingsPathPrefix}case_log/`
|
9144
9184
|
}
|
9145
9185
|
);
|
9146
|
-
var generalTagSettingContract =
|
9186
|
+
var generalTagSettingContract = initContract44().router(
|
9147
9187
|
{
|
9148
9188
|
generalTag: tagContract
|
9149
9189
|
},
|
@@ -9151,7 +9191,7 @@ var generalTagSettingContract = initContract43().router(
|
|
9151
9191
|
pathPrefix: `${settingsPathPrefix}general_tag/`
|
9152
9192
|
}
|
9153
9193
|
);
|
9154
|
-
var contactLabelSettingContract =
|
9194
|
+
var contactLabelSettingContract = initContract44().router(
|
9155
9195
|
{
|
9156
9196
|
contactLabel: tagContract
|
9157
9197
|
},
|
@@ -9159,7 +9199,7 @@ var contactLabelSettingContract = initContract43().router(
|
|
9159
9199
|
pathPrefix: `${settingsPathPrefix}contact_label/`
|
9160
9200
|
}
|
9161
9201
|
);
|
9162
|
-
var categorySettingContract =
|
9202
|
+
var categorySettingContract = initContract44().router(
|
9163
9203
|
{
|
9164
9204
|
category: categoryContract
|
9165
9205
|
},
|
@@ -9167,7 +9207,7 @@ var categorySettingContract = initContract43().router(
|
|
9167
9207
|
pathPrefix: settingsPathPrefix
|
9168
9208
|
}
|
9169
9209
|
);
|
9170
|
-
var snippetSettingContract =
|
9210
|
+
var snippetSettingContract = initContract44().router(
|
9171
9211
|
{
|
9172
9212
|
snippet: snippetContract
|
9173
9213
|
},
|
@@ -9175,7 +9215,7 @@ var snippetSettingContract = initContract43().router(
|
|
9175
9215
|
pathPrefix: settingsPathPrefix
|
9176
9216
|
}
|
9177
9217
|
);
|
9178
|
-
var businessCalendarSettingContract =
|
9218
|
+
var businessCalendarSettingContract = initContract44().router(
|
9179
9219
|
{
|
9180
9220
|
businessCalendar: businessCalendarContract
|
9181
9221
|
},
|
@@ -9183,7 +9223,7 @@ var businessCalendarSettingContract = initContract43().router(
|
|
9183
9223
|
pathPrefix: settingsPathPrefix
|
9184
9224
|
}
|
9185
9225
|
);
|
9186
|
-
var channelSettingContract =
|
9226
|
+
var channelSettingContract = initContract44().router(
|
9187
9227
|
{
|
9188
9228
|
channel: channelContract
|
9189
9229
|
},
|
@@ -9191,50 +9231,50 @@ var channelSettingContract = initContract43().router(
|
|
9191
9231
|
pathPrefix: settingsPathPrefix
|
9192
9232
|
}
|
9193
9233
|
);
|
9194
|
-
var widgetSettingContract =
|
9234
|
+
var widgetSettingContract = initContract44().router(
|
9195
9235
|
{ widget: widgetContract },
|
9196
9236
|
{ pathPrefix: settingsPathPrefix }
|
9197
9237
|
);
|
9198
|
-
var roleSettingContract =
|
9238
|
+
var roleSettingContract = initContract44().router(
|
9199
9239
|
{ role: roleContract },
|
9200
9240
|
{ pathPrefix: settingsPathPrefix }
|
9201
9241
|
);
|
9202
|
-
var permissionSettingContract =
|
9242
|
+
var permissionSettingContract = initContract44().router(
|
9203
9243
|
{ permission: permissionContract },
|
9204
9244
|
{ pathPrefix: settingsPathPrefix }
|
9205
9245
|
);
|
9206
|
-
var memberSettingContract =
|
9246
|
+
var memberSettingContract = initContract44().router(
|
9207
9247
|
{ member: userContract },
|
9208
9248
|
{ pathPrefix: settingsPathPrefix }
|
9209
9249
|
);
|
9210
|
-
var presenceStatusContract2 =
|
9250
|
+
var presenceStatusContract2 = initContract44().router({
|
9211
9251
|
presenceStatus: presenceStatusContract
|
9212
9252
|
});
|
9213
9253
|
|
9214
9254
|
// src/general-setting/index.ts
|
9215
|
-
import { initContract as
|
9216
|
-
import
|
9217
|
-
var generalSettingContract =
|
9255
|
+
import { initContract as initContract45 } from "@ts-rest/core";
|
9256
|
+
import z118 from "zod";
|
9257
|
+
var generalSettingContract = initContract45().router(
|
9218
9258
|
{
|
9219
9259
|
autoOpenedContactWidgetId: {
|
9220
9260
|
getAutoOpenedContactWidgetId: {
|
9221
9261
|
method: "GET",
|
9222
9262
|
path: "/auto-opened-contact-widget-id",
|
9223
9263
|
responses: {
|
9224
|
-
200:
|
9225
|
-
autoOpenedContactWidgetId:
|
9264
|
+
200: z118.object({
|
9265
|
+
autoOpenedContactWidgetId: z118.string().nullable()
|
9226
9266
|
})
|
9227
9267
|
}
|
9228
9268
|
},
|
9229
9269
|
updateAutoOpenedContactWidgetId: {
|
9230
9270
|
method: "PATCH",
|
9231
9271
|
path: "/auto-opened-contact-widget-id",
|
9232
|
-
body:
|
9233
|
-
autoOpenedContactWidgetId:
|
9272
|
+
body: z118.object({
|
9273
|
+
autoOpenedContactWidgetId: z118.string().nullable()
|
9234
9274
|
}),
|
9235
9275
|
responses: {
|
9236
|
-
200:
|
9237
|
-
autoOpenedContactWidgetId:
|
9276
|
+
200: z118.object({
|
9277
|
+
autoOpenedContactWidgetId: z118.string().nullable()
|
9238
9278
|
})
|
9239
9279
|
}
|
9240
9280
|
}
|
@@ -9246,54 +9286,54 @@ var generalSettingContract = initContract44().router(
|
|
9246
9286
|
);
|
9247
9287
|
|
9248
9288
|
// src/automation-queue/index.ts
|
9249
|
-
import { initContract as
|
9250
|
-
import { z as
|
9289
|
+
import { initContract as initContract46 } from "@ts-rest/core";
|
9290
|
+
import { z as z121 } from "zod";
|
9251
9291
|
|
9252
9292
|
// src/automation-queue/validation.ts
|
9253
|
-
import { z as
|
9254
|
-
var QueueDistributionStrategySchema =
|
9255
|
-
|
9256
|
-
|
9257
|
-
|
9258
|
-
|
9293
|
+
import { z as z119 } from "zod";
|
9294
|
+
var QueueDistributionStrategySchema = z119.union([
|
9295
|
+
z119.literal("round-robin"),
|
9296
|
+
z119.literal("fewest-assignments"),
|
9297
|
+
z119.literal("random"),
|
9298
|
+
z119.literal("notify-all")
|
9259
9299
|
]);
|
9260
|
-
var CreateAutomationQueueSchema =
|
9261
|
-
emoji:
|
9262
|
-
name:
|
9263
|
-
description:
|
9264
|
-
managerIds:
|
9265
|
-
agentIds:
|
9300
|
+
var CreateAutomationQueueSchema = z119.object({
|
9301
|
+
emoji: z119.string().emoji(),
|
9302
|
+
name: z119.string(),
|
9303
|
+
description: z119.string().nullable(),
|
9304
|
+
managerIds: z119.array(z119.string().uuid()).min(1),
|
9305
|
+
agentIds: z119.array(z119.string().uuid()).min(1),
|
9266
9306
|
distributionStrategy: QueueDistributionStrategySchema,
|
9267
|
-
maximumAssignPerAgent:
|
9307
|
+
maximumAssignPerAgent: z119.number().positive()
|
9268
9308
|
// ringTimeOut: z.number().positive(),
|
9269
9309
|
// retryInterval: z.number().positive(),
|
9270
9310
|
// queueTimeOut: z.number().positive(),
|
9271
9311
|
// isAssignmentDeniable: z.coerce.boolean(),
|
9272
9312
|
});
|
9273
9313
|
var UpdateAutomationQueueSchema = CreateAutomationQueueSchema;
|
9274
|
-
var CheckHasAssignedRoomSchema =
|
9275
|
-
userId:
|
9276
|
-
queueId:
|
9314
|
+
var CheckHasAssignedRoomSchema = z119.object({
|
9315
|
+
userId: z119.string().uuid().optional(),
|
9316
|
+
queueId: z119.string().uuid().optional()
|
9277
9317
|
});
|
9278
9318
|
|
9279
9319
|
// src/automation-queue/schema.ts
|
9280
|
-
import { z as
|
9320
|
+
import { z as z120 } from "zod";
|
9281
9321
|
var AutomationQueueSchema = DefaultEntitySchema.extend({
|
9282
|
-
emoji:
|
9283
|
-
name:
|
9284
|
-
description:
|
9322
|
+
emoji: z120.string(),
|
9323
|
+
name: z120.string(),
|
9324
|
+
description: z120.string().nullable(),
|
9285
9325
|
distributionStrategy: QueueDistributionStrategySchema,
|
9286
|
-
maximumAssignPerAgent:
|
9326
|
+
maximumAssignPerAgent: z120.number().positive(),
|
9287
9327
|
// ringTimeOut: z.number(),
|
9288
9328
|
// retryInterval: z.number(),
|
9289
9329
|
// queueTimeOut: z.number(),
|
9290
9330
|
// isAssignmentDeniable: z.boolean(),
|
9291
|
-
managers:
|
9292
|
-
agents:
|
9331
|
+
managers: z120.array(UserSchema),
|
9332
|
+
agents: z120.array(UserSchema)
|
9293
9333
|
});
|
9294
9334
|
|
9295
9335
|
// src/automation-queue/index.ts
|
9296
|
-
var automationQueueContract =
|
9336
|
+
var automationQueueContract = initContract46().router(
|
9297
9337
|
{
|
9298
9338
|
createAutomationQueue: {
|
9299
9339
|
method: "POST",
|
@@ -9308,8 +9348,8 @@ var automationQueueContract = initContract45().router(
|
|
9308
9348
|
duplicateAutomationQueue: {
|
9309
9349
|
method: "POST",
|
9310
9350
|
path: "/:id/duplicate",
|
9311
|
-
pathParams:
|
9312
|
-
id:
|
9351
|
+
pathParams: z121.object({
|
9352
|
+
id: z121.string().uuid()
|
9313
9353
|
}),
|
9314
9354
|
body: null,
|
9315
9355
|
responses: {
|
@@ -9321,21 +9361,21 @@ var automationQueueContract = initContract45().router(
|
|
9321
9361
|
getAutomationQueues: {
|
9322
9362
|
method: "GET",
|
9323
9363
|
path: "",
|
9324
|
-
query:
|
9325
|
-
userId:
|
9326
|
-
withRelations:
|
9364
|
+
query: z121.object({
|
9365
|
+
userId: z121.string().uuid().optional(),
|
9366
|
+
withRelations: z121.coerce.boolean().default(true).optional()
|
9327
9367
|
}).optional(),
|
9328
9368
|
responses: {
|
9329
9369
|
200: DefaultSuccessResponseSchema.extend({
|
9330
|
-
data:
|
9370
|
+
data: z121.array(AutomationQueueSchema)
|
9331
9371
|
})
|
9332
9372
|
}
|
9333
9373
|
},
|
9334
9374
|
getAutomationQueueById: {
|
9335
9375
|
method: "GET",
|
9336
9376
|
path: "/:id",
|
9337
|
-
pathParams:
|
9338
|
-
id:
|
9377
|
+
pathParams: z121.object({
|
9378
|
+
id: z121.string().uuid()
|
9339
9379
|
}),
|
9340
9380
|
responses: {
|
9341
9381
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -9346,8 +9386,8 @@ var automationQueueContract = initContract45().router(
|
|
9346
9386
|
updateAutomationQueue: {
|
9347
9387
|
method: "PATCH",
|
9348
9388
|
path: "/:id",
|
9349
|
-
pathParams:
|
9350
|
-
id:
|
9389
|
+
pathParams: z121.object({
|
9390
|
+
id: z121.string().uuid()
|
9351
9391
|
}),
|
9352
9392
|
body: UpdateAutomationQueueSchema,
|
9353
9393
|
responses: {
|
@@ -9359,13 +9399,13 @@ var automationQueueContract = initContract45().router(
|
|
9359
9399
|
deleteAutomationQueue: {
|
9360
9400
|
method: "DELETE",
|
9361
9401
|
path: "/:id",
|
9362
|
-
pathParams:
|
9363
|
-
id:
|
9402
|
+
pathParams: z121.object({
|
9403
|
+
id: z121.string().uuid()
|
9364
9404
|
}),
|
9365
9405
|
body: null,
|
9366
9406
|
responses: {
|
9367
9407
|
200: DefaultSuccessResponseSchema.extend({
|
9368
|
-
message:
|
9408
|
+
message: z121.string()
|
9369
9409
|
})
|
9370
9410
|
}
|
9371
9411
|
},
|
@@ -9375,8 +9415,8 @@ var automationQueueContract = initContract45().router(
|
|
9375
9415
|
body: CheckHasAssignedRoomSchema,
|
9376
9416
|
responses: {
|
9377
9417
|
200: DefaultSuccessResponseSchema.extend({
|
9378
|
-
data:
|
9379
|
-
hasAssignedRoom:
|
9418
|
+
data: z121.object({
|
9419
|
+
hasAssignedRoom: z121.boolean()
|
9380
9420
|
})
|
9381
9421
|
})
|
9382
9422
|
}
|
@@ -9389,300 +9429,300 @@ var automationQueueContract = initContract45().router(
|
|
9389
9429
|
);
|
9390
9430
|
|
9391
9431
|
// src/mail/mail-contract.ts
|
9392
|
-
import { initContract as
|
9432
|
+
import { initContract as initContract51 } from "@ts-rest/core";
|
9393
9433
|
|
9394
9434
|
// src/mail/room-contract.ts
|
9395
|
-
import { initContract as
|
9396
|
-
import
|
9435
|
+
import { initContract as initContract47 } from "@ts-rest/core";
|
9436
|
+
import z126 from "zod";
|
9397
9437
|
|
9398
9438
|
// src/mail/schemas/room.schema.ts
|
9399
|
-
import
|
9439
|
+
import z124 from "zod";
|
9400
9440
|
|
9401
9441
|
// src/mail/schemas/account.schema.ts
|
9402
|
-
import
|
9403
|
-
var MailServerSchema =
|
9404
|
-
id:
|
9405
|
-
createdAt: z120.date(),
|
9406
|
-
updatedAt: z120.date(),
|
9407
|
-
deletedAt: z120.date().nullable(),
|
9408
|
-
name: z120.string(),
|
9409
|
-
smtpHost: z120.string(),
|
9410
|
-
smtpPort: z120.number(),
|
9411
|
-
smtpTlsPort: z120.number(),
|
9412
|
-
useTlsForSmtp: z120.boolean(),
|
9413
|
-
imapHost: z120.string(),
|
9414
|
-
imapPort: z120.number(),
|
9415
|
-
imapTlsPort: z120.number(),
|
9416
|
-
useTlsForImap: z120.boolean()
|
9417
|
-
});
|
9418
|
-
var MailAccountSchema = z120.object({
|
9419
|
-
id: z120.string(),
|
9420
|
-
createdAt: z120.date(),
|
9421
|
-
updatedAt: z120.date(),
|
9422
|
-
deletedAt: z120.date().nullable(),
|
9423
|
-
name: z120.string(),
|
9424
|
-
address: z120.string(),
|
9425
|
-
accountId: z120.string(),
|
9426
|
-
mailServerId: z120.string(),
|
9427
|
-
mailServer: MailServerSchema,
|
9428
|
-
state: z120.union([
|
9429
|
-
z120.literal("init"),
|
9430
|
-
z120.literal("syncing"),
|
9431
|
-
z120.literal("connecting"),
|
9432
|
-
z120.literal("connected"),
|
9433
|
-
z120.literal("disconnected"),
|
9434
|
-
z120.literal("authenticationError"),
|
9435
|
-
z120.literal("connectError"),
|
9436
|
-
z120.literal("unset")
|
9437
|
-
])
|
9438
|
-
});
|
9439
|
-
var OAuth2AppSchema = z120.object({
|
9440
|
-
id: z120.string(),
|
9441
|
-
name: z120.string(),
|
9442
|
-
description: z120.string(),
|
9443
|
-
title: z120.string(),
|
9444
|
-
provider: z120.string(),
|
9445
|
-
enabled: z120.boolean(),
|
9446
|
-
legacy: z120.boolean(),
|
9447
|
-
created: z120.string(),
|
9448
|
-
updated: z120.string(),
|
9449
|
-
includeInListing: z120.boolean(),
|
9450
|
-
clientId: z120.string(),
|
9451
|
-
clientSecret: z120.string(),
|
9452
|
-
authority: z120.string(),
|
9453
|
-
redirectUrl: z120.string(),
|
9454
|
-
serviceClient: z120.string(),
|
9455
|
-
googleProjectId: z120.string(),
|
9456
|
-
serviceClientEmail: z120.string(),
|
9457
|
-
serviceKey: z120.string()
|
9458
|
-
});
|
9459
|
-
|
9460
|
-
// src/mail/schemas/message.schema.ts
|
9461
|
-
import z121 from "zod";
|
9462
|
-
var AttachmentSchema = z121.object({
|
9463
|
-
id: z121.string(),
|
9464
|
-
createdAt: z121.date(),
|
9465
|
-
updatedAt: z121.date(),
|
9466
|
-
deletedAt: z121.nullable(z121.date()),
|
9467
|
-
roomId: z121.string(),
|
9468
|
-
messageId: z121.string(),
|
9469
|
-
fileName: z121.string(),
|
9470
|
-
fileType: z121.string(),
|
9471
|
-
emailEngineAttachmentId: z121.string(),
|
9472
|
-
uploadId: z121.string(),
|
9473
|
-
upload: z121.object({
|
9474
|
-
id: z121.string(),
|
9475
|
-
createdAt: z121.date(),
|
9476
|
-
updatedAt: z121.date(),
|
9477
|
-
deletedAt: z121.nullable(z121.date()),
|
9478
|
-
bucketName: z121.string(),
|
9479
|
-
fileName: z121.string(),
|
9480
|
-
fileKey: z121.string(),
|
9481
|
-
fileSize: z121.number(),
|
9482
|
-
fileUrl: z121.string(),
|
9483
|
-
extensionName: z121.string()
|
9484
|
-
})
|
9485
|
-
});
|
9486
|
-
var MessageSchema2 = z121.object({
|
9487
|
-
id: z121.string(),
|
9488
|
-
createdAt: z121.date(),
|
9489
|
-
updatedAt: z121.date(),
|
9490
|
-
deletedAt: z121.nullable(z121.date()),
|
9491
|
-
roomId: z121.string(),
|
9492
|
-
subject: z121.string(),
|
9493
|
-
textPlain: z121.string(),
|
9494
|
-
textHtml: z121.string(),
|
9495
|
-
textId: z121.string(),
|
9496
|
-
emailEngineEmailId: z121.string(),
|
9497
|
-
emailEngineMessageId: z121.string(),
|
9498
|
-
emailEngineReplyTo: z121.nullable(z121.string()),
|
9499
|
-
direction: z121.string(),
|
9500
|
-
date: z121.date(),
|
9501
|
-
action: z121.string(),
|
9502
|
-
unseen: z121.boolean(),
|
9503
|
-
sendAt: z121.date(),
|
9504
|
-
starred: z121.boolean(),
|
9505
|
-
seemsLikeNew: z121.boolean(),
|
9506
|
-
from: z121.array(MailParticipant),
|
9507
|
-
to: z121.array(MailParticipant),
|
9508
|
-
cc: z121.array(MailParticipant),
|
9509
|
-
bcc: z121.array(MailParticipant),
|
9510
|
-
attachments: z121.array(AttachmentSchema)
|
9511
|
-
});
|
9512
|
-
|
9513
|
-
// src/mail/schemas/room.schema.ts
|
9514
|
-
var ContactSchema3 = z122.object({
|
9515
|
-
id: z122.string().uuid(),
|
9442
|
+
import z122 from "zod";
|
9443
|
+
var MailServerSchema = z122.object({
|
9444
|
+
id: z122.string(),
|
9516
9445
|
createdAt: z122.date(),
|
9517
9446
|
updatedAt: z122.date(),
|
9518
9447
|
deletedAt: z122.date().nullable(),
|
9519
9448
|
name: z122.string(),
|
9520
|
-
|
9521
|
-
|
9522
|
-
|
9523
|
-
|
9524
|
-
|
9525
|
-
|
9526
|
-
|
9449
|
+
smtpHost: z122.string(),
|
9450
|
+
smtpPort: z122.number(),
|
9451
|
+
smtpTlsPort: z122.number(),
|
9452
|
+
useTlsForSmtp: z122.boolean(),
|
9453
|
+
imapHost: z122.string(),
|
9454
|
+
imapPort: z122.number(),
|
9455
|
+
imapTlsPort: z122.number(),
|
9456
|
+
useTlsForImap: z122.boolean()
|
9457
|
+
});
|
9458
|
+
var MailAccountSchema = z122.object({
|
9527
9459
|
id: z122.string(),
|
9528
9460
|
createdAt: z122.date(),
|
9529
9461
|
updatedAt: z122.date(),
|
9530
9462
|
deletedAt: z122.date().nullable(),
|
9531
9463
|
name: z122.string(),
|
9532
9464
|
address: z122.string(),
|
9533
|
-
|
9534
|
-
|
9535
|
-
|
9465
|
+
accountId: z122.string(),
|
9466
|
+
mailServerId: z122.string(),
|
9467
|
+
mailServer: MailServerSchema,
|
9468
|
+
state: z122.union([
|
9469
|
+
z122.literal("init"),
|
9470
|
+
z122.literal("syncing"),
|
9471
|
+
z122.literal("connecting"),
|
9472
|
+
z122.literal("connected"),
|
9473
|
+
z122.literal("disconnected"),
|
9474
|
+
z122.literal("authenticationError"),
|
9475
|
+
z122.literal("connectError"),
|
9476
|
+
z122.literal("unset")
|
9477
|
+
])
|
9536
9478
|
});
|
9537
|
-
var
|
9479
|
+
var OAuth2AppSchema = z122.object({
|
9538
9480
|
id: z122.string(),
|
9539
|
-
|
9540
|
-
|
9541
|
-
|
9542
|
-
|
9543
|
-
|
9544
|
-
|
9545
|
-
|
9481
|
+
name: z122.string(),
|
9482
|
+
description: z122.string(),
|
9483
|
+
title: z122.string(),
|
9484
|
+
provider: z122.string(),
|
9485
|
+
enabled: z122.boolean(),
|
9486
|
+
legacy: z122.boolean(),
|
9487
|
+
created: z122.string(),
|
9488
|
+
updated: z122.string(),
|
9489
|
+
includeInListing: z122.boolean(),
|
9490
|
+
clientId: z122.string(),
|
9491
|
+
clientSecret: z122.string(),
|
9492
|
+
authority: z122.string(),
|
9493
|
+
redirectUrl: z122.string(),
|
9494
|
+
serviceClient: z122.string(),
|
9495
|
+
googleProjectId: z122.string(),
|
9496
|
+
serviceClientEmail: z122.string(),
|
9497
|
+
serviceKey: z122.string()
|
9546
9498
|
});
|
9547
|
-
|
9548
|
-
|
9549
|
-
|
9550
|
-
|
9551
|
-
|
9552
|
-
|
9553
|
-
|
9499
|
+
|
9500
|
+
// src/mail/schemas/message.schema.ts
|
9501
|
+
import z123 from "zod";
|
9502
|
+
var AttachmentSchema = z123.object({
|
9503
|
+
id: z123.string(),
|
9504
|
+
createdAt: z123.date(),
|
9505
|
+
updatedAt: z123.date(),
|
9506
|
+
deletedAt: z123.nullable(z123.date()),
|
9507
|
+
roomId: z123.string(),
|
9508
|
+
messageId: z123.string(),
|
9509
|
+
fileName: z123.string(),
|
9510
|
+
fileType: z123.string(),
|
9511
|
+
emailEngineAttachmentId: z123.string(),
|
9512
|
+
uploadId: z123.string(),
|
9513
|
+
upload: z123.object({
|
9514
|
+
id: z123.string(),
|
9515
|
+
createdAt: z123.date(),
|
9516
|
+
updatedAt: z123.date(),
|
9517
|
+
deletedAt: z123.nullable(z123.date()),
|
9518
|
+
bucketName: z123.string(),
|
9519
|
+
fileName: z123.string(),
|
9520
|
+
fileKey: z123.string(),
|
9521
|
+
fileSize: z123.number(),
|
9522
|
+
fileUrl: z123.string(),
|
9523
|
+
extensionName: z123.string()
|
9524
|
+
})
|
9554
9525
|
});
|
9555
|
-
var
|
9556
|
-
id:
|
9557
|
-
createdAt:
|
9558
|
-
updatedAt:
|
9559
|
-
deletedAt:
|
9560
|
-
|
9561
|
-
|
9562
|
-
|
9563
|
-
|
9564
|
-
|
9526
|
+
var MessageSchema2 = z123.object({
|
9527
|
+
id: z123.string(),
|
9528
|
+
createdAt: z123.date(),
|
9529
|
+
updatedAt: z123.date(),
|
9530
|
+
deletedAt: z123.nullable(z123.date()),
|
9531
|
+
roomId: z123.string(),
|
9532
|
+
subject: z123.string(),
|
9533
|
+
textPlain: z123.string(),
|
9534
|
+
textHtml: z123.string(),
|
9535
|
+
textId: z123.string(),
|
9536
|
+
emailEngineEmailId: z123.string(),
|
9537
|
+
emailEngineMessageId: z123.string(),
|
9538
|
+
emailEngineReplyTo: z123.nullable(z123.string()),
|
9539
|
+
direction: z123.string(),
|
9540
|
+
date: z123.date(),
|
9541
|
+
action: z123.string(),
|
9542
|
+
unseen: z123.boolean(),
|
9543
|
+
sendAt: z123.date(),
|
9544
|
+
starred: z123.boolean(),
|
9545
|
+
seemsLikeNew: z123.boolean(),
|
9546
|
+
from: z123.array(MailParticipant),
|
9547
|
+
to: z123.array(MailParticipant),
|
9548
|
+
cc: z123.array(MailParticipant),
|
9549
|
+
bcc: z123.array(MailParticipant),
|
9550
|
+
attachments: z123.array(AttachmentSchema)
|
9565
9551
|
});
|
9566
|
-
|
9567
|
-
|
9568
|
-
|
9569
|
-
|
9570
|
-
|
9571
|
-
|
9572
|
-
|
9573
|
-
|
9552
|
+
|
9553
|
+
// src/mail/schemas/room.schema.ts
|
9554
|
+
var ContactSchema3 = z124.object({
|
9555
|
+
id: z124.string().uuid(),
|
9556
|
+
createdAt: z124.date(),
|
9557
|
+
updatedAt: z124.date(),
|
9558
|
+
deletedAt: z124.date().nullable(),
|
9559
|
+
name: z124.string(),
|
9560
|
+
address: z124.string().nullable(),
|
9561
|
+
channel: z124.string().nullable(),
|
9562
|
+
notes: z124.string().nullable(),
|
9563
|
+
contactProfile: z124.string().nullable(),
|
9564
|
+
socialProfileUrl: z124.string().nullable()
|
9565
|
+
});
|
9566
|
+
var MailUserSchema = z124.object({
|
9567
|
+
id: z124.string(),
|
9568
|
+
createdAt: z124.date(),
|
9569
|
+
updatedAt: z124.date(),
|
9570
|
+
deletedAt: z124.date().nullable(),
|
9571
|
+
name: z124.string(),
|
9572
|
+
address: z124.string(),
|
9573
|
+
contactId: z124.string(),
|
9574
|
+
contact: ContactSchema3,
|
9575
|
+
isNewContact: z124.boolean()
|
9576
|
+
});
|
9577
|
+
var MailParticipant = z124.object({
|
9578
|
+
id: z124.string(),
|
9579
|
+
createdAt: z124.date(),
|
9580
|
+
updatedAt: z124.date(),
|
9581
|
+
deletedAt: z124.date().nullable(),
|
9582
|
+
roomId: z124.string(),
|
9583
|
+
messageId: z124.string(),
|
9584
|
+
mailUserId: z124.string(),
|
9585
|
+
mailUser: MailUserSchema
|
9586
|
+
});
|
9587
|
+
var TagSchema2 = z124.object({
|
9588
|
+
color: z124.string(),
|
9589
|
+
id: z124.string(),
|
9590
|
+
createdAt: z124.date(),
|
9591
|
+
updatedAt: z124.date(),
|
9592
|
+
deletedAt: z124.date().nullable(),
|
9593
|
+
name: z124.string()
|
9594
|
+
});
|
9595
|
+
var UserModel = z124.object({
|
9596
|
+
id: z124.string().uuid(),
|
9597
|
+
createdAt: z124.date(),
|
9598
|
+
updatedAt: z124.date(),
|
9599
|
+
deletedAt: z124.date().nullable(),
|
9600
|
+
name: z124.string(),
|
9601
|
+
email: z124.string(),
|
9602
|
+
address: z124.string().nullable(),
|
9603
|
+
phone: z124.string().nullable(),
|
9604
|
+
notificationCount: z124.number().nullable()
|
9605
|
+
});
|
9606
|
+
var ActivityLogModel = z124.object({
|
9607
|
+
id: z124.string(),
|
9608
|
+
createdAt: z124.date(),
|
9609
|
+
updatedAt: z124.date(),
|
9610
|
+
deletedAt: z124.nullable(z124.string()),
|
9611
|
+
description: z124.string(),
|
9612
|
+
actorId: z124.string(),
|
9613
|
+
roomId: z124.string(),
|
9574
9614
|
actor: UserModel
|
9575
9615
|
});
|
9576
|
-
var MessagesAndLogsSchema =
|
9577
|
-
|
9616
|
+
var MessagesAndLogsSchema = z124.array(
|
9617
|
+
z124.union([MessageSchema2, ActivityLogModel])
|
9578
9618
|
);
|
9579
|
-
var MailRoomSchema =
|
9580
|
-
id:
|
9581
|
-
createdAt:
|
9582
|
-
updatedAt:
|
9583
|
-
deletedAt:
|
9584
|
-
subject:
|
9585
|
-
resolved:
|
9586
|
-
assigneeId:
|
9587
|
-
note:
|
9588
|
-
mailId:
|
9589
|
-
direction:
|
9590
|
-
lastMessageId:
|
9591
|
-
firstMessageId:
|
9592
|
-
from:
|
9593
|
-
to:
|
9594
|
-
cc:
|
9595
|
-
bcc:
|
9619
|
+
var MailRoomSchema = z124.object({
|
9620
|
+
id: z124.string(),
|
9621
|
+
createdAt: z124.date(),
|
9622
|
+
updatedAt: z124.date(),
|
9623
|
+
deletedAt: z124.date().nullable(),
|
9624
|
+
subject: z124.string(),
|
9625
|
+
resolved: z124.boolean(),
|
9626
|
+
assigneeId: z124.string().nullable(),
|
9627
|
+
note: z124.string(),
|
9628
|
+
mailId: z124.string(),
|
9629
|
+
direction: z124.string(),
|
9630
|
+
lastMessageId: z124.string(),
|
9631
|
+
firstMessageId: z124.string(),
|
9632
|
+
from: z124.array(MailParticipant),
|
9633
|
+
to: z124.array(MailParticipant),
|
9634
|
+
cc: z124.array(MailParticipant),
|
9635
|
+
bcc: z124.array(MailParticipant),
|
9596
9636
|
firstMessage: MessageSchema2,
|
9597
9637
|
lastMessage: MessageSchema2,
|
9598
|
-
tags:
|
9638
|
+
tags: z124.array(TagSchema2),
|
9599
9639
|
assignee: UserModel,
|
9600
|
-
messages:
|
9640
|
+
messages: z124.array(MessageSchema2),
|
9601
9641
|
messagesAndLogs: MessagesAndLogsSchema,
|
9602
9642
|
mail: MailAccountSchema,
|
9603
|
-
unReadMessageCount:
|
9643
|
+
unReadMessageCount: z124.number(),
|
9604
9644
|
cxlog: CxLogSchema
|
9605
9645
|
});
|
9606
|
-
var AttachmentSchema2 =
|
9607
|
-
fileName:
|
9608
|
-
fileType:
|
9609
|
-
emailEngineAttachmentId:
|
9610
|
-
uploadId:
|
9611
|
-
messageId:
|
9612
|
-
roomId:
|
9646
|
+
var AttachmentSchema2 = z124.object({
|
9647
|
+
fileName: z124.string(),
|
9648
|
+
fileType: z124.string(),
|
9649
|
+
emailEngineAttachmentId: z124.string(),
|
9650
|
+
uploadId: z124.string(),
|
9651
|
+
messageId: z124.string(),
|
9652
|
+
roomId: z124.string(),
|
9613
9653
|
upload: UploadSchema
|
9614
9654
|
});
|
9615
9655
|
|
9616
9656
|
// src/mail/schemas/room-validation.schema.ts
|
9617
|
-
import
|
9657
|
+
import z125 from "zod";
|
9618
9658
|
var RoomContractsValidationSchema = {
|
9619
9659
|
getAll: {
|
9620
|
-
input:
|
9621
|
-
page:
|
9622
|
-
pageSize:
|
9623
|
-
keyword:
|
9624
|
-
value:
|
9625
|
-
category:
|
9660
|
+
input: z125.object({
|
9661
|
+
page: z125.coerce.number().default(1),
|
9662
|
+
pageSize: z125.coerce.number().default(10),
|
9663
|
+
keyword: z125.object({
|
9664
|
+
value: z125.string(),
|
9665
|
+
category: z125.union([z125.literal("contact"), z125.literal("message")])
|
9626
9666
|
}).optional(),
|
9627
|
-
contactLabels:
|
9628
|
-
channels:
|
9629
|
-
date:
|
9630
|
-
contacts:
|
9631
|
-
assignees:
|
9632
|
-
level1:
|
9633
|
-
|
9634
|
-
|
9635
|
-
|
9636
|
-
|
9637
|
-
|
9638
|
-
|
9667
|
+
contactLabels: z125.array(z125.string()).optional(),
|
9668
|
+
channels: z125.array(z125.string().email()).optional(),
|
9669
|
+
date: z125.string().optional(),
|
9670
|
+
contacts: z125.array(z125.string()).optional(),
|
9671
|
+
assignees: z125.array(z125.string()).optional(),
|
9672
|
+
level1: z125.union([
|
9673
|
+
z125.literal("open"),
|
9674
|
+
z125.literal("close"),
|
9675
|
+
z125.literal("inbox"),
|
9676
|
+
z125.literal("sent"),
|
9677
|
+
z125.literal("scheduled"),
|
9678
|
+
z125.literal("starred")
|
9639
9679
|
]).optional(),
|
9640
|
-
level2:
|
9641
|
-
|
9642
|
-
|
9643
|
-
|
9644
|
-
|
9680
|
+
level2: z125.union([
|
9681
|
+
z125.literal("all"),
|
9682
|
+
z125.literal("unassign"),
|
9683
|
+
z125.literal("mine"),
|
9684
|
+
z125.literal("other")
|
9645
9685
|
]).optional()
|
9646
9686
|
}),
|
9647
|
-
output:
|
9648
|
-
data:
|
9649
|
-
total:
|
9650
|
-
page:
|
9651
|
-
pageSize:
|
9687
|
+
output: z125.object({
|
9688
|
+
data: z125.array(MailRoomSchema),
|
9689
|
+
total: z125.number(),
|
9690
|
+
page: z125.number(),
|
9691
|
+
pageSize: z125.number()
|
9652
9692
|
})
|
9653
9693
|
},
|
9654
9694
|
update: {
|
9655
|
-
input:
|
9656
|
-
disposition:
|
9657
|
-
|
9658
|
-
|
9659
|
-
|
9660
|
-
|
9661
|
-
|
9662
|
-
|
9695
|
+
input: z125.object({
|
9696
|
+
disposition: z125.union([
|
9697
|
+
z125.literal("resolved"),
|
9698
|
+
z125.literal("follow up"),
|
9699
|
+
z125.literal("escalated"),
|
9700
|
+
z125.literal("dropped"),
|
9701
|
+
z125.literal("prank"),
|
9702
|
+
z125.literal("blank")
|
9663
9703
|
]).optional().nullable(),
|
9664
|
-
assigneeId:
|
9665
|
-
note:
|
9666
|
-
tags:
|
9667
|
-
handover:
|
9668
|
-
|
9704
|
+
assigneeId: z125.string().uuid().optional().nullable(),
|
9705
|
+
note: z125.string().optional(),
|
9706
|
+
tags: z125.array(z125.string().uuid()).optional(),
|
9707
|
+
handover: z125.boolean().or(
|
9708
|
+
z125.union([z125.literal("true"), z125.literal("false")]).transform((value) => value.toLowerCase() === "true")
|
9669
9709
|
).optional().nullable(),
|
9670
|
-
selfAssign:
|
9671
|
-
|
9710
|
+
selfAssign: z125.boolean().or(
|
9711
|
+
z125.union([z125.literal("true"), z125.literal("false")]).transform((value) => value.toLowerCase() === "true")
|
9672
9712
|
).optional().nullable()
|
9673
9713
|
})
|
9674
9714
|
}
|
9675
9715
|
};
|
9676
9716
|
|
9677
9717
|
// src/mail/room-contract.ts
|
9678
|
-
var roomContract =
|
9718
|
+
var roomContract = initContract47().router(
|
9679
9719
|
{
|
9680
9720
|
create: {
|
9681
9721
|
method: "POST",
|
9682
9722
|
path: "/",
|
9683
9723
|
responses: {
|
9684
9724
|
200: DefaultSuccessResponseSchema.extend({
|
9685
|
-
message:
|
9725
|
+
message: z126.string()
|
9686
9726
|
}),
|
9687
9727
|
...DefaultResponses
|
9688
9728
|
},
|
@@ -9695,10 +9735,10 @@ var roomContract = initContract46().router(
|
|
9695
9735
|
query: RoomContractsValidationSchema.getAll.input,
|
9696
9736
|
responses: {
|
9697
9737
|
200: DefaultSuccessResponseSchema.extend({
|
9698
|
-
data:
|
9699
|
-
total:
|
9700
|
-
page:
|
9701
|
-
pageSize:
|
9738
|
+
data: z126.array(MailRoomSchema),
|
9739
|
+
total: z126.number(),
|
9740
|
+
page: z126.number(),
|
9741
|
+
pageSize: z126.number()
|
9702
9742
|
}),
|
9703
9743
|
...DefaultResponses
|
9704
9744
|
},
|
@@ -9710,24 +9750,24 @@ var roomContract = initContract46().router(
|
|
9710
9750
|
path: "/count_rooms/all",
|
9711
9751
|
responses: {
|
9712
9752
|
200: DefaultSuccessResponseSchema.extend({
|
9713
|
-
data:
|
9714
|
-
general:
|
9715
|
-
|
9716
|
-
name:
|
9717
|
-
count:
|
9718
|
-
unReadMessagesCount:
|
9753
|
+
data: z126.object({
|
9754
|
+
general: z126.array(
|
9755
|
+
z126.object({
|
9756
|
+
name: z126.string(),
|
9757
|
+
count: z126.number(),
|
9758
|
+
unReadMessagesCount: z126.number()
|
9719
9759
|
})
|
9720
9760
|
),
|
9721
|
-
channels:
|
9722
|
-
|
9761
|
+
channels: z126.array(
|
9762
|
+
z126.object({
|
9723
9763
|
channel: MailAccountSchema,
|
9724
|
-
count:
|
9764
|
+
count: z126.number()
|
9725
9765
|
})
|
9726
9766
|
),
|
9727
|
-
contactLabels:
|
9728
|
-
|
9767
|
+
contactLabels: z126.array(
|
9768
|
+
z126.object({
|
9729
9769
|
label: TagSchema,
|
9730
|
-
count:
|
9770
|
+
count: z126.number()
|
9731
9771
|
})
|
9732
9772
|
)
|
9733
9773
|
})
|
@@ -9739,12 +9779,12 @@ var roomContract = initContract46().router(
|
|
9739
9779
|
getAttachments: {
|
9740
9780
|
method: "GET",
|
9741
9781
|
path: "/:id/attachments",
|
9742
|
-
pathParams:
|
9743
|
-
id:
|
9782
|
+
pathParams: z126.object({
|
9783
|
+
id: z126.string().uuid()
|
9744
9784
|
}),
|
9745
9785
|
responses: {
|
9746
9786
|
200: DefaultSuccessResponseSchema.extend({
|
9747
|
-
data:
|
9787
|
+
data: z126.array(AttachmentSchema2)
|
9748
9788
|
}),
|
9749
9789
|
...DefaultResponses
|
9750
9790
|
},
|
@@ -9753,12 +9793,12 @@ var roomContract = initContract46().router(
|
|
9753
9793
|
getParticipants: {
|
9754
9794
|
method: "GET",
|
9755
9795
|
path: "/:id/participants",
|
9756
|
-
pathParams:
|
9757
|
-
id:
|
9796
|
+
pathParams: z126.object({
|
9797
|
+
id: z126.string().uuid()
|
9758
9798
|
}),
|
9759
9799
|
responses: {
|
9760
9800
|
200: DefaultSuccessResponseSchema.extend({
|
9761
|
-
data:
|
9801
|
+
data: z126.array(MailParticipant)
|
9762
9802
|
}),
|
9763
9803
|
...DefaultResponses
|
9764
9804
|
},
|
@@ -9769,22 +9809,22 @@ var roomContract = initContract46().router(
|
|
9769
9809
|
path: "/add_email_to_contact",
|
9770
9810
|
responses: {
|
9771
9811
|
200: DefaultSuccessResponseSchema.extend({
|
9772
|
-
data:
|
9812
|
+
data: z126.string()
|
9773
9813
|
}),
|
9774
9814
|
...DefaultResponses
|
9775
9815
|
},
|
9776
|
-
body:
|
9777
|
-
email:
|
9778
|
-
contactId:
|
9779
|
-
mailUserId:
|
9816
|
+
body: z126.object({
|
9817
|
+
email: z126.string(),
|
9818
|
+
contactId: z126.string(),
|
9819
|
+
mailUserId: z126.string()
|
9780
9820
|
}),
|
9781
9821
|
summary: "Add a new email of a mail room participant to an existing contact"
|
9782
9822
|
},
|
9783
9823
|
update: {
|
9784
9824
|
method: "PATCH",
|
9785
9825
|
path: "/:id",
|
9786
|
-
pathParams:
|
9787
|
-
id:
|
9826
|
+
pathParams: z126.object({
|
9827
|
+
id: z126.string()
|
9788
9828
|
}),
|
9789
9829
|
responses: {
|
9790
9830
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -9798,12 +9838,12 @@ var roomContract = initContract46().router(
|
|
9798
9838
|
markAsRead: {
|
9799
9839
|
method: "POST",
|
9800
9840
|
path: "/mark_as_read",
|
9801
|
-
body:
|
9802
|
-
id:
|
9841
|
+
body: z126.object({
|
9842
|
+
id: z126.string()
|
9803
9843
|
}),
|
9804
9844
|
responses: {
|
9805
9845
|
200: DefaultSuccessResponseSchema.extend({
|
9806
|
-
message:
|
9846
|
+
message: z126.string()
|
9807
9847
|
}),
|
9808
9848
|
...DefaultResponses
|
9809
9849
|
},
|
@@ -9812,8 +9852,8 @@ var roomContract = initContract46().router(
|
|
9812
9852
|
getById: {
|
9813
9853
|
method: "GET",
|
9814
9854
|
path: "/:id",
|
9815
|
-
pathParams:
|
9816
|
-
id:
|
9855
|
+
pathParams: z126.object({
|
9856
|
+
id: z126.string().uuid()
|
9817
9857
|
}),
|
9818
9858
|
responses: {
|
9819
9859
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -9830,78 +9870,78 @@ var roomContract = initContract46().router(
|
|
9830
9870
|
);
|
9831
9871
|
|
9832
9872
|
// src/mail/account-contract.ts
|
9833
|
-
import { initContract as
|
9834
|
-
import
|
9873
|
+
import { initContract as initContract48 } from "@ts-rest/core";
|
9874
|
+
import z128 from "zod";
|
9835
9875
|
|
9836
9876
|
// src/mail/schemas/account-validation.schema.ts
|
9837
|
-
import
|
9877
|
+
import z127 from "zod";
|
9838
9878
|
var AccountContractsValidationSchemas = {
|
9839
9879
|
create: {
|
9840
|
-
input:
|
9841
|
-
address:
|
9842
|
-
name:
|
9843
|
-
password:
|
9844
|
-
mailServerId:
|
9880
|
+
input: z127.object({
|
9881
|
+
address: z127.string().min(1, "Email address cannot be empty.").email("Invalid email address."),
|
9882
|
+
name: z127.string().min(1, "Account name cannot be empty."),
|
9883
|
+
password: z127.string().min(1, "Password cannot be empty."),
|
9884
|
+
mailServerId: z127.string().uuid("Invalid mail_server_id")
|
9845
9885
|
})
|
9846
9886
|
},
|
9847
9887
|
getById: {
|
9848
|
-
input:
|
9849
|
-
id:
|
9888
|
+
input: z127.object({
|
9889
|
+
id: z127.string().uuid()
|
9850
9890
|
}),
|
9851
9891
|
output: MailAccountSchema
|
9852
9892
|
},
|
9853
9893
|
getAll: {
|
9854
|
-
output:
|
9894
|
+
output: z127.array(MailAccountSchema)
|
9855
9895
|
},
|
9856
9896
|
update: {
|
9857
9897
|
input: MailAccountSchema,
|
9858
9898
|
output: MailAccountSchema
|
9859
9899
|
},
|
9860
9900
|
disconnect: {
|
9861
|
-
input:
|
9862
|
-
id:
|
9901
|
+
input: z127.object({
|
9902
|
+
id: z127.string().uuid()
|
9863
9903
|
}),
|
9864
9904
|
output: MailAccountSchema
|
9865
9905
|
},
|
9866
9906
|
reconnect: {
|
9867
|
-
input:
|
9868
|
-
id:
|
9907
|
+
input: z127.object({
|
9908
|
+
id: z127.string()
|
9869
9909
|
}),
|
9870
9910
|
output: MailAccountSchema
|
9871
9911
|
},
|
9872
9912
|
delete: {
|
9873
|
-
input:
|
9874
|
-
id:
|
9913
|
+
input: z127.object({
|
9914
|
+
id: z127.string()
|
9875
9915
|
}),
|
9876
|
-
output:
|
9916
|
+
output: z127.string()
|
9877
9917
|
},
|
9878
9918
|
deleteEmailEngineAcc: {
|
9879
|
-
input:
|
9880
|
-
account:
|
9919
|
+
input: z127.object({
|
9920
|
+
account: z127.string()
|
9881
9921
|
}),
|
9882
9922
|
output: MailAccountSchema
|
9883
9923
|
},
|
9884
9924
|
generateOAuth2AuthenticationLink: {
|
9885
|
-
body:
|
9886
|
-
oAuth2AppId:
|
9887
|
-
mailServerId:
|
9925
|
+
body: z127.object({
|
9926
|
+
oAuth2AppId: z127.string(),
|
9927
|
+
mailServerId: z127.string()
|
9888
9928
|
}),
|
9889
|
-
response:
|
9890
|
-
url:
|
9891
|
-
account:
|
9929
|
+
response: z127.object({
|
9930
|
+
url: z127.string(),
|
9931
|
+
account: z127.string()
|
9892
9932
|
})
|
9893
9933
|
},
|
9894
9934
|
createOAuth2Acc: {
|
9895
|
-
body:
|
9896
|
-
account:
|
9897
|
-
name:
|
9935
|
+
body: z127.object({
|
9936
|
+
account: z127.string(),
|
9937
|
+
name: z127.string()
|
9898
9938
|
}),
|
9899
9939
|
response: MailAccountSchema
|
9900
9940
|
}
|
9901
9941
|
};
|
9902
9942
|
|
9903
9943
|
// src/mail/account-contract.ts
|
9904
|
-
var accountContract =
|
9944
|
+
var accountContract = initContract48().router(
|
9905
9945
|
{
|
9906
9946
|
//#region ........register account
|
9907
9947
|
create: {
|
@@ -9912,14 +9952,14 @@ var accountContract = initContract47().router(
|
|
9912
9952
|
// data: AccountContractsValidationSchemas.create.output,
|
9913
9953
|
data: MailAccountSchema
|
9914
9954
|
}),
|
9915
|
-
400:
|
9916
|
-
message:
|
9955
|
+
400: z128.object({
|
9956
|
+
message: z128.string()
|
9917
9957
|
}),
|
9918
|
-
409:
|
9919
|
-
message:
|
9958
|
+
409: z128.object({
|
9959
|
+
message: z128.string()
|
9920
9960
|
}),
|
9921
|
-
500:
|
9922
|
-
message:
|
9961
|
+
500: z128.object({
|
9962
|
+
message: z128.string()
|
9923
9963
|
}),
|
9924
9964
|
...DefaultResponses
|
9925
9965
|
},
|
@@ -9935,14 +9975,14 @@ var accountContract = initContract47().router(
|
|
9935
9975
|
201: DefaultSuccessResponseSchema.extend({
|
9936
9976
|
data: AccountContractsValidationSchemas.generateOAuth2AuthenticationLink.response
|
9937
9977
|
}),
|
9938
|
-
400:
|
9939
|
-
message:
|
9978
|
+
400: z128.object({
|
9979
|
+
message: z128.string()
|
9940
9980
|
}),
|
9941
|
-
409:
|
9942
|
-
message:
|
9981
|
+
409: z128.object({
|
9982
|
+
message: z128.string()
|
9943
9983
|
}),
|
9944
|
-
500:
|
9945
|
-
message:
|
9984
|
+
500: z128.object({
|
9985
|
+
message: z128.string()
|
9946
9986
|
}),
|
9947
9987
|
...DefaultResponses
|
9948
9988
|
},
|
@@ -9956,7 +9996,7 @@ var accountContract = initContract47().router(
|
|
9956
9996
|
path: "/sync",
|
9957
9997
|
responses: {
|
9958
9998
|
200: DefaultSuccessResponseSchema.extend({
|
9959
|
-
message:
|
9999
|
+
message: z128.string()
|
9960
10000
|
}),
|
9961
10001
|
...DefaultResponses
|
9962
10002
|
},
|
@@ -9981,13 +10021,13 @@ var accountContract = initContract47().router(
|
|
9981
10021
|
getAll: {
|
9982
10022
|
method: "GET",
|
9983
10023
|
path: "",
|
9984
|
-
query:
|
9985
|
-
state:
|
9986
|
-
withDeleted:
|
10024
|
+
query: z128.object({
|
10025
|
+
state: z128.union([z128.literal("connected"), z128.literal("disconnected")]).optional(),
|
10026
|
+
withDeleted: z128.boolean().default(false)
|
9987
10027
|
}).optional(),
|
9988
10028
|
responses: {
|
9989
10029
|
200: DefaultSuccessResponseSchema.extend({
|
9990
|
-
data:
|
10030
|
+
data: z128.array(MailAccountSchema)
|
9991
10031
|
}),
|
9992
10032
|
...DefaultResponses
|
9993
10033
|
},
|
@@ -9998,8 +10038,8 @@ var accountContract = initContract47().router(
|
|
9998
10038
|
update: {
|
9999
10039
|
method: "PATCH",
|
10000
10040
|
path: "/:id",
|
10001
|
-
pathParams:
|
10002
|
-
id:
|
10041
|
+
pathParams: z128.object({
|
10042
|
+
id: z128.string().uuid()
|
10003
10043
|
}),
|
10004
10044
|
responses: {
|
10005
10045
|
201: DefaultSuccessResponseSchema.extend({
|
@@ -10048,7 +10088,7 @@ var accountContract = initContract47().router(
|
|
10048
10088
|
pathParams: AccountContractsValidationSchemas.delete.input,
|
10049
10089
|
responses: {
|
10050
10090
|
200: DefaultSuccessResponseSchema.extend({
|
10051
|
-
message:
|
10091
|
+
message: z128.string()
|
10052
10092
|
}),
|
10053
10093
|
...DefaultResponses
|
10054
10094
|
},
|
@@ -10063,7 +10103,7 @@ var accountContract = initContract47().router(
|
|
10063
10103
|
pathParams: AccountContractsValidationSchemas.deleteEmailEngineAcc.input,
|
10064
10104
|
responses: {
|
10065
10105
|
200: DefaultSuccessResponseSchema.extend({
|
10066
|
-
message:
|
10106
|
+
message: z128.string()
|
10067
10107
|
}),
|
10068
10108
|
...DefaultResponses
|
10069
10109
|
},
|
@@ -10091,25 +10131,25 @@ var accountContract = initContract47().router(
|
|
10091
10131
|
);
|
10092
10132
|
|
10093
10133
|
// src/mail/mail-server-contract.ts
|
10094
|
-
import { initContract as
|
10095
|
-
import
|
10134
|
+
import { initContract as initContract49 } from "@ts-rest/core";
|
10135
|
+
import z130 from "zod";
|
10096
10136
|
|
10097
10137
|
// src/mail/schemas/servers-validation.schema.ts
|
10098
|
-
import
|
10099
|
-
var CreateMailServerSchema =
|
10100
|
-
name:
|
10101
|
-
smtpHost:
|
10102
|
-
smtpPort:
|
10103
|
-
smtpTlsPort:
|
10104
|
-
useTlsForSmtp:
|
10105
|
-
imapHost:
|
10106
|
-
imapPort:
|
10107
|
-
imapTlsPort:
|
10108
|
-
useTlsForImap:
|
10138
|
+
import z129 from "zod";
|
10139
|
+
var CreateMailServerSchema = z129.object({
|
10140
|
+
name: z129.string(),
|
10141
|
+
smtpHost: z129.string(),
|
10142
|
+
smtpPort: z129.number(),
|
10143
|
+
smtpTlsPort: z129.number(),
|
10144
|
+
useTlsForSmtp: z129.boolean(),
|
10145
|
+
imapHost: z129.string(),
|
10146
|
+
imapPort: z129.number(),
|
10147
|
+
imapTlsPort: z129.number(),
|
10148
|
+
useTlsForImap: z129.boolean()
|
10109
10149
|
});
|
10110
10150
|
|
10111
10151
|
// src/mail/mail-server-contract.ts
|
10112
|
-
var serverContract =
|
10152
|
+
var serverContract = initContract49().router(
|
10113
10153
|
{
|
10114
10154
|
create: {
|
10115
10155
|
method: "POST",
|
@@ -10128,11 +10168,11 @@ var serverContract = initContract48().router(
|
|
10128
10168
|
path: "/oauth2/apps",
|
10129
10169
|
responses: {
|
10130
10170
|
200: DefaultSuccessResponseSchema.extend({
|
10131
|
-
data:
|
10132
|
-
total:
|
10133
|
-
pages:
|
10134
|
-
page:
|
10135
|
-
apps:
|
10171
|
+
data: z130.object({
|
10172
|
+
total: z130.number(),
|
10173
|
+
pages: z130.number(),
|
10174
|
+
page: z130.number(),
|
10175
|
+
apps: z130.array(OAuth2AppSchema)
|
10136
10176
|
})
|
10137
10177
|
}),
|
10138
10178
|
...DefaultResponses
|
@@ -10142,8 +10182,8 @@ var serverContract = initContract48().router(
|
|
10142
10182
|
getById: {
|
10143
10183
|
method: "GET",
|
10144
10184
|
path: "/:id",
|
10145
|
-
pathParams:
|
10146
|
-
id:
|
10185
|
+
pathParams: z130.object({
|
10186
|
+
id: z130.string().uuid()
|
10147
10187
|
}),
|
10148
10188
|
responses: {
|
10149
10189
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -10158,7 +10198,7 @@ var serverContract = initContract48().router(
|
|
10158
10198
|
path: "/",
|
10159
10199
|
responses: {
|
10160
10200
|
200: DefaultSuccessResponseSchema.extend({
|
10161
|
-
data:
|
10201
|
+
data: z130.array(MailServerSchema)
|
10162
10202
|
}),
|
10163
10203
|
...DefaultResponses
|
10164
10204
|
},
|
@@ -10167,8 +10207,8 @@ var serverContract = initContract48().router(
|
|
10167
10207
|
update: {
|
10168
10208
|
method: "PATCH",
|
10169
10209
|
path: "/:id",
|
10170
|
-
pathParams:
|
10171
|
-
id:
|
10210
|
+
pathParams: z130.object({
|
10211
|
+
id: z130.string().uuid()
|
10172
10212
|
}),
|
10173
10213
|
responses: {
|
10174
10214
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -10182,8 +10222,8 @@ var serverContract = initContract48().router(
|
|
10182
10222
|
delete: {
|
10183
10223
|
method: "DELETE",
|
10184
10224
|
path: "/:id",
|
10185
|
-
pathParams:
|
10186
|
-
id:
|
10225
|
+
pathParams: z130.object({
|
10226
|
+
id: z130.string().uuid()
|
10187
10227
|
}),
|
10188
10228
|
responses: {
|
10189
10229
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -10201,52 +10241,52 @@ var serverContract = initContract48().router(
|
|
10201
10241
|
);
|
10202
10242
|
|
10203
10243
|
// src/mail/message-contract.ts
|
10204
|
-
import { initContract as
|
10205
|
-
import
|
10244
|
+
import { initContract as initContract50 } from "@ts-rest/core";
|
10245
|
+
import z132 from "zod";
|
10206
10246
|
|
10207
10247
|
// src/mail/schemas/message-validation.schema.ts
|
10208
|
-
import
|
10209
|
-
var MailParticipant2 =
|
10210
|
-
name:
|
10211
|
-
address:
|
10248
|
+
import z131 from "zod";
|
10249
|
+
var MailParticipant2 = z131.object({
|
10250
|
+
name: z131.string().optional(),
|
10251
|
+
address: z131.string().email()
|
10212
10252
|
});
|
10213
10253
|
var MessageContractsValidationsSchema = {
|
10214
10254
|
submit: {
|
10215
|
-
input:
|
10216
|
-
subject:
|
10217
|
-
text:
|
10218
|
-
html:
|
10255
|
+
input: z131.object({
|
10256
|
+
subject: z131.string(),
|
10257
|
+
text: z131.string(),
|
10258
|
+
html: z131.string(),
|
10219
10259
|
from: MailParticipant2,
|
10220
10260
|
to: MailParticipant2,
|
10221
|
-
cc:
|
10222
|
-
bcc:
|
10223
|
-
sendAt:
|
10224
|
-
reference:
|
10225
|
-
messageId:
|
10226
|
-
action:
|
10261
|
+
cc: z131.array(MailParticipant2).optional(),
|
10262
|
+
bcc: z131.array(MailParticipant2).optional(),
|
10263
|
+
sendAt: z131.string().optional(),
|
10264
|
+
reference: z131.object({
|
10265
|
+
messageId: z131.string(),
|
10266
|
+
action: z131.union([z131.literal("reply"), z131.literal("forward")])
|
10227
10267
|
}).optional(),
|
10228
|
-
attachments:
|
10229
|
-
|
10230
|
-
fileType:
|
10231
|
-
fileName:
|
10232
|
-
fileKey:
|
10233
|
-
fileSize:
|
10234
|
-
bucketName:
|
10235
|
-
presignedUrl:
|
10268
|
+
attachments: z131.array(
|
10269
|
+
z131.object({
|
10270
|
+
fileType: z131.string(),
|
10271
|
+
fileName: z131.string(),
|
10272
|
+
fileKey: z131.string(),
|
10273
|
+
fileSize: z131.number(),
|
10274
|
+
bucketName: z131.string(),
|
10275
|
+
presignedUrl: z131.string()
|
10236
10276
|
})
|
10237
10277
|
).optional()
|
10238
10278
|
}),
|
10239
|
-
output:
|
10240
|
-
response:
|
10241
|
-
messageId:
|
10242
|
-
sendAt:
|
10243
|
-
queueId:
|
10279
|
+
output: z131.object({
|
10280
|
+
response: z131.string(),
|
10281
|
+
messageId: z131.string(),
|
10282
|
+
sendAt: z131.string(),
|
10283
|
+
queueId: z131.string()
|
10244
10284
|
})
|
10245
10285
|
}
|
10246
10286
|
};
|
10247
10287
|
|
10248
10288
|
// src/mail/message-contract.ts
|
10249
|
-
var messageContract =
|
10289
|
+
var messageContract = initContract50().router(
|
10250
10290
|
{
|
10251
10291
|
submit: {
|
10252
10292
|
method: "POST",
|
@@ -10269,8 +10309,8 @@ var messageContract = initContract49().router(
|
|
10269
10309
|
path: "/new_message_count",
|
10270
10310
|
responses: {
|
10271
10311
|
200: DefaultSuccessResponseSchema.extend({
|
10272
|
-
data:
|
10273
|
-
count:
|
10312
|
+
data: z132.object({
|
10313
|
+
count: z132.number()
|
10274
10314
|
})
|
10275
10315
|
}),
|
10276
10316
|
...DefaultResponses
|
@@ -10282,8 +10322,8 @@ var messageContract = initContract49().router(
|
|
10282
10322
|
getById: {
|
10283
10323
|
method: "GET",
|
10284
10324
|
path: "/:id",
|
10285
|
-
pathParams:
|
10286
|
-
id:
|
10325
|
+
pathParams: z132.object({
|
10326
|
+
id: z132.string()
|
10287
10327
|
}),
|
10288
10328
|
responses: {
|
10289
10329
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -10298,8 +10338,8 @@ var messageContract = initContract49().router(
|
|
10298
10338
|
update: {
|
10299
10339
|
method: "PATCH",
|
10300
10340
|
path: "/:id",
|
10301
|
-
pathParams:
|
10302
|
-
id:
|
10341
|
+
pathParams: z132.object({
|
10342
|
+
id: z132.string()
|
10303
10343
|
}),
|
10304
10344
|
responses: {
|
10305
10345
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -10315,8 +10355,8 @@ var messageContract = initContract49().router(
|
|
10315
10355
|
delete: {
|
10316
10356
|
method: "DELETE",
|
10317
10357
|
path: "/:id",
|
10318
|
-
pathParams:
|
10319
|
-
id:
|
10358
|
+
pathParams: z132.object({
|
10359
|
+
id: z132.string()
|
10320
10360
|
}),
|
10321
10361
|
responses: {
|
10322
10362
|
200: DefaultSuccessResponseSchema.extend({
|
@@ -10332,13 +10372,13 @@ var messageContract = initContract49().router(
|
|
10332
10372
|
cancelScheduledMessage: {
|
10333
10373
|
method: "DELETE",
|
10334
10374
|
path: "/scheduled_message/:id",
|
10335
|
-
pathParams:
|
10336
|
-
id:
|
10375
|
+
pathParams: z132.object({
|
10376
|
+
id: z132.string()
|
10337
10377
|
}),
|
10338
10378
|
responses: {
|
10339
10379
|
200: DefaultSuccessResponseSchema.extend({
|
10340
|
-
data:
|
10341
|
-
totalMessagesCount:
|
10380
|
+
data: z132.object({
|
10381
|
+
totalMessagesCount: z132.number()
|
10342
10382
|
})
|
10343
10383
|
}),
|
10344
10384
|
...DefaultResponses
|
@@ -10354,7 +10394,7 @@ var messageContract = initContract49().router(
|
|
10354
10394
|
);
|
10355
10395
|
|
10356
10396
|
// src/mail/mail-contract.ts
|
10357
|
-
var mailContract =
|
10397
|
+
var mailContract = initContract51().router({
|
10358
10398
|
room: roomContract,
|
10359
10399
|
message: messageContract,
|
10360
10400
|
account: accountContract,
|
@@ -10362,45 +10402,45 @@ var mailContract = initContract50().router({
|
|
10362
10402
|
});
|
10363
10403
|
|
10364
10404
|
// src/webchat/index.ts
|
10365
|
-
import { initContract as
|
10366
|
-
import
|
10405
|
+
import { initContract as initContract52 } from "@ts-rest/core";
|
10406
|
+
import z135 from "zod";
|
10367
10407
|
|
10368
10408
|
// src/webchat/schema.ts
|
10369
|
-
import
|
10409
|
+
import z134 from "zod";
|
10370
10410
|
|
10371
10411
|
// src/webchat/validation.ts
|
10372
|
-
import
|
10412
|
+
import z133 from "zod";
|
10373
10413
|
var ChatwootChannelType2 = /* @__PURE__ */ ((ChatwootChannelType3) => {
|
10374
10414
|
ChatwootChannelType3["WEB_WIDGET"] = "web_widget";
|
10375
10415
|
return ChatwootChannelType3;
|
10376
10416
|
})(ChatwootChannelType2 || {});
|
10377
|
-
var WebChatChannelSchema =
|
10378
|
-
avatar:
|
10379
|
-
name:
|
10380
|
-
type:
|
10381
|
-
websiteName:
|
10382
|
-
welcomeTitle:
|
10383
|
-
websiteUrl:
|
10384
|
-
welcomeTagline:
|
10385
|
-
agentAwayMessage:
|
10386
|
-
widgetColor:
|
10417
|
+
var WebChatChannelSchema = z133.object({
|
10418
|
+
avatar: z133.string().optional(),
|
10419
|
+
name: z133.string(),
|
10420
|
+
type: z133.nativeEnum(ChatwootChannelType2),
|
10421
|
+
websiteName: z133.string(),
|
10422
|
+
welcomeTitle: z133.string(),
|
10423
|
+
websiteUrl: z133.string().url(),
|
10424
|
+
welcomeTagline: z133.string().optional(),
|
10425
|
+
agentAwayMessage: z133.string().optional(),
|
10426
|
+
widgetColor: z133.string().optional()
|
10387
10427
|
});
|
10388
10428
|
|
10389
10429
|
// src/webchat/schema.ts
|
10390
|
-
var ConnectWebChatChannelSchema =
|
10391
|
-
name:
|
10392
|
-
actor:
|
10393
|
-
id:
|
10394
|
-
name:
|
10395
|
-
email:
|
10396
|
-
address:
|
10397
|
-
phone:
|
10430
|
+
var ConnectWebChatChannelSchema = z134.object({
|
10431
|
+
name: z134.string(),
|
10432
|
+
actor: z134.object({
|
10433
|
+
id: z134.string().uuid(),
|
10434
|
+
name: z134.string(),
|
10435
|
+
email: z134.string().email(),
|
10436
|
+
address: z134.string().nullable(),
|
10437
|
+
phone: z134.string().nullable()
|
10398
10438
|
}),
|
10399
10439
|
channel: WebChatChannelSchema
|
10400
10440
|
});
|
10401
10441
|
|
10402
10442
|
// src/webchat/index.ts
|
10403
|
-
var platformWebchatContract =
|
10443
|
+
var platformWebchatContract = initContract52().router(
|
10404
10444
|
{
|
10405
10445
|
sendMessage: {
|
10406
10446
|
method: "POST",
|
@@ -10428,8 +10468,8 @@ var platformWebchatContract = initContract51().router(
|
|
10428
10468
|
disconnectToService: {
|
10429
10469
|
method: "POST",
|
10430
10470
|
path: "/disconnect",
|
10431
|
-
body:
|
10432
|
-
id:
|
10471
|
+
body: z135.object({
|
10472
|
+
id: z135.string().uuid()
|
10433
10473
|
}),
|
10434
10474
|
responses: {
|
10435
10475
|
200: ChannelServiceResponseSchema,
|
@@ -10440,8 +10480,8 @@ var platformWebchatContract = initContract51().router(
|
|
10440
10480
|
reconnect: {
|
10441
10481
|
method: "POST",
|
10442
10482
|
path: "/reconnect/:channelId",
|
10443
|
-
pathParams:
|
10444
|
-
channelId:
|
10483
|
+
pathParams: z135.object({
|
10484
|
+
channelId: z135.string().uuid()
|
10445
10485
|
}),
|
10446
10486
|
body: null,
|
10447
10487
|
responses: {
|
@@ -10453,8 +10493,8 @@ var platformWebchatContract = initContract51().router(
|
|
10453
10493
|
delete: {
|
10454
10494
|
method: "DELETE",
|
10455
10495
|
path: "/delete/:channelId",
|
10456
|
-
pathParams:
|
10457
|
-
channelId:
|
10496
|
+
pathParams: z135.object({
|
10497
|
+
channelId: z135.string().uuid()
|
10458
10498
|
}),
|
10459
10499
|
body: null,
|
10460
10500
|
responses: {
|
@@ -10470,28 +10510,28 @@ var platformWebchatContract = initContract51().router(
|
|
10470
10510
|
);
|
10471
10511
|
|
10472
10512
|
// src/hold-label/index.ts
|
10473
|
-
import { initContract as
|
10474
|
-
import
|
10513
|
+
import { initContract as initContract53 } from "@ts-rest/core";
|
10514
|
+
import z137 from "zod";
|
10475
10515
|
|
10476
10516
|
// src/hold-label/validation.ts
|
10477
|
-
import
|
10478
|
-
var UpdatePositionSchema2 =
|
10479
|
-
holdLabels:
|
10480
|
-
|
10517
|
+
import z136 from "zod";
|
10518
|
+
var UpdatePositionSchema2 = z136.object({
|
10519
|
+
holdLabels: z136.array(
|
10520
|
+
z136.object({ id: z136.string().uuid(), position: z136.number() })
|
10481
10521
|
)
|
10482
10522
|
});
|
10483
|
-
var HoldRoomSchema =
|
10484
|
-
roomId:
|
10485
|
-
holdLabelId:
|
10523
|
+
var HoldRoomSchema = z136.object({
|
10524
|
+
roomId: z136.string().uuid(),
|
10525
|
+
holdLabelId: z136.string().uuid()
|
10486
10526
|
});
|
10487
10527
|
|
10488
10528
|
// src/hold-label/index.ts
|
10489
|
-
var holdLabelContract =
|
10529
|
+
var holdLabelContract = initContract53().router(
|
10490
10530
|
{
|
10491
10531
|
createHoldLabel: {
|
10492
10532
|
method: "POST",
|
10493
10533
|
path: "/",
|
10494
|
-
body:
|
10534
|
+
body: z137.object({ name: z137.string() }),
|
10495
10535
|
responses: {
|
10496
10536
|
201: DefaultSuccessResponseSchema.extend({
|
10497
10537
|
holdLabel: HoldLabelSchema
|
@@ -10503,7 +10543,7 @@ var holdLabelContract = initContract52().router(
|
|
10503
10543
|
path: "/",
|
10504
10544
|
responses: {
|
10505
10545
|
200: DefaultSuccessResponseSchema.extend({
|
10506
|
-
holdLabels:
|
10546
|
+
holdLabels: z137.array(HoldLabelSchema)
|
10507
10547
|
})
|
10508
10548
|
}
|
10509
10549
|
},
|
@@ -10521,8 +10561,8 @@ var holdLabelContract = initContract52().router(
|
|
10521
10561
|
updateHoldLabel: {
|
10522
10562
|
method: "PATCH",
|
10523
10563
|
path: "/:id",
|
10524
|
-
pathParams:
|
10525
|
-
body:
|
10564
|
+
pathParams: z137.object({ id: z137.string().uuid() }),
|
10565
|
+
body: z137.object({ name: z137.string() }),
|
10526
10566
|
responses: {
|
10527
10567
|
200: DefaultSuccessResponseSchema.extend({
|
10528
10568
|
holdLabel: HoldLabelSchema
|
@@ -10532,7 +10572,7 @@ var holdLabelContract = initContract52().router(
|
|
10532
10572
|
deleteHoldLabel: {
|
10533
10573
|
method: "DELETE",
|
10534
10574
|
path: "/:id",
|
10535
|
-
pathParams:
|
10575
|
+
pathParams: z137.object({ id: z137.string().uuid() }),
|
10536
10576
|
body: null,
|
10537
10577
|
responses: {
|
10538
10578
|
200: DefaultSuccessResponseSchema
|
@@ -10543,10 +10583,10 @@ var holdLabelContract = initContract52().router(
|
|
10543
10583
|
path: "/auto-unhold",
|
10544
10584
|
responses: {
|
10545
10585
|
200: DefaultSuccessResponseSchema.extend({
|
10546
|
-
autoUnhold:
|
10547
|
-
resumeLabel:
|
10548
|
-
show:
|
10549
|
-
name:
|
10586
|
+
autoUnhold: z137.boolean(),
|
10587
|
+
resumeLabel: z137.object({
|
10588
|
+
show: z137.boolean(),
|
10589
|
+
name: z137.string()
|
10550
10590
|
})
|
10551
10591
|
})
|
10552
10592
|
}
|
@@ -10554,19 +10594,19 @@ var holdLabelContract = initContract52().router(
|
|
10554
10594
|
updateAutoUnhold: {
|
10555
10595
|
method: "POST",
|
10556
10596
|
path: "/auto-unhold",
|
10557
|
-
body:
|
10558
|
-
autoUnhold:
|
10559
|
-
resumeLabel:
|
10560
|
-
show:
|
10561
|
-
name:
|
10597
|
+
body: z137.object({
|
10598
|
+
autoUnhold: z137.boolean().optional(),
|
10599
|
+
resumeLabel: z137.object({
|
10600
|
+
show: z137.boolean().optional(),
|
10601
|
+
name: z137.string().optional()
|
10562
10602
|
}).optional()
|
10563
10603
|
}),
|
10564
10604
|
responses: {
|
10565
10605
|
200: DefaultSuccessResponseSchema.extend({
|
10566
|
-
autoUnhold:
|
10567
|
-
resumeLabel:
|
10568
|
-
show:
|
10569
|
-
name:
|
10606
|
+
autoUnhold: z137.boolean(),
|
10607
|
+
resumeLabel: z137.object({
|
10608
|
+
show: z137.boolean(),
|
10609
|
+
name: z137.string()
|
10570
10610
|
})
|
10571
10611
|
})
|
10572
10612
|
}
|
@@ -10574,10 +10614,10 @@ var holdLabelContract = initContract52().router(
|
|
10574
10614
|
getHoldLogs: {
|
10575
10615
|
method: "GET",
|
10576
10616
|
path: "/hold-logs",
|
10577
|
-
query:
|
10617
|
+
query: z137.object({ cxLogId: z137.string().uuid() }),
|
10578
10618
|
responses: {
|
10579
|
-
200:
|
10580
|
-
holdLogs:
|
10619
|
+
200: z137.object({
|
10620
|
+
holdLogs: z137.array(FormattedHoldLogSchema)
|
10581
10621
|
})
|
10582
10622
|
}
|
10583
10623
|
},
|
@@ -10594,7 +10634,7 @@ var holdLabelContract = initContract52().router(
|
|
10594
10634
|
unholdRoom: {
|
10595
10635
|
method: "POST",
|
10596
10636
|
path: "/unhold-room",
|
10597
|
-
body:
|
10637
|
+
body: z137.object({ roomId: z137.string().uuid() }),
|
10598
10638
|
responses: {
|
10599
10639
|
200: DefaultSuccessResponseSchema.extend({
|
10600
10640
|
holdLog: HoldLogSchema.optional()
|
@@ -10606,94 +10646,94 @@ var holdLabelContract = initContract52().router(
|
|
10606
10646
|
);
|
10607
10647
|
|
10608
10648
|
// src/subscription/index.ts
|
10609
|
-
import { initContract as
|
10610
|
-
import { z as
|
10649
|
+
import { initContract as initContract54 } from "@ts-rest/core";
|
10650
|
+
import { z as z140 } from "zod";
|
10611
10651
|
|
10612
10652
|
// src/subscription/schema.ts
|
10613
|
-
import
|
10653
|
+
import z138 from "zod";
|
10614
10654
|
var ProductPriceSchema = DefaultEntitySchema.extend({
|
10615
|
-
priceId:
|
10616
|
-
name:
|
10617
|
-
perUnit:
|
10618
|
-
price:
|
10619
|
-
currency:
|
10655
|
+
priceId: z138.string(),
|
10656
|
+
name: z138.string().nullable(),
|
10657
|
+
perUnit: z138.number(),
|
10658
|
+
price: z138.number(),
|
10659
|
+
currency: z138.string().nullable()
|
10620
10660
|
});
|
10621
10661
|
var ProductWithoutRelatedSchema = DefaultEntitySchema.extend({
|
10622
|
-
provider:
|
10623
|
-
productId:
|
10624
|
-
name:
|
10625
|
-
type:
|
10626
|
-
omnichannel:
|
10627
|
-
usageType:
|
10662
|
+
provider: z138.string(),
|
10663
|
+
productId: z138.string(),
|
10664
|
+
name: z138.string(),
|
10665
|
+
type: z138.string(),
|
10666
|
+
omnichannel: z138.string(),
|
10667
|
+
usageType: z138.string().nullable(),
|
10628
10668
|
productPrice: ProductPriceSchema
|
10629
10669
|
});
|
10630
10670
|
var RelatedProductSchema = DefaultEntitySchema.extend({
|
10631
|
-
includedQuantity:
|
10671
|
+
includedQuantity: z138.number(),
|
10632
10672
|
product: ProductWithoutRelatedSchema
|
10633
10673
|
});
|
10634
10674
|
var ProductSchema = DefaultEntitySchema.extend({
|
10635
|
-
provider:
|
10636
|
-
productId:
|
10637
|
-
name:
|
10638
|
-
type:
|
10639
|
-
omnichannel:
|
10640
|
-
usageType:
|
10675
|
+
provider: z138.string(),
|
10676
|
+
productId: z138.string(),
|
10677
|
+
name: z138.string(),
|
10678
|
+
type: z138.string(),
|
10679
|
+
omnichannel: z138.string(),
|
10680
|
+
usageType: z138.string().nullable(),
|
10641
10681
|
productPrice: ProductPriceSchema,
|
10642
|
-
relatedProducts:
|
10682
|
+
relatedProducts: z138.array(RelatedProductSchema)
|
10643
10683
|
});
|
10644
10684
|
var CustomerSchema = DefaultEntitySchema.extend({
|
10645
|
-
provider:
|
10646
|
-
customerId:
|
10647
|
-
email:
|
10648
|
-
name:
|
10649
|
-
balance:
|
10685
|
+
provider: z138.string(),
|
10686
|
+
customerId: z138.string(),
|
10687
|
+
email: z138.string(),
|
10688
|
+
name: z138.string(),
|
10689
|
+
balance: z138.number()
|
10650
10690
|
});
|
10651
10691
|
var SubscriptionProuctSchema = DefaultEntitySchema.extend({
|
10652
|
-
limit:
|
10653
|
-
subscriptionItemId:
|
10654
|
-
usage:
|
10692
|
+
limit: z138.number(),
|
10693
|
+
subscriptionItemId: z138.string(),
|
10694
|
+
usage: z138.number().nullable(),
|
10655
10695
|
product: ProductSchema
|
10656
10696
|
});
|
10657
10697
|
var SubscriptionSchema = DefaultEntitySchema.extend({
|
10658
|
-
provider:
|
10659
|
-
type:
|
10660
|
-
subscriptionId:
|
10661
|
-
interval:
|
10662
|
-
quantity:
|
10663
|
-
amount:
|
10664
|
-
startAt:
|
10665
|
-
expireAt:
|
10666
|
-
status:
|
10667
|
-
name:
|
10668
|
-
subscriptionProducts:
|
10698
|
+
provider: z138.string(),
|
10699
|
+
type: z138.string(),
|
10700
|
+
subscriptionId: z138.string(),
|
10701
|
+
interval: z138.string(),
|
10702
|
+
quantity: z138.number(),
|
10703
|
+
amount: z138.number(),
|
10704
|
+
startAt: z138.date().nullable(),
|
10705
|
+
expireAt: z138.date(),
|
10706
|
+
status: z138.string(),
|
10707
|
+
name: z138.string().nullable(),
|
10708
|
+
subscriptionProducts: z138.array(SubscriptionProuctSchema),
|
10669
10709
|
productPrice: ProductPriceSchema,
|
10670
10710
|
product: ProductSchema
|
10671
10711
|
});
|
10672
10712
|
|
10673
10713
|
// src/subscription/validation.ts
|
10674
|
-
import { z as
|
10675
|
-
var GetAvailablePlanSchema =
|
10676
|
-
type:
|
10677
|
-
currency:
|
10678
|
-
});
|
10679
|
-
var UpdateSubscriptionSchema =
|
10680
|
-
planProductId:
|
10681
|
-
planProductPriceId:
|
10682
|
-
subscriptionId:
|
10683
|
-
subscriptionProducts:
|
10684
|
-
|
10685
|
-
productId:
|
10686
|
-
productPriceId:
|
10687
|
-
quantity:
|
10714
|
+
import { z as z139 } from "zod";
|
10715
|
+
var GetAvailablePlanSchema = z139.object({
|
10716
|
+
type: z139.string(),
|
10717
|
+
currency: z139.string()
|
10718
|
+
});
|
10719
|
+
var UpdateSubscriptionSchema = z139.object({
|
10720
|
+
planProductId: z139.string(),
|
10721
|
+
planProductPriceId: z139.string(),
|
10722
|
+
subscriptionId: z139.string(),
|
10723
|
+
subscriptionProducts: z139.array(
|
10724
|
+
z139.object({
|
10725
|
+
productId: z139.string(),
|
10726
|
+
productPriceId: z139.string(),
|
10727
|
+
quantity: z139.number()
|
10688
10728
|
})
|
10689
10729
|
)
|
10690
10730
|
});
|
10691
|
-
var TopUpBalanceSchema =
|
10692
|
-
quantity:
|
10731
|
+
var TopUpBalanceSchema = z139.object({
|
10732
|
+
quantity: z139.number()
|
10693
10733
|
});
|
10694
10734
|
|
10695
10735
|
// src/subscription/index.ts
|
10696
|
-
var subscriptionContract =
|
10736
|
+
var subscriptionContract = initContract54().router(
|
10697
10737
|
{
|
10698
10738
|
getSubscription: {
|
10699
10739
|
method: "GET",
|
@@ -10713,9 +10753,9 @@ var subscriptionContract = initContract53().router(
|
|
10713
10753
|
body: UpdateSubscriptionSchema,
|
10714
10754
|
responses: {
|
10715
10755
|
200: DefaultSuccessResponseSchema.extend({
|
10716
|
-
message:
|
10717
|
-
requireCheckout:
|
10718
|
-
checkoutUrl:
|
10756
|
+
message: z140.string(),
|
10757
|
+
requireCheckout: z140.boolean(),
|
10758
|
+
checkoutUrl: z140.string().nullable()
|
10719
10759
|
}),
|
10720
10760
|
402: DefaultErrorResponseSchema,
|
10721
10761
|
500: DefaultErrorResponseSchema
|
@@ -10727,7 +10767,7 @@ var subscriptionContract = initContract53().router(
|
|
10727
10767
|
body: TopUpBalanceSchema,
|
10728
10768
|
responses: {
|
10729
10769
|
200: DefaultSuccessResponseSchema.extend({
|
10730
|
-
checkoutUrl:
|
10770
|
+
checkoutUrl: z140.string()
|
10731
10771
|
}),
|
10732
10772
|
500: DefaultErrorResponseSchema
|
10733
10773
|
}
|
@@ -10738,7 +10778,7 @@ var subscriptionContract = initContract53().router(
|
|
10738
10778
|
query: GetAvailablePlanSchema,
|
10739
10779
|
responses: {
|
10740
10780
|
200: DefaultSuccessResponseSchema.extend({
|
10741
|
-
data:
|
10781
|
+
data: z140.array(ProductSchema)
|
10742
10782
|
}),
|
10743
10783
|
500: DefaultErrorResponseSchema
|
10744
10784
|
}
|
@@ -10760,20 +10800,20 @@ var subscriptionContract = initContract53().router(
|
|
10760
10800
|
);
|
10761
10801
|
|
10762
10802
|
// src/cx-intelligence/index.ts
|
10763
|
-
import { initContract as
|
10764
|
-
import
|
10765
|
-
var cxIntelligenceContract =
|
10803
|
+
import { initContract as initContract55 } from "@ts-rest/core";
|
10804
|
+
import z141 from "zod";
|
10805
|
+
var cxIntelligenceContract = initContract55().router(
|
10766
10806
|
{
|
10767
10807
|
toggle: {
|
10768
10808
|
method: "POST",
|
10769
10809
|
path: "/toggle",
|
10770
10810
|
headers: DefaultHeaderSchema,
|
10771
|
-
body:
|
10772
|
-
enabled:
|
10811
|
+
body: z141.object({
|
10812
|
+
enabled: z141.union([z141.literal(true), z141.literal(false)])
|
10773
10813
|
}),
|
10774
10814
|
responses: {
|
10775
10815
|
200: DefaultSuccessResponseSchema.extend({
|
10776
|
-
message:
|
10816
|
+
message: z141.string()
|
10777
10817
|
}),
|
10778
10818
|
500: DefaultErrorResponseSchema
|
10779
10819
|
},
|
@@ -10783,15 +10823,15 @@ var cxIntelligenceContract = initContract54().router(
|
|
10783
10823
|
method: "POST",
|
10784
10824
|
path: "/cx-logs/:id/transcribe",
|
10785
10825
|
headers: DefaultHeaderSchema,
|
10786
|
-
pathParams:
|
10787
|
-
id:
|
10826
|
+
pathParams: z141.object({
|
10827
|
+
id: z141.string().uuid()
|
10788
10828
|
}),
|
10789
|
-
body:
|
10790
|
-
fileUrl:
|
10829
|
+
body: z141.object({
|
10830
|
+
fileUrl: z141.string()
|
10791
10831
|
}),
|
10792
10832
|
responses: {
|
10793
10833
|
200: DefaultSuccessResponseSchema.extend({
|
10794
|
-
message:
|
10834
|
+
message: z141.string()
|
10795
10835
|
}),
|
10796
10836
|
403: DefaultErrorResponseSchema,
|
10797
10837
|
404: DefaultErrorResponseSchema,
|
@@ -10803,7 +10843,7 @@ var cxIntelligenceContract = initContract54().router(
|
|
10803
10843
|
},
|
10804
10844
|
{ pathPrefix: "cx-intelligence" }
|
10805
10845
|
);
|
10806
|
-
var settingCxIntelligenceContract =
|
10846
|
+
var settingCxIntelligenceContract = initContract55().router(
|
10807
10847
|
{
|
10808
10848
|
checkStatus: {
|
10809
10849
|
method: "GET",
|
@@ -10811,13 +10851,13 @@ var settingCxIntelligenceContract = initContract54().router(
|
|
10811
10851
|
headers: DefaultHeaderSchema,
|
10812
10852
|
responses: {
|
10813
10853
|
200: DefaultSuccessResponseSchema.extend({
|
10814
|
-
message:
|
10815
|
-
status:
|
10854
|
+
message: z141.string(),
|
10855
|
+
status: z141.boolean()
|
10816
10856
|
}),
|
10817
|
-
422:
|
10818
|
-
requestId:
|
10819
|
-
message:
|
10820
|
-
status:
|
10857
|
+
422: z141.object({
|
10858
|
+
requestId: z141.string(),
|
10859
|
+
message: z141.string(),
|
10860
|
+
status: z141.boolean()
|
10821
10861
|
}),
|
10822
10862
|
500: DefaultErrorResponseSchema
|
10823
10863
|
},
|
@@ -10828,21 +10868,21 @@ var settingCxIntelligenceContract = initContract54().router(
|
|
10828
10868
|
);
|
10829
10869
|
|
10830
10870
|
// src/export/index.ts
|
10831
|
-
import { initContract as
|
10832
|
-
import
|
10833
|
-
var exportContract =
|
10871
|
+
import { initContract as initContract56 } from "@ts-rest/core";
|
10872
|
+
import z142 from "zod";
|
10873
|
+
var exportContract = initContract56().router(
|
10834
10874
|
{
|
10835
10875
|
notifyExport: {
|
10836
10876
|
method: "POST",
|
10837
10877
|
path: "notify",
|
10838
|
-
body:
|
10839
|
-
userId:
|
10840
|
-
module:
|
10841
|
-
fileUrl:
|
10878
|
+
body: z142.object({
|
10879
|
+
userId: z142.string().uuid(),
|
10880
|
+
module: z142.string(),
|
10881
|
+
fileUrl: z142.string()
|
10842
10882
|
}),
|
10843
10883
|
responses: {
|
10844
10884
|
200: DefaultSuccessResponseSchema.extend({
|
10845
|
-
success:
|
10885
|
+
success: z142.boolean()
|
10846
10886
|
}),
|
10847
10887
|
500: DefaultErrorResponseSchema
|
10848
10888
|
}
|
@@ -10888,6 +10928,7 @@ export {
|
|
10888
10928
|
generalTagSettingContract,
|
10889
10929
|
holdLabelContract,
|
10890
10930
|
initiateMessageContract,
|
10931
|
+
invoiceContract,
|
10891
10932
|
mailContract,
|
10892
10933
|
mainChatContract,
|
10893
10934
|
mainChatMessageContract,
|