@retaila/shared-types 2.0.14 → 2.0.19
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 +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1091,14 +1091,13 @@ var ChargeStatus = /* @__PURE__ */ ((ChargeStatus2) => {
|
|
|
1091
1091
|
ChargeStatus2["CANCELLED"] = "CANCELLED";
|
|
1092
1092
|
return ChargeStatus2;
|
|
1093
1093
|
})(ChargeStatus || {});
|
|
1094
|
+
var BillingSociety = /* @__PURE__ */ ((BillingSociety2) => {
|
|
1095
|
+
BillingSociety2["COBRATICKET"] = "COBRATICKET";
|
|
1096
|
+
BillingSociety2["RHINO"] = "RHINO";
|
|
1097
|
+
return BillingSociety2;
|
|
1098
|
+
})(BillingSociety || {});
|
|
1094
1099
|
|
|
1095
1100
|
// src/serviceBilling/billingSchedule.ts
|
|
1096
|
-
var SERVICE_BILLING_FREE_DAYS_VALUES = [0, 7, 15, 30, 60];
|
|
1097
|
-
function normalizeServiceBillingFreeDays(value) {
|
|
1098
|
-
const n = value == null || value === "" ? 0 : Number(value);
|
|
1099
|
-
if (!Number.isFinite(n)) return 0;
|
|
1100
|
-
return SERVICE_BILLING_FREE_DAYS_VALUES.includes(n) ? n : 0;
|
|
1101
|
-
}
|
|
1102
1101
|
function contractTermMonths(contract) {
|
|
1103
1102
|
switch (contract) {
|
|
1104
1103
|
case "MONTHLY" /* MONTHLY */:
|
|
@@ -1188,6 +1187,7 @@ export {
|
|
|
1188
1187
|
AiCreditType,
|
|
1189
1188
|
AnalyticsEventType,
|
|
1190
1189
|
BillingInterval,
|
|
1190
|
+
BillingSociety,
|
|
1191
1191
|
COUNTRY_DEFAULTS,
|
|
1192
1192
|
CampaignBudgetType,
|
|
1193
1193
|
CampaignStatus,
|
|
@@ -1248,7 +1248,6 @@ export {
|
|
|
1248
1248
|
PubSubTopics,
|
|
1249
1249
|
RoundingMethod,
|
|
1250
1250
|
RoundingRule,
|
|
1251
|
-
SERVICE_BILLING_FREE_DAYS_VALUES,
|
|
1252
1251
|
SUPPORTED_COUNTRIES,
|
|
1253
1252
|
StandardCategoryStatus,
|
|
1254
1253
|
StoreBannerStatus,
|
|
@@ -1280,7 +1279,6 @@ export {
|
|
|
1280
1279
|
isLegacyLayout,
|
|
1281
1280
|
isSupportedCountry,
|
|
1282
1281
|
isZonedLayout,
|
|
1283
|
-
normalizeServiceBillingFreeDays,
|
|
1284
1282
|
parsePriceFormatPattern,
|
|
1285
1283
|
paymentFrequencyMonths,
|
|
1286
1284
|
resolveEffectivePaymentFrequency,
|