@retaila/shared-types 1.0.7 → 1.1.0
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
package/dist/account/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface Account {
|
|
|
11
11
|
email: string;
|
|
12
12
|
timezone: string;
|
|
13
13
|
hasDelivery: boolean;
|
|
14
|
-
status:
|
|
14
|
+
status: AccountStatus;
|
|
15
15
|
themeConfig?: ThemeConfig;
|
|
16
16
|
privateKey?: string;
|
|
17
17
|
demo: boolean;
|
|
@@ -19,6 +19,12 @@ export interface Account {
|
|
|
19
19
|
updatedAt: Date;
|
|
20
20
|
deletedAt?: Date;
|
|
21
21
|
}
|
|
22
|
+
export declare enum AccountStatus {
|
|
23
|
+
ACTIVE = "ACTIVE",
|
|
24
|
+
INACTIVE = "INACTIVE",
|
|
25
|
+
PENDING = "PENDING",
|
|
26
|
+
SUSPENDED = "SUSPENDED"
|
|
27
|
+
}
|
|
22
28
|
export interface ThemeConfig {
|
|
23
29
|
backgroundColor: string;
|
|
24
30
|
textColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/account/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/account/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
package/dist/account/types.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// shared-types/src/account/types.ts - Account entity types
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AccountStatus = void 0;
|
|
5
|
+
var AccountStatus;
|
|
6
|
+
(function (AccountStatus) {
|
|
7
|
+
AccountStatus["ACTIVE"] = "ACTIVE";
|
|
8
|
+
AccountStatus["INACTIVE"] = "INACTIVE";
|
|
9
|
+
AccountStatus["PENDING"] = "PENDING";
|
|
10
|
+
AccountStatus["SUSPENDED"] = "SUSPENDED";
|
|
11
|
+
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
4
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/account/types.ts"],"names":[],"mappings":";AAAA,2DAA2D"}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/account/types.ts"],"names":[],"mappings":";AAAA,2DAA2D;;;AAwB3D,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountBranch/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared-types/src/accountBranch/index.ts - Account Branch 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/accountBranch/index.ts"],"names":[],"mappings":";AAAA,0EAA0E;;;;;;;;;;;;;;;;AAE1E,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AccountDeliveryOption } from "../accountDeliveryOption/types";
|
|
2
|
+
import { Address, MapPosition, Phone } from "../common";
|
|
3
|
+
/**
|
|
4
|
+
* Entidad AccountBranch
|
|
5
|
+
* Representa una sucursal de una cuenta.
|
|
6
|
+
*/
|
|
7
|
+
export interface AccountBranch {
|
|
8
|
+
id: string;
|
|
9
|
+
accountId: string;
|
|
10
|
+
name: string;
|
|
11
|
+
address?: Address;
|
|
12
|
+
addressInstructions?: string;
|
|
13
|
+
addressCoordinates?: MapPosition | null;
|
|
14
|
+
phone?: Phone | null;
|
|
15
|
+
email?: string | null;
|
|
16
|
+
demo: boolean;
|
|
17
|
+
status: AccountBranchStatus;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
deletedAt?: Date | null;
|
|
21
|
+
schedule: AccountBranchSchedule[];
|
|
22
|
+
deliveryOptions: AccountDeliveryOption[];
|
|
23
|
+
}
|
|
24
|
+
export declare enum AccountBranchStatus {
|
|
25
|
+
ACTIVE = "ACTIVE",
|
|
26
|
+
INACTIVE = "INACTIVE"
|
|
27
|
+
}
|
|
28
|
+
export interface AccountBranchSchedule {
|
|
29
|
+
id: string;
|
|
30
|
+
accountBranchId: string;
|
|
31
|
+
day: AccountBranchScheduleDay;
|
|
32
|
+
start: number;
|
|
33
|
+
end: number;
|
|
34
|
+
status: AccountBranchScheduleStatus;
|
|
35
|
+
demo: boolean;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
updatedAt: Date;
|
|
38
|
+
deletedAt?: Date | null;
|
|
39
|
+
}
|
|
40
|
+
export declare enum AccountBranchScheduleStatus {
|
|
41
|
+
ACTIVE = "ACTIVE",
|
|
42
|
+
INACTIVE = "INACTIVE"
|
|
43
|
+
}
|
|
44
|
+
export declare enum AccountBranchScheduleDay {
|
|
45
|
+
MONDAY = "MONDAY",
|
|
46
|
+
TUESDAY = "TUESDAY",
|
|
47
|
+
WEDNESDAY = "WEDNESDAY",
|
|
48
|
+
THURSDAY = "THURSDAY",
|
|
49
|
+
FRIDAY = "FRIDAY",
|
|
50
|
+
SATURDAY = "SATURDAY",
|
|
51
|
+
SUNDAY = "SUNDAY"
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/accountBranch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAExD;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAC,OAAO,CAAC;IACb,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;IAClC,eAAe,EAAE,qBAAqB,EAAE,CAAC;CAC1C;AAED,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAGD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,2BAA2B,CAAC;IACpC,IAAI,EAAC,OAAO,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,oBAAY,2BAA2B;IACrC,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,wBAAwB;IAClC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountDeliveryOption/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountDeliveryOption/index.ts"],"names":[],"mappings":";AAAA,2FAA2F;;;;;;;;;;;;;;;;AAE3F,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/accountDeliveryOption/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,+BAA+B,CAAC;IAC5C,MAAM,EAAE,2BAA2B,CAAC;IACpC,IAAI,EAAC,OAAO,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAExB,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,mCAAmC,GAAG,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACrC;AAED,oBAAY,+BAA+B;IAC1C,KAAK,UAAU;IACf,MAAM,WAAW;CACjB;AAED,oBAAY,2BAA2B;IACtC,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED,MAAM,WAAW,mCAAmC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,+BAA+B,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,yBAAyB;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB,EAAE,MAAM,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountDomain/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountDomain/index.ts"],"names":[],"mappings":";AAAA,0EAA0E;;;;;;;;;;;;;;;;AAE1E,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accountIntegration/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountIntegration/index.ts"],"names":[],"mappings":";AAAA,oFAAoF;;;;;;;;;;;;;;;;AAEpF,QAAQ;AACR,0CAAwB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../src/cart/dto.ts"],"names":[],"mappings":"AACA;;EAEE;AACF,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;QAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE;YACH,WAAW,EAAE,MAAM,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;YACjB,aAAa,EAAE,MAAM,CAAC;YACtB,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,EAAE,OAAO,CAAC;SACtB,CAAC;QACF,OAAO,EAAE;YACL,OAAO,EAAE,MAAM,CAAC;YAChB,UAAU,EAAE,MAAM,CAAC;YACnB,QAAQ,EAAE,MAAM,CAAC;YACjB,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
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cart/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cart/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAEvD,QAAQ;AACR,0CAAwB;AACxB,wCAAsB"}
|