@mercurjs/types 2.1.2 → 2.2.0-canary.1
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.
- package/dist/feature-flags/index.d.ts +2 -1
- package/dist/feature-flags/index.d.ts.map +1 -1
- package/dist/feature-flags/index.js +1 -0
- package/dist/http/index.d.ts +5 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +3 -0
- package/dist/http/offer.d.ts +67 -0
- package/dist/http/offer.d.ts.map +1 -0
- package/dist/http/product-attribute.d.ts +16 -0
- package/dist/http/product-attribute.d.ts.map +1 -0
- package/dist/http/product-attribute.js +2 -0
- package/dist/http/product-brand.d.ts +16 -0
- package/dist/http/product-brand.d.ts.map +1 -0
- package/dist/http/product-brand.js +2 -0
- package/dist/http/product-category.d.ts +9 -10
- package/dist/http/product-category.d.ts.map +1 -1
- package/dist/http/product.d.ts +15 -3
- package/dist/http/product.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -3
- package/dist/modules.d.ts +2 -3
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +1 -2
- package/dist/offer/common.d.ts +59 -0
- package/dist/offer/common.d.ts.map +1 -0
- package/dist/offer/common.js +2 -0
- package/dist/offer/index.d.ts.map +1 -0
- package/dist/offer/mutations.d.ts +113 -0
- package/dist/offer/mutations.d.ts.map +1 -0
- package/dist/offer/mutations.js +9 -0
- package/dist/product/common.d.ts +171 -0
- package/dist/product/common.d.ts.map +1 -0
- package/dist/product/common.js +52 -0
- package/dist/product/index.d.ts +3 -0
- package/dist/product/index.d.ts.map +1 -0
- package/dist/product/index.js +18 -0
- package/dist/product/mutations.d.ts +162 -0
- package/dist/product/mutations.d.ts.map +1 -0
- package/dist/product/mutations.js +2 -0
- package/package.json +5 -1
- package/dist/attribute/common.d.ts +0 -79
- package/dist/attribute/common.d.ts.map +0 -1
- package/dist/attribute/common.js +0 -16
- package/dist/attribute/index.d.ts.map +0 -1
- package/dist/attribute/mutations.d.ts +0 -99
- package/dist/attribute/mutations.d.ts.map +0 -1
- /package/dist/{attribute/mutations.js → http/offer.js} +0 -0
- /package/dist/{attribute → offer}/index.d.ts +0 -0
- /package/dist/{attribute → offer}/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/feature-flags/index.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,mBAAmB,wBAAwB;
|
|
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 = {}));
|
package/dist/http/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ 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";
|
|
18
|
+
export * from "./product-brand";
|
|
17
19
|
export * from "./product-category";
|
|
18
20
|
export * from "./product-tag";
|
|
19
21
|
export * from "./product-type";
|
|
@@ -26,7 +28,10 @@ export * from "./shipping-option-type";
|
|
|
26
28
|
export * from "./shipping-profile";
|
|
27
29
|
export * from "./stock-location";
|
|
28
30
|
export * from "./payout";
|
|
31
|
+
export * from "./offer";
|
|
29
32
|
export * from "./commission";
|
|
30
33
|
export * from "./subscription";
|
|
34
|
+
export { AdminProductResponse, AdminProductListResponse, AdminProductDeleteResponse, AdminProductVariantResponse, AdminProductVariantListResponse, } from "./product";
|
|
35
|
+
export { AdminProductCategoryResponse, AdminProductCategoryListResponse, AdminProductCategoryDeleteResponse, } from "./product-category";
|
|
31
36
|
export { StoreCompleteCartResponse } from "./order-group";
|
|
32
37
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/http/index.d.ts.map
CHANGED
|
@@ -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,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"m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price-preference"), exports);
|
|
33
33
|
__exportStar(require("./product"), exports);
|
|
34
34
|
__exportStar(require("./promotion"), exports);
|
|
35
|
+
__exportStar(require("./product-attribute"), exports);
|
|
36
|
+
__exportStar(require("./product-brand"), exports);
|
|
35
37
|
__exportStar(require("./product-category"), exports);
|
|
36
38
|
__exportStar(require("./product-tag"), exports);
|
|
37
39
|
__exportStar(require("./product-type"), exports);
|
|
@@ -44,5 +46,6 @@ __exportStar(require("./shipping-option-type"), exports);
|
|
|
44
46
|
__exportStar(require("./shipping-profile"), exports);
|
|
45
47
|
__exportStar(require("./stock-location"), exports);
|
|
46
48
|
__exportStar(require("./payout"), exports);
|
|
49
|
+
__exportStar(require("./offer"), exports);
|
|
47
50
|
__exportStar(require("./commission"), exports);
|
|
48
51
|
__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
|
+
//# sourceMappingUR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AuB,GAAG,iBAAiB,CAAC;IACtD,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,WAAW,sCAAsC;IACrD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,EAAE,QAAQ,CAAA;CAChB;AAQD,MAAM,WAAW,kBAAkB;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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeleteResponse, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
import { ProductBrandDTO } from "../product/common";
|
|
3
|
+
export interface AdminProductBrandResponse {
|
|
4
|
+
product_brand: ProductBrandDTO;
|
|
5
|
+
}
|
|
6
|
+
export type AdminProductBrandListResponse = PaginatedResponse<{
|
|
7
|
+
product_brands: ProductBrandDTO[];
|
|
8
|
+
}>;
|
|
9
|
+
export type AdminProductBrandDeleteResponse = DeleteResponse<"product_brand">;
|
|
10
|
+
export interface VendorProductBrandResponse {
|
|
11
|
+
product_brand: ProductBrandDTO;
|
|
12
|
+
}
|
|
13
|
+
export type VendorProductBrandListResponse = PaginatedResponse<{
|
|
14
|
+
product_brands: ProductBrandDTO[];
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=product-brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-brand.d.ts","sourceRoot":"","sources":["../../src/http/product-brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,eAAe,CAAA;CAC/B;AAED,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;IAC5D,cAAc,EAAE,eAAe,EAAE,CAAA;CAClC,CAAC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC,eAAe,CAAC,CAAA;AAE7E,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,eAAe,CAAA;CAC/B;AAED,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,cAAc,EAAE,eAAe,EAAE,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
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"}
|
package/dist/http/product.d.ts
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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
|
@@ -5,7 +5,8 @@ export * from "./commission";
|
|
|
5
5
|
export * as HttpTypes from "./http";
|
|
6
6
|
export * from "./subscription";
|
|
7
7
|
export * from "./payout";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./offer";
|
|
9
|
+
export { ProductStatus, AttributeType, ProductChangeStatus, ProductChangeActionType, type ProductDTO, type ProductVariantDTO, type ProductCategoryDTO, type ProductBrandDTO, type ProductAttributeDTO, type ProductAttributeValueDTO, type ProductChangeDTO, type ProductChangeActionDTO, type MercurProductDTO, type CreateProductDTO, type UpdateProductDTO, type UpsertProductDTO, type CreateProductVariantDTO, type UpdateProductVariantDTO, type UpsertProductVariantDTO, type CreateProductCategoryDTO, type UpdateProductCategoryDTO, type CreateProductBrandDTO, type UpdateProductBrandDTO, 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";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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,SAAS,CAAA;AAQvB,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,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);
|
|
@@ -50,8 +50,19 @@ exports.HttpTypes = __importStar(require("./http"));
|
|
|
50
50
|
__exportStar(require("./subscription"), exports);
|
|
51
51
|
// Payout types
|
|
52
52
|
__exportStar(require("./payout"), exports);
|
|
53
|
-
//
|
|
54
|
-
__exportStar(require("./
|
|
53
|
+
// Offer types
|
|
54
|
+
__exportStar(require("./offer"), exports);
|
|
55
|
+
// Product types — explicit re-export overrides Medusa's product surface.
|
|
56
|
+
// Mercur's runtime enums and Mercur-extended DTOs (Omit + intersection over
|
|
57
|
+
// upstream) win over the wholesale `export * from "@medusajs/types"` above.
|
|
58
|
+
// Types upstream declares verbatim (ProductImageDTO, ProductTypeDTO,
|
|
59
|
+
// ProductTagDTO, ProductCollectionDTO, etc.) come through the wholesale
|
|
60
|
+
// re-export unchanged.
|
|
61
|
+
var product_1 = require("./product");
|
|
62
|
+
Object.defineProperty(exports, "ProductStatus", { enumerable: true, get: function () { return product_1.ProductStatus; } });
|
|
63
|
+
Object.defineProperty(exports, "AttributeType", { enumerable: true, get: function () { return product_1.AttributeType; } });
|
|
64
|
+
Object.defineProperty(exports, "ProductChangeStatus", { enumerable: true, get: function () { return product_1.ProductChangeStatus; } });
|
|
65
|
+
Object.defineProperty(exports, "ProductChangeActionType", { enumerable: true, get: function () { return product_1.ProductChangeActionType; } });
|
|
55
66
|
// Modules
|
|
56
67
|
__exportStar(require("./modules"), exports);
|
|
57
68
|
// Custom fields types
|
package/dist/modules.d.ts
CHANGED
|
@@ -3,11 +3,10 @@ export declare enum MercurModules {
|
|
|
3
3
|
SUBSCRIPTION = "subscription",
|
|
4
4
|
COMMISSION = "commission",
|
|
5
5
|
PAYOUT = "payout",
|
|
6
|
+
OFFER = "offer",
|
|
6
7
|
CUSTOM_FIELDS = "custom_fields",
|
|
7
8
|
VENDOR_UI = "vendor_ui",
|
|
8
9
|
ADMIN_UI = "admin_ui",
|
|
9
|
-
CODEGEN = "codegen"
|
|
10
|
-
ATTRIBUTE = "attribute",
|
|
11
|
-
VENDOR_PRODUCT_ATTRIBUTE = "vendor_product_attribute"
|
|
10
|
+
CODEGEN = "codegen"
|
|
12
11
|
}
|
|
13
12
|
//# sourceMappingURL=modules.d.ts.map
|
package/dist/modules.d.ts.map
CHANGED
|
@@ -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;
|
|
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,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACtB"}
|
package/dist/modules.js
CHANGED
|
@@ -7,10 +7,9 @@ var MercurModules;
|
|
|
7
7
|
MercurModules["SUBSCRIPTION"] = "subscription";
|
|
8
8
|
MercurModules["COMMISSION"] = "commission";
|
|
9
9
|
MercurModules["PAYOUT"] = "payout";
|
|
10
|
+
MercurModules["OFFER"] = "offer";
|
|
10
11
|
MercurModules["CUSTOM_FIELDS"] = "custom_fields";
|
|
11
12
|
MercurModules["VENDOR_UI"] = "vendor_ui";
|
|
12
13
|
MercurModules["ADMIN_UI"] = "admin_ui";
|
|
13
14
|
MercurModules["CODEGEN"] = "codegen";
|
|
14
|
-
MercurModules["ATTRIBUTE"] = "attribute";
|
|
15
|
-
MercurModules["VENDOR_PRODUCT_ATTRIBUTE"] = "vendor_product_attribute";
|
|
16
15
|
})(MercurModules || (exports.MercurModules = MercurModules = {}));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { InventoryItemDTO, MoneyAmountDTO, PriceSetDTO } 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 read-only
|
|
17
|
+
* `offer ↔ price_set` link in
|
|
18
|
+
* `packages/core/src/links/offer-price-set-link.ts`. The offer owns one
|
|
19
|
+
* `PriceSet`, and its prices behave like Medusa `MoneyAmount` rows — Mercur
|
|
20
|
+
* does not introduce its own price entity.
|
|
21
|
+
*/
|
|
22
|
+
export type OfferPriceDTO = MoneyAmountDTO;
|
|
23
|
+
/**
|
|
24
|
+
* The marketplace's per-vendor sellable. An offer is the thin marketplace-side
|
|
25
|
+
* record that points at a Medusa `ProductVariant`, owns a Medusa `PriceSet`,
|
|
26
|
+
* and links to one or more Medusa `InventoryItem` rows. The base columns
|
|
27
|
+
* (`seller_id`, `variant_id`, `shipping_profile_id`, `price_set_id`,
|
|
28
|
+
* `sku`, `ean`, `upc`, `created_by`, `metadata`) live on the `offer` table;
|
|
29
|
+
* the optional `variant` / `seller` / `shipping_profile` / `price_set` /
|
|
30
|
+
* `inventory_items` relations are joined through module links and only
|
|
31
|
+
* present when the consumer requested those fields.
|
|
32
|
+
*/
|
|
33
|
+
export interface OfferDTO {
|
|
34
|
+
id: string;
|
|
35
|
+
seller_id: string;
|
|
36
|
+
variant_id: string;
|
|
37
|
+
shipping_profile_id: string;
|
|
38
|
+
price_set_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 `offer-price-set-link.ts`. Carries the offer's full price
|
|
49
|
+
* ladder when the field is requested.
|
|
50
|
+
*/
|
|
51
|
+
price_set?: PriceSetDTO;
|
|
52
|
+
/**
|
|
53
|
+
* Joined through the writable `offer ↔ inventory_item` link. Each row
|
|
54
|
+
* carries the link's `required_quantity` plus the underlying
|
|
55
|
+
* `InventoryItem` when requested.
|
|
56
|
+
*/
|
|
57
|
+
inventory_items?: OfferInventoryItemLinkDTO[];
|
|
58
|
+
}
|
|
59
|
+
//# 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,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAC7B;AAED;;;;;;GAMG;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,YAAY,EAAE,MAAM,CAAA;IACpB,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;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB;;;;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,113 @@
|
|
|
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` after seeding the
|
|
69
|
+
* `PriceSet`. `ean` / `upc` are snapshotted off the linked
|
|
70
|
+
* `ProductVariant`.
|
|
71
|
+
*/
|
|
72
|
+
export interface CreateOfferRowDTO {
|
|
73
|
+
seller_id: string;
|
|
74
|
+
variant_id: string;
|
|
75
|
+
shipping_profile_id: string;
|
|
76
|
+
price_set_id: string;
|
|
77
|
+
sku: string;
|
|
78
|
+
ean: string | null;
|
|
79
|
+
upc: string | null;
|
|
80
|
+
created_by: string;
|
|
81
|
+
metadata?: Record<string, unknown> | null;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input to `updateOffersWorkflow`. Each entry is keyed by `id`; setting the
|
|
85
|
+
* `prices` field rewrites the offer's `PriceSet` with replace semantics,
|
|
86
|
+
* omitting it leaves the price ladder untouched. Offer-row fields
|
|
87
|
+
* (`sku`, `shipping_profile_id`, `metadata`) are partial.
|
|
88
|
+
*/
|
|
89
|
+
export interface UpdateOfferDTO {
|
|
90
|
+
id: string;
|
|
91
|
+
sku?: string;
|
|
92
|
+
shipping_profile_id?: string;
|
|
93
|
+
metadata?: Record<string, unknown> | null;
|
|
94
|
+
prices?: UpsertOfferPriceDTO[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Input to `batchOfferInventoryItemsWorkflow`. Mirrors the shape Medusa's
|
|
98
|
+
* own inventory-batch endpoints use. Items in `update` and `delete` must
|
|
99
|
+
* already be linked to the offer; items in `create` must not.
|
|
100
|
+
*/
|
|
101
|
+
export interface BatchOfferInventoryItemsDTO {
|
|
102
|
+
offer_id: string;
|
|
103
|
+
create?: Array<{
|
|
104
|
+
inventory_item_id: string;
|
|
105
|
+
required_quantity?: number;
|
|
106
|
+
}>;
|
|
107
|
+
update?: Array<{
|
|
108
|
+
inventory_item_id: string;
|
|
109
|
+
required_quantity: number;
|
|
110
|
+
}>;
|
|
111
|
+
delete?: string[];
|
|
112
|
+
}
|
|
113
|
+
//# 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,EAAE,MAAM,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,WAAW,EAAE,MAAM,CAAA;QACnB,gBAAgB,EAAE,MAAM,CAAA;KACzB,CAAC,CAAA;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,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AM,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 });
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { ProductDTO as UpstreamProductDTO, ProductVariantDTO as UpstreamProductVariantDTO, ProductCategoryDTO as UpstreamProductCategoryDTO, ProductImageDTO } from "@medusajs/types";
|
|
2
|
+
import { SellerDTO } from "../seller/common";
|
|
3
|
+
/**
|
|
4
|
+
* Mercur product acceptance workflow. Adds `REQUIRES_ACTION` to the
|
|
5
|
+
* upstream `draft / proposed / published / rejected` set.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum ProductStatus {
|
|
8
|
+
DRAFT = "draft",
|
|
9
|
+
PROPOSED = "proposed",
|
|
10
|
+
PUBLISHED = "published",
|
|
11
|
+
REQUIRES_ACTION = "requires_action",
|
|
12
|
+
REJECTED = "rejected"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Data types for product attributes. Determines validation rules and UI
|
|
16
|
+
* rendering.
|
|
17
|
+
*/
|
|
18
|
+
export declare enum AttributeType {
|
|
19
|
+
SINGLE_SELECT = "single_select",
|
|
20
|
+
MULTI_SELECT = "multi_select",
|
|
21
|
+
UNIT = "unit",
|
|
22
|
+
TOGGLE = "toggle",
|
|
23
|
+
TEXT = "text"
|
|
24
|
+
}
|
|
25
|
+
/** Product change lifecycle statuses. */
|
|
26
|
+
export declare enum ProductChangeStatus {
|
|
27
|
+
PENDING = "pending",
|
|
28
|
+
CONFIRMED = "confirmed",
|
|
29
|
+
DECLINED = "declined",
|
|
30
|
+
CANCELED = "canceled"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Action types for ProductChangeAction. Each action's `details` JSON carries
|
|
34
|
+
* the operation payload; `ProductModuleService.applyProductChangeActions_`
|
|
35
|
+
* dispatches based on `action`.
|
|
36
|
+
*/
|
|
37
|
+
export declare enum ProductChangeActionType {
|
|
38
|
+
STATUS_CHANGE = "STATUS_CHANGE",
|
|
39
|
+
UPDATE = "UPDATE",
|
|
40
|
+
VARIANT_ADD = "VARIANT_ADD",
|
|
41
|
+
VARIANT_UPDATE = "VARIANT_UPDATE",
|
|
42
|
+
VARIANT_REMOVE = "VARIANT_REMOVE",
|
|
43
|
+
ATTRIBUTE_ADD = "ATTRIBUTE_ADD",
|
|
44
|
+
ATTRIBUTE_REMOVE = "ATTRIBUTE_REMOVE",
|
|
45
|
+
PRODUCT_DELETE = "PRODUCT_DELETE"
|
|
46
|
+
}
|
|
47
|
+
export interface ProductBrandDTO {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
handle: string;
|
|
51
|
+
is_restricted: boolean;
|
|
52
|
+
metadata: Record<string, unknown> | null;
|
|
53
|
+
products?: ProductDTO[];
|
|
54
|
+
created_at: string | Date;
|
|
55
|
+
updated_at: string | Date;
|
|
56
|
+
deleted_at: string | Date | null;
|
|
57
|
+
}
|
|
58
|
+
export interface ProductAttributeValueDTO {
|
|
59
|
+
id: string;
|
|
60
|
+
handle: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
rank: number;
|
|
63
|
+
is_active: boolean;
|
|
64
|
+
metadata: Record<string, unknown> | null;
|
|
65
|
+
attribute?: ProductAttributeDTO;
|
|
66
|
+
attribute_id?: string;
|
|
67
|
+
variants?: ProductVariantDTO[];
|
|
68
|
+
products?: ProductDTO[];
|
|
69
|
+
created_at: string | Date;
|
|
70
|
+
updated_at: string | Date;
|
|
71
|
+
deleted_at: string | Date | null;
|
|
72
|
+
}
|
|
73
|
+
export interface ProductAttributeDTO {
|
|
74
|
+
id: string;
|
|
75
|
+
handle: string | null;
|
|
76
|
+
name: string;
|
|
77
|
+
description: string | null;
|
|
78
|
+
type: AttributeType;
|
|
79
|
+
is_required: boolean;
|
|
80
|
+
is_filterable: boolean;
|
|
81
|
+
is_variant_axis: boolean;
|
|
82
|
+
rank: number;
|
|
83
|
+
is_active: boolean;
|
|
84
|
+
created_by: string | null;
|
|
85
|
+
product_id: string | null;
|
|
86
|
+
metadata: Record<string, unknown> | null;
|
|
87
|
+
values?: ProductAttributeValueDTO[];
|
|
88
|
+
categories?: ProductCategoryDTO[];
|
|
89
|
+
variant_products?: ProductDTO[];
|
|
90
|
+
created_at: string | Date;
|
|
91
|
+
updated_at: string | Date;
|
|
92
|
+
deleted_at: string | Date | null;
|
|
93
|
+
}
|
|
94
|
+
export interface ProductChangeActionDTO {
|
|
95
|
+
id: string;
|
|
96
|
+
product_id: string;
|
|
97
|
+
product_change_id: string | null;
|
|
98
|
+
ordering: number;
|
|
99
|
+
action: string;
|
|
100
|
+
details: Record<string, unknown>;
|
|
101
|
+
internal_note: string | null;
|
|
102
|
+
applied: boolean;
|
|
103
|
+
product_change?: ProductChangeDTO;
|
|
104
|
+
created_at: string | Date;
|
|
105
|
+
updated_at: string | Date;
|
|
106
|
+
deleted_at: string | Date | null;
|
|
107
|
+
}
|
|
108
|
+
export interface ProductChangeDTO {
|
|
109
|
+
id: string;
|
|
110
|
+
product?: ProductDTO;
|
|
111
|
+
product_id?: string;
|
|
112
|
+
status: ProductChangeStatus;
|
|
113
|
+
internal_note: string | null;
|
|
114
|
+
external_note: string | null;
|
|
115
|
+
created_by: string | null;
|
|
116
|
+
confirmed_by: string | null;
|
|
117
|
+
confirmed_at: string | Date | null;
|
|
118
|
+
declined_by: string | null;
|
|
119
|
+
declined_at: string | Date | null;
|
|
120
|
+
declined_reason: string | null;
|
|
121
|
+
canceled_by: string | null;
|
|
122
|
+
canceled_at: string | Date | null;
|
|
123
|
+
metadata: Record<string, unknown> | null;
|
|
124
|
+
actions?: ProductChangeActionDTO[];
|
|
125
|
+
created_at: string | Date;
|
|
126
|
+
updated_at: string | Date;
|
|
127
|
+
deleted_at: string | Date | null;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Mercur extends `ProductCategoryDTO` with `is_restricted`. Pure addition,
|
|
131
|
+
* no field conflicts.
|
|
132
|
+
*/
|
|
133
|
+
export type ProductCategoryDTO = UpstreamProductCategoryDTO & {
|
|
134
|
+
is_restricted: boolean;
|
|
135
|
+
attributes?: ProductAttributeDTO[];
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Mercur extends `ProductVariantDTO` with `attribute_values` and Mercur's
|
|
139
|
+
* own `images` link. Upstream fields kept intact.
|
|
140
|
+
*/
|
|
141
|
+
export type ProductVariantDTO = UpstreamProductVariantDTO & {
|
|
142
|
+
attribute_values?: ProductAttributeValueDTO[];
|
|
143
|
+
images?: ProductImageDTO[];
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Mercur's `ProductDTO`. Replaces `status` (Mercur enum includes
|
|
147
|
+
* `REQUIRES_ACTION`) and drops `options`. Adds marketplace-only fields.
|
|
148
|
+
*/
|
|
149
|
+
export type ProductDTO = Omit<UpstreamProductDTO, "status" | "options"> & {
|
|
150
|
+
status: ProductStatus;
|
|
151
|
+
is_restricted: boolean;
|
|
152
|
+
created_by: string | null;
|
|
153
|
+
created_by_actor: string | null;
|
|
154
|
+
variants?: ProductVariantDTO[];
|
|
155
|
+
brand?: ProductBrandDTO | null;
|
|
156
|
+
brand_id?: string | null;
|
|
157
|
+
categories?: ProductCategoryDTO[];
|
|
158
|
+
variant_attributes?: ProductAttributeDTO[];
|
|
159
|
+
custom_attributes?: ProductAttributeDTO[];
|
|
160
|
+
attribute_values?: ProductAttributeValueDTO[];
|
|
161
|
+
attributes?: ProductAttributeDTO[];
|
|
162
|
+
sellers?: SellerDTO[];
|
|
163
|
+
changes?: ProductChangeDTO[];
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Internal alias of `ProductDTO`. Used by the `.mercur/types.d.ts` shim so
|
|
167
|
+
* consumers writing `import { ProductDTO } from "@medusajs/types"` resolve
|
|
168
|
+
* to the Mercur shape.
|
|
169
|
+
*/
|
|
170
|
+
export type MercurProductDTO = ProductDTO;
|
|
171
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/product/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,kBAAkB,EAChC,iBAAiB,IAAI,yBAAyB,EAC9C,kBAAkB,IAAI,0BAA0B,EAChD,eAAe,EAChB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAI5C;;;GAGG;AACH,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,QAAQ,aAAa;C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AO,CAAA;IACtB,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACnC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,GAAG;IAC1D,gBAAgB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC7C,MAAM,CAAC,EAAE,eAAe,EAAE,CAAA;CAC3B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,CAAC,GAAG;IACxE,MAAM,EAAE,aAAa,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC9B,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACjC,kBAAkB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC1C,iBAAiB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IACzC,gBAAgB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC7C,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAClC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;IACrB,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductChangeActionType = exports.ProductChangeStatus = exports.AttributeType = exports.ProductStatus = void 0;
|
|
4
|
+
// --- Enums ---
|
|
5
|
+
/**
|
|
6
|
+
* Mercur product acceptance workflow. Adds `REQUIRES_ACTION` to the
|
|
7
|
+
* upstream `draft / proposed / published / rejected` set.
|
|
8
|
+
*/
|
|
9
|
+
var ProductStatus;
|
|
10
|
+
(function (ProductStatus) {
|
|
11
|
+
ProductStatus["DRAFT"] = "draft";
|
|
12
|
+
ProductStatus["PROPOSED"] = "proposed";
|
|
13
|
+
ProductStatus["PUBLISHED"] = "published";
|
|
14
|
+
ProductStatus["REQUIRES_ACTION"] = "requires_action";
|
|
15
|
+
ProductStatus["REJECTED"] = "rejected";
|
|
16
|
+
})(ProductStatus || (exports.ProductStatus = ProductStatus = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Data types for product attributes. Determines validation rules and UI
|
|
19
|
+
* rendering.
|
|
20
|
+
*/
|
|
21
|
+
var AttributeType;
|
|
22
|
+
(function (AttributeType) {
|
|
23
|
+
AttributeType["SINGLE_SELECT"] = "single_select";
|
|
24
|
+
AttributeType["MULTI_SELECT"] = "multi_select";
|
|
25
|
+
AttributeType["UNIT"] = "unit";
|
|
26
|
+
AttributeType["TOGGLE"] = "toggle";
|
|
27
|
+
AttributeType["TEXT"] = "text";
|
|
28
|
+
})(AttributeType || (exports.AttributeType = AttributeType = {}));
|
|
29
|
+
/** Product change lifecycle statuses. */
|
|
30
|
+
var ProductChangeStatus;
|
|
31
|
+
(function (ProductChangeStatus) {
|
|
32
|
+
ProductChangeStatus["PENDING"] = "pending";
|
|
33
|
+
ProductChangeStatus["CONFIRMED"] = "confirmed";
|
|
34
|
+
ProductChangeStatus["DECLINED"] = "declined";
|
|
35
|
+
ProductChangeStatus["CANCELED"] = "canceled";
|
|
36
|
+
})(ProductChangeStatus || (exports.ProductChangeStatus = ProductChangeStatus = {}));
|
|
37
|
+
/**
|
|
38
|
+
* Action types for ProductChangeAction. Each action's `details` JSON carries
|
|
39
|
+
* the operation payload; `ProductModuleService.applyProductChangeActions_`
|
|
40
|
+
* dispatches based on `action`.
|
|
41
|
+
*/
|
|
42
|
+
var ProductChangeActionType;
|
|
43
|
+
(function (ProductChangeActionType) {
|
|
44
|
+
ProductChangeActionType["STATUS_CHANGE"] = "STATUS_CHANGE";
|
|
45
|
+
ProductChangeActionType["UPDATE"] = "UPDATE";
|
|
46
|
+
ProductChangeActionType["VARIANT_ADD"] = "VARIANT_ADD";
|
|
47
|
+
ProductChangeActionType["VARIANT_UPDATE"] = "VARIANT_UPDATE";
|
|
48
|
+
ProductChangeActionType["VARIANT_REMOVE"] = "VARIANT_REMOVE";
|
|
49
|
+
ProductChangeActionType["ATTRIBUTE_ADD"] = "ATTRIBUTE_ADD";
|
|
50
|
+
ProductChangeActionType["ATTRIBUTE_REMOVE"] = "ATTRIBUTE_REMOVE";
|
|
51
|
+
ProductChangeActionType["PRODUCT_DELETE"] = "PRODUCT_DELETE";
|
|
52
|
+
})(ProductChangeActionType || (exports.ProductChangeActionType = ProductChangeActionType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
18
|
+
__exportStar(require("./mutations"), exports);
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { CreateProductDTO as UpstreamCreateProductDTO, UpdateProductDTO as UpstreamUpdateProductDTO, CreateProductVariantDTO as UpstreamCreateProductVariantDTO, UpdateProductVariantDTO as UpstreamUpdateProductVariantDTO, CreateProductCategoryDTO as UpstreamCreateProductCategoryDTO, UpdateProductCategoryDTO as UpstreamUpdateProductCategoryDTO } from "@medusajs/types";
|
|
2
|
+
import { AttributeType, ProductStatus } from "./common";
|
|
3
|
+
export interface CreateProductBrandDTO {
|
|
4
|
+
name: string;
|
|
5
|
+
handle?: string;
|
|
6
|
+
is_restricted?: boolean;
|
|
7
|
+
metadata?: Record<string, unknown> | null;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateProductBrandDTO {
|
|
10
|
+
name?: string;
|
|
11
|
+
handle?: string;
|
|
12
|
+
is_restricted?: boolean;
|
|
13
|
+
metadata?: Record<string, unknown> | null;
|
|
14
|
+
}
|
|
15
|
+
export interface CreateProductAttributeValueDTO {
|
|
16
|
+
handle?: string;
|
|
17
|
+
name: string;
|
|
18
|
+
rank?: number;
|
|
19
|
+
is_active?: boolean;
|
|
20
|
+
metadata?: Record<string, unknown> | null;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateProductAttributeValueDTO {
|
|
23
|
+
handle?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
rank?: number;
|
|
26
|
+
is_active?: boolean;
|
|
27
|
+
metadata?: Record<string, unknown> | null;
|
|
28
|
+
}
|
|
29
|
+
export interface UpsertProductAttributeValueDTO extends UpdateProductAttributeValueDTO {
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface CreateProductAttributeDTO {
|
|
33
|
+
handle?: string;
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string | null;
|
|
36
|
+
type: AttributeType;
|
|
37
|
+
is_required?: boolean;
|
|
38
|
+
is_filterable?: boolean;
|
|
39
|
+
is_variant_axis?: boolean;
|
|
40
|
+
rank?: number;
|
|
41
|
+
is_active?: boolean;
|
|
42
|
+
created_by?: string | null;
|
|
43
|
+
product_id?: string | null;
|
|
44
|
+
metadata?: Record<string, unknown> | null;
|
|
45
|
+
values?: CreateProductAttributeValueDTO[];
|
|
46
|
+
}
|
|
47
|
+
export interface UpdateProductAttributeDTO {
|
|
48
|
+
handle?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
description?: string | null;
|
|
51
|
+
type?: AttributeType;
|
|
52
|
+
is_required?: boolean;
|
|
53
|
+
is_filterable?: boolean;
|
|
54
|
+
is_variant_axis?: boolean;
|
|
55
|
+
rank?: number;
|
|
56
|
+
is_active?: boolean;
|
|
57
|
+
metadata?: Record<string, unknown> | null;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Inline input for product attributes. Each entry is either:
|
|
61
|
+
*
|
|
62
|
+
* 1. A global attribute reference: `{ attribute_id, value_ids?: [...] }`
|
|
63
|
+
* Links an existing ProductAttribute. Use `value_ids` for known IDs,
|
|
64
|
+
* or `values` (names) to upsert values on the attribute.
|
|
65
|
+
*
|
|
66
|
+
* 2. An inline custom attribute: `{ name, type, values: ["Red", "Blue"] }`
|
|
67
|
+
* Creates a new ProductAttribute with `product_id` set (scoped to product).
|
|
68
|
+
*/
|
|
69
|
+
export type ProductAttributeInputDTO = {
|
|
70
|
+
attribute_id: string;
|
|
71
|
+
value_ids?: string[];
|
|
72
|
+
values?: string[];
|
|
73
|
+
} | {
|
|
74
|
+
name: string;
|
|
75
|
+
type: AttributeType;
|
|
76
|
+
values?: string[];
|
|
77
|
+
is_variant_axis?: boolean;
|
|
78
|
+
is_filterable?: boolean;
|
|
79
|
+
is_required?: boolean;
|
|
80
|
+
description?: string | null;
|
|
81
|
+
metadata?: Record<string, unknown> | null;
|
|
82
|
+
};
|
|
83
|
+
export type CreateProductCategoryDTO = UpstreamCreateProductCategoryDTO & {
|
|
84
|
+
is_restricted?: boolean;
|
|
85
|
+
};
|
|
86
|
+
export type UpdateProductCategoryDTO = UpstreamUpdateProductCategoryDTO & {
|
|
87
|
+
is_restricted?: boolean;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* `attribute_values` accepts either:
|
|
91
|
+
* - An array of `ProductAttributeValue` IDs (already resolved).
|
|
92
|
+
* - A map of attribute key (attribute `handle` or `name`) to value name(s),
|
|
93
|
+
* resolved to IDs by the service against the parent product's variant
|
|
94
|
+
* attributes.
|
|
95
|
+
*
|
|
96
|
+
* @example `["pattrval_red", "pattrval_small"]`
|
|
97
|
+
* @example `{ Color: "Red", Size: ["S", "M"] }`
|
|
98
|
+
*/
|
|
99
|
+
type VariantAttributeValuesInput = string[] | Record<string, string | string[]>;
|
|
100
|
+
export type CreateProductVariantDTO = UpstreamCreateProductVariantDTO & {
|
|
101
|
+
attribute_values?: VariantAttributeValuesInput;
|
|
102
|
+
};
|
|
103
|
+
export type UpdateProductVariantDTO = UpstreamUpdateProductVariantDTO & {
|
|
104
|
+
attribute_values?: VariantAttributeValuesInput;
|
|
105
|
+
};
|
|
106
|
+
export type UpsertProductVariantDTO = UpdateProductVariantDTO & {
|
|
107
|
+
id?: string;
|
|
108
|
+
title: string;
|
|
109
|
+
};
|
|
110
|
+
export type CreateProductDTO = Omit<UpstreamCreateProductDTO, "status"> & {
|
|
111
|
+
status?: ProductStatus;
|
|
112
|
+
is_restricted?: boolean;
|
|
113
|
+
created_by?: string | null;
|
|
114
|
+
created_by_actor?: string | null;
|
|
115
|
+
brand_id?: string | null;
|
|
116
|
+
variants?: CreateProductVariantDTO[];
|
|
117
|
+
/**
|
|
118
|
+
* Product variant attributes. Each entry is either:
|
|
119
|
+
* - A global attribute reference: `{ attribute_id, value_ids: ["pattrval_..."] }`
|
|
120
|
+
* - An inline custom attribute: `{ name, type, values: ["Red", "Blue"] }`
|
|
121
|
+
*/
|
|
122
|
+
variant_attributes?: ProductAttributeInputDTO[];
|
|
123
|
+
/**
|
|
124
|
+
* Non-variant product-level attributes. Same format as variant_attributes.
|
|
125
|
+
* Creates product-scoped attributes and links their values to the product.
|
|
126
|
+
*/
|
|
127
|
+
product_attributes?: ProductAttributeInputDTO[];
|
|
128
|
+
};
|
|
129
|
+
export type UpdateProductDTO = Omit<UpstreamUpdateProductDTO, "status"> & {
|
|
130
|
+
status?: ProductStatus;
|
|
131
|
+
is_restricted?: boolean;
|
|
132
|
+
brand_id?: string | null;
|
|
133
|
+
variants?: UpsertProductVariantDTO[];
|
|
134
|
+
/** See {@link CreateProductDTO.variant_attributes}. */
|
|
135
|
+
variant_attributes?: ProductAttributeInputDTO[];
|
|
136
|
+
/** See {@link CreateProductDTO.product_attributes}. */
|
|
137
|
+
product_attributes?: ProductAttributeInputDTO[];
|
|
138
|
+
};
|
|
139
|
+
export type UpsertProductDTO = UpdateProductDTO & {
|
|
140
|
+
id?: string;
|
|
141
|
+
title: string;
|
|
142
|
+
};
|
|
143
|
+
export interface CreateProductChangeDTO {
|
|
144
|
+
product_id: string;
|
|
145
|
+
internal_note?: string;
|
|
146
|
+
external_note?: string;
|
|
147
|
+
created_by?: string;
|
|
148
|
+
status?: string;
|
|
149
|
+
confirmed_by?: string;
|
|
150
|
+
confirmed_at?: Date;
|
|
151
|
+
metadata?: Record<string, unknown>;
|
|
152
|
+
}
|
|
153
|
+
export interface CreateProductChangeActionDTO {
|
|
154
|
+
product_change_id?: string;
|
|
155
|
+
product_id: string;
|
|
156
|
+
action: string;
|
|
157
|
+
details?: Record<string, unknown>;
|
|
158
|
+
internal_note?: string;
|
|
159
|
+
applied?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export {};
|
|
162
|
+
//# sourceMappingURL=mutations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/product/m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A;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/types",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.0-canary.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
".": {
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"default": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./product": {
|
|
30
|
+
"types": "./dist/product/index.d.ts",
|
|
31
|
+
"default": "./dist/product/index.js"
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
"scripts": {
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export declare enum AttributeUIComponent {
|
|
2
|
-
SELECT = "select",
|
|
3
|
-
MULTIVALUE = "multivalue",
|
|
4
|
-
UNIT = "unit",
|
|
5
|
-
TOGGLE = "toggle",
|
|
6
|
-
TEXTAREA = "text_area",
|
|
7
|
-
COLOR_PICKER = "color_picker"
|
|
8
|
-
}
|
|
9
|
-
export declare const AttributeSource: {
|
|
10
|
-
readonly ADMIN: "admin";
|
|
11
|
-
readonly VENDOR: "vendor";
|
|
12
|
-
};
|
|
13
|
-
export type AttributeSource = (typeof AttributeSource)[keyof typeof AttributeSource];
|
|
14
|
-
export interface AttributePossibleValueDTO {
|
|
15
|
-
id: string;
|
|
16
|
-
value: string;
|
|
17
|
-
rank: number;
|
|
18
|
-
metadata?: Record<string, unknown>;
|
|
19
|
-
created_at: string;
|
|
20
|
-
updated_at: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AttributeValueDTO {
|
|
23
|
-
id: string;
|
|
24
|
-
value: string;
|
|
25
|
-
rank: number;
|
|
26
|
-
source: AttributeSource;
|
|
27
|
-
metadata?: Record<string, unknown>;
|
|
28
|
-
attribute_id: string;
|
|
29
|
-
created_at: string;
|
|
30
|
-
updated_at: string;
|
|
31
|
-
}
|
|
32
|
-
export interface AttributeDTO {
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
description: string;
|
|
36
|
-
handle: string;
|
|
37
|
-
is_filterable: boolean;
|
|
38
|
-
is_required: boolean;
|
|
39
|
-
source: AttributeSource;
|
|
40
|
-
ui_component: AttributeUIComponent;
|
|
41
|
-
metadata?: Record<string, unknown>;
|
|
42
|
-
possible_values?: AttributePossibleValueDTO[];
|
|
43
|
-
values?: AttributeValueDTO[];
|
|
44
|
-
created_at: string;
|
|
45
|
-
updated_at: string;
|
|
46
|
-
}
|
|
47
|
-
export interface ProductAttributeValueDTO {
|
|
48
|
-
value: string;
|
|
49
|
-
attribute_id: string;
|
|
50
|
-
}
|
|
51
|
-
export interface VendorProductAttributeDTO {
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
value: string;
|
|
55
|
-
ui_component: AttributeUIComponent;
|
|
56
|
-
extends_attribute_id?: string | null;
|
|
57
|
-
rank: number;
|
|
58
|
-
metadata?: Record<string, unknown> | null;
|
|
59
|
-
created_at: string;
|
|
60
|
-
updated_at: string;
|
|
61
|
-
}
|
|
62
|
-
export interface InformationalAttributeValueDTO {
|
|
63
|
-
value: string;
|
|
64
|
-
source: AttributeSource;
|
|
65
|
-
attribute_value_id: string;
|
|
66
|
-
is_filterable: boolean;
|
|
67
|
-
is_editable: boolean;
|
|
68
|
-
}
|
|
69
|
-
export interface InformationalAttributeDTO {
|
|
70
|
-
attribute_id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
ui_component: AttributeUIComponent;
|
|
73
|
-
attribute_source: AttributeSource;
|
|
74
|
-
is_filterable: boolean;
|
|
75
|
-
is_required: boolean;
|
|
76
|
-
is_definition_editable: boolean;
|
|
77
|
-
values: InformationalAttributeValueDTO[];
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/attribute/common.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,cAAc;IACtB,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAEV,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAA;AAExD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,OAAO,CAAA;IACtB,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AE,CAAA;CACzC"}
|
package/dist/attribute/common.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AttributeSource = exports.AttributeUIComponent = void 0;
|
|
4
|
-
var AttributeUIComponent;
|
|
5
|
-
(function (AttributeUIComponent) {
|
|
6
|
-
AttributeUIComponent["SELECT"] = "select";
|
|
7
|
-
AttributeUIComponent["MULTIVALUE"] = "multivalue";
|
|
8
|
-
AttributeUIComponent["UNIT"] = "unit";
|
|
9
|
-
AttributeUIComponent["TOGGLE"] = "toggle";
|
|
10
|
-
AttributeUIComponent["TEXTAREA"] = "text_area";
|
|
11
|
-
AttributeUIComponent["COLOR_PICKER"] = "color_picker";
|
|
12
|
-
})(AttributeUIComponent || (exports.AttributeUIComponent = AttributeUIComponent = {}));
|
|
13
|
-
exports.AttributeSource = {
|
|
14
|
-
ADMIN: "admin",
|
|
15
|
-
VENDOR: "vendor",
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/attribute/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { AttributeSource, AttributeUIComponent } from "./common";
|
|
2
|
-
export interface CreateAttributeValueDTO {
|
|
3
|
-
value: string;
|
|
4
|
-
rank: number;
|
|
5
|
-
attribute_id: string;
|
|
6
|
-
source?: AttributeSource;
|
|
7
|
-
metadata?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateAttributeDTO {
|
|
10
|
-
id: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
handle?: string;
|
|
14
|
-
is_filterable?: boolean;
|
|
15
|
-
is_required?: boolean;
|
|
16
|
-
metadata?: Record<string, unknown>;
|
|
17
|
-
possible_values?: UpsertAttributeValueDTO[];
|
|
18
|
-
product_category_ids?: {
|
|
19
|
-
id: string;
|
|
20
|
-
}[];
|
|
21
|
-
}
|
|
22
|
-
export interface UpsertAttributeValueDTO {
|
|
23
|
-
id?: string;
|
|
24
|
-
value?: string;
|
|
25
|
-
rank?: number;
|
|
26
|
-
source?: AttributeSource;
|
|
27
|
-
metadata?: Record<string, unknown>;
|
|
28
|
-
attribute_id?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface CreateAttributeDTO {
|
|
31
|
-
name: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
handle?: string;
|
|
34
|
-
is_filterable?: boolean;
|
|
35
|
-
is_required?: boolean;
|
|
36
|
-
source?: AttributeSource;
|
|
37
|
-
metadata?: Record<string, unknown>;
|
|
38
|
-
ui_component: AttributeUIComponent;
|
|
39
|
-
possible_values?: Omit<CreateAttributeValueDTO, "attribute_id">[];
|
|
40
|
-
product_category_ids?: string[];
|
|
41
|
-
}
|
|
42
|
-
export interface UpdateAttributeValueDTO {
|
|
43
|
-
id: string;
|
|
44
|
-
value?: string;
|
|
45
|
-
rank?: number;
|
|
46
|
-
source?: AttributeSource;
|
|
47
|
-
metadata?: Record<string, unknown> | null;
|
|
48
|
-
}
|
|
49
|
-
export type CreateProductAttributeValueDTO = {
|
|
50
|
-
attribute_id: string;
|
|
51
|
-
product_id: string;
|
|
52
|
-
value: string;
|
|
53
|
-
source?: AttributeSource;
|
|
54
|
-
};
|
|
55
|
-
export interface AdminAttributeInput {
|
|
56
|
-
attribute_id: string;
|
|
57
|
-
values: string[];
|
|
58
|
-
use_for_variations: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface VendorAttributeInput {
|
|
61
|
-
name: string;
|
|
62
|
-
values: string[];
|
|
63
|
-
use_for_variations: boolean;
|
|
64
|
-
ui_component?: AttributeUIComponent;
|
|
65
|
-
}
|
|
66
|
-
export interface ProductAttributesAdditionalData {
|
|
67
|
-
admin_attributes?: AdminAttributeInput[];
|
|
68
|
-
vendor_attributes?: VendorAttributeInput[];
|
|
69
|
-
}
|
|
70
|
-
export interface AddProductAttributeInput {
|
|
71
|
-
attribute_id?: string;
|
|
72
|
-
name?: string;
|
|
73
|
-
values: string[];
|
|
74
|
-
use_for_variations: boolean;
|
|
75
|
-
ui_component?: AttributeUIComponent;
|
|
76
|
-
}
|
|
77
|
-
export interface UpdateProductAttributeInput {
|
|
78
|
-
name?: string;
|
|
79
|
-
ui_component?: AttributeUIComponent;
|
|
80
|
-
values?: string[];
|
|
81
|
-
use_for_variations?: boolean;
|
|
82
|
-
}
|
|
83
|
-
export interface CreateVendorProductAttributeDTO {
|
|
84
|
-
name: string;
|
|
85
|
-
value: string;
|
|
86
|
-
ui_component?: AttributeUIComponent;
|
|
87
|
-
extends_attribute_id?: string;
|
|
88
|
-
rank?: number;
|
|
89
|
-
metadata?: Record<string, unknown>;
|
|
90
|
-
}
|
|
91
|
-
export interface UpdateVendorProductAttributeDTO {
|
|
92
|
-
id: string;
|
|
93
|
-
name?: string;
|
|
94
|
-
value?: string;
|
|
95
|
-
ui_component?: AttributeUIComponent;
|
|
96
|
-
rank?: number;
|
|
97
|
-
metadata?: Record<string, unknown> | null;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=mutations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/attribute/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEhE,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAA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