@shware/analytics 2.1.2 → 2.1.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.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/link/index.cjs +8 -2
- package/dist/link/index.cjs.map +1 -1
- package/dist/link/index.d.cts +2 -1
- package/dist/link/index.d.ts +2 -1
- package/dist/link/index.mjs +6 -1
- package/dist/link/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
createTrackEventSchema: () => import_schema.createTrackEventSchema,
|
|
27
27
|
createTrackEventSchemaV1: () => import_schema.createTrackEventSchemaV1,
|
|
28
28
|
createVisitorSchema: () => import_schema.createVisitorSchema,
|
|
29
|
+
getLink: () => import_link.getLink,
|
|
29
30
|
getVisitor: () => import_visitor.getVisitor,
|
|
30
31
|
sendFeedback: () => import_feedback.sendFeedback,
|
|
31
32
|
setUserId: () => import_visitor.setUserId,
|
|
@@ -52,6 +53,7 @@ var import_stripe = require("./utils/stripe.cjs");
|
|
|
52
53
|
createTrackEventSchema,
|
|
53
54
|
createTrackEventSchemaV1,
|
|
54
55
|
createVisitorSchema,
|
|
56
|
+
getLink,
|
|
55
57
|
getVisitor,
|
|
56
58
|
sendFeedback,
|
|
57
59
|
setUserId,
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { setupAnalytics } from './setup/index';\nexport { track, trackAsync } from './track/index';\nexport { getVisitor, setVisitor, setUserId } from './visitor/index';\nexport { sendFeedback } from './feedback/index';\nexport { createLink, type Link } from './link/index';\nexport {\n createTrackEventSchemaV1,\n createTrackEventSchema,\n createVisitorSchema,\n updateVisitorSchema,\n createFeedbackSchema,\n createLinkSchema,\n type CreateFeedbackDTO,\n type CreateLinkDTO,\n} from './schema/index';\nexport { stripeMinorUnits } from './utils/stripe';\n\nexport type {\n TrackProperties,\n TrackTags,\n AllowedPropertyValues,\n UserProvidedData,\n} from './track/types';\nexport type { VisitorProperties } from './visitor/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA+B;AAC/B,mBAAkC;AAClC,qBAAkD;AAClD,sBAA6B;AAC7B,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { setupAnalytics } from './setup/index';\nexport { track, trackAsync } from './track/index';\nexport { getVisitor, setVisitor, setUserId } from './visitor/index';\nexport { sendFeedback } from './feedback/index';\nexport { createLink, getLink, type Link } from './link/index';\nexport {\n createTrackEventSchemaV1,\n createTrackEventSchema,\n createVisitorSchema,\n updateVisitorSchema,\n createFeedbackSchema,\n createLinkSchema,\n type CreateFeedbackDTO,\n type CreateLinkDTO,\n} from './schema/index';\nexport { stripeMinorUnits } from './utils/stripe';\n\nexport type {\n TrackProperties,\n TrackTags,\n AllowedPropertyValues,\n UserProvidedData,\n} from './track/types';\nexport type { VisitorProperties } from './visitor/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA+B;AAC/B,mBAAkC;AAClC,qBAAkD;AAClD,sBAA6B;AAC7B,kBAA+C;AAC/C,oBASO;AACP,oBAAiC;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ export { setupAnalytics } from './setup/index.cjs';
|
|
|
2
2
|
export { track, trackAsync } from './track/index.cjs';
|
|
3
3
|
export { getVisitor, setUserId, setVisitor } from './visitor/index.cjs';
|
|
4
4
|
export { sendFeedback } from './feedback/index.cjs';
|
|
5
|
-
export { Link, createLink } from './link/index.cjs';
|
|
5
|
+
export { Link, createLink, getLink } from './link/index.cjs';
|
|
6
6
|
export { CreateFeedbackDTO, CreateLinkDTO, createFeedbackSchema, createLinkSchema, createTrackEventSchema, createTrackEventSchemaV1, createVisitorSchema, updateVisitorSchema } from './schema/index.cjs';
|
|
7
7
|
export { stripeMinorUnits } from './utils/stripe.cjs';
|
|
8
8
|
export { AllowedPropertyValues, TrackProperties, TrackTags, UserProvidedData } from './track/types.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { setupAnalytics } from './setup/index.js';
|
|
|
2
2
|
export { track, trackAsync } from './track/index.js';
|
|
3
3
|
export { getVisitor, setUserId, setVisitor } from './visitor/index.js';
|
|
4
4
|
export { sendFeedback } from './feedback/index.js';
|
|
5
|
-
export { Link, createLink } from './link/index.js';
|
|
5
|
+
export { Link, createLink, getLink } from './link/index.js';
|
|
6
6
|
export { CreateFeedbackDTO, CreateLinkDTO, createFeedbackSchema, createLinkSchema, createTrackEventSchema, createTrackEventSchemaV1, createVisitorSchema, updateVisitorSchema } from './schema/index.js';
|
|
7
7
|
export { stripeMinorUnits } from './utils/stripe.js';
|
|
8
8
|
export { AllowedPropertyValues, TrackProperties, TrackTags, UserProvidedData } from './track/types.js';
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { setupAnalytics } from "./setup/index.mjs";
|
|
|
3
3
|
import { track, trackAsync } from "./track/index.mjs";
|
|
4
4
|
import { getVisitor, setVisitor, setUserId } from "./visitor/index.mjs";
|
|
5
5
|
import { sendFeedback } from "./feedback/index.mjs";
|
|
6
|
-
import { createLink } from "./link/index.mjs";
|
|
6
|
+
import { createLink, getLink } from "./link/index.mjs";
|
|
7
7
|
import {
|
|
8
8
|
createTrackEventSchemaV1,
|
|
9
9
|
createTrackEventSchema,
|
|
@@ -20,6 +20,7 @@ export {
|
|
|
20
20
|
createTrackEventSchema,
|
|
21
21
|
createTrackEventSchemaV1,
|
|
22
22
|
createVisitorSchema,
|
|
23
|
+
getLink,
|
|
23
24
|
getVisitor,
|
|
24
25
|
sendFeedback,
|
|
25
26
|
setUserId,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { setupAnalytics } from './setup/index';\nexport { track, trackAsync } from './track/index';\nexport { getVisitor, setVisitor, setUserId } from './visitor/index';\nexport { sendFeedback } from './feedback/index';\nexport { createLink, type Link } from './link/index';\nexport {\n createTrackEventSchemaV1,\n createTrackEventSchema,\n createVisitorSchema,\n updateVisitorSchema,\n createFeedbackSchema,\n createLinkSchema,\n type CreateFeedbackDTO,\n type CreateLinkDTO,\n} from './schema/index';\nexport { stripeMinorUnits } from './utils/stripe';\n\nexport type {\n TrackProperties,\n TrackTags,\n AllowedPropertyValues,\n UserProvidedData,\n} from './track/types';\nexport type { VisitorProperties } from './visitor/types';\n"],"mappings":";AAAA,SAAS,sBAAsB;AAC/B,SAAS,OAAO,kBAAkB;AAClC,SAAS,YAAY,YAAY,iBAAiB;AAClD,SAAS,oBAAoB;AAC7B,SAAS,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { setupAnalytics } from './setup/index';\nexport { track, trackAsync } from './track/index';\nexport { getVisitor, setVisitor, setUserId } from './visitor/index';\nexport { sendFeedback } from './feedback/index';\nexport { createLink, getLink, type Link } from './link/index';\nexport {\n createTrackEventSchemaV1,\n createTrackEventSchema,\n createVisitorSchema,\n updateVisitorSchema,\n createFeedbackSchema,\n createLinkSchema,\n type CreateFeedbackDTO,\n type CreateLinkDTO,\n} from './schema/index';\nexport { stripeMinorUnits } from './utils/stripe';\n\nexport type {\n TrackProperties,\n TrackTags,\n AllowedPropertyValues,\n UserProvidedData,\n} from './track/types';\nexport type { VisitorProperties } from './visitor/types';\n"],"mappings":";AAAA,SAAS,sBAAsB;AAC/B,SAAS,OAAO,kBAAkB;AAClC,SAAS,YAAY,YAAY,iBAAiB;AAClD,SAAS,oBAAoB;AAC7B,SAAS,YAAY,eAA0B;AAC/C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,wBAAwB;","names":[]}
|
package/dist/link/index.cjs
CHANGED
|
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/link/index.ts
|
|
21
21
|
var link_exports = {};
|
|
22
22
|
__export(link_exports, {
|
|
23
|
-
createLink: () => createLink
|
|
23
|
+
createLink: () => createLink,
|
|
24
|
+
getLink: () => getLink
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(link_exports);
|
|
26
27
|
var import_setup = require("../setup/index.cjs");
|
|
@@ -28,8 +29,13 @@ async function createLink(dto) {
|
|
|
28
29
|
const response = await import_setup.config.http.post("/links", dto);
|
|
29
30
|
return response.data;
|
|
30
31
|
}
|
|
32
|
+
async function getLink(id) {
|
|
33
|
+
const response = await import_setup.config.http.get(`/links/${id}`);
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
31
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
37
|
0 && (module.exports = {
|
|
33
|
-
createLink
|
|
38
|
+
createLink,
|
|
39
|
+
getLink
|
|
34
40
|
});
|
|
35
41
|
//# sourceMappingURL=index.cjs.map
|
package/dist/link/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/link/index.ts"],"sourcesContent":["import { config } from '../setup/index';\nimport type { CreateLinkDTO } from '../schema/index';\n\nexport interface Link extends CreateLinkDTO {\n id: string;\n created_at: string;\n}\n\nexport async function createLink(dto: CreateLinkDTO) {\n const response = await config.http.post<Link>('/links', dto);\n return response.data;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAuB;AAQvB,eAAsB,WAAW,KAAoB;AACnD,QAAM,WAAW,MAAM,oBAAO,KAAK,KAAW,UAAU,GAAG;AAC3D,SAAO,SAAS;AAClB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/link/index.ts"],"sourcesContent":["import { config } from '../setup/index';\nimport type { CreateLinkDTO } from '../schema/index';\n\nexport interface Link extends CreateLinkDTO {\n id: string;\n created_at: string;\n}\n\nexport async function createLink(dto: CreateLinkDTO) {\n const response = await config.http.post<Link>('/links', dto);\n return response.data;\n}\n\nexport async function getLink(id: string) {\n const response = await config.http.get<Link>(`/links/${id}`);\n return response.data;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAuB;AAQvB,eAAsB,WAAW,KAAoB;AACnD,QAAM,WAAW,MAAM,oBAAO,KAAK,KAAW,UAAU,GAAG;AAC3D,SAAO,SAAS;AAClB;AAEA,eAAsB,QAAQ,IAAY;AACxC,QAAM,WAAW,MAAM,oBAAO,KAAK,IAAU,UAAU,EAAE,EAAE;AAC3D,SAAO,SAAS;AAClB;","names":[]}
|
package/dist/link/index.d.cts
CHANGED
|
@@ -6,5 +6,6 @@ interface Link extends CreateLinkDTO {
|
|
|
6
6
|
created_at: string;
|
|
7
7
|
}
|
|
8
8
|
declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
9
|
+
declare function getLink(id: string): Promise<Link>;
|
|
9
10
|
|
|
10
|
-
export { type Link, createLink };
|
|
11
|
+
export { type Link, createLink, getLink };
|
package/dist/link/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ interface Link extends CreateLinkDTO {
|
|
|
6
6
|
created_at: string;
|
|
7
7
|
}
|
|
8
8
|
declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
9
|
+
declare function getLink(id: string): Promise<Link>;
|
|
9
10
|
|
|
10
|
-
export { type Link, createLink };
|
|
11
|
+
export { type Link, createLink, getLink };
|
package/dist/link/index.mjs
CHANGED
|
@@ -4,7 +4,12 @@ async function createLink(dto) {
|
|
|
4
4
|
const response = await config.http.post("/links", dto);
|
|
5
5
|
return response.data;
|
|
6
6
|
}
|
|
7
|
+
async function getLink(id) {
|
|
8
|
+
const response = await config.http.get(`/links/${id}`);
|
|
9
|
+
return response.data;
|
|
10
|
+
}
|
|
7
11
|
export {
|
|
8
|
-
createLink
|
|
12
|
+
createLink,
|
|
13
|
+
getLink
|
|
9
14
|
};
|
|
10
15
|
//# sourceMappingURL=index.mjs.map
|
package/dist/link/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/link/index.ts"],"sourcesContent":["import { config } from '../setup/index';\nimport type { CreateLinkDTO } from '../schema/index';\n\nexport interface Link extends CreateLinkDTO {\n id: string;\n created_at: string;\n}\n\nexport async function createLink(dto: CreateLinkDTO) {\n const response = await config.http.post<Link>('/links', dto);\n return response.data;\n}\n"],"mappings":";AAAA,SAAS,cAAc;AAQvB,eAAsB,WAAW,KAAoB;AACnD,QAAM,WAAW,MAAM,OAAO,KAAK,KAAW,UAAU,GAAG;AAC3D,SAAO,SAAS;AAClB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/link/index.ts"],"sourcesContent":["import { config } from '../setup/index';\nimport type { CreateLinkDTO } from '../schema/index';\n\nexport interface Link extends CreateLinkDTO {\n id: string;\n created_at: string;\n}\n\nexport async function createLink(dto: CreateLinkDTO) {\n const response = await config.http.post<Link>('/links', dto);\n return response.data;\n}\n\nexport async function getLink(id: string) {\n const response = await config.http.get<Link>(`/links/${id}`);\n return response.data;\n}\n"],"mappings":";AAAA,SAAS,cAAc;AAQvB,eAAsB,WAAW,KAAoB;AACnD,QAAM,WAAW,MAAM,OAAO,KAAK,KAAW,UAAU,GAAG;AAC3D,SAAO,SAAS;AAClB;AAEA,eAAsB,QAAQ,IAAY;AACxC,QAAM,WAAW,MAAM,OAAO,KAAK,IAAU,UAAU,EAAE,EAAE;AAC3D,SAAO,SAAS;AAClB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/analytics",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@repo/eslint-config": "workspace:*",
|
|
64
64
|
"@repo/typescript-config": "workspace:*",
|
|
65
65
|
"@types/facebook-nodejs-business-sdk": "^22.0.0",
|
|
66
|
-
"@types/node": "^24.0.
|
|
66
|
+
"@types/node": "^24.0.12",
|
|
67
67
|
"@types/react": "^19.1.8",
|
|
68
68
|
"typescript": "^5.8.3"
|
|
69
69
|
},
|