@shophost/client 2.0.68 → 2.0.70

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shophost/client",
3
- "version": "2.0.68",
3
+ "version": "2.0.70",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -501,6 +501,10 @@ export type OrganizationConfiguration = {
501
501
  * Default currency for the organization
502
502
  */
503
503
  defaultCurrency: 'USD' | 'EUR' | 'GBP' | 'JPY' | 'AUD' | 'CAD' | 'CHF' | 'CNY' | 'SEK' | 'NZD' | 'MXN' | 'SGD' | 'HKD' | 'NOK' | 'KRW' | 'TRY' | 'RUB' | 'INR' | 'BRL' | 'ZAR' | 'DKK' | 'PLN' | 'THB' | 'IDR' | 'HUF' | 'CZK' | 'ILS' | 'PHP' | 'AED' | 'COP' | 'SAR' | 'MYR' | 'RON';
504
+ /**
505
+ * Default IANA time zone for the organization
506
+ */
507
+ defaultTimeZone: string;
504
508
  /**
505
509
  * Timestamp when the organization configuration was created
506
510
  */
@@ -726,6 +730,10 @@ export type UpdateOrganizationConfiguration = {
726
730
  * Default currency for the organization
727
731
  */
728
732
  defaultCurrency?: 'USD' | 'EUR' | 'GBP' | 'JPY' | 'AUD' | 'CAD' | 'CHF' | 'CNY' | 'SEK' | 'NZD' | 'MXN' | 'SGD' | 'HKD' | 'NOK' | 'KRW' | 'TRY' | 'RUB' | 'INR' | 'BRL' | 'ZAR' | 'DKK' | 'PLN' | 'THB' | 'IDR' | 'HUF' | 'CZK' | 'ILS' | 'PHP' | 'AED' | 'COP' | 'SAR' | 'MYR' | 'RON';
733
+ /**
734
+ * Default IANA time zone for the organization
735
+ */
736
+ defaultTimeZone?: string;
729
737
  openingTimes?: TimeSchedule;
730
738
  closingTimes?: TimeSchedule;
731
739
  /**
@@ -1853,6 +1861,10 @@ export type Reservation = {
1853
1861
  * Date when the order was cancelled
1854
1862
  */
1855
1863
  cancelledAt?: string | null;
1864
+ /**
1865
+ * Optional cancellation message sent to the user
1866
+ */
1867
+ cancellationMessage?: string | null;
1856
1868
  /**
1857
1869
  * Date when the order was created
1858
1870
  */
@@ -1988,6 +2000,12 @@ export type UpdateReservation = {
1988
2000
  */
1989
2001
  date: unknown;
1990
2002
  };
2003
+ export type UpdateReservationStatus = {
2004
+ /**
2005
+ * Optional message sent to the user when cancelling a reservation
2006
+ */
2007
+ message?: string;
2008
+ };
1991
2009
  export type PingData = {
1992
2010
  body?: never;
1993
2011
  headers?: {
@@ -7030,9 +7048,7 @@ export type GetUserReservationsResponses = {
7030
7048
  };
7031
7049
  export type GetUserReservationsResponse = GetUserReservationsResponses[keyof GetUserReservationsResponses];
7032
7050
  export type UpdateReservationStatusData = {
7033
- body?: {
7034
- [key: string]: unknown;
7035
- };
7051
+ body?: UpdateReservationStatus;
7036
7052
  headers?: {
7037
7053
  /**
7038
7054
  * Accept-Language header