@blux.ai/web-sdk 0.0.3 → 0.0.5

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 (115) hide show
  1. package/.prettierrc +0 -1
  2. package/.sentryclirc +3 -0
  3. package/README.md +147 -11
  4. package/demo/README.md +46 -0
  5. package/demo/craco.config.js +27 -0
  6. package/demo/package.json +48 -0
  7. package/demo/public/favicon.ico +0 -0
  8. package/demo/public/index.html +43 -0
  9. package/demo/public/logo192.png +0 -0
  10. package/demo/public/logo512.png +0 -0
  11. package/demo/public/manifest.json +25 -0
  12. package/demo/public/robots.txt +3 -0
  13. package/demo/src/App.test.tsx +9 -0
  14. package/demo/src/App.tsx +158 -0
  15. package/demo/src/index.css +16 -0
  16. package/demo/src/index.tsx +19 -0
  17. package/demo/src/react-app-env.d.ts +1 -0
  18. package/demo/src/reportWebVitals.ts +15 -0
  19. package/demo/src/setupTests.ts +5 -0
  20. package/demo/tailwind.config.js +8 -0
  21. package/demo/yarn.lock +10120 -0
  22. package/dist/BluxClient.d.ts +40 -15
  23. package/dist/BluxClient.js +317 -87
  24. package/dist/BluxClient.js.map +1 -0
  25. package/dist/constants/URLS.d.ts +12 -0
  26. package/dist/constants/URLS.js +19 -0
  27. package/dist/constants/URLS.js.map +1 -0
  28. package/dist/core/LocalStorage.d.ts +0 -9
  29. package/dist/core/LocalStorage.js +4 -26
  30. package/dist/core/LocalStorage.js.map +1 -0
  31. package/dist/core/Logger.d.ts +11 -12
  32. package/dist/core/Logger.js +61 -63
  33. package/dist/core/Logger.js.map +1 -0
  34. package/dist/events/AddCartaddEvent.d.ts +5 -0
  35. package/dist/{requests/Events → events}/AddCartaddEvent.js +13 -10
  36. package/dist/events/AddCartaddEvent.js.map +1 -0
  37. package/dist/events/AddCustomEvent.d.ts +5 -0
  38. package/dist/{requests/Events → events}/AddCustomEvent.js +14 -11
  39. package/dist/events/AddCustomEvent.js.map +1 -0
  40. package/dist/events/AddLikeEvent.d.ts +5 -0
  41. package/dist/{requests/Events → events}/AddLikeEvent.js +13 -10
  42. package/dist/events/AddLikeEvent.js.map +1 -0
  43. package/dist/events/AddPageViewEvent.d.ts +5 -0
  44. package/dist/{requests/Events → events}/AddPageViewEvent.js +11 -8
  45. package/dist/events/AddPageViewEvent.js.map +1 -0
  46. package/dist/events/AddProductDetailViewEvent.d.ts +5 -0
  47. package/dist/{requests/Events → events}/AddProductDetailViewEvent.js +13 -10
  48. package/dist/events/AddProductDetailViewEvent.js.map +1 -0
  49. package/dist/events/AddPurchaseEvent.d.ts +5 -0
  50. package/dist/{requests/Events → events}/AddPurchaseEvent.js +13 -10
  51. package/dist/events/AddPurchaseEvent.js.map +1 -0
  52. package/dist/events/AddRateEvent.d.ts +5 -0
  53. package/dist/{requests/Events → events}/AddRateEvent.js +14 -11
  54. package/dist/events/AddRateEvent.js.map +1 -0
  55. package/dist/events/AddRecommendationViewEvent.d.ts +5 -0
  56. package/dist/{requests/Events → events}/AddRecommendationViewEvent.js +12 -9
  57. package/dist/events/AddRecommendationViewEvent.js.map +1 -0
  58. package/dist/events/Event.d.ts +5 -0
  59. package/dist/events/Event.js +26 -0
  60. package/dist/events/Event.js.map +1 -0
  61. package/dist/{requests/Events → events}/index.js +4 -0
  62. package/dist/events/index.js.map +1 -0
  63. package/dist/events/types.d.ts +42 -0
  64. package/dist/events/types.js +6 -0
  65. package/dist/events/types.js.map +1 -0
  66. package/dist/index.d.ts +3 -4
  67. package/dist/index.js +20 -15
  68. package/dist/index.js.map +1 -0
  69. package/dist/utils/helper.js +4 -0
  70. package/dist/utils/helper.js.map +1 -0
  71. package/dist/utils/operators.d.ts +2 -0
  72. package/dist/utils/operators.js +12 -0
  73. package/dist/utils/operators.js.map +1 -0
  74. package/dist/utils/sentry.d.ts +2 -0
  75. package/dist/utils/sentry.js +50 -0
  76. package/dist/utils/sentry.js.map +1 -0
  77. package/package.json +13 -3
  78. package/.vscode/settings.json +0 -7
  79. package/dist/core/BaseErrorHandler.d.ts +0 -3
  80. package/dist/core/BaseErrorHandler.js +0 -13
  81. package/dist/core/HTTPClient.d.ts +0 -10
  82. package/dist/core/HTTPClient.js +0 -122
  83. package/dist/requests/Devices/ActivateDevice.d.ts +0 -8
  84. package/dist/requests/Devices/ActivateDevice.js +0 -39
  85. package/dist/requests/Devices/CreateDevice.d.ts +0 -14
  86. package/dist/requests/Devices/CreateDevice.js +0 -54
  87. package/dist/requests/Devices/UpdateDevice.d.ts +0 -17
  88. package/dist/requests/Devices/UpdateDevice.js +0 -61
  89. package/dist/requests/Devices/index.d.ts +0 -3
  90. package/dist/requests/Devices/index.js +0 -19
  91. package/dist/requests/Events/AddCartaddEvent.d.ts +0 -5
  92. package/dist/requests/Events/AddCustomEvent.d.ts +0 -5
  93. package/dist/requests/Events/AddLikeEvent.d.ts +0 -5
  94. package/dist/requests/Events/AddPageViewEvent.d.ts +0 -5
  95. package/dist/requests/Events/AddProductDetailViewEvent.d.ts +0 -5
  96. package/dist/requests/Events/AddPurchaseEvent.d.ts +0 -5
  97. package/dist/requests/Events/AddRateEvent.d.ts +0 -5
  98. package/dist/requests/Events/AddRecommendationViewEvent.d.ts +0 -5
  99. package/dist/requests/Events/EventRequest.d.ts +0 -17
  100. package/dist/requests/Events/EventRequest.js +0 -56
  101. package/dist/requests/Events/types.d.ts +0 -42
  102. package/dist/requests/Events/types.js +0 -2
  103. package/dist/requests/Request.d.ts +0 -12
  104. package/dist/requests/Request.js +0 -22
  105. package/dist/requests/Users/UpdateUserProperties.d.ts +0 -17
  106. package/dist/requests/Users/UpdateUserProperties.js +0 -54
  107. package/dist/requests/Users/index.d.ts +0 -1
  108. package/dist/requests/Users/index.js +0 -17
  109. package/dist/requests/Users/types.d.ts +0 -12
  110. package/dist/requests/Users/types.js +0 -2
  111. package/dist/requests/index.d.ts +0 -3
  112. package/dist/requests/index.js +0 -19
  113. package/dist/utils/types.d.ts +0 -2
  114. package/dist/utils/types.js +0 -11
  115. /package/dist/{requests/Events → events}/index.d.ts +0 -0
@@ -1,17 +0,0 @@
1
- import { Request } from "../Request";
2
- export declare class UpdateDevice extends Request {
3
- protected bluxId: string;
4
- protected deviceId: string;
5
- protected userId?: string | null;
6
- protected platform: string | null;
7
- protected deviceModel: string | null;
8
- protected osVersion: string | null;
9
- protected sdkVersion: string | null;
10
- protected sdkType: string | null;
11
- protected timezone: string | null;
12
- protected languageCode: string | null;
13
- protected countryCode: string | null;
14
- protected lastActiveAt: string | null;
15
- constructor(bluxId: string, deviceId: string, userId?: string | null);
16
- getPayload(): object;
17
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- exports.__esModule = true;
21
- exports.UpdateDevice = void 0;
22
- var BluxClient_1 = __importDefault(require("../../BluxClient"));
23
- var Request_1 = require("../Request");
24
- var UpdateDevice = /** @class */ (function (_super) {
25
- __extends(UpdateDevice, _super);
26
- function UpdateDevice(bluxId, deviceId, userId) {
27
- var _this = _super.call(this, "PUT", "/devices") || this;
28
- _this.bluxId = bluxId;
29
- _this.deviceId = deviceId;
30
- _this.userId = userId;
31
- _this.platform = "typescript";
32
- _this.deviceModel = navigator.userAgent; // 기기 모델;
33
- _this.osVersion = navigator.userAgent; // OS 버전 (navigator.userAgent를 통해 확인);
34
- _this.sdkVersion = BluxClient_1["default"].sdkInfo.version;
35
- _this.sdkType = BluxClient_1["default"].sdkInfo.type;
36
- _this.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
37
- _this.languageCode = navigator.language.split("-")[0];
38
- _this.countryCode = navigator.language.split("-")[1];
39
- _this.lastActiveAt = new Date().toISOString();
40
- return _this;
41
- }
42
- UpdateDevice.prototype.getPayload = function () {
43
- var payload = {
44
- blux_id: this.bluxId,
45
- device_id: this.deviceId,
46
- user_id: this.userId,
47
- platform: this.platform,
48
- device_model: this.deviceModel,
49
- os_version: this.osVersion,
50
- sdk_version: this.sdkVersion,
51
- sdk_type: this.sdkType,
52
- timezone: this.timezone,
53
- language_code: this.languageCode,
54
- country_code: this.countryCode,
55
- last_active_at: this.lastActiveAt
56
- };
57
- return payload;
58
- };
59
- return UpdateDevice;
60
- }(Request_1.Request));
61
- exports.UpdateDevice = UpdateDevice;
@@ -1,3 +0,0 @@
1
- export * from "./ActivateDevice";
2
- export * from "./UpdateDevice";
3
- export * from "./CreateDevice";
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- exports.__esModule = true;
17
- __exportStar(require("./ActivateDevice"), exports);
18
- __exportStar(require("./UpdateDevice"), exports);
19
- __exportStar(require("./CreateDevice"), exports);
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddCartaddEvent } from "./types";
3
- export declare class AddCartaddEvent extends EventRequest {
4
- constructor({ itemId, url, ref, recommendationId, from, timestamp, userProperties, eventProperties, }: IAddCartaddEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddCustomEvent } from "./types";
3
- export declare class AddCustomEvent extends EventRequest {
4
- constructor({ itemId, eventType, eventValue, url, ref, timestamp, recommendationId, from, userProperties, eventProperties, }: IAddCustomEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddLikeEvent } from "./types";
3
- export declare class AddLikeEvent extends EventRequest {
4
- constructor({ itemId, url, ref, recommendationId, from, timestamp, userProperties, eventProperties, }: IAddLikeEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddPageViewEvent } from "./types";
3
- export declare class AddPageViewEvent extends EventRequest {
4
- constructor({ pageType, timestamp, url, ref, userProperties, eventProperties, }: IAddPageViewEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddProductDetailViewEvent } from "./types";
3
- export declare class AddProductDetailViewEvent extends EventRequest {
4
- constructor({ itemId, url, ref, recommendationId, from, timestamp, userProperties, eventProperties, }: IAddProductDetailViewEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddPurchaseEvent } from "./types";
3
- export declare class AddPurchaseEvent extends EventRequest {
4
- constructor({ itemId, price, url, ref, timestamp, userProperties, eventProperties, }: IAddPurchaseEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddRateEvent } from "./types";
3
- export declare class AddRateEvent extends EventRequest {
4
- constructor({ itemId, rating, url, ref, recommendationId, from, timestamp, userProperties, eventProperties, }: IAddRateEvent);
5
- }
@@ -1,5 +0,0 @@
1
- import { EventRequest } from "./EventRequest";
2
- import { IAddRecommendationViewEvent } from "./types";
3
- export declare class AddRecommendationViewEvent extends EventRequest {
4
- constructor({ timestamp, url, ref, recommendationId, from, userProperties, eventProperties, }: IAddRecommendationViewEvent);
5
- }
@@ -1,17 +0,0 @@
1
- import { Request } from "../Request";
2
- import { IEventRequest } from "./types";
3
- export declare class EventRequest extends Request {
4
- protected itemId?: string;
5
- protected timestamp: number;
6
- protected eventType: string;
7
- protected eventValue?: string;
8
- protected from?: string;
9
- protected url?: string;
10
- protected ref?: string;
11
- protected recommendationId?: string;
12
- protected userProperties?: Record<string, any>;
13
- protected eventProperties?: Record<string, any>;
14
- constructor({ itemId, timestamp, eventType, eventValue, from, url, ref, recommendationId, userProperties, eventProperties, }: IEventRequest);
15
- getTimestamp(): number;
16
- getPayload(): object;
17
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- exports.__esModule = true;
18
- exports.EventRequest = void 0;
19
- var Request_1 = require("../Request");
20
- var EventRequest = /** @class */ (function (_super) {
21
- __extends(EventRequest, _super);
22
- function EventRequest(_a) {
23
- var itemId = _a.itemId, timestamp = _a.timestamp, eventType = _a.eventType, eventValue = _a.eventValue, from = _a.from, url = _a.url, ref = _a.ref, recommendationId = _a.recommendationId, userProperties = _a.userProperties, eventProperties = _a.eventProperties;
24
- var _this = _super.call(this, "POST", "/events") || this;
25
- _this.itemId = itemId;
26
- _this.timestamp = timestamp;
27
- _this.eventType = eventType;
28
- _this.eventValue = eventValue;
29
- _this.from = from;
30
- _this.url = url;
31
- _this.ref = ref;
32
- _this.recommendationId = recommendationId;
33
- _this.userProperties = userProperties;
34
- _this.eventProperties = eventProperties;
35
- return _this;
36
- }
37
- EventRequest.prototype.getTimestamp = function () {
38
- return this.timestamp;
39
- };
40
- EventRequest.prototype.getPayload = function () {
41
- return {
42
- item_id: this.itemId,
43
- timestamp: this.timestamp,
44
- event_type: this.eventType,
45
- event_value: this.eventValue,
46
- from: this.from,
47
- url: this.url,
48
- ref: this.ref,
49
- recommendation_id: this.recommendationId,
50
- user_properties: this.userProperties,
51
- event_properties: this.eventProperties
52
- };
53
- };
54
- return EventRequest;
55
- }(Request_1.Request));
56
- exports.EventRequest = EventRequest;
@@ -1,42 +0,0 @@
1
- export interface IBaseEvent {
2
- itemId?: string;
3
- timestamp?: number;
4
- url?: string;
5
- ref?: string;
6
- recommendationId?: string;
7
- from?: string;
8
- userProperties?: Record<string, any>;
9
- eventProperties?: Record<string, any>;
10
- }
11
- export interface IEventRequest extends IBaseEvent {
12
- timestamp: number;
13
- eventType: string;
14
- eventValue?: string;
15
- }
16
- export interface IAddProductDetailViewEvent extends IBaseEvent {
17
- itemId: string;
18
- }
19
- export interface IAddLikeEvent extends IBaseEvent {
20
- itemId: string;
21
- }
22
- export interface IAddCartaddEvent extends IBaseEvent {
23
- itemId: string;
24
- }
25
- export interface IAddRateEvent extends IBaseEvent {
26
- itemId: string;
27
- rating: number;
28
- }
29
- export interface IAddPurchaseEvent extends IBaseEvent {
30
- itemId: string;
31
- price: number;
32
- }
33
- export interface IAddCustomEvent extends IBaseEvent {
34
- itemId: string;
35
- eventType: string;
36
- eventValue?: string;
37
- }
38
- export interface IAddRecommendationViewEvent extends IBaseEvent {
39
- }
40
- export interface IAddPageViewEvent extends IBaseEvent {
41
- pageType: string;
42
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,12 +0,0 @@
1
- export declare class Request {
2
- method: string;
3
- path: string;
4
- /**
5
- * Construct the basis of request
6
- * @param {string} method - POST/PUT/PATCH
7
- * @param {string} path
8
- */
9
- constructor(method: "POST" | "PATCH" | "PUT", path: string);
10
- getTimestamp(): number;
11
- getPayload(): object;
12
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Request = void 0;
4
- var Request = /** @class */ (function () {
5
- /**
6
- * Construct the basis of request
7
- * @param {string} method - POST/PUT/PATCH
8
- * @param {string} path
9
- */
10
- function Request(method, path) {
11
- this.method = method;
12
- this.path = path;
13
- }
14
- Request.prototype.getTimestamp = function () {
15
- return 0;
16
- };
17
- Request.prototype.getPayload = function () {
18
- return {};
19
- };
20
- return Request;
21
- }());
22
- exports.Request = Request;
@@ -1,17 +0,0 @@
1
- import { Request } from "../Request";
2
- import { IUpdateUserProperties } from "./types";
3
- export declare class UpdateUserProperties extends Request {
4
- protected firstName?: string;
5
- protected lastName?: string;
6
- protected phoneNumber?: string;
7
- protected emailAddress?: string;
8
- protected nickname?: string;
9
- protected marketingNotificationConsent?: boolean;
10
- protected nighttimeNotificationConsent?: boolean;
11
- protected pushNotificationConsent?: boolean;
12
- protected emailConsent?: boolean;
13
- protected smsConsent?: boolean;
14
- constructor({ firstName, lastName, phoneNumber, emailAddress, nickname, marketingNotificationConsent, nighttimeNotificationConsent, pushNotificationConsent, emailConsent, smsConsent, }: IUpdateUserProperties);
15
- getPayload(): object;
16
- }
17
- export default UpdateUserProperties;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- exports.__esModule = true;
18
- exports.UpdateUserProperties = void 0;
19
- var Request_1 = require("../Request");
20
- var UpdateUserProperties = /** @class */ (function (_super) {
21
- __extends(UpdateUserProperties, _super);
22
- function UpdateUserProperties(_a) {
23
- var firstName = _a.firstName, lastName = _a.lastName, phoneNumber = _a.phoneNumber, emailAddress = _a.emailAddress, nickname = _a.nickname, marketingNotificationConsent = _a.marketingNotificationConsent, nighttimeNotificationConsent = _a.nighttimeNotificationConsent, pushNotificationConsent = _a.pushNotificationConsent, emailConsent = _a.emailConsent, smsConsent = _a.smsConsent;
24
- var _this = _super.call(this, "PATCH", "/users") || this;
25
- _this.firstName = firstName;
26
- _this.lastName = lastName;
27
- _this.phoneNumber = phoneNumber;
28
- _this.emailAddress = emailAddress;
29
- _this.nickname = nickname;
30
- _this.marketingNotificationConsent = marketingNotificationConsent;
31
- _this.nighttimeNotificationConsent = nighttimeNotificationConsent;
32
- _this.pushNotificationConsent = pushNotificationConsent;
33
- _this.emailConsent = emailConsent;
34
- _this.smsConsent = smsConsent;
35
- return _this;
36
- }
37
- UpdateUserProperties.prototype.getPayload = function () {
38
- return {
39
- first_name: this.firstName,
40
- last_name: this.lastName,
41
- phone_number: this.phoneNumber,
42
- email_address: this.emailAddress,
43
- nickname: this.nickname,
44
- marketing_notification_consent: this.marketingNotificationConsent,
45
- nighttime_notification_consent: this.nighttimeNotificationConsent,
46
- push_notification_consent: this.pushNotificationConsent,
47
- email_consent: this.emailConsent,
48
- sms_consent: this.smsConsent
49
- };
50
- };
51
- return UpdateUserProperties;
52
- }(Request_1.Request));
53
- exports.UpdateUserProperties = UpdateUserProperties;
54
- exports["default"] = UpdateUserProperties;
@@ -1 +0,0 @@
1
- export * from "./UpdateUserProperties";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- exports.__esModule = true;
17
- __exportStar(require("./UpdateUserProperties"), exports);
@@ -1,12 +0,0 @@
1
- export interface IUpdateUserProperties {
2
- firstName?: string;
3
- lastName?: string;
4
- phoneNumber?: string;
5
- emailAddress?: string;
6
- nickname?: string;
7
- marketingNotificationConsent?: boolean;
8
- nighttimeNotificationConsent?: boolean;
9
- pushNotificationConsent?: boolean;
10
- emailConsent?: boolean;
11
- smsConsent?: boolean;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,3 +0,0 @@
1
- export * from "./Devices";
2
- export * from "./Users";
3
- export * from "./Events";
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- exports.__esModule = true;
17
- __exportStar(require("./Devices"), exports);
18
- __exportStar(require("./Users"), exports);
19
- __exportStar(require("./Events"), exports);
@@ -1,2 +0,0 @@
1
- export declare const isNullOrUndefined: (input: string | null | undefined) => boolean;
2
- export declare const isEmptyString: (input: string) => boolean;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.isEmptyString = exports.isNullOrUndefined = void 0;
4
- var isNullOrUndefined = function (input) {
5
- return input == null;
6
- };
7
- exports.isNullOrUndefined = isNullOrUndefined;
8
- var isEmptyString = function (input) {
9
- return input.length == 0;
10
- };
11
- exports.isEmptyString = isEmptyString;
File without changes