@mercurjs/types 2.0.0-canary.9 → 2.0.0-canary.91

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.
@@ -0,0 +1,16 @@
1
+ export type BaseField = {
2
+ type: 'string' | 'text' | 'integer' | 'boolean' | 'date' | 'time' | 'datetime' | 'json' | 'array' | 'float';
3
+ nullable?: boolean;
4
+ defaultValue?: any;
5
+ };
6
+ export type EnumField = Omit<BaseField, 'type'> & {
7
+ type: 'enum';
8
+ enum: string[];
9
+ };
10
+ export type Field = BaseField | EnumField;
11
+ export type CustomFieldsModuleOptions = {
12
+ customFields?: {
13
+ [K in string]?: Record<string, Field>;
14
+ };
15
+ };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-fields/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACpB,IAAI,EAAE,QAAQ,GACZ,MAAM,GACN,SAAS,GACT,SAAS,GACT,MAAM,GACN,MAAM,GACN,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB,CAAA;AAED,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,SAAS,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG;IAAE,YAAY,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;KAAE,CAAA;CAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export type ServingMode = "vite-proxy" | "static" | "default-page";
2
+ export interface DashboardModuleOptions {
3
+ disable?: boolean;
4
+ name: string;
5
+ path: string;
6
+ appDir: string;
7
+ viteDevServerPort?: number;
8
+ viteDevServerHost?: string;
9
+ }
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboard/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,QAAQ,GAAG,cAAc,CAAA;AAElE,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { PaginatedResponse, ProductDTO, ProductVariantDTO } from "@medusajs/types";
1
+ import { PaginatedResponse, ProductDTO, ProductVariantDTO, SalesChannelDTO } from "@medusajs/types";
2
2
  export interface VendorProductResponse {
3
3
  /**
4
4
  * The product's details.
@@ -37,4 +37,7 @@ export interface VendorDeleteResponse {
37
37
  */
38
38
  deleted: boolean;
39
39
  }
40
+ export interface VendorProduct extends ProductDTO {
41
+ sales_channels?: SalesChannelDTO[];
42
+ }
40
43
  //# sourceMappingURL=product.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/http/product.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,U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c,CAAC,EAAE,eAAe,EAAE,CAAC;CACpC"}
package/dist/index.d.ts CHANGED
@@ -5,4 +5,6 @@ export * from "./commission";
5
5
  export * as HttpTypes from "./http";
6
6
  export * from "./payout";
7
7
  export * from "./modules";
8
+ export * from "./custom-fields";
9
+ export * from "./dashboard";
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAG/B,cAAc,UAAU,CAAA;AAGxB,cAAc,eAAe,CAAA;AAG7B,cAAc,cAAc,CAAA;AAG5B,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AAGnC,cAAc,UAAU,CAAA;AAGxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAG/B,cAAc,UAAU,CAAA;AAGxB,cAAc,eAAe,CAAA;AAG7B,cAAc,cAAc,CAAA;AAG5B,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AAGnC,cAAc,UAAU,CAAA;AAGxB,cAAc,WAAW,CAAA;AAGzB,cAAc,iBAAiB,CAAA;AAG/B,cAAc,aAAa,CAAA"}
package/dist/index.js CHANGED
@@ -50,3 +50,7 @@ exports.HttpTypes = __importStar(require("./http"));
50
50
  __exportStar(require("./payout"), exports);
51
51
  // Modules
52
52
  __exportStar(require("./modules"), exports);
53
+ // Custom fields types
54
+ __exportStar(require("./custom-fields"), exports);
55
+ // UI types
56
+ __exportStar(require("./dashboard"), exports);
package/dist/modules.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  export declare enum MercurModules {
2
2
  SELLER = "seller",
3
3
  COMMISSION = "commission",
4
- PAYOUT = "payout"
4
+ PAYOUT = "payout",
5
+ CUSTOM_FIELDS = "custom_fields",
6
+ VENDOR_UI = "vendor_ui",
7
+ ADMIN_UI = "admin_ui",
8
+ CODEGEN = "codegen"
5
9
  }
6
10
  //# sourceMappingURL=modules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;CACpB"}
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACtB"}
package/dist/modules.js CHANGED
@@ -6,4 +6,8 @@ var MercurModules;
6
6
  MercurModules["SELLER"] = "seller";
7
7
  MercurModules["COMMISSION"] = "commission";
8
8
  MercurModules["PAYOUT"] = "payout";
9
+ MercurModules["CUSTOM_FIELDS"] = "custom_fields";
10
+ MercurModules["VENDOR_UI"] = "vendor_ui";
11
+ MercurModules["ADMIN_UI"] = "admin_ui";
12
+ MercurModules["CODEGEN"] = "codegen";
9
13
  })(MercurModules || (exports.MercurModules = MercurModules = {}));
@@ -1,5 +1,6 @@
1
1
  export type OrderGroupDTO = {
2
2
  id: string;
3
+ display_id: number;
3
4
  customer_id: string | null;
4
5
  cart_id: string;
5
6
  seller_count: number;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/order-group/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB,CAAA"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/order-group/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/types",
3
- "version": "2.0.0-canary.9",
3
+ "version": "2.0.0-canary.91",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -25,7 +25,7 @@
25
25
  "dev": "tsc --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@medusajs/types": "2.13.0"
28
+ "@medusajs/types": "2.13.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "5.9.3"