order3000 0.14.1 → 0.14.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/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 */
@@ -577,6 +581,8 @@ interface EventByAccessor {
577
581
  schedule?: ScheduleWithTimeSlots;
578
582
  menus?: EventMenu[];
579
583
  posters?: EventPoster[];
584
+ /** Next occurrence date for recurring events (YYYY-MM-DD format) */
585
+ nextOccurrence?: string | null;
580
586
  }
581
587
  interface GetEventOptions {
582
588
  /** Expand related resources (schedule, timeSlots, menus, posters) */
@@ -665,6 +671,12 @@ interface CreatePaymentIntentRequest {
665
671
  fulfillmentType?: OrderFulfillmentType;
666
672
  /** When the order should be fulfilled (ISO 8601 datetime string or Date object) */
667
673
  fulfillmentAt: Date | string;
674
+ /** Customer first name (for Stripe metadata and customer record) */
675
+ customerFirstName?: string;
676
+ /** Customer last name (for Stripe metadata and customer record) */
677
+ customerLastName?: string;
678
+ /** Number of deposit containers the customer declares they will return at pickup */
679
+ declaredReturningCount?: number;
668
680
  }
669
681
  interface CreatePaymentIntentResponse {
670
682
  clientSecret: string;
@@ -678,6 +690,8 @@ interface ConfirmOrderResponse {
678
690
  id: string;
679
691
  status: string;
680
692
  publicId: string | null;
693
+ /** Customer ID for the order (for client-side tracking) */
694
+ customerId?: string;
681
695
  }
682
696
  type SubscriptionPeriod = 'week' | 'month' | 'year';
683
697
  type SubscriberStatus = 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing';
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 */
@@ -577,6 +581,8 @@ interface EventByAccessor {
577
581
  schedule?: ScheduleWithTimeSlots;
578
582
  menus?: EventMenu[];
579
583
  posters?: EventPoster[];
584
+ /** Next occurrence date for recurring events (YYYY-MM-DD format) */
585
+ nextOccurrence?: string | null;
580
586
  }
581
587
  interface GetEventOptions {
582
588
  /** Expand related resources (schedule, timeSlots, menus, posters) */
@@ -665,6 +671,12 @@ interface CreatePaymentIntentRequest {
665
671
  fulfillmentType?: OrderFulfillmentType;
666
672
  /** When the order should be fulfilled (ISO 8601 datetime string or Date object) */
667
673
  fulfillmentAt: Date | string;
674
+ /** Customer first name (for Stripe metadata and customer record) */
675
+ customerFirstName?: string;
676
+ /** Customer last name (for Stripe metadata and customer record) */
677
+ customerLastName?: string;
678
+ /** Number of deposit containers the customer declares they will return at pickup */
679
+ declaredReturningCount?: number;
668
680
  }
669
681
  interface CreatePaymentIntentResponse {
670
682
  clientSecret: string;
@@ -678,6 +690,8 @@ interface ConfirmOrderResponse {
678
690
  id: string;
679
691
  status: string;
680
692
  publicId: string | null;
693
+ /** Customer ID for the order (for client-side tracking) */
694
+ customerId?: string;
681
695
  }
682
696
  type SubscriptionPeriod = 'week' | 'month' | 'year';
683
697
  type SubscriberStatus = 'active' | 'paused' | 'cancelled' | 'past_due' | 'trialing';
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.1",
3
+ "version": "0.14.3",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -33,8 +33,8 @@
33
33
  "tsx": "^4.19.2",
34
34
  "typescript": "^5.9.3",
35
35
  "@kolaveri/eslint-config": "1.4.2",
36
- "@kolaveri/tsconfig": "1.0.1",
37
- "@kolaveri/prettier-config": "1.0.6"
36
+ "@kolaveri/prettier-config": "1.0.6",
37
+ "@kolaveri/tsconfig": "1.0.1"
38
38
  },
39
39
  "files": [
40
40
  "dist"