@_henriquewilson/gabirubi-domain 1.0.85 → 1.0.87

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.
@@ -246,8 +246,8 @@ declare const VolumeSchema: z.ZodObject<z.objectUtil.extendShape<{
246
246
  }>, "strip", z.ZodTypeAny, {
247
247
  length: string;
248
248
  weight: string;
249
- height: string;
250
249
  width: string;
250
+ height: string;
251
251
  diameter: string;
252
252
  format: string;
253
253
  created_at: string;
@@ -259,8 +259,8 @@ declare const VolumeSchema: z.ZodObject<z.objectUtil.extendShape<{
259
259
  }, {
260
260
  length: string;
261
261
  weight: string;
262
- height: string;
263
262
  width: string;
263
+ height: string;
264
264
  diameter: string;
265
265
  format: string;
266
266
  created_at: string;
@@ -340,6 +340,8 @@ declare const ServiceSchema: z.ZodObject<z.objectUtil.extendShape<{
340
340
  createAt?: unknown;
341
341
  updateAt?: unknown;
342
342
  }>;
343
+ declare const OrderStatusSchema: z.ZodEnum<["pending", "released", "posted", "delivered", "canceled", "not Delivered"]>;
344
+ type OrderStatus = z.infer<typeof OrderStatusSchema>;
343
345
  declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
344
346
  id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
345
347
  order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -356,7 +358,7 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
356
358
  discount: z.ZodNumber;
357
359
  delivery_min: z.ZodNumber;
358
360
  delivery_max: z.ZodNumber;
359
- status: z.ZodString;
361
+ status: z.ZodEnum<["pending", "released", "posted", "delivered", "canceled", "not Delivered"]>;
360
362
  reminder: z.ZodAny;
361
363
  insurance_value: z.ZodNumber;
362
364
  weight: z.ZodAny;
@@ -684,8 +686,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
684
686
  }>, "strip", z.ZodTypeAny, {
685
687
  length: string;
686
688
  weight: string;
687
- height: string;
688
689
  width: string;
690
+ height: string;
689
691
  diameter: string;
690
692
  format: string;
691
693
  created_at: string;
@@ -697,8 +699,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
697
699
  }, {
698
700
  length: string;
699
701
  weight: string;
700
- height: string;
701
702
  width: string;
703
+ height: string;
702
704
  diameter: string;
703
705
  format: string;
704
706
  created_at: string;
@@ -711,7 +713,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
711
713
  freight_arrangements: z.ZodArray<z.ZodAny, "many">;
712
714
  }>, "strip", z.ZodTypeAny, {
713
715
  reverse: number;
714
- status: string;
716
+ status: "pending" | "released" | "posted" | "delivered" | "canceled" | "not Delivered";
717
+ insurance_value: number;
715
718
  discount: number;
716
719
  format: string;
717
720
  created_at: string;
@@ -724,7 +727,6 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
724
727
  price: number;
725
728
  delivery_min: number;
726
729
  delivery_max: number;
727
- insurance_value: number;
728
730
  billed_weight: number;
729
731
  receipt: boolean;
730
732
  own_hand: boolean;
@@ -828,8 +830,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
828
830
  volumes: {
829
831
  length: string;
830
832
  weight: string;
831
- height: string;
832
833
  width: string;
834
+ height: string;
833
835
  diameter: string;
834
836
  format: string;
835
837
  created_at: string;
@@ -846,8 +848,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
846
848
  createAt?: FirebaseFirestore.Timestamp | undefined;
847
849
  updateAt?: FirebaseFirestore.Timestamp | undefined;
848
850
  weight?: any;
849
- height?: any;
850
851
  width?: any;
852
+ height?: any;
851
853
  diameter?: any;
852
854
  coupon?: any;
853
855
  reminder?: any;
@@ -866,7 +868,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
866
868
  conciliation?: any;
867
869
  }, {
868
870
  reverse: number;
869
- status: string;
871
+ status: "pending" | "released" | "posted" | "delivered" | "canceled" | "not Delivered";
872
+ insurance_value: number;
870
873
  discount: number;
871
874
  format: string;
872
875
  created_at: string;
@@ -879,7 +882,6 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
879
882
  price: number;
880
883
  delivery_min: number;
881
884
  delivery_max: number;
882
- insurance_value: number;
883
885
  billed_weight: number;
884
886
  receipt: boolean;
885
887
  own_hand: boolean;
@@ -983,8 +985,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
983
985
  volumes: {
984
986
  length: string;
985
987
  weight: string;
986
- height: string;
987
988
  width: string;
989
+ height: string;
988
990
  diameter: string;
989
991
  format: string;
990
992
  created_at: string;
@@ -1001,8 +1003,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
1001
1003
  createAt?: unknown;
1002
1004
  updateAt?: unknown;
1003
1005
  weight?: any;
1004
- height?: any;
1005
1006
  width?: any;
1007
+ height?: any;
1006
1008
  diameter?: any;
1007
1009
  coupon?: any;
1008
1010
  reminder?: any;
@@ -1020,6 +1022,10 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
1020
1022
  invoice?: any;
1021
1023
  conciliation?: any;
1022
1024
  }>;
1025
+ declare const statusPriority: {
1026
+ [key in OrderStatus]: number;
1027
+ };
1028
+ declare const compareStatus: (statusA: OrderStatus, statusB: OrderStatus) => number;
1023
1029
  type MelhorEnvioOrder = z.infer<typeof MelhorEnvioOrderSchema>;
1024
1030
  type MelhorEnvioOrderProduct = z.infer<typeof ProductSchema>;
1025
1031
  type MelhorEnvioOrderVolume = z.infer<typeof VolumeSchema>;
@@ -1029,4 +1035,4 @@ type MelhorEnvioOrderFromDetail = z.infer<typeof FromDetailSchema>;
1029
1035
  type MelhorEnvioOrderToDetail = z.infer<typeof ToDetailSchema>;
1030
1036
  type MelhorEnvioOrderCompany = z.infer<typeof CompanySchema>;
1031
1037
 
1032
- export { CompanySchema, DetailsSchema, FromDetailSchema, MelhorEnvioOrder, MelhorEnvioOrderCompany, MelhorEnvioOrderDetails, MelhorEnvioOrderFromDetail, MelhorEnvioOrderProduct, MelhorEnvioOrderSchema, MelhorEnvioOrderService, MelhorEnvioOrderToDetail, MelhorEnvioOrderVolume, ProductSchema, ServiceSchema, ToDetailSchema, VolumeSchema };
1038
+ export { CompanySchema, DetailsSchema, FromDetailSchema, MelhorEnvioOrder, MelhorEnvioOrderCompany, MelhorEnvioOrderDetails, MelhorEnvioOrderFromDetail, MelhorEnvioOrderProduct, MelhorEnvioOrderSchema, MelhorEnvioOrderService, MelhorEnvioOrderToDetail, MelhorEnvioOrderVolume, OrderStatus, ProductSchema, ServiceSchema, ToDetailSchema, VolumeSchema, compareStatus, statusPriority };
@@ -246,8 +246,8 @@ declare const VolumeSchema: z.ZodObject<z.objectUtil.extendShape<{
246
246
  }>, "strip", z.ZodTypeAny, {
247
247
  length: string;
248
248
  weight: string;
249
- height: string;
250
249
  width: string;
250
+ height: string;
251
251
  diameter: string;
252
252
  format: string;
253
253
  created_at: string;
@@ -259,8 +259,8 @@ declare const VolumeSchema: z.ZodObject<z.objectUtil.extendShape<{
259
259
  }, {
260
260
  length: string;
261
261
  weight: string;
262
- height: string;
263
262
  width: string;
263
+ height: string;
264
264
  diameter: string;
265
265
  format: string;
266
266
  created_at: string;
@@ -340,6 +340,8 @@ declare const ServiceSchema: z.ZodObject<z.objectUtil.extendShape<{
340
340
  createAt?: unknown;
341
341
  updateAt?: unknown;
342
342
  }>;
343
+ declare const OrderStatusSchema: z.ZodEnum<["pending", "released", "posted", "delivered", "canceled", "not Delivered"]>;
344
+ type OrderStatus = z.infer<typeof OrderStatusSchema>;
343
345
  declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
344
346
  id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
345
347
  order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -356,7 +358,7 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
356
358
  discount: z.ZodNumber;
357
359
  delivery_min: z.ZodNumber;
358
360
  delivery_max: z.ZodNumber;
359
- status: z.ZodString;
361
+ status: z.ZodEnum<["pending", "released", "posted", "delivered", "canceled", "not Delivered"]>;
360
362
  reminder: z.ZodAny;
361
363
  insurance_value: z.ZodNumber;
362
364
  weight: z.ZodAny;
@@ -684,8 +686,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
684
686
  }>, "strip", z.ZodTypeAny, {
685
687
  length: string;
686
688
  weight: string;
687
- height: string;
688
689
  width: string;
690
+ height: string;
689
691
  diameter: string;
690
692
  format: string;
691
693
  created_at: string;
@@ -697,8 +699,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
697
699
  }, {
698
700
  length: string;
699
701
  weight: string;
700
- height: string;
701
702
  width: string;
703
+ height: string;
702
704
  diameter: string;
703
705
  format: string;
704
706
  created_at: string;
@@ -711,7 +713,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
711
713
  freight_arrangements: z.ZodArray<z.ZodAny, "many">;
712
714
  }>, "strip", z.ZodTypeAny, {
713
715
  reverse: number;
714
- status: string;
716
+ status: "pending" | "released" | "posted" | "delivered" | "canceled" | "not Delivered";
717
+ insurance_value: number;
715
718
  discount: number;
716
719
  format: string;
717
720
  created_at: string;
@@ -724,7 +727,6 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
724
727
  price: number;
725
728
  delivery_min: number;
726
729
  delivery_max: number;
727
- insurance_value: number;
728
730
  billed_weight: number;
729
731
  receipt: boolean;
730
732
  own_hand: boolean;
@@ -828,8 +830,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
828
830
  volumes: {
829
831
  length: string;
830
832
  weight: string;
831
- height: string;
832
833
  width: string;
834
+ height: string;
833
835
  diameter: string;
834
836
  format: string;
835
837
  created_at: string;
@@ -846,8 +848,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
846
848
  createAt?: FirebaseFirestore.Timestamp | undefined;
847
849
  updateAt?: FirebaseFirestore.Timestamp | undefined;
848
850
  weight?: any;
849
- height?: any;
850
851
  width?: any;
852
+ height?: any;
851
853
  diameter?: any;
852
854
  coupon?: any;
853
855
  reminder?: any;
@@ -866,7 +868,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
866
868
  conciliation?: any;
867
869
  }, {
868
870
  reverse: number;
869
- status: string;
871
+ status: "pending" | "released" | "posted" | "delivered" | "canceled" | "not Delivered";
872
+ insurance_value: number;
870
873
  discount: number;
871
874
  format: string;
872
875
  created_at: string;
@@ -879,7 +882,6 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
879
882
  price: number;
880
883
  delivery_min: number;
881
884
  delivery_max: number;
882
- insurance_value: number;
883
885
  billed_weight: number;
884
886
  receipt: boolean;
885
887
  own_hand: boolean;
@@ -983,8 +985,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
983
985
  volumes: {
984
986
  length: string;
985
987
  weight: string;
986
- height: string;
987
988
  width: string;
989
+ height: string;
988
990
  diameter: string;
989
991
  format: string;
990
992
  created_at: string;
@@ -1001,8 +1003,8 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
1001
1003
  createAt?: unknown;
1002
1004
  updateAt?: unknown;
1003
1005
  weight?: any;
1004
- height?: any;
1005
1006
  width?: any;
1007
+ height?: any;
1006
1008
  diameter?: any;
1007
1009
  coupon?: any;
1008
1010
  reminder?: any;
@@ -1020,6 +1022,10 @@ declare const MelhorEnvioOrderSchema: z.ZodObject<z.objectUtil.extendShape<{
1020
1022
  invoice?: any;
1021
1023
  conciliation?: any;
1022
1024
  }>;
1025
+ declare const statusPriority: {
1026
+ [key in OrderStatus]: number;
1027
+ };
1028
+ declare const compareStatus: (statusA: OrderStatus, statusB: OrderStatus) => number;
1023
1029
  type MelhorEnvioOrder = z.infer<typeof MelhorEnvioOrderSchema>;
1024
1030
  type MelhorEnvioOrderProduct = z.infer<typeof ProductSchema>;
1025
1031
  type MelhorEnvioOrderVolume = z.infer<typeof VolumeSchema>;
@@ -1029,4 +1035,4 @@ type MelhorEnvioOrderFromDetail = z.infer<typeof FromDetailSchema>;
1029
1035
  type MelhorEnvioOrderToDetail = z.infer<typeof ToDetailSchema>;
1030
1036
  type MelhorEnvioOrderCompany = z.infer<typeof CompanySchema>;
1031
1037
 
1032
- export { CompanySchema, DetailsSchema, FromDetailSchema, MelhorEnvioOrder, MelhorEnvioOrderCompany, MelhorEnvioOrderDetails, MelhorEnvioOrderFromDetail, MelhorEnvioOrderProduct, MelhorEnvioOrderSchema, MelhorEnvioOrderService, MelhorEnvioOrderToDetail, MelhorEnvioOrderVolume, ProductSchema, ServiceSchema, ToDetailSchema, VolumeSchema };
1038
+ export { CompanySchema, DetailsSchema, FromDetailSchema, MelhorEnvioOrder, MelhorEnvioOrderCompany, MelhorEnvioOrderDetails, MelhorEnvioOrderFromDetail, MelhorEnvioOrderProduct, MelhorEnvioOrderSchema, MelhorEnvioOrderService, MelhorEnvioOrderToDetail, MelhorEnvioOrderVolume, OrderStatus, ProductSchema, ServiceSchema, ToDetailSchema, VolumeSchema, compareStatus, statusPriority };
@@ -186786,6 +186786,12 @@ __export(order_exports, {
186786
186786
  },
186787
186787
  VolumeSchema: function() {
186788
186788
  return VolumeSchema;
186789
+ },
186790
+ compareStatus: function() {
186791
+ return compareStatus;
186792
+ },
186793
+ statusPriority: function() {
186794
+ return statusPriority;
186789
186795
  }
186790
186796
  });
186791
186797
  module.exports = __toCommonJS(order_exports);
@@ -186891,6 +186897,14 @@ var ServiceSchema = ModelSchema.extend({
186891
186897
  range: import_zod3.z.string(),
186892
186898
  company: CompanySchema
186893
186899
  });
186900
+ var OrderStatusSchema = import_zod3.z.enum([
186901
+ "pending",
186902
+ "released",
186903
+ "posted",
186904
+ "delivered",
186905
+ "canceled",
186906
+ "not Delivered"
186907
+ ]);
186894
186908
  var MelhorEnvioOrderSchema = ModelSchema.extend({
186895
186909
  protocol: import_zod3.z.string(),
186896
186910
  service_id: import_zod3.z.number(),
@@ -186902,7 +186916,7 @@ var MelhorEnvioOrderSchema = ModelSchema.extend({
186902
186916
  discount: import_zod3.z.number(),
186903
186917
  delivery_min: import_zod3.z.number(),
186904
186918
  delivery_max: import_zod3.z.number(),
186905
- status: import_zod3.z.string(),
186919
+ status: OrderStatusSchema,
186906
186920
  reminder: import_zod3.z.any(),
186907
186921
  insurance_value: import_zod3.z.number(),
186908
186922
  weight: import_zod3.z.any(),
@@ -186948,6 +186962,17 @@ var MelhorEnvioOrderSchema = ModelSchema.extend({
186948
186962
  volumes: import_zod3.z.array(VolumeSchema),
186949
186963
  freight_arrangements: import_zod3.z.array(import_zod3.z.any())
186950
186964
  });
186965
+ var statusPriority = {
186966
+ "canceled": 0,
186967
+ "not Delivered": 1,
186968
+ "pending": 2,
186969
+ "released": 3,
186970
+ "posted": 4,
186971
+ "delivered": 5
186972
+ };
186973
+ var compareStatus = function(statusA1, statusB1) {
186974
+ return statusPriority[statusA1] - statusPriority[statusB1];
186975
+ };
186951
186976
  // Annotate the CommonJS export names for ESM import in node:
186952
186977
  0 && (module.exports = {
186953
186978
  CompanySchema: CompanySchema,
@@ -186957,7 +186982,9 @@ var MelhorEnvioOrderSchema = ModelSchema.extend({
186957
186982
  ProductSchema: ProductSchema,
186958
186983
  ServiceSchema: ServiceSchema,
186959
186984
  ToDetailSchema: ToDetailSchema,
186960
- VolumeSchema: VolumeSchema
186985
+ VolumeSchema: VolumeSchema,
186986
+ compareStatus: compareStatus,
186987
+ statusPriority: statusPriority
186961
186988
  }); /*! Bundled license information:
186962
186989
 
186963
186990
  safe-buffer/index.js: