@kl1/contracts 1.3.37 → 1.3.38

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
@@ -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()
@@ -8819,6 +8828,20 @@ var presenceStatusContract = initContract41().router(
8819
8828
  500: DefaultErrorResponseSchema
8820
8829
  },
8821
8830
  summary: "Delete a presence status."
8831
+ },
8832
+ getAllUserPresenceStatus: {
8833
+ method: "GET",
8834
+ path: "/user",
8835
+ headers: DefaultHeaderSchema,
8836
+ responses: {
8837
+ 200: z113.array(UserPresenceStatusSchema),
8838
+ 400: z113.object({
8839
+ message: z113.string()
8840
+ }),
8841
+ 401: DefaultUnauthorizedSchema,
8842
+ 500: DefaultErrorResponseSchema
8843
+ },
8844
+ summary: "Get all users presence status"
8822
8845
  }
8823
8846
  },
8824
8847
  { pathPrefix: "ms/presence_status" }