@mpgd/analytics 0.3.8 → 0.3.10

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 (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4,17 +4,19 @@ const __typia_transform__accessExpressionAsString = _accessExpressionAsString_1.
4
4
  import typia from 'typia';
5
5
  export const assertAnalyticsEvent = (() => {
6
6
  const _iv0 = new Set(["game_started", "leaderboard_recorded", "leaderboard_submitted", "purchase_completed", "purchase_granted", "purchase_rejected", "purchase_started", "rewarded_ad_completed", "rewarded_ad_granted", "rewarded_ad_rejected", "stage_finished"]);
7
+ const _iv1 = new Set(["ait", "android", "browser", "ios", "microsoft-store", "reddit", "server", "tauri", "telegram", "verse8"]);
7
8
  const _av0 = new Set(["game_started", "leaderboard_recorded", "leaderboard_submitted", "purchase_completed", "purchase_granted", "purchase_rejected", "purchase_started", "rewarded_ad_completed", "rewarded_ad_granted", "rewarded_ad_rejected", "stage_finished"]);
8
9
  const _ae0 = "(\"game_started\" | \"leaderboard_recorded\" | \"leaderboard_submitted\" | \"purchase_completed\" | \"purchase_granted\" | \"purchase_rejected\" | \"purchase_started\" | \"rewarded_ad_completed\" | \"rewarded_ad_granted\" | \"rewarded_ad_rejected\" | \"stage_finished\")";
10
+ const _av1 = new Set(["ait", "android", "browser", "ios", "microsoft-store", "reddit", "server", "tauri", "telegram", "verse8"]);
9
11
  const _ao0 = (input, _path, _exceptionable = true) => (true === _av0.has(input.name) || _assertGuard_1._assertGuard(_exceptionable, {
10
12
  method: "typia.createAssert",
11
13
  path: _path + ".name",
12
14
  expected: _ae0,
13
15
  value: input.name
14
- }, _errorFactory)) && ("ait" === input.target || "android" === input.target || "browser" === input.target || "ios" === input.target || "reddit" === input.target || "server" === input.target || "tauri" === input.target || "telegram" === input.target || "verse8" === input.target || _assertGuard_1._assertGuard(_exceptionable, {
16
+ }, _errorFactory)) && (true === _av1.has(input.target) || _assertGuard_1._assertGuard(_exceptionable, {
15
17
  method: "typia.createAssert",
16
18
  path: _path + ".target",
17
- expected: "(\"ait\" | \"android\" | \"browser\" | \"ios\" | \"reddit\" | \"server\" | \"tauri\" | \"telegram\" | \"verse8\")",
19
+ expected: "(\"ait\" | \"android\" | \"browser\" | \"ios\" | \"microsoft-store\" | \"reddit\" | \"server\" | \"tauri\" | \"telegram\" | \"verse8\")",
18
20
  value: input.target
19
21
  }, _errorFactory)) && ("string" === typeof input.sessionId || _assertGuard_1._assertGuard(_exceptionable, {
20
22
  method: "typia.createAssert",
@@ -48,7 +50,7 @@ export const assertAnalyticsEvent = (() => {
48
50
  value: value
49
51
  }, _errorFactory);
50
52
  });
51
- const _io0 = input => true === _iv0.has(input.name) && ("ait" === input.target || "android" === input.target || "browser" === input.target || "ios" === input.target || "reddit" === input.target || "server" === input.target || "tauri" === input.target || "telegram" === input.target || "verse8" === input.target) && "string" === typeof input.sessionId && "string" === typeof input.occurredAt && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties));
53
+ const _io0 = input => true === _iv0.has(input.name) && true === _iv1.has(input.target) && "string" === typeof input.sessionId && "string" === typeof input.occurredAt && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties));
52
54
  const _io1 = input => Object.keys(input).every(key => {
53
55
  const value = input[key];
54
56
  if (undefined === value)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/analytics",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "Typed analytics event schema and sink helpers for mpgd platform integrations.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "typia": "13.0.2",
38
- "@mpgd/platform": "0.8.0"
38
+ "@mpgd/platform": "0.10.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "ttsc": "0.18.4",