@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/common/Currency.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,QAAQ,GAAG,MAAM,CAUhE"}
|
package/dist/common/Currency.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Currency = void 0;
|
|
4
|
-
exports.getCurrencySymbol = getCurrencySymbol;
|
|
5
|
-
var Currency;
|
|
6
|
-
(function (Currency) {
|
|
7
|
-
Currency["USD"] = "USD";
|
|
8
|
-
Currency["EUR"] = "EUR";
|
|
9
|
-
Currency["UYU"] = "UYU";
|
|
10
|
-
Currency["ARS"] = "ARS";
|
|
11
|
-
Currency["BRL"] = "BRL";
|
|
12
|
-
})(Currency || (exports.Currency = Currency = {}));
|
|
13
|
-
function getCurrencySymbol(currencyCode) {
|
|
14
|
-
const currencySymbols = {
|
|
15
|
-
[Currency.USD]: 'U$S',
|
|
16
|
-
[Currency.EUR]: '€',
|
|
17
|
-
[Currency.UYU]: '$',
|
|
18
|
-
[Currency.ARS]: '$',
|
|
19
|
-
[Currency.BRL]: 'R$',
|
|
20
|
-
};
|
|
21
|
-
return currencySymbols[currencyCode] || currencyCode.toString();
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=Currency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/common/Currency.ts"],"names":[],"mappings":";;;AAQA,8CAUC;AAlBD,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AAED,SAAgB,iBAAiB,CAAC,YAAsB;IACtD,MAAM,eAAe,GAA8B;QAC/C,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK;QACrB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;QACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;QACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;QACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI;KACvB,CAAC;IAEF,OAAO,eAAe,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;AAClE,CAAC"}
|
package/dist/common/Media.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entidad Media
|
|
3
|
-
* Se utiliza para almacenar y gestionar archivos y recursos multimedia.
|
|
4
|
-
*/
|
|
5
|
-
export interface Media {
|
|
6
|
-
id: string;
|
|
7
|
-
accountId: string;
|
|
8
|
-
filename: string;
|
|
9
|
-
url: string;
|
|
10
|
-
thumbnailUrl: string;
|
|
11
|
-
mimeType: string;
|
|
12
|
-
extension: string;
|
|
13
|
-
size: number;
|
|
14
|
-
type: MediaType;
|
|
15
|
-
altText: string;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
deletedAt?: Date | null;
|
|
19
|
-
}
|
|
20
|
-
export declare enum MediaType {
|
|
21
|
-
IMAGE = "IMAGE",
|
|
22
|
-
VIDEO = "VIDEO",
|
|
23
|
-
DOCUMENT = "DOCUMENT",
|
|
24
|
-
AUDIO = "AUDIO",
|
|
25
|
-
ARCHIVE = "ARCHIVE",
|
|
26
|
-
OTHER = "OTHER"
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=Media.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Media.d.ts","sourceRoot":"","sources":["../../src/common/Media.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB"}
|
package/dist/common/Media.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Entidad Media
|
|
4
|
-
* Se utiliza para almacenar y gestionar archivos y recursos multimedia.
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.MediaType = void 0;
|
|
8
|
-
var MediaType;
|
|
9
|
-
(function (MediaType) {
|
|
10
|
-
MediaType["IMAGE"] = "IMAGE";
|
|
11
|
-
MediaType["VIDEO"] = "VIDEO";
|
|
12
|
-
MediaType["DOCUMENT"] = "DOCUMENT";
|
|
13
|
-
MediaType["AUDIO"] = "AUDIO";
|
|
14
|
-
MediaType["ARCHIVE"] = "ARCHIVE";
|
|
15
|
-
MediaType["OTHER"] = "OTHER";
|
|
16
|
-
})(MediaType || (exports.MediaType = MediaType = {}));
|
|
17
|
-
//# sourceMappingURL=Media.js.map
|
package/dist/common/Media.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Media.js","sourceRoot":"","sources":["../../src/common/Media.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAkBH,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB"}
|
package/dist/common/Phone.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../src/common/Phone.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/common/Phone.js
DELETED
package/dist/common/Phone.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Phone.js","sourceRoot":"","sources":["../../src/common/Phone.ts"],"names":[],"mappings":""}
|
package/dist/common/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
package/dist/common/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// shared-types/src/common/index.ts - Common types 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
|
-
__exportStar(require("./BaseEntity"), exports);
|
|
19
|
-
__exportStar(require("./Address"), exports);
|
|
20
|
-
__exportStar(require("./Media"), exports);
|
|
21
|
-
__exportStar(require("./Phone"), exports);
|
|
22
|
-
__exportStar(require("./Currency"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
package/dist/common/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";AAAA,0DAA0D;;;;;;;;;;;;;;;;AAE1D,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// shared-types/src/integration/index.ts - 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/integration/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;;;;;;;;;;;;;;;;AAErE,QAAQ;AACR,0CAAwB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entidad Integration
|
|
3
|
-
* Define las integraciones de terceros disponibles en la plataforma (ej. pasarelas de pago, transportistas).
|
|
4
|
-
* Almacena información sobre el proveedor, categoría y esquema de parámetros requeridos.
|
|
5
|
-
*/
|
|
6
|
-
export declare enum IntegrationCategory {
|
|
7
|
-
PAYMENT_GATEWAY = "PAYMENT_GATEWAY",
|
|
8
|
-
SHIPPING_CARRIER = "SHIPPING_CARRIER",
|
|
9
|
-
MARKETPLACE = "MARKETPLACE",
|
|
10
|
-
EMAIL_MARKETING = "EMAIL_MARKETING",
|
|
11
|
-
ANALYTICS = "ANALYTICS",
|
|
12
|
-
ACCOUNTING = "ACCOUNTING",
|
|
13
|
-
SOCIAL_MEDIA = "SOCIAL_MEDIA",
|
|
14
|
-
OTHER = "OTHER"
|
|
15
|
-
}
|
|
16
|
-
export declare enum IntegrationStatus {
|
|
17
|
-
ACTIVE = "ACTIVE",
|
|
18
|
-
INACTIVE = "INACTIVE",
|
|
19
|
-
BETA = "BETA",
|
|
20
|
-
DEPRECATED = "DEPRECATED"
|
|
21
|
-
}
|
|
22
|
-
export interface Integration {
|
|
23
|
-
id: string;
|
|
24
|
-
category: IntegrationCategory;
|
|
25
|
-
providerKey: string;
|
|
26
|
-
name: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
setupInstructions?: string;
|
|
29
|
-
logoUrl?: string;
|
|
30
|
-
requiredParamsSchema?: any;
|
|
31
|
-
status: IntegrationStatus;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
updatedAt: Date;
|
|
34
|
-
deletedAt?: Date | null;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/integration/types.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,oBAAY,mBAAmB;IAC9B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CACf;AAED,oBAAY,iBAAiB;IAC5B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,UAAU,eAAe;CACzB;AAED,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Entidad Integration
|
|
4
|
-
* Define las integraciones de terceros disponibles en la plataforma (ej. pasarelas de pago, transportistas).
|
|
5
|
-
* Almacena información sobre el proveedor, categoría y esquema de parámetros requeridos.
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.IntegrationStatus = exports.IntegrationCategory = void 0;
|
|
9
|
-
var IntegrationCategory;
|
|
10
|
-
(function (IntegrationCategory) {
|
|
11
|
-
IntegrationCategory["PAYMENT_GATEWAY"] = "PAYMENT_GATEWAY";
|
|
12
|
-
IntegrationCategory["SHIPPING_CARRIER"] = "SHIPPING_CARRIER";
|
|
13
|
-
IntegrationCategory["MARKETPLACE"] = "MARKETPLACE";
|
|
14
|
-
IntegrationCategory["EMAIL_MARKETING"] = "EMAIL_MARKETING";
|
|
15
|
-
IntegrationCategory["ANALYTICS"] = "ANALYTICS";
|
|
16
|
-
IntegrationCategory["ACCOUNTING"] = "ACCOUNTING";
|
|
17
|
-
IntegrationCategory["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
|
|
18
|
-
IntegrationCategory["OTHER"] = "OTHER";
|
|
19
|
-
})(IntegrationCategory || (exports.IntegrationCategory = IntegrationCategory = {}));
|
|
20
|
-
var IntegrationStatus;
|
|
21
|
-
(function (IntegrationStatus) {
|
|
22
|
-
IntegrationStatus["ACTIVE"] = "ACTIVE";
|
|
23
|
-
IntegrationStatus["INACTIVE"] = "INACTIVE";
|
|
24
|
-
IntegrationStatus["BETA"] = "BETA";
|
|
25
|
-
IntegrationStatus["DEPRECATED"] = "DEPRECATED";
|
|
26
|
-
})(IntegrationStatus || (exports.IntegrationStatus = IntegrationStatus = {}));
|
|
27
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/integration/types.ts"],"names":[],"mappings":";AACA;;;;GAIG;;;AAEH,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC9B,0DAAmC,CAAA;IACnC,4DAAqC,CAAA;IACrC,kDAA2B,CAAA;IAC3B,0DAAmC,CAAA;IACnC,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oDAA6B,CAAA;IAC7B,sCAAe,CAAA;AAChB,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,8CAAyB,CAAA;AAC1B,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
|
package/dist/order/dto.d.ts
DELETED
package/dist/order/dto.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../src/order/dto.ts"],"names":[],"mappings":"AACA;;EAEE;AACF,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/dist/order/dto.js
DELETED
package/dist/order/dto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dto.js","sourceRoot":"","sources":["../../src/order/dto.ts"],"names":[],"mappings":""}
|
package/dist/order/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|
package/dist/order/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/order/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAEvD,QAAQ;AACR,0CAAwB;AACxB,wCAAsB"}
|
package/dist/order/types.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { Currency } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
* Entidad Order
|
|
4
|
-
* Define la orden de compra de un cliente en el sitio web.
|
|
5
|
-
*/
|
|
6
|
-
export interface Order {
|
|
7
|
-
id: string;
|
|
8
|
-
accountId: string;
|
|
9
|
-
customerId: string;
|
|
10
|
-
cartId?: string;
|
|
11
|
-
code: string;
|
|
12
|
-
deliveryType?: 'shipping' | 'pickup';
|
|
13
|
-
deliveryFirstName?: string;
|
|
14
|
-
deliveryLastName?: string;
|
|
15
|
-
deliveryAddress?: any;
|
|
16
|
-
deliveryPhone?: any;
|
|
17
|
-
deliveryOptionId?: string;
|
|
18
|
-
pickupBranchId?: string;
|
|
19
|
-
paymentMethodIntegrationId?: string;
|
|
20
|
-
billingInformation?: any;
|
|
21
|
-
currency: Currency;
|
|
22
|
-
subtotalPrice: number;
|
|
23
|
-
totalDiscounts: number;
|
|
24
|
-
totalShippingPrice: number;
|
|
25
|
-
totalTax: number;
|
|
26
|
-
taxDetails?: any;
|
|
27
|
-
totalPrice: number;
|
|
28
|
-
totalRefunded: number;
|
|
29
|
-
status: OrderStatus;
|
|
30
|
-
paymentStatus: OrderPaymentStatus;
|
|
31
|
-
fulfillmentStatus: OrderFulfillmentStatus;
|
|
32
|
-
statusHistory?: StatusChangeHistory[];
|
|
33
|
-
customerNote?: string;
|
|
34
|
-
internalNote?: string;
|
|
35
|
-
source: OrderSource;
|
|
36
|
-
demo: boolean;
|
|
37
|
-
createdAt: Date;
|
|
38
|
-
updatedAt: Date;
|
|
39
|
-
cancelledAt?: Date;
|
|
40
|
-
cancelReason?: string;
|
|
41
|
-
deletedAt?: Date;
|
|
42
|
-
items?: OrderItem[];
|
|
43
|
-
}
|
|
44
|
-
export interface OrderItem {
|
|
45
|
-
id: string;
|
|
46
|
-
accountId: string;
|
|
47
|
-
orderId: string;
|
|
48
|
-
productId: string;
|
|
49
|
-
productVariantId: string;
|
|
50
|
-
sku?: string;
|
|
51
|
-
productName: string;
|
|
52
|
-
variantName?: string;
|
|
53
|
-
currency: Currency;
|
|
54
|
-
unitPrice: number;
|
|
55
|
-
totalDiscount: number;
|
|
56
|
-
totalPrice: number;
|
|
57
|
-
quantity: number;
|
|
58
|
-
quantityFulfilled: number;
|
|
59
|
-
quantityRefunded: number;
|
|
60
|
-
quantityReturned: number;
|
|
61
|
-
totalTax: number;
|
|
62
|
-
taxName?: string;
|
|
63
|
-
createdAt: Date;
|
|
64
|
-
updatedAt: Date;
|
|
65
|
-
}
|
|
66
|
-
export declare enum OrderStatus {
|
|
67
|
-
PENDING_PAYMENT = "PENDING_PAYMENT",
|
|
68
|
-
CONFIRMED = "CONFIRMED",
|
|
69
|
-
PROCESSING = "PROCESSING",
|
|
70
|
-
SHIPPED = "SHIPPED",
|
|
71
|
-
PARTIALLY_SHIPPED = "PARTIALLY_SHIPPED",
|
|
72
|
-
DELIVERED = "DELIVERED",
|
|
73
|
-
COMPLETED = "COMPLETED",
|
|
74
|
-
CANCELLED = "CANCELLED",
|
|
75
|
-
REFUNDED = "REFUNDED",
|
|
76
|
-
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
77
|
-
ON_HOLD = "ON_HOLD",
|
|
78
|
-
FAILED = "FAILED"
|
|
79
|
-
}
|
|
80
|
-
export declare enum OrderPaymentStatus {
|
|
81
|
-
PENDING = "PENDING",
|
|
82
|
-
PARTIAL = "PARTIAL",
|
|
83
|
-
PAID = "PAID",
|
|
84
|
-
OVERPAID = "OVERPAID",
|
|
85
|
-
REFUNDED = "REFUNDED",
|
|
86
|
-
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED"
|
|
87
|
-
}
|
|
88
|
-
export declare enum OrderFulfillmentStatus {
|
|
89
|
-
PENDING = "PENDING",
|
|
90
|
-
PARTIAL = "PARTIAL",
|
|
91
|
-
FULFILLED = "FULFILLED"
|
|
92
|
-
}
|
|
93
|
-
export declare enum OrderSource {
|
|
94
|
-
WEB = "WEB",
|
|
95
|
-
POS = "POS",
|
|
96
|
-
API = "API"
|
|
97
|
-
}
|
|
98
|
-
export interface StatusChangeHistory {
|
|
99
|
-
status: OrderStatus;
|
|
100
|
-
timestamp: Date;
|
|
101
|
-
reason?: string;
|
|
102
|
-
userId?: string;
|
|
103
|
-
metadata?: Record<string, any>;
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/order/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;;GAGG;AAEH,MAAM,WAAW,KAAK;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MA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E,WAAW,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC"}
|
package/dist/order/types.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrderSource = exports.OrderFulfillmentStatus = exports.OrderPaymentStatus = exports.OrderStatus = void 0;
|
|
4
|
-
var OrderStatus;
|
|
5
|
-
(function (OrderStatus) {
|
|
6
|
-
OrderStatus["PENDING_PAYMENT"] = "PENDING_PAYMENT";
|
|
7
|
-
OrderStatus["CONFIRMED"] = "CONFIRMED";
|
|
8
|
-
OrderStatus["PROCESSING"] = "PROCESSING";
|
|
9
|
-
OrderStatus["SHIPPED"] = "SHIPPED";
|
|
10
|
-
OrderStatus["PARTIALLY_SHIPPED"] = "PARTIALLY_SHIPPED";
|
|
11
|
-
OrderStatus["DELIVERED"] = "DELIVERED";
|
|
12
|
-
OrderStatus["COMPLETED"] = "COMPLETED";
|
|
13
|
-
OrderStatus["CANCELLED"] = "CANCELLED";
|
|
14
|
-
OrderStatus["REFUNDED"] = "REFUNDED";
|
|
15
|
-
OrderStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
16
|
-
OrderStatus["ON_HOLD"] = "ON_HOLD";
|
|
17
|
-
OrderStatus["FAILED"] = "FAILED";
|
|
18
|
-
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
19
|
-
var OrderPaymentStatus;
|
|
20
|
-
(function (OrderPaymentStatus) {
|
|
21
|
-
OrderPaymentStatus["PENDING"] = "PENDING";
|
|
22
|
-
OrderPaymentStatus["PARTIAL"] = "PARTIAL";
|
|
23
|
-
OrderPaymentStatus["PAID"] = "PAID";
|
|
24
|
-
OrderPaymentStatus["OVERPAID"] = "OVERPAID";
|
|
25
|
-
OrderPaymentStatus["REFUNDED"] = "REFUNDED";
|
|
26
|
-
OrderPaymentStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
27
|
-
})(OrderPaymentStatus || (exports.OrderPaymentStatus = OrderPaymentStatus = {}));
|
|
28
|
-
var OrderFulfillmentStatus;
|
|
29
|
-
(function (OrderFulfillmentStatus) {
|
|
30
|
-
OrderFulfillmentStatus["PENDING"] = "PENDING";
|
|
31
|
-
OrderFulfillmentStatus["PARTIAL"] = "PARTIAL";
|
|
32
|
-
OrderFulfillmentStatus["FULFILLED"] = "FULFILLED";
|
|
33
|
-
})(OrderFulfillmentStatus || (exports.OrderFulfillmentStatus = OrderFulfillmentStatus = {}));
|
|
34
|
-
var OrderSource;
|
|
35
|
-
(function (OrderSource) {
|
|
36
|
-
OrderSource["WEB"] = "WEB";
|
|
37
|
-
OrderSource["POS"] = "POS";
|
|
38
|
-
OrderSource["API"] = "API";
|
|
39
|
-
})(OrderSource || (exports.OrderSource = OrderSource = {}));
|
|
40
|
-
//# sourceMappingURL=types.js.map
|
package/dist/order/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/order/types.ts"],"names":[],"mappings":";;;AAqEA,IAAY,WAaX;AAbD,WAAY,WAAW;IACnB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;IACnB,sDAAuC,CAAA;IACvC,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,wDAAyC,CAAA;IACzC,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;AACrB,CAAC,EAbW,WAAW,2BAAX,WAAW,QAatB;AAED,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,+DAAyC,CAAA;AAC7C,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;AAC3B,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,0BAAW,CAAA;AACf,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
package/dist/product/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|
package/dist/product/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":";AAAA,6DAA6D;;;;;;;;;;;;;;;;AAE7D,QAAQ;AACR,0CAAwB"}
|
package/dist/product/types.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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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AAC,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"}
|
package/dist/product/types.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/productAttribute/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
|