@retaila/shared-types 1.1.105 → 1.1.107
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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -124,6 +124,7 @@ interface AccountDomain {
|
|
|
124
124
|
domain: string; /** Dominio completo (ej: example.com) */
|
|
125
125
|
subdomain?: string; /** Subdominio opcional (ej: shop, blog) */
|
|
126
126
|
isPrimary: boolean; /** Indica si este es el dominio principal de la cuenta */
|
|
127
|
+
preferWww: boolean; /** Preferencia de dominio: true = www.example.com, false = example.com */
|
|
127
128
|
status: AccountDomainStatus; /** Estado del dominio: PENDING, ACTIVE, INACTIVE */
|
|
128
129
|
verifiedAt?: Date; /** Fecha de verificación del dominio */
|
|
129
130
|
createdAt: Date;
|
|
@@ -348,6 +349,9 @@ interface AccountDeliveryOption {
|
|
|
348
349
|
}
|
|
349
350
|
declare enum AccountDeliveryOptionPriceLogic {
|
|
350
351
|
FIXED = "FIXED",
|
|
352
|
+
BY_ZONE = "BY_ZONE",
|
|
353
|
+
PROVIDER = "PROVIDER",
|
|
354
|
+
/** @deprecated Use BY_ZONE instead */
|
|
351
355
|
CALCULATED = "CALCULATED"
|
|
352
356
|
}
|
|
353
357
|
declare enum AccountDeliveryOptionStatus {
|
|
@@ -366,6 +370,7 @@ interface AccountDeliveryOptionZone {
|
|
|
366
370
|
accountId: string;
|
|
367
371
|
accountDeliveryOptionId: string;
|
|
368
372
|
geoZoneId: string;
|
|
373
|
+
price?: number | null;
|
|
369
374
|
status: AccountDeliveryOptionZoneStatus;
|
|
370
375
|
demo: boolean;
|
|
371
376
|
createdAt: Date;
|
|
@@ -380,6 +385,7 @@ declare enum AccountDeliveryOptionZoneStatus {
|
|
|
380
385
|
interface DeliveryZoneInput {
|
|
381
386
|
geoZoneId?: string;
|
|
382
387
|
geoZone?: GeoZoneInput;
|
|
388
|
+
price?: number | null;
|
|
383
389
|
}
|
|
384
390
|
interface GeoZoneInput {
|
|
385
391
|
name: string;
|
|
@@ -875,6 +881,7 @@ type Fulfillment = {
|
|
|
875
881
|
type FulfillmentDeliveryOption = {
|
|
876
882
|
id: string;
|
|
877
883
|
name: string;
|
|
884
|
+
deliveryType?: 'SHIPPING' | 'PICKUP';
|
|
878
885
|
pickupLocations?: PickupLocation[];
|
|
879
886
|
[key: string]: unknown;
|
|
880
887
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ interface AccountDomain {
|
|
|
124
124
|
domain: string; /** Dominio completo (ej: example.com) */
|
|
125
125
|
subdomain?: string; /** Subdominio opcional (ej: shop, blog) */
|
|
126
126
|
isPrimary: boolean; /** Indica si este es el dominio principal de la cuenta */
|
|
127
|
+
preferWww: boolean; /** Preferencia de dominio: true = www.example.com, false = example.com */
|
|
127
128
|
status: AccountDomainStatus; /** Estado del dominio: PENDING, ACTIVE, INACTIVE */
|
|
128
129
|
verifiedAt?: Date; /** Fecha de verificación del dominio */
|
|
129
130
|
createdAt: Date;
|
|
@@ -348,6 +349,9 @@ interface AccountDeliveryOption {
|
|
|
348
349
|
}
|
|
349
350
|
declare enum AccountDeliveryOptionPriceLogic {
|
|
350
351
|
FIXED = "FIXED",
|
|
352
|
+
BY_ZONE = "BY_ZONE",
|
|
353
|
+
PROVIDER = "PROVIDER",
|
|
354
|
+
/** @deprecated Use BY_ZONE instead */
|
|
351
355
|
CALCULATED = "CALCULATED"
|
|
352
356
|
}
|
|
353
357
|
declare enum AccountDeliveryOptionStatus {
|
|
@@ -366,6 +370,7 @@ interface AccountDeliveryOptionZone {
|
|
|
366
370
|
accountId: string;
|
|
367
371
|
accountDeliveryOptionId: string;
|
|
368
372
|
geoZoneId: string;
|
|
373
|
+
price?: number | null;
|
|
369
374
|
status: AccountDeliveryOptionZoneStatus;
|
|
370
375
|
demo: boolean;
|
|
371
376
|
createdAt: Date;
|
|
@@ -380,6 +385,7 @@ declare enum AccountDeliveryOptionZoneStatus {
|
|
|
380
385
|
interface DeliveryZoneInput {
|
|
381
386
|
geoZoneId?: string;
|
|
382
387
|
geoZone?: GeoZoneInput;
|
|
388
|
+
price?: number | null;
|
|
383
389
|
}
|
|
384
390
|
interface GeoZoneInput {
|
|
385
391
|
name: string;
|
|
@@ -875,6 +881,7 @@ type Fulfillment = {
|
|
|
875
881
|
type FulfillmentDeliveryOption = {
|
|
876
882
|
id: string;
|
|
877
883
|
name: string;
|
|
884
|
+
deliveryType?: 'SHIPPING' | 'PICKUP';
|
|
878
885
|
pickupLocations?: PickupLocation[];
|
|
879
886
|
[key: string]: unknown;
|
|
880
887
|
};
|
package/dist/index.js
CHANGED
|
@@ -287,6 +287,8 @@ var DeliveryType = /* @__PURE__ */ ((DeliveryType2) => {
|
|
|
287
287
|
})(DeliveryType || {});
|
|
288
288
|
var AccountDeliveryOptionPriceLogic = /* @__PURE__ */ ((AccountDeliveryOptionPriceLogic2) => {
|
|
289
289
|
AccountDeliveryOptionPriceLogic2["FIXED"] = "FIXED";
|
|
290
|
+
AccountDeliveryOptionPriceLogic2["BY_ZONE"] = "BY_ZONE";
|
|
291
|
+
AccountDeliveryOptionPriceLogic2["PROVIDER"] = "PROVIDER";
|
|
290
292
|
AccountDeliveryOptionPriceLogic2["CALCULATED"] = "CALCULATED";
|
|
291
293
|
return AccountDeliveryOptionPriceLogic2;
|
|
292
294
|
})(AccountDeliveryOptionPriceLogic || {});
|