@gethydra/sdk 0.1.18 → 0.1.20

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 +43 -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;
@@ -1217,6 +1230,8 @@ interface components {
1217
1230
  order_count: number;
1218
1231
  /** @example 34950 */
1219
1232
  total_spent: number;
1233
+ /** @example 0 */
1234
+ store_credit_balance: number;
1220
1235
  /**
1221
1236
  * @example [
1222
1237
  * "vip",
@@ -4297,6 +4312,19 @@ interface operations {
4297
4312
  * @example orders
4298
4313
  */
4299
4314
  notification_from_email?: string | null;
4315
+ /** @description Partial update — only provided fields are changed, others are preserved. */
4316
+ booking_config?: {
4317
+ /** @example 60 */
4318
+ lookahead_days?: number;
4319
+ /** @example 1 */
4320
+ min_advance_hours?: number;
4321
+ /** @example 1000 */
4322
+ deposit_amount?: number;
4323
+ /** @example 1 */
4324
+ max_active_bookings?: number;
4325
+ /** @example true */
4326
+ confirmation_email?: boolean;
4327
+ };
4300
4328
  };
4301
4329
  };
4302
4330
  };
@@ -11379,6 +11407,8 @@ interface operations {
11379
11407
  created_before?: string;
11380
11408
  /** @description Filter orders by channel */
11381
11409
  channel_id?: string;
11410
+ /** @description Filter orders by location */
11411
+ location_id?: string;
11382
11412
  expand?: string;
11383
11413
  };
11384
11414
  header?: never;
@@ -11482,6 +11512,17 @@ interface operations {
11482
11512
  payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11483
11513
  /** @example Gift wrap requested. */
11484
11514
  notes?: string;
11515
+ /**
11516
+ * @description Location that placed this order (e.g. POS branch).
11517
+ * @example loc_abc123
11518
+ */
11519
+ location_id?: string;
11520
+ /**
11521
+ * @description Amount of store credit (in minor units) to debit from the customer. Requires customer_id.
11522
+ * @default 0
11523
+ * @example 0
11524
+ */
11525
+ store_credit_applied?: number;
11485
11526
  /** @default {} */
11486
11527
  metadata?: {
11487
11528
  [key: string]: string | number;
@@ -16111,6 +16152,8 @@ interface operations {
16111
16152
  /** @default 0 */
16112
16153
  discount?: number;
16113
16154
  discount_code?: string;
16155
+ /** @default 0 */
16156
+ store_credit_amount?: number;
16114
16157
  notes?: string;
16115
16158
  metadata?: {
16116
16159
  [key: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",