@kl1/contracts 1.1.4-uat → 1.1.5-uat

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -4179,6 +4179,7 @@ var RoomContractsValidationSchema = {
4179
4179
  page: z59.coerce.number().default(1),
4180
4180
  pageSize: z59.coerce.number().default(10),
4181
4181
  keyword: z59.string().optional(),
4182
+ contactLabels: z59.array(z59.string()).optional(),
4182
4183
  level1: z59.union([
4183
4184
  z59.literal("open"),
4184
4185
  z59.literal("close"),
@@ -4401,6 +4402,18 @@ var accountContract = initContract19().router(
4401
4402
  summary: "Register a new mail account"
4402
4403
  },
4403
4404
  //#endregion register account
4405
+ //#region ........sync all accounts
4406
+ sync: {
4407
+ method: "GET",
4408
+ path: "/sync",
4409
+ responses: {
4410
+ 200: DefaultSuccessResponseSchema.extend({
4411
+ message: z62.string()
4412
+ }),
4413
+ ...DefaultResponses
4414
+ },
4415
+ summary: "Sync all accounts state from email engine to system"
4416
+ },
4404
4417
  //#region ........get account
4405
4418
  getById: {
4406
4419
  method: "GET",
@@ -4412,14 +4425,17 @@ var accountContract = initContract19().router(
4412
4425
  }),
4413
4426
  ...DefaultResponses
4414
4427
  },
4415
- summary: "Get a account by id"
4428
+ summary: "Get an account by id"
4416
4429
  },
4417
4430
  //#endregion get account
4431
+ //#endregion sync all accountss
4418
4432
  //#region ........get all account
4419
- //TODO: add pagination parameters
4420
4433
  getAll: {
4421
4434
  method: "GET",
4422
4435
  path: "",
4436
+ query: z62.object({
4437
+ state: z62.union([z62.literal("connected"), z62.literal("disconnected")]).optional()
4438
+ }).optional(),
4423
4439
  responses: {
4424
4440
  200: DefaultSuccessResponseSchema.extend({
4425
4441
  data: z62.array(MailAccountSchema)