@amityco/ts-sdk 7.14.1-b2d0f24.0 → 7.14.1-e31cea3f.0

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.
@@ -8,7 +8,8 @@ declare global {
8
8
  const enum AnalyticEventContentType {
9
9
  Post = "post",
10
10
  Story = "story",
11
- Ad = "ad"
11
+ Ad = "ad",
12
+ Product = "product"
12
13
  }
13
14
  type AnalyticEventModel = {
14
15
  contentId: Amity.InternalPost['postId'];
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,yBAAyB;YAClC,IAAI,SAAS;YACb,KAAK,gBAAgB;SACtB;QAED,WAAW,wBAAwB;YACjC,IAAI,SAAS;YACb,KAAK,UAAU;YACf,EAAE,OAAO;SACV;QAED,KAAK,kBAAkB,GAAG;YACxB,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACxC,WAAW,EAAE,wBAAwB,CAAC;YACtC,YAAY,EAAE,yBAAyB,CAAC;YACxC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;YAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SACnC,CAAC;QAEF,KAAK,gBAAgB,GAAG;YACtB,UAAU,EAAE,MAAM,CAAC;YACnB,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;QAEF,KAAK,mBAAmB,GAAG;YACzB,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;YACpB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;SAClC,CAAC;QAEF,KAAK,yBAAyB,GAAG;YAC/B,UAAU,EAAE,OAAO,CAAC,OAAO,wBAAwB,CAAC,CAAC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AO,CAAC,CAAC;SAClC,CAAC;QAEF,KAAK,yBAAyB,GAAG;YAC/B,UAAU,EAAE,OAAO,CAAC,OAAO,wBAAwB,CAAC,CAAC;YACrD,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;SACvD,GAAG,KAAK,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;QAEpD,KAAK,kCAAkC,GAAG,KAAK,CAAC,mBAAmB,CACjE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EACpB;YACE,IAAI,CAAC,EAAE;gBACL,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;gBACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;aACxB,CAAC;SACH,CACF,CAAC;KACH;CACF"}
@@ -1,4 +1,8 @@
1
1
  export {};
2
+ export declare const enum AnalyticsSourceTypeEnum {
3
+ POST = "post",
4
+ ROOM = "room"
5
+ }
2
6
  declare global {
3
7
  namespace Amity {
4
8
  const enum ProductStatusEnum {
@@ -21,6 +25,7 @@ declare global {
21
25
  UPDATED_AT = "updatedAt",
22
26
  PRODUCT_NAME = "productName"
23
27
  }
28
+ type AnalyticsSourceType = `${AnalyticsSourceTypeEnum}`;
24
29
  type ProductSortOption = `${ProductSortOptionEnum}`;
25
30
  const enum ProductOrderOptionEnum {
26
31
  ASC = "asc",
@@ -37,17 +42,18 @@ declare global {
37
42
  productId: string;
38
43
  };
39
44
  type ProductTagType = 'text' | 'media';
40
- type RawProductTag<T extends ProductTagType = any> = T extends 'text' ? RawTextProductTag : RawMediaProductTag;
41
- type ProductTag = RawProductTag & {
45
+ type ProductTagLinkedObject = {
42
46
  product?: Amity.Product;
43
47
  };
48
+ type RawProductTag<T extends ProductTagType = any> = T extends 'text' ? RawTextProductTag : RawMediaProductTag;
49
+ type InternalProductTag<T extends ProductTagType = any> = RawProductTag<T>;
50
+ type ProductTag = InternalProductTag & ProductTagLinkedObject;
44
51
  type TextProductTag = {
45
52
  text: string;
46
53
  index: number;
47
54
  length: number;
48
55
  } & ProductTag;
49
56
  type MediaProductTag = ProductTag;
50
- type InternalProductTag<T extends ProductTagType = any> = RawProductTag<T>;
51
57
  type RawProduct = {
52
58
  productId: string;
53
59
  productName: string;
@@ -66,7 +72,13 @@ declare global {
66
72
  _id: string;
67
73
  };
68
74
  type InternalProduct = RawProduct;
69
- type Product = InternalProduct;
75
+ type ProductLinkedObject = {
76
+ analytics: {
77
+ markAsClicked: (location: string, sourceType: Amity.AnalyticsSourceType, sourceId: string) => void;
78
+ markAsViewed: (location: string, sourceType: Amity.AnalyticsSourceType, sourceId: string) => void;
79
+ };
80
+ };
81
+ type Product = InternalProduct & ProductLinkedObject;
70
82
  type QueryProducts = {
71
83
  keyword: string;
72
84
  isActive?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,iBAAiB;YAC1B,MAAM,WAAW;YACjB,QAAQ,aAAa;SACtB;QAED,KAAK,aAAa,GAAG,GAAG,iBAAiB,EAAE,CAAC;QAE5C,WAAW,wBAAwB;YACjC,UAAU,eAAe;YACzB,WAAW,gBAAgB;SAC5B;QAED,KAAK,oBAAoB,GAAG,GAAG,wBAAwB,EAAE,CAAC;QAE1D,WAAW,uBAAuB;YAChC,MAAM,WAAW;YACjB,MAAM,WAAW;SAClB;QAED,KAAK,mBAAmB,GAAG,GAAG,uBAAuB,EAAE,CAAC;QAExD,WAAW,qBAAqB;YAC9B,UAAU,cAAc;YACxB,UAAU,cAAc;YACxB,YAAY,gBAAgB;SAC7B;QAED,KAAK,iBAAiB,GAAG,GAAG,qBAAqB,EAAE,CAAC;QAEpD,WAAW,sBAAsB;YAC/B,GAAG,QAAQ;YACX,I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BAAoB,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;QAErF,KAAK,0BAA0B,GAAG,KAAK,CAAC,mBAAmB,CACzD,KAAK,CAAC,eAAe,CAAC,WAAW,CAAC,EAClC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAC5B,CAAC;KACH;CACF"}
@@ -8,6 +8,8 @@ declare class AnalyticsEngine {
8
8
  markAdAsViewed(ad: Amity.InternalAd, placement: Amity.AdPlacement): void;
9
9
  markAdAsClicked(ad: Amity.InternalAd, placement: Amity.AdPlacement): void;
10
10
  markStoryAsClicked(story: Amity.InternalStory): void;
11
+ markProductAsClicked(product: Amity.InternalProduct, location: string, sourceType: Amity.AnalyticsSourceType, sourceId: string): void;
12
+ markProductAsViewed(product: Amity.InternalProduct, location: string, sourceType: Amity.AnalyticsSourceType, sourceId: string): void;
11
13
  established(): void;
12
14
  handleTokenExpired(): void;
13
15
  destroy(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsEngine.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEngine.ts"],"names":[],"mappings":"AAIA,cAAM,eAAe;IACnB,OAAO,CAAC,OAAO,CAAe;IAE9B,OAAO,CAAC,cAAc,CAAC;IAEvB,OAAO,CAAC,YAAY,CAAC;;IAQrB,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IASrD,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAS5C,cAAc,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,WAAW;IASjE,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,WAAW;IASlE,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAS7C,WAAW;IAIX,kBAAkB;IAIlB,OAAO;IAIP,eAAe;CAIhB;;;;AAID,wBAOE"}
1
+ {"version":3,"file":"AnalyticsEngine.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEngine.ts"],"names":[],"mappings":"AAIA,cAAM,eAAe;IACnB,OAAO,CAAC,OAAO,CAAe;IAE9B,OAAO,CAAC,cAAc,CAAC;IAEvB,OAAO,CAAC,YAAY,CAAC;;IAQrB,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IASrD,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAS5C,cAAc,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,WAAW;IASjE,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,WAAW;IASlE,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAS7C,oBAAoB,CAClB,OAAO,EAAE,KAAK,CAAC,eAAe,EAC9B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,KAAK,CAAC,mBAAmB,EACrC,QAAQ,EAAE,MAAM;IAUlB,mBAAmB,CACjB,OAAO,EAAE,KAAK,CAAC,eAAe,EAC9B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,KAAK,CAAC,mBAAmB,EACrC,QAAQ,EAAE,MAAM;IAUlB,WAAW;IAIX,kBAAkB;IAIlB,OAAO;IAIP,eAAe;CAIhB;;;;AAID,wBAOE"}
@@ -29,5 +29,7 @@ export declare class AnalyticsEventCapturer {
29
29
  markStoryAsClicked(story: Amity.InternalStory): void;
30
30
  markAdAsViewed(ad: Amity.InternalAd, placement: Amity.AdPlacement): void;
31
31
  markAdAsClicked(ad: Amity.InternalAd, placement: Amity.AdPlacement): void;
32
+ markProductAsClicked(product: Amity.InternalProduct, location: string, sourceType: string, sourceId: string): void;
33
+ markProductAsViewed(product: Amity.InternalProduct, location: string, sourceType: string, sourceId: string): void;
32
34
  }
33
35
  //# sourceMappingURL=AnalyticsEventCapturer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsEventCapturer.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsEventCapturer.ts"],"names":[],"mappings":";AAQA,qBAAa,sBAAsB;IACjC,WAAW,SAAc;IAEzB,UAAU,SAAQ;IAElB,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAA;KAAE,CAAM;IAElE,yBAAyB,EAAE;QAAE,CAAC,GAAG,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;KAAE,CAAM;IAGhF,mBAAmB,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAa;IAE5D,+BAA+B,EAAE,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAM;IAEnE,eAAe,CAAC,EACd,QAAQ,EACR,UAAU,EACV,cAAsB,GACvB,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B;IAuBD,MAAM,CAAC,EACL,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,EACZ,QAAQ,GACT,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,KAAK,CAAC,wBAAwB,CAAC;QAC5C,YAAY,EAAE,KAAK,CAAC,yBAAyB,CAAC;QAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACnC;IAmCD,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IASrD,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC,yBAAyB;IAuEnF,eAAe;IAQf,iBAAiB,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AM,EAAE,MAAM,CAAC,CAAC;KACnC;IAmCD,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;IASrD,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC,yBAAyB;IAuEnF,eAAe;IAQf,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAI5C,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa;IAI7C,cAAc,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,WAAW;IAgBjE,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,WAAW;IAgBlE,oBAAoB,CAClB,OAAO,EAAE,KAAK,CAAC,eAAe,EAC9B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM;IAmBlB,mBAAmB,CACjB,OAAO,EAAE,KAAK,CAAC,eAAe,EAC9B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM;CAkBnB"}
@@ -2,6 +2,18 @@ declare class AnalyticsService {
2
2
  private analyticEngine;
3
3
  constructor();
4
4
  markPostAsViewed(postId: string): void;
5
+ markProductAsClicked({ product, location, sourceType, sourceId, }: {
6
+ product: Amity.InternalProduct;
7
+ location: string;
8
+ sourceType: Amity.AnalyticsSourceType;
9
+ sourceId: string;
10
+ }): void;
11
+ markProductAsViewed({ product, location, sourceType, sourceId, }: {
12
+ product: Amity.InternalProduct;
13
+ location: string;
14
+ sourceType: Amity.AnalyticsSourceType;
15
+ sourceId: string;
16
+ }): void;
5
17
  }
6
18
  declare const _default: {
7
19
  getInstance: () => AnalyticsService;
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsService.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsService.ts"],"names":[],"mappings":"AAEA,cAAM,gBAAgB;IACpB,OAAO,CAAC,cAAc,CAAC;;IAMvB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGvC;;;;AAGD,wBAOE"}
1
+ {"version":3,"file":"AnalyticsService.d.ts","sourceRoot":"","sources":["../../../../src/analytic/service/analytic/AnalyticsService.ts"],"names":[],"mappings":"AAEA,cAAM,gBAAgB;IACpB,OAAO,CAAC,cAAc,CAAC;;IAMvB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAItC,oBAAoB,CAAC,EACnB,OAAO,EACP,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE;QACD,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC;QAC/B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,IAAI;IAIR,mBAAmB,CAAC,EAClB,OAAO,EACP,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE;QACD,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC;QAC/B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,IAAI;CAGT;;;;AAGD,wBAOE"}
package/dist/index.cjs.js CHANGED
@@ -243,6 +243,12 @@ exports.AmityEventOrderOption = void 0;
243
243
  AmityEventOrderOption["Descending"] = "desc";
244
244
  })(exports.AmityEventOrderOption || (exports.AmityEventOrderOption = {}));
245
245
 
246
+ exports.AnalyticsSourceTypeEnum = void 0;
247
+ (function (AnalyticsSourceTypeEnum) {
248
+ AnalyticsSourceTypeEnum["POST"] = "post";
249
+ AnalyticsSourceTypeEnum["ROOM"] = "room";
250
+ })(exports.AnalyticsSourceTypeEnum || (exports.AnalyticsSourceTypeEnum = {}));
251
+
246
252
  function getVersion() {
247
253
  try {
248
254
  // the string ''v7.14.0-cjs'' should be replaced by actual value by @rollup/plugin-replace
@@ -7822,6 +7828,36 @@ class AnalyticsEventCapturer {
7822
7828
  metadata,
7823
7829
  });
7824
7830
  }
7831
+ markProductAsClicked(product, location, sourceType, sourceId) {
7832
+ const metadata = {
7833
+ location,
7834
+ sourceType,
7835
+ sourceId,
7836
+ };
7837
+ const activityType = "linkClicked" /* Amity.AnalyticEventActivityType.Click */;
7838
+ this.markAs({
7839
+ uniqueId: `${product.productId}.${activityType}.${location}`,
7840
+ contentId: product.productId,
7841
+ contentType: "product" /* Amity.AnalyticEventContentType.Product */,
7842
+ activityType,
7843
+ metadata,
7844
+ });
7845
+ }
7846
+ markProductAsViewed(product, location, sourceType, sourceId) {
7847
+ const metadata = {
7848
+ location,
7849
+ sourceType,
7850
+ sourceId,
7851
+ };
7852
+ const activityType = "view" /* Amity.AnalyticEventActivityType.View */;
7853
+ this.markAs({
7854
+ uniqueId: `${product.productId}.${activityType}.${location}`,
7855
+ contentId: product.productId,
7856
+ contentType: "product" /* Amity.AnalyticEventContentType.Product */,
7857
+ activityType,
7858
+ metadata,
7859
+ });
7860
+ }
7825
7861
  }
7826
7862
 
7827
7863
  class AnalyticsEngine {
@@ -7862,6 +7898,18 @@ class AnalyticsEngine {
7862
7898
  this._eventCapturer.markStoryAsClicked(story);
7863
7899
  }
7864
7900
  }
7901
+ markProductAsClicked(product, location, sourceType, sourceId) {
7902
+ if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
7903
+ this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
7904
+ this._eventCapturer.markProductAsClicked(product, location, sourceType, sourceId);
7905
+ }
7906
+ }
7907
+ markProductAsViewed(product, location, sourceType, sourceId) {
7908
+ if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
7909
+ this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
7910
+ this._eventCapturer.markProductAsViewed(product, location, sourceType, sourceId);
7911
+ }
7912
+ }
7865
7913
  established() {
7866
7914
  this._eventSyncer.start();
7867
7915
  }
@@ -14224,9 +14272,26 @@ const communityLinkedObject = (community) => {
14224
14272
  } });
14225
14273
  };
14226
14274
 
14275
+ const productLinkedObject = (product) => {
14276
+ const analyticsEngineInstance = AnalyticsEngine$1.getInstance();
14277
+ return Object.assign(Object.assign({}, product), { analytics: {
14278
+ markAsClicked: (location, sourceType, sourceId) => {
14279
+ analyticsEngineInstance.markProductAsClicked(product, location, sourceType, sourceId);
14280
+ },
14281
+ markAsViewed: (location, sourceType, sourceId) => {
14282
+ analyticsEngineInstance.markProductAsViewed(product, location, sourceType, sourceId);
14283
+ },
14284
+ } });
14285
+ };
14286
+
14227
14287
  const productTagLinkedObject = (productTag) => {
14228
14288
  var _a;
14229
- return Object.assign(Object.assign({}, productTag), { product: (_a = pullFromCache(['product', 'get', productTag.productId])) === null || _a === void 0 ? void 0 : _a.data });
14289
+ const internalProduct = (_a = pullFromCache([
14290
+ 'product',
14291
+ 'get',
14292
+ productTag.productId,
14293
+ ])) === null || _a === void 0 ? void 0 : _a.data;
14294
+ return Object.assign(Object.assign({}, productTag), { product: internalProduct ? productLinkedObject(internalProduct) : undefined });
14230
14295
  };
14231
14296
 
14232
14297
  const postLinkedObject = (post) => {
@@ -15244,6 +15309,7 @@ const LinkedObject = {
15244
15309
  room: roomLinkedObject,
15245
15310
  event: eventLinkedObject,
15246
15311
  eventResponse: eventResponseLinkedObject,
15312
+ product: productLinkedObject,
15247
15313
  };
15248
15314
 
15249
15315
  /* begin_public_function
@@ -34745,7 +34811,8 @@ getProduct$1.locally = (productId) => {
34745
34811
  */
34746
34812
  const getProduct = (productId, callback) => {
34747
34813
  const responder = (snapshot) => {
34748
- callback(snapshot);
34814
+ const { data } = snapshot;
34815
+ callback(Object.assign(Object.assign({}, snapshot), { data: data ? LinkedObject.product(data) : data }));
34749
34816
  };
34750
34817
  return liveObject(productId, responder, 'productId', getProduct$1, []);
34751
34818
  };
@@ -34829,7 +34896,8 @@ class SearchProductLiveCollectionController extends LiveCollectionController {
34829
34896
  const data = (_b = collection.data
34830
34897
  .map(id => pullFromCache(['product', 'get', id]))
34831
34898
  .filter(isNonNullable)
34832
- .map(({ data }) => data)) !== null && _b !== void 0 ? _b : [];
34899
+ .map(({ data }) => data)
34900
+ .map(LinkedObject.product)) !== null && _b !== void 0 ? _b : [];
34833
34901
  if (!this.shouldNotify(data) && origin === 'event')
34834
34902
  return;
34835
34903
  this.callback({
package/dist/index.esm.js CHANGED
@@ -228,6 +228,12 @@ var AmityEventOrderOption;
228
228
  AmityEventOrderOption["Descending"] = "desc";
229
229
  })(AmityEventOrderOption || (AmityEventOrderOption = {}));
230
230
 
231
+ var AnalyticsSourceTypeEnum;
232
+ (function (AnalyticsSourceTypeEnum) {
233
+ AnalyticsSourceTypeEnum["POST"] = "post";
234
+ AnalyticsSourceTypeEnum["ROOM"] = "room";
235
+ })(AnalyticsSourceTypeEnum || (AnalyticsSourceTypeEnum = {}));
236
+
231
237
  function getVersion() {
232
238
  try {
233
239
  // the string ''v7.14.0-esm'' should be replaced by actual value by @rollup/plugin-replace
@@ -23914,6 +23920,36 @@ class AnalyticsEventCapturer {
23914
23920
  metadata,
23915
23921
  });
23916
23922
  }
23923
+ markProductAsClicked(product, location, sourceType, sourceId) {
23924
+ const metadata = {
23925
+ location,
23926
+ sourceType,
23927
+ sourceId,
23928
+ };
23929
+ const activityType = "linkClicked" /* Amity.AnalyticEventActivityType.Click */;
23930
+ this.markAs({
23931
+ uniqueId: `${product.productId}.${activityType}.${location}`,
23932
+ contentId: product.productId,
23933
+ contentType: "product" /* Amity.AnalyticEventContentType.Product */,
23934
+ activityType,
23935
+ metadata,
23936
+ });
23937
+ }
23938
+ markProductAsViewed(product, location, sourceType, sourceId) {
23939
+ const metadata = {
23940
+ location,
23941
+ sourceType,
23942
+ sourceId,
23943
+ };
23944
+ const activityType = "view" /* Amity.AnalyticEventActivityType.View */;
23945
+ this.markAs({
23946
+ uniqueId: `${product.productId}.${activityType}.${location}`,
23947
+ contentId: product.productId,
23948
+ contentType: "product" /* Amity.AnalyticEventContentType.Product */,
23949
+ activityType,
23950
+ metadata,
23951
+ });
23952
+ }
23917
23953
  }
23918
23954
 
23919
23955
  class AnalyticsEngine {
@@ -23954,6 +23990,18 @@ class AnalyticsEngine {
23954
23990
  this._eventCapturer.markStoryAsClicked(story);
23955
23991
  }
23956
23992
  }
23993
+ markProductAsClicked(product, location, sourceType, sourceId) {
23994
+ if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
23995
+ this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
23996
+ this._eventCapturer.markProductAsClicked(product, location, sourceType, sourceId);
23997
+ }
23998
+ }
23999
+ markProductAsViewed(product, location, sourceType, sourceId) {
24000
+ if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
24001
+ this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
24002
+ this._eventCapturer.markProductAsViewed(product, location, sourceType, sourceId);
24003
+ }
24004
+ }
23957
24005
  established() {
23958
24006
  this._eventSyncer.start();
23959
24007
  }
@@ -30316,9 +30364,26 @@ const communityLinkedObject = (community) => {
30316
30364
  } });
30317
30365
  };
30318
30366
 
30367
+ const productLinkedObject = (product) => {
30368
+ const analyticsEngineInstance = AnalyticsEngine$1.getInstance();
30369
+ return Object.assign(Object.assign({}, product), { analytics: {
30370
+ markAsClicked: (location, sourceType, sourceId) => {
30371
+ analyticsEngineInstance.markProductAsClicked(product, location, sourceType, sourceId);
30372
+ },
30373
+ markAsViewed: (location, sourceType, sourceId) => {
30374
+ analyticsEngineInstance.markProductAsViewed(product, location, sourceType, sourceId);
30375
+ },
30376
+ } });
30377
+ };
30378
+
30319
30379
  const productTagLinkedObject = (productTag) => {
30320
30380
  var _a;
30321
- return Object.assign(Object.assign({}, productTag), { product: (_a = pullFromCache(['product', 'get', productTag.productId])) === null || _a === void 0 ? void 0 : _a.data });
30381
+ const internalProduct = (_a = pullFromCache([
30382
+ 'product',
30383
+ 'get',
30384
+ productTag.productId,
30385
+ ])) === null || _a === void 0 ? void 0 : _a.data;
30386
+ return Object.assign(Object.assign({}, productTag), { product: internalProduct ? productLinkedObject(internalProduct) : undefined });
30322
30387
  };
30323
30388
 
30324
30389
  const postLinkedObject = (post) => {
@@ -31336,6 +31401,7 @@ const LinkedObject = {
31336
31401
  room: roomLinkedObject,
31337
31402
  event: eventLinkedObject,
31338
31403
  eventResponse: eventResponseLinkedObject,
31404
+ product: productLinkedObject,
31339
31405
  };
31340
31406
 
31341
31407
  /* begin_public_function
@@ -50837,7 +50903,8 @@ getProduct$1.locally = (productId) => {
50837
50903
  */
50838
50904
  const getProduct = (productId, callback) => {
50839
50905
  const responder = (snapshot) => {
50840
- callback(snapshot);
50906
+ const { data } = snapshot;
50907
+ callback(Object.assign(Object.assign({}, snapshot), { data: data ? LinkedObject.product(data) : data }));
50841
50908
  };
50842
50909
  return liveObject(productId, responder, 'productId', getProduct$1, []);
50843
50910
  };
@@ -50921,7 +50988,8 @@ class SearchProductLiveCollectionController extends LiveCollectionController {
50921
50988
  const data = (_b = collection.data
50922
50989
  .map(id => pullFromCache(['product', 'get', id]))
50923
50990
  .filter(isNonNullable)
50924
- .map(({ data }) => data)) !== null && _b !== void 0 ? _b : [];
50991
+ .map(({ data }) => data)
50992
+ .map(LinkedObject.product)) !== null && _b !== void 0 ? _b : [];
50925
50993
  if (!this.shouldNotify(data) && origin === 'event')
50926
50994
  return;
50927
50995
  this.callback({
@@ -51031,4 +51099,4 @@ class AmityAttachmentProductTags {
51031
51099
  }
51032
51100
  }
51033
51101
 
51034
- export { API_REGIONS, index$5 as AdRepository, AmityAttachmentProductTags, AmityCommunityType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, index$f as CategoryRepository, index$j as ChannelRepository, index$s as Client, index$e as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$g as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, index$1 as EventRepository, FeedDataTypeEnum, index$d as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$p as FileRepository, FileType, GET_WATCHER_URLS, index$3 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$2 as LiveReactionRepository, index$7 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$n as MessageRepository, index$8 as PollRepository, PostContentType, index$b as PostRepository, PostStructureType, index as ProductRepository, index$o as ReactionRepository, index$9 as RoomPresenceRepository, index$c as RoomRepository, index$6 as StoryRepository, index$a as StreamRepository, index$m as SubChannelRepository, SubscriptionLevels, index$q as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$4 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };
51102
+ export { API_REGIONS, index$5 as AdRepository, AmityAttachmentProductTags, AmityCommunityType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AnalyticsSourceTypeEnum, index$f as CategoryRepository, index$j as ChannelRepository, index$s as Client, index$e as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$g as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, index$1 as EventRepository, FeedDataTypeEnum, index$d as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$p as FileRepository, FileType, GET_WATCHER_URLS, index$3 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$2 as LiveReactionRepository, index$7 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$n as MessageRepository, index$8 as PollRepository, PostContentType, index$b as PostRepository, PostStructureType, index as ProductRepository, index$o as ReactionRepository, index$9 as RoomPresenceRepository, index$c as RoomRepository, index$6 as StoryRepository, index$a as StreamRepository, index$m as SubChannelRepository, SubscriptionLevels, index$q as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$4 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };