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