@aldb2b/common 1.0.1062 → 1.0.1065

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.
@@ -50,13 +50,12 @@
50
50
  /// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
51
51
  import { Connection, Schema } from 'mongoose';
52
52
  import { CustomModel } from '../../../../../db/CustomModel';
53
- import { Category } from "./category.schema";
54
53
  export type SectorModel = CustomModel<Sector>;
55
54
  export declare class Sector {
56
55
  _id: string;
57
56
  verticals: string[];
58
57
  keywords: string[];
59
- categories: Category[];
58
+ categories: any[];
60
59
  createdAt: Date;
61
60
  updatedAt: Date;
62
61
  }
@@ -8,7 +8,6 @@ class Sector {
8
8
  }
9
9
  exports.Sector = Sector;
10
10
  const getSectorSchema = (connection) => {
11
- console.log('getSectorSchema: ', connection.models);
12
11
  const sectorSchema = new mongoose_1.Schema({
13
12
  verticals: { type: [String], default: [] },
14
13
  keywords: { type: [String], default: [] },
@@ -1 +1 @@
1
- {"version":3,"file":"sector.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/companies/sector.schema.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAE3C,mDAAiD;AAEjD,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAItC,MAAa,MAAM;CAOlB;AAPD,wBAOC;AAEM,MAAM,eAAe,GAAG,CAAC,UAAsB,EAA+B,EAAE;IACrF,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IACnD,MAAM,YAAY,GAAG,IAAI,iBAAM,CAAsB;QACnD,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACzC,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,IAAA,sBAAW,EAA0B,UAAU,EAAE,UAAU,CAAC;aAClE;SACF;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC5D,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;KAC7D,CAAC,CAAA;IAEF,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA;AAhBY,QAAA,eAAe,mBAgB3B"}
1
+ {"version":3,"file":"sector.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/companies/sector.schema.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAE3C,mDAAiD;AAEjD,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAItC,MAAa,MAAM;CAOlB;AAPD,wBAOC;AAEM,MAAM,eAAe,GAAG,CAAC,UAAsB,EAA+B,EAAE;IACrF,MAAM,YAAY,GAAG,IAAI,iBAAM,CAAsB;QACnD,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACzC,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,IAAA,sBAAW,EAA0B,UAAU,EAAE,UAAU,CAAC;aAClE;SACF;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC5D,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;KAC7D,CAAC,CAAA;IAEF,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA;AAfY,QAAA,eAAe,mBAe3B"}
@@ -4,7 +4,6 @@ exports.getModelRef = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  function getModelRef(ref, connection) {
6
6
  const refModel = connection.models[ref];
7
- console.log('refModel: ', refModel, ref);
8
7
  if (refModel) {
9
8
  return refModel;
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-model-ref.js","sourceRoot":"","sources":["../../../src/entities/services/get-model-ref.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AAEpD,SAAgB,WAAW,CACzB,GAAW,EACX,UAAsB;IAEtB,MAAM,QAAQ,GAAa,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IACjD,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;IACzC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAA;IACjB,CAAC;SAAM,CAAC;QACN,OAAO,UAAU,CAAC,KAAK,CAAI,GAAG,EAAE,IAAI,iBAAM,CAAO,EAAE,CAAC,CAAC,CAAA;IACvD,CAAC;AACH,CAAC;AAXD,kCAWC"}
1
+ {"version":3,"file":"get-model-ref.js","sourceRoot":"","sources":["../../../src/entities/services/get-model-ref.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AAEpD,SAAgB,WAAW,CACzB,GAAW,EACX,UAAsB;IAEtB,MAAM,QAAQ,GAAa,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IACjD,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAA;IACjB,CAAC;SAAM,CAAC;QACN,OAAO,UAAU,CAAC,KAAK,CAAI,GAAG,EAAE,IAAI,iBAAM,CAAO,EAAE,CAAC,CAAC,CAAA;IACvD,CAAC;AACH,CAAC;AAVD,kCAUC"}