@livechat/developer-studio-api 3.0.10 → 3.0.11

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.mts CHANGED
@@ -3092,7 +3092,7 @@ declare const API_NOTIFICATIONS: {
3092
3092
  };
3093
3093
  };
3094
3094
 
3095
- declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext, TData>(provider: string, flow: string, data: TData, context: Omit<TContext, "state">, config: {
3095
+ declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext, TData>(provider: string, flow: string, data: TData | string, context: Omit<TContext, "state">, config: {
3096
3096
  adapterUrl: string;
3097
3097
  }): string;
3098
3098
 
package/dist/index.d.ts CHANGED
@@ -3092,7 +3092,7 @@ declare const API_NOTIFICATIONS: {
3092
3092
  };
3093
3093
  };
3094
3094
 
3095
- declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext, TData>(provider: string, flow: string, data: TData, context: Omit<TContext, "state">, config: {
3095
+ declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext, TData>(provider: string, flow: string, data: TData | string, context: Omit<TContext, "state">, config: {
3096
3096
  adapterUrl: string;
3097
3097
  }): string;
3098
3098
 
package/dist/index.js CHANGED
@@ -5655,7 +5655,7 @@ var serializerBase64 = {
5655
5655
 
5656
5656
  // src/utils/integrations/getIntegrationFlowUrl.ts
5657
5657
  function getIntegrationFlowUrl(provider, flow, data, context, config) {
5658
- const serializedFlowState = serializerBase64.serialize(data);
5658
+ const serializedFlowState = typeof data === "string" ? data : serializerBase64.serialize(data);
5659
5659
  const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
5660
5660
  state: serializedFlowState
5661
5661
  }));
package/dist/index.mjs CHANGED
@@ -5553,7 +5553,7 @@ var serializerBase64 = {
5553
5553
 
5554
5554
  // src/utils/integrations/getIntegrationFlowUrl.ts
5555
5555
  function getIntegrationFlowUrl(provider, flow, data, context, config) {
5556
- const serializedFlowState = serializerBase64.serialize(data);
5556
+ const serializedFlowState = typeof data === "string" ? data : serializerBase64.serialize(data);
5557
5557
  const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
5558
5558
  state: serializedFlowState
5559
5559
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",