order3000 0.14.2 → 0.15.0

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
@@ -162,6 +162,9 @@ class EventsResource extends BaseResource {
162
162
  if (options?.includePrivate) {
163
163
  queryParams.set("includePrivate", "true");
164
164
  }
165
+ if (options?.includeInactive) {
166
+ queryParams.set("includeInactive", "true");
167
+ }
165
168
  if (options?.isPublic !== void 0) {
166
169
  queryParams.set("isPublic", String(options.isPublic));
167
170
  }
package/dist/client.d.cts CHANGED
@@ -324,6 +324,8 @@ type PlaceOrderRequest = Omit<schemas['PlaceOrderRequest'], 'taxAmount' | 'total
324
324
  customerLastName?: string;
325
325
  /** Customer email address (for cash orders) */
326
326
  customerEmail?: string;
327
+ /** Number of deposit containers the customer declares they will return at pickup */
328
+ declaredReturningCount?: number;
327
329
  };
328
330
  type PlaceOrderResponse = schemas['PlaceOrderResponse'];
329
331
  type MakeReservationRequest = schemas['MakeReservationRequest'];
@@ -433,6 +435,8 @@ interface Event {
433
435
  interface ListEventsOptions {
434
436
  /** Include private events in the response */
435
437
  includePrivate?: boolean;
438
+ /** Include inactive events in the response */
439
+ includeInactive?: boolean;
436
440
  /** Filter by isPublic status */
437
441
  isPublic?: boolean;
438
442
  /** Filter by isRecurring status */
@@ -500,6 +504,8 @@ interface MenuItem {
500
504
  priceAdjustment: number;
501
505
  currency: CurrencyCode;
502
506
  isActive: boolean;
507
+ /** Whether this menu item should get a dedicated SEO detail page on consumer sites */
508
+ isFeatured: boolean;
503
509
  sortIndex: string | null;
504
510
  dish: MenuDish | null;
505
511
  beverage: MenuBeverage | null;
@@ -671,6 +677,8 @@ interface CreatePaymentIntentRequest {
671
677
  customerFirstName?: string;
672
678
  /** Customer last name (for Stripe metadata and customer record) */
673
679
  customerLastName?: string;
680
+ /** Number of deposit containers the customer declares they will return at pickup */
681
+ declaredReturningCount?: number;
674
682
  }
675
683
  interface CreatePaymentIntentResponse {
676
684
  clientSecret: string;
@@ -948,6 +956,7 @@ interface MenuItemRow {
948
956
  price_adjustment: number;
949
957
  currency: CurrencyCode;
950
958
  is_active: boolean;
959
+ is_featured: boolean;
951
960
  tags: string[] | null;
952
961
  sort_index: string | null;
953
962
  }
package/dist/client.d.mts CHANGED
@@ -324,6 +324,8 @@ type PlaceOrderRequest = Omit<schemas['PlaceOrderRequest'], 'taxAmount' | 'total
324
324
  customerLastName?: string;
325
325
  /** Customer email address (for cash orders) */
326
326
  customerEmail?: string;
327
+ /** Number of deposit containers the customer declares they will return at pickup */
328
+ declaredReturningCount?: number;
327
329
  };
328
330
  type PlaceOrderResponse = schemas['PlaceOrderResponse'];
329
331
  type MakeReservationRequest = schemas['MakeReservationRequest'];
@@ -433,6 +435,8 @@ interface Event {
433
435
  interface ListEventsOptions {
434
436
  /** Include private events in the response */
435
437
  includePrivate?: boolean;
438
+ /** Include inactive events in the response */
439
+ includeInactive?: boolean;
436
440
  /** Filter by isPublic status */
437
441
  isPublic?: boolean;
438
442
  /** Filter by isRecurring status */
@@ -500,6 +504,8 @@ interface MenuItem {
500
504
  priceAdjustment: number;
501
505
  currency: CurrencyCode;
502
506
  isActive: boolean;
507
+ /** Whether this menu item should get a dedicated SEO detail page on consumer sites */
508
+ isFeatured: boolean;
503
509
  sortIndex: string | null;
504
510
  dish: MenuDish | null;
505
511
  beverage: MenuBeverage | null;
@@ -671,6 +677,8 @@ interface CreatePaymentIntentRequest {
671
677
  customerFirstName?: string;
672
678
  /** Customer last name (for Stripe metadata and customer record) */
673
679
  customerLastName?: string;
680
+ /** Number of deposit containers the customer declares they will return at pickup */
681
+ declaredReturningCount?: number;
674
682
  }
675
683
  interface CreatePaymentIntentResponse {
676
684
  clientSecret: string;
@@ -948,6 +956,7 @@ interface MenuItemRow {
948
956
  price_adjustment: number;
949
957
  currency: CurrencyCode;
950
958
  is_active: boolean;
959
+ is_featured: boolean;
951
960
  tags: string[] | null;
952
961
  sort_index: string | null;
953
962
  }
package/dist/client.mjs CHANGED
@@ -160,6 +160,9 @@ class EventsResource extends BaseResource {
160
160
  if (options?.includePrivate) {
161
161
  queryParams.set("includePrivate", "true");
162
162
  }
163
+ if (options?.includeInactive) {
164
+ queryParams.set("includeInactive", "true");
165
+ }
163
166
  if (options?.isPublic !== void 0) {
164
167
  queryParams.set("isPublic", String(options.isPublic));
165
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",