@shophost/client 2.0.58 → 2.0.60

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.58",
3
+ "version": "2.0.60",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { AcceptInvitationData, AcceptInvitationErrors, AcceptInvitationResponses, AccessEligibilityData, AccessEligibilityResponses, CreateInvitationData, CreateInvitationErrors, CreateInvitationResponses, CreateManufacturerData, CreateManufacturerErrors, CreateManufacturerResponses, CreateOrderData, CreateOrderErrors, CreateOrderResponses, CreateOrganizationData, CreateOrganizationErrors, CreateOrganizationResponses, CreateProductCategoryData, CreateProductCategoryErrors, CreateProductCategoryResponses, CreateProductData, CreateProductErrors, CreateProductResponses, CreateReservationData, CreateReservationErrors, CreateReservationResponses, CreateShippingAddressData, CreateShippingAddressErrors, CreateShippingAddressResponses, CreateShippingMethodData, CreateShippingMethodErrors, CreateShippingMethodResponses, CreateTemporaryFileData, CreateTemporaryFileResponses, DeleteIntegrationData, DeleteIntegrationErrors, DeleteIntegrationResponses, DeleteInvitationData, DeleteInvitationErrors, DeleteInvitationResponses, DeleteManufacturerData, DeleteManufacturerErrors, DeleteManufacturerResponses, DeleteMemberData, DeleteMemberErrors, DeleteMemberResponses, DeleteOrderData, DeleteOrderErrors, DeleteOrderResponses, DeleteOrganizationData, DeleteOrganizationErrors, DeleteOrganizationResponses, DeleteProductCategoryData, DeleteProductCategoryErrors, DeleteProductCategoryResponses, DeleteProductData, DeleteProductErrors, DeleteProductResponses, DeleteReservationData, DeleteReservationErrors, DeleteReservationResponses, DeleteShippingMethodData, DeleteShippingMethodErrors, DeleteShippingMethodResponses, GetAnalyticsOverviewData, GetAnalyticsOverviewErrors, GetAnalyticsOverviewResponses, GetAvailablePaymentMethodsData, GetAvailablePaymentMethodsErrors, GetAvailablePaymentMethodsResponses, GetCartDataData, GetCartDataErrors, GetCartDataResponses, GetIntegrationsData, GetIntegrationsErrors, GetIntegrationsResponses, GetInvitationsData, GetInvitationsErrors, GetInvitationsResponses, GetManufacturerData, GetManufacturerErrors, GetManufacturerResponses, GetManufacturersData, GetManufacturersErrors, GetManufacturersResponses, GetMemberData, GetMemberErrors, GetMemberResponses, GetMembersData, GetMembersErrors, GetMembersResponses, GetMyOrdersData, GetMyOrdersErrors, GetMyOrdersResponses, GetMyReservationsData, GetMyReservationsErrors, GetMyReservationsResponses, GetOrderData, GetOrderErrors, GetOrderResponses, GetOrdersData, GetOrdersErrors, GetOrdersResponses, GetOrganizationData, GetOrganizationErrors, GetOrganizationResponses, GetOrganizationsData, GetOrganizationsResponses, GetPlaceDetailsData, GetPlaceDetailsErrors, GetPlaceDetailsResponses, GetPredictionsData, GetPredictionsErrors, GetPredictionsResponses, GetProductCategoriesData, GetProductCategoriesErrors, GetProductCategoriesResponses, GetProductCategoryData, GetProductCategoryErrors, GetProductCategoryResponses, GetProductData, GetProductErrors, GetProductResponses, GetProductsByCategoryData, GetProductsByCategoryErrors, GetProductsByCategoryResponses, GetProductsData, GetProductsErrors, GetProductsResponses, GetReservationData, GetReservationErrors, GetReservationResponses, GetReservationsData, GetReservationsErrors, GetReservationsResponses, GetShippingAddressData, GetShippingAddressErrors, GetShippingAddressResponses, GetShippingMethodData, GetShippingMethodErrors, GetShippingMethodResponses, GetShippingMethodsData, GetShippingMethodsErrors, GetShippingMethodsResponses, GetUserInvitationsData, GetUserInvitationsErrors, GetUserInvitationsResponses, GetUserReservationsData, GetUserReservationsErrors, GetUserReservationsResponses, GetVercelTokenData, GetVercelTokenResponses, LeaveOrganizationData, LeaveOrganizationErrors, LeaveOrganizationResponses, PingData, PingErrors, PingResponses, UpdateManufacturerData, UpdateManufacturerErrors, UpdateManufacturerResponses, UpdateMemberRoleData, UpdateMemberRoleErrors, UpdateMemberRoleResponses, UpdateOrderStatusData, UpdateOrderStatusErrors, UpdateOrderStatusResponses, UpdateOrganizationData, UpdateOrganizationErrors, UpdateOrganizationResponses, UpdateProductCategoryData, UpdateProductCategoryErrors, UpdateProductCategoryResponses, UpdateProductCategoryStatusData, UpdateProductCategoryStatusErrors, UpdateProductCategoryStatusResponses, UpdateProductData, UpdateProductErrors, UpdateProductResponses, UpdateProductStatusData, UpdateProductStatusErrors, UpdateProductStatusResponses, UpdateReservationData, UpdateReservationErrors, UpdateReservationResponses, UpdateReservationStatusData, UpdateReservationStatusErrors, UpdateReservationStatusResponses, UpdateShippingAddressData, UpdateShippingAddressErrors, UpdateShippingAddressResponses, UpdateShippingMethodData, UpdateShippingMethodErrors, UpdateShippingMethodResponses, UpsertIntegrationData, UpsertIntegrationErrors, UpsertIntegrationResponses, WebhookByOrganizationData, WebhookByOrganizationErrors, WebhookByOrganizationResponses, WebhookData, WebhookErrors, WebhookResponses } from './types.gen';
2
+ import type { AcceptInvitationData, AcceptInvitationErrors, AcceptInvitationResponses, AccessEligibilityData, AccessEligibilityResponses, CreateInvitationData, CreateInvitationErrors, CreateInvitationResponses, CreateManufacturerData, CreateManufacturerErrors, CreateManufacturerResponses, CreateOrderData, CreateOrderErrors, CreateOrderResponses, CreateOrganizationData, CreateOrganizationErrors, CreateOrganizationResponses, CreateProductCategoryData, CreateProductCategoryErrors, CreateProductCategoryResponses, CreateProductData, CreateProductErrors, CreateProductResponses, CreateReservationData, CreateReservationErrors, CreateReservationResponses, CreateShippingAddressData, CreateShippingAddressErrors, CreateShippingAddressResponses, CreateShippingMethodData, CreateShippingMethodErrors, CreateShippingMethodResponses, CreateTemporaryFileData, CreateTemporaryFileResponses, DeleteIntegrationData, DeleteIntegrationErrors, DeleteIntegrationResponses, DeleteInvitationData, DeleteInvitationErrors, DeleteInvitationResponses, DeleteManufacturerData, DeleteManufacturerErrors, DeleteManufacturerResponses, DeleteMemberData, DeleteMemberErrors, DeleteMemberResponses, DeleteOrderData, DeleteOrderErrors, DeleteOrderResponses, DeleteOrganizationData, DeleteOrganizationErrors, DeleteOrganizationResponses, DeleteProductCategoryData, DeleteProductCategoryErrors, DeleteProductCategoryResponses, DeleteProductData, DeleteProductErrors, DeleteProductResponses, DeleteReservationData, DeleteReservationErrors, DeleteReservationResponses, DeleteShippingMethodData, DeleteShippingMethodErrors, DeleteShippingMethodResponses, GetAnalyticsOverviewData, GetAnalyticsOverviewErrors, GetAnalyticsOverviewResponses, GetAvailablePaymentMethodsData, GetAvailablePaymentMethodsErrors, GetAvailablePaymentMethodsResponses, GetCartDataData, GetCartDataErrors, GetCartDataResponses, GetCustomerData, GetCustomerErrors, GetCustomerResponses, GetCustomersData, GetCustomersErrors, GetCustomersResponses, GetIntegrationsData, GetIntegrationsErrors, GetIntegrationsResponses, GetInvitationsData, GetInvitationsErrors, GetInvitationsResponses, GetManufacturerData, GetManufacturerErrors, GetManufacturerResponses, GetManufacturersData, GetManufacturersErrors, GetManufacturersResponses, GetMemberData, GetMemberErrors, GetMemberResponses, GetMembersData, GetMembersErrors, GetMembersResponses, GetMyOrdersData, GetMyOrdersErrors, GetMyOrdersResponses, GetMyReservationsData, GetMyReservationsErrors, GetMyReservationsResponses, GetOrderData, GetOrderErrors, GetOrderResponses, GetOrdersData, GetOrdersErrors, GetOrdersResponses, GetOrganizationData, GetOrganizationErrors, GetOrganizationResponses, GetOrganizationsData, GetOrganizationsResponses, GetPlaceDetailsData, GetPlaceDetailsErrors, GetPlaceDetailsResponses, GetPredictionsData, GetPredictionsErrors, GetPredictionsResponses, GetProductCategoriesData, GetProductCategoriesErrors, GetProductCategoriesResponses, GetProductCategoryData, GetProductCategoryErrors, GetProductCategoryResponses, GetProductData, GetProductErrors, GetProductResponses, GetProductsByCategoryData, GetProductsByCategoryErrors, GetProductsByCategoryResponses, GetProductsData, GetProductsErrors, GetProductsResponses, GetReservationData, GetReservationErrors, GetReservationResponses, GetReservationsData, GetReservationsErrors, GetReservationsResponses, GetShippingAddressData, GetShippingAddressErrors, GetShippingAddressResponses, GetShippingMethodData, GetShippingMethodErrors, GetShippingMethodResponses, GetShippingMethodsData, GetShippingMethodsErrors, GetShippingMethodsResponses, GetUserInvitationsData, GetUserInvitationsErrors, GetUserInvitationsResponses, GetUserReservationsData, GetUserReservationsErrors, GetUserReservationsResponses, GetVercelTokenData, GetVercelTokenResponses, LeaveOrganizationData, LeaveOrganizationErrors, LeaveOrganizationResponses, PingData, PingErrors, PingResponses, SendTestEmailData, SendTestEmailErrors, SendTestEmailResponses, UpdateManufacturerData, UpdateManufacturerErrors, UpdateManufacturerResponses, UpdateMemberRoleData, UpdateMemberRoleErrors, UpdateMemberRoleResponses, UpdateOrderStatusData, UpdateOrderStatusErrors, UpdateOrderStatusResponses, UpdateOrganizationData, UpdateOrganizationErrors, UpdateOrganizationResponses, UpdateProductCategoryData, UpdateProductCategoryErrors, UpdateProductCategoryResponses, UpdateProductCategoryStatusData, UpdateProductCategoryStatusErrors, UpdateProductCategoryStatusResponses, UpdateProductData, UpdateProductErrors, UpdateProductResponses, UpdateProductStatusData, UpdateProductStatusErrors, UpdateProductStatusResponses, UpdateReservationData, UpdateReservationErrors, UpdateReservationResponses, UpdateReservationStatusData, UpdateReservationStatusErrors, UpdateReservationStatusResponses, UpdateShippingAddressData, UpdateShippingAddressErrors, UpdateShippingAddressResponses, UpdateShippingMethodData, UpdateShippingMethodErrors, UpdateShippingMethodResponses, UpsertIntegrationData, UpsertIntegrationErrors, UpsertIntegrationResponses, WebhookByOrganizationData, WebhookByOrganizationErrors, WebhookByOrganizationResponses, WebhookData, WebhookErrors, WebhookResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -71,6 +71,12 @@ export declare const deleteIntegration: <ThrowOnError extends boolean = false>(o
71
71
  * Creates or updates an integration configuration
72
72
  */
73
73
  export declare const upsertIntegration: <ThrowOnError extends boolean = false>(options: Options<UpsertIntegrationData, ThrowOnError>) => import("./client").RequestResult<UpsertIntegrationResponses, UpsertIntegrationErrors, ThrowOnError, "fields">;
74
+ /**
75
+ * Send Test Email
76
+ *
77
+ * Sends a test email using the configured Resend integration
78
+ */
79
+ export declare const sendTestEmail: <ThrowOnError extends boolean = false>(options: Options<SendTestEmailData, ThrowOnError>) => import("./client").RequestResult<SendTestEmailResponses, SendTestEmailErrors, ThrowOnError, "fields">;
74
80
  /**
75
81
  * Get Organizations
76
82
  *
@@ -323,6 +329,18 @@ export declare const updateOrderStatus: <ThrowOnError extends boolean = false>(o
323
329
  * Fetches formatted cart data
324
330
  */
325
331
  export declare const getCartData: <ThrowOnError extends boolean = false>(options: Options<GetCartDataData, ThrowOnError>) => import("./client").RequestResult<GetCartDataResponses, GetCartDataErrors, ThrowOnError, "fields">;
332
+ /**
333
+ * Get Customers
334
+ *
335
+ * Fetches paginated users who have placed at least one order or reservation in the organization
336
+ */
337
+ export declare const getCustomers: <ThrowOnError extends boolean = false>(options: Options<GetCustomersData, ThrowOnError>) => import("./client").RequestResult<GetCustomersResponses, GetCustomersErrors, ThrowOnError, "fields">;
338
+ /**
339
+ * Get Customer
340
+ *
341
+ * Fetches a customer profile with all orders and reservations for the organization
342
+ */
343
+ export declare const getCustomer: <ThrowOnError extends boolean = false>(options: Options<GetCustomerData, ThrowOnError>) => import("./client").RequestResult<GetCustomerResponses, GetCustomerErrors, ThrowOnError, "fields">;
326
344
  /**
327
345
  * Get Shipping Address
328
346
  *
@@ -300,6 +300,22 @@ export type UpsertIntegration = {
300
300
  */
301
301
  config?: unknown;
302
302
  };
303
+ export type SendTestEmailResponse = {
304
+ /**
305
+ * Whether the test email was sent successfully
306
+ */
307
+ success: boolean;
308
+ /**
309
+ * Result message
310
+ */
311
+ message: string;
312
+ };
313
+ export type SendTestEmail = {
314
+ /**
315
+ * Recipient email for the test message
316
+ */
317
+ to: string;
318
+ };
303
319
  export type Organization = {
304
320
  /**
305
321
  * The unique identifier of the organization
@@ -1746,6 +1762,90 @@ export type CreateOrder = {
1746
1762
  };
1747
1763
  checkoutBaseUrl: string;
1748
1764
  };
1765
+ export type AdminCustomer = User & {
1766
+ /**
1767
+ * Date when the customer account was created
1768
+ */
1769
+ createdAt: string;
1770
+ /**
1771
+ * Number of orders placed by the customer in this organization
1772
+ */
1773
+ orderCount: number;
1774
+ /**
1775
+ * Number of reservations created by the customer in this organization
1776
+ */
1777
+ reservationCount: number;
1778
+ };
1779
+ export type User = {
1780
+ /**
1781
+ * User's ID
1782
+ */
1783
+ id: string;
1784
+ /**
1785
+ * User's email address
1786
+ */
1787
+ email: string;
1788
+ /**
1789
+ * User's first name
1790
+ */
1791
+ firstname: string;
1792
+ /**
1793
+ * User's last name
1794
+ */
1795
+ lastname: string;
1796
+ /**
1797
+ * User's profile image
1798
+ */
1799
+ image?: string | null;
1800
+ /**
1801
+ * User's full name (optional)
1802
+ */
1803
+ name?: string | null;
1804
+ };
1805
+ export type AdminCustomerDetail = {
1806
+ customer: AdminCustomer;
1807
+ orders: Array<Order>;
1808
+ reservations: Array<Reservation>;
1809
+ };
1810
+ export type Reservation = {
1811
+ /**
1812
+ * Unique identifier for the order
1813
+ */
1814
+ id: string;
1815
+ /**
1816
+ * Customer's first name
1817
+ */
1818
+ firstname: string;
1819
+ /**
1820
+ * Customer's last name
1821
+ */
1822
+ lastname: string;
1823
+ guests: number;
1824
+ /**
1825
+ * Customer's phone number
1826
+ */
1827
+ phone: string;
1828
+ /**
1829
+ * Reservation date and time
1830
+ */
1831
+ date: string | null;
1832
+ /**
1833
+ * External reference ID for the order
1834
+ */
1835
+ referenceId: string;
1836
+ /**
1837
+ * Date when the order was accepted
1838
+ */
1839
+ acceptedAt?: string | null;
1840
+ /**
1841
+ * Date when the order was cancelled
1842
+ */
1843
+ cancelledAt?: string | null;
1844
+ /**
1845
+ * Date when the order was created
1846
+ */
1847
+ createdAt?: string | null;
1848
+ };
1749
1849
  export type UpdateShippingAddress = {
1750
1850
  /**
1751
1851
  * The first name of the recipient
@@ -1836,45 +1936,6 @@ export type PlaceDetails = {
1836
1936
  */
1837
1937
  country: string;
1838
1938
  };
1839
- export type Reservation = {
1840
- /**
1841
- * Unique identifier for the order
1842
- */
1843
- id: string;
1844
- /**
1845
- * Customer's first name
1846
- */
1847
- firstname: string;
1848
- /**
1849
- * Customer's last name
1850
- */
1851
- lastname: string;
1852
- guests: number;
1853
- /**
1854
- * Customer's phone number
1855
- */
1856
- phone: string;
1857
- /**
1858
- * Reservation date and time
1859
- */
1860
- date: string | null;
1861
- /**
1862
- * External reference ID for the order
1863
- */
1864
- referenceId: string;
1865
- /**
1866
- * Date when the order was accepted
1867
- */
1868
- acceptedAt?: string | null;
1869
- /**
1870
- * Date when the order was cancelled
1871
- */
1872
- cancelledAt?: string | null;
1873
- /**
1874
- * Date when the order was created
1875
- */
1876
- createdAt?: string | null;
1877
- };
1878
1939
  export type CreateReservation = {
1879
1940
  /**
1880
1941
  * Customer's first name
@@ -2621,6 +2682,89 @@ export type UpsertIntegrationResponses = {
2621
2682
  200: Integration;
2622
2683
  };
2623
2684
  export type UpsertIntegrationResponse = UpsertIntegrationResponses[keyof UpsertIntegrationResponses];
2685
+ export type SendTestEmailData = {
2686
+ body: SendTestEmail;
2687
+ headers?: {
2688
+ /**
2689
+ * Accept-Language header
2690
+ */
2691
+ 'accept-language'?: string;
2692
+ /**
2693
+ * Cookie header
2694
+ */
2695
+ cookie?: string;
2696
+ };
2697
+ path: {
2698
+ /**
2699
+ * The organization ID
2700
+ */
2701
+ organizationId: string;
2702
+ };
2703
+ query?: never;
2704
+ url: '/{organizationId}/integrations/resend/test';
2705
+ };
2706
+ export type SendTestEmailErrors = {
2707
+ /**
2708
+ * Bad Request
2709
+ */
2710
+ 400: {
2711
+ /**
2712
+ * The HTTP status code
2713
+ */
2714
+ status: number;
2715
+ /**
2716
+ * The error message
2717
+ */
2718
+ message: string;
2719
+ };
2720
+ /**
2721
+ * Unauthorized
2722
+ */
2723
+ 401: {
2724
+ /**
2725
+ * The HTTP status code
2726
+ */
2727
+ status: number;
2728
+ /**
2729
+ * The error message
2730
+ */
2731
+ message: string;
2732
+ };
2733
+ /**
2734
+ * Not Found
2735
+ */
2736
+ 404: {
2737
+ /**
2738
+ * The HTTP status code
2739
+ */
2740
+ status: number;
2741
+ /**
2742
+ * The error message
2743
+ */
2744
+ message: string;
2745
+ };
2746
+ /**
2747
+ * Internal Server Error
2748
+ */
2749
+ 500: {
2750
+ /**
2751
+ * The HTTP status code
2752
+ */
2753
+ status: number;
2754
+ /**
2755
+ * The error message
2756
+ */
2757
+ message: string;
2758
+ };
2759
+ };
2760
+ export type SendTestEmailError = SendTestEmailErrors[keyof SendTestEmailErrors];
2761
+ export type SendTestEmailResponses = {
2762
+ /**
2763
+ * OK
2764
+ */
2765
+ 200: SendTestEmailResponse;
2766
+ };
2767
+ export type SendTestEmailResponse2 = SendTestEmailResponses[keyof SendTestEmailResponses];
2624
2768
  export type GetOrganizationsData = {
2625
2769
  body?: never;
2626
2770
  headers?: {
@@ -5468,6 +5612,166 @@ export type GetCartDataResponses = {
5468
5612
  };
5469
5613
  };
5470
5614
  export type GetCartDataResponse = GetCartDataResponses[keyof GetCartDataResponses];
5615
+ export type GetCustomersData = {
5616
+ body?: never;
5617
+ headers?: {
5618
+ /**
5619
+ * Accept-Language header
5620
+ */
5621
+ 'accept-language'?: string;
5622
+ /**
5623
+ * Cookie header
5624
+ */
5625
+ cookie?: string;
5626
+ };
5627
+ path: {
5628
+ /**
5629
+ * The organization ID
5630
+ */
5631
+ organizationId: string;
5632
+ };
5633
+ query?: {
5634
+ /**
5635
+ * Page number
5636
+ */
5637
+ page?: number | null;
5638
+ /**
5639
+ * Number of items per page
5640
+ */
5641
+ limit?: number | null;
5642
+ /**
5643
+ * Search query
5644
+ */
5645
+ search?: string;
5646
+ };
5647
+ url: '/{organizationId}/customers';
5648
+ };
5649
+ export type GetCustomersErrors = {
5650
+ /**
5651
+ * Bad Request
5652
+ */
5653
+ 400: {
5654
+ /**
5655
+ * The HTTP status code
5656
+ */
5657
+ status: number;
5658
+ /**
5659
+ * The error message
5660
+ */
5661
+ message: string;
5662
+ };
5663
+ /**
5664
+ * Unauthorized
5665
+ */
5666
+ 401: {
5667
+ /**
5668
+ * The HTTP status code
5669
+ */
5670
+ status: number;
5671
+ /**
5672
+ * The error message
5673
+ */
5674
+ message: string;
5675
+ };
5676
+ /**
5677
+ * Not Found
5678
+ */
5679
+ 404: {
5680
+ /**
5681
+ * The HTTP status code
5682
+ */
5683
+ status: number;
5684
+ /**
5685
+ * The error message
5686
+ */
5687
+ message: string;
5688
+ };
5689
+ };
5690
+ export type GetCustomersError = GetCustomersErrors[keyof GetCustomersErrors];
5691
+ export type GetCustomersResponses = {
5692
+ /**
5693
+ * OK
5694
+ */
5695
+ 200: {
5696
+ list: Array<AdminCustomer>;
5697
+ meta: PaginationMeta;
5698
+ };
5699
+ };
5700
+ export type GetCustomersResponse = GetCustomersResponses[keyof GetCustomersResponses];
5701
+ export type GetCustomerData = {
5702
+ body?: never;
5703
+ headers?: {
5704
+ /**
5705
+ * Accept-Language header
5706
+ */
5707
+ 'accept-language'?: string;
5708
+ /**
5709
+ * Cookie header
5710
+ */
5711
+ cookie?: string;
5712
+ };
5713
+ path: {
5714
+ /**
5715
+ * The organization ID
5716
+ */
5717
+ organizationId: string;
5718
+ /**
5719
+ * The user ID
5720
+ */
5721
+ id: string;
5722
+ };
5723
+ query?: never;
5724
+ url: '/{organizationId}/customers/{id}';
5725
+ };
5726
+ export type GetCustomerErrors = {
5727
+ /**
5728
+ * Bad Request
5729
+ */
5730
+ 400: {
5731
+ /**
5732
+ * The HTTP status code
5733
+ */
5734
+ status: number;
5735
+ /**
5736
+ * The error message
5737
+ */
5738
+ message: string;
5739
+ };
5740
+ /**
5741
+ * Unauthorized
5742
+ */
5743
+ 401: {
5744
+ /**
5745
+ * The HTTP status code
5746
+ */
5747
+ status: number;
5748
+ /**
5749
+ * The error message
5750
+ */
5751
+ message: string;
5752
+ };
5753
+ /**
5754
+ * Not Found
5755
+ */
5756
+ 404: {
5757
+ /**
5758
+ * The HTTP status code
5759
+ */
5760
+ status: number;
5761
+ /**
5762
+ * The error message
5763
+ */
5764
+ message: string;
5765
+ };
5766
+ };
5767
+ export type GetCustomerError = GetCustomerErrors[keyof GetCustomerErrors];
5768
+ export type GetCustomerResponses = {
5769
+ /**
5770
+ * OK
5771
+ */
5772
+ 200: AdminCustomerDetail;
5773
+ };
5774
+ export type GetCustomerResponse = GetCustomerResponses[keyof GetCustomerResponses];
5471
5775
  export type GetShippingAddressData = {
5472
5776
  body?: never;
5473
5777
  headers?: {
package/src/index.d.ts CHANGED
@@ -113,6 +113,27 @@ export declare const initClient: ({ baseHeaders, baseUrl, credentials, fetch, th
113
113
  };
114
114
  body: UpsertIntegrationInput;
115
115
  }) => Promise<ClientResponse<IntegrationRecord>>;
116
+ sendTestEmail: (input: {
117
+ params: {
118
+ organizationId: string;
119
+ };
120
+ body: {
121
+ to: string;
122
+ };
123
+ }) => Promise<ClientResponse<{
124
+ success: boolean;
125
+ message: string;
126
+ }>>;
127
+ createStripeTestCheckout: (input: {
128
+ params: {
129
+ organizationId: string;
130
+ };
131
+ body: {
132
+ returnUrl: string;
133
+ };
134
+ }) => Promise<ClientResponse<{
135
+ redirectUrl: string;
136
+ }>>;
116
137
  };
117
138
  access: {
118
139
  acceptInvitation: (input?: RequestInput) => Promise<ClientResponse<any>>;
@@ -129,6 +150,10 @@ export declare const initClient: ({ baseHeaders, baseUrl, credentials, fetch, th
129
150
  cart: {
130
151
  getCartData: (input?: RequestInput) => Promise<ClientResponse<any>>;
131
152
  };
153
+ customer: {
154
+ getCustomer: (input?: RequestInput) => Promise<ClientResponse<any>>;
155
+ getCustomers: (input?: RequestInput) => Promise<ClientResponse<any>>;
156
+ };
132
157
  file: {
133
158
  createTemporaryFile: (input?: RequestInput) => Promise<ClientResponse<any>>;
134
159
  getVercelToken: (input?: RequestInput) => Promise<ClientResponse<any>>;