@bacano/sdk 1.1.0 → 1.1.8

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.
@@ -17,6 +17,7 @@ export declare function serializeWebsiteMarketingAttribution(attribution: Websit
17
17
  content: string | undefined;
18
18
  source_platform: string | undefined;
19
19
  campaign_id: string | undefined;
20
+ sales_origin_key: string | undefined;
20
21
  gclid: string | undefined;
21
22
  gbraid: string | undefined;
22
23
  wbraid: string | undefined;
@@ -35,6 +36,7 @@ export declare function serializeWebsiteMarketingAttribution(attribution: Websit
35
36
  content: string | undefined;
36
37
  source_platform: string | undefined;
37
38
  campaign_id: string | undefined;
39
+ sales_origin_key: string | undefined;
38
40
  gclid: string | undefined;
39
41
  gbraid: string | undefined;
40
42
  wbraid: string | undefined;
@@ -48,6 +48,8 @@ export interface WebsiteMarketingTouchpoint {
48
48
  content?: string;
49
49
  sourcePlatform?: string;
50
50
  campaignId?: string;
51
+ /** Optional stable public key of a custom origin configured in Bacano. */
52
+ salesOriginKey?: string;
51
53
  gclid?: string;
52
54
  gbraid?: string;
53
55
  wbraid?: string;
@@ -0,0 +1,2 @@
1
+ export declare function getStableCartActionErrorCode(errors: string[] | null | undefined, fallbackCode: string): string;
2
+ export declare function hasRecoverableCartSessionError(errors: string[] | null | undefined): boolean;
package/modules/cart.d.ts CHANGED
@@ -12,5 +12,6 @@ export interface CartModule {
12
12
  quantity: number;
13
13
  }>;
14
14
  removeItem(cartItemId: string): Promise<Cart>;
15
+ clear(): Promise<void>;
15
16
  }
16
17
  export declare function createCartModule(graphqlUrl: string, getHeaders: RequestHeadersProvider, getContext: () => BacanoClientContext, cartSessionStorage: CartSessionStorage): CartModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacano/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.8",
4
4
  "description": "TypeScript SDK for building websites on the Bacano ERP",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/react/hooks.d.ts CHANGED
@@ -73,6 +73,7 @@ export declare function useCart(): {
73
73
  quantity: number;
74
74
  }>;
75
75
  removeItem: (cartItemId: string) => Promise<void>;
76
+ clear: () => Promise<void>;
76
77
  refresh: () => Promise<void>;
77
78
  };
78
79
  export declare function useCheckout(): {
@@ -4,7 +4,7 @@ export interface BacanoConstructionScreenProps {
4
4
  construction: WebsiteConstructionPublicConfig;
5
5
  }
6
6
  /** Default responsive full-screen construction page. */
7
- export declare function BacanoConstructionScreen({ construction, }: BacanoConstructionScreenProps): import("react").JSX.Element | null;
7
+ export declare function BacanoConstructionScreen({ construction, }: BacanoConstructionScreenProps): import("react").JSX.Element;
8
8
  export interface BacanoWebsiteGateProps {
9
9
  children: ReactNode;
10
10
  config: GetWebsitePublicConfigOptions;