order3000 1.0.1 → 1.0.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.
package/dist/client.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { p as paymentMethodSchema, f as fulfillmentTypeSchema, t as teamOrderStatusSchema, a as participantStatusSchema } from './deliveryAddressSchema-8YX7yh5X.mjs';
2
- export { d as O3KDeliveryAddressSchema } from './deliveryAddressSchema-8YX7yh5X.mjs';
1
+ import { a as paymentMethodSchema, f as fulfillmentTypeSchema, t as teamOrderStatusSchema, p as participantStatusSchema } from './deliveryAddressSchema-DZlkW-QX.mjs';
2
+ export { d as O3KDeliveryAddressSchema } from './deliveryAddressSchema-DZlkW-QX.mjs';
3
3
  import { createClient } from '@supabase/supabase-js';
4
4
  import 'zod/v4';
5
5
 
@@ -31,4 +31,4 @@ const deliveryAddressSchema = z.object({
31
31
  country: z.string()
32
32
  });
33
33
 
34
- export { participantStatusSchema as a, deliveryAddressSchema as d, fulfillmentTypeSchema as f, paymentMethodSchema as p, teamOrderStatusSchema as t };
34
+ export { paymentMethodSchema as a, deliveryAddressSchema as d, fulfillmentTypeSchema as f, participantStatusSchema as p, teamOrderStatusSchema as t };
package/dist/schemas.cjs CHANGED
@@ -565,7 +565,7 @@ const createDeltaPaymentIntentResponseSchema = v4.z.object({
565
565
  clientSecret: v4.z.nullable(v4.z.string()),
566
566
  paymentIntentId: v4.z.string(),
567
567
  orderId: v4.z.string(),
568
- amount: v4.z.int().max(9007199254740991),
568
+ amount: v4.z.int().max(9007199254740991).gt(0),
569
569
  status: v4.z.enum([
570
570
  "requires_payment_method",
571
571
  "requires_confirmation",
@@ -1756,7 +1756,7 @@ const fetchTeamOrderResponseSchema = v4.z.object({
1756
1756
  customerId: v4.z.string(),
1757
1757
  basketId: v4.z.nullable(v4.z.string()),
1758
1758
  orderId: v4.z.nullable(v4.z.string()),
1759
- participantNumber: v4.z.nullable(v4.z.int().max(9007199254740991)),
1759
+ participantNumber: v4.z.nullable(v4.z.int().max(9007199254740991).gt(0)),
1760
1760
  displayName: v4.z.nullable(v4.z.string()),
1761
1761
  get status() {
1762
1762
  return deliveryAddressSchema.participantStatusSchema;
@@ -1910,7 +1910,7 @@ const getSubscriptionResponseSchema = v4.z.object({
1910
1910
  shortName: v4.z.nullable(v4.z.object({}).catchall(v4.z.string())),
1911
1911
  description: v4.z.nullable(v4.z.object({}).catchall(v4.z.string())),
1912
1912
  scheduleId: v4.z.nullable(v4.z.string()),
1913
- allowance: v4.z.int().max(9007199254740991),
1913
+ allowance: v4.z.int().max(9007199254740991).gt(0),
1914
1914
  get billingPeriod() {
1915
1915
  return subscriptionPeriodSchema;
1916
1916
  },
@@ -1918,7 +1918,7 @@ const getSubscriptionResponseSchema = v4.z.object({
1918
1918
  return subscriptionPeriodSchema;
1919
1919
  },
1920
1920
  redeemableTagSets: v4.z.array(v4.z.array(v4.z.string())),
1921
- expiryInDays: v4.z.nullable(v4.z.int().max(9007199254740991)),
1921
+ expiryInDays: v4.z.nullable(v4.z.int().max(9007199254740991).gt(0)),
1922
1922
  price: v4.z.int().min(0).max(9007199254740991),
1923
1923
  get currency() {
1924
1924
  return currencySchema;
@@ -2496,7 +2496,7 @@ const submitAreaBookingPayloadSchema = v4.z.object({
2496
2496
  requestedDate: v4.z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
2497
2497
  requestedStartTime: v4.z.optional(v4.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
2498
2498
  requestedEndTime: v4.z.optional(v4.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
2499
- partySize: v4.z.int().max(9007199254740991),
2499
+ partySize: v4.z.int().max(9007199254740991).gt(0),
2500
2500
  customerFirstName: v4.z.string().min(1),
2501
2501
  customerLastName: v4.z.string().min(1),
2502
2502
  customerEmail: v4.z.email(),
package/dist/schemas.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod/v4';
2
- import { t as teamOrderStatusSchema, f as fulfillmentTypeSchema, p as paymentMethodSchema, d as deliveryAddressSchema, a as participantStatusSchema } from './deliveryAddressSchema-8YX7yh5X.mjs';
2
+ import { t as teamOrderStatusSchema, f as fulfillmentTypeSchema, a as paymentMethodSchema, d as deliveryAddressSchema, p as participantStatusSchema } from './deliveryAddressSchema-DZlkW-QX.mjs';
3
3
 
4
4
  const abandonBasketRequestSchema = z.object({
5
5
  sessionId: z.string().min(1)
@@ -563,7 +563,7 @@ const createDeltaPaymentIntentResponseSchema = z.object({
563
563
  clientSecret: z.nullable(z.string()),
564
564
  paymentIntentId: z.string(),
565
565
  orderId: z.string(),
566
- amount: z.int().max(9007199254740991),
566
+ amount: z.int().max(9007199254740991).gt(0),
567
567
  status: z.enum([
568
568
  "requires_payment_method",
569
569
  "requires_confirmation",
@@ -1754,7 +1754,7 @@ const fetchTeamOrderResponseSchema = z.object({
1754
1754
  customerId: z.string(),
1755
1755
  basketId: z.nullable(z.string()),
1756
1756
  orderId: z.nullable(z.string()),
1757
- participantNumber: z.nullable(z.int().max(9007199254740991)),
1757
+ participantNumber: z.nullable(z.int().max(9007199254740991).gt(0)),
1758
1758
  displayName: z.nullable(z.string()),
1759
1759
  get status() {
1760
1760
  return participantStatusSchema;
@@ -1908,7 +1908,7 @@ const getSubscriptionResponseSchema = z.object({
1908
1908
  shortName: z.nullable(z.object({}).catchall(z.string())),
1909
1909
  description: z.nullable(z.object({}).catchall(z.string())),
1910
1910
  scheduleId: z.nullable(z.string()),
1911
- allowance: z.int().max(9007199254740991),
1911
+ allowance: z.int().max(9007199254740991).gt(0),
1912
1912
  get billingPeriod() {
1913
1913
  return subscriptionPeriodSchema;
1914
1914
  },
@@ -1916,7 +1916,7 @@ const getSubscriptionResponseSchema = z.object({
1916
1916
  return subscriptionPeriodSchema;
1917
1917
  },
1918
1918
  redeemableTagSets: z.array(z.array(z.string())),
1919
- expiryInDays: z.nullable(z.int().max(9007199254740991)),
1919
+ expiryInDays: z.nullable(z.int().max(9007199254740991).gt(0)),
1920
1920
  price: z.int().min(0).max(9007199254740991),
1921
1921
  get currency() {
1922
1922
  return currencySchema;
@@ -2494,7 +2494,7 @@ const submitAreaBookingPayloadSchema = z.object({
2494
2494
  requestedDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
2495
2495
  requestedStartTime: z.optional(z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
2496
2496
  requestedEndTime: z.optional(z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
2497
- partySize: z.int().max(9007199254740991),
2497
+ partySize: z.int().max(9007199254740991).gt(0),
2498
2498
  customerFirstName: z.string().min(1),
2499
2499
  customerLastName: z.string().min(1),
2500
2500
  customerEmail: z.email(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -49,9 +49,9 @@
49
49
  "prettier": "^3.7.4",
50
50
  "tsx": "^4.19.2",
51
51
  "typescript": "^5.9.3",
52
- "@kolaveri/eslint-config": "1.8.3",
53
- "@kolaveri/prettier-config": "1.0.6",
54
- "@kolaveri/tsconfig": "1.0.1"
52
+ "@kolaveri/eslint-config": "1.8.9",
53
+ "@kolaveri/tsconfig": "1.0.1",
54
+ "@kolaveri/prettier-config": "1.0.6"
55
55
  },
56
56
  "files": [
57
57
  "dist"