@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.
Files changed (128) hide show
  1. package/dist/package.json +4 -4
  2. package/dist/src/BluxClient.d.ts +41 -0
  3. package/dist/src/BluxClient.js +208 -0
  4. package/dist/src/BluxClient.js.map +1 -0
  5. package/dist/src/apis/APIs.d.ts +348 -0
  6. package/dist/src/apis/APIs.js +145 -0
  7. package/dist/src/apis/APIs.js.map +1 -0
  8. package/dist/src/apis/createEvent.d.ts +4 -0
  9. package/dist/src/apis/createEvent.js +7 -0
  10. package/dist/src/apis/createEvent.js.map +1 -0
  11. package/dist/src/apis/getItemRecommendation.d.ts +4 -0
  12. package/dist/src/apis/getItemRecommendation.js +7 -0
  13. package/dist/src/apis/getItemRecommendation.js.map +1 -0
  14. package/dist/src/apis/initialize.d.ts +4 -0
  15. package/dist/src/apis/initialize.js +7 -0
  16. package/dist/src/apis/initialize.js.map +1 -0
  17. package/dist/src/apis/signIn.d.ts +4 -0
  18. package/dist/src/apis/signIn.js +7 -0
  19. package/dist/src/apis/signIn.js.map +1 -0
  20. package/dist/src/apis/signOut.d.ts +4 -0
  21. package/dist/src/apis/signOut.js +7 -0
  22. package/dist/src/apis/signOut.js.map +1 -0
  23. package/dist/src/apis/updateCustomUserProperties.d.ts +4 -0
  24. package/dist/src/apis/updateCustomUserProperties.js +7 -0
  25. package/dist/src/apis/updateCustomUserProperties.js.map +1 -0
  26. package/dist/src/apis/updateUserProperties.d.ts +4 -0
  27. package/dist/src/apis/updateUserProperties.js +7 -0
  28. package/dist/src/apis/updateUserProperties.js.map +1 -0
  29. package/dist/src/constants/COUNTRIES.d.ts +928 -0
  30. package/dist/src/constants/COUNTRIES.js +1159 -0
  31. package/dist/src/constants/COUNTRIES.js.map +1 -0
  32. package/dist/src/constants/ISO8601_REGEX.d.ts +1 -0
  33. package/dist/src/constants/ISO8601_REGEX.js +4 -0
  34. package/dist/src/constants/ISO8601_REGEX.js.map +1 -0
  35. package/dist/src/events/AddCartaddEvent.d.ts +5 -0
  36. package/dist/src/events/AddCartaddEvent.js +13 -0
  37. package/dist/src/events/AddCartaddEvent.js.map +1 -0
  38. package/dist/src/events/AddCustomEvent.d.ts +5 -0
  39. package/dist/src/events/AddCustomEvent.js +11 -0
  40. package/dist/src/events/AddCustomEvent.js.map +1 -0
  41. package/dist/src/events/AddInstantImpression.d.ts +5 -0
  42. package/dist/src/events/AddInstantImpression.js +17 -0
  43. package/dist/src/events/AddInstantImpression.js.map +1 -0
  44. package/dist/src/events/AddLikeEvent.d.ts +5 -0
  45. package/dist/src/events/AddLikeEvent.js +13 -0
  46. package/dist/src/events/AddLikeEvent.js.map +1 -0
  47. package/dist/src/events/AddPageViewEvent.d.ts +5 -0
  48. package/dist/src/events/AddPageViewEvent.js +11 -0
  49. package/dist/src/events/AddPageViewEvent.js.map +1 -0
  50. package/dist/src/events/AddPageVisitEvent.d.ts +5 -0
  51. package/dist/src/events/AddPageVisitEvent.js +10 -0
  52. package/dist/src/events/AddPageVisitEvent.js.map +1 -0
  53. package/dist/src/events/AddPersistentImpression.d.ts +5 -0
  54. package/dist/src/events/AddPersistentImpression.js +17 -0
  55. package/dist/src/events/AddPersistentImpression.js.map +1 -0
  56. package/dist/src/events/AddProductDetailViewEvent.d.ts +5 -0
  57. package/dist/src/events/AddProductDetailViewEvent.js +16 -0
  58. package/dist/src/events/AddProductDetailViewEvent.js.map +1 -0
  59. package/dist/src/events/AddPurchaseEvent.d.ts +5 -0
  60. package/dist/src/events/AddPurchaseEvent.js +15 -0
  61. package/dist/src/events/AddPurchaseEvent.js.map +1 -0
  62. package/dist/src/events/AddRateEvent.d.ts +5 -0
  63. package/dist/src/events/AddRateEvent.js +11 -0
  64. package/dist/src/events/AddRateEvent.js.map +1 -0
  65. package/dist/src/events/AddSectionViewEvent.d.ts +5 -0
  66. package/dist/src/events/AddSectionViewEvent.js +14 -0
  67. package/dist/src/events/AddSectionViewEvent.js.map +1 -0
  68. package/dist/src/events/Event.d.ts +24 -0
  69. package/dist/src/events/Event.js +33 -0
  70. package/dist/src/events/Event.js.map +1 -0
  71. package/dist/src/events/VisitEvent.d.ts +5 -0
  72. package/dist/src/events/VisitEvent.js +10 -0
  73. package/dist/src/events/VisitEvent.js.map +1 -0
  74. package/dist/src/events/index.d.ts +10 -0
  75. package/dist/src/events/index.js +11 -0
  76. package/dist/src/events/index.js.map +1 -0
  77. package/dist/src/events/types.d.ts +75 -0
  78. package/dist/src/events/types.js +3 -0
  79. package/dist/src/events/types.js.map +1 -0
  80. package/dist/src/index.d.ts +4 -0
  81. package/dist/src/index.js +5 -0
  82. package/dist/src/index.js.map +1 -0
  83. package/dist/src/recommendations/ItemRecommendation.d.ts +5 -0
  84. package/dist/src/recommendations/ItemRecommendation.js +12 -0
  85. package/dist/src/recommendations/ItemRecommendation.js.map +1 -0
  86. package/dist/src/recommendations/Recommendation.d.ts +5 -0
  87. package/dist/src/recommendations/Recommendation.js +9 -0
  88. package/dist/src/recommendations/Recommendation.js.map +1 -0
  89. package/dist/src/recommendations/index.d.ts +1 -0
  90. package/dist/src/recommendations/index.js +2 -0
  91. package/dist/src/recommendations/index.js.map +1 -0
  92. package/dist/src/recommendations/types.d.ts +11 -0
  93. package/dist/src/recommendations/types.js +2 -0
  94. package/dist/src/recommendations/types.js.map +1 -0
  95. package/dist/src/utils/Base.d.ts +13 -0
  96. package/dist/src/utils/Base.js +2 -0
  97. package/dist/src/utils/Base.js.map +1 -0
  98. package/dist/src/utils/LocalStorage.d.ts +8 -0
  99. package/dist/src/utils/LocalStorage.js +30 -0
  100. package/dist/src/utils/LocalStorage.js.map +1 -0
  101. package/dist/src/utils/Logger.d.ts +13 -0
  102. package/dist/src/utils/Logger.js +49 -0
  103. package/dist/src/utils/Logger.js.map +1 -0
  104. package/dist/src/utils/assertEqualTypes.d.ts +3 -0
  105. package/dist/src/utils/assertEqualTypes.js +5 -0
  106. package/dist/src/utils/assertEqualTypes.js.map +1 -0
  107. package/dist/src/utils/getPath.d.ts +1 -0
  108. package/dist/src/utils/getPath.js +9 -0
  109. package/dist/src/utils/getPath.js.map +1 -0
  110. package/dist/src/utils/helper.d.ts +1 -0
  111. package/dist/src/utils/helper.js +4 -0
  112. package/dist/src/utils/helper.js.map +1 -0
  113. package/dist/src/utils/operators.d.ts +2 -0
  114. package/dist/src/utils/operators.js +6 -0
  115. package/dist/src/utils/operators.js.map +1 -0
  116. package/dist/src/utils/zodSchemas.d.ts +19 -0
  117. package/dist/src/utils/zodSchemas.js +105 -0
  118. package/dist/src/utils/zodSchemas.js.map +1 -0
  119. package/package.json +4 -4
  120. package/demo/craco.config.js +0 -29
  121. package/demo/package.json +0 -50
  122. package/demo/public/favicon.ico +0 -0
  123. package/demo/public/index.html +0 -43
  124. package/demo/public/logo192.png +0 -0
  125. package/demo/public/logo512.png +0 -0
  126. package/demo/public/manifest.json +0 -25
  127. package/demo/public/robots.txt +0 -3
  128. 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"]}