@retaila/shared-types 1.0.8 → 1.1.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/account/types.d.ts +7 -1
- package/dist/account/types.d.ts.map +1 -1
- package/dist/account/types.js +8 -0
- package/dist/account/types.js.map +1 -1
- package/dist/accountBranch/index.d.ts +2 -0
- package/dist/accountBranch/index.d.ts.map +1 -0
- package/dist/accountBranch/index.js +20 -0
- package/dist/accountBranch/index.js.map +1 -0
- package/dist/accountBranch/types.d.ts +53 -0
- package/dist/accountBranch/types.d.ts.map +1 -0
- package/dist/accountBranch/types.js +24 -0
- package/dist/accountBranch/types.js.map +1 -0
- package/dist/accountDeliveryOption/index.d.ts +2 -0
- package/dist/accountDeliveryOption/index.d.ts.map +1 -0
- package/dist/accountDeliveryOption/index.js +20 -0
- package/dist/accountDeliveryOption/index.js.map +1 -0
- package/dist/accountDeliveryOption/types.d.ts +58 -0
- package/dist/accountDeliveryOption/types.d.ts.map +1 -0
- package/dist/accountDeliveryOption/types.js +19 -0
- package/dist/accountDeliveryOption/types.js.map +1 -0
- package/dist/accountDomain/index.d.ts +2 -0
- package/dist/accountDomain/index.d.ts.map +1 -0
- package/dist/accountDomain/index.js +20 -0
- package/dist/accountDomain/index.js.map +1 -0
- package/dist/accountDomain/types.d.ts +23 -0
- package/dist/accountDomain/types.d.ts.map +1 -0
- package/dist/accountDomain/types.js +15 -0
- package/dist/accountDomain/types.js.map +1 -0
- package/dist/accountIntegration/index.d.ts +2 -0
- package/dist/accountIntegration/index.d.ts.map +1 -0
- package/dist/accountIntegration/index.js +20 -0
- package/dist/accountIntegration/index.js.map +1 -0
- package/dist/accountIntegration/types.d.ts +28 -0
- package/dist/accountIntegration/types.d.ts.map +1 -0
- package/dist/accountIntegration/types.js +21 -0
- package/dist/accountIntegration/types.js.map +1 -0
- package/dist/cart/dto.d.ts +97 -0
- package/dist/cart/dto.d.ts.map +1 -0
- package/dist/cart/dto.js +16 -0
- package/dist/cart/dto.js.map +1 -0
- package/dist/cart/index.d.ts +3 -0
- package/dist/cart/index.d.ts.map +1 -0
- package/dist/cart/index.js +21 -0
- package/dist/cart/index.js.map +1 -0
- package/dist/cart/types.d.ts +64 -0
- package/dist/cart/types.d.ts.map +1 -0
- package/dist/cart/types.js +19 -0
- package/dist/cart/types.js.map +1 -0
- package/dist/common/Address.d.ts +13 -0
- package/dist/common/Address.d.ts.map +1 -0
- package/dist/common/Address.js +3 -0
- package/dist/common/Address.js.map +1 -0
- package/dist/common/Currency.d.ts +9 -0
- package/dist/common/Currency.d.ts.map +1 -0
- package/dist/common/Currency.js +23 -0
- package/dist/common/Currency.js.map +1 -0
- package/dist/common/Media.d.ts +28 -0
- package/dist/common/Media.d.ts.map +1 -0
- package/dist/common/Media.js +17 -0
- package/dist/common/Media.js.map +1 -0
- package/dist/common/Phone.d.ts +8 -0
- package/dist/common/Phone.d.ts.map +1 -0
- package/dist/common/Phone.js +3 -0
- package/dist/common/Phone.js.map +1 -0
- package/dist/common/index.d.ts +4 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +4 -0
- package/dist/common/index.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/integration/index.d.ts +2 -0
- package/dist/integration/index.d.ts.map +1 -0
- package/dist/integration/index.js +20 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/types.d.ts +36 -0
- package/dist/integration/types.d.ts.map +1 -0
- package/dist/integration/types.js +27 -0
- package/dist/integration/types.js.map +1 -0
- package/dist/order/dto.d.ts +9 -0
- package/dist/order/dto.d.ts.map +1 -0
- package/dist/order/dto.js +3 -0
- package/dist/order/dto.js.map +1 -0
- package/dist/order/index.d.ts +3 -0
- package/dist/order/index.d.ts.map +1 -0
- package/dist/order/index.js +21 -0
- package/dist/order/index.js.map +1 -0
- package/dist/order/types.d.ts +105 -0
- package/dist/order/types.d.ts.map +1 -0
- package/dist/order/types.js +40 -0
- package/dist/order/types.js.map +1 -0
- package/dist/product/index.d.ts +2 -0
- package/dist/product/index.d.ts.map +1 -0
- package/dist/product/index.js +20 -0
- package/dist/product/index.js.map +1 -0
- package/dist/product/types.d.ts +66 -0
- package/dist/product/types.d.ts.map +1 -0
- package/dist/product/types.js +18 -0
- package/dist/product/types.js.map +1 -0
- package/dist/productAttribute/index.d.ts +2 -0
- package/dist/productAttribute/index.d.ts.map +1 -0
- package/dist/productAttribute/index.js +20 -0
- package/dist/productAttribute/index.js.map +1 -0
- package/dist/productAttribute/types.d.ts +48 -0
- package/dist/productAttribute/types.d.ts.map +1 -0
- package/dist/productAttribute/types.js +22 -0
- package/dist/productAttribute/types.js.map +1 -0
- package/dist/productCategory/index.d.ts +2 -0
- package/dist/productCategory/index.d.ts.map +1 -0
- package/dist/productCategory/index.js +20 -0
- package/dist/productCategory/index.js.map +1 -0
- package/dist/productCategory/types.d.ts +31 -0
- package/dist/productCategory/types.d.ts.map +1 -0
- package/dist/productCategory/types.js +9 -0
- package/dist/productCategory/types.js.map +1 -0
- package/dist/standardCategory/index.d.ts +2 -0
- package/dist/standardCategory/index.d.ts.map +1 -0
- package/dist/standardCategory/index.js +20 -0
- package/dist/standardCategory/index.js.map +1 -0
- package/dist/standardCategory/types.d.ts +32 -0
- package/dist/standardCategory/types.d.ts.map +1 -0
- package/dist/standardCategory/types.js +14 -0
- package/dist/standardCategory/types.js.map +1 -0
- package/dist/storeBanner/index.d.ts +2 -0
- package/dist/storeBanner/index.d.ts.map +1 -0
- package/dist/storeBanner/index.js +20 -0
- package/dist/storeBanner/index.js.map +1 -0
- package/dist/storeBanner/types.d.ts +28 -0
- package/dist/storeBanner/types.d.ts.map +1 -0
- package/dist/storeBanner/types.js +13 -0
- package/dist/storeBanner/types.js.map +1 -0
- package/dist/storePage/index.d.ts +2 -0
- package/dist/storePage/index.d.ts.map +1 -0
- package/dist/storePage/index.js +20 -0
- package/dist/storePage/index.js.map +1 -0
- package/dist/storePage/types.d.ts +37 -0
- package/dist/storePage/types.d.ts.map +1 -0
- package/dist/storePage/types.js +27 -0
- package/dist/storePage/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/product/index.ts - Product entity exports
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// Types
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":";AAAA,6DAA6D;;;;;;;;;;;;;;;;AAE7D,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entidad Product
|
|
3
|
+
* Representa un producto vendible en la tienda. Es la entidad base que puede tener múltiples variantes.
|
|
4
|
+
*/
|
|
5
|
+
export interface Product {
|
|
6
|
+
id: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
code: string;
|
|
9
|
+
brandId?: string | null;
|
|
10
|
+
supplierId?: string | null;
|
|
11
|
+
productType: ProductType;
|
|
12
|
+
sku?: string | null;
|
|
13
|
+
barcode?: string | null;
|
|
14
|
+
name: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
description?: string | null;
|
|
17
|
+
isFeatured: boolean;
|
|
18
|
+
allowBackorder: boolean;
|
|
19
|
+
weight?: number | null;
|
|
20
|
+
weightUnit?: string | null;
|
|
21
|
+
height?: number | null;
|
|
22
|
+
width?: number | null;
|
|
23
|
+
depth?: number | null;
|
|
24
|
+
dimensionUnit?: string | null;
|
|
25
|
+
shippingLeadTime?: string | null;
|
|
26
|
+
status: ProductStatus;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
deletedAt?: Date | null;
|
|
30
|
+
}
|
|
31
|
+
export declare enum ProductStatus {
|
|
32
|
+
ACTIVE = "ACTIVE",// Available for sale
|
|
33
|
+
INACTIVE = "INACTIVE",// Not visible/purchasable
|
|
34
|
+
ARCHIVED = "ARCHIVED",// Not visible, kept for records
|
|
35
|
+
DRAFT = "DRAFT"
|
|
36
|
+
}
|
|
37
|
+
export declare enum ProductType {
|
|
38
|
+
SIMPLE = "SIMPLE",// Product without variants (may have a default hidden variant)
|
|
39
|
+
VARIABLE = "VARIABLE",// Product with distinct variants (color, size, etc.)
|
|
40
|
+
BUNDLE = "BUNDLE",// A package of other products/variants
|
|
41
|
+
GIFT_CARD = "GIFT_CARD"
|
|
42
|
+
}
|
|
43
|
+
export interface ProductVariant {
|
|
44
|
+
id: string;
|
|
45
|
+
accountId: string;
|
|
46
|
+
productId: string;
|
|
47
|
+
sku?: string | null;
|
|
48
|
+
barcode?: string | null;
|
|
49
|
+
currency: string;
|
|
50
|
+
price: number;
|
|
51
|
+
compareAtPrice?: number;
|
|
52
|
+
allowBackorder?: boolean;
|
|
53
|
+
stock: number;
|
|
54
|
+
weight?: number | null;
|
|
55
|
+
weightUnit?: string | null;
|
|
56
|
+
height?: number | null;
|
|
57
|
+
width?: number | null;
|
|
58
|
+
depth?: number | null;
|
|
59
|
+
dimensionUnit?: string | null;
|
|
60
|
+
shippingLeadTime?: string | null;
|
|
61
|
+
order: number;
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
updatedAt: Date;
|
|
64
|
+
deletedAt?: Date;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/product/types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;IAGpB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,MAAM,EAAE,aAAa,CAAC;IAEtB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAEzB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW,CAAE,qBAAqB;IACxC,QAAQ,aAAa,CAAE,0BAA0B;IACjD,QAAQ,aAAa,CAAE,gCAAgC;IACvD,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACnB,MAAM,WAAW,CAAE,+DAA+D;IAClF,QAAQ,aAAa,CAAE,qDAAqD;IAC5E,MAAM,WAAW,CAAE,uCAAuC;IAC1D,SAAS,cAAc;CAC1B;AAGD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAElB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CAElB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductType = exports.ProductStatus = void 0;
|
|
4
|
+
var ProductStatus;
|
|
5
|
+
(function (ProductStatus) {
|
|
6
|
+
ProductStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ProductStatus["INACTIVE"] = "INACTIVE";
|
|
8
|
+
ProductStatus["ARCHIVED"] = "ARCHIVED";
|
|
9
|
+
ProductStatus["DRAFT"] = "DRAFT";
|
|
10
|
+
})(ProductStatus || (exports.ProductStatus = ProductStatus = {}));
|
|
11
|
+
var ProductType;
|
|
12
|
+
(function (ProductType) {
|
|
13
|
+
ProductType["SIMPLE"] = "SIMPLE";
|
|
14
|
+
ProductType["VARIABLE"] = "VARIABLE";
|
|
15
|
+
ProductType["BUNDLE"] = "BUNDLE";
|
|
16
|
+
ProductType["GIFT_CARD"] = "GIFT_CARD";
|
|
17
|
+
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
18
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/product/types.ts"],"names":[],"mappings":";;;AAuCA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;AACjB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;AAC3B,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/productAttribute/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/productAttribute/index.ts - Product Attribute entity exports
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// Types
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/productAttribute/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;;;;;;;;;;;;;;;;AAEhF,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entidad ProductAttribute
|
|
3
|
+
* Define los atributos disponibles que se pueden asignar a las variantes de producto (ej. Color, Talla).
|
|
4
|
+
* Especifica el nombre y tipo del atributo para ayudar en la representación y filtrado.
|
|
5
|
+
*/
|
|
6
|
+
export interface ProductAttribute {
|
|
7
|
+
id: string;
|
|
8
|
+
accountId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
alias: string;
|
|
11
|
+
slug: string;
|
|
12
|
+
type: ProductAttributeType;
|
|
13
|
+
isRequired: boolean;
|
|
14
|
+
suffix: string;
|
|
15
|
+
status: ProductAttributeStatus;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
deletedAt?: Date | null;
|
|
19
|
+
options: ProductAttributeOption[];
|
|
20
|
+
displayOrder: number;
|
|
21
|
+
}
|
|
22
|
+
export declare enum ProductAttributeStatus {
|
|
23
|
+
ACTIVE = "ACTIVE",
|
|
24
|
+
INACTIVE = "INACTIVE"
|
|
25
|
+
}
|
|
26
|
+
export declare enum ProductAttributeType {
|
|
27
|
+
TEXT = "TEXT",// text input
|
|
28
|
+
NUMBER = "NUMBER",// number input
|
|
29
|
+
COLOR = "COLOR",// Special type for color swatches
|
|
30
|
+
SELECT = "SELECT",// Dropdown list
|
|
31
|
+
BOOLEAN = "BOOLEAN"
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Una opción específica para un atributo (ej. "Talle 42" para el atributo "Talle").
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductAttributeOption {
|
|
37
|
+
id: string;
|
|
38
|
+
accountId: string;
|
|
39
|
+
productAttributeId: string;
|
|
40
|
+
value: string;
|
|
41
|
+
imageId?: string | null;
|
|
42
|
+
order: number;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
deletedAt?: Date | null;
|
|
46
|
+
count: number;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/productAttribute/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,sBAAsB,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAGD,oBAAY,oBAAoB;IAC5B,IAAI,SAAS,CAAE,aAAa;IAC5B,MAAM,WAAW,CAAE,eAAe;IAClC,KAAK,UAAU,CAAE,kCAAkC;IACnD,MAAM,WAAW,CAAE,gBAAgB;IACnC,OAAO,YAAY;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Entidad ProductAttribute
|
|
4
|
+
* Define los atributos disponibles que se pueden asignar a las variantes de producto (ej. Color, Talla).
|
|
5
|
+
* Especifica el nombre y tipo del atributo para ayudar en la representación y filtrado.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProductAttributeType = exports.ProductAttributeStatus = void 0;
|
|
9
|
+
var ProductAttributeStatus;
|
|
10
|
+
(function (ProductAttributeStatus) {
|
|
11
|
+
ProductAttributeStatus["ACTIVE"] = "ACTIVE";
|
|
12
|
+
ProductAttributeStatus["INACTIVE"] = "INACTIVE";
|
|
13
|
+
})(ProductAttributeStatus || (exports.ProductAttributeStatus = ProductAttributeStatus = {}));
|
|
14
|
+
var ProductAttributeType;
|
|
15
|
+
(function (ProductAttributeType) {
|
|
16
|
+
ProductAttributeType["TEXT"] = "TEXT";
|
|
17
|
+
ProductAttributeType["NUMBER"] = "NUMBER";
|
|
18
|
+
ProductAttributeType["COLOR"] = "COLOR";
|
|
19
|
+
ProductAttributeType["SELECT"] = "SELECT";
|
|
20
|
+
ProductAttributeType["BOOLEAN"] = "BOOLEAN";
|
|
21
|
+
})(ProductAttributeType || (exports.ProductAttributeType = ProductAttributeType = {}));
|
|
22
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/productAttribute/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAoBH,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;AACvB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAGD,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,yCAAiB,CAAA;IACjB,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;AACvB,CAAC,EANW,oBAAoB,oCAApB,oBAAoB,QAM/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/productCategory/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/productCategory/index.ts - Product Category entity exports
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// Types
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/productCategory/index.ts"],"names":[],"mappings":";AAAA,8EAA8E;;;;;;;;;;;;;;;;AAE9E,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StandardCategory } from "../standardCategory";
|
|
2
|
+
/**
|
|
3
|
+
* Entidad ProductCategory
|
|
4
|
+
* Define las categorías de productos.
|
|
5
|
+
* Soporta una estructura jerárquica (categorías y subcategorías) mediante el campo parentId.
|
|
6
|
+
* Cada categoría debe estar asociada a una categoría estándar del sistema.
|
|
7
|
+
*/
|
|
8
|
+
export interface ProductCategory {
|
|
9
|
+
id: string;
|
|
10
|
+
accountId: string;
|
|
11
|
+
parentId?: string;
|
|
12
|
+
standardCategoryId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
imageId?: string | null;
|
|
17
|
+
order: number;
|
|
18
|
+
isFeatured: boolean;
|
|
19
|
+
status: ProductCategoryStatus;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
deletedAt?: Date | null;
|
|
23
|
+
children: ProductCategory[];
|
|
24
|
+
parent: ProductCategory | null;
|
|
25
|
+
standardCategory: StandardCategory;
|
|
26
|
+
}
|
|
27
|
+
export declare enum ProductCategoryStatus {
|
|
28
|
+
ACTIVE = "ACTIVE",
|
|
29
|
+
INACTIVE = "INACTIVE"
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/productCategory/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;GAKG;AAEH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAGD,oBAAY,qBAAqB;IAC/B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCategoryStatus = void 0;
|
|
4
|
+
var ProductCategoryStatus;
|
|
5
|
+
(function (ProductCategoryStatus) {
|
|
6
|
+
ProductCategoryStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ProductCategoryStatus["INACTIVE"] = "INACTIVE";
|
|
8
|
+
})(ProductCategoryStatus || (exports.ProductCategoryStatus = ProductCategoryStatus = {}));
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/productCategory/types.ts"],"names":[],"mappings":";;;AA+BA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/standardCategory/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/standardCategory/index.ts - Standard Category entity exports
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// Types
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/standardCategory/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;;;;;;;;;;;;;;;;AAEhF,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entidad StandardCategory
|
|
3
|
+
* Define las categorías estándar de productos.
|
|
4
|
+
* Estas categorías estan pensadas para unificar o agrupar productos de diferentes cuentas.
|
|
5
|
+
*/
|
|
6
|
+
export interface StandardCategory {
|
|
7
|
+
id: string;
|
|
8
|
+
parentId?: string;
|
|
9
|
+
name: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
imageId?: string | null;
|
|
13
|
+
order: number;
|
|
14
|
+
status: StandardCategoryStatus;
|
|
15
|
+
metadata?: {
|
|
16
|
+
icon?: string;
|
|
17
|
+
displayInMenu?: boolean;
|
|
18
|
+
seoTitle?: string;
|
|
19
|
+
seoDescription?: string;
|
|
20
|
+
attributes?: string[];
|
|
21
|
+
};
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
deletedAt?: Date | null;
|
|
25
|
+
children: StandardCategory[];
|
|
26
|
+
parent: StandardCategory | null;
|
|
27
|
+
}
|
|
28
|
+
export declare enum StandardCategoryStatus {
|
|
29
|
+
ACTIVE = "ACTIVE",
|
|
30
|
+
INACTIVE = "INACTIVE"
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/standardCategory/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;IACF,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACjC;AAED,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Entidad StandardCategory
|
|
4
|
+
* Define las categorías estándar de productos.
|
|
5
|
+
* Estas categorías estan pensadas para unificar o agrupar productos de diferentes cuentas.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.StandardCategoryStatus = void 0;
|
|
9
|
+
var StandardCategoryStatus;
|
|
10
|
+
(function (StandardCategoryStatus) {
|
|
11
|
+
StandardCategoryStatus["ACTIVE"] = "ACTIVE";
|
|
12
|
+
StandardCategoryStatus["INACTIVE"] = "INACTIVE";
|
|
13
|
+
})(StandardCategoryStatus || (exports.StandardCategoryStatus = StandardCategoryStatus = {}));
|
|
14
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/standardCategory/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA0BH,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;AACvB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storeBanner/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/storeBanner/index.ts - Store Banner entity exports
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// Types
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storeBanner/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;;;;;;;;;;;;;;;;AAEtE,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entidad StoreBanner
|
|
3
|
+
* Banners para la portada de la web de la tienda
|
|
4
|
+
*/
|
|
5
|
+
import { Media } from "../common";
|
|
6
|
+
export interface StoreBanner {
|
|
7
|
+
id: string;
|
|
8
|
+
accountId: string;
|
|
9
|
+
title: string;
|
|
10
|
+
desktopMediaId: string;
|
|
11
|
+
mobileMediaId?: string | null;
|
|
12
|
+
linkUrl?: string | null;
|
|
13
|
+
altText?: string | null;
|
|
14
|
+
displayOrder: number;
|
|
15
|
+
startDate?: Date | null;
|
|
16
|
+
endDate?: Date | null;
|
|
17
|
+
status: StoreBannerStatus;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
deletedAt?: Date | null;
|
|
21
|
+
desktopMedia?: Partial<Media> | null;
|
|
22
|
+
mobileMedia?: Partial<Media> | null;
|
|
23
|
+
}
|
|
24
|
+
export declare enum StoreBannerStatus {
|
|
25
|
+
ACTIVE = "ACTIVE",
|
|
26
|
+
INACTIVE = "INACTIVE"
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storeBanner/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,YAAY,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Entidad StoreBanner
|
|
4
|
+
* Banners para la portada de la web de la tienda
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.StoreBannerStatus = void 0;
|
|
8
|
+
var StoreBannerStatus;
|
|
9
|
+
(function (StoreBannerStatus) {
|
|
10
|
+
StoreBannerStatus["ACTIVE"] = "ACTIVE";
|
|
11
|
+
StoreBannerStatus["INACTIVE"] = "INACTIVE";
|
|
12
|
+
})(StoreBannerStatus || (exports.StoreBannerStatus = StoreBannerStatus = {}));
|
|
13
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/storeBanner/types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAyBH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storePage/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/storePage/index.ts - Store Page entity exports
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// Types
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storePage/index.ts"],"names":[],"mappings":";AAAA,kEAAkE;;;;;;;;;;;;;;;;AAElE,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entidad StorePage
|
|
3
|
+
* Páginas de la web de la tienda
|
|
4
|
+
*/
|
|
5
|
+
export interface StorePage {
|
|
6
|
+
id: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
type: StorePageType;
|
|
9
|
+
title: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
content?: string | null;
|
|
12
|
+
seoTitle?: string | null;
|
|
13
|
+
seoDescription?: string | null;
|
|
14
|
+
status: StorePageStatus;
|
|
15
|
+
canDelete: boolean;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
deletedAt?: Date | null;
|
|
19
|
+
}
|
|
20
|
+
export declare enum StorePageStatus {
|
|
21
|
+
PUBLISHED = "PUBLISHED",
|
|
22
|
+
DRAFT = "DRAFT",
|
|
23
|
+
ARCHIVED = "ARCHIVED"
|
|
24
|
+
}
|
|
25
|
+
export declare enum StorePageType {
|
|
26
|
+
ABOUT_US = "ABOUT_US",
|
|
27
|
+
CONTACT = "CONTACT",
|
|
28
|
+
FAQ = "FAQ",
|
|
29
|
+
TERMS_AND_CONDITIONS = "TERMS_AND_CONDITIONS",
|
|
30
|
+
PRIVACY_POLICY = "PRIVACY_POLICY",
|
|
31
|
+
RETURN_POLICY = "RETURN_POLICY",
|
|
32
|
+
SHIPPING_POLICY = "SHIPPING_POLICY",
|
|
33
|
+
BRANCHES = "BRANCHES",
|
|
34
|
+
JOBS = "JOBS",
|
|
35
|
+
OTHER = "OTHER"
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storePage/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,oBAAY,eAAe;IACzB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,oBAAY,aAAa;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,oBAAoB,yBAAyB;IAC7C,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Entidad StorePage
|
|
4
|
+
* Páginas de la web de la tienda
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.StorePageType = exports.StorePageStatus = void 0;
|
|
8
|
+
var StorePageStatus;
|
|
9
|
+
(function (StorePageStatus) {
|
|
10
|
+
StorePageStatus["PUBLISHED"] = "PUBLISHED";
|
|
11
|
+
StorePageStatus["DRAFT"] = "DRAFT";
|
|
12
|
+
StorePageStatus["ARCHIVED"] = "ARCHIVED";
|
|
13
|
+
})(StorePageStatus || (exports.StorePageStatus = StorePageStatus = {}));
|
|
14
|
+
var StorePageType;
|
|
15
|
+
(function (StorePageType) {
|
|
16
|
+
StorePageType["ABOUT_US"] = "ABOUT_US";
|
|
17
|
+
StorePageType["CONTACT"] = "CONTACT";
|
|
18
|
+
StorePageType["FAQ"] = "FAQ";
|
|
19
|
+
StorePageType["TERMS_AND_CONDITIONS"] = "TERMS_AND_CONDITIONS";
|
|
20
|
+
StorePageType["PRIVACY_POLICY"] = "PRIVACY_POLICY";
|
|
21
|
+
StorePageType["RETURN_POLICY"] = "RETURN_POLICY";
|
|
22
|
+
StorePageType["SHIPPING_POLICY"] = "SHIPPING_POLICY";
|
|
23
|
+
StorePageType["BRANCHES"] = "BRANCHES";
|
|
24
|
+
StorePageType["JOBS"] = "JOBS";
|
|
25
|
+
StorePageType["OTHER"] = "OTHER";
|
|
26
|
+
})(StorePageType || (exports.StorePageType = StorePageType = {}));
|
|
27
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/storePage/types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAmBH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,kCAAe,CAAA;IACf,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,4BAAW,CAAA;IACX,8DAA6C,CAAA;IAC7C,kDAAiC,CAAA;IACjC,gDAA+B,CAAA;IAC/B,oDAAmC,CAAA;IACnC,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,gCAAe,CAAA;AACjB,CAAC,EAXW,aAAa,6BAAb,aAAa,QAWxB"}
|