@retaila/shared-types 1.1.0 → 1.1.2
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/index.d.mts +883 -0
- package/dist/index.d.ts +883 -16
- package/dist/index.js +389 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +332 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +23 -3
- package/dist/account/index.d.ts +0 -2
- package/dist/account/index.d.ts.map +0 -1
- package/dist/account/index.js +0 -20
- package/dist/account/index.js.map +0 -1
- package/dist/account/types.d.ts +0 -34
- package/dist/account/types.d.ts.map +0 -1
- package/dist/account/types.js +0 -12
- package/dist/account/types.js.map +0 -1
- package/dist/accountBranch/index.d.ts +0 -2
- package/dist/accountBranch/index.d.ts.map +0 -1
- package/dist/accountBranch/index.js +0 -20
- package/dist/accountBranch/index.js.map +0 -1
- package/dist/accountBranch/types.d.ts +0 -53
- package/dist/accountBranch/types.d.ts.map +0 -1
- package/dist/accountBranch/types.js +0 -24
- package/dist/accountBranch/types.js.map +0 -1
- package/dist/accountDeliveryOption/index.d.ts +0 -2
- package/dist/accountDeliveryOption/index.d.ts.map +0 -1
- package/dist/accountDeliveryOption/index.js +0 -20
- package/dist/accountDeliveryOption/index.js.map +0 -1
- package/dist/accountDeliveryOption/types.d.ts +0 -58
- package/dist/accountDeliveryOption/types.d.ts.map +0 -1
- package/dist/accountDeliveryOption/types.js +0 -19
- package/dist/accountDeliveryOption/types.js.map +0 -1
- package/dist/accountDomain/index.d.ts +0 -2
- package/dist/accountDomain/index.d.ts.map +0 -1
- package/dist/accountDomain/index.js +0 -20
- package/dist/accountDomain/index.js.map +0 -1
- package/dist/accountDomain/types.d.ts +0 -23
- package/dist/accountDomain/types.d.ts.map +0 -1
- package/dist/accountDomain/types.js +0 -15
- package/dist/accountDomain/types.js.map +0 -1
- package/dist/accountIntegration/index.d.ts +0 -2
- package/dist/accountIntegration/index.d.ts.map +0 -1
- package/dist/accountIntegration/index.js +0 -20
- package/dist/accountIntegration/index.js.map +0 -1
- package/dist/accountIntegration/types.d.ts +0 -28
- package/dist/accountIntegration/types.d.ts.map +0 -1
- package/dist/accountIntegration/types.js +0 -21
- package/dist/accountIntegration/types.js.map +0 -1
- package/dist/cart/dto.d.ts +0 -97
- package/dist/cart/dto.d.ts.map +0 -1
- package/dist/cart/dto.js +0 -16
- package/dist/cart/dto.js.map +0 -1
- package/dist/cart/index.d.ts +0 -3
- package/dist/cart/index.d.ts.map +0 -1
- package/dist/cart/index.js +0 -21
- package/dist/cart/index.js.map +0 -1
- package/dist/cart/types.d.ts +0 -64
- package/dist/cart/types.d.ts.map +0 -1
- package/dist/cart/types.js +0 -19
- package/dist/cart/types.js.map +0 -1
- package/dist/common/Address.d.ts +0 -13
- package/dist/common/Address.d.ts.map +0 -1
- package/dist/common/Address.js +0 -3
- package/dist/common/Address.js.map +0 -1
- package/dist/common/BaseEntity.d.ts +0 -16
- package/dist/common/BaseEntity.d.ts.map +0 -1
- package/dist/common/BaseEntity.js +0 -4
- package/dist/common/BaseEntity.js.map +0 -1
- package/dist/common/Currency.d.ts +0 -9
- package/dist/common/Currency.d.ts.map +0 -1
- package/dist/common/Currency.js +0 -23
- package/dist/common/Currency.js.map +0 -1
- package/dist/common/Media.d.ts +0 -28
- package/dist/common/Media.d.ts.map +0 -1
- package/dist/common/Media.js +0 -17
- package/dist/common/Media.js.map +0 -1
- package/dist/common/Phone.d.ts +0 -8
- package/dist/common/Phone.d.ts.map +0 -1
- package/dist/common/Phone.js +0 -3
- package/dist/common/Phone.js.map +0 -1
- package/dist/common/index.d.ts +0 -6
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -23
- package/dist/common/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integration/index.d.ts +0 -2
- package/dist/integration/index.d.ts.map +0 -1
- package/dist/integration/index.js +0 -20
- package/dist/integration/index.js.map +0 -1
- package/dist/integration/types.d.ts +0 -36
- package/dist/integration/types.d.ts.map +0 -1
- package/dist/integration/types.js +0 -27
- package/dist/integration/types.js.map +0 -1
- package/dist/order/dto.d.ts +0 -9
- package/dist/order/dto.d.ts.map +0 -1
- package/dist/order/dto.js +0 -3
- package/dist/order/dto.js.map +0 -1
- package/dist/order/index.d.ts +0 -3
- package/dist/order/index.d.ts.map +0 -1
- package/dist/order/index.js +0 -21
- package/dist/order/index.js.map +0 -1
- package/dist/order/types.d.ts +0 -105
- package/dist/order/types.d.ts.map +0 -1
- package/dist/order/types.js +0 -40
- package/dist/order/types.js.map +0 -1
- package/dist/product/index.d.ts +0 -2
- package/dist/product/index.d.ts.map +0 -1
- package/dist/product/index.js +0 -20
- package/dist/product/index.js.map +0 -1
- package/dist/product/types.d.ts +0 -66
- package/dist/product/types.d.ts.map +0 -1
- package/dist/product/types.js +0 -18
- package/dist/product/types.js.map +0 -1
- package/dist/productAttribute/index.d.ts +0 -2
- package/dist/productAttribute/index.d.ts.map +0 -1
- package/dist/productAttribute/index.js +0 -20
- package/dist/productAttribute/index.js.map +0 -1
- package/dist/productAttribute/types.d.ts +0 -48
- package/dist/productAttribute/types.d.ts.map +0 -1
- package/dist/productAttribute/types.js +0 -22
- package/dist/productAttribute/types.js.map +0 -1
- package/dist/productCategory/index.d.ts +0 -2
- package/dist/productCategory/index.d.ts.map +0 -1
- package/dist/productCategory/index.js +0 -20
- package/dist/productCategory/index.js.map +0 -1
- package/dist/productCategory/types.d.ts +0 -31
- package/dist/productCategory/types.d.ts.map +0 -1
- package/dist/productCategory/types.js +0 -9
- package/dist/productCategory/types.js.map +0 -1
- package/dist/standardCategory/index.d.ts +0 -2
- package/dist/standardCategory/index.d.ts.map +0 -1
- package/dist/standardCategory/index.js +0 -20
- package/dist/standardCategory/index.js.map +0 -1
- package/dist/standardCategory/types.d.ts +0 -32
- package/dist/standardCategory/types.d.ts.map +0 -1
- package/dist/standardCategory/types.js +0 -14
- package/dist/standardCategory/types.js.map +0 -1
- package/dist/storeBanner/index.d.ts +0 -2
- package/dist/storeBanner/index.d.ts.map +0 -1
- package/dist/storeBanner/index.js +0 -20
- package/dist/storeBanner/index.js.map +0 -1
- package/dist/storeBanner/types.d.ts +0 -28
- package/dist/storeBanner/types.d.ts.map +0 -1
- package/dist/storeBanner/types.js +0 -13
- package/dist/storeBanner/types.js.map +0 -1
- package/dist/storePage/index.d.ts +0 -2
- package/dist/storePage/index.d.ts.map +0 -1
- package/dist/storePage/index.js +0 -20
- package/dist/storePage/index.js.map +0 -1
- package/dist/storePage/types.d.ts +0 -37
- package/dist/storePage/types.d.ts.map +0 -1
- package/dist/storePage/types.js +0 -27
- package/dist/storePage/types.js.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountBranchScheduleDay = exports.AccountBranchScheduleStatus = exports.AccountBranchStatus = void 0;
|
|
4
|
-
var AccountBranchStatus;
|
|
5
|
-
(function (AccountBranchStatus) {
|
|
6
|
-
AccountBranchStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
-
AccountBranchStatus["INACTIVE"] = "INACTIVE";
|
|
8
|
-
})(AccountBranchStatus || (exports.AccountBranchStatus = AccountBranchStatus = {}));
|
|
9
|
-
var AccountBranchScheduleStatus;
|
|
10
|
-
(function (AccountBranchScheduleStatus) {
|
|
11
|
-
AccountBranchScheduleStatus["ACTIVE"] = "ACTIVE";
|
|
12
|
-
AccountBranchScheduleStatus["INACTIVE"] = "INACTIVE";
|
|
13
|
-
})(AccountBranchScheduleStatus || (exports.AccountBranchScheduleStatus = AccountBranchScheduleStatus = {}));
|
|
14
|
-
var AccountBranchScheduleDay;
|
|
15
|
-
(function (AccountBranchScheduleDay) {
|
|
16
|
-
AccountBranchScheduleDay["MONDAY"] = "MONDAY";
|
|
17
|
-
AccountBranchScheduleDay["TUESDAY"] = "TUESDAY";
|
|
18
|
-
AccountBranchScheduleDay["WEDNESDAY"] = "WEDNESDAY";
|
|
19
|
-
AccountBranchScheduleDay["THURSDAY"] = "THURSDAY";
|
|
20
|
-
AccountBranchScheduleDay["FRIDAY"] = "FRIDAY";
|
|
21
|
-
AccountBranchScheduleDay["SATURDAY"] = "SATURDAY";
|
|
22
|
-
AccountBranchScheduleDay["SUNDAY"] = "SUNDAY";
|
|
23
|
-
})(AccountBranchScheduleDay || (exports.AccountBranchScheduleDay = AccountBranchScheduleDay = {}));
|
|
24
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/accountBranch/types.ts"],"names":[],"mappings":";;;AA2BA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACvB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAgBD,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,gDAAiB,CAAA;IACjB,oDAAqB,CAAA;AACvB,CAAC,EAHW,2BAA2B,2CAA3B,2BAA2B,QAGtC;AAED,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;IACnB,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;IACrB,6CAAiB,CAAA;IACjB,iDAAqB,CAAA;IACrB,6CAAiB,CAAA;AACnB,CAAC,EARW,wBAAwB,wCAAxB,wBAAwB,QAQnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountDeliveryOption/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// shared-types/src/accountDeliveryOption/index.ts - Account Delivery Option 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountDeliveryOption/index.ts"],"names":[],"mappings":";AAAA,2FAA2F;;;;;;;;;;;;;;;;AAE3F,QAAQ;AACR,0CAAwB"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccountIntegration } from "../accountIntegration/types";
|
|
2
|
-
import { AccountBranch } from "../accountBranch/types";
|
|
3
|
-
/**
|
|
4
|
-
* Entidad AccountDeliveryOption
|
|
5
|
-
* Representa una opción de envío de una cuenta.
|
|
6
|
-
*/
|
|
7
|
-
export interface AccountDeliveryOption {
|
|
8
|
-
id: string;
|
|
9
|
-
accountId: string;
|
|
10
|
-
accountBranchId: string;
|
|
11
|
-
name: string;
|
|
12
|
-
integrationId?: string;
|
|
13
|
-
isScheduled: boolean;
|
|
14
|
-
priceLogic: AccountDeliveryOptionPriceLogic;
|
|
15
|
-
status: AccountDeliveryOptionStatus;
|
|
16
|
-
demo: boolean;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
deletedAt?: Date | null;
|
|
20
|
-
zones: AccountDeliveryOptionZone[];
|
|
21
|
-
integration?: AccountIntegration | null;
|
|
22
|
-
calculatedCost?: AccountDeliveryOptionCalculatedCost | null;
|
|
23
|
-
accountBranch?: AccountBranch | null;
|
|
24
|
-
}
|
|
25
|
-
export declare enum AccountDeliveryOptionPriceLogic {
|
|
26
|
-
FIXED = "FIXED",
|
|
27
|
-
PER_KM = "PER_KM"
|
|
28
|
-
}
|
|
29
|
-
export declare enum AccountDeliveryOptionStatus {
|
|
30
|
-
ACTIVE = "ACTIVE",
|
|
31
|
-
INACTIVE = "INACTIVE"
|
|
32
|
-
}
|
|
33
|
-
export interface AccountDeliveryOptionCalculatedCost {
|
|
34
|
-
basePrice: number;
|
|
35
|
-
distanceKm: number;
|
|
36
|
-
finalPrice: number;
|
|
37
|
-
priceLogic: AccountDeliveryOptionPriceLogic;
|
|
38
|
-
currency: string;
|
|
39
|
-
}
|
|
40
|
-
export interface AccountDeliveryOptionZone {
|
|
41
|
-
id: string;
|
|
42
|
-
accountId: string;
|
|
43
|
-
accountDeliveryOptionId: string;
|
|
44
|
-
name: string;
|
|
45
|
-
price: number;
|
|
46
|
-
priceMin: number;
|
|
47
|
-
area: string;
|
|
48
|
-
status: AccountDeliveryOptionZoneStatus;
|
|
49
|
-
demo: boolean;
|
|
50
|
-
createdAt: Date;
|
|
51
|
-
updatedAt: Date;
|
|
52
|
-
deletedAt?: Date | null;
|
|
53
|
-
}
|
|
54
|
-
export declare enum AccountDeliveryOptionZoneStatus {
|
|
55
|
-
ACTIVE = "ACTIVE",
|
|
56
|
-
INACTIVE = "INACTIVE"
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/accountDeliveryOption/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAA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MAAM,EAAE,+BAA+B,CAAC;IACxC,IAAI,EAAC,OAAO,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED,oBAAY,+BAA+B;IAC1C,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountDeliveryOptionZoneStatus = exports.AccountDeliveryOptionStatus = exports.AccountDeliveryOptionPriceLogic = void 0;
|
|
4
|
-
var AccountDeliveryOptionPriceLogic;
|
|
5
|
-
(function (AccountDeliveryOptionPriceLogic) {
|
|
6
|
-
AccountDeliveryOptionPriceLogic["FIXED"] = "FIXED";
|
|
7
|
-
AccountDeliveryOptionPriceLogic["PER_KM"] = "PER_KM";
|
|
8
|
-
})(AccountDeliveryOptionPriceLogic || (exports.AccountDeliveryOptionPriceLogic = AccountDeliveryOptionPriceLogic = {}));
|
|
9
|
-
var AccountDeliveryOptionStatus;
|
|
10
|
-
(function (AccountDeliveryOptionStatus) {
|
|
11
|
-
AccountDeliveryOptionStatus["ACTIVE"] = "ACTIVE";
|
|
12
|
-
AccountDeliveryOptionStatus["INACTIVE"] = "INACTIVE";
|
|
13
|
-
})(AccountDeliveryOptionStatus || (exports.AccountDeliveryOptionStatus = AccountDeliveryOptionStatus = {}));
|
|
14
|
-
var AccountDeliveryOptionZoneStatus;
|
|
15
|
-
(function (AccountDeliveryOptionZoneStatus) {
|
|
16
|
-
AccountDeliveryOptionZoneStatus["ACTIVE"] = "ACTIVE";
|
|
17
|
-
AccountDeliveryOptionZoneStatus["INACTIVE"] = "INACTIVE";
|
|
18
|
-
})(AccountDeliveryOptionZoneStatus || (exports.AccountDeliveryOptionZoneStatus = AccountDeliveryOptionZoneStatus = {}));
|
|
19
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/accountDeliveryOption/types.ts"],"names":[],"mappings":";;;AA6BA,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IAC1C,kDAAe,CAAA;IACf,oDAAiB,CAAA;AAClB,CAAC,EAHW,+BAA+B,+CAA/B,+BAA+B,QAG1C;AAED,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACtC,gDAAiB,CAAA;IACjB,oDAAqB,CAAA;AACtB,CAAC,EAHW,2BAA2B,2CAA3B,2BAA2B,QAGtC;AA0BD,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IAC1C,oDAAiB,CAAA;IACjB,wDAAqB,CAAA;AACtB,CAAC,EAHW,+BAA+B,+CAA/B,+BAA+B,QAG1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountDomain/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// shared-types/src/accountDomain/index.ts - Account Domain 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountDomain/index.ts"],"names":[],"mappings":";AAAA,0EAA0E;;;;;;;;;;;;;;;;AAE1E,QAAQ;AACR,0CAAwB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entidad AccountDomain
|
|
3
|
-
* Representa un dominio personalizado asociado a una cuenta.
|
|
4
|
-
* Permite dominios completos y subdominios, con control de estado y verificación.
|
|
5
|
-
*/
|
|
6
|
-
export interface AccountDomain {
|
|
7
|
-
id: string;
|
|
8
|
-
accountId: string;
|
|
9
|
-
domain: string; /** Dominio completo (ej: example.com) */
|
|
10
|
-
subdomain?: string; /** Subdominio opcional (ej: shop, blog) */
|
|
11
|
-
isPrimary: boolean; /** Indica si este es el dominio principal de la cuenta */
|
|
12
|
-
status: AccountDomainStatus; /** Estado del dominio: PENDING, ACTIVE, INACTIVE */
|
|
13
|
-
verifiedAt?: Date; /** Fecha de verificación del dominio */
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
|
-
deletedAt?: Date | null;
|
|
17
|
-
}
|
|
18
|
-
export declare enum AccountDomainStatus {
|
|
19
|
-
PENDING = "PENDING",
|
|
20
|
-
ACTIVE = "ACTIVE",
|
|
21
|
-
INACTIVE = "INACTIVE"
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/accountDomain/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,CAAC,yCAAyC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC,CAAA,2CAA2C;IAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,0DAA0D;IAC9E,MAAM,EAAE,mBAAmB,CAAC,CAAC,oDAAoD;IACjF,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC,wCAAwC;IAE3D,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Entidad AccountDomain
|
|
4
|
-
* Representa un dominio personalizado asociado a una cuenta.
|
|
5
|
-
* Permite dominios completos y subdominios, con control de estado y verificación.
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AccountDomainStatus = void 0;
|
|
9
|
-
var AccountDomainStatus;
|
|
10
|
-
(function (AccountDomainStatus) {
|
|
11
|
-
AccountDomainStatus["PENDING"] = "PENDING";
|
|
12
|
-
AccountDomainStatus["ACTIVE"] = "ACTIVE";
|
|
13
|
-
AccountDomainStatus["INACTIVE"] = "INACTIVE";
|
|
14
|
-
})(AccountDomainStatus || (exports.AccountDomainStatus = AccountDomainStatus = {}));
|
|
15
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/accountDomain/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAgBH,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACvB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountIntegration/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// shared-types/src/accountIntegration/index.ts - Account Integration 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountIntegration/index.ts"],"names":[],"mappings":";AAAA,oFAAoF;;;;;;;;;;;;;;;;AAEpF,QAAQ;AACR,0CAAwB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entidad AccountIntegration
|
|
3
|
-
* Contiene información de la integración y sus credenciales.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum AccountIntegrationStatus {
|
|
6
|
-
ACTIVE = "ACTIVE",
|
|
7
|
-
INACTIVE = "INACTIVE",
|
|
8
|
-
BETA = "BETA",
|
|
9
|
-
DEPRECATED = "DEPRECATED"
|
|
10
|
-
}
|
|
11
|
-
export declare enum AccountIntegrationEnvironment {
|
|
12
|
-
PRODUCTION = "PRODUCTION",
|
|
13
|
-
STAGING = "STAGING",
|
|
14
|
-
DEVELOPMENT = "DEVELOPMENT"
|
|
15
|
-
}
|
|
16
|
-
export interface AccountIntegration {
|
|
17
|
-
id: string;
|
|
18
|
-
accountId: string;
|
|
19
|
-
integrationId: string;
|
|
20
|
-
settings: Object | null;
|
|
21
|
-
status: AccountIntegrationStatus;
|
|
22
|
-
environment: AccountIntegrationEnvironment;
|
|
23
|
-
demo: boolean;
|
|
24
|
-
createdAt: Date;
|
|
25
|
-
updatedAt: Date;
|
|
26
|
-
deletedAt?: Date | null;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/accountIntegration/types.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,oBAAY,wBAAwB;IACnC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,UAAU,eAAe;CACzB;AAED,oBAAY,6BAA6B;IACxC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC3B;AAED,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,wBAAwB,CAAC;IACjC,WAAW,EAAE,6BAA6B,CAAC;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Entidad AccountIntegration
|
|
4
|
-
* Contiene información de la integración y sus credenciales.
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.AccountIntegrationEnvironment = exports.AccountIntegrationStatus = void 0;
|
|
8
|
-
var AccountIntegrationStatus;
|
|
9
|
-
(function (AccountIntegrationStatus) {
|
|
10
|
-
AccountIntegrationStatus["ACTIVE"] = "ACTIVE";
|
|
11
|
-
AccountIntegrationStatus["INACTIVE"] = "INACTIVE";
|
|
12
|
-
AccountIntegrationStatus["BETA"] = "BETA";
|
|
13
|
-
AccountIntegrationStatus["DEPRECATED"] = "DEPRECATED";
|
|
14
|
-
})(AccountIntegrationStatus || (exports.AccountIntegrationStatus = AccountIntegrationStatus = {}));
|
|
15
|
-
var AccountIntegrationEnvironment;
|
|
16
|
-
(function (AccountIntegrationEnvironment) {
|
|
17
|
-
AccountIntegrationEnvironment["PRODUCTION"] = "PRODUCTION";
|
|
18
|
-
AccountIntegrationEnvironment["STAGING"] = "STAGING";
|
|
19
|
-
AccountIntegrationEnvironment["DEVELOPMENT"] = "DEVELOPMENT";
|
|
20
|
-
})(AccountIntegrationEnvironment || (exports.AccountIntegrationEnvironment = AccountIntegrationEnvironment = {}));
|
|
21
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/accountIntegration/types.ts"],"names":[],"mappings":";AACA;;;GAGG;;;AAEH,IAAY,wBAKX;AALD,WAAY,wBAAwB;IACnC,6CAAiB,CAAA;IACjB,iDAAqB,CAAA;IACrB,yCAAa,CAAA;IACb,qDAAyB,CAAA;AAC1B,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,QAKnC;AAED,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACxC,0DAAyB,CAAA;IACzB,oDAAmB,CAAA;IACnB,4DAA2B,CAAA;AAC5B,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC"}
|
package/dist/cart/dto.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add an item to the cart
|
|
3
|
-
*/
|
|
4
|
-
export interface CartItemAddDto {
|
|
5
|
-
cartId: string;
|
|
6
|
-
productId: string;
|
|
7
|
-
variantId?: string;
|
|
8
|
-
quantity: number;
|
|
9
|
-
attributes?: {
|
|
10
|
-
[key: string]: string | number;
|
|
11
|
-
};
|
|
12
|
-
userEmail?: string;
|
|
13
|
-
userId?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Update an item in the cart
|
|
17
|
-
*/
|
|
18
|
-
export interface CartItemUpdateDto {
|
|
19
|
-
cartId: string;
|
|
20
|
-
itemId: string;
|
|
21
|
-
quantity: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Remove an item from the cart
|
|
25
|
-
*/
|
|
26
|
-
export interface CartItemRemoveDto {
|
|
27
|
-
cartId: string;
|
|
28
|
-
itemId: string;
|
|
29
|
-
}
|
|
30
|
-
export interface CartUpdateDto {
|
|
31
|
-
cartId: string;
|
|
32
|
-
customer: {
|
|
33
|
-
email: string;
|
|
34
|
-
};
|
|
35
|
-
delivery: {
|
|
36
|
-
type: 'shipping' | 'pickup';
|
|
37
|
-
deliveryOptionId?: string;
|
|
38
|
-
pickupBranchId?: string;
|
|
39
|
-
firstname: string;
|
|
40
|
-
lastname: string;
|
|
41
|
-
phone: {
|
|
42
|
-
countryCode: string;
|
|
43
|
-
national: string;
|
|
44
|
-
international: string;
|
|
45
|
-
type: string;
|
|
46
|
-
validated: boolean;
|
|
47
|
-
};
|
|
48
|
-
address: {
|
|
49
|
-
country: string;
|
|
50
|
-
department: string;
|
|
51
|
-
locality: string;
|
|
52
|
-
street: string;
|
|
53
|
-
complement?: string;
|
|
54
|
-
notes?: string;
|
|
55
|
-
postalCode: string;
|
|
56
|
-
mapPosition: {
|
|
57
|
-
lat: number;
|
|
58
|
-
lng: number;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
billing: {
|
|
63
|
-
name: string;
|
|
64
|
-
address: string;
|
|
65
|
-
city: string;
|
|
66
|
-
department: string;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Confirm a cart
|
|
71
|
-
*/
|
|
72
|
-
export interface CartConfirmDto {
|
|
73
|
-
cartId: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Validation information for a cart item
|
|
77
|
-
*/
|
|
78
|
-
export interface CartItemValidation {
|
|
79
|
-
hasIssues: boolean;
|
|
80
|
-
issues: string[];
|
|
81
|
-
errorCode?: CartItemErrorCode;
|
|
82
|
-
currentPrice?: number;
|
|
83
|
-
availableStock?: number;
|
|
84
|
-
isProductActive?: boolean;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Error codes for cart items
|
|
88
|
-
*/
|
|
89
|
-
export declare enum CartItemErrorCode {
|
|
90
|
-
PRICE_INCREASED = "PRICE_INCREASED",// Precio aumentó
|
|
91
|
-
PRICE_DECREASED = "PRICE_DECREASED",// Precio disminuyó
|
|
92
|
-
PRODUCT_INACTIVE = "PRODUCT_INACTIVE",// Producto ya no está disponible
|
|
93
|
-
STOCK_INSUFFICIENT = "STOCK_INSUFFICIENT",// Stock insuficiente (hay algo disponible)
|
|
94
|
-
STOCK_UNAVAILABLE = "STOCK_UNAVAILABLE",// Sin stock (0 disponible)
|
|
95
|
-
VALIDATION_ERROR = "VALIDATION_ERROR"
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=dto.d.ts.map
|
package/dist/cart/dto.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"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ACjB,MAAM,EAAE,MAAM,CAAC;YACf,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,UAAU,EAAE,MAAM,CAAC;YACnB,WAAW,EAAE;gBACT,GAAG,EAAE,MAAM,CAAC;gBACZ,GAAG,EAAE,MAAM,CAAC;aACf,CAAC;SACL,CAAC;KACL,CAAC;IACF,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;CACL;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,oBAAY,iBAAiB;IACzB,eAAe,oBAAoB,CAAY,iBAAiB;IAChE,eAAe,oBAAoB,CAAY,qBAAqB;IACpE,gBAAgB,qBAAqB,CAAU,iCAAiC;IAChF,kBAAkB,uBAAuB,CAAM,2CAA2C;IAC1F,iBAAiB,sBAAsB,CAAQ,2BAA2B;IAC1E,gBAAgB,qBAAqB;CACxC"}
|
package/dist/cart/dto.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CartItemErrorCode = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Error codes for cart items
|
|
6
|
-
*/
|
|
7
|
-
var CartItemErrorCode;
|
|
8
|
-
(function (CartItemErrorCode) {
|
|
9
|
-
CartItemErrorCode["PRICE_INCREASED"] = "PRICE_INCREASED";
|
|
10
|
-
CartItemErrorCode["PRICE_DECREASED"] = "PRICE_DECREASED";
|
|
11
|
-
CartItemErrorCode["PRODUCT_INACTIVE"] = "PRODUCT_INACTIVE";
|
|
12
|
-
CartItemErrorCode["STOCK_INSUFFICIENT"] = "STOCK_INSUFFICIENT";
|
|
13
|
-
CartItemErrorCode["STOCK_UNAVAILABLE"] = "STOCK_UNAVAILABLE";
|
|
14
|
-
CartItemErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR"; // Error general de validación
|
|
15
|
-
})(CartItemErrorCode || (exports.CartItemErrorCode = CartItemErrorCode = {}));
|
|
16
|
-
//# sourceMappingURL=dto.js.map
|
package/dist/cart/dto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dto.js","sourceRoot":"","sources":["../../src/cart/dto.ts"],"names":[],"mappings":";;;AA0FA;;GAEG;AACH,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,wDAAmC,CAAA;IACnC,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,8DAAyC,CAAA;IACzC,4DAAuC,CAAA;IACvC,0DAAqC,CAAA,CAAU,8BAA8B;AACjF,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B"}
|
package/dist/cart/index.d.ts
DELETED
package/dist/cart/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cart/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|
package/dist/cart/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// shared-types/src/cart/index.ts - Cart 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
|
-
__exportStar(require("./dto"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cart/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cart/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAEvD,QAAQ;AACR,0CAAwB;AACxB,wCAAsB"}
|
package/dist/cart/types.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CartItemValidation } from "./dto";
|
|
2
|
-
/**
|
|
3
|
-
* Entidad Cart
|
|
4
|
-
* Define el carrito de compras de un cliente en el sitio web.
|
|
5
|
-
*/
|
|
6
|
-
export interface Cart {
|
|
7
|
-
id: string;
|
|
8
|
-
code: string;
|
|
9
|
-
customerId?: string;
|
|
10
|
-
sessionId?: string;
|
|
11
|
-
items: CartItem[];
|
|
12
|
-
subtotal: number;
|
|
13
|
-
total: number;
|
|
14
|
-
currency: string;
|
|
15
|
-
itemCount: number;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
status: CartStatus;
|
|
19
|
-
source: CartSource;
|
|
20
|
-
recoveryToken?: string;
|
|
21
|
-
userEmail?: string;
|
|
22
|
-
userId?: string;
|
|
23
|
-
customerNote?: string;
|
|
24
|
-
hasIssues: boolean;
|
|
25
|
-
issuesCount: number;
|
|
26
|
-
subtotalPrice?: number;
|
|
27
|
-
totalDiscounts?: number;
|
|
28
|
-
totalShippingPrice?: number;
|
|
29
|
-
totalTax?: number;
|
|
30
|
-
totalPrice?: number;
|
|
31
|
-
taxDetails?: any;
|
|
32
|
-
}
|
|
33
|
-
export interface CartItem {
|
|
34
|
-
id: string;
|
|
35
|
-
productId: string;
|
|
36
|
-
productVariantId: string;
|
|
37
|
-
name: string;
|
|
38
|
-
unitPrice: number;
|
|
39
|
-
quantity: number;
|
|
40
|
-
image?: string;
|
|
41
|
-
thumbnailUrl?: string;
|
|
42
|
-
sku?: string;
|
|
43
|
-
attributeDetails: CartItemAttributeDetail[];
|
|
44
|
-
validation?: CartItemValidation;
|
|
45
|
-
}
|
|
46
|
-
export interface CartItemAttributeDetail {
|
|
47
|
-
name: string;
|
|
48
|
-
value: string;
|
|
49
|
-
type?: string;
|
|
50
|
-
}
|
|
51
|
-
export declare enum CartStatus {
|
|
52
|
-
ACTIVE = "ACTIVE",
|
|
53
|
-
LOCKED = "LOCKED",
|
|
54
|
-
EXPIRED = "EXPIRED",
|
|
55
|
-
CONVERTED = "CONVERTED",
|
|
56
|
-
ABANDONED = "ABANDONED",
|
|
57
|
-
MERGED = "MERGED"
|
|
58
|
-
}
|
|
59
|
-
export declare enum CartSource {
|
|
60
|
-
WEB = "WEB",
|
|
61
|
-
POS = "POS",
|
|
62
|
-
API = "API"
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/cart/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cart/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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,gBAAgB,EAAE,uBAAuB,EAAE,CAAC;IAE5C,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAGD,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,UAAU;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;CACpB;AAED,oBAAY,UAAU;IAClB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd"}
|
package/dist/cart/types.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CartSource = exports.CartStatus = void 0;
|
|
4
|
-
var CartStatus;
|
|
5
|
-
(function (CartStatus) {
|
|
6
|
-
CartStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
-
CartStatus["LOCKED"] = "LOCKED";
|
|
8
|
-
CartStatus["EXPIRED"] = "EXPIRED";
|
|
9
|
-
CartStatus["CONVERTED"] = "CONVERTED";
|
|
10
|
-
CartStatus["ABANDONED"] = "ABANDONED";
|
|
11
|
-
CartStatus["MERGED"] = "MERGED";
|
|
12
|
-
})(CartStatus || (exports.CartStatus = CartStatus = {}));
|
|
13
|
-
var CartSource;
|
|
14
|
-
(function (CartSource) {
|
|
15
|
-
CartSource["WEB"] = "WEB";
|
|
16
|
-
CartSource["POS"] = "POS";
|
|
17
|
-
CartSource["API"] = "API";
|
|
18
|
-
})(CartSource || (exports.CartSource = CartSource = {}));
|
|
19
|
-
//# sourceMappingURL=types.js.map
|
package/dist/cart/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/cart/types.ts"],"names":[],"mappings":";;;AA0DA,IAAY,UAOX;AAPD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,+BAAiB,CAAA;AACrB,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBAAW,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
package/dist/common/Address.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface Address {
|
|
2
|
-
country: string;
|
|
3
|
-
department: string;
|
|
4
|
-
locality: string;
|
|
5
|
-
street: string;
|
|
6
|
-
number: string;
|
|
7
|
-
mapPosition?: MapPosition;
|
|
8
|
-
}
|
|
9
|
-
export interface MapPosition {
|
|
10
|
-
lat: number;
|
|
11
|
-
lng: number;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Address.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../src/common/Address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
|
package/dist/common/Address.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../src/common/Address.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface BaseEntity {
|
|
2
|
-
id: string;
|
|
3
|
-
createdAt: Date;
|
|
4
|
-
updatedAt: Date;
|
|
5
|
-
deletedAt?: Date;
|
|
6
|
-
}
|
|
7
|
-
export interface BaseEntityWithAccount extends BaseEntity {
|
|
8
|
-
accountId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface BaseEntityWithUser extends BaseEntity {
|
|
11
|
-
userId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface BaseEntityWithAccountAndUser extends BaseEntityWithAccount {
|
|
14
|
-
userId: string;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=BaseEntity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEntity.d.ts","sourceRoot":"","sources":["../../src/common/BaseEntity.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACrD,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IAClD,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;IACvE,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEntity.js","sourceRoot":"","sources":["../../src/common/BaseEntity.ts"],"names":[],"mappings":";AAAA,iFAAiF"}
|