@livechat/developer-studio-api 5.4.2-beta.generator.27 → 5.4.2-beta.generator.28

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.
@@ -613,9 +613,6 @@ var extractTokenFromAuthorizationHeader = (headerValue) => {
613
613
  return headerValue.trim();
614
614
  };
615
615
 
616
- // src/utils/integrations/getIntegrationFlowUrl.ts
617
- import { v4 as uuidv4 } from "uuid";
618
-
619
616
  // ../../../private/utils/src/arrays/notEmpty.ts
620
617
  function notEmpty(item) {
621
618
  return Boolean(item);
@@ -678,6 +675,11 @@ var serializerBase64 = {
678
675
  }
679
676
  };
680
677
 
678
+ // ../../../private/utils/src/uuid/generate-uuid.ts
679
+ function generateUuid() {
680
+ return crypto.randomUUID();
681
+ }
682
+
681
683
  // src/apis/integrations/bigcommerce/api.ts
682
684
  import axios2 from "axios";
683
685
 
@@ -9486,7 +9488,7 @@ function getIntegrationFlowUrlForRedirection(provider, flow, state, context, con
9486
9488
  }
9487
9489
  function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
9488
9490
  return __async(this, null, function* () {
9489
- const sessionId = uuidv4();
9491
+ const sessionId = generateUuid();
9490
9492
  const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
9491
9493
  const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
9492
9494
  state: serializedState,
package/dist/index.js CHANGED
@@ -395,9 +395,6 @@ var extractTokenFromAuthorizationHeader = (headerValue) => {
395
395
  return headerValue.trim();
396
396
  };
397
397
 
398
- // src/utils/integrations/getIntegrationFlowUrl.ts
399
- var import_uuid = require("uuid");
400
-
401
398
  // ../../../private/utils/src/arrays/notEmpty.ts
402
399
  function notEmpty(item) {
403
400
  return Boolean(item);
@@ -460,6 +457,11 @@ var serializerBase64 = {
460
457
  }
461
458
  };
462
459
 
460
+ // ../../../private/utils/src/uuid/generate-uuid.ts
461
+ function generateUuid() {
462
+ return crypto.randomUUID();
463
+ }
464
+
463
465
  // src/apis/text-intelligence/workflows/adapter/integrations/_contracts/dtos/flows.ts
464
466
  var IntegrationModes = /* @__PURE__ */ ((IntegrationModes2) => {
465
467
  IntegrationModes2["Redirect"] = "redirect";
@@ -1293,7 +1295,7 @@ function getIntegrationFlowUrlForRedirection(provider, flow, state, context, con
1293
1295
  }
1294
1296
  function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
1295
1297
  return __async(this, null, function* () {
1296
- const sessionId = (0, import_uuid.v4)();
1298
+ const sessionId = generateUuid();
1297
1299
  const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
1298
1300
  const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
1299
1301
  state: serializedState,
package/dist/index.mjs CHANGED
@@ -195,7 +195,7 @@ import {
195
195
  updateWorkflowsClient,
196
196
  vercelClientInstance,
197
197
  workflowsClientInstance
198
- } from "./chunk-ET3F7CIO.mjs";
198
+ } from "./chunk-CUYIP4UJ.mjs";
199
199
  export {
200
200
  ACCOUNT_ID_HEADER,
201
201
  API_NOTIFICATIONS,
@@ -636,9 +636,6 @@ var UnauthorizeApiError = class extends Error {
636
636
  }
637
637
  };
638
638
 
639
- // src/utils/integrations/getIntegrationFlowUrl.ts
640
- var import_uuid = require("uuid");
641
-
642
639
  // src/apis/integrations/bigcommerce/api.ts
643
640
  var import_axios2 = __toESM(require("axios"));
644
641
 
@@ -28,7 +28,7 @@ import {
28
28
  isFilterGroup,
29
29
  isWorkflowBaseHttpTaskCore,
30
30
  serializeFilters
31
- } from "./chunk-ET3F7CIO.mjs";
31
+ } from "./chunk-CUYIP4UJ.mjs";
32
32
  export {
33
33
  CredentialStatus,
34
34
  CredentialType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "5.4.2-beta.generator.27",
3
+ "version": "5.4.2-beta.generator.28",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -28,19 +28,17 @@
28
28
  "axios": "^1.20.0",
29
29
  "json-schema": "^0.4.0",
30
30
  "shopify-api-node": "^3.13.1",
31
- "uuid": "^9.0.1",
32
31
  "zod": "^3.23.8"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@types/json-schema": "^7.0.15",
36
35
  "@types/node": "^17.0.12",
37
- "@types/uuid": "^9.0.7",
38
36
  "eslint": "^9.39.1",
39
37
  "tsup": "^8.5.1",
40
38
  "typescript": "^5.1.6",
39
+ "eslint-config-custom": "0.0.15",
41
40
  "utils": "0.3.3",
42
- "tsconfig": "0.2.1",
43
- "eslint-config-custom": "0.0.15"
41
+ "tsconfig": "0.2.1"
44
42
  },
45
43
  "scripts": {
46
44
  "build": "tsup",