@things-factory/integration-sellercraft 4.3.6 → 4.3.7

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.
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.api = void 0;
7
7
  const debug_1 = __importDefault(require("debug"));
8
8
  const debug = (0, debug_1.default)('things-factory:integration-marketplace:store-api-decorator');
9
+ const integration_base_1 = require("@things-factory/integration-base");
9
10
  const NOOP = v => v;
10
11
  const api = (target, property, descriptor) => {
11
12
  const method = descriptor.value;
@@ -23,6 +24,7 @@ const api = (target, property, descriptor) => {
23
24
  var response = await action.apply(this, [
24
25
  { store, method: httpMethod, path, request: denormalized, platformAction }
25
26
  ]);
27
+ (0, integration_base_1.createPayloadLog)(store.accountId, path, denormalized, response, request === null || request === void 0 ? void 0 : request.context);
26
28
  debug('response', response);
27
29
  return await normalize(response, { store });
28
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-api/decorators.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,4DAA4D,CAAC,CAAA;AAIjF,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAEZ,MAAM,GAAG,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAE,UAAwC,EAAO,EAAE;IACrG,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAA;IAE/B,UAAU,CAAC,KAAK,GAAG,KAAK,WAAW,KAAkB,EAAE,OAAO;QAC5D,MAAM,cAAc,GAAG,IAAI,CAAA;QAE3B,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;QAExB,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAE3E,IAAI,CAAC,GAAG,IA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AE,EAAE,KAAK,EAAE,CAAC,CAAA;IAC7C,CAAC,CAAA;IAED,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAtCY,QAAA,GAAG,OAsCf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-sellercraft",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -31,8 +31,8 @@
31
31
  "@things-factory/context-ui": "^4.3.2",
32
32
  "@things-factory/grist-ui": "^4.3.2",
33
33
  "@things-factory/i18n-base": "^4.3.2",
34
- "@things-factory/integration-marketplace": "^4.3.6",
35
- "@things-factory/integration-ui": "^4.3.2",
34
+ "@things-factory/integration-marketplace": "^4.3.7",
35
+ "@things-factory/integration-ui": "^4.3.7",
36
36
  "@things-factory/more-ui": "^4.3.2",
37
37
  "@things-factory/resource-ui": "^4.3.2",
38
38
  "@things-factory/setting-ui": "^4.3.2",
@@ -51,5 +51,5 @@
51
51
  "nock": "^13.0.2",
52
52
  "should": "^13.2.3"
53
53
  },
54
- "gitHead": "4bac4b99239169cd2daa6e92a69bde75af7494df"
54
+ "gitHead": "591d4bf12ae769887abd0635780952569f2f3b06"
55
55
  }
@@ -2,6 +2,7 @@ import Debug from 'debug'
2
2
  const debug = Debug('things-factory:integration-marketplace:store-api-decorator')
3
3
 
4
4
  import { Sellercraft } from '../../service'
5
+ import { createPayloadLog } from '@things-factory/integration-base'
5
6
 
6
7
  const NOOP = v => v
7
8
 
@@ -35,6 +36,8 @@ export const api = (target: Object, property: string, descriptor: TypedPropertyD
35
36
  { store, method: httpMethod, path, request: denormalized, platformAction }
36
37
  ])
37
38
 
39
+ createPayloadLog(store.accountId, path, denormalized, response, request?.context)
40
+
38
41
  debug('response', response)
39
42
 
40
43
  return await normalize(response, { store })