@gethydra/sdk 0.1.18 → 0.1.19

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +33 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -79,6 +79,19 @@ interface components {
79
79
  * ]
80
80
  */
81
81
  enabled_extensions: string[];
82
+ /** @description Booking configuration for the store */
83
+ booking_config: {
84
+ /** @example 60 */
85
+ lookahead_days: number;
86
+ /** @example 1 */
87
+ min_advance_hours: number;
88
+ /** @example 1000 */
89
+ deposit_amount: number;
90
+ /** @example 1 */
91
+ max_active_bookings: number;
92
+ /** @example true */
93
+ confirmation_email: boolean;
94
+ } | null;
82
95
  pricing_config: {
83
96
  /** @example 2 */
84
97
  next_key_index: number;
@@ -4297,6 +4310,19 @@ interface operations {
4297
4310
  * @example orders
4298
4311
  */
4299
4312
  notification_from_email?: string | null;
4313
+ /** @description Partial update — only provided fields are changed, others are preserved. */
4314
+ booking_config?: {
4315
+ /** @example 60 */
4316
+ lookahead_days?: number;
4317
+ /** @example 1 */
4318
+ min_advance_hours?: number;
4319
+ /** @example 1000 */
4320
+ deposit_amount?: number;
4321
+ /** @example 1 */
4322
+ max_active_bookings?: number;
4323
+ /** @example true */
4324
+ confirmation_email?: boolean;
4325
+ };
4300
4326
  };
4301
4327
  };
4302
4328
  };
@@ -11379,6 +11405,8 @@ interface operations {
11379
11405
  created_before?: string;
11380
11406
  /** @description Filter orders by channel */
11381
11407
  channel_id?: string;
11408
+ /** @description Filter orders by location */
11409
+ location_id?: string;
11382
11410
  expand?: string;
11383
11411
  };
11384
11412
  header?: never;
@@ -11482,6 +11510,11 @@ interface operations {
11482
11510
  payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11483
11511
  /** @example Gift wrap requested. */
11484
11512
  notes?: string;
11513
+ /**
11514
+ * @description Location that placed this order (e.g. POS branch).
11515
+ * @example loc_abc123
11516
+ */
11517
+ location_id?: string;
11485
11518
  /** @default {} */
11486
11519
  metadata?: {
11487
11520
  [key: string]: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",