wiil-core-js 0.0.82
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/LICENSE +21 -0
- package/README.md +174 -0
- package/dist/core/account/index.d.ts +7 -0
- package/dist/core/account/index.js +23 -0
- package/dist/core/account/organization.schema.d.ts +118 -0
- package/dist/core/account/organization.schema.js +91 -0
- package/dist/core/account/project.schema.d.ts +121 -0
- package/dist/core/account/project.schema.js +102 -0
- package/dist/core/account/supported-business-verticals.d.ts +8 -0
- package/dist/core/account/supported-business-verticals.js +23 -0
- package/dist/core/assistant-setups/assistant-setup-result.schema.d.ts +115 -0
- package/dist/core/assistant-setups/assistant-setup-result.schema.js +17 -0
- package/dist/core/assistant-setups/base-assistant-setup.schema.d.ts +61 -0
- package/dist/core/assistant-setups/base-assistant-setup.schema.js +29 -0
- package/dist/core/assistant-setups/index.d.ts +4 -0
- package/dist/core/assistant-setups/index.js +21 -0
- package/dist/core/assistant-setups/phone-assistant-setup.schema.d.ts +63 -0
- package/dist/core/assistant-setups/phone-assistant-setup.schema.js +14 -0
- package/dist/core/assistant-setups/web-assitant-setup.schema.d.ts +56 -0
- package/dist/core/assistant-setups/web-assitant-setup.schema.js +17 -0
- package/dist/core/base.schema.d.ts +34 -0
- package/dist/core/base.schema.js +36 -0
- package/dist/core/business-mgt/appointment-additional-info.schema.d.ts +63 -0
- package/dist/core/business-mgt/appointment-additional-info.schema.js +53 -0
- package/dist/core/business-mgt/appointment-field-config.schema.d.ts +251 -0
- package/dist/core/business-mgt/appointment-field-config.schema.js +49 -0
- package/dist/core/business-mgt/bookings.shared.schema.d.ts +47 -0
- package/dist/core/business-mgt/bookings.shared.schema.js +60 -0
- package/dist/core/business-mgt/business-location.schema.d.ts +327 -0
- package/dist/core/business-mgt/business-location.schema.js +176 -0
- package/dist/core/business-mgt/customer-management/customer-group.schema.d.ts +87 -0
- package/dist/core/business-mgt/customer-management/customer-group.schema.js +53 -0
- package/dist/core/business-mgt/customer-management/customer.schema.d.ts +156 -0
- package/dist/core/business-mgt/customer-management/customer.schema.js +93 -0
- package/dist/core/business-mgt/customer-management/index.d.ts +7 -0
- package/dist/core/business-mgt/customer-management/index.js +23 -0
- package/dist/core/business-mgt/customer-management/shipping-address.schema.d.ts +112 -0
- package/dist/core/business-mgt/customer-management/shipping-address.schema.js +79 -0
- package/dist/core/business-mgt/customer.schema.d.ts +111 -0
- package/dist/core/business-mgt/customer.schema.js +73 -0
- package/dist/core/business-mgt/discount-rule.schema.d.ts +183 -0
- package/dist/core/business-mgt/discount-rule.schema.js +108 -0
- package/dist/core/business-mgt/index.d.ts +16 -0
- package/dist/core/business-mgt/index.js +38 -0
- package/dist/core/business-mgt/menu-config.schema.d.ts +165 -0
- package/dist/core/business-mgt/menu-config.schema.js +86 -0
- package/dist/core/business-mgt/menu-management/index.d.ts +11 -0
- package/dist/core/business-mgt/menu-management/index.js +27 -0
- package/dist/core/business-mgt/menu-management/menu-catalog.schema.d.ts +386 -0
- package/dist/core/business-mgt/menu-management/menu-catalog.schema.js +58 -0
- package/dist/core/business-mgt/menu-management/menu-config.schema.d.ts +301 -0
- package/dist/core/business-mgt/menu-management/menu-config.schema.js +169 -0
- package/dist/core/business-mgt/menu-management/menu-item-variant.schema.d.ts +143 -0
- package/dist/core/business-mgt/menu-management/menu-item-variant.schema.js +86 -0
- package/dist/core/business-mgt/menu-management/menu-pricing-rule.schema.d.ts +239 -0
- package/dist/core/business-mgt/menu-management/menu-pricing-rule.schema.js +117 -0
- package/dist/core/business-mgt/menu-management/menu-set.schema.d.ts +420 -0
- package/dist/core/business-mgt/menu-management/menu-set.schema.js +283 -0
- package/dist/core/business-mgt/menu-management/menu.order.schema.d.ts +654 -0
- package/dist/core/business-mgt/menu-management/menu.order.schema.js +204 -0
- package/dist/core/business-mgt/menu-management/modifier.schema.d.ts +585 -0
- package/dist/core/business-mgt/menu-management/modifier.schema.js +341 -0
- package/dist/core/business-mgt/menu.order.schema.d.ts +335 -0
- package/dist/core/business-mgt/menu.order.schema.js +149 -0
- package/dist/core/business-mgt/order.schema.d.ts +222 -0
- package/dist/core/business-mgt/order.schema.js +205 -0
- package/dist/core/business-mgt/pricing-rule.shared.schema.d.ts +56 -0
- package/dist/core/business-mgt/pricing-rule.shared.schema.js +68 -0
- package/dist/core/business-mgt/product-config.schema.d.ts +177 -0
- package/dist/core/business-mgt/product-config.schema.js +106 -0
- package/dist/core/business-mgt/product-management/index.d.ts +12 -0
- package/dist/core/business-mgt/product-management/index.js +28 -0
- package/dist/core/business-mgt/product-management/product-axis-binding.schema.d.ts +54 -0
- package/dist/core/business-mgt/product-management/product-axis-binding.schema.js +54 -0
- package/dist/core/business-mgt/product-management/product-config.schema.d.ts +1042 -0
- package/dist/core/business-mgt/product-management/product-config.schema.js +392 -0
- package/dist/core/business-mgt/product-management/product-display.schema.d.ts +548 -0
- package/dist/core/business-mgt/product-management/product-display.schema.js +80 -0
- package/dist/core/business-mgt/product-management/product-order.schema.d.ts +493 -0
- package/dist/core/business-mgt/product-management/product-order.schema.js +158 -0
- package/dist/core/business-mgt/product-management/product-pricing-rule.schema.d.ts +167 -0
- package/dist/core/business-mgt/product-management/product-pricing-rule.schema.js +68 -0
- package/dist/core/business-mgt/product-management/product-set.schema.d.ts +488 -0
- package/dist/core/business-mgt/product-management/product-set.schema.js +273 -0
- package/dist/core/business-mgt/product-management/product-variant-axis.schema.d.ts +156 -0
- package/dist/core/business-mgt/product-management/product-variant-axis.schema.js +98 -0
- package/dist/core/business-mgt/product-management/product-variant.schema.d.ts +219 -0
- package/dist/core/business-mgt/product-management/product-variant.schema.js +130 -0
- package/dist/core/business-mgt/product-order.schema.d.ts +326 -0
- package/dist/core/business-mgt/product-order.schema.js +153 -0
- package/dist/core/business-mgt/property-config.schema.d.ts +621 -0
- package/dist/core/business-mgt/property-config.schema.js +224 -0
- package/dist/core/business-mgt/property-inquiry.schema.d.ts +222 -0
- package/dist/core/business-mgt/property-inquiry.schema.js +112 -0
- package/dist/core/business-mgt/property-management/index.d.ts +6 -0
- package/dist/core/business-mgt/property-management/index.js +22 -0
- package/dist/core/business-mgt/property-management/property-config.schema.d.ts +1306 -0
- package/dist/core/business-mgt/property-management/property-config.schema.js +367 -0
- package/dist/core/business-mgt/property-management/property-inquiry.schema.d.ts +254 -0
- package/dist/core/business-mgt/property-management/property-inquiry.schema.js +131 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/index.d.ts +3 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/index.js +19 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-rental-assignment.schema.d.ts +139 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-rental-assignment.schema.js +90 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-room-assignment.schema.d.ts +104 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-room-assignment.schema.js +70 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-table-assignment.schema.d.ts +104 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-table-assignment.schema.js +72 -0
- package/dist/core/business-mgt/reservation-mgt/index.d.ts +14 -0
- package/dist/core/business-mgt/reservation-mgt/index.js +31 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-floor-plan-definition.schema.d.ts +180 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-floor-plan-definition.schema.js +75 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-maintenance-block.schema.d.ts +91 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-maintenance-block.schema.js +57 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-rental.schema.d.ts +334 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-rental.schema.js +179 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-room.schema.d.ts +195 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-room.schema.js +106 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-section.schema.d.ts +402 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-section.schema.js +198 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-settings.schema.d.ts +229 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-settings.schema.js +127 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-slot-query.schema.d.ts +382 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-slot-query.schema.js +322 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table-layout.schema.d.ts +123 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table-layout.schema.js +83 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table.schema.d.ts +167 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table.schema.js +84 -0
- package/dist/core/business-mgt/reservation-mgt/reservation.schema.d.ts +0 -0
- package/dist/core/business-mgt/reservation-mgt/reservation.schema.js +153 -0
- package/dist/core/business-mgt/reservation-mgt/resource/index.d.ts +4 -0
- package/dist/core/business-mgt/reservation-mgt/resource/index.js +20 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-category.schema.d.ts +157 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-category.schema.js +76 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-instance.schema.d.ts +137 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-instance.schema.js +94 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource.schema.d.ts +713 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource.schema.js +363 -0
- package/dist/core/business-mgt/reservation-mgt/resource/resource-versioning.schema.d.ts +151 -0
- package/dist/core/business-mgt/reservation-mgt/resource/resource-versioning.schema.js +147 -0
- package/dist/core/business-mgt/reservation-resource.schema.d.ts +154 -0
- package/dist/core/business-mgt/reservation-resource.schema.js +100 -0
- package/dist/core/business-mgt/reservation.schema.d.ts +119 -0
- package/dist/core/business-mgt/reservation.schema.js +89 -0
- package/dist/core/business-mgt/service-appointment.schema.d.ts +105 -0
- package/dist/core/business-mgt/service-appointment.schema.js +69 -0
- package/dist/core/business-mgt/service-config.schema.d.ts +453 -0
- package/dist/core/business-mgt/service-config.schema.js +102 -0
- package/dist/core/business-mgt/service-management/appointment-additional-info.schema.d.ts +110 -0
- package/dist/core/business-mgt/service-management/appointment-additional-info.schema.js +78 -0
- package/dist/core/business-mgt/service-management/appointment-field-config.schema.d.ts +304 -0
- package/dist/core/business-mgt/service-management/appointment-field-config.schema.js +75 -0
- package/dist/core/business-mgt/service-management/business-service-config.schema.d.ts +1226 -0
- package/dist/core/business-mgt/service-management/business-service-config.schema.js +317 -0
- package/dist/core/business-mgt/service-management/index.d.ts +13 -0
- package/dist/core/business-mgt/service-management/index.js +29 -0
- package/dist/core/business-mgt/service-management/service-appointment.schema.d.ts +531 -0
- package/dist/core/business-mgt/service-management/service-appointment.schema.js +116 -0
- package/dist/core/business-mgt/service-management/service-person.schema.d.ts +122 -0
- package/dist/core/business-mgt/service-management/service-person.schema.js +66 -0
- package/dist/core/business-mgt/service-management/service-pricing-rule.schema.d.ts +221 -0
- package/dist/core/business-mgt/service-management/service-pricing-rule.schema.js +118 -0
- package/dist/core/business-mgt/service-management/service-provider.schema.d.ts +90 -0
- package/dist/core/business-mgt/service-management/service-provider.schema.js +54 -0
- package/dist/core/business-mgt/service-management/service-slot-query.schema.d.ts +90 -0
- package/dist/core/business-mgt/service-management/service-slot-query.schema.js +113 -0
- package/dist/core/business-mgt/service-management/service-time-off.schema.d.ts +121 -0
- package/dist/core/business-mgt/service-management/service-time-off.schema.js +95 -0
- package/dist/core/business-mgt/service-person.schema.d.ts +43 -0
- package/dist/core/business-mgt/service-person.schema.js +38 -0
- package/dist/core/business-mgt/tax-rule.schema.d.ts +161 -0
- package/dist/core/business-mgt/tax-rule.schema.js +90 -0
- package/dist/core/conversation/conversation-config.schema.d.ts +644 -0
- package/dist/core/conversation/conversation-config.schema.js +351 -0
- package/dist/core/conversation/conversation-message.schema.d.ts +307 -0
- package/dist/core/conversation/conversation-message.schema.js +275 -0
- package/dist/core/conversation/index.d.ts +12 -0
- package/dist/core/conversation/index.js +28 -0
- package/dist/core/conversation/outbound-call.schema.d.ts +209 -0
- package/dist/core/conversation/outbound-call.schema.js +116 -0
- package/dist/core/conversation/outbound-email.schema.d.ts +338 -0
- package/dist/core/conversation/outbound-email.schema.js +150 -0
- package/dist/core/conversation/outbound-sms.schema.d.ts +163 -0
- package/dist/core/conversation/outbound-sms.schema.js +85 -0
- package/dist/core/conversation/outbound-template.schema.d.ts +375 -0
- package/dist/core/conversation/outbound-template.schema.js +160 -0
- package/dist/core/conversation/translation-config.schema.d.ts +92 -0
- package/dist/core/conversation/translation-config.schema.js +88 -0
- package/dist/core/conversation/translation-conversation.schema.d.ts +469 -0
- package/dist/core/conversation/translation-conversation.schema.js +175 -0
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.js +30 -0
- package/dist/core/service-configuration/agent-config.schema.d.ts +236 -0
- package/dist/core/service-configuration/agent-config.schema.js +152 -0
- package/dist/core/service-configuration/base-agent-setup.d.ts +147 -0
- package/dist/core/service-configuration/base-agent-setup.js +123 -0
- package/dist/core/service-configuration/call-transfer-config.schema.d.ts +60 -0
- package/dist/core/service-configuration/call-transfer-config.schema.js +53 -0
- package/dist/core/service-configuration/deployment-config.schema.d.ts +522 -0
- package/dist/core/service-configuration/deployment-config.schema.js +271 -0
- package/dist/core/service-configuration/dynamic_setup/base-agent-setup.d.ts +130 -0
- package/dist/core/service-configuration/dynamic_setup/base-agent-setup.js +110 -0
- package/dist/core/service-configuration/dynamic_setup/index.d.ts +10 -0
- package/dist/core/service-configuration/dynamic_setup/index.js +26 -0
- package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.d.ts +111 -0
- package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.js +56 -0
- package/dist/core/service-configuration/dynamic_setup/web-agent-setup.d.ts +113 -0
- package/dist/core/service-configuration/dynamic_setup/web-agent-setup.js +55 -0
- package/dist/core/service-configuration/index.d.ts +17 -0
- package/dist/core/service-configuration/index.js +33 -0
- package/dist/core/service-configuration/instruction-config.schema.d.ts +183 -0
- package/dist/core/service-configuration/instruction-config.schema.js +139 -0
- package/dist/core/service-configuration/interaction-channels.schema.d.ts +469 -0
- package/dist/core/service-configuration/interaction-channels.schema.js +390 -0
- package/dist/core/service-configuration/knowledge.schema.d.ts +107 -0
- package/dist/core/service-configuration/knowledge.schema.js +106 -0
- package/dist/core/service-configuration/phone-config.schema.d.ts +206 -0
- package/dist/core/service-configuration/phone-config.schema.js +121 -0
- package/dist/core/service-configuration/phone-number.schema.d.ts +236 -0
- package/dist/core/service-configuration/phone-number.schema.js +211 -0
- package/dist/core/service-configuration/provisioning-config.d.ts +429 -0
- package/dist/core/service-configuration/provisioning-config.js +307 -0
- package/dist/core/service-configuration/support-llm.d.ts +95 -0
- package/dist/core/service-configuration/support-llm.js +76 -0
- package/dist/core/service-configuration/voice-language.schema.d.ts +200 -0
- package/dist/core/service-configuration/voice-language.schema.js +166 -0
- package/dist/core/type-definitions/account-definitions.d.ts +82 -0
- package/dist/core/type-definitions/account-definitions.js +88 -0
- package/dist/core/type-definitions/business-definitions.d.ts +394 -0
- package/dist/core/type-definitions/business-definitions.js +447 -0
- package/dist/core/type-definitions/conversation.type.definition.d.ts +223 -0
- package/dist/core/type-definitions/conversation.type.definition.js +236 -0
- package/dist/core/type-definitions/display-order.d.ts +154 -0
- package/dist/core/type-definitions/display-order.js +154 -0
- package/dist/core/type-definitions/dynamic-fields/field-definition.schema.d.ts +165 -0
- package/dist/core/type-definitions/dynamic-fields/field-definition.schema.js +97 -0
- package/dist/core/type-definitions/dynamic-fields/field-types.d.ts +49 -0
- package/dist/core/type-definitions/dynamic-fields/field-types.js +104 -0
- package/dist/core/type-definitions/dynamic-fields/index.d.ts +9 -0
- package/dist/core/type-definitions/dynamic-fields/index.js +25 -0
- package/dist/core/type-definitions/index.d.ts +10 -0
- package/dist/core/type-definitions/index.js +26 -0
- package/dist/core/type-definitions/knowledge-definitions.d.ts +30 -0
- package/dist/core/type-definitions/knowledge-definitions.js +37 -0
- package/dist/core/type-definitions/service-config.definitions.d.ts +112 -0
- package/dist/core/type-definitions/service-config.definitions.js +135 -0
- package/dist/core/validators/channel-validation.d.ts +19 -0
- package/dist/core/validators/channel-validation.js +40 -0
- package/dist/core/validators/index.d.ts +5 -0
- package/dist/core/validators/index.js +21 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +24 -0
- package/dist/request/index.d.ts +5 -0
- package/dist/request/index.js +21 -0
- package/dist/request/models/index.d.ts +6 -0
- package/dist/request/models/index.js +22 -0
- package/dist/request/models/paginated-quest.schema.d.ts +33 -0
- package/dist/request/models/paginated-quest.schema.js +35 -0
- package/dist/request/models/paginated-result.schema.d.ts +124 -0
- package/dist/request/models/paginated-result.schema.js +94 -0
- package/package.json +43 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DiscountCatalogScope = exports.DiscountType = exports.DiscountScope = exports.TaxCatalogScope = exports.TaxRateType = exports.TaxScope = exports.PropertyInquiryStatus = exports.PropertyInquiryType = exports.DepositStatus = exports.PropertyLeaseStatus = exports.PropertyPurchaseStatus = exports.RentalPeriod = exports.PropertyCondition = exports.ListingStatus = exports.ListingType = exports.PropertySubType = exports.PropertyType = exports.BestTimeToCall = exports.PreferredContactMethod = exports.CallPriority = exports.WeeklyScheduleSchema = exports.SimpleWeeklyScheduleSchema = exports.DayScheduleSchema = exports.SimpleDayScheduleSchema = exports.BreakTimeSchema = exports.TimeSlotSchema = exports.TIMEZONES = exports.DAYS_OF_WEEK = exports.BusinessDocumentTypes = exports.BusinessServiceDocumentTypes = exports.RestockStatus = exports.StockStatus = exports.StockAdjustmentType = exports.InventoryUnit = exports.ProductOrderType = exports.MenuOrderType = exports.PaymentStatus = exports.OrderStatus = exports.RecurrenceType = exports.ReservationSlotStatus = exports.ServiceProviderTimeOffStatus = exports.ServiceProviderTimeOffType = exports.AppointmentStatus = exports.ReservationStatus = exports.ReservationSettingType = exports.ResourceReservationDurationUnit = exports.ResourceType = exports.CalendarProvider = exports.BusinessServiceType = exports.ExternalRefSchema = void 0;
|
|
7
|
+
exports.VariantAxisType = exports.PricingChannel = exports.PricingRuleAdjustmentType = exports.PricingRuleApplyLevel = void 0;
|
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
|
9
|
+
/**
|
|
10
|
+
* External reference schema for synchronization with external systems.
|
|
11
|
+
*/
|
|
12
|
+
exports.ExternalRefSchema = zod_1.default.object({
|
|
13
|
+
externalId: zod_1.default.string().describe("Record ID in external system"),
|
|
14
|
+
source: zod_1.default.string().describe("External platform identifier (e.g., doordash, uber-eats, opentable, resy)"),
|
|
15
|
+
url: zod_1.default.url().nullable().optional().describe("Direct link to record in external system"),
|
|
16
|
+
syncedAt: zod_1.default.number().nullable().optional().describe("Last sync timestamp"),
|
|
17
|
+
}).describe("External system reference for imported/synced records");
|
|
18
|
+
var BusinessServiceType;
|
|
19
|
+
(function (BusinessServiceType) {
|
|
20
|
+
BusinessServiceType["MENU"] = "menu";
|
|
21
|
+
BusinessServiceType["SERVICE"] = "service";
|
|
22
|
+
BusinessServiceType["PRODUCT"] = "product";
|
|
23
|
+
BusinessServiceType["APPOINTMENT"] = "appointment";
|
|
24
|
+
// SUBSCRIPTION = 'subscription' // Recurring services
|
|
25
|
+
})(BusinessServiceType || (exports.BusinessServiceType = BusinessServiceType = {}));
|
|
26
|
+
var CalendarProvider;
|
|
27
|
+
(function (CalendarProvider) {
|
|
28
|
+
CalendarProvider["GOOGLE"] = "google";
|
|
29
|
+
CalendarProvider["OUTLOOK"] = "outlook";
|
|
30
|
+
CalendarProvider["CALENDLY"] = "calendly";
|
|
31
|
+
})(CalendarProvider || (exports.CalendarProvider = CalendarProvider = {}));
|
|
32
|
+
/**
|
|
33
|
+
* Reservation resource type.
|
|
34
|
+
* Identifies the kind of resource used by reservation and resource-management schemas.
|
|
35
|
+
*
|
|
36
|
+
* @enum {string}
|
|
37
|
+
*/
|
|
38
|
+
var ResourceType;
|
|
39
|
+
(function (ResourceType) {
|
|
40
|
+
ResourceType["TABLE"] = "table";
|
|
41
|
+
ResourceType["ROOM"] = "room";
|
|
42
|
+
ResourceType["RENTAL"] = "rental";
|
|
43
|
+
ResourceType["RENTALS"] = "rentals";
|
|
44
|
+
ResourceType["RESOURCE"] = "resource";
|
|
45
|
+
})(ResourceType || (exports.ResourceType = ResourceType = {}));
|
|
46
|
+
var ResourceReservationDurationUnit;
|
|
47
|
+
(function (ResourceReservationDurationUnit) {
|
|
48
|
+
ResourceReservationDurationUnit["MINUTES"] = "minutes";
|
|
49
|
+
ResourceReservationDurationUnit["HOURS"] = "hours";
|
|
50
|
+
ResourceReservationDurationUnit["NIGHTS"] = "nights";
|
|
51
|
+
})(ResourceReservationDurationUnit || (exports.ResourceReservationDurationUnit = ResourceReservationDurationUnit = {}));
|
|
52
|
+
var ReservationSettingType;
|
|
53
|
+
(function (ReservationSettingType) {
|
|
54
|
+
ReservationSettingType["CAPACITY"] = "capacity";
|
|
55
|
+
ReservationSettingType["RESOURCE_SPECIFIC"] = "resource_specific";
|
|
56
|
+
})(ReservationSettingType || (exports.ReservationSettingType = ReservationSettingType = {}));
|
|
57
|
+
/**
|
|
58
|
+
* Reservation lifecycle status.
|
|
59
|
+
* Shared status enum for table and room reservation workflows.
|
|
60
|
+
*
|
|
61
|
+
* @enum {string}
|
|
62
|
+
*/
|
|
63
|
+
var ReservationStatus;
|
|
64
|
+
(function (ReservationStatus) {
|
|
65
|
+
ReservationStatus["PENDING"] = "pending";
|
|
66
|
+
ReservationStatus["CONFIRMED"] = "confirmed";
|
|
67
|
+
ReservationStatus["SEATED"] = "seated";
|
|
68
|
+
ReservationStatus["CHECKED_IN"] = "checked_in";
|
|
69
|
+
ReservationStatus["COMPLETED"] = "completed";
|
|
70
|
+
ReservationStatus["CANCELLED"] = "cancelled";
|
|
71
|
+
ReservationStatus["NO_SHOW"] = "no_show";
|
|
72
|
+
})(ReservationStatus || (exports.ReservationStatus = ReservationStatus = {}));
|
|
73
|
+
var AppointmentStatus;
|
|
74
|
+
(function (AppointmentStatus) {
|
|
75
|
+
AppointmentStatus["PENDING"] = "pending";
|
|
76
|
+
AppointmentStatus["CONFIRMED"] = "confirmed";
|
|
77
|
+
AppointmentStatus["CANCELLED"] = "cancelled";
|
|
78
|
+
AppointmentStatus["COMPLETED"] = "completed";
|
|
79
|
+
AppointmentStatus["NO_SHOW"] = "no_show"; // For revenue tracking
|
|
80
|
+
})(AppointmentStatus || (exports.AppointmentStatus = AppointmentStatus = {}));
|
|
81
|
+
var ServiceProviderTimeOffType;
|
|
82
|
+
(function (ServiceProviderTimeOffType) {
|
|
83
|
+
ServiceProviderTimeOffType["RECURRING"] = "recurring";
|
|
84
|
+
ServiceProviderTimeOffType["SPECIFIC"] = "specific";
|
|
85
|
+
})(ServiceProviderTimeOffType || (exports.ServiceProviderTimeOffType = ServiceProviderTimeOffType = {}));
|
|
86
|
+
var ServiceProviderTimeOffStatus;
|
|
87
|
+
(function (ServiceProviderTimeOffStatus) {
|
|
88
|
+
ServiceProviderTimeOffStatus["APPROVED"] = "approved";
|
|
89
|
+
ServiceProviderTimeOffStatus["PENDING"] = "pending";
|
|
90
|
+
ServiceProviderTimeOffStatus["REJECTED"] = "rejected";
|
|
91
|
+
})(ServiceProviderTimeOffStatus || (exports.ServiceProviderTimeOffStatus = ServiceProviderTimeOffStatus = {}));
|
|
92
|
+
var ReservationSlotStatus;
|
|
93
|
+
(function (ReservationSlotStatus) {
|
|
94
|
+
ReservationSlotStatus["AVAILABLE"] = "available";
|
|
95
|
+
ReservationSlotStatus["BOOKED"] = "booked";
|
|
96
|
+
ReservationSlotStatus["BLOCKED"] = "blocked";
|
|
97
|
+
ReservationSlotStatus["MAINTENANCE"] = "maintenance";
|
|
98
|
+
})(ReservationSlotStatus || (exports.ReservationSlotStatus = ReservationSlotStatus = {}));
|
|
99
|
+
var RecurrenceType;
|
|
100
|
+
(function (RecurrenceType) {
|
|
101
|
+
RecurrenceType["NONE"] = "none";
|
|
102
|
+
RecurrenceType["DAILY"] = "daily";
|
|
103
|
+
RecurrenceType["WEEKLY"] = "weekly";
|
|
104
|
+
RecurrenceType["MONTHLY"] = "monthly";
|
|
105
|
+
})(RecurrenceType || (exports.RecurrenceType = RecurrenceType = {}));
|
|
106
|
+
var OrderStatus;
|
|
107
|
+
(function (OrderStatus) {
|
|
108
|
+
OrderStatus["PENDING"] = "pending";
|
|
109
|
+
OrderStatus["CONFIRMED"] = "confirmed";
|
|
110
|
+
OrderStatus["PREPARING"] = "preparing";
|
|
111
|
+
OrderStatus["READY"] = "ready";
|
|
112
|
+
OrderStatus["OUT_FOR_DELIVERY"] = "out_for_delivery";
|
|
113
|
+
OrderStatus["COMPLETED"] = "completed";
|
|
114
|
+
OrderStatus["CANCELLED"] = "cancelled";
|
|
115
|
+
OrderStatus["RETURNED"] = "returned";
|
|
116
|
+
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
117
|
+
var PaymentStatus;
|
|
118
|
+
(function (PaymentStatus) {
|
|
119
|
+
PaymentStatus["PENDING"] = "pending";
|
|
120
|
+
PaymentStatus["PAID"] = "paid";
|
|
121
|
+
PaymentStatus["PARTIAL"] = "partial";
|
|
122
|
+
PaymentStatus["FAILED"] = "failed";
|
|
123
|
+
PaymentStatus["REFUNDED"] = "refunded";
|
|
124
|
+
})(PaymentStatus || (exports.PaymentStatus = PaymentStatus = {}));
|
|
125
|
+
var MenuOrderType;
|
|
126
|
+
(function (MenuOrderType) {
|
|
127
|
+
MenuOrderType["DINE_IN"] = "dine_in";
|
|
128
|
+
MenuOrderType["TAKEOUT"] = "takeout";
|
|
129
|
+
MenuOrderType["DELIVERY"] = "delivery";
|
|
130
|
+
})(MenuOrderType || (exports.MenuOrderType = MenuOrderType = {}));
|
|
131
|
+
;
|
|
132
|
+
var ProductOrderType;
|
|
133
|
+
(function (ProductOrderType) {
|
|
134
|
+
ProductOrderType["PICKUP"] = "pickup";
|
|
135
|
+
ProductOrderType["DELIVERY"] = "delivery";
|
|
136
|
+
ProductOrderType["SHIPPING"] = "shipping";
|
|
137
|
+
})(ProductOrderType || (exports.ProductOrderType = ProductOrderType = {}));
|
|
138
|
+
var InventoryUnit;
|
|
139
|
+
(function (InventoryUnit) {
|
|
140
|
+
InventoryUnit["EACH"] = "each";
|
|
141
|
+
InventoryUnit["PACK"] = "pack";
|
|
142
|
+
InventoryUnit["BOX"] = "box";
|
|
143
|
+
InventoryUnit["CASE"] = "case";
|
|
144
|
+
InventoryUnit["DOZEN"] = "dozen";
|
|
145
|
+
InventoryUnit["PAIR"] = "pair";
|
|
146
|
+
InventoryUnit["GRAM"] = "gram";
|
|
147
|
+
InventoryUnit["POUNDS"] = "lbs";
|
|
148
|
+
InventoryUnit["KILOGRAM"] = "kg";
|
|
149
|
+
InventoryUnit["MILLILITER"] = "ml";
|
|
150
|
+
InventoryUnit["LITER"] = "l";
|
|
151
|
+
InventoryUnit["METER"] = "m";
|
|
152
|
+
InventoryUnit["CENTIMETER"] = "cm";
|
|
153
|
+
InventoryUnit["ROLL"] = "rl";
|
|
154
|
+
InventoryUnit["SET"] = "set";
|
|
155
|
+
InventoryUnit["OTHER"] = "other"; // Catch-all for anything else
|
|
156
|
+
})(InventoryUnit || (exports.InventoryUnit = InventoryUnit = {}));
|
|
157
|
+
var StockAdjustmentType;
|
|
158
|
+
(function (StockAdjustmentType) {
|
|
159
|
+
StockAdjustmentType["ADDITION"] = "addition";
|
|
160
|
+
StockAdjustmentType["SUBTRACTION"] = "subtraction";
|
|
161
|
+
StockAdjustmentType["ADJUSTMENT"] = "adjustment";
|
|
162
|
+
})(StockAdjustmentType || (exports.StockAdjustmentType = StockAdjustmentType = {}));
|
|
163
|
+
var StockStatus;
|
|
164
|
+
(function (StockStatus) {
|
|
165
|
+
StockStatus["IN_STOCK"] = "in_stock";
|
|
166
|
+
StockStatus["LOW_STOCK"] = "low_stock";
|
|
167
|
+
StockStatus["OUT_OF_STOCK"] = "out_of_stock";
|
|
168
|
+
StockStatus["DISCONTINUED"] = "discontinued";
|
|
169
|
+
})(StockStatus || (exports.StockStatus = StockStatus = {}));
|
|
170
|
+
var RestockStatus;
|
|
171
|
+
(function (RestockStatus) {
|
|
172
|
+
RestockStatus["NEEDED"] = "needed";
|
|
173
|
+
RestockStatus["ORDERED"] = "ordered";
|
|
174
|
+
RestockStatus["RECEIVED"] = "received";
|
|
175
|
+
RestockStatus["CANCELLED"] = "cancelled"; // Restock order cancelled
|
|
176
|
+
})(RestockStatus || (exports.RestockStatus = RestockStatus = {}));
|
|
177
|
+
var BusinessServiceDocumentTypes;
|
|
178
|
+
(function (BusinessServiceDocumentTypes) {
|
|
179
|
+
BusinessServiceDocumentTypes["CUSTOMERS"] = "customers";
|
|
180
|
+
BusinessServiceDocumentTypes["MENU_CATALOG"] = "menu_catalog";
|
|
181
|
+
BusinessServiceDocumentTypes["PRODUCT_CATALOG"] = "product_catalog";
|
|
182
|
+
BusinessServiceDocumentTypes["SERVICE_CATALOG"] = "service_catalog";
|
|
183
|
+
BusinessServiceDocumentTypes["RESOURCE_CATALOG"] = "resource_catalog";
|
|
184
|
+
BusinessServiceDocumentTypes["INVENTORY_CATALOG"] = "inventory_catalog";
|
|
185
|
+
BusinessServiceDocumentTypes["SUPPLIER"] = "suppliers";
|
|
186
|
+
})(BusinessServiceDocumentTypes || (exports.BusinessServiceDocumentTypes = BusinessServiceDocumentTypes = {}));
|
|
187
|
+
var BusinessDocumentTypes;
|
|
188
|
+
(function (BusinessDocumentTypes) {
|
|
189
|
+
BusinessDocumentTypes["CSV"] = "text/csv";
|
|
190
|
+
BusinessDocumentTypes["XLS"] = "application/vnd.ms-excel";
|
|
191
|
+
BusinessDocumentTypes["XLSX"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
192
|
+
BusinessDocumentTypes["TXT"] = "text/plain";
|
|
193
|
+
BusinessDocumentTypes["JSON"] = "application/json";
|
|
194
|
+
BusinessDocumentTypes["PDF"] = "application/pdf";
|
|
195
|
+
BusinessDocumentTypes["DOCX"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
196
|
+
BusinessDocumentTypes["PPTX"] = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
197
|
+
BusinessDocumentTypes["PPT"] = "application/vnd.ms-powerpoint";
|
|
198
|
+
BusinessDocumentTypes["HTML"] = "text/html";
|
|
199
|
+
BusinessDocumentTypes["MD"] = "text/markdown";
|
|
200
|
+
BusinessDocumentTypes["RTF"] = "application/rtf";
|
|
201
|
+
BusinessDocumentTypes["JPEG"] = "image/jpeg";
|
|
202
|
+
BusinessDocumentTypes["PNG"] = "image/png";
|
|
203
|
+
})(BusinessDocumentTypes || (exports.BusinessDocumentTypes = BusinessDocumentTypes = {}));
|
|
204
|
+
exports.DAYS_OF_WEEK = [
|
|
205
|
+
{ id: 0, name: 'Sunday', short: 'Sun' },
|
|
206
|
+
{ id: 1, name: 'Monday', short: 'Mon' },
|
|
207
|
+
{ id: 2, name: 'Tuesday', short: 'Tue' },
|
|
208
|
+
{ id: 3, name: 'Wednesday', short: 'Wed' },
|
|
209
|
+
{ id: 4, name: 'Thursday', short: 'Thu' },
|
|
210
|
+
{ id: 5, name: 'Friday', short: 'Fri' },
|
|
211
|
+
{ id: 6, name: 'Saturday', short: 'Sat' },
|
|
212
|
+
];
|
|
213
|
+
exports.TIMEZONES = [
|
|
214
|
+
'UTC',
|
|
215
|
+
'America/New_York',
|
|
216
|
+
'America/Chicago',
|
|
217
|
+
'America/Denver',
|
|
218
|
+
'America/Los_Angeles',
|
|
219
|
+
'Europe/London',
|
|
220
|
+
'Europe/Paris',
|
|
221
|
+
'Asia/Tokyo',
|
|
222
|
+
'Asia/Shanghai',
|
|
223
|
+
'Australia/Sydney',
|
|
224
|
+
];
|
|
225
|
+
// ============================================================================
|
|
226
|
+
// SHARED TIME AND SCHEDULE SCHEMAS
|
|
227
|
+
// ============================================================================
|
|
228
|
+
/**
|
|
229
|
+
* Time slot schema for scheduling.
|
|
230
|
+
* Defines a start and end time in HH:MM format.
|
|
231
|
+
*/
|
|
232
|
+
exports.TimeSlotSchema = zod_1.default.object({
|
|
233
|
+
start: zod_1.default.string().regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/, 'Invalid time format (HH:MM)').describe("Start time in HH:MM format"),
|
|
234
|
+
end: zod_1.default.string().regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/, 'Invalid time format (HH:MM)').describe("End time in HH:MM format"),
|
|
235
|
+
});
|
|
236
|
+
/**
|
|
237
|
+
* Break time schema (alias for TimeSlotSchema).
|
|
238
|
+
*/
|
|
239
|
+
exports.BreakTimeSchema = exports.TimeSlotSchema;
|
|
240
|
+
/**
|
|
241
|
+
* Simple day schedule schema.
|
|
242
|
+
* Defines basic availability for a single day.
|
|
243
|
+
*/
|
|
244
|
+
exports.SimpleDayScheduleSchema = zod_1.default.object({
|
|
245
|
+
isOpen: zod_1.default.boolean().describe("Whether available this day"),
|
|
246
|
+
startTime: zod_1.default.string().regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/, 'Invalid time format (HH:MM)').describe("Start time"),
|
|
247
|
+
endTime: zod_1.default.string().regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/, 'Invalid time format (HH:MM)').describe("End time"),
|
|
248
|
+
});
|
|
249
|
+
/**
|
|
250
|
+
* Day schedule schema with break times.
|
|
251
|
+
* Extends simple day schedule with break periods.
|
|
252
|
+
*/
|
|
253
|
+
exports.DayScheduleSchema = exports.SimpleDayScheduleSchema.extend({
|
|
254
|
+
breakTimes: zod_1.default.array(exports.BreakTimeSchema).optional().describe("Break periods during the day"),
|
|
255
|
+
});
|
|
256
|
+
/**
|
|
257
|
+
* Simple weekly schedule schema.
|
|
258
|
+
* Record of day index (0-6) to simple day schedule.
|
|
259
|
+
*/
|
|
260
|
+
exports.SimpleWeeklyScheduleSchema = zod_1.default.record(zod_1.default.string().regex(/^[0-6]$/, 'Day must be 0-6'), exports.SimpleDayScheduleSchema).describe("Weekly schedule without breaks");
|
|
261
|
+
/**
|
|
262
|
+
* Weekly schedule schema with breaks.
|
|
263
|
+
* Record of day index (0-6) to full day schedule with breaks.
|
|
264
|
+
*/
|
|
265
|
+
exports.WeeklyScheduleSchema = zod_1.default.record(zod_1.default.string().regex(/^[0-6]$/, 'Day must be 0-6'), exports.DayScheduleSchema).describe("Weekly business hours schedule with breaks");
|
|
266
|
+
// Customer-related enums
|
|
267
|
+
var CallPriority;
|
|
268
|
+
(function (CallPriority) {
|
|
269
|
+
CallPriority["HIGH"] = "high";
|
|
270
|
+
CallPriority["MEDIUM"] = "medium";
|
|
271
|
+
CallPriority["LOW"] = "low";
|
|
272
|
+
})(CallPriority || (exports.CallPriority = CallPriority = {}));
|
|
273
|
+
var PreferredContactMethod;
|
|
274
|
+
(function (PreferredContactMethod) {
|
|
275
|
+
PreferredContactMethod["EMAIL"] = "email";
|
|
276
|
+
PreferredContactMethod["PHONE"] = "phone";
|
|
277
|
+
PreferredContactMethod["SMS"] = "sms";
|
|
278
|
+
})(PreferredContactMethod || (exports.PreferredContactMethod = PreferredContactMethod = {}));
|
|
279
|
+
var BestTimeToCall;
|
|
280
|
+
(function (BestTimeToCall) {
|
|
281
|
+
BestTimeToCall["MORNING"] = "morning";
|
|
282
|
+
BestTimeToCall["AFTERNOON"] = "afternoon";
|
|
283
|
+
BestTimeToCall["EVENING"] = "evening";
|
|
284
|
+
BestTimeToCall["ANYTIME"] = "anytime";
|
|
285
|
+
})(BestTimeToCall || (exports.BestTimeToCall = BestTimeToCall = {}));
|
|
286
|
+
// Property Management Enums
|
|
287
|
+
var PropertyType;
|
|
288
|
+
(function (PropertyType) {
|
|
289
|
+
PropertyType["RESIDENTIAL"] = "residential";
|
|
290
|
+
PropertyType["COMMERCIAL"] = "commercial";
|
|
291
|
+
PropertyType["LAND"] = "land";
|
|
292
|
+
})(PropertyType || (exports.PropertyType = PropertyType = {}));
|
|
293
|
+
var PropertySubType;
|
|
294
|
+
(function (PropertySubType) {
|
|
295
|
+
// Residential
|
|
296
|
+
PropertySubType["HOUSE"] = "house";
|
|
297
|
+
PropertySubType["APARTMENT"] = "apartment";
|
|
298
|
+
PropertySubType["CONDO"] = "condo";
|
|
299
|
+
PropertySubType["TOWNHOUSE"] = "townhouse";
|
|
300
|
+
PropertySubType["VILLA"] = "villa";
|
|
301
|
+
// Commercial
|
|
302
|
+
PropertySubType["OFFICE"] = "office";
|
|
303
|
+
PropertySubType["RETAIL"] = "retail";
|
|
304
|
+
PropertySubType["WAREHOUSE"] = "warehouse";
|
|
305
|
+
PropertySubType["INDUSTRIAL"] = "industrial";
|
|
306
|
+
// Land
|
|
307
|
+
PropertySubType["LOT"] = "lot";
|
|
308
|
+
PropertySubType["FARM"] = "farm";
|
|
309
|
+
PropertySubType["ACREAGE"] = "acreage";
|
|
310
|
+
})(PropertySubType || (exports.PropertySubType = PropertySubType = {}));
|
|
311
|
+
var ListingType;
|
|
312
|
+
(function (ListingType) {
|
|
313
|
+
ListingType["SALE"] = "sale";
|
|
314
|
+
ListingType["RENT"] = "rent";
|
|
315
|
+
ListingType["BOTH"] = "both";
|
|
316
|
+
})(ListingType || (exports.ListingType = ListingType = {}));
|
|
317
|
+
var ListingStatus;
|
|
318
|
+
(function (ListingStatus) {
|
|
319
|
+
ListingStatus["DRAFT"] = "draft";
|
|
320
|
+
ListingStatus["ACTIVE"] = "active";
|
|
321
|
+
ListingStatus["UNDER_OFFER"] = "under_offer";
|
|
322
|
+
ListingStatus["SOLD"] = "sold";
|
|
323
|
+
ListingStatus["LEASED"] = "leased";
|
|
324
|
+
ListingStatus["WITHDRAWN"] = "withdrawn";
|
|
325
|
+
})(ListingStatus || (exports.ListingStatus = ListingStatus = {}));
|
|
326
|
+
var PropertyCondition;
|
|
327
|
+
(function (PropertyCondition) {
|
|
328
|
+
PropertyCondition["NEW"] = "new";
|
|
329
|
+
PropertyCondition["EXCELLENT"] = "excellent";
|
|
330
|
+
PropertyCondition["GOOD"] = "good";
|
|
331
|
+
PropertyCondition["FAIR"] = "fair";
|
|
332
|
+
PropertyCondition["NEEDS_WORK"] = "needs_work";
|
|
333
|
+
})(PropertyCondition || (exports.PropertyCondition = PropertyCondition = {}));
|
|
334
|
+
var RentalPeriod;
|
|
335
|
+
(function (RentalPeriod) {
|
|
336
|
+
RentalPeriod["DAILY"] = "daily";
|
|
337
|
+
RentalPeriod["WEEKLY"] = "weekly";
|
|
338
|
+
RentalPeriod["MONTHLY"] = "monthly";
|
|
339
|
+
RentalPeriod["YEARLY"] = "yearly";
|
|
340
|
+
})(RentalPeriod || (exports.RentalPeriod = RentalPeriod = {}));
|
|
341
|
+
var PropertyPurchaseStatus;
|
|
342
|
+
(function (PropertyPurchaseStatus) {
|
|
343
|
+
PropertyPurchaseStatus["INQUIRY"] = "inquiry";
|
|
344
|
+
PropertyPurchaseStatus["OFFER_MADE"] = "offer_made";
|
|
345
|
+
PropertyPurchaseStatus["UNDER_CONTRACT"] = "under_contract";
|
|
346
|
+
PropertyPurchaseStatus["COMPLETED"] = "completed";
|
|
347
|
+
PropertyPurchaseStatus["CANCELLED"] = "cancelled";
|
|
348
|
+
})(PropertyPurchaseStatus || (exports.PropertyPurchaseStatus = PropertyPurchaseStatus = {}));
|
|
349
|
+
var PropertyLeaseStatus;
|
|
350
|
+
(function (PropertyLeaseStatus) {
|
|
351
|
+
PropertyLeaseStatus["PENDING"] = "pending";
|
|
352
|
+
PropertyLeaseStatus["ACTIVE"] = "active";
|
|
353
|
+
PropertyLeaseStatus["RENEWED"] = "renewed";
|
|
354
|
+
PropertyLeaseStatus["TERMINATED"] = "terminated";
|
|
355
|
+
PropertyLeaseStatus["EXPIRED"] = "expired";
|
|
356
|
+
})(PropertyLeaseStatus || (exports.PropertyLeaseStatus = PropertyLeaseStatus = {}));
|
|
357
|
+
var DepositStatus;
|
|
358
|
+
(function (DepositStatus) {
|
|
359
|
+
DepositStatus["PENDING"] = "pending";
|
|
360
|
+
DepositStatus["PAID"] = "paid";
|
|
361
|
+
DepositStatus["RETURNED"] = "returned";
|
|
362
|
+
DepositStatus["FORFEITED"] = "forfeited";
|
|
363
|
+
})(DepositStatus || (exports.DepositStatus = DepositStatus = {}));
|
|
364
|
+
var PropertyInquiryType;
|
|
365
|
+
(function (PropertyInquiryType) {
|
|
366
|
+
PropertyInquiryType["OFFER"] = "offer";
|
|
367
|
+
PropertyInquiryType["GENERAL"] = "general";
|
|
368
|
+
})(PropertyInquiryType || (exports.PropertyInquiryType = PropertyInquiryType = {}));
|
|
369
|
+
var PropertyInquiryStatus;
|
|
370
|
+
(function (PropertyInquiryStatus) {
|
|
371
|
+
PropertyInquiryStatus["NEW"] = "new";
|
|
372
|
+
PropertyInquiryStatus["CONTACTED"] = "contacted";
|
|
373
|
+
PropertyInquiryStatus["VIEWING_SCHEDULED"] = "viewing_scheduled";
|
|
374
|
+
PropertyInquiryStatus["FOLLOW_UP"] = "follow_up";
|
|
375
|
+
PropertyInquiryStatus["CONVERTED"] = "converted";
|
|
376
|
+
PropertyInquiryStatus["CLOSED"] = "closed";
|
|
377
|
+
})(PropertyInquiryStatus || (exports.PropertyInquiryStatus = PropertyInquiryStatus = {}));
|
|
378
|
+
// Tax Rule Enums
|
|
379
|
+
var TaxScope;
|
|
380
|
+
(function (TaxScope) {
|
|
381
|
+
TaxScope["ORDER"] = "ORDER";
|
|
382
|
+
TaxScope["ITEM"] = "ITEM";
|
|
383
|
+
TaxScope["SERVICE"] = "SERVICE";
|
|
384
|
+
TaxScope["DELIVERY"] = "DELIVERY";
|
|
385
|
+
})(TaxScope || (exports.TaxScope = TaxScope = {}));
|
|
386
|
+
var TaxRateType;
|
|
387
|
+
(function (TaxRateType) {
|
|
388
|
+
TaxRateType["PERCENTAGE"] = "PERCENTAGE";
|
|
389
|
+
TaxRateType["FIXED"] = "FIXED";
|
|
390
|
+
})(TaxRateType || (exports.TaxRateType = TaxRateType = {}));
|
|
391
|
+
var TaxCatalogScope;
|
|
392
|
+
(function (TaxCatalogScope) {
|
|
393
|
+
TaxCatalogScope["ALL"] = "ALL";
|
|
394
|
+
TaxCatalogScope["MENU"] = "MENU";
|
|
395
|
+
TaxCatalogScope["PRODUCT"] = "PRODUCT";
|
|
396
|
+
TaxCatalogScope["SERVICE"] = "SERVICE";
|
|
397
|
+
TaxCatalogScope["SET"] = "SET";
|
|
398
|
+
})(TaxCatalogScope || (exports.TaxCatalogScope = TaxCatalogScope = {}));
|
|
399
|
+
// Discount Rule Enums
|
|
400
|
+
var DiscountScope;
|
|
401
|
+
(function (DiscountScope) {
|
|
402
|
+
DiscountScope["ORDER"] = "ORDER";
|
|
403
|
+
DiscountScope["ITEM"] = "ITEM";
|
|
404
|
+
DiscountScope["SHIPPING"] = "SHIPPING";
|
|
405
|
+
DiscountScope["SET"] = "SET";
|
|
406
|
+
})(DiscountScope || (exports.DiscountScope = DiscountScope = {}));
|
|
407
|
+
var DiscountType;
|
|
408
|
+
(function (DiscountType) {
|
|
409
|
+
DiscountType["PERCENTAGE"] = "PERCENTAGE";
|
|
410
|
+
DiscountType["FIXED"] = "FIXED";
|
|
411
|
+
})(DiscountType || (exports.DiscountType = DiscountType = {}));
|
|
412
|
+
var DiscountCatalogScope;
|
|
413
|
+
(function (DiscountCatalogScope) {
|
|
414
|
+
DiscountCatalogScope["ALL"] = "ALL";
|
|
415
|
+
DiscountCatalogScope["MENU"] = "MENU";
|
|
416
|
+
DiscountCatalogScope["PRODUCT"] = "PRODUCT";
|
|
417
|
+
DiscountCatalogScope["SERVICE"] = "SERVICE";
|
|
418
|
+
DiscountCatalogScope["SET"] = "SET";
|
|
419
|
+
})(DiscountCatalogScope || (exports.DiscountCatalogScope = DiscountCatalogScope = {}));
|
|
420
|
+
// Pricing Rule Enums
|
|
421
|
+
var PricingRuleApplyLevel;
|
|
422
|
+
(function (PricingRuleApplyLevel) {
|
|
423
|
+
PricingRuleApplyLevel["ITEM"] = "ITEM";
|
|
424
|
+
PricingRuleApplyLevel["ORDER"] = "ORDER";
|
|
425
|
+
})(PricingRuleApplyLevel || (exports.PricingRuleApplyLevel = PricingRuleApplyLevel = {}));
|
|
426
|
+
var PricingRuleAdjustmentType;
|
|
427
|
+
(function (PricingRuleAdjustmentType) {
|
|
428
|
+
PricingRuleAdjustmentType["PERCENTAGE"] = "PERCENTAGE";
|
|
429
|
+
PricingRuleAdjustmentType["FIXED"] = "FIXED";
|
|
430
|
+
PricingRuleAdjustmentType["OVERRIDE"] = "OVERRIDE";
|
|
431
|
+
})(PricingRuleAdjustmentType || (exports.PricingRuleAdjustmentType = PricingRuleAdjustmentType = {}));
|
|
432
|
+
var PricingChannel;
|
|
433
|
+
(function (PricingChannel) {
|
|
434
|
+
PricingChannel["ALL"] = "ALL";
|
|
435
|
+
PricingChannel["DIRECT"] = "DIRECT";
|
|
436
|
+
PricingChannel["ONLINE"] = "ONLINE";
|
|
437
|
+
PricingChannel["PHONE"] = "PHONE";
|
|
438
|
+
PricingChannel["WALK_IN"] = "WALK_IN";
|
|
439
|
+
})(PricingChannel || (exports.PricingChannel = PricingChannel = {}));
|
|
440
|
+
// Variant Axis Enums
|
|
441
|
+
var VariantAxisType;
|
|
442
|
+
(function (VariantAxisType) {
|
|
443
|
+
VariantAxisType["SWATCH"] = "swatch";
|
|
444
|
+
VariantAxisType["TEXT"] = "text";
|
|
445
|
+
VariantAxisType["IMAGE"] = "image";
|
|
446
|
+
VariantAxisType["NUMERIC"] = "numeric";
|
|
447
|
+
})(VariantAxisType || (exports.VariantAxisType = VariantAxisType = {}));
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Conversation type definitions and enumerations.
|
|
3
|
+
*
|
|
4
|
+
* Provides enumerations for conversation lifecycle management, event tracking,
|
|
5
|
+
* communication channels, and outbound messaging status tracking across
|
|
6
|
+
* telephony, email, and SMS channels.
|
|
7
|
+
*
|
|
8
|
+
* @module type-definitions/conversation
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Service conversation channel types.
|
|
12
|
+
*
|
|
13
|
+
* Identifies the communication channel used for a conversation,
|
|
14
|
+
* enabling channel-specific handling and routing logic.
|
|
15
|
+
*
|
|
16
|
+
* @see ServiceConversationConfigSchema - Uses this for channel identification
|
|
17
|
+
*/
|
|
18
|
+
export declare enum ServiceConversationType {
|
|
19
|
+
/** WebRTC or OTT voice call */
|
|
20
|
+
OTT_CALL = "OTT_CALL",
|
|
21
|
+
/** WebRTC or OTT text chat */
|
|
22
|
+
OTT_CHAT = "OTT_CHAT",
|
|
23
|
+
/** Traditional PSTN/SIP telephony call */
|
|
24
|
+
TELEPHONY_CALL = "TELEPHONY_CALL",
|
|
25
|
+
/** SMS text messaging */
|
|
26
|
+
SMS = "SMS",
|
|
27
|
+
/** Email communication */
|
|
28
|
+
EMAIL = "EMAIL",
|
|
29
|
+
/** WhatsApp messaging */
|
|
30
|
+
WHATSAPP = "WHATSAPP",
|
|
31
|
+
/** Telegram messaging */
|
|
32
|
+
TELEGRAM = "TELEGRAM"
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Conversation lifecycle status.
|
|
36
|
+
*
|
|
37
|
+
* Tracks the current state of a conversation from initiation through
|
|
38
|
+
* completion and post-processing (summarization).
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* **Status Flow:**
|
|
42
|
+
* ```
|
|
43
|
+
* PENDING → STARTED → ACTIVE → PAUSED → ACTIVE → ENDED → SUMMARIZED
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @see ServiceConversationConfigSchema - Uses this for lifecycle tracking
|
|
47
|
+
*/
|
|
48
|
+
export declare enum ConversationStatus {
|
|
49
|
+
/** Conversation created but not yet started */
|
|
50
|
+
PENDING = "pending",
|
|
51
|
+
/** Conversation initiated, awaiting participant connection */
|
|
52
|
+
STARTED = "started",
|
|
53
|
+
/** Conversation actively in progress with connected participants */
|
|
54
|
+
ACTIVE = "active",
|
|
55
|
+
/** Conversation temporarily paused (hold, transfer in progress) */
|
|
56
|
+
PAUSED = "paused",
|
|
57
|
+
/** Conversation ended, awaiting post-processing */
|
|
58
|
+
ENDED = "ended",
|
|
59
|
+
/** Initial AI summary generated for the conversation */
|
|
60
|
+
SUMMARIZED = "summarized",
|
|
61
|
+
/** Summary updated after additional processing or review */
|
|
62
|
+
UPDATED_SUMMARIZED = "updated_summarized"
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Translation direction for multilingual conversations.
|
|
66
|
+
*
|
|
67
|
+
* Configures whether real-time translation applies in one or both directions
|
|
68
|
+
* during AI-assisted multilingual conversations.
|
|
69
|
+
*/
|
|
70
|
+
export declare enum TranslationDirection {
|
|
71
|
+
/** Translate both participant's speech to each other's language */
|
|
72
|
+
BIDIRECTIONAL = "bidirectional",
|
|
73
|
+
/** Translate only one participant's speech (typically agent to customer) */
|
|
74
|
+
UNIDIRECTIONAL = "unidirectional"
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Conversation summary sentiment classification.
|
|
78
|
+
*
|
|
79
|
+
* AI-generated sentiment analysis result for conversation summaries,
|
|
80
|
+
* used for analytics, routing, and follow-up prioritization.
|
|
81
|
+
*/
|
|
82
|
+
export declare enum ConversationSummarySentiment {
|
|
83
|
+
/** Customer expressed satisfaction, issue resolved, or positive outcome */
|
|
84
|
+
POSITIVE = "positive",
|
|
85
|
+
/** Neutral interaction without strong positive or negative indicators */
|
|
86
|
+
NEUTRAL = "neutral",
|
|
87
|
+
/** Customer expressed frustration, issue unresolved, or negative outcome */
|
|
88
|
+
NEGATIVE = "negative"
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Call request status for outbound call lifecycle tracking.
|
|
92
|
+
*
|
|
93
|
+
* Tracks the progression of an outbound call request from creation
|
|
94
|
+
* through execution and completion.
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* **Status Lifecycle:**
|
|
98
|
+
* ```
|
|
99
|
+
* PENDING → SCHEDULED → IN_PROGRESS → COMPLETED
|
|
100
|
+
* ↘ FAILED
|
|
101
|
+
* ↘ CANCELLED
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @see BusinessCallRequestSchema - Uses this for call tracking
|
|
105
|
+
*/
|
|
106
|
+
export declare enum CallRequestStatus {
|
|
107
|
+
/** Call request created, awaiting processing or scheduled time */
|
|
108
|
+
PENDING = "pending",
|
|
109
|
+
/** Call scheduled for future execution within calling hours */
|
|
110
|
+
SCHEDULED = "scheduled",
|
|
111
|
+
/** Call currently active with AI agent engaged */
|
|
112
|
+
IN_PROGRESS = "in_progress",
|
|
113
|
+
/** Call successfully completed with conversation recorded */
|
|
114
|
+
COMPLETED = "completed",
|
|
115
|
+
/** Call failed due to technical error, no answer, or busy signal */
|
|
116
|
+
FAILED = "failed",
|
|
117
|
+
/** Call cancelled before execution by user or system */
|
|
118
|
+
CANCELLED = "cancelled"
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Schedule type for outbound call timing configuration.
|
|
122
|
+
*
|
|
123
|
+
* Determines when and how outbound calls are executed relative
|
|
124
|
+
* to the call request creation time.
|
|
125
|
+
*
|
|
126
|
+
* @see BusinessCallRequestSchema - Uses this for call scheduling
|
|
127
|
+
*/
|
|
128
|
+
export declare enum ScheduleType {
|
|
129
|
+
/** Execute call as soon as possible within calling hours */
|
|
130
|
+
IMMEDIATE = "immediate",
|
|
131
|
+
/** Execute call at specific scheduledAt timestamp */
|
|
132
|
+
SCHEDULED = "scheduled",
|
|
133
|
+
/** Execute call on recurring schedule based on callingHours */
|
|
134
|
+
RECURRING = "recurring"
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Email delivery status for tracking email lifecycle.
|
|
138
|
+
*
|
|
139
|
+
* Tracks the progression of an outbound email from queue through
|
|
140
|
+
* delivery or failure, updated by provider webhooks.
|
|
141
|
+
*
|
|
142
|
+
* @remarks
|
|
143
|
+
* **Status Lifecycle:**
|
|
144
|
+
* ```
|
|
145
|
+
* QUEUED → SENT → DELIVERED
|
|
146
|
+
* ↘ BOUNCED
|
|
147
|
+
* ↘ COMPLAINED
|
|
148
|
+
* ↘ FAILED
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @see EmailRecordSchema - Uses this for delivery tracking
|
|
152
|
+
*/
|
|
153
|
+
export declare enum EmailStatus {
|
|
154
|
+
/** Email request created, awaiting sending */
|
|
155
|
+
QUEUED = "queued",
|
|
156
|
+
/** Email successfully submitted to mail provider */
|
|
157
|
+
SENT = "sent",
|
|
158
|
+
/** Email confirmed delivered to recipient inbox */
|
|
159
|
+
DELIVERED = "delivered",
|
|
160
|
+
/** Email bounced (hard or soft bounce from recipient server) */
|
|
161
|
+
BOUNCED = "bounced",
|
|
162
|
+
/** Email failed to send due to technical error */
|
|
163
|
+
FAILED = "failed",
|
|
164
|
+
/** Recipient marked email as spam (complaint received) */
|
|
165
|
+
COMPLAINED = "complained"
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* SMS delivery status for tracking message lifecycle.
|
|
169
|
+
*
|
|
170
|
+
* Tracks the progression of an outbound SMS from queue through
|
|
171
|
+
* delivery or failure, updated by carrier delivery reports.
|
|
172
|
+
*
|
|
173
|
+
* @remarks
|
|
174
|
+
* **Status Lifecycle:**
|
|
175
|
+
* ```
|
|
176
|
+
* QUEUED → SENT → DELIVERED
|
|
177
|
+
* ↘ UNDELIVERED
|
|
178
|
+
* ↘ FAILED
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* @see SmsRequestSchema - Uses this for delivery tracking
|
|
182
|
+
*/
|
|
183
|
+
export declare enum SmsStatus {
|
|
184
|
+
/** SMS request created, awaiting sending */
|
|
185
|
+
QUEUED = "queued",
|
|
186
|
+
/** SMS successfully submitted to carrier */
|
|
187
|
+
SENT = "sent",
|
|
188
|
+
/** SMS confirmed delivered to recipient device */
|
|
189
|
+
DELIVERED = "delivered",
|
|
190
|
+
/** SMS failed to send due to technical error */
|
|
191
|
+
FAILED = "failed",
|
|
192
|
+
/** SMS could not be delivered (invalid number, blocked, etc.) */
|
|
193
|
+
UNDELIVERED = "undelivered"
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Outbound template channel types.
|
|
197
|
+
*
|
|
198
|
+
* Identifies the communication channel for outbound message templates.
|
|
199
|
+
*
|
|
200
|
+
* @see OutboundTemplateSchema - Uses this for channel identification
|
|
201
|
+
*/
|
|
202
|
+
export declare enum OutboundTemplateChannel {
|
|
203
|
+
/** Email template */
|
|
204
|
+
EMAIL = "EMAIL",
|
|
205
|
+
/** SMS text template */
|
|
206
|
+
SMS = "SMS",
|
|
207
|
+
/** WhatsApp message template */
|
|
208
|
+
WHATSAPP = "WHATSAPP"
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Conversation direction for tracking inbound/outbound interactions.
|
|
212
|
+
*
|
|
213
|
+
* Identifies whether a conversation was initiated by the customer (inbound)
|
|
214
|
+
* or by the business (outbound) for analytics, routing, and billing purposes.
|
|
215
|
+
*
|
|
216
|
+
* @see ServiceConversationConfigSchema - Uses this for direction tracking
|
|
217
|
+
*/
|
|
218
|
+
export declare enum ConversationDirection {
|
|
219
|
+
/** Customer-initiated conversation (incoming call, received email, etc.) */
|
|
220
|
+
INBOUND = "inbound",
|
|
221
|
+
/** Business-initiated conversation (outbound call, campaign, etc.) */
|
|
222
|
+
OUTBOUND = "outbound"
|
|
223
|
+
}
|