@things-factory/integration-marketplace 4.3.452 → 4.3.460
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.
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Magento = void 0;
|
|
7
7
|
const crypto_1 = __importDefault(require("crypto"));
|
|
8
|
-
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
9
8
|
const integration_base_1 = require("@things-factory/integration-base");
|
|
10
9
|
const debug = require('debug')('things-factory:integration-marketplace:magento');
|
|
11
10
|
class Magento {
|
|
@@ -122,13 +121,16 @@ class Magento {
|
|
|
122
121
|
const qs = this.objectToMultiarray(data);
|
|
123
122
|
const endpoint = `${shop}/rest${storeId ? `/${storeId}` : ''}/V1${path}${qs ? '?' + qs : ''}`;
|
|
124
123
|
debug('endpoint', endpoint);
|
|
125
|
-
|
|
124
|
+
let requestPayload = {
|
|
125
|
+
url: endpoint,
|
|
126
|
+
method: 'GET',
|
|
126
127
|
headers: {
|
|
127
128
|
'Content-Type': 'application/json',
|
|
128
129
|
Authorization: `Bearer ${accessToken}`
|
|
129
130
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
131
|
+
};
|
|
132
|
+
const response = await (0, integration_base_1.lambdaService)('Generic-requestProxy', requestPayload);
|
|
133
|
+
const result = JSON.parse(response.result);
|
|
132
134
|
debug('response result', result);
|
|
133
135
|
return result;
|
|
134
136
|
}
|
|
@@ -137,15 +139,17 @@ class Magento {
|
|
|
137
139
|
debug('data', data);
|
|
138
140
|
const jsondata = JSON.stringify(data);
|
|
139
141
|
const endpoint = `${shop}/rest${storeId ? `/${storeId}` : ''}/V1${path}`;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
let requestPayload = {
|
|
143
|
+
url: endpoint,
|
|
144
|
+
method: 'POST',
|
|
142
145
|
headers: {
|
|
143
146
|
'Content-Type': 'application/json',
|
|
144
147
|
Authorization: `Bearer ${accessToken}`
|
|
145
148
|
},
|
|
146
149
|
body: jsondata
|
|
147
|
-
}
|
|
148
|
-
const
|
|
150
|
+
};
|
|
151
|
+
const response = await (0, integration_base_1.lambdaService)('Generic-requestProxy', requestPayload);
|
|
152
|
+
const result = JSON.parse(response.result);
|
|
149
153
|
debug('response result', result);
|
|
150
154
|
try {
|
|
151
155
|
(0, integration_base_1.createPayloadLog)(storeId, endpoint, jsondata, JSON.stringify(result), {
|
|
@@ -162,15 +166,17 @@ class Magento {
|
|
|
162
166
|
debug('data', data);
|
|
163
167
|
const jsondata = JSON.stringify(data);
|
|
164
168
|
const endpoint = `${shop}/rest${storeId ? `/${storeId}` : ''}/V1${path}`;
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
let requestPayload = {
|
|
170
|
+
url: endpoint,
|
|
171
|
+
method: 'PUT',
|
|
167
172
|
headers: {
|
|
168
173
|
'Content-Type': 'application/json',
|
|
169
174
|
Authorization: `Bearer ${accessToken}`
|
|
170
175
|
},
|
|
171
176
|
body: jsondata
|
|
172
|
-
}
|
|
173
|
-
const
|
|
177
|
+
};
|
|
178
|
+
const response = await (0, integration_base_1.lambdaService)('Generic-requestProxy', requestPayload);
|
|
179
|
+
const result = JSON.parse(response.result);
|
|
174
180
|
debug('response result', result);
|
|
175
181
|
try {
|
|
176
182
|
(0, integration_base_1.createPayloadLog)(storeId, endpoint, jsondata, JSON.stringify(result), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magento.js","sourceRoot":"","sources":["../../../server/controllers/magento/magento.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;
|
|
1
|
+
{"version":3,"file":"magento.js","sourceRoot":"","sources":["../../../server/controllers/magento/magento.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;AAE3B,uEAA+F;AAE/F,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,gDAAgD,CAAC,CAAA;AA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+1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-marketplace",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.460",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@things-factory/context-ui": "^4.3.434",
|
|
32
32
|
"@things-factory/grist-ui": "^4.3.434",
|
|
33
33
|
"@things-factory/i18n-base": "^4.3.434",
|
|
34
|
-
"@things-factory/integration-lmd": "^4.3.
|
|
34
|
+
"@things-factory/integration-lmd": "^4.3.460",
|
|
35
35
|
"@things-factory/integration-ui": "^4.3.452",
|
|
36
36
|
"@things-factory/more-ui": "^4.3.434",
|
|
37
37
|
"@things-factory/resource-ui": "^4.3.452",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"nock": "^13.0.2",
|
|
52
52
|
"should": "^13.2.3"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "c4fad874a8e5bdd0341a280a68d1f465dd3ec363"
|
|
55
55
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import crypto from 'crypto'
|
|
2
|
-
import fetch from 'node-fetch'
|
|
3
2
|
|
|
4
|
-
import { createPayloadLog, PayloadType } from '@things-factory/integration-base'
|
|
3
|
+
import { createPayloadLog, lambdaService, PayloadType } from '@things-factory/integration-base'
|
|
5
4
|
|
|
6
5
|
const debug = require('debug')('things-factory:integration-marketplace:magento')
|
|
7
6
|
|
|
@@ -164,14 +163,18 @@ export class Magento {
|
|
|
164
163
|
const endpoint = `${shop}/rest${storeId ? `/${storeId}` : ''}/V1${path}${qs ? '?' + qs : ''}`
|
|
165
164
|
debug('endpoint', endpoint)
|
|
166
165
|
|
|
167
|
-
|
|
166
|
+
let requestPayload = {
|
|
167
|
+
url: endpoint,
|
|
168
|
+
method: 'GET',
|
|
168
169
|
headers: {
|
|
169
170
|
'Content-Type': 'application/json',
|
|
170
171
|
Authorization: `Bearer ${accessToken}`
|
|
171
172
|
}
|
|
172
|
-
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const response = await lambdaService('Generic-requestProxy', requestPayload)
|
|
173
176
|
|
|
174
|
-
|
|
177
|
+
const result = JSON.parse(response.result)
|
|
175
178
|
|
|
176
179
|
debug('response result', result)
|
|
177
180
|
|
|
@@ -187,16 +190,19 @@ export class Magento {
|
|
|
187
190
|
|
|
188
191
|
const endpoint = `${shop}/rest${storeId ? `/${storeId}` : ''}/V1${path}`
|
|
189
192
|
|
|
190
|
-
|
|
191
|
-
|
|
193
|
+
let requestPayload = {
|
|
194
|
+
url: endpoint,
|
|
195
|
+
method: 'POST',
|
|
192
196
|
headers: {
|
|
193
197
|
'Content-Type': 'application/json',
|
|
194
198
|
Authorization: `Bearer ${accessToken}`
|
|
195
199
|
},
|
|
196
200
|
body: jsondata
|
|
197
|
-
}
|
|
201
|
+
}
|
|
198
202
|
|
|
199
|
-
const
|
|
203
|
+
const response = await lambdaService('Generic-requestProxy', requestPayload)
|
|
204
|
+
|
|
205
|
+
const result = JSON.parse(response.result)
|
|
200
206
|
debug('response result', result)
|
|
201
207
|
|
|
202
208
|
try {
|
|
@@ -226,16 +232,19 @@ export class Magento {
|
|
|
226
232
|
|
|
227
233
|
const endpoint = `${shop}/rest${storeId ? `/${storeId}` : ''}/V1${path}`
|
|
228
234
|
|
|
229
|
-
|
|
230
|
-
|
|
235
|
+
let requestPayload = {
|
|
236
|
+
url: endpoint,
|
|
237
|
+
method: 'PUT',
|
|
231
238
|
headers: {
|
|
232
239
|
'Content-Type': 'application/json',
|
|
233
240
|
Authorization: `Bearer ${accessToken}`
|
|
234
241
|
},
|
|
235
242
|
body: jsondata
|
|
236
|
-
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const response = await lambdaService('Generic-requestProxy', requestPayload)
|
|
237
246
|
|
|
238
|
-
const result =
|
|
247
|
+
const result = JSON.parse(response.result)
|
|
239
248
|
debug('response result', result)
|
|
240
249
|
|
|
241
250
|
try {
|