@commercengine/pos 0.2.0 → 0.3.1

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/index.d.ts CHANGED
@@ -643,6 +643,66 @@ interface paths {
643
643
  patch?: never;
644
644
  trace?: never;
645
645
  };
646
+ "/pos/devices": {
647
+ parameters: {
648
+ query?: never;
649
+ header?: never;
650
+ path?: never;
651
+ cookie?: never;
652
+ };
653
+ /**
654
+ * List all available devices
655
+ * @description List all available devices.
656
+ */
657
+ get: operations["list-pos-devices"];
658
+ put?: never;
659
+ post?: never;
660
+ delete?: never;
661
+ options?: never;
662
+ head?: never;
663
+ patch?: never;
664
+ trace?: never;
665
+ };
666
+ "/pos/devices/{id}/claim": {
667
+ parameters: {
668
+ query?: never;
669
+ header?: never;
670
+ path?: never;
671
+ cookie?: never;
672
+ };
673
+ get?: never;
674
+ put?: never;
675
+ /**
676
+ * Claim device
677
+ * @description Claim device
678
+ */
679
+ post: operations["claim-pos-device"];
680
+ delete?: never;
681
+ options?: never;
682
+ head?: never;
683
+ patch?: never;
684
+ trace?: never;
685
+ };
686
+ "/pos/devices/{id}/unclaim": {
687
+ parameters: {
688
+ query?: never;
689
+ header?: never;
690
+ path?: never;
691
+ cookie?: never;
692
+ };
693
+ get?: never;
694
+ put?: never;
695
+ /**
696
+ * Unclaim device
697
+ * @description Unclaim device
698
+ */
699
+ post: operations["unclaim-pos-device"];
700
+ delete?: never;
701
+ options?: never;
702
+ head?: never;
703
+ patch?: never;
704
+ trace?: never;
705
+ };
646
706
  "/pos/fulfillment-options": {
647
707
  parameters: {
648
708
  query?: never;
@@ -663,6 +723,26 @@ interface paths {
663
723
  patch?: never;
664
724
  trace?: never;
665
725
  };
726
+ "/pos/locations": {
727
+ parameters: {
728
+ query?: never;
729
+ header?: never;
730
+ path?: never;
731
+ cookie?: never;
732
+ };
733
+ /**
734
+ * List all locations
735
+ * @description List all locations.
736
+ */
737
+ get: operations["list-pos-locations"];
738
+ put?: never;
739
+ post?: never;
740
+ delete?: never;
741
+ options?: never;
742
+ head?: never;
743
+ patch?: never;
744
+ trace?: never;
745
+ };
666
746
  "/pos/orders": {
667
747
  parameters: {
668
748
  query?: never;
@@ -1941,15 +2021,49 @@ interface components {
1941
2021
  readonly id?: string;
1942
2022
  name?: string;
1943
2023
  /** @enum {unknown} */
1944
- device_type?: "POS Terminal";
1945
- /** @description A Device ID for an app. */
2024
+ device_type?: "pos-terminal";
2025
+ /** @description A Device ID shared by POS device provider. */
1946
2026
  readonly external_device_id?: string;
1947
- manufacturer?: string;
2027
+ vendor?: string;
1948
2028
  model_number?: string;
1949
2029
  mac_address?: string | null;
1950
2030
  location_id?: string;
1951
2031
  readonly location_name?: string;
1952
2032
  };
2033
+ /** PosLocation */
2034
+ PosLocation: {
2035
+ /** @description warehouse id */
2036
+ readonly id?: string;
2037
+ /** @description legal name */
2038
+ name: string;
2039
+ /** @enum {unknown} */
2040
+ warehouse_type: "retail-store" | "distribution-center";
2041
+ /** @default true */
2042
+ active: boolean;
2043
+ gstin?: string | null;
2044
+ city: string;
2045
+ address_line1: string;
2046
+ address_line2?: string | null;
2047
+ landmark?: string | null;
2048
+ pincode: string;
2049
+ state: string;
2050
+ country: string;
2051
+ /** @default +91 */
2052
+ country_code: string;
2053
+ /** @description 10 digit number without country code. */
2054
+ contact_phone: number;
2055
+ contact_email: string;
2056
+ is_default?: boolean;
2057
+ image_url?: string | null;
2058
+ seller_warehouse_id?: string | null;
2059
+ can_receive_stock: boolean;
2060
+ can_ship_parcel: boolean;
2061
+ can_collect: boolean;
2062
+ /** @description this field will be always true for warehouse_type = retail-store. */
2063
+ is_checkout_point: boolean;
2064
+ accepts_returns: boolean;
2065
+ opening_hours?: string | null;
2066
+ };
1953
2067
  /** UpdateCustomerWithEmail */
1954
2068
  PosUpdateCustomerWithEmail: {
1955
2069
  /** Format: email */
@@ -1997,15 +2111,17 @@ interface components {
1997
2111
  device?: {
1998
2112
  id?: string;
1999
2113
  name?: string;
2000
- };
2114
+ } | null;
2001
2115
  location?: {
2002
2116
  id?: string;
2003
2117
  name?: string;
2004
2118
  };
2005
- role?: {
2006
- id?: string;
2007
- name?: string;
2008
- };
2119
+ roles?: {
2120
+ location_id?: string;
2121
+ location_name?: string;
2122
+ role_id?: string;
2123
+ role_name?: string;
2124
+ }[];
2009
2125
  };
2010
2126
  /** Product */
2011
2127
  Product: {
@@ -2554,7 +2670,7 @@ interface operations {
2554
2670
  requestBody: {
2555
2671
  content: {
2556
2672
  "application/json": {
2557
- device_id: string;
2673
+ location_id: string;
2558
2674
  email: string;
2559
2675
  };
2560
2676
  };
@@ -2591,7 +2707,7 @@ interface operations {
2591
2707
  requestBody: {
2592
2708
  content: {
2593
2709
  "application/json": {
2594
- device_id: string;
2710
+ location_id: string;
2595
2711
  /** @description 10 digit phone number without country code. */
2596
2712
  phone: string;
2597
2713
  /**
@@ -2634,7 +2750,7 @@ interface operations {
2634
2750
  requestBody: {
2635
2751
  content: {
2636
2752
  "application/json": {
2637
- device_id: string;
2753
+ location_id: string;
2638
2754
  /** @description 10 digit phone number without country code linked with WhatsApp. */
2639
2755
  phone: string;
2640
2756
  /**
@@ -3858,6 +3974,89 @@ interface operations {
3858
3974
  404: components["responses"]["NotFound"];
3859
3975
  };
3860
3976
  };
3977
+ "list-pos-devices": {
3978
+ parameters: {
3979
+ query?: never;
3980
+ header?: never;
3981
+ path?: never;
3982
+ cookie?: never;
3983
+ };
3984
+ requestBody?: never;
3985
+ responses: {
3986
+ /** @description OK */
3987
+ 200: {
3988
+ headers: {
3989
+ [name: string]: unknown;
3990
+ };
3991
+ content: {
3992
+ "application/json": {
3993
+ message: string;
3994
+ success: boolean;
3995
+ content: {
3996
+ devices?: components["schemas"]["PosDevice"];
3997
+ };
3998
+ };
3999
+ };
4000
+ };
4001
+ 401: components["responses"]["Unauthorized"];
4002
+ };
4003
+ };
4004
+ "claim-pos-device": {
4005
+ parameters: {
4006
+ query?: never;
4007
+ header?: never;
4008
+ path: {
4009
+ /** @description device id */
4010
+ id: string;
4011
+ };
4012
+ cookie?: never;
4013
+ };
4014
+ requestBody?: never;
4015
+ responses: {
4016
+ /** @description OK */
4017
+ 200: {
4018
+ headers: {
4019
+ [name: string]: unknown;
4020
+ };
4021
+ content: {
4022
+ "application/json": {
4023
+ message: string;
4024
+ success: boolean;
4025
+ };
4026
+ };
4027
+ };
4028
+ 401: components["responses"]["Unauthorized"];
4029
+ 404: components["responses"]["NotFound"];
4030
+ };
4031
+ };
4032
+ "unclaim-pos-device": {
4033
+ parameters: {
4034
+ query?: never;
4035
+ header?: never;
4036
+ path: {
4037
+ /** @description device id */
4038
+ id: string;
4039
+ };
4040
+ cookie?: never;
4041
+ };
4042
+ requestBody?: never;
4043
+ responses: {
4044
+ /** @description OK */
4045
+ 200: {
4046
+ headers: {
4047
+ [name: string]: unknown;
4048
+ };
4049
+ content: {
4050
+ "application/json": {
4051
+ message: string;
4052
+ success: boolean;
4053
+ };
4054
+ };
4055
+ };
4056
+ 401: components["responses"]["Unauthorized"];
4057
+ 404: components["responses"]["NotFound"];
4058
+ };
4059
+ };
3861
4060
  "get-pos-fulfillment-options": {
3862
4061
  parameters: {
3863
4062
  query?: never;
@@ -3899,6 +4098,33 @@ interface operations {
3899
4098
  404: components["responses"]["NotFound"];
3900
4099
  };
3901
4100
  };
4101
+ "list-pos-locations": {
4102
+ parameters: {
4103
+ query?: never;
4104
+ header?: never;
4105
+ path?: never;
4106
+ cookie?: never;
4107
+ };
4108
+ requestBody?: never;
4109
+ responses: {
4110
+ /** @description OK */
4111
+ 200: {
4112
+ headers: {
4113
+ [name: string]: unknown;
4114
+ };
4115
+ content: {
4116
+ "application/json": {
4117
+ message: string;
4118
+ success: boolean;
4119
+ content: {
4120
+ locations?: components["schemas"]["PosLocation"][];
4121
+ };
4122
+ };
4123
+ };
4124
+ };
4125
+ 401: components["responses"]["Unauthorized"];
4126
+ };
4127
+ };
3902
4128
  "create-pos-order": {
3903
4129
  parameters: {
3904
4130
  query?: never;
@@ -3910,6 +4136,8 @@ interface operations {
3910
4136
  content: {
3911
4137
  "application/json": {
3912
4138
  cart_id: string;
4139
+ /** @description Optional. if provided, this device will be used for the payment of this order. Otherwise, already claimed device will be used for the payment purpose. */
4140
+ device_id?: string;
3913
4141
  } & (components["schemas"]["PayWithCash"] | components["schemas"]["PayWithUpi"] | components["schemas"]["PayWithCard"] | components["schemas"]["PayWithPaymentGateway"]);
3914
4142
  };
3915
4143
  };
@@ -4300,7 +4528,7 @@ interface paths$1 {
4300
4528
  * List all inventories
4301
4529
  * @description List all inventories
4302
4530
  */
4303
- get: operations$1["pos-list-inventories"];
4531
+ get: operations$1["pos-list-inventory"];
4304
4532
  put?: never;
4305
4533
  post?: never;
4306
4534
  delete?: never;
@@ -4320,7 +4548,7 @@ interface paths$1 {
4320
4548
  * List all inventories activities
4321
4549
  * @description Lists all inventory related activities of stock movements. This provides a comprehensive audit trail of inventory operations such as receiving, reservations, adjustments, transfers, and sales.
4322
4550
  */
4323
- get: operations$1["pos-list-inventories-activities"];
4551
+ get: operations$1["pos-list-inventory-activity"];
4324
4552
  put?: never;
4325
4553
  post?: never;
4326
4554
  delete?: never;
@@ -4340,7 +4568,7 @@ interface paths$1 {
4340
4568
  * Retrieve inventory detail
4341
4569
  * @description Retrieves inventory details for a specific product, product variant, or lot/batch based on the parameters provided.
4342
4570
  */
4343
- get: operations$1["pos-get-inventory-detail"];
4571
+ get: operations$1["pos-list-inventory-detail"];
4344
4572
  put?: never;
4345
4573
  post?: never;
4346
4574
  delete?: never;
@@ -4360,7 +4588,7 @@ interface paths$1 {
4360
4588
  * List all customers
4361
4589
  * @description List all customers
4362
4590
  */
4363
- get: operations$1["pos-get-admin-customers"];
4591
+ get: operations$1["pos-list-customers"];
4364
4592
  put?: never;
4365
4593
  post?: never;
4366
4594
  delete?: never;
@@ -4380,7 +4608,7 @@ interface paths$1 {
4380
4608
  * Retrieve customer detail
4381
4609
  * @description Retrieve customer detail
4382
4610
  */
4383
- get: operations$1["pos-get-admin-customers-id"];
4611
+ get: operations$1["pos-get-customer-detail"];
4384
4612
  put?: never;
4385
4613
  post?: never;
4386
4614
  delete?: never;
@@ -4400,7 +4628,7 @@ interface paths$1 {
4400
4628
  * List all orders
4401
4629
  * @description List all orders
4402
4630
  */
4403
- get: operations$1["pos-list-admin-orders"];
4631
+ get: operations$1["pos-list-orders"];
4404
4632
  put?: never;
4405
4633
  post?: never;
4406
4634
  delete?: never;
@@ -4420,7 +4648,7 @@ interface paths$1 {
4420
4648
  * Retrieve order details
4421
4649
  * @description Retrieve order details
4422
4650
  */
4423
- get: operations$1["pos-get-admin-order"];
4651
+ get: operations$1["pos-get-order-detail"];
4424
4652
  put?: never;
4425
4653
  post?: never;
4426
4654
  delete?: never;
@@ -4500,7 +4728,7 @@ interface paths$1 {
4500
4728
  * Retrieve order shipments
4501
4729
  * @description Retrieve order shipments
4502
4730
  */
4503
- get: operations$1["pos-get-order-shipments"];
4731
+ get: operations$1["pos-list-order-shipments"];
4504
4732
  put?: never;
4505
4733
  post?: never;
4506
4734
  delete?: never;
@@ -4540,7 +4768,7 @@ interface paths$1 {
4540
4768
  * Check Inventory
4541
4769
  * @description Check Inventory
4542
4770
  */
4543
- get: operations$1["pos-check-inventory-for-order"];
4771
+ get: operations$1["pos-check-order-inventory"];
4544
4772
  put?: never;
4545
4773
  post?: never;
4546
4774
  delete?: never;
@@ -4562,7 +4790,7 @@ interface paths$1 {
4562
4790
  * Refund shortfall
4563
4791
  * @description Refund shortfall
4564
4792
  */
4565
- post: operations$1["pos-refund-shortfall-for-order"];
4793
+ post: operations$1["pos-refund-shortfall"];
4566
4794
  delete?: never;
4567
4795
  options?: never;
4568
4796
  head?: never;
@@ -4580,7 +4808,7 @@ interface paths$1 {
4580
4808
  * Retrieve shipment detail
4581
4809
  * @description Retrieve shipment detail
4582
4810
  */
4583
- get: operations$1["pos-get-shipment"];
4811
+ get: operations$1["pos-get-shipment-detail"];
4584
4812
  put?: never;
4585
4813
  post?: never;
4586
4814
  delete?: never;
@@ -5348,25 +5576,47 @@ interface components$1 {
5348
5576
  WalletPayment: components$1["schemas"]["OrderPaymentInfo"] & {
5349
5577
  wallet_name?: string;
5350
5578
  };
5351
- /** Warehouse */
5579
+ /**
5580
+ * Warehouse
5581
+ * @description Validations:
5582
+ *
5583
+ * 1) Either 'can_receive_stock' or 'accepts_returns' must be set to true.
5584
+ * 2) 'can_receive_stock' cannot be set to false while the warehouse has existing inventory.
5585
+ * 3) 'is_checkout_point' must be true when the warehouse type is 'retail-store'.
5586
+ * 4) If 'can_receive_stock' is false then 'can_ship_parcel' and 'can_collect' fields should be false.
5587
+ */
5352
5588
  Warehouse: {
5353
- /** @description warehouse ulid */
5354
- readonly id: string;
5589
+ /** @description warehouse id */
5590
+ readonly id?: string;
5355
5591
  /** @description legal name */
5356
- readonly name: string;
5357
- readonly gstin?: string;
5358
- readonly city: string;
5359
- readonly address_line1: string;
5360
- readonly address_line2?: string;
5361
- readonly larndmark?: string;
5592
+ name: string;
5593
+ /** @enum {unknown} */
5594
+ warehouse_type: "retail-store" | "distribution-center";
5595
+ /** @default true */
5596
+ active: boolean;
5597
+ gstin?: string | null;
5598
+ city: string;
5599
+ address_line1: string;
5600
+ address_line2?: string | null;
5601
+ landmark?: string | null;
5362
5602
  pincode: string;
5363
5603
  state: string;
5604
+ country: string;
5605
+ /** @default +91 */
5606
+ country_code: string;
5364
5607
  /** @description 10 digit number without country code. */
5365
5608
  contact_phone: number;
5366
- /** Format: email */
5367
5609
  contact_email: string;
5368
- /** @default false */
5369
- is_default: boolean;
5610
+ is_default?: boolean;
5611
+ image_url?: string | null;
5612
+ seller_warehouse_id?: string | null;
5613
+ can_receive_stock: boolean;
5614
+ can_ship_parcel: boolean;
5615
+ can_collect: boolean;
5616
+ /** @description this field will be always true for warehouse_type = retail-store. */
5617
+ is_checkout_point: boolean;
5618
+ accepts_returns: boolean;
5619
+ opening_hours?: string | null;
5370
5620
  };
5371
5621
  /** WarehouseBasicDetail */
5372
5622
  WarehouseBasicDetail: {
@@ -5413,7 +5663,7 @@ interface components$1 {
5413
5663
  pathItems: never;
5414
5664
  }
5415
5665
  interface operations$1 {
5416
- "pos-list-inventories": {
5666
+ "pos-list-inventory": {
5417
5667
  parameters: {
5418
5668
  query?: {
5419
5669
  /** @description page number of pagination list */
@@ -5448,7 +5698,7 @@ interface operations$1 {
5448
5698
  };
5449
5699
  };
5450
5700
  };
5451
- "pos-list-inventories-activities": {
5701
+ "pos-list-inventory-activity": {
5452
5702
  parameters: {
5453
5703
  query?: {
5454
5704
  /** @description page number of pagination list */
@@ -5483,7 +5733,7 @@ interface operations$1 {
5483
5733
  };
5484
5734
  };
5485
5735
  };
5486
- "pos-get-inventory-detail": {
5736
+ "pos-list-inventory-detail": {
5487
5737
  parameters: {
5488
5738
  query: {
5489
5739
  /** @description lot batch of selected productor or variant. */
@@ -5516,7 +5766,7 @@ interface operations$1 {
5516
5766
  };
5517
5767
  };
5518
5768
  };
5519
- "pos-get-admin-customers": {
5769
+ "pos-list-customers": {
5520
5770
  parameters: {
5521
5771
  query?: {
5522
5772
  /** @description page number of pagination list */
@@ -5554,7 +5804,7 @@ interface operations$1 {
5554
5804
  };
5555
5805
  };
5556
5806
  };
5557
- "pos-get-admin-customers-id": {
5807
+ "pos-get-customer-detail": {
5558
5808
  parameters: {
5559
5809
  query?: never;
5560
5810
  header?: never;
@@ -5583,7 +5833,7 @@ interface operations$1 {
5583
5833
  };
5584
5834
  };
5585
5835
  };
5586
- "pos-list-admin-orders": {
5836
+ "pos-list-orders": {
5587
5837
  parameters: {
5588
5838
  query?: {
5589
5839
  /** @description page number of pagination list */
@@ -5621,7 +5871,7 @@ interface operations$1 {
5621
5871
  };
5622
5872
  };
5623
5873
  };
5624
- "pos-get-admin-order": {
5874
+ "pos-get-order-detail": {
5625
5875
  parameters: {
5626
5876
  query?: never;
5627
5877
  header?: never;
@@ -5746,7 +5996,7 @@ interface operations$1 {
5746
5996
  };
5747
5997
  };
5748
5998
  };
5749
- "pos-get-order-shipments": {
5999
+ "pos-list-order-shipments": {
5750
6000
  parameters: {
5751
6001
  query?: never;
5752
6002
  header?: never;
@@ -5813,7 +6063,7 @@ interface operations$1 {
5813
6063
  };
5814
6064
  };
5815
6065
  };
5816
- "pos-check-inventory-for-order": {
6066
+ "pos-check-order-inventory": {
5817
6067
  parameters: {
5818
6068
  query?: never;
5819
6069
  header?: never;
@@ -5860,7 +6110,7 @@ interface operations$1 {
5860
6110
  };
5861
6111
  };
5862
6112
  };
5863
- "pos-refund-shortfall-for-order": {
6113
+ "pos-refund-shortfall": {
5864
6114
  parameters: {
5865
6115
  query?: never;
5866
6116
  header?: never;
@@ -5901,7 +6151,7 @@ interface operations$1 {
5901
6151
  };
5902
6152
  };
5903
6153
  };
5904
- "pos-get-shipment": {
6154
+ "pos-get-shipment-detail": {
5905
6155
  parameters: {
5906
6156
  query?: never;
5907
6157
  header?: never;
@@ -6515,6 +6765,7 @@ type PayuPaymentGatewayParams = components['schemas']['PayuPaymentGatewayParams'
6515
6765
  type PercentageDiscountRule = components['schemas']['PercentageDiscountRule'];
6516
6766
  type PincodeServiceability = components['schemas']['PincodeServiceability'];
6517
6767
  type PosDevice = components['schemas']['PosDevice'];
6768
+ type PosLocation = components['schemas']['PosLocation'];
6518
6769
  type PosUpdateCustomerWithEmail = components['schemas']['PosUpdateCustomerWithEmail'];
6519
6770
  type PosUpdateCustomerWithId = components['schemas']['PosUpdateCustomerWithId'];
6520
6771
  type PosUpdateCustomerWithPhone = components['schemas']['PosUpdateCustomerWithPhone'];
@@ -6666,9 +6917,17 @@ type PosListSkusResponse = paths['/pos/catalog/skus']['get']['responses'][200]['
6666
6917
  type PosListSkusContent = PosListSkusResponse['content'];
6667
6918
  type PosListSkusQuery = paths['/pos/catalog/skus']['get']['parameters']['query'];
6668
6919
  type PosListSkusHeaderParams = paths['/pos/catalog/skus']['get']['parameters']['header'];
6920
+ type ListPosDevicesResponse = paths['/pos/devices']['get']['responses'][200]['content']['application/json'];
6921
+ type ListPosDevicesContent = ListPosDevicesResponse['content'];
6922
+ type ClaimPosDeviceResponse = paths['/pos/devices/{id}/claim']['post']['responses'][200]['content']['application/json'];
6923
+ type ClaimPosDevicePathParams = paths['/pos/devices/{id}/claim']['post']['parameters']['path'];
6924
+ type UnclaimPosDeviceResponse = paths['/pos/devices/{id}/unclaim']['post']['responses'][200]['content']['application/json'];
6925
+ type UnclaimPosDevicePathParams = paths['/pos/devices/{id}/unclaim']['post']['parameters']['path'];
6669
6926
  type GetPosFulfillmentOptionsResponse = paths['/pos/fulfillment-options']['post']['responses'][200]['content']['application/json'];
6670
6927
  type GetPosFulfillmentOptionsContent = GetPosFulfillmentOptionsResponse['content'];
6671
6928
  type GetPosFulfillmentOptionsBody = NonNullable<paths['/pos/fulfillment-options']['post']['requestBody']>['content']['application/json'];
6929
+ type ListPosLocationsResponse = paths['/pos/locations']['get']['responses'][200]['content']['application/json'];
6930
+ type ListPosLocationsContent = ListPosLocationsResponse['content'];
6672
6931
  type CreatePosOrderResponse = paths['/pos/orders']['post']['responses'][200]['content']['application/json'];
6673
6932
  type CreatePosOrderContent = CreatePosOrderResponse['content'];
6674
6933
  type CreatePosOrderBody = NonNullable<paths['/pos/orders']['post']['requestBody']>['content']['application/json'];
@@ -6679,61 +6938,61 @@ type PosListPaymentOptionsResponse = paths['/pos/payments/payment-options']['get
6679
6938
  type PosListPaymentOptionsContent = PosListPaymentOptionsResponse['content'];
6680
6939
  //#endregion
6681
6940
  //#region src/types/admin-pos-api-types.d.ts
6682
- type PosListInventoriesResponse = paths$1['/pos/catalog/inventories']['get']['responses'][200]['content']['application/json'];
6683
- type PosListInventoriesContent = PosListInventoriesResponse['content'];
6684
- type PosListInventoriesQuery = paths$1['/pos/catalog/inventories']['get']['parameters']['query'];
6685
- type PosListInventoriesActivitiesResponse = paths$1['/pos/catalog/inventories/activites']['get']['responses'][200]['content']['application/json'];
6686
- type PosListInventoriesActivitiesContent = PosListInventoriesActivitiesResponse['content'];
6687
- type PosListInventoriesActivitiesQuery = paths$1['/pos/catalog/inventories/activites']['get']['parameters']['query'];
6688
- type PosGetInventoryDetailResponse = paths$1['/pos/catalog/inventories/detail']['get']['responses'][200]['content']['application/json'];
6689
- type PosGetInventoryDetailContent = PosGetInventoryDetailResponse['content'];
6690
- type PosGetInventoryDetailQuery = paths$1['/pos/catalog/inventories/detail']['get']['parameters']['query'];
6691
- type PosGetAdminCustomersResponse = paths$1['/pos/customers']['get']['responses'][200]['content']['application/json'];
6692
- type PosGetAdminCustomersContent = PosGetAdminCustomersResponse['content'];
6693
- type PosGetAdminCustomersQuery = paths$1['/pos/customers']['get']['parameters']['query'];
6694
- type PosGetAdminCustomersIdResponse = paths$1['/pos/customers/{id}']['get']['responses'][200]['content']['application/json'];
6695
- type PosGetAdminCustomersIdContent = PosGetAdminCustomersIdResponse['content'];
6696
- type PosGetAdminCustomersIdPathParams = paths$1['/pos/customers/{id}']['get']['parameters']['path'];
6697
- type PosListAdminOrdersResponse = paths$1['/pos/orders']['get']['responses'][200]['content']['application/json'];
6698
- type PosListAdminOrdersContent = PosListAdminOrdersResponse['content'];
6699
- type PosListAdminOrdersQuery = paths$1['/pos/orders']['get']['parameters']['query'];
6700
- type PosGetAdminOrderResponse = paths$1['/pos/orders/{order_number}']['get']['responses'][200]['content']['application/json'];
6701
- type PosGetAdminOrderContent = PosGetAdminOrderResponse['content'];
6702
- type PosGetAdminOrderPathParams = paths$1['/pos/orders/{order_number}']['get']['parameters']['path'];
6703
- type PosListOrderActivityResponse = paths$1['/pos/orders/{order_number}/activity']['get']['responses'][200]['content']['application/json'];
6704
- type PosListOrderActivityContent = PosListOrderActivityResponse['content'];
6705
- type PosListOrderActivityPathParams = paths$1['/pos/orders/{order_number}/activity']['get']['parameters']['path'];
6706
- type PosGetOrderInvoiceResponse = paths$1['/pos/orders/{order_number}/invoice']['get']['responses'][200]['content']['application/json'];
6707
- type PosGetOrderInvoiceContent = PosGetOrderInvoiceResponse['content'];
6708
- type PosGetOrderInvoiceQuery = paths$1['/pos/orders/{order_number}/invoice']['get']['parameters']['query'];
6709
- type PosGetOrderInvoicePathParams = paths$1['/pos/orders/{order_number}/invoice']['get']['parameters']['path'];
6710
- type PosGetOrderReceiptResponse = paths$1['/pos/orders/{order_number}/receipt']['get']['responses'][200]['content']['application/json'];
6711
- type PosGetOrderReceiptContent = PosGetOrderReceiptResponse['content'];
6712
- type PosGetOrderReceiptQuery = paths$1['/pos/orders/{order_number}/receipt']['get']['parameters']['query'];
6713
- type PosGetOrderReceiptPathParams = paths$1['/pos/orders/{order_number}/receipt']['get']['parameters']['path'];
6714
- type PosGetOrderShipmentsResponse = paths$1['/pos/orders/{order_number}/shipments']['get']['responses'][200]['content']['application/json'];
6715
- type PosGetOrderShipmentsContent = PosGetOrderShipmentsResponse['content'];
6716
- type PosGetOrderShipmentsPathParams = paths$1['/pos/orders/{order_number}/shipments']['get']['parameters']['path'];
6717
- type PosListShipmentsResponse = paths$1['/pos/shipping/shipments']['get']['responses'][200]['content']['application/json'];
6718
- type PosListShipmentsContent = PosListShipmentsResponse['content'];
6719
- type PosListShipmentsQuery = paths$1['/pos/shipping/shipments']['get']['parameters']['query'];
6720
- type PosCheckInventoryForOrderResponse = paths$1['/pos/shipping/shipments/{order_number}/check-inventory']['get']['responses'][200]['content']['application/json'];
6721
- type PosCheckInventoryForOrderContent = PosCheckInventoryForOrderResponse['content'];
6722
- type PosCheckInventoryForOrderPathParams = paths$1['/pos/shipping/shipments/{order_number}/check-inventory']['get']['parameters']['path'];
6723
- type PosRefundShortfallForOrderResponse = paths$1['/pos/shipping/shipments/{order_number}/refund-shortfall']['post']['responses'][200]['content']['application/json'];
6724
- type PosRefundShortfallForOrderPathParams = paths$1['/pos/shipping/shipments/{order_number}/refund-shortfall']['post']['parameters']['path'];
6725
- type PosRefundShortfallForOrderBody = NonNullable<paths$1['/pos/shipping/shipments/{order_number}/refund-shortfall']['post']['requestBody']>['content']['application/json'];
6726
- type PosGetShipmentResponse = paths$1['/pos/shipping/shipments/{reference_number}']['get']['responses'][200]['content']['application/json'];
6727
- type PosGetShipmentContent = PosGetShipmentResponse['content'];
6728
- type PosGetShipmentPathParams = paths$1['/pos/shipping/shipments/{reference_number}']['get']['parameters']['path'];
6729
- type PosGetShipmentInvoiceResponse = paths$1['/pos/shipping/shipments/{reference_number}/invoice']['get']['responses'][200]['content']['application/json'];
6730
- type PosGetShipmentInvoiceContent = PosGetShipmentInvoiceResponse['content'];
6731
- type PosGetShipmentInvoiceQuery = paths$1['/pos/shipping/shipments/{reference_number}/invoice']['get']['parameters']['query'];
6732
- type PosGetShipmentInvoicePathParams = paths$1['/pos/shipping/shipments/{reference_number}/invoice']['get']['parameters']['path'];
6733
- type PosUpdateShipmentResponse = paths$1['/pos/shipping/shipments/{reference_number}/manual-update']['put']['responses'][200]['content']['application/json'];
6734
- type PosUpdateShipmentContent = PosUpdateShipmentResponse['content'];
6735
- type PosUpdateShipmentPathParams = paths$1['/pos/shipping/shipments/{reference_number}/manual-update']['put']['parameters']['path'];
6736
- type PosUpdateShipmentBody = NonNullable<paths$1['/pos/shipping/shipments/{reference_number}/manual-update']['put']['requestBody']>['content']['application/json'];
6941
+ type PosListInventoryResponse = paths$1["/pos/catalog/inventories"]["get"]["responses"][200]["content"]["application/json"];
6942
+ type PosListInventoryContent = PosListInventoryResponse["content"];
6943
+ type PosListInventoryQuery = paths$1["/pos/catalog/inventories"]["get"]["parameters"]["query"];
6944
+ type PosListInventoryActivityResponse = paths$1["/pos/catalog/inventories/activites"]["get"]["responses"][200]["content"]["application/json"];
6945
+ type PosListInventoryActivityContent = PosListInventoryActivityResponse["content"];
6946
+ type PosListInventoryActivityQuery = paths$1["/pos/catalog/inventories/activites"]["get"]["parameters"]["query"];
6947
+ type PosListInventoryDetailResponse = paths$1["/pos/catalog/inventories/detail"]["get"]["responses"][200]["content"]["application/json"];
6948
+ type PosListInventoryDetailContent = PosListInventoryDetailResponse["content"];
6949
+ type PosListInventoryDetailQuery = paths$1["/pos/catalog/inventories/detail"]["get"]["parameters"]["query"];
6950
+ type PosListCustomersResponse = paths$1["/pos/customers"]["get"]["responses"][200]["content"]["application/json"];
6951
+ type PosListCustomersContent = PosListCustomersResponse["content"];
6952
+ type PosListCustomersQuery = paths$1["/pos/customers"]["get"]["parameters"]["query"];
6953
+ type PosGetCustomerDetailResponse = paths$1["/pos/customers/{id}"]["get"]["responses"][200]["content"]["application/json"];
6954
+ type PosGetCustomerDetailContent = PosGetCustomerDetailResponse["content"];
6955
+ type PosGetCustomerDetailPathParams = paths$1["/pos/customers/{id}"]["get"]["parameters"]["path"];
6956
+ type PosListOrdersResponse = paths$1["/pos/orders"]["get"]["responses"][200]["content"]["application/json"];
6957
+ type PosListOrdersContent = PosListOrdersResponse["content"];
6958
+ type PosListOrdersQuery = paths$1["/pos/orders"]["get"]["parameters"]["query"];
6959
+ type PosGetOrderDetailResponse = paths$1["/pos/orders/{order_number}"]["get"]["responses"][200]["content"]["application/json"];
6960
+ type PosGetOrderDetailContent = PosGetOrderDetailResponse["content"];
6961
+ type PosGetOrderDetailPathParams = paths$1["/pos/orders/{order_number}"]["get"]["parameters"]["path"];
6962
+ type PosListOrderActivityResponse = paths$1["/pos/orders/{order_number}/activity"]["get"]["responses"][200]["content"]["application/json"];
6963
+ type PosListOrderActivityContent = PosListOrderActivityResponse["content"];
6964
+ type PosListOrderActivityPathParams = paths$1["/pos/orders/{order_number}/activity"]["get"]["parameters"]["path"];
6965
+ type PosGetOrderInvoiceResponse = paths$1["/pos/orders/{order_number}/invoice"]["get"]["responses"][200]["content"]["application/json"];
6966
+ type PosGetOrderInvoiceContent = PosGetOrderInvoiceResponse["content"];
6967
+ type PosGetOrderInvoiceQuery = paths$1["/pos/orders/{order_number}/invoice"]["get"]["parameters"]["query"];
6968
+ type PosGetOrderInvoicePathParams = paths$1["/pos/orders/{order_number}/invoice"]["get"]["parameters"]["path"];
6969
+ type PosGetOrderReceiptResponse = paths$1["/pos/orders/{order_number}/receipt"]["get"]["responses"][200]["content"]["application/json"];
6970
+ type PosGetOrderReceiptContent = PosGetOrderReceiptResponse["content"];
6971
+ type PosGetOrderReceiptQuery = paths$1["/pos/orders/{order_number}/receipt"]["get"]["parameters"]["query"];
6972
+ type PosGetOrderReceiptPathParams = paths$1["/pos/orders/{order_number}/receipt"]["get"]["parameters"]["path"];
6973
+ type PosListOrderShipmentsResponse = paths$1["/pos/orders/{order_number}/shipments"]["get"]["responses"][200]["content"]["application/json"];
6974
+ type PosListOrderShipmentsContent = PosListOrderShipmentsResponse["content"];
6975
+ type PosListOrderShipmentsPathParams = paths$1["/pos/orders/{order_number}/shipments"]["get"]["parameters"]["path"];
6976
+ type PosListShipmentsResponse = paths$1["/pos/shipping/shipments"]["get"]["responses"][200]["content"]["application/json"];
6977
+ type PosListShipmentsContent = PosListShipmentsResponse["content"];
6978
+ type PosListShipmentsQuery = paths$1["/pos/shipping/shipments"]["get"]["parameters"]["query"];
6979
+ type PosCheckOrderInventoryResponse = paths$1["/pos/shipping/shipments/{order_number}/check-inventory"]["get"]["responses"][200]["content"]["application/json"];
6980
+ type PosCheckOrderInventoryContent = PosCheckOrderInventoryResponse["content"];
6981
+ type PosCheckOrderInventoryPathParams = paths$1["/pos/shipping/shipments/{order_number}/check-inventory"]["get"]["parameters"]["path"];
6982
+ type PosRefundShortfallResponse = paths$1["/pos/shipping/shipments/{order_number}/refund-shortfall"]["post"]["responses"][200]["content"]["application/json"];
6983
+ type PosRefundShortfallPathParams = paths$1["/pos/shipping/shipments/{order_number}/refund-shortfall"]["post"]["parameters"]["path"];
6984
+ type PosRefundShortfallBody = NonNullable<paths$1["/pos/shipping/shipments/{order_number}/refund-shortfall"]["post"]["requestBody"]>["content"]["application/json"];
6985
+ type PosGetShipmentDetailResponse = paths$1["/pos/shipping/shipments/{reference_number}"]["get"]["responses"][200]["content"]["application/json"];
6986
+ type PosGetShipmentDetailContent = PosGetShipmentDetailResponse["content"];
6987
+ type PosGetShipmentDetailPathParams = paths$1["/pos/shipping/shipments/{reference_number}"]["get"]["parameters"]["path"];
6988
+ type PosGetShipmentInvoiceResponse = paths$1["/pos/shipping/shipments/{reference_number}/invoice"]["get"]["responses"][200]["content"]["application/json"];
6989
+ type PosGetShipmentInvoiceContent = PosGetShipmentInvoiceResponse["content"];
6990
+ type PosGetShipmentInvoiceQuery = paths$1["/pos/shipping/shipments/{reference_number}/invoice"]["get"]["parameters"]["query"];
6991
+ type PosGetShipmentInvoicePathParams = paths$1["/pos/shipping/shipments/{reference_number}/invoice"]["get"]["parameters"]["path"];
6992
+ type PosUpdateShipmentResponse = paths$1["/pos/shipping/shipments/{reference_number}/manual-update"]["put"]["responses"][200]["content"]["application/json"];
6993
+ type PosUpdateShipmentContent = PosUpdateShipmentResponse["content"];
6994
+ type PosUpdateShipmentPathParams = paths$1["/pos/shipping/shipments/{reference_number}/manual-update"]["put"]["parameters"]["path"];
6995
+ type PosUpdateShipmentBody = NonNullable<paths$1["/pos/shipping/shipments/{reference_number}/manual-update"]["put"]["requestBody"]>["content"]["application/json"];
6737
6996
  //#endregion
6738
6997
  //#region src/lib/pos.d.ts
6739
6998
  /**
@@ -6742,13 +7001,13 @@ type PosUpdateShipmentBody = NonNullable<paths$1['/pos/shipping/shipments/{refer
6742
7001
  */
6743
7002
  declare class PosClient extends PosAPIClient {
6744
7003
  /**
6745
- * Login with email address for POS device
6746
- * @param body - Login credentials containing device ID and email
7004
+ * Login with email address
7005
+ * @param body - Login credentials containing location ID and email
6747
7006
  * @returns Promise with OTP token and action
6748
7007
  * @example
6749
7008
  * ```typescript
6750
7009
  * const { data, error } = await pos.loginWithEmail({
6751
- * device_id: "pos-device-123",
7010
+ * location_id: "pos-location-123",
6752
7011
  * email: "staff@example.com"
6753
7012
  * });
6754
7013
  *
@@ -6763,13 +7022,13 @@ declare class PosClient extends PosAPIClient {
6763
7022
  */
6764
7023
  loginWithEmail(body: LoginPosDeviceWithEmailBody): Promise<ApiResult<LoginPosDeviceWithEmailContent>>;
6765
7024
  /**
6766
- * Login with phone number for POS device
6767
- * @param body - Login credentials containing device ID and phone
7025
+ * Login with phone number
7026
+ * @param body - Login credentials containing location ID and phone
6768
7027
  * @returns Promise with OTP token and action
6769
7028
  * @example
6770
7029
  * ```typescript
6771
7030
  * const { data, error } = await pos.loginWithPhone({
6772
- * device_id: "pos-device-123",
7031
+ * location_id: "pos-location-123",
6773
7032
  * phone: "234567890",
6774
7033
  * country_code: "+91" // default is +91
6775
7034
  * });
@@ -6785,13 +7044,13 @@ declare class PosClient extends PosAPIClient {
6785
7044
  */
6786
7045
  loginWithPhone(body: LoginPosDeviceWithPhoneBody): Promise<ApiResult<LoginPosDeviceWithPhoneContent>>;
6787
7046
  /**
6788
- * Login with WhatsApp for POS device
6789
- * @param body - Login credentials containing device ID and phone
7047
+ * Login with WhatsApp
7048
+ * @param body - Login credentials containing location ID and phone
6790
7049
  * @returns Promise with OTP token and action
6791
7050
  * @example
6792
7051
  * ```typescript
6793
7052
  * const { data, error } = await pos.loginWithWhatsapp({
6794
- * device_id: "pos-device-123",
7053
+ * location_id: "pos-location-123",
6795
7054
  * phone: "234567890",
6796
7055
  * country_code: "+91" // default is +91
6797
7056
  * });
@@ -6807,27 +7066,7 @@ declare class PosClient extends PosAPIClient {
6807
7066
  */
6808
7067
  loginWithWhatsapp(body: LoginPosDeviceWithWhatsappBody): Promise<ApiResult<LoginPosDeviceWithWhatsappContent>>;
6809
7068
  /**
6810
- * Pair POS device with pairing code
6811
- * @param body - Pairing code received via phone/email
6812
- * @returns Promise with device information
6813
- * @example
6814
- * ```typescript
6815
- * const { data, error } = await pos.pairDevice({
6816
- * pairing_code: "ABC123"
6817
- * });
6818
- *
6819
- * if (error) {
6820
- * console.error("Device pairing failed:", error.message);
6821
- * } else {
6822
- * console.log("Device paired:", data.device.id);
6823
- * console.log("Device name:", data.device.name);
6824
- * // Store device_id for future use
6825
- * }
6826
- * ```
6827
- */
6828
- pairDevice(body: PairPosDeviceBody): Promise<ApiResult<PairPosDeviceContent>>;
6829
- /**
6830
- * Verify OTP for POS login
7069
+ * Verify OTP
6831
7070
  * @param body - OTP verification data
6832
7071
  * @returns Promise with user info and tokens
6833
7072
  * @example
@@ -6870,7 +7109,7 @@ declare class PosClient extends PosAPIClient {
6870
7109
  */
6871
7110
  refreshAccessToken(body: RefreshPosAccessTokenBody): Promise<ApiResult<RefreshPosAccessTokenContent>>;
6872
7111
  /**
6873
- * Logout from POS device
7112
+ * Logout
6874
7113
  * @returns Promise with logout confirmation
6875
7114
  * @example
6876
7115
  * ```typescript
@@ -6886,6 +7125,90 @@ declare class PosClient extends PosAPIClient {
6886
7125
  * ```
6887
7126
  */
6888
7127
  logout(): Promise<ApiResult<LogoutFromPosDeviceResponse>>;
7128
+ /**
7129
+ * List store locations
7130
+ * @returns Promise with list of locations
7131
+ * @example
7132
+ * ```typescript
7133
+ * const { data, error } = await pos.listLocations();
7134
+ * if (error) {
7135
+ * console.error("Failed to list locations:", error.message);
7136
+ * } else {
7137
+ * console.log("Locations:", data.locations);
7138
+ * }
7139
+ * ```
7140
+ */
7141
+ listLocations(): Promise<ApiResult<ListPosLocationsContent>>;
7142
+ /**
7143
+ * List devices
7144
+ * @returns Promise with list of devices
7145
+ * @example
7146
+ * ```typescript
7147
+ * const { data, error } = await pos.listDevices();
7148
+ * if (error) {
7149
+ * console.error("Failed to list devices:", error.message);
7150
+ * } else {
7151
+ * console.log("Devices:", data.devices);
7152
+ * }
7153
+ * ```
7154
+ */
7155
+ listDevices(): Promise<ApiResult<ListPosDevicesContent>>;
7156
+ /**
7157
+ * Pair POS device with pairing code
7158
+ * @param body - Pairing code received via phone/email
7159
+ * @returns Promise with device information
7160
+ * @example
7161
+ * ```typescript
7162
+ * const { data, error } = await pos.pairDevice({
7163
+ * pairing_code: "ABC123"
7164
+ * });
7165
+ *
7166
+ * if (error) {
7167
+ * console.error("Device pairing failed:", error.message);
7168
+ * } else {
7169
+ * console.log("Device paired:", data.device.id);
7170
+ * console.log("Device name:", data.device.name);
7171
+ * // Store device_id for future use
7172
+ * }
7173
+ * ```
7174
+ */
7175
+ pairDevice(body: PairPosDeviceBody): Promise<ApiResult<PairPosDeviceContent>>;
7176
+ /**
7177
+ * Unclaim POS device - Unlinks a device from the user session
7178
+ * @param pathParams - Device ID
7179
+ * @returns Promise with unclaim confirmation
7180
+ * @example
7181
+ * ```typescript
7182
+ * const { data, error } = await pos.unclaimDevice({
7183
+ * id: "01H9DEVICE12345ABCDE"
7184
+ * });
7185
+ *
7186
+ * if (error) {
7187
+ * console.error("Failed to unclaim device:", error.message);
7188
+ * } else {
7189
+ * console.log("Device unclaimed:", data.message);
7190
+ * }
7191
+ * ```
7192
+ */
7193
+ unclaimDevice(pathParams: UnclaimPosDevicePathParams): Promise<ApiResult<UnclaimPosDeviceResponse>>;
7194
+ /**
7195
+ * Claim POS device - Links a device to the user session
7196
+ * @param pathParams - Device ID
7197
+ * @returns Promise with claim confirmation
7198
+ * @example
7199
+ * ```typescript
7200
+ * const { data, error } = await pos.claimDevice({
7201
+ * id: "01H9DEVICE12345ABCDE"
7202
+ * });
7203
+ *
7204
+ * if (error) {
7205
+ * console.error("Failed to claim device:", error.message);
7206
+ * } else {
7207
+ * console.log("Device claimed:", data.message);
7208
+ * }
7209
+ * ```
7210
+ */
7211
+ claimDevice(pathParams: ClaimPosDevicePathParams): Promise<ApiResult<ClaimPosDeviceResponse>>;
6889
7212
  /**
6890
7213
  * Create a new cart
6891
7214
  * @param body - Cart creation data with items
@@ -7855,7 +8178,7 @@ declare class PosClient extends PosAPIClient {
7855
8178
  * });
7856
8179
  * ```
7857
8180
  */
7858
- listInventories(query?: PosListInventoriesQuery): Promise<ApiResult<PosListInventoriesContent>>;
8181
+ listInventories(query?: PosListInventoryQuery): Promise<ApiResult<PosListInventoryContent>>;
7859
8182
  /**
7860
8183
  * List all inventory activities (Admin)
7861
8184
  * @param query - Optional query parameters for filtering inventory activities
@@ -7883,7 +8206,7 @@ declare class PosClient extends PosAPIClient {
7883
8206
  * });
7884
8207
  * ```
7885
8208
  */
7886
- listInventoryActivities(query?: PosListInventoriesActivitiesQuery): Promise<ApiResult<PosListInventoriesActivitiesContent>>;
8209
+ listInventoryActivities(query?: PosListInventoryActivityQuery): Promise<ApiResult<PosListInventoryActivityContent>>;
7887
8210
  /**
7888
8211
  * Get inventory detail (Admin)
7889
8212
  * @param query - Query parameters with product/variant information
@@ -7917,7 +8240,7 @@ declare class PosClient extends PosAPIClient {
7917
8240
  * });
7918
8241
  * ```
7919
8242
  */
7920
- getInventoryDetail(query: PosGetInventoryDetailQuery): Promise<ApiResult<PosGetInventoryDetailContent>>;
8243
+ getInventoryDetail(query: PosListInventoryDetailQuery): Promise<ApiResult<PosListInventoryDetailContent>>;
7921
8244
  /**
7922
8245
  * List all customers (Admin)
7923
8246
  * @param query - Optional query parameters for filtering customers
@@ -7946,7 +8269,7 @@ declare class PosClient extends PosAPIClient {
7946
8269
  * });
7947
8270
  * ```
7948
8271
  */
7949
- getCustomers(query?: PosGetAdminCustomersQuery): Promise<ApiResult<PosGetAdminCustomersContent>>;
8272
+ getCustomers(query?: PosListCustomersQuery): Promise<ApiResult<PosListCustomersContent>>;
7950
8273
  /**
7951
8274
  * Get customer details (Admin)
7952
8275
  * @param pathParams - Customer ID
@@ -7969,7 +8292,7 @@ declare class PosClient extends PosAPIClient {
7969
8292
  * }
7970
8293
  * ```
7971
8294
  */
7972
- getCustomer(pathParams: PosGetAdminCustomersIdPathParams): Promise<ApiResult<PosGetAdminCustomersIdContent>>;
8295
+ getCustomer(pathParams: PosGetCustomerDetailPathParams): Promise<ApiResult<PosGetCustomerDetailContent>>;
7973
8296
  /**
7974
8297
  * List all orders (Admin)
7975
8298
  * @param query - Optional query parameters for filtering orders
@@ -7999,7 +8322,7 @@ declare class PosClient extends PosAPIClient {
7999
8322
  * });
8000
8323
  * ```
8001
8324
  */
8002
- listOrders(query?: PosListAdminOrdersQuery): Promise<ApiResult<PosListAdminOrdersContent>>;
8325
+ listOrders(query?: PosListOrdersQuery): Promise<ApiResult<PosListOrdersContent>>;
8003
8326
  /**
8004
8327
  * Get order details (Admin)
8005
8328
  * @param pathParams - Order number
@@ -8024,7 +8347,7 @@ declare class PosClient extends PosAPIClient {
8024
8347
  * }
8025
8348
  * ```
8026
8349
  */
8027
- getOrderDetail(pathParams: PosGetAdminOrderPathParams): Promise<ApiResult<PosGetAdminOrderContent>>;
8350
+ getOrderDetail(pathParams: PosGetOrderDetailPathParams): Promise<ApiResult<PosGetOrderDetailContent>>;
8028
8351
  /**
8029
8352
  * List order activity (Admin)
8030
8353
  * @param pathParams - Order number
@@ -8134,7 +8457,7 @@ declare class PosClient extends PosAPIClient {
8134
8457
  * }
8135
8458
  * ```
8136
8459
  */
8137
- getOrderShipments(pathParams: PosGetOrderShipmentsPathParams): Promise<ApiResult<PosGetOrderShipmentsContent>>;
8460
+ getOrderShipments(pathParams: PosListOrderShipmentsPathParams): Promise<ApiResult<PosListOrderShipmentsContent>>;
8138
8461
  /**
8139
8462
  * List all shipments (Admin)
8140
8463
  * @param query - Optional query parameters for filtering shipments
@@ -8188,7 +8511,7 @@ declare class PosClient extends PosAPIClient {
8188
8511
  * }
8189
8512
  * ```
8190
8513
  */
8191
- checkInventory(pathParams: PosCheckInventoryForOrderPathParams): Promise<ApiResult<PosCheckInventoryForOrderContent>>;
8514
+ checkInventory(pathParams: PosCheckOrderInventoryPathParams): Promise<ApiResult<PosCheckOrderInventoryContent>>;
8192
8515
  /**
8193
8516
  * Refund shortfall for order (Admin)
8194
8517
  * @param pathParams - Order number
@@ -8228,7 +8551,7 @@ declare class PosClient extends PosAPIClient {
8228
8551
  * );
8229
8552
  * ```
8230
8553
  */
8231
- refundShortfall(pathParams: PosRefundShortfallForOrderPathParams, body: PosRefundShortfallForOrderBody): Promise<ApiResult<PosRefundShortfallForOrderResponse>>;
8554
+ refundShortfall(pathParams: PosRefundShortfallPathParams, body: PosRefundShortfallBody): Promise<ApiResult<PosRefundShortfallResponse>>;
8232
8555
  /**
8233
8556
  * Get shipment details (Admin)
8234
8557
  * @param pathParams - Shipment reference number
@@ -8253,7 +8576,7 @@ declare class PosClient extends PosAPIClient {
8253
8576
  * }
8254
8577
  * ```
8255
8578
  */
8256
- getShipment(pathParams: PosGetShipmentPathParams): Promise<ApiResult<PosGetShipmentContent>>;
8579
+ getShipment(pathParams: PosGetShipmentDetailPathParams): Promise<ApiResult<PosGetShipmentDetailContent>>;
8257
8580
  /**
8258
8581
  * Get shipment invoice (Admin)
8259
8582
  * @param pathParams - Shipment reference number
@@ -8365,7 +8688,6 @@ declare class BrowserTokenStorage implements TokenStorage {
8365
8688
  /**
8366
8689
  * Configuration for the POS auth middleware
8367
8690
  */
8368
-
8369
8691
  //#endregion
8370
8692
  //#region src/lib/utils/jwt.d.ts
8371
8693
  /**
@@ -8382,18 +8704,16 @@ interface UserInfo {
8382
8704
  isLoggedIn: boolean;
8383
8705
  customerId: string | null;
8384
8706
  customerGroupId: string | null;
8385
- device: {
8386
- deviceId: string;
8387
- deviceName: string;
8388
- };
8707
+ roles: {
8708
+ roleId: string;
8709
+ roleName: string;
8710
+ locationId: string;
8711
+ locationName: string;
8712
+ }[];
8389
8713
  location: {
8390
8714
  id: string;
8391
8715
  name: string;
8392
8716
  };
8393
- role: {
8394
- id: string;
8395
- name: string;
8396
- };
8397
8717
  tenantId: string;
8398
8718
  channel: {
8399
8719
  id: string;
@@ -8550,13 +8870,6 @@ declare class PosSDK {
8550
8870
  * @returns True if user is authenticated for POS operations
8551
8871
  */
8552
8872
  isAuthenticated(): Promise<boolean>;
8553
- /**
8554
- * Get the device ID from the current access token
8555
- * This is commonly needed for POS API requests
8556
- *
8557
- * @returns Device ID or null if no token or invalid token
8558
- */
8559
- getDeviceId(): Promise<string | null>;
8560
8873
  /**
8561
8874
  * Get the location ID from the current access token
8562
8875
  * This is commonly needed for POS API requests
@@ -8567,11 +8880,13 @@ declare class PosSDK {
8567
8880
  /**
8568
8881
  * Get the role information from the current access token
8569
8882
  *
8570
- * @returns Role object with id and name, or null if no token or invalid token
8883
+ * @returns Role object with roleId, roleName, locationId, and locationName, or null if no token or invalid token
8571
8884
  */
8572
8885
  getRole(): Promise<{
8573
- id: string;
8574
- name: string;
8886
+ roleId: string;
8887
+ roleName: string;
8888
+ locationId: string;
8889
+ locationName: string;
8575
8890
  } | null>;
8576
8891
  /**
8577
8892
  * Get the tenant ID from the current access token
@@ -8581,5 +8896,5 @@ declare class PosSDK {
8581
8896
  getTenantId(): Promise<string | null>;
8582
8897
  }
8583
8898
  //#endregion
8584
- export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AdditionalProductDetails, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, AssociatedOption, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, BrowserTokenStorage, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CardPayment, Cart, CartBasedServiceabilityCheck, CartItem, Category, CollectInStore, CollectInStoreFulfillment, ColorAttribute, ColorOption, Coupon, CouponPromotionCommonDetail, CouponType, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, DateAttribute, DebugLogger, DebugLoggerFn, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Environment, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, HeaderConfig, InapplicableCoupon, InapplicablePromotion, Item, JuspayPaymentGatewayParams, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappResponse, LogoutFromPosDeviceResponse, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NumberAttribute, Order, OrderDetail, OrderItem, OrderPayment, OrderRefund, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PayWithCard, PayWithCash, PayWithPaymentGateway, PayWithUpi, PaymentGateway, PaymentGatewayParams, PaymentInfo, PayuPaymentGatewayParams, PercentageDiscountRule, PincodeServiceability, PosAPIClient, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosClient, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListPaymentOptionsContent, PosListPaymentOptionsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSDK, PosSDK as default, PosSDKOptions, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, ResponseUtils, SearchProduct, Seo, ShipmentItem, SingleSelectAttribute, SingleSelectOption, SupportedDefaultHeaders, TextAttribute, type TokenStorage, UpdateCartItem, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpiPayment, type UserInfo, Variant, VariantDetail, VariantOption, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
8899
+ export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AdditionalProductDetails, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, AssociatedOption, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, BrowserTokenStorage, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CardPayment, Cart, CartBasedServiceabilityCheck, CartItem, Category, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreFulfillment, ColorAttribute, ColorOption, Coupon, CouponPromotionCommonDetail, CouponType, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, DateAttribute, DebugLogger, DebugLoggerFn, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Environment, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, HeaderConfig, InapplicableCoupon, InapplicablePromotion, Item, JuspayPaymentGatewayParams, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappResponse, LogoutFromPosDeviceResponse, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NumberAttribute, Order, OrderDetail, OrderItem, OrderPayment, OrderRefund, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PayWithCard, PayWithCash, PayWithPaymentGateway, PayWithUpi, PaymentGateway, PaymentGatewayParams, PaymentInfo, PayuPaymentGatewayParams, PercentageDiscountRule, PincodeServiceability, PosAPIClient, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosClient, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListPaymentOptionsContent, PosListPaymentOptionsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosLocation, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSDK, PosSDK as default, PosSDKOptions, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, ResponseUtils, SearchProduct, Seo, ShipmentItem, SingleSelectAttribute, SingleSelectOption, SupportedDefaultHeaders, TextAttribute, type TokenStorage, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UpdateCartItem, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpiPayment, type UserInfo, Variant, VariantDetail, VariantOption, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
8585
8900
  //# sourceMappingURL=index.d.ts.map