@blux.ai/web-sdk 1.0.0-rc0 → 1.0.0-rc2
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/package.json +4 -4
- package/dist/src/BluxClient.d.ts +41 -0
- package/dist/src/BluxClient.js +208 -0
- package/dist/src/BluxClient.js.map +1 -0
- package/dist/src/apis/APIs.d.ts +348 -0
- package/dist/src/apis/APIs.js +145 -0
- package/dist/src/apis/APIs.js.map +1 -0
- package/dist/src/apis/createEvent.d.ts +4 -0
- package/dist/src/apis/createEvent.js +7 -0
- package/dist/src/apis/createEvent.js.map +1 -0
- package/dist/src/apis/getItemRecommendation.d.ts +4 -0
- package/dist/src/apis/getItemRecommendation.js +7 -0
- package/dist/src/apis/getItemRecommendation.js.map +1 -0
- package/dist/src/apis/initialize.d.ts +4 -0
- package/dist/src/apis/initialize.js +7 -0
- package/dist/src/apis/initialize.js.map +1 -0
- package/dist/src/apis/signIn.d.ts +4 -0
- package/dist/src/apis/signIn.js +7 -0
- package/dist/src/apis/signIn.js.map +1 -0
- package/dist/src/apis/signOut.d.ts +4 -0
- package/dist/src/apis/signOut.js +7 -0
- package/dist/src/apis/signOut.js.map +1 -0
- package/dist/src/apis/updateCustomUserProperties.d.ts +4 -0
- package/dist/src/apis/updateCustomUserProperties.js +7 -0
- package/dist/src/apis/updateCustomUserProperties.js.map +1 -0
- package/dist/src/apis/updateUserProperties.d.ts +4 -0
- package/dist/src/apis/updateUserProperties.js +7 -0
- package/dist/src/apis/updateUserProperties.js.map +1 -0
- package/dist/src/constants/COUNTRIES.d.ts +928 -0
- package/dist/src/constants/COUNTRIES.js +1159 -0
- package/dist/src/constants/COUNTRIES.js.map +1 -0
- package/dist/src/constants/ISO8601_REGEX.d.ts +1 -0
- package/dist/src/constants/ISO8601_REGEX.js +4 -0
- package/dist/src/constants/ISO8601_REGEX.js.map +1 -0
- package/dist/src/events/AddCartaddEvent.d.ts +5 -0
- package/dist/src/events/AddCartaddEvent.js +13 -0
- package/dist/src/events/AddCartaddEvent.js.map +1 -0
- package/dist/src/events/AddCustomEvent.d.ts +5 -0
- package/dist/src/events/AddCustomEvent.js +11 -0
- package/dist/src/events/AddCustomEvent.js.map +1 -0
- package/dist/src/events/AddInstantImpression.d.ts +5 -0
- package/dist/src/events/AddInstantImpression.js +17 -0
- package/dist/src/events/AddInstantImpression.js.map +1 -0
- package/dist/src/events/AddLikeEvent.d.ts +5 -0
- package/dist/src/events/AddLikeEvent.js +13 -0
- package/dist/src/events/AddLikeEvent.js.map +1 -0
- package/dist/src/events/AddPageViewEvent.d.ts +5 -0
- package/dist/src/events/AddPageViewEvent.js +11 -0
- package/dist/src/events/AddPageViewEvent.js.map +1 -0
- package/dist/src/events/AddPageVisitEvent.d.ts +5 -0
- package/dist/src/events/AddPageVisitEvent.js +10 -0
- package/dist/src/events/AddPageVisitEvent.js.map +1 -0
- package/dist/src/events/AddPersistentImpression.d.ts +5 -0
- package/dist/src/events/AddPersistentImpression.js +17 -0
- package/dist/src/events/AddPersistentImpression.js.map +1 -0
- package/dist/src/events/AddProductDetailViewEvent.d.ts +5 -0
- package/dist/src/events/AddProductDetailViewEvent.js +16 -0
- package/dist/src/events/AddProductDetailViewEvent.js.map +1 -0
- package/dist/src/events/AddPurchaseEvent.d.ts +5 -0
- package/dist/src/events/AddPurchaseEvent.js +15 -0
- package/dist/src/events/AddPurchaseEvent.js.map +1 -0
- package/dist/src/events/AddRateEvent.d.ts +5 -0
- package/dist/src/events/AddRateEvent.js +11 -0
- package/dist/src/events/AddRateEvent.js.map +1 -0
- package/dist/src/events/AddSectionViewEvent.d.ts +5 -0
- package/dist/src/events/AddSectionViewEvent.js +14 -0
- package/dist/src/events/AddSectionViewEvent.js.map +1 -0
- package/dist/src/events/Event.d.ts +24 -0
- package/dist/src/events/Event.js +33 -0
- package/dist/src/events/Event.js.map +1 -0
- package/dist/src/events/VisitEvent.d.ts +5 -0
- package/dist/src/events/VisitEvent.js +10 -0
- package/dist/src/events/VisitEvent.js.map +1 -0
- package/dist/src/events/index.d.ts +10 -0
- package/dist/src/events/index.js +11 -0
- package/dist/src/events/index.js.map +1 -0
- package/dist/src/events/types.d.ts +75 -0
- package/dist/src/events/types.js +3 -0
- package/dist/src/events/types.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/recommendations/ItemRecommendation.d.ts +5 -0
- package/dist/src/recommendations/ItemRecommendation.js +12 -0
- package/dist/src/recommendations/ItemRecommendation.js.map +1 -0
- package/dist/src/recommendations/Recommendation.d.ts +5 -0
- package/dist/src/recommendations/Recommendation.js +9 -0
- package/dist/src/recommendations/Recommendation.js.map +1 -0
- package/dist/src/recommendations/index.d.ts +1 -0
- package/dist/src/recommendations/index.js +2 -0
- package/dist/src/recommendations/index.js.map +1 -0
- package/dist/src/recommendations/types.d.ts +11 -0
- package/dist/src/recommendations/types.js +2 -0
- package/dist/src/recommendations/types.js.map +1 -0
- package/dist/src/utils/Base.d.ts +13 -0
- package/dist/src/utils/Base.js +2 -0
- package/dist/src/utils/Base.js.map +1 -0
- package/dist/src/utils/LocalStorage.d.ts +8 -0
- package/dist/src/utils/LocalStorage.js +30 -0
- package/dist/src/utils/LocalStorage.js.map +1 -0
- package/dist/src/utils/Logger.d.ts +13 -0
- package/dist/src/utils/Logger.js +49 -0
- package/dist/src/utils/Logger.js.map +1 -0
- package/dist/src/utils/assertEqualTypes.d.ts +3 -0
- package/dist/src/utils/assertEqualTypes.js +5 -0
- package/dist/src/utils/assertEqualTypes.js.map +1 -0
- package/dist/src/utils/getPath.d.ts +1 -0
- package/dist/src/utils/getPath.js +9 -0
- package/dist/src/utils/getPath.js.map +1 -0
- package/dist/src/utils/helper.d.ts +1 -0
- package/dist/src/utils/helper.js +4 -0
- package/dist/src/utils/helper.js.map +1 -0
- package/dist/src/utils/operators.d.ts +2 -0
- package/dist/src/utils/operators.js +6 -0
- package/dist/src/utils/operators.js.map +1 -0
- package/dist/src/utils/zodSchemas.d.ts +19 -0
- package/dist/src/utils/zodSchemas.js +105 -0
- package/dist/src/utils/zodSchemas.js.map +1 -0
- package/package.json +4 -4
- package/demo/craco.config.js +0 -29
- package/demo/package.json +0 -50
- package/demo/public/favicon.ico +0 -0
- package/demo/public/index.html +0 -43
- package/demo/public/logo192.png +0 -0
- package/demo/public/logo512.png +0 -0
- package/demo/public/manifest.json +0 -25
- package/demo/public/robots.txt +0 -3
- package/demo/tailwind.config.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signOut.js","sourceRoot":"/","sources":["src/apis/signOut.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,IAAO,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC;AAEnC,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport API = APIs.bluxUsersSignOut;\n\nexport const signOut = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
3
|
+
import API = APIs.bluxUsersUpdateCustomUserProperties;
|
|
4
|
+
export declare const updateCustomUserProperties: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { APIs } from "./APIs";
|
|
2
|
+
import { getPath } from "../utils/getPath";
|
|
3
|
+
var API = APIs.bluxUsersUpdateCustomUserProperties;
|
|
4
|
+
export const updateCustomUserProperties = (instance, pathParams, body, headers) => {
|
|
5
|
+
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=updateCustomUserProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateCustomUserProperties.js","sourceRoot":"/","sources":["src/apis/updateCustomUserProperties.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,IAAO,GAAG,GAAG,IAAI,CAAC,mCAAmC,CAAC;AAEtD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport API = APIs.bluxUsersUpdateCustomUserProperties;\n\nexport const updateCustomUserProperties = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
3
|
+
import API = APIs.bluxUsersUpdateUserProperties;
|
|
4
|
+
export declare const updateUserProperties: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { APIs } from "./APIs";
|
|
2
|
+
import { getPath } from "../utils/getPath";
|
|
3
|
+
var API = APIs.bluxUsersUpdateUserProperties;
|
|
4
|
+
export const updateUserProperties = (instance, pathParams, body, headers) => {
|
|
5
|
+
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=updateUserProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateUserProperties.js","sourceRoot":"/","sources":["src/apis/updateUserProperties.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,IAAO,GAAG,GAAG,IAAI,CAAC,6BAA6B,CAAC;AAEhD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport API = APIs.bluxUsersUpdateUserProperties;\n\nexport const updateUserProperties = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|