@mercurjs/types 2.1.6 → 2.2.0-canary.11

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.
Files changed (58) hide show
  1. package/dist/feature-flags/index.d.ts +2 -1
  2. package/dist/feature-flags/index.d.ts.map +1 -1
  3. package/dist/feature-flags/index.js +1 -0
  4. package/dist/http/index.d.ts +4 -1
  5. package/dist/http/index.d.ts.map +1 -1
  6. package/dist/http/index.js +2 -1
  7. package/dist/http/offer.d.ts +67 -0
  8. package/dist/http/offer.d.ts.map +1 -0
  9. package/dist/http/product-attribute.d.ts +16 -0
  10. package/dist/http/product-attribute.d.ts.map +1 -0
  11. package/dist/http/product-category.d.ts +9 -10
  12. package/dist/http/product-category.d.ts.map +1 -1
  13. package/dist/http/product.d.ts +15 -3
  14. package/dist/http/product.d.ts.map +1 -1
  15. package/dist/index.d.ts +3 -2
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +20 -5
  18. package/dist/modules.d.ts +4 -4
  19. package/dist/modules.d.ts.map +1 -1
  20. package/dist/modules.js +3 -3
  21. package/dist/offer/common.d.ts +61 -0
  22. package/dist/offer/common.d.ts.map +1 -0
  23. package/dist/offer/index.d.ts.map +1 -0
  24. package/dist/offer/mutations.d.ts +114 -0
  25. package/dist/offer/mutations.d.ts.map +1 -0
  26. package/dist/offer/mutations.js +9 -0
  27. package/dist/product/common.d.ts +163 -0
  28. package/dist/product/common.d.ts.map +1 -0
  29. package/dist/product/common.js +52 -0
  30. package/dist/product/index.d.ts +3 -0
  31. package/dist/product/index.d.ts.map +1 -0
  32. package/dist/{subscription → product}/index.js +1 -1
  33. package/dist/product/mutations.d.ts +127 -0
  34. package/dist/product/mutations.d.ts.map +1 -0
  35. package/dist/product/status.d.ts +19 -0
  36. package/dist/product/status.d.ts.map +1 -0
  37. package/dist/product/status.js +19 -0
  38. package/package.json +5 -1
  39. package/dist/attribute/common.d.ts +0 -79
  40. package/dist/attribute/common.d.ts.map +0 -1
  41. package/dist/attribute/common.js +0 -16
  42. package/dist/attribute/index.d.ts.map +0 -1
  43. package/dist/attribute/mutations.d.ts +0 -99
  44. package/dist/attribute/mutations.d.ts.map +0 -1
  45. package/dist/http/subscription.d.ts +0 -18
  46. package/dist/http/subscription.d.ts.map +0 -1
  47. package/dist/subscription/common.d.ts +0 -27
  48. package/dist/subscription/common.d.ts.map +0 -1
  49. package/dist/subscription/index.d.ts +0 -3
  50. package/dist/subscription/index.d.ts.map +0 -1
  51. package/dist/subscription/mutation.d.ts +0 -33
  52. package/dist/subscription/mutation.d.ts.map +0 -1
  53. /package/dist/{attribute/mutations.js → http/offer.js} +0 -0
  54. /package/dist/http/{subscription.js → product-attribute.js} +0 -0
  55. /package/dist/{subscription → offer}/common.js +0 -0
  56. /package/dist/{attribute → offer}/index.d.ts +0 -0
  57. /package/dist/{attribute → offer}/index.js +0 -0
  58. /package/dist/{subscription/mutation.js → product/mutations.js} +0 -0
@@ -1,4 +1,5 @@
1
1
  export declare enum MercurFeatureFlags {
2
- SELLER_REGISTRATION = "seller_registration"
2
+ SELLER_REGISTRATION = "seller_registration",
3
+ PRODUCT_REQUEST = "product_request"
3
4
  }
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/feature-flags/index.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,mBAAmB,wBAAwB;CAC5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/feature-flags/index.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;CACpC"}
@@ -4,4 +4,5 @@ exports.MercurFeatureFlags = void 0;
4
4
  var MercurFeatureFlags;
5
5
  (function (MercurFeatureFlags) {
6
6
  MercurFeatureFlags["SELLER_REGISTRATION"] = "seller_registration";
7
+ MercurFeatureFlags["PRODUCT_REQUEST"] = "product_request";
7
8
  })(MercurFeatureFlags || (exports.MercurFeatureFlags = MercurFeatureFlags = {}));
@@ -14,6 +14,7 @@ export * from "./price-list";
14
14
  export * from "./price-preference";
15
15
  export * from "./product";
16
16
  export * from "./promotion";
17
+ export * from "./product-attribute";
17
18
  export * from "./product-category";
18
19
  export * from "./product-tag";
19
20
  export * from "./product-type";
@@ -26,7 +27,9 @@ export * from "./shipping-option-type";
26
27
  export * from "./shipping-profile";
27
28
  export * from "./stock-location";
28
29
  export * from "./payout";
30
+ export * from "./offer";
29
31
  export * from "./commission";
30
- export * from "./subscription";
32
+ export { AdminProductResponse, AdminProductListResponse, AdminProductDeleteResponse, AdminProductVariantResponse, AdminProductVariantListResponse, } from "./product";
33
+ export { AdminProductCategoryResponse, AdminProductCategoryListResponse, AdminProductCategoryDeleteResponse, } from "./product-category";
31
34
  export { StoreCompleteCartResponse } from "./order-group";
32
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAE9D,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,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wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,kCAAkC,GACnC,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA"}
@@ -32,6 +32,7 @@ __exportStar(require("./price-list"), exports);
32
32
  __exportStar(require("./price-preference"), exports);
33
33
  __exportStar(require("./product"), exports);
34
34
  __exportStar(require("./promotion"), exports);
35
+ __exportStar(require("./product-attribute"), exports);
35
36
  __exportStar(require("./product-category"), exports);
36
37
  __exportStar(require("./product-tag"), exports);
37
38
  __exportStar(require("./product-type"), exports);
@@ -44,5 +45,5 @@ __exportStar(require("./shipping-option-type"), exports);
44
45
  __exportStar(require("./shipping-profile"), exports);
45
46
  __exportStar(require("./stock-location"), exports);
46
47
  __exportStar(require("./payout"), exports);
48
+ __exportStar(require("./offer"), exports);
47
49
  __exportStar(require("./commission"), exports);
48
- __exportStar(require("./subscription"), exports);
@@ -0,0 +1,67 @@
1
+ import { DeleteResponse, PaginatedResponse } from "@medusajs/types";
2
+ import { CreateOfferInventoryItemDTO, CreateOfferPriceDTO, OfferDTO, UpsertOfferPriceDTO } from "../offer";
3
+ /**
4
+ * Body for `POST /vendor/offers`. `seller_id` and `created_by` are not part
5
+ * of the public payload — they are derived from the authenticated session
6
+ * before the create workflow runs.
7
+ */
8
+ export interface VendorCreateOfferReq {
9
+ sku: string;
10
+ variant_id: string;
11
+ shipping_profile_id: string;
12
+ inventory_items: CreateOfferInventoryItemDTO[];
13
+ prices: CreateOfferPriceDTO[];
14
+ metadata?: Record<string, unknown> | null;
15
+ }
16
+ /**
17
+ * Body for `POST /vendor/offers/:id`. Setting `prices` rewrites the offer's
18
+ * `PriceSet` with replace semantics; omit it to leave the ladder untouched.
19
+ */
20
+ export interface VendorUpdateOfferReq {
21
+ sku?: string;
22
+ shipping_profile_id?: string;
23
+ metadata?: Record<string, unknown> | null;
24
+ prices?: UpsertOfferPriceDTO[];
25
+ }
26
+ /**
27
+ * Body for `POST /vendor/offers/:id/inventory-items/batch`. The
28
+ * combination of `create`, `update`, and `delete` is applied in one call;
29
+ * inventory ids are required to be unique across the three buckets.
30
+ */
31
+ export interface VendorBatchOfferInventoryItemsReq {
32
+ create?: Array<{
33
+ inventory_item_id: string;
34
+ required_quantity?: number;
35
+ }>;
36
+ update?: Array<{
37
+ inventory_item_id: string;
38
+ required_quantity: number;
39
+ }>;
40
+ delete?: string[];
41
+ }
42
+ export interface VendorOfferResponse {
43
+ offer: OfferDTO;
44
+ }
45
+ export type VendorOfferListResponse = PaginatedResponse<{
46
+ offers: OfferDTO[];
47
+ }>;
48
+ export type VendorOfferDeleteResponse = DeleteResponse<"offer">;
49
+ /**
50
+ * Response shape of `POST /vendor/offers/:id/inventory-items/batch`. The
51
+ * `created`/`updated`/`deleted` arrays mirror the
52
+ * `AdminProductVariantInventoryBatchResponse` shape; the refetched `offer`
53
+ * is included so the client does not need a follow-up GET.
54
+ */
55
+ export interface VendorBatchOfferInventoryItemsResponse {
56
+ created: unknown[];
57
+ updated: unknown[];
58
+ deleted: string[];
59
+ offer: OfferDTO;
60
+ }
61
+ export interface AdminOfferResponse {
62
+ offer: OfferDTO;
63
+ }
64
+ export type AdminOfferListResponse = PaginatedResponse<{
65
+ offers: OfferDTO[];
66
+ }>;
67
+ //# sourceMappingURL=offer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["../../src/http/offer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,QAAQ,EACR,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAQjB;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,E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;IACjC,KAAK,EAAE,QAAQ,CAAA;CAChB;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { DeleteResponse, PaginatedResponse } from "@medusajs/types";
2
+ import { ProductAttributeDTO } from "../product/common";
3
+ export interface AdminProductAttributeResponse {
4
+ product_attribute: ProductAttributeDTO;
5
+ }
6
+ export type AdminProductAttributeListResponse = PaginatedResponse<{
7
+ product_attributes: ProductAttributeDTO[];
8
+ }>;
9
+ export type AdminProductAttributeDeleteResponse = DeleteResponse<"product_attribute">;
10
+ export interface VendorProductAttributeResponse {
11
+ product_attribute: ProductAttributeDTO;
12
+ }
13
+ export type VendorProductAttributeListResponse = PaginatedResponse<{
14
+ product_attributes: ProductAttributeDTO[];
15
+ }>;
16
+ //# sourceMappingURL=product-attribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-attribute.d.ts","sourceRoot":"","sources":["../../src/http/product-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAEvD,MAAM,WAAW,6BAA6B;IAC5C,iBAAiB,EAAE,mBAAmB,CAAA;CACvC;AAED,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;IAChE,kBAAkB,EAAE,mBAAmB,EAAE,CAAA;CAC1C,CAAC,CAAA;AAEF,MAAM,MAAM,mCAAmC,GAC7C,cAAc,CAAC,mBAAmB,CAAC,CAAA;AAErC,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,EAAE,mBAAmB,CAAA;CACvC;AAED,MAAM,MAAM,kCAAkC,GAAG,iBAAiB,CAAC;IACjE,kBAAkB,EAAE,mBAAmB,EAAE,CAAA;CAC1C,CAAC,CAAA"}
@@ -1,20 +1,19 @@
1
- import { PaginatedResponse, ProductCategoryDTO, ProductDTO } from "@medusajs/types";
1
+ import { DeleteResponse, PaginatedResponse } from "@medusajs/types";
2
+ import { ProductCategoryDTO, ProductDTO } from "../product/common";
3
+ export interface AdminProductCategoryResponse {
4
+ product_category: ProductCategoryDTO;
5
+ }
6
+ export type AdminProductCategoryListResponse = PaginatedResponse<{
7
+ product_categories: ProductCategoryDTO[];
8
+ }>;
9
+ export type AdminProductCategoryDeleteResponse = DeleteResponse<"product_category">;
2
10
  export interface VendorProductCategoryResponse {
3
- /**
4
- * The product category's details.
5
- */
6
11
  product_category: ProductCategoryDTO;
7
12
  }
8
13
  export type VendorProductCategoryListResponse = PaginatedResponse<{
9
- /**
10
- * The list of product categories.
11
- */
12
14
  product_categories: ProductCategoryDTO[];
13
15
  }>;
14
16
  export type VendorProductCategoryProductsResponse = PaginatedResponse<{
15
- /**
16
- * The list of products in the category.
17
- */
18
17
  products: ProductDTO[];
19
18
  }>;
20
19
  //# sourceMappingURL=product-category.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/http/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEnF,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,gBAAgB,EAAE,kBAAkB,CAAA;CACrC;AAED,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;IAChE;;OAEG;IACH,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;CACzC,CAAC,CAAA;AAEF,MAAM,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;IACpE;;OAEG;IACH,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAC,CAAA"}
1
+ {"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/http/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAElE,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,kBAAkB,CAAA;CACrC;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;CACzC,CAAC,CAAA;AAEF,MAAM,MAAM,kCAAkC,GAC5C,cAAc,CAAC,kBAAkB,CAAC,CAAA;AAEpC,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,EAAE,kBAAkB,CAAA;CACrC;AAED,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;IAChE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;CACzC,CAAC,CAAA;AAEF,MAAM,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;IACpE,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAC,CAAA"}
@@ -1,4 +1,18 @@
1
- import { PaginatedResponse, ProductDTO, ProductVariantDTO, SalesChannelDTO } from "@medusajs/types";
1
+ import { DeleteResponse, PaginatedResponse, SalesChannelDTO } from "@medusajs/types";
2
+ import { ProductDTO, ProductVariantDTO } from "../product/common";
3
+ export interface AdminProductResponse {
4
+ product: ProductDTO;
5
+ }
6
+ export type AdminProductListResponse = PaginatedResponse<{
7
+ products: ProductDTO[];
8
+ }>;
9
+ export type AdminProductDeleteResponse = DeleteResponse<"product">;
10
+ export interface AdminProductVariantResponse {
11
+ variant: ProductVariantDTO;
12
+ }
13
+ export type AdminProductVariantListResponse = PaginatedResponse<{
14
+ variants: ProductVariantDTO[];
15
+ }>;
2
16
  export interface VendorProductResponse {
3
17
  /**
4
18
  * The product's details.
@@ -39,7 +53,5 @@ export interface VendorDeleteResponse {
39
53
  }
40
54
  export interface VendorProduct extends ProductDTO {
41
55
  sales_channels?: SalesChannelDTO[];
42
- informational_attributes?: import("../attribute").InformationalAttributeDTO[];
43
- variation_attributes?: import("../attribute").InformationalAttributeDTO[];
44
56
  }
45
57
  //# 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,EACjB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AAExB,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD;;OAEG;IACH,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAA;CAC3B;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D;;OAEG;IACH,QAAQ,EAAE,iBAAiB,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,wBAAwB,CAAC,EAAE,OAAO,cAAc,EAAE,yBAAyB,EAAE,CAAC;IAC9E,oBAAoB,CAAC,EAAE,OAAO,cAAc,EAAE,yBAAyB,EAAE,CAAC;CAC3E"}
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/http/product.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAEjE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,MAAM,MAAM,0BAA0B,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAElE,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,iBAAiB,CAAA;CAC3B;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D,QAAQ,EAAE,iBAAiB,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD;;OAEG;IACH,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAA;CAC3B;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D;;OAEG;IACH,QAAQ,EAAE,iBAAiB,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;CACpC"}
package/dist/index.d.ts CHANGED
@@ -3,9 +3,10 @@ export * from "./seller";
3
3
  export * from "./order-group";
4
4
  export * from "./commission";
5
5
  export * as HttpTypes from "./http";
6
- export * from "./subscription";
7
6
  export * from "./payout";
8
- export * from "./attribute";
7
+ export * from "./offer";
8
+ export { ProductStatus } from "./product/status";
9
+ export { AttributeType, ProductChangeStatus, ProductChangeActionType, type ProductDTO, type ProductVariantDTO, type ProductCategoryDTO, type ProductAttributeDTO, type ProductAttributeValueDTO, type ProductChangeDTO, type ProductChangeActionDTO, type CreateProductDTO, type UpdateProductDTO, type CreateProductVariantDTO, type CreateProductAttributeDTO, type UpdateProductAttributeDTO, type CreateProductAttributeValueDTO, type UpdateProductAttributeValueDTO, type UpsertProductAttributeValueDTO, type ProductAttributeInputDTO, type CreateProductChangeDTO, type CreateProductChangeActionDTO, } from "./product";
9
10
  export * from "./modules";
10
11
  export * from "./custom-fields";
11
12
  export * from "./dashboard";
@@ -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,gBAAgB,CAAA;AAG9B,cAAc,UAAU,CAAA;AAGxB,cAAc,aAAa,CAAA;AAG3B,cAAc,WAAW,CAAA;AAGzB,cAAc,iBAAiB,CAAA;AAG/B,cAAc,aAAa,CAAA;AAG3B,cAAc,iBAAiB,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,SAAS,CAAA;AAavB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,GAClC,MAAM,WAAW,CAAA;AAGlB,cAAc,WAAW,CAAA;AAGzB,cAAc,iBAAiB,CAAA;AAG/B,cAAc,aAAa,CAAA;AAG3B,cAAc,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.HttpTypes = void 0;
39
+ exports.ProductChangeActionType = exports.ProductChangeStatus = exports.AttributeType = exports.ProductStatus = exports.HttpTypes = void 0;
40
40
  __exportStar(require("@medusajs/types"), exports);
41
41
  // Seller types
42
42
  __exportStar(require("./seller"), exports);
@@ -46,12 +46,27 @@ __exportStar(require("./order-group"), exports);
46
46
  __exportStar(require("./commission"), exports);
47
47
  // HTTP types
48
48
  exports.HttpTypes = __importStar(require("./http"));
49
- // Subscription types
50
- __exportStar(require("./subscription"), exports);
51
49
  // Payout types
52
50
  __exportStar(require("./payout"), exports);
53
- // Attribute types
54
- __exportStar(require("./attribute"), exports);
51
+ // Offer types
52
+ __exportStar(require("./offer"), exports);
53
+ // Product types — explicit re-export overrides Medusa's product surface.
54
+ // Mercur's runtime enums and Mercur-extended DTOs (Omit + intersection over
55
+ // upstream) win over the wholesale `export * from "@medusajs/types"` above.
56
+ // Types upstream declares verbatim (ProductImageDTO, ProductTypeDTO,
57
+ // ProductTagDTO, ProductCollectionDTO, etc.) come through the wholesale
58
+ // re-export unchanged.
59
+ // `ProductStatus` is Medusa's `"draft" | "proposed" | "published" |
60
+ // "rejected"` union. The matching runtime const is co-exported so
61
+ // consumers can keep doing `ProductStatus.PUBLISHED`-style access.
62
+ // `requires_action` is no longer a product status — it's a computed
63
+ // boolean derived from `ProductChange`.
64
+ var status_1 = require("./product/status");
65
+ Object.defineProperty(exports, "ProductStatus", { enumerable: true, get: function () { return status_1.ProductStatus; } });
66
+ var product_1 = require("./product");
67
+ Object.defineProperty(exports, "AttributeType", { enumerable: true, get: function () { return product_1.AttributeType; } });
68
+ Object.defineProperty(exports, "ProductChangeStatus", { enumerable: true, get: function () { return product_1.ProductChangeStatus; } });
69
+ Object.defineProperty(exports, "ProductChangeActionType", { enumerable: true, get: function () { return product_1.ProductChangeActionType; } });
55
70
  // Modules
56
71
  __exportStar(require("./modules"), exports);
57
72
  // Custom fields types
package/dist/modules.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export declare enum MercurModules {
2
2
  SELLER = "seller",
3
- SUBSCRIPTION = "subscription",
4
3
  COMMISSION = "commission",
5
4
  PAYOUT = "payout",
5
+ OFFER = "offer",
6
+ PRODUCT_ATTRIBUTE = "product_attribute",
7
+ PRODUCT_EDIT = "product_edit",
6
8
  CUSTOM_FIELDS = "custom_fields",
7
9
  VENDOR_UI = "vendor_ui",
8
10
  ADMIN_UI = "admin_ui",
9
- CODEGEN = "codegen",
10
- ATTRIBUTE = "attribute",
11
- VENDOR_PRODUCT_ATTRIBUTE = "vendor_product_attribute"
11
+ CODEGEN = "codegen"
12
12
  }
13
13
  //# 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,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,wBAAwB,6BAA6B;CACxD"}
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,KAAK,UAAU;IACf,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACtB"}
package/dist/modules.js CHANGED
@@ -4,13 +4,13 @@ exports.MercurModules = void 0;
4
4
  var MercurModules;
5
5
  (function (MercurModules) {
6
6
  MercurModules["SELLER"] = "seller";
7
- MercurModules["SUBSCRIPTION"] = "subscription";
8
7
  MercurModules["COMMISSION"] = "commission";
9
8
  MercurModules["PAYOUT"] = "payout";
9
+ MercurModules["OFFER"] = "offer";
10
+ MercurModules["PRODUCT_ATTRIBUTE"] = "product_attribute";
11
+ MercurModules["PRODUCT_EDIT"] = "product_edit";
10
12
  MercurModules["CUSTOM_FIELDS"] = "custom_fields";
11
13
  MercurModules["VENDOR_UI"] = "vendor_ui";
12
14
  MercurModules["ADMIN_UI"] = "admin_ui";
13
15
  MercurModules["CODEGEN"] = "codegen";
14
- MercurModules["ATTRIBUTE"] = "attribute";
15
- MercurModules["VENDOR_PRODUCT_ATTRIBUTE"] = "vendor_product_attribute";
16
16
  })(MercurModules || (exports.MercurModules = MercurModules = {}));
@@ -0,0 +1,61 @@
1
+ import { InventoryItemDTO, MoneyAmountDTO } from "@medusajs/types";
2
+ /**
3
+ * One row on the offer's inventory-item link, resolved through the writable
4
+ * `offer ↔ inventory_item` link defined in
5
+ * `packages/core/src/links/offer-inventory-item-link.ts`. The link table
6
+ * exposes `required_quantity` as an extra column, so the link row is the
7
+ * authoritative source for that field; the joined `inventory` is the underlying
8
+ * Medusa `InventoryItem`.
9
+ */
10
+ export interface OfferInventoryItemLinkDTO {
11
+ inventory_item_id: string;
12
+ required_quantity: number;
13
+ inventory?: InventoryItemDTO;
14
+ }
15
+ /**
16
+ * One row on the offer's price ladder, surfaced through the writable
17
+ * `offer ↔ price` list-link in
18
+ * `packages/core/src/links/offer-price-link.ts`. The offer's prices live on
19
+ * the master variant's shared `PriceSet`, scoped by an `offer_id` `PriceRule`
20
+ * on each row — but the offer-side reads go through the list-link pivot so
21
+ * `offer.prices: Price[]` resolves in a single Query traversal.
22
+ */
23
+ export type OfferPriceDTO = MoneyAmountDTO;
24
+ /**
25
+ * The marketplace's per-vendor sellable. An offer is the thin marketplace-side
26
+ * record that points at a Medusa `ProductVariant` (which owns the shared
27
+ * `PriceSet`) and links to one or more Medusa `InventoryItem` rows. The base
28
+ * columns (`seller_id`, `variant_id`, `shipping_profile_id`, `sku`, `ean`,
29
+ * `upc`, `created_by`, `metadata`) live on the `offer` table; the optional
30
+ * `variant` / `seller` / `shipping_profile` / `prices` / `inventory_items`
31
+ * relations are joined through module links and only present when the
32
+ * consumer requested those fields.
33
+ */
34
+ export interface OfferDTO {
35
+ id: string;
36
+ seller_id: string;
37
+ variant_id: string;
38
+ shipping_profile_id: string;
39
+ sku: string;
40
+ ean: string | null;
41
+ upc: string | null;
42
+ created_by: string;
43
+ metadata: Record<string, unknown> | null;
44
+ created_at: Date;
45
+ updated_at: Date;
46
+ deleted_at: Date | null;
47
+ /**
48
+ * Joined through the writable `offer ↔ price` list-link defined in
49
+ * `packages/core/src/links/offer-price-link.ts`. Carries the offer's
50
+ * Price rows on the variant's shared `PriceSet` (filtered by the
51
+ * `offer_id` `PriceRule` Mercur stamps on every offer-owned row).
52
+ */
53
+ prices?: OfferPriceDTO[];
54
+ /**
55
+ * Joined through the writable `offer ↔ inventory_item` link. Each row
56
+ * carries the link's `required_quantity` plus the underlying
57
+ * `InventoryItem` when requested.
58
+ */
59
+ inventory_items?: OfferInventoryItemLinkDTO[];
60
+ }
61
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/offer/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAElE;;;;;;;GAOG;AACH,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAC7B;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C;;;;;;;;;GASG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE,yBAAyB,EAAE,CAAA;CAC9C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Mutation contracts for the offer module + workflows. Shared between
3
+ * `packages/core/src/workflows/offer/{steps,workflows}` and the HTTP
4
+ * validators / route handlers that drive them. Mirrors the shape Medusa's
5
+ * own product/pricing workflows use so external consumers (block packages,
6
+ * the typed `@mercurjs/client`) can target the same DTOs.
7
+ */
8
+ /**
9
+ * One entry on a new offer's `inventory_items` array. Each entry
10
+ * describes a brand-new `InventoryItem` to create and link to the offer
11
+ * in the same workflow run. `sku` defaults to the offer's SKU, `title`
12
+ * defaults to the resolved SKU. `required_quantity` defaults to `1` on
13
+ * persistence.
14
+ */
15
+ export interface CreateOfferInventoryItemDTO {
16
+ required_quantity?: number;
17
+ title?: string;
18
+ sku?: string;
19
+ stock_levels?: Array<{
20
+ location_id: string;
21
+ stocked_quantity: number;
22
+ }>;
23
+ }
24
+ /**
25
+ * One row on a new offer's price ladder. Identical in shape to Medusa's
26
+ * `CreatePriceDTO` so it can be threaded into `createPriceSetsStep` without
27
+ * a re-projection.
28
+ */
29
+ export interface CreateOfferPriceDTO {
30
+ amount: number;
31
+ currency_code: string;
32
+ min_quantity?: number | null;
33
+ max_quantity?: number | null;
34
+ rules?: Record<string, string>;
35
+ }
36
+ /**
37
+ * One row on an existing offer's price ladder when updating. `id` is set for
38
+ * rows that should be updated in place; rows without `id` are added; existing
39
+ * rows omitted from the array are deleted (replace semantics, mirroring
40
+ * Medusa's `updateProductVariantsWorkflow` → `updatePriceSetsStep`).
41
+ */
42
+ export interface UpsertOfferPriceDTO extends CreateOfferPriceDTO {
43
+ id?: string;
44
+ }
45
+ /**
46
+ * Input to `createOffersWorkflow`. `seller_id` and `created_by` are stamped
47
+ * by the route handler from the authenticated session and are not part of
48
+ * the public HTTP body.
49
+ *
50
+ * Each `inventory_items[]` entry describes a new inventory item to
51
+ * create (with optional starting `stock_levels`) and link to the offer
52
+ * in the same workflow run. Offers must have at least one entry.
53
+ */
54
+ export interface CreateOfferDTO {
55
+ seller_id: string;
56
+ created_by: string;
57
+ sku: string;
58
+ variant_id: string;
59
+ shipping_profile_id: string;
60
+ inventory_items: CreateOfferInventoryItemDTO[];
61
+ prices: CreateOfferPriceDTO[];
62
+ ean?: string | null;
63
+ upc?: string | null;
64
+ metadata?: Record<string, unknown> | null;
65
+ }
66
+ /**
67
+ * Persisted offer-row input — the projection that
68
+ * `createOffersWorkflow` hands to `createOffersStep`. The offer's price
69
+ * ladder lives on the master variant's shared `PriceSet`, scoped by the
70
+ * `offer_id` `PriceRule` Mercur stamps on every offer-owned row, so the
71
+ * offer row itself no longer carries a `price_set_id`. `ean` / `upc` are
72
+ * snapshotted off the linked `ProductVariant`.
73
+ */
74
+ export interface CreateOfferRowDTO {
75
+ seller_id: string;
76
+ variant_id: string;
77
+ shipping_profile_id: string;
78
+ sku: string;
79
+ ean: string | null;
80
+ upc: string | null;
81
+ created_by: string;
82
+ metadata?: Record<string, unknown> | null;
83
+ }
84
+ /**
85
+ * Input to `updateOffersWorkflow`. Each entry is keyed by `id`; setting the
86
+ * `prices` field rewrites the offer's `PriceSet` with replace semantics,
87
+ * omitting it leaves the price ladder untouched. Offer-row fields
88
+ * (`sku`, `shipping_profile_id`, `metadata`) are partial.
89
+ */
90
+ export interface UpdateOfferDTO {
91
+ id: string;
92
+ sku?: string;
93
+ shipping_profile_id?: string;
94
+ metadata?: Record<string, unknown> | null;
95
+ prices?: UpsertOfferPriceDTO[];
96
+ }
97
+ /**
98
+ * Input to `batchOfferInventoryItemsWorkflow`. Mirrors the shape Medusa's
99
+ * own inventory-batch endpoints use. Items in `update` and `delete` must
100
+ * already be linked to the offer; items in `create` must not.
101
+ */
102
+ export interface BatchOfferInventoryItemsDTO {
103
+ offer_id: string;
104
+ create?: Array<{
105
+ inventory_item_id: string;
106
+ required_quantity?: number;
107
+ }>;
108
+ update?: Array<{
109
+ inventory_item_id: string;
110
+ required_quantity: number;
111
+ }>;
112
+ delete?: string[];
113
+ }
114
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/offer/mutations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,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AAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACzC,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;QACb,iBAAiB,EAAE,MAAM,CAAA;QACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAC3B,CAAC,CAAA;IACF,MAAM,CAAC,EAAE,KAAK,CAAC;QACb,iBAAiB,EAAE,MAAM,CAAA;QACzB,iBAAiB,EAAE,MAAM,CAAA;KAC1B,CAAC,CAAA;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Mutation contracts for the offer module + workflows. Shared between
4
+ * `packages/core/src/workflows/offer/{steps,workflows}` and the HTTP
5
+ * validators / route handlers that drive them. Mirrors the shape Medusa's
6
+ * own product/pricing workflows use so external consumers (block packages,
7
+ * the typed `@mercurjs/client`) can target the same DTOs.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });