@adtrackify/at-service-common 3.1.8 → 3.1.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.
- package/dist/cjs/services/cache/product-cache-service.d.ts +4 -0
- package/dist/cjs/services/cache/product-cache-service.js +6 -1
- package/dist/cjs/services/cache/product-cache-service.js.map +1 -1
- package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js +7 -7
- package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js.map +1 -1
- package/dist/esm/services/cache/product-cache-service.d.ts +4 -0
- package/dist/esm/services/cache/product-cache-service.js +7 -2
- package/dist/esm/services/cache/product-cache-service.js.map +1 -1
- package/dist/esm/services/shopify/products/shopify-products-serviceV2.js +7 -7
- package/dist/esm/services/shopify/products/shopify-products-serviceV2.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { InternalProduct } from '../shopify/types/product';
|
|
2
|
+
export interface ProductCache {
|
|
3
|
+
productCompressed: string;
|
|
4
|
+
expiresAt: number;
|
|
5
|
+
}
|
|
2
6
|
export declare class ProductCacheService {
|
|
3
7
|
private genericCacheService;
|
|
4
8
|
constructor(cacheLambdaFunctionArn: string);
|
|
@@ -14,7 +14,12 @@ class ProductCacheService {
|
|
|
14
14
|
};
|
|
15
15
|
getProductFromCache = async (pixelId, productId) => {
|
|
16
16
|
const cacheKey = this.getCacheKey(pixelId, productId);
|
|
17
|
-
|
|
17
|
+
const cachedData = await this.genericCacheService.getCachedData(cacheKey);
|
|
18
|
+
if (cachedData) {
|
|
19
|
+
const product = (0, libs_1.decompressJSON)(cachedData.productCompressed);
|
|
20
|
+
return product;
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
18
23
|
};
|
|
19
24
|
putProductInCache = async (pixelId, productId, product, ttlInDays) => {
|
|
20
25
|
const cacheKey = this.getCacheKey(pixelId, productId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-cache-service.js","sourceRoot":"","sources":["../../../../src/services/cache/product-cache-service.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,oEAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"product-cache-service.js","sourceRoot":"","sources":["../../../../src/services/cache/product-cache-service.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,oEAA+D;AAE/D,qCAA0D;AAM1D,MAAa,mBAAmB;IACtB,mBAAmB,CAAsB;IACjD,YAAY,sBAA8B;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,2CAAmB,CAAC,sBAAsB,CAAC,CAAC;IAC7E,CAAC;IACM,WAAW,GAAG,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAE;QAC1D,OAAO,oBAAoB,OAAO,IAAI,SAAS,EAAE,CAAC;IACpD,CAAC,CAAA;IACM,mBAAmB,GAAG,KAAK,EAAE,OAAe,EAAE,SAAiB,EAAwC,EAAE;QAC9G,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAe,QAAQ,CAAC,CAAC;QACxF,IAAI,UAAU,EAAE;YACd,MAAM,OAAO,GAAG,IAAA,qBAAc,EAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;YAC7D,OAAO,OAAO,CAAC;SAChB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAA;IACM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,SAAiB,EAAE,OAAwB,EAAE,SAAkB,EAAE,EAAE;QACpH,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtD,MAAM,GAAG,GAAG,SAAS,IAAI,CAAC,CAAC;QAC3B,MAAM,SAAS,GAAG,gBAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;QACjE,MAAM,iBAAiB,GAAG,IAAA,mBAAY,EAAC,OAAO,CAAC,CAAC;QAChD,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3F,CAAC,CAAA;IACM,sBAAsB,GAAG,KAAK,EAAE,OAAe,EAAE,SAAiB,EAAE,EAAE;QAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtD,MAAM,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC5D,CAAC,CAAA;CACF;AA5BD,kDA4BC"}
|
|
@@ -14,24 +14,24 @@ class ShopifyProductsServiceV2 {
|
|
|
14
14
|
try {
|
|
15
15
|
let product = null;
|
|
16
16
|
if (useCache) {
|
|
17
|
-
helpers_1.Logger.info('Getting product from cache', { pixelId, shop, productId });
|
|
17
|
+
helpers_1.Logger.info('getShopifyProduct: Getting product from cache', { pixelId, shop, productId });
|
|
18
18
|
product = await this.productCacheService.getProductFromCache(pixelId, productId);
|
|
19
19
|
if (product) {
|
|
20
|
-
helpers_1.Logger.info('Product found in cache', { pixelId, shop, productId });
|
|
20
|
+
helpers_1.Logger.info('getShopifyProduct: Product found in cache', { pixelId, shop, productId, product });
|
|
21
21
|
return product;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
helpers_1.Logger.info('Getting product from ShopifyAPI', { pixelId, shop, productId });
|
|
24
|
+
helpers_1.Logger.info('getShopifyProduct: Getting product from ShopifyAPI', { pixelId, shop, productId });
|
|
25
25
|
product = await this.getShopifyProductFromAPI(pixelId, shop, accessToken, productId, true);
|
|
26
26
|
if (product && updateCache) {
|
|
27
|
-
helpers_1.Logger.info('Product found in ShopifyAPI, putting in cache', { pixelId, productId });
|
|
27
|
+
helpers_1.Logger.info('getShopifyProduct: Product found in ShopifyAPI, putting in cache', { pixelId, productId, product });
|
|
28
28
|
await this.productCacheService.putProductInCache(pixelId, productId, product);
|
|
29
29
|
}
|
|
30
|
-
helpers_1.Logger.info('Returning product', { pixelId, shop, productId, product });
|
|
30
|
+
helpers_1.Logger.info('getShopifyProduct: Returning product', { pixelId, shop, productId, product });
|
|
31
31
|
return product;
|
|
32
32
|
}
|
|
33
33
|
catch (error) {
|
|
34
|
-
helpers_1.Logger.error('Failed getShopifyProductWithCachingGraphQL', { error });
|
|
34
|
+
helpers_1.Logger.error('getShopifyProduct: Failed getShopifyProductWithCachingGraphQL', { error });
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -44,7 +44,7 @@ class ShopifyProductsServiceV2 {
|
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
catch (error) {
|
|
47
|
-
helpers_1.Logger.error('Failed getShopifyProductFromAPI', { e: error, pixelId, shop, accessToken, productId, useTransformer, error });
|
|
47
|
+
helpers_1.Logger.error('getShopifyProductFromAPI: Failed getShopifyProductFromAPI', { e: error, pixelId, shop, accessToken, productId, useTransformer, error });
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shopify-products-serviceV2.js","sourceRoot":"","sources":["../../../../../src/services/shopify/products/shopify-products-serviceV2.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAG1C,6EAAwE;AACxE,gFAA2E;AAC3E,wGAAmG;AAEnG,MAAa,wBAAwB;IAE3B,mBAAmB,CAAsB;IACjD,YAAY,sBAA8B;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,2CAAmB,CAAC,sBAAsB,CAAC,CAAC;IAC7E,CAAC;IAEM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,IAAY,EAAE,WAAmB,EAAE,SAAiB,EAAE,QAAQ,GAAG,IAAI,EAAE,WAAW,GAAG,IAAI,EAA+C,EAAE;QAC3L,IAAI;YACF,IAAI,OAAO,GAAuC,IAAI,CAAC;YACvD,IAAI,QAAQ,EAAE;gBACZ,gBAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"shopify-products-serviceV2.js","sourceRoot":"","sources":["../../../../../src/services/shopify/products/shopify-products-serviceV2.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAG1C,6EAAwE;AACxE,gFAA2E;AAC3E,wGAAmG;AAEnG,MAAa,wBAAwB;IAE3B,mBAAmB,CAAsB;IACjD,YAAY,sBAA8B;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,2CAAmB,CAAC,sBAAsB,CAAC,CAAC;IAC7E,CAAC;IAEM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,IAAY,EAAE,WAAmB,EAAE,SAAiB,EAAE,QAAQ,GAAG,IAAI,EAAE,WAAW,GAAG,IAAI,EAA+C,EAAE;QAC3L,IAAI;YACF,IAAI,OAAO,GAAuC,IAAI,CAAC;YACvD,IAAI,QAAQ,EAAE;gBACZ,gBAAM,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC3F,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;gBACjF,IAAI,OAAO,EAAE;oBACX,gBAAM,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;oBAChG,OAAO,OAAO,CAAC;iBAChB;aACF;YACD,gBAAM,CAAC,IAAI,CAAC,oDAAoD,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;YAChG,OAAO,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,CAAoB,CAAC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alProduct } from '../shopify/types/product';
|
|
2
|
+
export interface ProductCache {
|
|
3
|
+
productCompressed: string;
|
|
4
|
+
expiresAt: number;
|
|
5
|
+
}
|
|
2
6
|
export declare class ProductCacheService {
|
|
3
7
|
private genericCacheService;
|
|
4
8
|
constructor(cacheLambdaFunctionArn: string);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
2
|
import { GenericCacheService } from '../generic-cache-service';
|
|
3
|
-
import { compressJSON } from '../../libs';
|
|
3
|
+
import { compressJSON, decompressJSON } from '../../libs';
|
|
4
4
|
export class ProductCacheService {
|
|
5
5
|
genericCacheService;
|
|
6
6
|
constructor(cacheLambdaFunctionArn) {
|
|
@@ -11,7 +11,12 @@ export class ProductCacheService {
|
|
|
11
11
|
};
|
|
12
12
|
getProductFromCache = async (pixelId, productId) => {
|
|
13
13
|
const cacheKey = this.getCacheKey(pixelId, productId);
|
|
14
|
-
|
|
14
|
+
const cachedData = await this.genericCacheService.getCachedData(cacheKey);
|
|
15
|
+
if (cachedData) {
|
|
16
|
+
const product = decompressJSON(cachedData.productCompressed);
|
|
17
|
+
return product;
|
|
18
|
+
}
|
|
19
|
+
return undefined;
|
|
15
20
|
};
|
|
16
21
|
putProductInCache = async (pixelId, productId, product, ttlInDays) => {
|
|
17
22
|
const cacheKey = this.getCacheKey(pixelId, productId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-cache-service.js","sourceRoot":"","sources":["../../../../src/services/cache/product-cache-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"product-cache-service.js","sourceRoot":"","sources":["../../../../src/services/cache/product-cache-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EA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CAAC,mBAAmB,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3F,CAAC,CAAA;IACM,sBAAsB,GAAG,KAAK,EAAE,OAAe,EAAE,SAAiB,EAAE,EAAE;QAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtD,MAAM,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC5D,CAAC,CAAA;CACF"}
|
|
@@ -11,24 +11,24 @@ export class ShopifyProductsServiceV2 {
|
|
|
11
11
|
try {
|
|
12
12
|
let product = null;
|
|
13
13
|
if (useCache) {
|
|
14
|
-
Logger.info('Getting product from cache', { pixelId, shop, productId });
|
|
14
|
+
Logger.info('getShopifyProduct: Getting product from cache', { pixelId, shop, productId });
|
|
15
15
|
product = await this.productCacheService.getProductFromCache(pixelId, productId);
|
|
16
16
|
if (product) {
|
|
17
|
-
Logger.info('Product found in cache', { pixelId, shop, productId });
|
|
17
|
+
Logger.info('getShopifyProduct: Product found in cache', { pixelId, shop, productId, product });
|
|
18
18
|
return product;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
Logger.info('Getting product from ShopifyAPI', { pixelId, shop, productId });
|
|
21
|
+
Logger.info('getShopifyProduct: Getting product from ShopifyAPI', { pixelId, shop, productId });
|
|
22
22
|
product = await this.getShopifyProductFromAPI(pixelId, shop, accessToken, productId, true);
|
|
23
23
|
if (product && updateCache) {
|
|
24
|
-
Logger.info('Product found in ShopifyAPI, putting in cache', { pixelId, productId });
|
|
24
|
+
Logger.info('getShopifyProduct: Product found in ShopifyAPI, putting in cache', { pixelId, productId, product });
|
|
25
25
|
await this.productCacheService.putProductInCache(pixelId, productId, product);
|
|
26
26
|
}
|
|
27
|
-
Logger.info('Returning product', { pixelId, shop, productId, product });
|
|
27
|
+
Logger.info('getShopifyProduct: Returning product', { pixelId, shop, productId, product });
|
|
28
28
|
return product;
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
|
-
Logger.error('Failed getShopifyProductWithCachingGraphQL', { error });
|
|
31
|
+
Logger.error('getShopifyProduct: Failed getShopifyProductWithCachingGraphQL', { error });
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
34
34
|
};
|
|
@@ -41,7 +41,7 @@ export class ShopifyProductsServiceV2 {
|
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
43
|
catch (error) {
|
|
44
|
-
Logger.error('Failed getShopifyProductFromAPI', { e: error, pixelId, shop, accessToken, productId, useTransformer, error });
|
|
44
|
+
Logger.error('getShopifyProductFromAPI: Failed getShopifyProductFromAPI', { e: error, pixelId, shop, accessToken, productId, useTransformer, error });
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shopify-products-serviceV2.js","sourceRoot":"","sources":["../../../../../src/services/shopify/products/shopify-products-serviceV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAEnG,MAAM,OAAO,wBAAwB;IAE3B,mBAAmB,CAAsB;IACjD,YAAY,sBAA8B;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;IAC7E,CAAC;IAEM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,IAAY,EAAE,WAAmB,EAAE,SAAiB,EAAE,QAAQ,GAAG,IAAI,EAAE,WAAW,GAAG,IAAI,EAA+C,EAAE;QAC3L,IAAI;YACF,IAAI,OAAO,GAAuC,IAAI,CAAC;YACvD,IAAI,QAAQ,EAAE;gBACZ,MAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"shopify-products-serviceV2.js","sourceRoot":"","sources":["../../../../../src/services/shopify/products/shopify-products-serviceV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAEnG,MAAM,OAAO,wBAAwB;IAE3B,mBAAmB,CAAsB;IACjD,YAAY,sBAA8B;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;IAC7E,CAAC;IAEM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,IAAY,EAAE,WAAmB,EAAE,SAAiB,EAAE,QAAQ,GAAG,IAAI,EAAE,WAAW,GAAG,IAAI,EAA+C,EAAE;QAC3L,IAAI;YACF,IAAI,OAAO,GAAuC,IAAI,CAAC;YACvD,IAAI,QAAQ,EAAE;gBACZ,MAAM,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC3F,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;gBACjF,IAAI,OAAO,EAAE;oBACX,MAAM,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;oBAChG,OAAO,OAAO,CAAC;iBAChB;aACF;YACD,MAAM,CAAC,IAAI,CAAC,oDAAoD,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;YAChG,OAAO,GAAG,MAAM,IAAI,CAAC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