@atomic-solutions/wordpress-api-client 0.1.0 → 0.1.2

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.
@@ -692,28 +692,6 @@ var setupErrorInterceptor = (axiosInstance, config, client) => {
692
692
  }
693
693
  );
694
694
  };
695
- var paginationParamsSchema = z.object({
696
- /** Current page number */
697
- page: z.number().int().positive().optional(),
698
- /** Items per page */
699
- per_page: z.number().int().positive().max(100).optional(),
700
- /** Offset for pagination */
701
- offset: z.number().int().nonnegative().optional(),
702
- /** Sort order */
703
- order: z.enum(["asc", "desc"]).optional(),
704
- /** Field to sort by */
705
- orderby: z.string().optional()
706
- });
707
- z.object({
708
- /** Total number of items */
709
- total: z.number(),
710
- /** Total number of pages */
711
- totalPages: z.number(),
712
- /** Current page */
713
- currentPage: z.number(),
714
- /** Items per page */
715
- perPage: z.number()
716
- });
717
695
  z.object({
718
696
  username: z.string(),
719
697
  password: z.string()
@@ -789,6 +767,28 @@ z.object({
789
767
  link: z.string(),
790
768
  _links: HalLinksSchema.optional()
791
769
  });
770
+ var paginationParamsSchema = z.object({
771
+ /** Current page number */
772
+ page: z.number().int().positive().optional(),
773
+ /** Items per page */
774
+ per_page: z.number().int().positive().max(100).optional(),
775
+ /** Offset for pagination */
776
+ offset: z.number().int().nonnegative().optional(),
777
+ /** Sort order */
778
+ order: z.enum(["asc", "desc"]).optional(),
779
+ /** Field to sort by */
780
+ orderby: z.string().optional()
781
+ });
782
+ z.object({
783
+ /** Total number of items */
784
+ total: z.number(),
785
+ /** Total number of pages */
786
+ totalPages: z.number(),
787
+ /** Current page */
788
+ currentPage: z.number(),
789
+ /** Items per page */
790
+ perPage: z.number()
791
+ });
792
792
  var CategorySchema = z.object({
793
793
  id: z.number(),
794
794
  count: z.number(),