order3000 0.13.0 → 0.13.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.d.cts CHANGED
@@ -47,7 +47,7 @@ interface components {
47
47
  maxPartySize?: number | null;
48
48
  isPublic?: boolean;
49
49
  isRecurring?: boolean;
50
- acceptsReservations?: boolean;
50
+ reservationsEnabled?: boolean;
51
51
  bookingOpensAtDays?: number | null;
52
52
  bookingClosesAtHours?: number | null;
53
53
  isActive?: boolean;
@@ -91,7 +91,7 @@ interface components {
91
91
  maxPartySize: number | null;
92
92
  isPublic: boolean;
93
93
  isRecurring: boolean;
94
- acceptsReservations: boolean;
94
+ reservationsEnabled: boolean;
95
95
  bookingOpensAtDays: number | null;
96
96
  bookingClosesAtHours: number | null;
97
97
  isActive: boolean;
@@ -123,7 +123,11 @@ interface components {
123
123
  currency?: "EUR" | "CHF";
124
124
  /** @enum {string|null} */
125
125
  fulfillmentType?: "pickup" | "delivery" | null;
126
- fulfillmentAt?: unknown;
126
+ /**
127
+ * Format: date-time
128
+ * @description When the order should be fulfilled (ISO 8601 datetime string)
129
+ */
130
+ fulfillmentAt?: string | null;
127
131
  orderedAt?: unknown;
128
132
  orderedBy: string;
129
133
  updatedAt?: unknown;
@@ -147,7 +151,11 @@ interface components {
147
151
  currency: "EUR" | "CHF";
148
152
  /** @enum {string|null} */
149
153
  fulfillmentType: "pickup" | "delivery" | null;
150
- fulfillmentAt: unknown;
154
+ /**
155
+ * Format: date-time
156
+ * @description When the order should be fulfilled (ISO 8601 datetime string)
157
+ */
158
+ fulfillmentAt: string | null;
151
159
  orderedAt: unknown;
152
160
  orderedBy: string;
153
161
  updatedAt: unknown;
@@ -307,11 +315,11 @@ type CreateEventResponse = schemas['CreateEventResponse'];
307
315
  * Keep in sync with apps/order3000/src/drizzle/enums.ts
308
316
  */
309
317
  type OrderFulfillmentType = 'pickup' | 'delivery';
310
- type PlaceOrderRequest = Omit<schemas['PlaceOrderRequest'], 'taxAmount' | 'totalAmount'> & {
318
+ type PlaceOrderRequest = Omit<schemas['PlaceOrderRequest'], 'taxAmount' | 'totalAmount' | 'fulfillmentAt'> & {
311
319
  /** Fulfillment type for the order (pickup or delivery) */
312
320
  fulfillmentType?: OrderFulfillmentType;
313
- /** When the order should be fulfilled (pickup/delivery time) */
314
- fulfillmentAt?: Date;
321
+ /** When the order should be fulfilled (ISO 8601 datetime string or Date object) */
322
+ fulfillmentAt: Date | string;
315
323
  /** Guest session identifier for customer lookup */
316
324
  sessionId?: string;
317
325
  /** Customer first name (for cash orders) */
@@ -404,7 +412,7 @@ interface Event {
404
412
  isPublic: boolean;
405
413
  isRecurring: boolean;
406
414
  isClosed: boolean;
407
- acceptsReservations: boolean;
415
+ reservationsEnabled: boolean;
408
416
  bookingOpensAtDays: number | null;
409
417
  bookingClosesAtHours: number | null;
410
418
  isActive: boolean;
@@ -559,7 +567,7 @@ interface EventByAccessor {
559
567
  maxPartySize: number | null;
560
568
  isPublic: boolean;
561
569
  isRecurring: boolean;
562
- acceptsReservations: boolean;
570
+ reservationsEnabled: boolean;
563
571
  bookingOpensAtDays: number | null;
564
572
  bookingClosesAtHours: number | null;
565
573
  isActive: boolean;
@@ -656,7 +664,8 @@ interface CreatePaymentIntentRequest {
656
664
  currency: Currency;
657
665
  sessionId: string;
658
666
  fulfillmentType?: OrderFulfillmentType;
659
- fulfillmentTime?: string;
667
+ /** When the order should be fulfilled (ISO 8601 datetime string or Date object) */
668
+ fulfillmentAt: Date | string;
660
669
  }
661
670
  interface CreatePaymentIntentResponse {
662
671
  clientSecret: string;
package/dist/client.d.mts CHANGED
@@ -47,7 +47,7 @@ interface components {
47
47
  maxPartySize?: number | null;
48
48
  isPublic?: boolean;
49
49
  isRecurring?: boolean;
50
- acceptsReservations?: boolean;
50
+ reservationsEnabled?: boolean;
51
51
  bookingOpensAtDays?: number | null;
52
52
  bookingClosesAtHours?: number | null;
53
53
  isActive?: boolean;
@@ -91,7 +91,7 @@ interface components {
91
91
  maxPartySize: number | null;
92
92
  isPublic: boolean;
93
93
  isRecurring: boolean;
94
- acceptsReservations: boolean;
94
+ reservationsEnabled: boolean;
95
95
  bookingOpensAtDays: number | null;
96
96
  bookingClosesAtHours: number | null;
97
97
  isActive: boolean;
@@ -123,7 +123,11 @@ interface components {
123
123
  currency?: "EUR" | "CHF";
124
124
  /** @enum {string|null} */
125
125
  fulfillmentType?: "pickup" | "delivery" | null;
126
- fulfillmentAt?: unknown;
126
+ /**
127
+ * Format: date-time
128
+ * @description When the order should be fulfilled (ISO 8601 datetime string)
129
+ */
130
+ fulfillmentAt?: string | null;
127
131
  orderedAt?: unknown;
128
132
  orderedBy: string;
129
133
  updatedAt?: unknown;
@@ -147,7 +151,11 @@ interface components {
147
151
  currency: "EUR" | "CHF";
148
152
  /** @enum {string|null} */
149
153
  fulfillmentType: "pickup" | "delivery" | null;
150
- fulfillmentAt: unknown;
154
+ /**
155
+ * Format: date-time
156
+ * @description When the order should be fulfilled (ISO 8601 datetime string)
157
+ */
158
+ fulfillmentAt: string | null;
151
159
  orderedAt: unknown;
152
160
  orderedBy: string;
153
161
  updatedAt: unknown;
@@ -307,11 +315,11 @@ type CreateEventResponse = schemas['CreateEventResponse'];
307
315
  * Keep in sync with apps/order3000/src/drizzle/enums.ts
308
316
  */
309
317
  type OrderFulfillmentType = 'pickup' | 'delivery';
310
- type PlaceOrderRequest = Omit<schemas['PlaceOrderRequest'], 'taxAmount' | 'totalAmount'> & {
318
+ type PlaceOrderRequest = Omit<schemas['PlaceOrderRequest'], 'taxAmount' | 'totalAmount' | 'fulfillmentAt'> & {
311
319
  /** Fulfillment type for the order (pickup or delivery) */
312
320
  fulfillmentType?: OrderFulfillmentType;
313
- /** When the order should be fulfilled (pickup/delivery time) */
314
- fulfillmentAt?: Date;
321
+ /** When the order should be fulfilled (ISO 8601 datetime string or Date object) */
322
+ fulfillmentAt: Date | string;
315
323
  /** Guest session identifier for customer lookup */
316
324
  sessionId?: string;
317
325
  /** Customer first name (for cash orders) */
@@ -404,7 +412,7 @@ interface Event {
404
412
  isPublic: boolean;
405
413
  isRecurring: boolean;
406
414
  isClosed: boolean;
407
- acceptsReservations: boolean;
415
+ reservationsEnabled: boolean;
408
416
  bookingOpensAtDays: number | null;
409
417
  bookingClosesAtHours: number | null;
410
418
  isActive: boolean;
@@ -559,7 +567,7 @@ interface EventByAccessor {
559
567
  maxPartySize: number | null;
560
568
  isPublic: boolean;
561
569
  isRecurring: boolean;
562
- acceptsReservations: boolean;
570
+ reservationsEnabled: boolean;
563
571
  bookingOpensAtDays: number | null;
564
572
  bookingClosesAtHours: number | null;
565
573
  isActive: boolean;
@@ -656,7 +664,8 @@ interface CreatePaymentIntentRequest {
656
664
  currency: Currency;
657
665
  sessionId: string;
658
666
  fulfillmentType?: OrderFulfillmentType;
659
- fulfillmentTime?: string;
667
+ /** When the order should be fulfilled (ISO 8601 datetime string or Date object) */
668
+ fulfillmentAt: Date | string;
660
669
  }
661
670
  interface CreatePaymentIntentResponse {
662
671
  clientSecret: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",