@cognigy/rest-api-client 2025.18.1 → 2025.19.0

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/build/test.js DELETED
@@ -1,39 +0,0 @@
1
- /* import { RestAPIClient, TRestAPIClient } from "./RestAPIClient";
2
- import * as fs from "fs";
3
- const FormData = require("form-data");
4
-
5
- const OAUTH_CLIENT_ID = "cognigy-ui";
6
- const OAUTH_CLIENT_SECRET =
7
- "KR7yxR3rAhZ9sEn923dZ5KeNs9SVuwBjHxXKpmqtvSNXw5xWz35Y5YRtTBt96Jaa";
8
- const baseUrl = "https://api.test";
9
-
10
- const instance = new RestAPIClient({
11
- numberOfRetries: 2,
12
- baseUrl,
13
- versions: {
14
- administration: "2.0",
15
- external: "2.0",
16
- metrics: "2.0",
17
- resources: "2.0",
18
- sessions: "2.0"
19
- },
20
- timeout: 10000
21
- });
22
-
23
- (async () => {
24
-
25
- const base64SnapshotString = fs.readFileSync('./src/IDE/fixtures/snapshots/overrideSnapshotConnections_project.csnap')
26
- const form = new FormData();
27
-
28
- form.append("projectId", projectId);
29
- form.append("file", base64SnapshotString, "snapshot.csnap");
30
-
31
- const slot = await instance.uploadExtension({
32
- projectId: "your-project-id"
33
- fs.readFileSync('./src/IDE/fixtures/snapshots/overrideSnapshotConnections_project.csnap'),
34
- user: "your-user-id",
35
- });
36
- console.log(slot);
37
- })();
38
- */
39
- //# sourceMappingURL=test.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ICreateJWTToken.js.map
package/dist/esm/test.js DELETED
@@ -1,39 +0,0 @@
1
- /* import { RestAPIClient, TRestAPIClient } from "./RestAPIClient";
2
- import * as fs from "fs";
3
- const FormData = require("form-data");
4
-
5
- const OAUTH_CLIENT_ID = "cognigy-ui";
6
- const OAUTH_CLIENT_SECRET =
7
- "KR7yxR3rAhZ9sEn923dZ5KeNs9SVuwBjHxXKpmqtvSNXw5xWz35Y5YRtTBt96Jaa";
8
- const baseUrl = "https://api.test";
9
-
10
- const instance = new RestAPIClient({
11
- numberOfRetries: 2,
12
- baseUrl,
13
- versions: {
14
- administration: "2.0",
15
- external: "2.0",
16
- metrics: "2.0",
17
- resources: "2.0",
18
- sessions: "2.0"
19
- },
20
- timeout: 10000
21
- });
22
-
23
- (async () => {
24
-
25
- const base64SnapshotString = fs.readFileSync('./src/IDE/fixtures/snapshots/overrideSnapshotConnections_project.csnap')
26
- const form = new FormData();
27
-
28
- form.append("projectId", projectId);
29
- form.append("file", base64SnapshotString, "snapshot.csnap");
30
-
31
- const slot = await instance.uploadExtension({
32
- projectId: "your-project-id"
33
- fs.readFileSync('./src/IDE/fixtures/snapshots/overrideSnapshotConnections_project.csnap'),
34
- user: "your-user-id",
35
- });
36
- console.log(slot);
37
- })();
38
- */
39
- //# sourceMappingURL=test.js.map