@medusajs/types 1.12.0-snapshot-20240704061641 → 1.12.0-snapshot-20240704104329

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
1
  import { FindManyOptions, FindOneOptions, FindOperator, FindOptionsSelect, FindOptionsWhere, OrderByCondition } from "typeorm";
2
2
  import { FindOptionsOrder } from "typeorm/find-options/FindOptionsOrder";
3
3
  import { FindOptionsRelations } from "typeorm/find-options/FindOptionsRelations";
4
+ /**
5
+ * Prettify complex types to a flat object structure
6
+ */
7
+ export type Prettify<T> = {
8
+ [K in keyof T]: T[K];
9
+ } & {};
4
10
  /**
5
11
  * Utility type used to remove some optional attributes (coming from K) from a type T
6
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAEhF;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG;KAC1D,QAAQ,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI;KAC7C,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAChB,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;CACjB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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { CamelCase } from "../common";
1
+ import { CamelCase, Prettify } from "../common";
2
2
  /**
3
3
  * Symbol to identify a DML entity from an object
4
4
  */
@@ -133,9 +133,9 @@ export type InferManyToManyFields<Relation> = InferHasManyFields<Relation>;
133
133
  * Inferring the types of the schema fields from the DML
134
134
  * entity
135
135
  */
136
- export type InferSchemaFields<Schema extends DMLSchema> = {
136
+ export type InferSchemaFields<Schema extends DMLSchema> = Prettify<{
137
137
  [K in keyof Schema]: Schema[K] extends RelationshipType<any> ? Schema[K]["type"] extends "belongsTo" ? InferBelongsToFields<Schema[K]["$dataType"]> : Schema[K]["type"] extends "hasOne" ? InferHasOneFields<Schema[K]["$dataType"]> : Schema[K]["type"] extends "hasMany" ? InferHasManyFields<Schema[K]["$dataType"]> : Schema[K]["type"] extends "manyToMany" ? InferManyToManyFields<Schema[K]["$dataType"]> : never : Schema[K]["$dataType"];
138
- };
138
+ }>;
139
139
  /**
140
140
  * Helper to infer the schema type of a DmlEntity
141
141
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,WAAW,eAA4B,CAAA;AAEpD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAC5B,MAAM,EACN,YAAY,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAC1C,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,C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AAY,GAAG;IAAE,GAAG,EAAE,gBAAgB,CAAA;CAAE,CAAA;AACpD,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,YAAY,CAAA;AAExD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI;KAC3D,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAC3D,UAAU,GACV,cAAc,CAAC,CAAC,CAAC;CACtB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { BaseFilterable, OperatorMap } from "../../dal";
2
- import { BaseProduct } from "../product/common";
2
+ import { AdminProduct } from "../product";
3
3
  export interface BaseCollection {
4
4
  id?: string;
5
5
  title?: string;
@@ -7,7 +7,7 @@ export interface BaseCollection {
7
7
  created_at?: string;
8
8
  updated_at?: string;
9
9
  deleted_at?: string | null;
10
- products?: BaseProduct[];
10
+ products?: AdminProduct[];
11
11
  metadata?: Record<string, unknown> | null;
12
12
  }
13
13
  export interface BaseCollectionFilters extends BaseFilterable<BaseCollectionFilters> {
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/collection/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB,QAAQ,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AE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240704061641",
3
+ "version": "1.12.0-snapshot-20240704104329",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",