order3000 0.13.0 → 0.13.1

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.cjs CHANGED
@@ -294,7 +294,9 @@ class OrdersResource extends BaseResource {
294
294
  * SDK callers cannot provide these values - they're implicit from the basket contents.
295
295
  */
296
296
  async place(order) {
297
- return this.request("POST", "", order);
297
+ const { fulfillmentAt, ...rest } = order;
298
+ const fulfillmentTime = fulfillmentAt ? `${String(fulfillmentAt.getHours()).padStart(2, "0")}:${String(fulfillmentAt.getMinutes()).padStart(2, "0")}` : void 0;
299
+ return this.request("POST", "", { ...rest, fulfillmentTime });
298
300
  }
299
301
  async get(orderId) {
300
302
  return this.request("GET", `/${orderId}`);
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;
@@ -404,7 +404,7 @@ interface Event {
404
404
  isPublic: boolean;
405
405
  isRecurring: boolean;
406
406
  isClosed: boolean;
407
- acceptsReservations: boolean;
407
+ reservationsEnabled: boolean;
408
408
  bookingOpensAtDays: number | null;
409
409
  bookingClosesAtHours: number | null;
410
410
  isActive: boolean;
@@ -559,7 +559,7 @@ interface EventByAccessor {
559
559
  maxPartySize: number | null;
560
560
  isPublic: boolean;
561
561
  isRecurring: boolean;
562
- acceptsReservations: boolean;
562
+ reservationsEnabled: boolean;
563
563
  bookingOpensAtDays: number | null;
564
564
  bookingClosesAtHours: number | null;
565
565
  isActive: boolean;
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;
@@ -404,7 +404,7 @@ interface Event {
404
404
  isPublic: boolean;
405
405
  isRecurring: boolean;
406
406
  isClosed: boolean;
407
- acceptsReservations: boolean;
407
+ reservationsEnabled: boolean;
408
408
  bookingOpensAtDays: number | null;
409
409
  bookingClosesAtHours: number | null;
410
410
  isActive: boolean;
@@ -559,7 +559,7 @@ interface EventByAccessor {
559
559
  maxPartySize: number | null;
560
560
  isPublic: boolean;
561
561
  isRecurring: boolean;
562
- acceptsReservations: boolean;
562
+ reservationsEnabled: boolean;
563
563
  bookingOpensAtDays: number | null;
564
564
  bookingClosesAtHours: number | null;
565
565
  isActive: boolean;
package/dist/client.mjs CHANGED
@@ -292,7 +292,9 @@ class OrdersResource extends BaseResource {
292
292
  * SDK callers cannot provide these values - they're implicit from the basket contents.
293
293
  */
294
294
  async place(order) {
295
- return this.request("POST", "", order);
295
+ const { fulfillmentAt, ...rest } = order;
296
+ const fulfillmentTime = fulfillmentAt ? `${String(fulfillmentAt.getHours()).padStart(2, "0")}:${String(fulfillmentAt.getMinutes()).padStart(2, "0")}` : void 0;
297
+ return this.request("POST", "", { ...rest, fulfillmentTime });
296
298
  }
297
299
  async get(orderId) {
298
300
  return this.request("GET", `/${orderId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -30,8 +30,8 @@
30
30
  "prettier": "^3.7.4",
31
31
  "tsx": "^4.19.2",
32
32
  "typescript": "^5.9.3",
33
- "@kolaveri/eslint-config": "1.4.1",
34
33
  "@kolaveri/prettier-config": "1.0.6",
34
+ "@kolaveri/eslint-config": "1.4.1",
35
35
  "@kolaveri/tsconfig": "1.0.1"
36
36
  },
37
37
  "files": [