@short.io/client-node 1.0.1 → 1.0.3
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.ts +54 -0
- package/dist/types/common.d.ts +9 -0
- package/dist/types/domain.d.ts +43 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/link.d.ts +131 -0
- package/dist/types/statistics.d.ts +199 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +3 -2
- package/renovate.json +6 -0
- package/src/types/index.ts +4 -0
- package/src/types.ts +1 -0
- package/tsconfig.json +2 -1
- package/dist/test/domain/createDomain.js +0 -5
- package/dist/test/domain/createDomain.js.map +0 -1
- package/dist/test/domain/getDomains.js +0 -5
- package/dist/test/domain/getDomains.js.map +0 -1
- package/dist/test/getLinks.js +0 -5
- package/dist/test/getLinks.js.map +0 -1
- package/dist/test/link/archiveLink.js +0 -5
- package/dist/test/link/archiveLink.js.map +0 -1
- package/dist/test/link/createLink.js +0 -5
- package/dist/test/link/createLink.js.map +0 -1
- package/dist/test/link/createLinkBulk.js +0 -14
- package/dist/test/link/createLinkBulk.js.map +0 -1
- package/dist/test/link/createLinkCountry.js +0 -8
- package/dist/test/link/createLinkCountry.js.map +0 -1
- package/dist/test/link/createLinkPublic.js +0 -5
- package/dist/test/link/createLinkPublic.js.map +0 -1
- package/dist/test/link/createLinkRegions.js +0 -9
- package/dist/test/link/createLinkRegions.js.map +0 -1
- package/dist/test/link/deleteLink.js +0 -5
- package/dist/test/link/deleteLink.js.map +0 -1
- package/dist/test/link/deleteLinkCountry.js +0 -5
- package/dist/test/link/deleteLinkCountry.js.map +0 -1
- package/dist/test/link/deleteLinkRegion.js +0 -8
- package/dist/test/link/deleteLinkRegion.js.map +0 -1
- package/dist/test/link/getLinkCountry.js +0 -5
- package/dist/test/link/getLinkCountry.js.map +0 -1
- package/dist/test/link/getLinkInfoByOriginalURL.js +0 -5
- package/dist/test/link/getLinkInfoByOriginalURL.js.map +0 -1
- package/dist/test/link/getLinkInfoByPath.js +0 -5
- package/dist/test/link/getLinkInfoByPath.js.map +0 -1
- package/dist/test/link/getLinkQRCode.js +0 -5
- package/dist/test/link/getLinkQRCode.js.map +0 -1
- package/dist/test/link/getLinkRegions.js +0 -5
- package/dist/test/link/getLinkRegions.js.map +0 -1
- package/dist/test/link/getLinks.js +0 -5
- package/dist/test/link/getLinks.js.map +0 -1
- package/dist/test/link/getOpenGraph.js +0 -5
- package/dist/test/link/getOpenGraph.js.map +0 -1
- package/dist/test/link/updateLink.js +0 -8
- package/dist/test/link/updateLink.js.map +0 -1
- package/dist/test/link/updateOpenGraph.js +0 -5
- package/dist/test/link/updateOpenGraph.js.map +0 -1
- package/dist/test/statistics/clear.js +0 -5
- package/dist/test/statistics/clear.js.map +0 -1
- package/dist/test/statistics/getByDomain.js +0 -7
- package/dist/test/statistics/getByDomain.js.map +0 -1
- package/dist/test/statistics/getByDomainPost.js +0 -10
- package/dist/test/statistics/getByDomainPost.js.map +0 -1
- package/dist/test/statistics/getByLink.js +0 -7
- package/dist/test/statistics/getByLink.js.map +0 -1
- package/dist/test/statistics/getByLinkPost.js +0 -7
- package/dist/test/statistics/getByLinkPost.js.map +0 -1
- package/dist/test/statistics/getLastClicks.js +0 -8
- package/dist/test/statistics/getLastClicks.js.map +0 -1
- package/dist/test/statistics/getLinkClicks.js +0 -7
- package/dist/test/statistics/getLinkClicks.js.map +0 -1
- package/dist/test/statistics/getLinkClicksByPathDates.js +0 -13
- package/dist/test/statistics/getLinkClicksByPathDates.js.map +0 -1
- package/dist/test/statistics/getTopByColumn.js +0 -8
- package/dist/test/statistics/getTopByColumn.js.map +0 -1
- package/dist/test/statistics/getTopByInterval.js +0 -8
- package/dist/test/statistics/getTopByInterval.js.map +0 -1
- package/src/test/domain/createDomain.ts +0 -5
- package/src/test/domain/getDomains.ts +0 -5
- package/src/test/link/archiveLink.ts +0 -5
- package/src/test/link/createLink.ts +0 -5
- package/src/test/link/createLinkBulk.ts +0 -18
- package/src/test/link/createLinkCountry.ts +0 -8
- package/src/test/link/createLinkPublic.ts +0 -9
- package/src/test/link/createLinkRegions.ts +0 -9
- package/src/test/link/deleteLink.ts +0 -5
- package/src/test/link/deleteLinkCountry.ts +0 -5
- package/src/test/link/deleteLinkRegion.ts +0 -8
- package/src/test/link/getLinkCountry.ts +0 -5
- package/src/test/link/getLinkInfoByOriginalURL.ts +0 -5
- package/src/test/link/getLinkInfoByPath.ts +0 -5
- package/src/test/link/getLinkQRCode.ts +0 -5
- package/src/test/link/getLinkRegions.ts +0 -5
- package/src/test/link/getLinks.ts +0 -5
- package/src/test/link/getOpenGraph.ts +0 -5
- package/src/test/link/updateLink.ts +0 -8
- package/src/test/link/updateOpenGraph.ts +0 -5
- package/src/test/statistics/clear.ts +0 -5
- package/src/test/statistics/getByDomain.ts +0 -7
- package/src/test/statistics/getByDomainPost.ts +0 -10
- package/src/test/statistics/getByLink.ts +0 -7
- package/src/test/statistics/getByLinkPost.ts +0 -7
- package/src/test/statistics/getLastClicks.ts +0 -8
- package/src/test/statistics/getLinkClicks.ts +0 -7
- package/src/test/statistics/getLinkClicksByPathDates.ts +0 -17
- package/src/test/statistics/getTopByColumn.ts +0 -8
- package/src/test/statistics/getTopByInterval.ts +0 -8
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkCountryDelRes = await shortio.linkCountry.delete("lnk_1eru_9dCPkogORqv", "US");
|
|
4
|
-
console.log("file: deleteLinkCountry.ts:5 ::: linkCountryDelRes:", linkCountryDelRes);
|
|
5
|
-
//# sourceMappingURL=deleteLinkCountry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteLinkCountry.js","sourceRoot":"","sources":["../../../src/test/link/deleteLinkCountry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;AACzF,OAAO,CAAC,GAAG,CAAC,qDAAqD,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkCountryDelRes = await shortio.linkCountry.delete(\"lnk_1eru_9dCPkogORqv\", \"US\");\nconsole.log(\"file: deleteLinkCountry.ts:5 ::: linkCountryDelRes:\", linkCountryDelRes);\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkRegionRes = await shortio.linkRegion.delete("lnk_1eru_9dCPkogORqv", {
|
|
4
|
-
country: "US",
|
|
5
|
-
region: "CA",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: getLinkRegions.ts:5 ::: linkRegionRes:", linkRegionRes);
|
|
8
|
-
//# sourceMappingURL=deleteLinkRegion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteLinkRegion.js","sourceRoot":"","sources":["../../../src/test/link/deleteLinkRegion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,sBAAsB,EAAE;IAC1E,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;CACf,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,aAAa,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkRegionRes = await shortio.linkRegion.delete(\"lnk_1eru_9dCPkogORqv\", {\n country: \"US\",\n region: \"CA\",\n});\nconsole.log(\"file: getLinkRegions.ts:5 ::: linkRegionRes:\", linkRegionRes);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkCountryRes = await shortio.linkCountry.list("lnk_1eru_9dCPkogORqv");
|
|
4
|
-
console.log("file: linkCountryRes.ts:5 ::: linkCountryRes:", linkCountryRes);
|
|
5
|
-
//# sourceMappingURL=getLinkCountry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkCountry.js","sourceRoot":"","sources":["../../../src/test/link/getLinkCountry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAC9E,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkCountryRes = await shortio.linkCountry.list(\"lnk_1eru_9dCPkogORqv\");\nconsole.log(\"file: linkCountryRes.ts:5 ::: linkCountryRes:\", linkCountryRes);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkInfo = await shortio.link.getByOriginalURL("rybak.link", "https://github.com/RemyJeancolas/docker-aliases");
|
|
4
|
-
console.log("file: getLinkInfo.ts:5 ::: linkInfo:", linkInfo);
|
|
5
|
-
//# sourceMappingURL=getLinkInfoByOriginalURL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkInfoByOriginalURL.js","sourceRoot":"","sources":["../../../src/test/link/getLinkInfoByOriginalURL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,iDAAiD,CAAC,CAAC;AACtH,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkInfo = await shortio.link.getByOriginalURL(\"rybak.link\", \"https://github.com/RemyJeancolas/docker-aliases\");\nconsole.log(\"file: getLinkInfo.ts:5 ::: linkInfo:\", linkInfo);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkInfo = await shortio.link.getByPath("rybak.link", "360cam");
|
|
4
|
-
console.log("file: getLinkInfo.ts:5 ::: linkInfo:", linkInfo);
|
|
5
|
-
//# sourceMappingURL=getLinkInfoByPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkInfoByPath.js","sourceRoot":"","sources":["../../../src/test/link/getLinkInfoByPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACtE,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkInfo = await shortio.link.getByPath(\"rybak.link\", \"360cam\");\nconsole.log(\"file: getLinkInfo.ts:5 ::: linkInfo:\", linkInfo);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const qrCode = await shortio.link.generateQRCode("lnk_1eru_9dCPkogORqv");
|
|
4
|
-
console.log("file: getLinkQRCode.ts:5 ::: qrCode:", qrCode);
|
|
5
|
-
//# sourceMappingURL=getLinkQRCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkQRCode.js","sourceRoot":"","sources":["../../../src/test/link/getLinkQRCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC;AACzE,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,MAAM,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst qrCode = await shortio.link.generateQRCode(\"lnk_1eru_9dCPkogORqv\");\nconsole.log(\"file: getLinkQRCode.ts:5 ::: qrCode:\", qrCode);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkRegionRes = await shortio.linkRegion.list("lnk_1eru_9dCPkogORqv");
|
|
4
|
-
console.log("file: getLinkRegions.ts:5 ::: linkRegionRes:", linkRegionRes);
|
|
5
|
-
//# sourceMappingURL=getLinkRegions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkRegions.js","sourceRoot":"","sources":["../../../src/test/link/getLinkRegions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAC5E,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,aAAa,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkRegionRes = await shortio.linkRegion.list(\"lnk_1eru_9dCPkogORqv\");\nconsole.log(\"file: getLinkRegions.ts:5 ::: linkRegionRes:\", linkRegionRes);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinks.js","sourceRoot":"","sources":["../../../src/test/link/getLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9C,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst links = await shortio.link.list(293848);\nconsole.log(\"file: getLinks.ts:5 ::: links:\", links);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const openGraphRes = await shortio.link.getOpenGraph(293848, "lnk_1eru_9dCPkogORqv");
|
|
4
|
-
console.log("file: getOpenGraph.ts:5 ::: openGraphRes:", openGraphRes);
|
|
5
|
-
//# sourceMappingURL=getOpenGraph.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOpenGraph.js","sourceRoot":"","sources":["../../../src/test/link/getOpenGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AACrF,OAAO,CAAC,GAAG,CAAC,2CAA2C,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst openGraphRes = await shortio.link.getOpenGraph(293848, \"lnk_1eru_9dCPkogORqv\");\nconsole.log(\"file: getOpenGraph.ts:5 ::: openGraphRes:\", openGraphRes);\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const updateRes = await shortio.link.update("lnk_1eru_9dCPkohgosF", {
|
|
4
|
-
originalURL: "https://example.com?q=test",
|
|
5
|
-
path: "new-path",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: updateLink.ts:5 ::: updateRes:", updateRes);
|
|
8
|
-
//# sourceMappingURL=updateLink.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateLink.js","sourceRoot":"","sources":["../../../src/test/link/updateLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE;IAChE,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,UAAU;CACnB,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,SAAS,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst updateRes = await shortio.link.update(\"lnk_1eru_9dCPkohgosF\", {\n originalURL: \"https://example.com?q=test\",\n path: \"new-path\",\n});\nconsole.log(\"file: updateLink.ts:5 ::: updateRes:\", updateRes);\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const openGraphRes = await shortio.link.updateOpenGraph(293848, "lnk_1eru_9dCPkogORqv", [["title", "new title"]]);
|
|
4
|
-
console.log("file: getOpenGraph.ts:5 ::: openGraphRes:", openGraphRes);
|
|
5
|
-
//# sourceMappingURL=updateOpenGraph.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateOpenGraph.js","sourceRoot":"","sources":["../../../src/test/link/updateOpenGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAClH,OAAO,CAAC,GAAG,CAAC,2CAA2C,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst openGraphRes = await shortio.link.updateOpenGraph(293848, \"lnk_1eru_9dCPkogORqv\", [[\"title\", \"new title\"]]);\nconsole.log(\"file: getOpenGraph.ts:5 ::: openGraphRes:\", openGraphRes);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear.js","sourceRoot":"","sources":["../../../src/test/statistics/clear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5D,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst clearStatRes = await shortio.statistics.clear(362793);\nconsole.log(\"file: clear.ts:5 ::: clearStatRes:\", clearStatRes);\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const domainStat = await shortio.statistics.getByDomain(293848, {
|
|
4
|
-
period: "week",
|
|
5
|
-
});
|
|
6
|
-
console.log("file: getByDomain.ts:7 ::: domainStat:", domainStat);
|
|
7
|
-
//# sourceMappingURL=getByDomain.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getByDomain.js","sourceRoot":"","sources":["../../../src/test/statistics/getByDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE;IAC5D,MAAM,EAAE,MAAM;CACjB,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,UAAU,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst domainStat = await shortio.statistics.getByDomain(293848, {\n period: \"week\",\n});\nconsole.log(\"file: getByDomain.ts:7 ::: domainStat:\", domainStat);\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const domainStat = await shortio.statistics.getByDomainPost(293848, {
|
|
4
|
-
period: "week",
|
|
5
|
-
include: {
|
|
6
|
-
browsers: ["Chrome"],
|
|
7
|
-
},
|
|
8
|
-
});
|
|
9
|
-
console.log("file: getByDomain.ts:7 ::: domainStat:", domainStat);
|
|
10
|
-
//# sourceMappingURL=getByDomainPost.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getByDomainPost.js","sourceRoot":"","sources":["../../../src/test/statistics/getByDomainPost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,MAAM,EAAE;IAChE,MAAM,EAAE,MAAM;IACd,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACvB;CACJ,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,UAAU,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst domainStat = await shortio.statistics.getByDomainPost(293848, {\n period: \"week\",\n include: {\n browsers: [\"Chrome\"],\n },\n});\nconsole.log(\"file: getByDomain.ts:7 ::: domainStat:\", domainStat);\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkStat = await shortio.statistics.getByLink("lnk_1eru_9dCBlsuLCCO", {
|
|
4
|
-
period: "week",
|
|
5
|
-
});
|
|
6
|
-
console.log("file: getByLink.ts:5 ::: linkStat:", linkStat);
|
|
7
|
-
//# sourceMappingURL=getByLink.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getByLink.js","sourceRoot":"","sources":["../../../src/test/statistics/getByLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,sBAAsB,EAAE;IACxE,MAAM,EAAE,MAAM;CACjB,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkStat = await shortio.statistics.getByLink(\"lnk_1eru_9dCBlsuLCCO\", {\n period: \"week\",\n});\nconsole.log(\"file: getByLink.ts:5 ::: linkStat:\", linkStat);\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkStat = await shortio.statistics.getByLinkPost("lnk_1eru_9dCBlsuLCCO", {
|
|
4
|
-
period: "month",
|
|
5
|
-
});
|
|
6
|
-
console.log("file: getByLink.ts:5 ::: linkStat:", linkStat);
|
|
7
|
-
//# sourceMappingURL=getByLinkPost.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getByLinkPost.js","sourceRoot":"","sources":["../../../src/test/statistics/getByLinkPost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,sBAAsB,EAAE;IAC5E,MAAM,EAAE,OAAO;CAClB,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkStat = await shortio.statistics.getByLinkPost(\"lnk_1eru_9dCBlsuLCCO\", {\n period: \"month\",\n});\nconsole.log(\"file: getByLink.ts:5 ::: linkStat:\", linkStat);\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const lastClicksRes = await shortio.statistics.getLastClicks(293848, {
|
|
4
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
5
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: getLastClicks.ts:8 ::: lastClicksRes:", lastClicksRes);
|
|
8
|
-
//# sourceMappingURL=getLastClicks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLastClicks.js","sourceRoot":"","sources":["../../../src/test/statistics/getLastClicks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,EAAE;IACjE,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,0BAA0B;CACtC,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,aAAa,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst lastClicksRes = await shortio.statistics.getLastClicks(293848, {\n startDate: \"2022-10-01T14:08:04.418Z\",\n endDate: \"2022-10-30T14:08:04.418Z\",\n});\nconsole.log(\"file: getLastClicks.ts:8 ::: lastClicksRes:\", lastClicksRes);\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkClicks = await shortio.statistics.getLinkClicks(293848, {
|
|
4
|
-
ids: "lnk_1eru_9dCBlsuLCCO,lnk_1eru_9dCBlsu4fHY",
|
|
5
|
-
});
|
|
6
|
-
console.log("file: getByLinkClicks.ts:7 ::: linkClicks:", linkClicks);
|
|
7
|
-
//# sourceMappingURL=getLinkClicks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkClicks.js","sourceRoot":"","sources":["../../../src/test/statistics/getLinkClicks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,EAAE;IAC9D,GAAG,EAAE,2CAA2C;CACnD,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,4CAA4C,EAAE,UAAU,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkClicks = await shortio.statistics.getLinkClicks(293848, {\n ids: \"lnk_1eru_9dCBlsuLCCO,lnk_1eru_9dCBlsu4fHY\",\n});\nconsole.log(\"file: getByLinkClicks.ts:7 ::: linkClicks:\", linkClicks);\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const linkClicks = await shortio.statistics.getLinkClicksByPathDates(293848, [
|
|
4
|
-
{
|
|
5
|
-
path: "dYWvQ2",
|
|
6
|
-
createdAt: "023-02-23T14:08:04.418Z",
|
|
7
|
-
},
|
|
8
|
-
], {
|
|
9
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
10
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
11
|
-
});
|
|
12
|
-
console.log("file: getByLinkClicks.ts:7 ::: linkClicks:", linkClicks);
|
|
13
|
-
//# sourceMappingURL=getLinkClicksByPathDates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkClicksByPathDates.js","sourceRoot":"","sources":["../../../src/test/statistics/getLinkClicksByPathDates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAChE,MAAM,EACN;IACI;QACI,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,yBAAyB;KACvC;CACJ,EACD;IACI,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,0BAA0B;CACtC,CACJ,CAAC;AACF,OAAO,CAAC,GAAG,CAAC,4CAA4C,EAAE,UAAU,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst linkClicks = await shortio.statistics.getLinkClicksByPathDates(\n 293848,\n [\n {\n path: \"dYWvQ2\",\n createdAt: \"023-02-23T14:08:04.418Z\",\n },\n ],\n {\n startDate: \"2022-10-01T14:08:04.418Z\",\n endDate: \"2022-10-30T14:08:04.418Z\",\n },\n);\nconsole.log(\"file: getByLinkClicks.ts:7 ::: linkClicks:\", linkClicks);\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const topByColumnRes = await shortio.statistics.getTopByColumn(293848, "browser", {
|
|
4
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
5
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: getTopByColumn.ts:12 ::: topByColumnRes:", topByColumnRes);
|
|
8
|
-
//# sourceMappingURL=getTopByColumn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTopByColumn.js","sourceRoot":"","sources":["../../../src/test/statistics/getTopByColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE;IAC9E,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,0BAA0B;CACtC,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,gDAAgD,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst topByColumnRes = await shortio.statistics.getTopByColumn(293848, \"browser\", {\n startDate: \"2022-10-01T14:08:04.418Z\",\n endDate: \"2022-10-30T14:08:04.418Z\",\n});\nconsole.log(\"file: getTopByColumn.ts:12 ::: topByColumnRes:\", topByColumnRes);\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
3
|
-
const topByIntervalRes = await shortio.statistics.getTopByInterval(293848, "browser", {
|
|
4
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
5
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: getTopByInterval.ts:8 ::: topByColumnIntervalRes:", topByIntervalRes);
|
|
8
|
-
//# sourceMappingURL=getTopByInterval.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTopByInterval.js","sourceRoot":"","sources":["../../../src/test/statistics/getTopByInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnD,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE;IAClF,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,0BAA0B;CACtC,CAAC,CAAC;AACH,OAAO,CAAC,GAAG,CAAC,yDAAyD,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["import { Shortio } from \"../../index.js\";\n\nconst shortio = new Shortio(\"sk_Kd5g7v8CEsgoH2oE\");\nconst topByIntervalRes = await shortio.statistics.getTopByInterval(293848, \"browser\", {\n startDate: \"2022-10-01T14:08:04.418Z\",\n endDate: \"2022-10-30T14:08:04.418Z\",\n});\nconsole.log(\"file: getTopByInterval.ts:8 ::: topByColumnIntervalRes:\", topByIntervalRes);\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const newLinks = await shortio.link.bulkCreate(
|
|
5
|
-
"rybak.link",
|
|
6
|
-
[
|
|
7
|
-
{
|
|
8
|
-
originalURL: "https://developers.short.io/reference/linksbulkpost",
|
|
9
|
-
path: "shortio/linkbulkcreate",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
originalURL: "https://developers.short.io/reference/archivelink",
|
|
13
|
-
path: "shortio/linkarchive",
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
// true,
|
|
17
|
-
);
|
|
18
|
-
console.log("file: createLinkBulk.ts:14 ::: newLinks:", newLinks);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkCountryRes = await shortio.linkCountry.create("lnk_1eru_9dCPkogORqv", {
|
|
5
|
-
country: "US",
|
|
6
|
-
originalURL: "https://example3.com",
|
|
7
|
-
});
|
|
8
|
-
console.log("file: linkCountryRes.ts:5 ::: linkCountryRes:", linkCountryRes);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const newLink = await shortio.link.createPublic(
|
|
5
|
-
"rybak.link",
|
|
6
|
-
"https://example.com/long--long--url",
|
|
7
|
-
"pk_wO9WCsRU5Q08Gumf",
|
|
8
|
-
);
|
|
9
|
-
console.log("file: createLink.ts:5 ::: newLink:", newLink);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkRegionRes = await shortio.linkRegion.create("lnk_1eru_9dCPkogORqv", {
|
|
5
|
-
country: "US",
|
|
6
|
-
region: "CA",
|
|
7
|
-
originalURL: "https://example4.com",
|
|
8
|
-
});
|
|
9
|
-
console.log("file: getLinkRegions.ts:5 ::: linkRegionRes:", linkRegionRes);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkCountryDelRes = await shortio.linkCountry.delete("lnk_1eru_9dCPkogORqv", "US");
|
|
5
|
-
console.log("file: deleteLinkCountry.ts:5 ::: linkCountryDelRes:", linkCountryDelRes);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkRegionRes = await shortio.linkRegion.delete("lnk_1eru_9dCPkogORqv", {
|
|
5
|
-
country: "US",
|
|
6
|
-
region: "CA",
|
|
7
|
-
});
|
|
8
|
-
console.log("file: getLinkRegions.ts:5 ::: linkRegionRes:", linkRegionRes);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkInfo = await shortio.link.getByOriginalURL("rybak.link", "https://github.com/RemyJeancolas/docker-aliases");
|
|
5
|
-
console.log("file: getLinkInfo.ts:5 ::: linkInfo:", linkInfo);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const updateRes = await shortio.link.update("lnk_1eru_9dCPkohgosF", {
|
|
5
|
-
originalURL: "https://example.com?q=test",
|
|
6
|
-
path: "new-path",
|
|
7
|
-
});
|
|
8
|
-
console.log("file: updateLink.ts:5 ::: updateRes:", updateRes);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const openGraphRes = await shortio.link.updateOpenGraph(293848, "lnk_1eru_9dCPkogORqv", [["title", "new title"]]);
|
|
5
|
-
console.log("file: getOpenGraph.ts:5 ::: openGraphRes:", openGraphRes);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const domainStat = await shortio.statistics.getByDomainPost(293848, {
|
|
5
|
-
period: "week",
|
|
6
|
-
include: {
|
|
7
|
-
browsers: ["Chrome"],
|
|
8
|
-
},
|
|
9
|
-
});
|
|
10
|
-
console.log("file: getByDomain.ts:7 ::: domainStat:", domainStat);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkStat = await shortio.statistics.getByLinkPost("lnk_1eru_9dCBlsuLCCO", {
|
|
5
|
-
period: "month",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: getByLink.ts:5 ::: linkStat:", linkStat);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const lastClicksRes = await shortio.statistics.getLastClicks(293848, {
|
|
5
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
6
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
7
|
-
});
|
|
8
|
-
console.log("file: getLastClicks.ts:8 ::: lastClicksRes:", lastClicksRes);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkClicks = await shortio.statistics.getLinkClicks(293848, {
|
|
5
|
-
ids: "lnk_1eru_9dCBlsuLCCO,lnk_1eru_9dCBlsu4fHY",
|
|
6
|
-
});
|
|
7
|
-
console.log("file: getByLinkClicks.ts:7 ::: linkClicks:", linkClicks);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const linkClicks = await shortio.statistics.getLinkClicksByPathDates(
|
|
5
|
-
293848,
|
|
6
|
-
[
|
|
7
|
-
{
|
|
8
|
-
path: "dYWvQ2",
|
|
9
|
-
createdAt: "023-02-23T14:08:04.418Z",
|
|
10
|
-
},
|
|
11
|
-
],
|
|
12
|
-
{
|
|
13
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
14
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
15
|
-
},
|
|
16
|
-
);
|
|
17
|
-
console.log("file: getByLinkClicks.ts:7 ::: linkClicks:", linkClicks);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const topByColumnRes = await shortio.statistics.getTopByColumn(293848, "browser", {
|
|
5
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
6
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
7
|
-
});
|
|
8
|
-
console.log("file: getTopByColumn.ts:12 ::: topByColumnRes:", topByColumnRes);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Shortio } from "../../index.js";
|
|
2
|
-
|
|
3
|
-
const shortio = new Shortio("sk_Kd5g7v8CEsgoH2oE");
|
|
4
|
-
const topByIntervalRes = await shortio.statistics.getTopByInterval(293848, "browser", {
|
|
5
|
-
startDate: "2022-10-01T14:08:04.418Z",
|
|
6
|
-
endDate: "2022-10-30T14:08:04.418Z",
|
|
7
|
-
});
|
|
8
|
-
console.log("file: getTopByInterval.ts:8 ::: topByColumnIntervalRes:", topByIntervalRes);
|