@livechat/developer-studio-api 3.0.10 → 3.0.12
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
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
|
@@ -3282,8 +3282,8 @@ var appRepositoryTemplates = {
|
|
|
3282
3282
|
},
|
|
3283
3283
|
saas: {
|
|
3284
3284
|
id: "saas",
|
|
3285
|
-
name: "
|
|
3286
|
-
description: "
|
|
3285
|
+
name: "Nextjs SaaS boilerplate",
|
|
3286
|
+
description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
|
|
3287
3287
|
tags: [],
|
|
3288
3288
|
repository: {
|
|
3289
3289
|
name: "livechat/developer-app-template-saas",
|
|
@@ -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
|
@@ -3180,8 +3180,8 @@ var appRepositoryTemplates = {
|
|
|
3180
3180
|
},
|
|
3181
3181
|
saas: {
|
|
3182
3182
|
id: "saas",
|
|
3183
|
-
name: "
|
|
3184
|
-
description: "
|
|
3183
|
+
name: "Nextjs SaaS boilerplate",
|
|
3184
|
+
description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
|
|
3185
3185
|
tags: [],
|
|
3186
3186
|
repository: {
|
|
3187
3187
|
name: "livechat/developer-app-template-saas",
|
|
@@ -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.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"eslint-config-custom": "0.0.6",
|
|
21
20
|
"utils": "0.0.1",
|
|
21
|
+
"eslint-config-custom": "0.0.6",
|
|
22
22
|
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|