@gethydra/sdk 0.1.16 → 0.1.17

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 +544 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1207,6 +1207,10 @@ interface components {
1207
1207
  last_name: string;
1208
1208
  /** @example +14155550123 */
1209
1209
  phone: string | null;
1210
+ /** @example 1990-06-15 */
1211
+ dob: string | null;
1212
+ /** @example true */
1213
+ birthday_gift_opt_in: boolean;
1210
1214
  /** @example en */
1211
1215
  locale: string | null;
1212
1216
  /** @example 5 */
@@ -1624,6 +1628,11 @@ interface components {
1624
1628
  } | null;
1625
1629
  /** @example INV-0001 */
1626
1630
  invoice_number: string | null;
1631
+ /**
1632
+ * @example card
1633
+ * @enum {string|null}
1634
+ */
1635
+ payment_method: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card" | null;
1627
1636
  /** @example pi_3abc123def456 */
1628
1637
  stripe_payment_intent_id: string | null;
1629
1638
  /**
@@ -3321,6 +3330,31 @@ interface components {
3321
3330
  */
3322
3331
  transferred: number;
3323
3332
  };
3333
+ PosStaff: {
3334
+ /** @example pstaff_abc123def456ghi789 */
3335
+ id: string;
3336
+ /** @example Sophie */
3337
+ name: string;
3338
+ /** @example 1234 */
3339
+ pin: string;
3340
+ /** @example true */
3341
+ is_active: boolean;
3342
+ /**
3343
+ * Format: date-time
3344
+ * @example 2026-11-10T12:00:00.000Z
3345
+ */
3346
+ created_at: string;
3347
+ /**
3348
+ * Format: date-time
3349
+ * @example 2026-11-10T12:00:00.000Z
3350
+ */
3351
+ updated_at: string;
3352
+ };
3353
+ PinVerifyResult: {
3354
+ /** @example true */
3355
+ valid: boolean;
3356
+ staff?: components["schemas"]["PosStaff"];
3357
+ };
3324
3358
  Post: {
3325
3359
  /** @example post_abc123 */
3326
3360
  id: string;
@@ -4300,6 +4334,70 @@ interface operations {
4300
4334
  };
4301
4335
  };
4302
4336
  };
4337
+ connectByoPaymentAccount: {
4338
+ parameters: {
4339
+ query?: never;
4340
+ header?: never;
4341
+ path?: never;
4342
+ cookie?: never;
4343
+ };
4344
+ requestBody?: {
4345
+ content: {
4346
+ "application/json": {
4347
+ secret_key: string;
4348
+ publishable_key: string;
4349
+ };
4350
+ };
4351
+ };
4352
+ responses: {
4353
+ /** @description BYO keys connected */
4354
+ 200: {
4355
+ headers: {
4356
+ [name: string]: unknown;
4357
+ };
4358
+ content?: never;
4359
+ };
4360
+ /** @description Invalid keys */
4361
+ 400: {
4362
+ headers: {
4363
+ [name: string]: unknown;
4364
+ };
4365
+ content?: never;
4366
+ };
4367
+ /** @description Payment account already connected via Connect */
4368
+ 409: {
4369
+ headers: {
4370
+ [name: string]: unknown;
4371
+ };
4372
+ content?: never;
4373
+ };
4374
+ };
4375
+ };
4376
+ disconnectByoPaymentAccount: {
4377
+ parameters: {
4378
+ query?: never;
4379
+ header?: never;
4380
+ path?: never;
4381
+ cookie?: never;
4382
+ };
4383
+ requestBody?: never;
4384
+ responses: {
4385
+ /** @description BYO keys removed */
4386
+ 200: {
4387
+ headers: {
4388
+ [name: string]: unknown;
4389
+ };
4390
+ content?: never;
4391
+ };
4392
+ /** @description Store is not in BYO mode */
4393
+ 400: {
4394
+ headers: {
4395
+ [name: string]: unknown;
4396
+ };
4397
+ content?: never;
4398
+ };
4399
+ };
4400
+ };
4303
4401
  getBillingStatus: {
4304
4402
  parameters: {
4305
4403
  query?: never;
@@ -9317,6 +9415,13 @@ interface operations {
9317
9415
  last_name: string;
9318
9416
  /** @example +14155550123 */
9319
9417
  phone?: string;
9418
+ /** @example 1990-06-15 */
9419
+ dob?: string | null;
9420
+ /**
9421
+ * @default false
9422
+ * @example true
9423
+ */
9424
+ birthday_gift_opt_in?: boolean;
9320
9425
  /** @example en */
9321
9426
  locale?: string | null;
9322
9427
  /** @default [] */
@@ -9427,6 +9532,10 @@ interface operations {
9427
9532
  last_name?: string;
9428
9533
  /** @example +14155550123 */
9429
9534
  phone?: string | null;
9535
+ /** @example 1990-06-15 */
9536
+ dob?: string | null;
9537
+ /** @example true */
9538
+ birthday_gift_opt_in?: boolean;
9430
9539
  /** @example en */
9431
9540
  locale?: string | null;
9432
9541
  /**
@@ -11142,6 +11251,7 @@ interface operations {
11142
11251
  financial_status?: "pending" | "paid" | "refunded" | "partially_refunded";
11143
11252
  fulfillment_status?: "unfulfilled" | "partial" | "fulfilled";
11144
11253
  customer_id?: string;
11254
+ payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11145
11255
  customer_email?: string;
11146
11256
  order_number?: number;
11147
11257
  created_after?: string;
@@ -11244,6 +11354,11 @@ interface operations {
11244
11354
  * @example 0
11245
11355
  */
11246
11356
  discount?: number;
11357
+ /**
11358
+ * @example card
11359
+ * @enum {string}
11360
+ */
11361
+ payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11247
11362
  /** @example Gift wrap requested. */
11248
11363
  notes?: string;
11249
11364
  /** @default {} */
@@ -11322,6 +11437,11 @@ interface operations {
11322
11437
  * @enum {string}
11323
11438
  */
11324
11439
  fulfillment_status?: "unfulfilled" | "partial" | "fulfilled";
11440
+ /**
11441
+ * @example card
11442
+ * @enum {string}
11443
+ */
11444
+ payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11325
11445
  /** @example Shipped via FedEx. */
11326
11446
  notes?: string;
11327
11447
  metadata?: {
@@ -12084,8 +12204,8 @@ interface operations {
12084
12204
  };
12085
12205
  searchSuggest: {
12086
12206
  parameters: {
12087
- query: {
12088
- q: string;
12207
+ query?: {
12208
+ q?: string;
12089
12209
  limit?: number;
12090
12210
  };
12091
12211
  header?: never;
@@ -15585,6 +15705,428 @@ interface operations {
15585
15705
  };
15586
15706
  };
15587
15707
  };
15708
+ listPosStaff: {
15709
+ parameters: {
15710
+ query?: {
15711
+ active?: "true" | "false";
15712
+ };
15713
+ header?: never;
15714
+ path?: never;
15715
+ cookie?: never;
15716
+ };
15717
+ requestBody?: never;
15718
+ responses: {
15719
+ /** @description Staff list */
15720
+ 200: {
15721
+ headers: {
15722
+ [name: string]: unknown;
15723
+ };
15724
+ content: {
15725
+ "application/json": {
15726
+ data: components["schemas"]["PosStaff"][];
15727
+ };
15728
+ };
15729
+ };
15730
+ };
15731
+ };
15732
+ createPosStaff: {
15733
+ parameters: {
15734
+ query?: never;
15735
+ header?: never;
15736
+ path?: never;
15737
+ cookie?: never;
15738
+ };
15739
+ requestBody?: {
15740
+ content: {
15741
+ "application/json": {
15742
+ /** @example Sophie */
15743
+ name: string;
15744
+ /** @example 1234 */
15745
+ pin: string;
15746
+ };
15747
+ };
15748
+ };
15749
+ responses: {
15750
+ /** @description Staff member created */
15751
+ 201: {
15752
+ headers: {
15753
+ [name: string]: unknown;
15754
+ };
15755
+ content: {
15756
+ "application/json": {
15757
+ data: components["schemas"]["PosStaff"];
15758
+ };
15759
+ };
15760
+ };
15761
+ };
15762
+ };
15763
+ deletePosStaff: {
15764
+ parameters: {
15765
+ query?: never;
15766
+ header?: never;
15767
+ path: {
15768
+ id: string;
15769
+ };
15770
+ cookie?: never;
15771
+ };
15772
+ requestBody?: never;
15773
+ responses: {
15774
+ /** @description Staff member deleted */
15775
+ 204: {
15776
+ headers: {
15777
+ [name: string]: unknown;
15778
+ };
15779
+ content?: never;
15780
+ };
15781
+ };
15782
+ };
15783
+ updatePosStaff: {
15784
+ parameters: {
15785
+ query?: never;
15786
+ header?: never;
15787
+ path: {
15788
+ id: string;
15789
+ };
15790
+ cookie?: never;
15791
+ };
15792
+ requestBody?: {
15793
+ content: {
15794
+ "application/json": {
15795
+ /** @example Sophie */
15796
+ name?: string;
15797
+ /** @example 1234 */
15798
+ pin?: string;
15799
+ /** @example true */
15800
+ is_active?: boolean;
15801
+ };
15802
+ };
15803
+ };
15804
+ responses: {
15805
+ /** @description Staff member updated */
15806
+ 200: {
15807
+ headers: {
15808
+ [name: string]: unknown;
15809
+ };
15810
+ content: {
15811
+ "application/json": {
15812
+ data: components["schemas"]["PosStaff"];
15813
+ };
15814
+ };
15815
+ };
15816
+ };
15817
+ };
15818
+ verifyPosPin: {
15819
+ parameters: {
15820
+ query?: never;
15821
+ header?: never;
15822
+ path?: never;
15823
+ cookie?: never;
15824
+ };
15825
+ requestBody?: {
15826
+ content: {
15827
+ "application/json": {
15828
+ /** @example pstaff_abc123 */
15829
+ staff_id?: string;
15830
+ /** @example 1234 */
15831
+ pin: string;
15832
+ };
15833
+ };
15834
+ };
15835
+ responses: {
15836
+ /** @description PIN verification result */
15837
+ 200: {
15838
+ headers: {
15839
+ [name: string]: unknown;
15840
+ };
15841
+ content: {
15842
+ "application/json": {
15843
+ data: components["schemas"]["PinVerifyResult"];
15844
+ };
15845
+ };
15846
+ };
15847
+ };
15848
+ };
15849
+ createTerminalConnectionToken: {
15850
+ parameters: {
15851
+ query?: never;
15852
+ header?: never;
15853
+ path?: never;
15854
+ cookie?: never;
15855
+ };
15856
+ requestBody?: {
15857
+ content: {
15858
+ "application/json": {
15859
+ location_id?: string;
15860
+ };
15861
+ };
15862
+ };
15863
+ responses: {
15864
+ /** @description Connection token created */
15865
+ 200: {
15866
+ headers: {
15867
+ [name: string]: unknown;
15868
+ };
15869
+ content: {
15870
+ "application/json": {
15871
+ data: {
15872
+ secret: string;
15873
+ };
15874
+ };
15875
+ };
15876
+ };
15877
+ };
15878
+ };
15879
+ createTerminalPaymentIntent: {
15880
+ parameters: {
15881
+ query?: never;
15882
+ header?: never;
15883
+ path?: never;
15884
+ cookie?: never;
15885
+ };
15886
+ requestBody?: {
15887
+ content: {
15888
+ "application/json": {
15889
+ amount: number;
15890
+ /** @default gbp */
15891
+ currency?: string;
15892
+ location_id: string;
15893
+ metadata?: {
15894
+ [key: string]: string;
15895
+ };
15896
+ };
15897
+ };
15898
+ };
15899
+ responses: {
15900
+ /** @description Payment intent created */
15901
+ 201: {
15902
+ headers: {
15903
+ [name: string]: unknown;
15904
+ };
15905
+ content: {
15906
+ "application/json": {
15907
+ data: {
15908
+ payment_intent_id: string;
15909
+ client_secret: string;
15910
+ };
15911
+ };
15912
+ };
15913
+ };
15914
+ };
15915
+ };
15916
+ getTerminalPaymentIntentStatus: {
15917
+ parameters: {
15918
+ query?: never;
15919
+ header?: never;
15920
+ path: {
15921
+ id: string;
15922
+ };
15923
+ cookie?: never;
15924
+ };
15925
+ requestBody?: never;
15926
+ responses: {
15927
+ /** @description Payment intent status */
15928
+ 200: {
15929
+ headers: {
15930
+ [name: string]: unknown;
15931
+ };
15932
+ content: {
15933
+ "application/json": {
15934
+ data: {
15935
+ status: string;
15936
+ amount: number;
15937
+ currency: string;
15938
+ };
15939
+ };
15940
+ };
15941
+ };
15942
+ };
15943
+ };
15944
+ completePosTerminalSale: {
15945
+ parameters: {
15946
+ query?: never;
15947
+ header?: never;
15948
+ path?: never;
15949
+ cookie?: never;
15950
+ };
15951
+ requestBody?: {
15952
+ content: {
15953
+ "application/json": {
15954
+ payment_intent_id: string;
15955
+ /** Format: email */
15956
+ customer_email: string;
15957
+ customer_id?: string;
15958
+ line_items: {
15959
+ variant_id: string;
15960
+ quantity: number;
15961
+ }[];
15962
+ location_id: string;
15963
+ /** @default 0 */
15964
+ discount?: number;
15965
+ discount_code?: string;
15966
+ notes?: string;
15967
+ metadata?: {
15968
+ [key: string]: string;
15969
+ };
15970
+ };
15971
+ };
15972
+ };
15973
+ responses: {
15974
+ /** @description Order created */
15975
+ 201: {
15976
+ headers: {
15977
+ [name: string]: unknown;
15978
+ };
15979
+ content: {
15980
+ "application/json": {
15981
+ data?: unknown;
15982
+ };
15983
+ };
15984
+ };
15985
+ };
15986
+ };
15987
+ cancelTerminalPaymentIntent: {
15988
+ parameters: {
15989
+ query?: never;
15990
+ header?: never;
15991
+ path?: never;
15992
+ cookie?: never;
15993
+ };
15994
+ requestBody?: {
15995
+ content: {
15996
+ "application/json": {
15997
+ payment_intent_id: string;
15998
+ location_id?: string;
15999
+ };
16000
+ };
16001
+ };
16002
+ responses: {
16003
+ /** @description Payment cancelled */
16004
+ 200: {
16005
+ headers: {
16006
+ [name: string]: unknown;
16007
+ };
16008
+ content: {
16009
+ "application/json": {
16010
+ data: {
16011
+ cancelled: boolean;
16012
+ };
16013
+ };
16014
+ };
16015
+ };
16016
+ };
16017
+ };
16018
+ getTerminalPendingPayment: {
16019
+ parameters: {
16020
+ query?: never;
16021
+ header?: never;
16022
+ path: {
16023
+ location_id: string;
16024
+ };
16025
+ cookie?: never;
16026
+ };
16027
+ requestBody?: never;
16028
+ responses: {
16029
+ /** @description Pending payment or null */
16030
+ 200: {
16031
+ headers: {
16032
+ [name: string]: unknown;
16033
+ };
16034
+ content: {
16035
+ "application/json": {
16036
+ data: {
16037
+ payment_intent_id: string;
16038
+ client_secret: string;
16039
+ amount: number;
16040
+ currency: string;
16041
+ created_at: string;
16042
+ } | null;
16043
+ };
16044
+ };
16045
+ };
16046
+ };
16047
+ };
16048
+ markTerminalPaymentCollected: {
16049
+ parameters: {
16050
+ query?: never;
16051
+ header?: never;
16052
+ path?: never;
16053
+ cookie?: never;
16054
+ };
16055
+ requestBody?: {
16056
+ content: {
16057
+ "application/json": {
16058
+ location_id: string;
16059
+ };
16060
+ };
16061
+ };
16062
+ responses: {
16063
+ /** @description Payment marked as collected */
16064
+ 200: {
16065
+ headers: {
16066
+ [name: string]: unknown;
16067
+ };
16068
+ content: {
16069
+ "application/json": {
16070
+ data: {
16071
+ collected: boolean;
16072
+ };
16073
+ };
16074
+ };
16075
+ };
16076
+ };
16077
+ };
16078
+ updateTerminalLocation: {
16079
+ parameters: {
16080
+ query?: never;
16081
+ header?: never;
16082
+ path: {
16083
+ id: string;
16084
+ };
16085
+ cookie?: never;
16086
+ };
16087
+ requestBody?: never;
16088
+ responses: {
16089
+ /** @description Location updated */
16090
+ 200: {
16091
+ headers: {
16092
+ [name: string]: unknown;
16093
+ };
16094
+ content: {
16095
+ "application/json": {
16096
+ data: {
16097
+ stripe_terminal_location_id: string;
16098
+ };
16099
+ };
16100
+ };
16101
+ };
16102
+ };
16103
+ };
16104
+ registerTerminalLocation: {
16105
+ parameters: {
16106
+ query?: never;
16107
+ header?: never;
16108
+ path: {
16109
+ id: string;
16110
+ };
16111
+ cookie?: never;
16112
+ };
16113
+ requestBody?: never;
16114
+ responses: {
16115
+ /** @description Location registered */
16116
+ 200: {
16117
+ headers: {
16118
+ [name: string]: unknown;
16119
+ };
16120
+ content: {
16121
+ "application/json": {
16122
+ data: {
16123
+ stripe_terminal_location_id: string;
16124
+ };
16125
+ };
16126
+ };
16127
+ };
16128
+ };
16129
+ };
15588
16130
  listPosts: {
15589
16131
  parameters: {
15590
16132
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",