@etohq/index 1.1.0 → 1.3.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/loaders/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;iDAER,aAAa,KAAG,OAAO,CAAC,IAAI,CAAC;AAA3E,wBAsBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/loaders/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;yBAEhC,wBAAwB,aAAa,KAAG,OAAO,CAAC,IAAI,CAAC;AAA3E,wBAsBC"}
@@ -2,8 +2,8 @@ declare const IndexData: import("@etohq/framework/utils").DmlEntity<import("@eto
2
2
  id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").TextProperty>;
3
3
  name: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").TextProperty>;
4
4
  data: import("@etohq/framework/utils").JSONProperty;
5
- parents: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "IndexData">>;
6
- children: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "IndexData">>;
5
+ parents: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "IndexData">>;
6
+ children: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "IndexData">>;
7
7
  }>, "IndexData">;
8
8
  export default IndexData;
9
9
  //# sourceMappingURL=index-data.d.ts.map
@@ -7,15 +7,15 @@ declare const IndexRelation: import("@etohq/framework/utils").DmlEntity<import("
7
7
  id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").TextProperty>;
8
8
  name: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").TextProperty>;
9
9
  data: import("@etohq/framework/utils").JSONProperty;
10
- parents: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "IndexData">>;
11
- children: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "IndexData">>;
10
+ parents: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "IndexData">>;
11
+ children: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "IndexData">>;
12
12
  }>, "IndexData">, undefined>;
13
13
  child: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
14
14
  id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").TextProperty>;
15
15
  name: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").TextProperty>;
16
16
  data: import("@etohq/framework/utils").JSONProperty;
17
- parents: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "IndexData">>;
18
- children: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "IndexData">>;
17
+ parents: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "IndexData">>;
18
+ children: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "IndexData">>;
19
19
  }>, "IndexData">, undefined>;
20
20
  }>, "IndexRelation">;
21
21
  export default IndexRelation;
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/loaders/index.ts","../src/migrations/migration20231019174230.ts","../src/migrations/migration20241209173313.ts","../src/models/index-data.ts","../src/models/index-relation.ts","../src/models/index.ts","../src/services/index-module-service.ts","../src/services/index.ts","../src/services/postgres-provider.ts","../src/types/index.ts","../src/utils/build-config.ts","../src/utils/create-partitions.ts","../src/utils/default-schema.ts","../src/utils/flatten-object-keys.ts","../src/utils/gql-to-types.ts","../src/utils/index.ts","../src/utils/normalize-fields-selection.ts","../src/utils/query-builder.ts","../src/utils/__tests__/flatten-object-keys.spec.ts","../src/utils/__tests__/normalize-fields-selcetion.spec.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/loaders/index.ts","../src/migrations/migration20231019174230.ts","../src/migrations/migration20241209173313.ts","../src/models/index-data.ts","../src/models/index-relation.ts","../src/models/index.ts","../src/services/index-module-service.ts","../src/services/index.ts","../src/services/postgres-provider.ts","../src/types/index.ts","../src/utils/build-config.ts","../src/utils/create-partitions.ts","../src/utils/default-schema.ts","../src/utils/flatten-object-keys.ts","../src/utils/gql-to-types.ts","../src/utils/index.ts","../src/utils/normalize-fields-selection.ts","../src/utils/query-builder.ts","../src/utils/__tests__/flatten-object-keys.spec.ts","../src/utils/__tests__/normalize-fields-selcetion.spec.ts"],"version":"5.8.3"}
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.gqlSchemaToTypes = gqlSchemaToTypes;
27
37
  const path_1 = require("path");
@@ -1 +1 @@
1
- {"version":3,"file":"gql-to-types.js","sourceRoot":"","sources":["../../src/utils/gql-to-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AASA,4CAsCC;AA/CD,+BAA2B;AAC3B,iDAAuE;AACvE,8DAAwD;AACxD,kDAG+B;AAC/B,iDAAkC;AAE3B,KAAK,UAAU,gBAAgB,CAAC,MAAc;IACnD,MAAM,eAAe,GAAG,+BAAgB,CAAC,SAAS,CAAC,UAAU,GAAG,MAAM,CAAA;IACtE,MAAM,gBAAgB,GAAG,IAAA,mCAAoB,EAAC,eAAe,CAAC,CAAA;IAC9D,MAAM,QAAQ,GAAG,4BAA4B,CAAA;IAC7C,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC1C,MAAM,GAAG,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,CAAA;IAEvC,MAAM,IAAA,wBAA0B,EAAC;QAC/B,MAAM,EAAE,gBAAgB;QACxB,QAAQ;QACR,aAAa,EAA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CAAC,KAAK;gBACd,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;gBAChB,CAAC,CAAC,EAAE,CAAA;QAEN,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YACnE,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAA;YAChC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;gBAC7B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC/C,OAAM;gBACR,CAAC;gBAED,OAAO;oBACL,UAAU,EAAE,SAAS;oBACrB,UAAU,EAAE,MAAM;wBAChB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,MAAM,GAAG,CAAC;4BACzC,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC;4BACnB,CAAC,CAAC,KAAK;wBACT,CAAC,CAAC,KAAK;iBACV,CAAA;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAA8C,CAAA;AACjE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etohq/index",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Eto Index module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts eto-mikro-orm cache:clear"
37
37
  },
38
38
  "devDependencies": {
39
- "@etohq/framework": "^1.1.0",
40
- "@etohq/test-utils": "^1.1.0",
39
+ "@etohq/framework": "^1.3.0",
40
+ "@etohq/test-utils": "^1.3.0",
41
41
  "@mikro-orm/cli": "5.9.7",
42
42
  "@mikro-orm/core": "5.9.7",
43
43
  "@mikro-orm/knex": "5.9.7",
@@ -49,14 +49,14 @@
49
49
  "jest": "^29.7.0",
50
50
  "rimraf": "^5.0.2",
51
51
  "tsc-alias": "^1.8.6",
52
- "typescript": "^5.6.2"
52
+ "typescript": "^5.8.3"
53
53
  },
54
54
  "dependencies": {
55
- "@etohq/utils": "^1.1.0",
55
+ "@etohq/utils": "^1.3.0",
56
56
  "awilix": "^8.0.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@etohq/framework": "^1.0.0",
59
+ "@etohq/framework": "^1.1.0",
60
60
  "@mikro-orm/core": "5.9.7",
61
61
  "@mikro-orm/knex": "5.9.7",
62
62
  "@mikro-orm/migrations": "5.9.7",