@kl1/contracts 1.3.37 → 1.3.39

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -5802,9 +5802,18 @@ var PresenceStatusSchema = z72.object({
5802
5802
  emoji: z72.string().nullable(),
5803
5803
  presenceStatusOption: z72.array(TPresenceStatusOption)
5804
5804
  });
5805
+ var UserPresenceStatusSchema = z72.object({
5806
+ id: z72.string().uuid(),
5807
+ createdAt: z72.date(),
5808
+ updatedAt: z72.date(),
5809
+ deletedAt: z72.date().nullable(),
5810
+ userId: z72.string(),
5811
+ user: UserSchema,
5812
+ presenceStatus: PresenceStatusSchema
5813
+ });
5805
5814
 
5806
5815
  // src/telephony-agent-presence-status/schema.ts
5807
- var UserPresenceStatusSchema = DefaultEntitySchema.extend({
5816
+ var UserPresenceStatusSchema2 = DefaultEntitySchema.extend({
5808
5817
  user: UserSchema,
5809
5818
  presenceStatus: PresenceStatusSchema
5810
5819
  });
@@ -5826,7 +5835,7 @@ var telephonyAgentPresenceStatusContract = initContract23().router(
5826
5835
  pathParams: z74.object({ userId: z74.string() }),
5827
5836
  headers: DefaultHeaderSchema,
5828
5837
  responses: {
5829
- 200: UserPresenceStatusSchema,
5838
+ 200: UserPresenceStatusSchema2,
5830
5839
  400: z74.object({
5831
5840
  message: z74.string()
5832
5841
  }),
@@ -5842,7 +5851,7 @@ var telephonyAgentPresenceStatusContract = initContract23().router(
5842
5851
  body: UpdateUserStatusSchema,
5843
5852
  responses: {
5844
5853
  200: DefaultSuccessResponseSchema.extend({
5845
- userPresenceStatu: UserPresenceStatusSchema
5854
+ userPresenceStatu: UserPresenceStatusSchema2
5846
5855
  }),
5847
5856
  400: z74.object({
5848
5857
  message: z74.string()
@@ -8750,6 +8759,20 @@ var presenceStatusContract = initContract41().router(
8750
8759
  },
8751
8760
  summary: "Get all presence status list."
8752
8761
  },
8762
+ getAllUserPresenceStatus: {
8763
+ method: "GET",
8764
+ path: "/ps/user-presence-status",
8765
+ headers: DefaultHeaderSchema,
8766
+ responses: {
8767
+ 200: z113.array(UserPresenceStatusSchema),
8768
+ 400: z113.object({
8769
+ message: z113.string()
8770
+ }),
8771
+ 401: DefaultUnauthorizedSchema,
8772
+ 500: DefaultErrorResponseSchema
8773
+ },
8774
+ summary: "Get all users presence status"
8775
+ },
8753
8776
  createPresenceStatus: {
8754
8777
  method: "POST",
8755
8778
  path: "",