@infrab4a/connect-nestjs 1.5.1-beta.0 → 1.5.1-beta.2
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/index.cjs.js
CHANGED
|
@@ -320,18 +320,18 @@ class ProductVertexHelper {
|
|
|
320
320
|
static resultProductMapper(result) {
|
|
321
321
|
return result[0].length
|
|
322
322
|
? result[0].map((result) => {
|
|
323
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
323
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
324
324
|
return {
|
|
325
325
|
id: (_a = result.document) === null || _a === void 0 ? void 0 : _a.structData.fields.id.stringValue,
|
|
326
326
|
name: (_b = result.document) === null || _b === void 0 ? void 0 : _b.structData.fields.name.stringValue,
|
|
327
|
-
brand: (_c = result.document) === null || _c === void 0 ? void 0 : _c.structData.fields.brand.stringValue,
|
|
328
|
-
stock: (
|
|
329
|
-
rating: (
|
|
330
|
-
gender: result.document.structData.fields.gender.stringValue,
|
|
331
|
-
slug: result.document.structData.fields.slug.stringValue,
|
|
332
|
-
sku: result.document.structData.fields.sku.stringValue,
|
|
333
|
-
ean: result.document.structData.fields.ean.stringValue,
|
|
334
|
-
description: result.document.structData.fields.description.stringValue,
|
|
327
|
+
brand: (_d = (_c = result.document) === null || _c === void 0 ? void 0 : _c.structData.fields.brand) === null || _d === void 0 ? void 0 : _d.stringValue,
|
|
328
|
+
stock: (_f = (_e = result.document) === null || _e === void 0 ? void 0 : _e.structData.fields.stock) === null || _f === void 0 ? void 0 : _f.numberValue,
|
|
329
|
+
rating: (_h = (_g = result.document) === null || _g === void 0 ? void 0 : _g.structData.fields.rating) === null || _h === void 0 ? void 0 : _h.stringValue,
|
|
330
|
+
gender: (_k = (_j = result.document) === null || _j === void 0 ? void 0 : _j.structData.fields.gender) === null || _k === void 0 ? void 0 : _k.stringValue,
|
|
331
|
+
slug: (_m = (_l = result.document) === null || _l === void 0 ? void 0 : _l.structData.fields.slug) === null || _m === void 0 ? void 0 : _m.stringValue,
|
|
332
|
+
sku: (_p = (_o = result.document) === null || _o === void 0 ? void 0 : _o.structData.fields.sku) === null || _p === void 0 ? void 0 : _p.stringValue,
|
|
333
|
+
ean: (_r = (_q = result.document) === null || _q === void 0 ? void 0 : _q.structData.fields.ean) === null || _r === void 0 ? void 0 : _r.stringValue,
|
|
334
|
+
description: (_t = (_s = result.document) === null || _s === void 0 ? void 0 : _s.structData.fields.description) === null || _t === void 0 ? void 0 : _t.stringValue,
|
|
335
335
|
};
|
|
336
336
|
})
|
|
337
337
|
: [];
|
|
@@ -924,4 +924,5 @@ exports.ConnectFirestoreService = ConnectFirestoreService;
|
|
|
924
924
|
exports.ES_CONFIG = ES_CONFIG;
|
|
925
925
|
exports.FIREBASE_STORAGE = FIREBASE_STORAGE;
|
|
926
926
|
exports.HASURA_OPTIONS = HASURA_OPTIONS;
|
|
927
|
+
exports.ProductVertexHelper = ProductVertexHelper;
|
|
927
928
|
exports.VERTEX_CONFIG = VERTEX_CONFIG;
|
package/index.esm.js
CHANGED
|
@@ -316,18 +316,18 @@ class ProductVertexHelper {
|
|
|
316
316
|
static resultProductMapper(result) {
|
|
317
317
|
return result[0].length
|
|
318
318
|
? result[0].map((result) => {
|
|
319
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
319
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
320
320
|
return {
|
|
321
321
|
id: (_a = result.document) === null || _a === void 0 ? void 0 : _a.structData.fields.id.stringValue,
|
|
322
322
|
name: (_b = result.document) === null || _b === void 0 ? void 0 : _b.structData.fields.name.stringValue,
|
|
323
|
-
brand: (_c = result.document) === null || _c === void 0 ? void 0 : _c.structData.fields.brand.stringValue,
|
|
324
|
-
stock: (
|
|
325
|
-
rating: (
|
|
326
|
-
gender: result.document.structData.fields.gender.stringValue,
|
|
327
|
-
slug: result.document.structData.fields.slug.stringValue,
|
|
328
|
-
sku: result.document.structData.fields.sku.stringValue,
|
|
329
|
-
ean: result.document.structData.fields.ean.stringValue,
|
|
330
|
-
description: result.document.structData.fields.description.stringValue,
|
|
323
|
+
brand: (_d = (_c = result.document) === null || _c === void 0 ? void 0 : _c.structData.fields.brand) === null || _d === void 0 ? void 0 : _d.stringValue,
|
|
324
|
+
stock: (_f = (_e = result.document) === null || _e === void 0 ? void 0 : _e.structData.fields.stock) === null || _f === void 0 ? void 0 : _f.numberValue,
|
|
325
|
+
rating: (_h = (_g = result.document) === null || _g === void 0 ? void 0 : _g.structData.fields.rating) === null || _h === void 0 ? void 0 : _h.stringValue,
|
|
326
|
+
gender: (_k = (_j = result.document) === null || _j === void 0 ? void 0 : _j.structData.fields.gender) === null || _k === void 0 ? void 0 : _k.stringValue,
|
|
327
|
+
slug: (_m = (_l = result.document) === null || _l === void 0 ? void 0 : _l.structData.fields.slug) === null || _m === void 0 ? void 0 : _m.stringValue,
|
|
328
|
+
sku: (_p = (_o = result.document) === null || _o === void 0 ? void 0 : _o.structData.fields.sku) === null || _p === void 0 ? void 0 : _p.stringValue,
|
|
329
|
+
ean: (_r = (_q = result.document) === null || _q === void 0 ? void 0 : _q.structData.fields.ean) === null || _r === void 0 ? void 0 : _r.stringValue,
|
|
330
|
+
description: (_t = (_s = result.document) === null || _s === void 0 ? void 0 : _s.structData.fields.description) === null || _t === void 0 ? void 0 : _t.stringValue,
|
|
331
331
|
};
|
|
332
332
|
})
|
|
333
333
|
: [];
|
|
@@ -914,4 +914,4 @@ NestConnectModule = NestConnectModule_1 = __decorate([
|
|
|
914
914
|
Module({})
|
|
915
915
|
], NestConnectModule);
|
|
916
916
|
|
|
917
|
-
export { ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, DiscoveryEngineVertexAdapter, ES_CONFIG, FIREBASE_STORAGE, HASURA_OPTIONS, NativeElasticSearchAdapter, NestConnectModule, NestElasticSeachModule, NestFirestoreModule, NestHasuraGraphQLModule, NestStorageModule, VERTEX_CONFIG };
|
|
917
|
+
export { ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, DiscoveryEngineVertexAdapter, ES_CONFIG, FIREBASE_STORAGE, HASURA_OPTIONS, NativeElasticSearchAdapter, NestConnectModule, NestElasticSeachModule, NestFirestoreModule, NestHasuraGraphQLModule, NestStorageModule, ProductVertexHelper, VERTEX_CONFIG };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductHasuraGraphQL, ProductSearch } from '@infrab4a/connect';
|
|
2
2
|
import { VertexSearchResult } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export declare class ProductVertexHelper {
|
|
4
4
|
constructor();
|
|
5
5
|
static productMapper(product: ProductHasuraGraphQL): ProductSearch;
|
|
6
6
|
static resultProductMapper(result: VertexSearchResult<ProductSearch>): ProductSearch[];
|