@nextorders/food-schema 0.2.2 → 0.2.3

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.d.mts CHANGED
@@ -86,9 +86,9 @@ declare const ChannelSchema: z.ZodObject<{
86
86
  value: z.ZodString;
87
87
  }, z.core.$strip>>;
88
88
  type: z.ZodEnum<{
89
- custom: "custom";
90
89
  cash: "cash";
91
90
  card: "card";
91
+ custom: "custom";
92
92
  }>;
93
93
  }, z.core.$strip>>;
94
94
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -150,9 +150,9 @@ declare const ChannelSchema: z.ZodObject<{
150
150
  value: z.ZodString;
151
151
  }, z.core.$strip>>;
152
152
  type: z.ZodEnum<{
153
- custom: "custom";
154
153
  cash: "cash";
155
154
  card: "card";
155
+ custom: "custom";
156
156
  }>;
157
157
  }, z.core.$strip>>;
158
158
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1058,9 +1058,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1058
1058
  value: z.ZodString;
1059
1059
  }, z.core.$strip>>;
1060
1060
  type: z.ZodEnum<{
1061
- custom: "custom";
1062
1061
  cash: "cash";
1063
1062
  card: "card";
1063
+ custom: "custom";
1064
1064
  }>;
1065
1065
  }, z.core.$strip>>;
1066
1066
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1122,9 +1122,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1122
1122
  value: z.ZodString;
1123
1123
  }, z.core.$strip>>;
1124
1124
  type: z.ZodEnum<{
1125
- custom: "custom";
1126
1125
  cash: "cash";
1127
1126
  card: "card";
1127
+ custom: "custom";
1128
1128
  }>;
1129
1129
  }, z.core.$strip>>;
1130
1130
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2454,9 +2454,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2454
2454
  value: z.ZodString;
2455
2455
  }, z.core.$strip>>;
2456
2456
  type: z.ZodEnum<{
2457
- custom: "custom";
2458
2457
  cash: "cash";
2459
2458
  card: "card";
2459
+ custom: "custom";
2460
2460
  }>;
2461
2461
  }, z.core.$strip>>;
2462
2462
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2518,9 +2518,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2518
2518
  value: z.ZodString;
2519
2519
  }, z.core.$strip>>;
2520
2520
  type: z.ZodEnum<{
2521
- custom: "custom";
2522
2521
  cash: "cash";
2523
2522
  card: "card";
2523
+ custom: "custom";
2524
2524
  }>;
2525
2525
  }, z.core.$strip>>;
2526
2526
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4047,9 +4047,9 @@ declare const OrderSchema: z.ZodObject<{
4047
4047
  type Order = z.infer<typeof OrderSchema>;
4048
4048
 
4049
4049
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
4050
- custom: "custom";
4051
4050
  cash: "cash";
4052
4051
  card: "card";
4052
+ custom: "custom";
4053
4053
  }>;
4054
4054
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4055
4055
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -4067,9 +4067,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
4067
4067
  value: z.ZodString;
4068
4068
  }, z.core.$strip>>;
4069
4069
  type: z.ZodEnum<{
4070
- custom: "custom";
4071
4070
  cash: "cash";
4072
4071
  card: "card";
4072
+ custom: "custom";
4073
4073
  }>;
4074
4074
  }, z.core.$strip>;
4075
4075
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -4172,6 +4172,7 @@ declare const CompositionIngredientSchema: z.ZodObject<{
4172
4172
  value: z.ZodString;
4173
4173
  }, z.core.$strip>>;
4174
4174
  }, z.core.$strip>;
4175
+ type CompositionIngredient = z.infer<typeof CompositionIngredientSchema>;
4175
4176
  declare const CompositionProductSchema: z.ZodObject<{
4176
4177
  id: z.ZodString;
4177
4178
  productId: z.ZodString;
@@ -4568,4 +4569,4 @@ declare const WarehouseSchema: z.ZodObject<{
4568
4569
  type Warehouse = z.infer<typeof WarehouseSchema>;
4569
4570
 
4570
4571
  export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
4571
- export type { Channel, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
4572
+ export type { Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
package/dist/index.d.ts CHANGED
@@ -86,9 +86,9 @@ declare const ChannelSchema: z.ZodObject<{
86
86
  value: z.ZodString;
87
87
  }, z.core.$strip>>;
88
88
  type: z.ZodEnum<{
89
- custom: "custom";
90
89
  cash: "cash";
91
90
  card: "card";
91
+ custom: "custom";
92
92
  }>;
93
93
  }, z.core.$strip>>;
94
94
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -150,9 +150,9 @@ declare const ChannelSchema: z.ZodObject<{
150
150
  value: z.ZodString;
151
151
  }, z.core.$strip>>;
152
152
  type: z.ZodEnum<{
153
- custom: "custom";
154
153
  cash: "cash";
155
154
  card: "card";
155
+ custom: "custom";
156
156
  }>;
157
157
  }, z.core.$strip>>;
158
158
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1058,9 +1058,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1058
1058
  value: z.ZodString;
1059
1059
  }, z.core.$strip>>;
1060
1060
  type: z.ZodEnum<{
1061
- custom: "custom";
1062
1061
  cash: "cash";
1063
1062
  card: "card";
1063
+ custom: "custom";
1064
1064
  }>;
1065
1065
  }, z.core.$strip>>;
1066
1066
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1122,9 +1122,9 @@ declare const GatewayGetChannelsResponseSchema: z.ZodObject<{
1122
1122
  value: z.ZodString;
1123
1123
  }, z.core.$strip>>;
1124
1124
  type: z.ZodEnum<{
1125
- custom: "custom";
1126
1125
  cash: "cash";
1127
1126
  card: "card";
1127
+ custom: "custom";
1128
1128
  }>;
1129
1129
  }, z.core.$strip>>;
1130
1130
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2454,9 +2454,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2454
2454
  value: z.ZodString;
2455
2455
  }, z.core.$strip>>;
2456
2456
  type: z.ZodEnum<{
2457
- custom: "custom";
2458
2457
  cash: "cash";
2459
2458
  card: "card";
2459
+ custom: "custom";
2460
2460
  }>;
2461
2461
  }, z.core.$strip>>;
2462
2462
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2518,9 +2518,9 @@ declare const GatewayResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2518
2518
  value: z.ZodString;
2519
2519
  }, z.core.$strip>>;
2520
2520
  type: z.ZodEnum<{
2521
- custom: "custom";
2522
2521
  cash: "cash";
2523
2522
  card: "card";
2523
+ custom: "custom";
2524
2524
  }>;
2525
2525
  }, z.core.$strip>>;
2526
2526
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4047,9 +4047,9 @@ declare const OrderSchema: z.ZodObject<{
4047
4047
  type Order = z.infer<typeof OrderSchema>;
4048
4048
 
4049
4049
  declare const PaymentMethodTypeSchema: z.ZodEnum<{
4050
- custom: "custom";
4051
4050
  cash: "cash";
4052
4051
  card: "card";
4052
+ custom: "custom";
4053
4053
  }>;
4054
4054
  type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4055
4055
  declare const PaymentMethodSchema: z.ZodObject<{
@@ -4067,9 +4067,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
4067
4067
  value: z.ZodString;
4068
4068
  }, z.core.$strip>>;
4069
4069
  type: z.ZodEnum<{
4070
- custom: "custom";
4071
4070
  cash: "cash";
4072
4071
  card: "card";
4072
+ custom: "custom";
4073
4073
  }>;
4074
4074
  }, z.core.$strip>;
4075
4075
  type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
@@ -4172,6 +4172,7 @@ declare const CompositionIngredientSchema: z.ZodObject<{
4172
4172
  value: z.ZodString;
4173
4173
  }, z.core.$strip>>;
4174
4174
  }, z.core.$strip>;
4175
+ type CompositionIngredient = z.infer<typeof CompositionIngredientSchema>;
4175
4176
  declare const CompositionProductSchema: z.ZodObject<{
4176
4177
  id: z.ZodString;
4177
4178
  productId: z.ZodString;
@@ -4568,4 +4569,4 @@ declare const WarehouseSchema: z.ZodObject<{
4568
4569
  type Warehouse = z.infer<typeof WarehouseSchema>;
4569
4570
 
4570
4571
  export { BaseResponseSchema, ChannelSchema, CompositionIngredientSchema, CompositionProductSchema, CountryCodeSchema, CurrencyCodeSchema, DeliveryMethodSchema, GatewayActionTypeSchema, GatewayAddOrderItemRequestSchema, GatewayAddOrderItemResponseSchema, GatewayCreateOrderRequestSchema, GatewayCreateOrderResponseSchema, GatewayDecrementOrderItemQuantityRequestSchema, GatewayDecrementOrderItemQuantityResponseSchema, GatewayGetChannelsRequestSchema, GatewayGetChannelsResponseSchema, GatewayGetDeliveryByCourierStatusRequestSchema, GatewayGetDeliveryByCourierStatusResponseSchema, GatewayGetMenuRequestSchema, GatewayGetMenuResponseSchema, GatewayGetOptionsRequestSchema, GatewayGetOptionsResponseSchema, GatewayGetOrderRequestSchema, GatewayGetOrderResponseSchema, GatewayGetSelfPickupStatusRequestSchema, GatewayGetSelfPickupStatusResponseSchema, GatewayGetTimeSlotsRequestSchema, GatewayGetTimeSlotsResponseSchema, GatewayIncrementOrderItemQuantityRequestSchema, GatewayIncrementOrderItemQuantityResponseSchema, GatewayRequestSchema, GatewayResponseSchema, GatewayUpdateOrderRequestSchema, GatewayUpdateOrderResponseSchema, ImageFormatSchema, ImageSchema, ImageSizeSchema, LocaleSchema, LocaleValueSchema, MenuCategorySchema, MenuSchema, NutritionFactsSchema, OpeningStatusSchema, OptionsSchema, OrderDeliveryAddressSchema, OrderItemChangeSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, OrderWarehouseAddressSchema, PaymentMethodSchema, PaymentMethodTypeSchema, ProductBadgeSchema, ProductCompositionSchema, ProductSchema, ProductVariantSchema, RecommendedProductSchema, ScheduleSchema, TimePeriodSchema, TimeSchema, TimeTypeSchema, TimeZoneSchema, VideoSchema, VideoTypeSchema, WarehouseAddressSchema, WarehouseSchema, WeekDaySchema, WeightUnitSchema };
4571
- export type { Channel, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
4572
+ export type { Channel, CompositionIngredient, CompositionProductItem, CountryCode, CurrencyCode, DaySchedule, DeliveryMethod, GatewayActionType, GatewayAddOrderItemRequest, GatewayAddOrderItemResponse, GatewayCreateOrderRequest, GatewayCreateOrderResponse, GatewayDecrementOrderItemQuantityRequest, GatewayDecrementOrderItemQuantityResponse, GatewayGetChannelsRequest, GatewayGetChannelsResponse, GatewayGetDeliveryByCourierStatusRequest, GatewayGetDeliveryByCourierStatusResponse, GatewayGetMenuRequest, GatewayGetMenuResponse, GatewayGetOptionsRequest, GatewayGetOptionsResponse, GatewayGetOrderRequest, GatewayGetOrderResponse, GatewayGetSelfPickupStatusRequest, GatewayGetSelfPickupStatusResponse, GatewayGetTimeSlotsRequest, GatewayGetTimeSlotsResponse, GatewayIncrementOrderItemQuantityRequest, GatewayIncrementOrderItemQuantityResponse, GatewayRequest, GatewayResponse, GatewayUpdateOrderRequest, GatewayUpdateOrderResponse, Image, ImageFormat, ImageSize, Locale, LocaleValue, Menu, MenuCategory, NextOpening, NutritionFacts, OpeningStatus, Options, Order, OrderDeliveryAddress, OrderItem, OrderItemChange, OrderStatus, OrderWarehouseAddress, PaymentMethod, PaymentMethodType, Product, ProductBadge, ProductComposition, ProductVariant, RecommendedProduct, Schedule, TimePeriod, TimeType, TimeZone, Video, VideoType, Warehouse, WarehouseAddress, WeekDay, WeightUnit };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nextorders/food-schema",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },