@wix/himalaya-cli 0.2004.0 → 0.2006.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/provisioning-facts.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +33 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/extensions.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/options.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/product-details.d.ts +58 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/_shared/types.generated.d.ts +2336 -26
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/addOns.generated.d.ts +169 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/attendance.generated.d.ts +150 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/attributeDefinition.generated.d.ts +124 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/attributeValue.generated.d.ts +107 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/availabilityCalendar.generated.d.ts +66 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/availabilityTimeSlots.generated.d.ts +115 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingFees.generated.d.ts +82 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingPolicies.generated.d.ts +174 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingPolicySnapshots.generated.d.ts +54 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookings.generated.d.ts +732 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingsSettings.generated.d.ts +54 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/catalogSearch.generated.d.ts +158 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/categories.generated.d.ts +74 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/categoriesV2.generated.d.ts +122 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/eventTimeSlots.generated.d.ts +76 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/extendedBookings.generated.d.ts +239 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/externalCalendars.generated.d.ts +229 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/index.generated.d.ts +28 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/multiServiceAvailabilityTimeSlots.generated.d.ts +97 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/pricing.generated.d.ts +138 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/relatedProducts.generated.d.ts +78 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/resourceTypes.generated.d.ts +109 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/resources.generated.d.ts +210 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/serviceOptionsAndVariants.generated.d.ts +194 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/services.generated.d.ts +642 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/staffMemberSettings.generated.d.ts +46 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/staffMembers.generated.d.ts +399 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/timeSlotsConfiguration.generated.d.ts +93 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/conferencing.generated.d.ts +200 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/eventViews.generated.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/events.generated.d.ts +355 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/index.generated.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/participations.generated.d.ts +98 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/scheduleTimeFrames.generated.d.ts +45 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/schedules.generated.d.ts +123 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/categories.generated.d.ts +15 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/comments.generated.d.ts +32 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/contentRevisions.generated.d.ts +27 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/widgets.generated.d.ts +20 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/abandonedCheckouts.generated.d.ts +215 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/backInStockNotifications.generated.d.ts +148 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/backInStockSettings.generated.d.ts +56 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/cart.generated.d.ts +380 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/cartV2.generated.d.ts +529 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkout.generated.d.ts +461 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkoutContent.generated.d.ts +27 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkoutSettings.generated.d.ts +137 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkoutTemplates.generated.d.ts +189 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/contactTaxDetails.generated.d.ts +185 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/currencies.generated.d.ts +62 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/currentCart.generated.d.ts +326 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/currentCartV2.generated.d.ts +442 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/deliveryProfile.generated.d.ts +399 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/deliverySolutions.generated.d.ts +110 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/discountRules.generated.d.ts +186 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/discountsCustomTrigger.generated.d.ts +22 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/draftOrders.generated.d.ts +877 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/draftSubscriptionContracts.generated.d.ts +301 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/ecommerceSettings.generated.d.ts +24 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/giftVouchers.generated.d.ts +73 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/index.generated.d.ts +45 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/localDeliveryOptions.generated.d.ts +99 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/manualTaxMappings.generated.d.ts +207 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderBilling.generated.d.ts +399 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderFulfillments.generated.d.ts +137 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderInvoices.generated.d.ts +80 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderPaymentRequests.generated.d.ts +171 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderTransactions.generated.d.ts +167 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orders.generated.d.ts +695 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/ordersSettings.generated.d.ts +39 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/recommendations.generated.d.ts +57 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/shippingOptions.generated.d.ts +144 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/shippoConfigurations.generated.d.ts +178 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/subscriptionContracts.generated.d.ts +209 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxCalculation.generated.d.ts +115 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxExemptGroups.generated.d.ts +218 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxGroups.generated.d.ts +140 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxRegions.generated.d.ts +126 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxSettings.generated.d.ts +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/tipSettings.generated.d.ts +116 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/tippableStaff.generated.d.ts +28 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/tips.generated.d.ts +221 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/totalsCalculator.generated.d.ts +141 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/wishlists.generated.d.ts +57 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/index.generated.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/orders.generated.d.ts +368 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/planBenefits.generated.d.ts +94 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/plans.generated.d.ts +235 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/plansV3.generated.d.ts +266 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/pricingPlansSettings.generated.d.ts +48 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/pricingVariantCategories.generated.d.ts +92 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/brandsV3.generated.d.ts +211 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/catalogImportsV3.generated.d.ts +382 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/catalogVersioning.generated.d.ts +17 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/collections.generated.d.ts +52 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/customizationsV3.generated.d.ts +292 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/index.generated.d.ts +18 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/infoSectionsV3.generated.d.ts +306 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/inventory.generated.d.ts +126 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/inventoryItemsV3.generated.d.ts +389 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/productGroupsV3.generated.d.ts +282 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/products.generated.d.ts +678 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/productsV3.generated.d.ts +1069 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/promotionsV3.generated.d.ts +232 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/readOnlyVariantsV3.generated.d.ts +93 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/ribbonsV3.generated.d.ts +211 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/storesLocationsV3.generated.d.ts +60 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/subscriptionOptions.generated.d.ts +223 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/wishlist.generated.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +1036 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-calendar.mjs +286 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +23 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +1663 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-pricing-plans.mjs +336 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +1029 -11
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +8 -4
- package/dist/cli.mjs +9 -10
- package/guides/importable-sdks.md +1 -0
- package/guides/sdk-reference.json +15672 -8927
- package/guides/wix-api-usage.md +28 -0
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/beauty-salon/dev/index.ts +231 -139
- package/templates/beauty-salon/l10n/ar.json +6 -12
- package/templates/beauty-salon/l10n/cs.json +6 -12
- package/templates/beauty-salon/l10n/da.json +6 -12
- package/templates/beauty-salon/l10n/de.json +6 -12
- package/templates/beauty-salon/l10n/el.json +6 -12
- package/templates/beauty-salon/l10n/en.json +11 -18
- package/templates/beauty-salon/l10n/es.json +6 -12
- package/templates/beauty-salon/l10n/fi.json +6 -12
- package/templates/beauty-salon/l10n/fr.json +6 -12
- package/templates/beauty-salon/l10n/he.json +6 -10
- package/templates/beauty-salon/l10n/hu.json +6 -12
- package/templates/beauty-salon/l10n/id.json +6 -12
- package/templates/beauty-salon/l10n/it.json +6 -12
- package/templates/beauty-salon/l10n/ja.json +6 -12
- package/templates/beauty-salon/l10n/ko.json +6 -12
- package/templates/beauty-salon/l10n/lt.json +6 -12
- package/templates/beauty-salon/l10n/nl.json +6 -12
- package/templates/beauty-salon/l10n/no.json +6 -12
- package/templates/beauty-salon/l10n/pl.json +6 -12
- package/templates/beauty-salon/l10n/pt.json +6 -12
- package/templates/beauty-salon/l10n/ru.json +6 -12
- package/templates/beauty-salon/l10n/sv.json +6 -12
- package/templates/beauty-salon/l10n/th.json +6 -12
- package/templates/beauty-salon/l10n/tr.json +6 -12
- package/templates/beauty-salon/l10n/uk.json +6 -12
- package/templates/beauty-salon/l10n/vi.json +6 -12
- package/templates/beauty-salon/l10n/zh.json +6 -12
- package/templates/beauty-salon/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/branded-lite/dev/index.ts +229 -137
- package/templates/branded-lite/l10n/ar.json +0 -12
- package/templates/branded-lite/l10n/cs.json +0 -12
- package/templates/branded-lite/l10n/da.json +0 -12
- package/templates/branded-lite/l10n/de.json +0 -12
- package/templates/branded-lite/l10n/el.json +0 -12
- package/templates/branded-lite/l10n/en.json +4 -18
- package/templates/branded-lite/l10n/es.json +0 -12
- package/templates/branded-lite/l10n/fi.json +0 -12
- package/templates/branded-lite/l10n/fr.json +0 -12
- package/templates/branded-lite/l10n/he.json +0 -10
- package/templates/branded-lite/l10n/hu.json +0 -12
- package/templates/branded-lite/l10n/id.json +0 -12
- package/templates/branded-lite/l10n/it.json +0 -12
- package/templates/branded-lite/l10n/ja.json +0 -12
- package/templates/branded-lite/l10n/ko.json +0 -12
- package/templates/branded-lite/l10n/lt.json +0 -12
- package/templates/branded-lite/l10n/nl.json +0 -12
- package/templates/branded-lite/l10n/no.json +0 -12
- package/templates/branded-lite/l10n/pl.json +0 -12
- package/templates/branded-lite/l10n/pt.json +0 -12
- package/templates/branded-lite/l10n/ru.json +0 -12
- package/templates/branded-lite/l10n/sv.json +0 -12
- package/templates/branded-lite/l10n/th.json +0 -12
- package/templates/branded-lite/l10n/tr.json +0 -12
- package/templates/branded-lite/l10n/uk.json +0 -12
- package/templates/branded-lite/l10n/vi.json +0 -12
- package/templates/branded-lite/l10n/zh.json +0 -12
- package/templates/branded-lite/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/community-club/dev/index.ts +229 -137
- package/templates/community-club/l10n/ar.json +6 -12
- package/templates/community-club/l10n/cs.json +6 -12
- package/templates/community-club/l10n/da.json +6 -12
- package/templates/community-club/l10n/de.json +6 -12
- package/templates/community-club/l10n/el.json +6 -12
- package/templates/community-club/l10n/en.json +11 -18
- package/templates/community-club/l10n/es.json +6 -12
- package/templates/community-club/l10n/fi.json +6 -12
- package/templates/community-club/l10n/fr.json +6 -12
- package/templates/community-club/l10n/he.json +6 -10
- package/templates/community-club/l10n/hu.json +6 -12
- package/templates/community-club/l10n/id.json +6 -12
- package/templates/community-club/l10n/it.json +6 -12
- package/templates/community-club/l10n/ja.json +6 -12
- package/templates/community-club/l10n/ko.json +6 -12
- package/templates/community-club/l10n/lt.json +6 -12
- package/templates/community-club/l10n/nl.json +6 -12
- package/templates/community-club/l10n/no.json +6 -12
- package/templates/community-club/l10n/pl.json +6 -12
- package/templates/community-club/l10n/pt.json +6 -12
- package/templates/community-club/l10n/ru.json +6 -12
- package/templates/community-club/l10n/sv.json +6 -12
- package/templates/community-club/l10n/th.json +6 -12
- package/templates/community-club/l10n/tr.json +6 -12
- package/templates/community-club/l10n/uk.json +6 -12
- package/templates/community-club/l10n/vi.json +6 -12
- package/templates/community-club/l10n/zh.json +6 -12
- package/templates/community-club/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/community-club/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/events-meetups/dev/index.ts +229 -137
- package/templates/events-meetups/l10n/ar.json +6 -12
- package/templates/events-meetups/l10n/cs.json +6 -12
- package/templates/events-meetups/l10n/da.json +6 -12
- package/templates/events-meetups/l10n/de.json +6 -12
- package/templates/events-meetups/l10n/el.json +6 -12
- package/templates/events-meetups/l10n/en.json +11 -18
- package/templates/events-meetups/l10n/es.json +6 -12
- package/templates/events-meetups/l10n/fi.json +6 -12
- package/templates/events-meetups/l10n/fr.json +6 -12
- package/templates/events-meetups/l10n/he.json +6 -10
- package/templates/events-meetups/l10n/hu.json +6 -12
- package/templates/events-meetups/l10n/id.json +6 -12
- package/templates/events-meetups/l10n/it.json +6 -12
- package/templates/events-meetups/l10n/ja.json +6 -12
- package/templates/events-meetups/l10n/ko.json +6 -12
- package/templates/events-meetups/l10n/lt.json +6 -12
- package/templates/events-meetups/l10n/nl.json +6 -12
- package/templates/events-meetups/l10n/no.json +6 -12
- package/templates/events-meetups/l10n/pl.json +6 -12
- package/templates/events-meetups/l10n/pt.json +6 -12
- package/templates/events-meetups/l10n/ru.json +6 -12
- package/templates/events-meetups/l10n/sv.json +6 -12
- package/templates/events-meetups/l10n/th.json +6 -12
- package/templates/events-meetups/l10n/tr.json +6 -12
- package/templates/events-meetups/l10n/uk.json +6 -12
- package/templates/events-meetups/l10n/vi.json +6 -12
- package/templates/events-meetups/l10n/zh.json +6 -12
- package/templates/events-meetups/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/fitness-gym/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/gym-fitness/dev/index.ts +231 -139
- package/templates/gym-fitness/l10n/ar.json +6 -12
- package/templates/gym-fitness/l10n/cs.json +6 -12
- package/templates/gym-fitness/l10n/da.json +6 -12
- package/templates/gym-fitness/l10n/de.json +6 -12
- package/templates/gym-fitness/l10n/el.json +6 -12
- package/templates/gym-fitness/l10n/en.json +11 -18
- package/templates/gym-fitness/l10n/es.json +6 -12
- package/templates/gym-fitness/l10n/fi.json +6 -12
- package/templates/gym-fitness/l10n/fr.json +6 -12
- package/templates/gym-fitness/l10n/he.json +6 -10
- package/templates/gym-fitness/l10n/hu.json +6 -12
- package/templates/gym-fitness/l10n/id.json +6 -12
- package/templates/gym-fitness/l10n/it.json +6 -12
- package/templates/gym-fitness/l10n/ja.json +6 -12
- package/templates/gym-fitness/l10n/ko.json +6 -12
- package/templates/gym-fitness/l10n/lt.json +6 -12
- package/templates/gym-fitness/l10n/nl.json +6 -12
- package/templates/gym-fitness/l10n/no.json +6 -12
- package/templates/gym-fitness/l10n/pl.json +6 -12
- package/templates/gym-fitness/l10n/pt.json +6 -12
- package/templates/gym-fitness/l10n/ru.json +6 -12
- package/templates/gym-fitness/l10n/sv.json +6 -12
- package/templates/gym-fitness/l10n/th.json +6 -12
- package/templates/gym-fitness/l10n/tr.json +6 -12
- package/templates/gym-fitness/l10n/uk.json +6 -12
- package/templates/gym-fitness/l10n/vi.json +6 -12
- package/templates/gym-fitness/l10n/zh.json +6 -12
- package/templates/gym-fitness/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/medical-services/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/medical-services/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/nonprofit-cause/dev/index.ts +229 -137
- package/templates/nonprofit-cause/l10n/ar.json +6 -12
- package/templates/nonprofit-cause/l10n/cs.json +6 -12
- package/templates/nonprofit-cause/l10n/da.json +6 -12
- package/templates/nonprofit-cause/l10n/de.json +6 -12
- package/templates/nonprofit-cause/l10n/el.json +6 -12
- package/templates/nonprofit-cause/l10n/en.json +11 -18
- package/templates/nonprofit-cause/l10n/es.json +6 -12
- package/templates/nonprofit-cause/l10n/fi.json +6 -12
- package/templates/nonprofit-cause/l10n/fr.json +6 -12
- package/templates/nonprofit-cause/l10n/he.json +6 -10
- package/templates/nonprofit-cause/l10n/hu.json +6 -12
- package/templates/nonprofit-cause/l10n/id.json +6 -12
- package/templates/nonprofit-cause/l10n/it.json +6 -12
- package/templates/nonprofit-cause/l10n/ja.json +6 -12
- package/templates/nonprofit-cause/l10n/ko.json +6 -12
- package/templates/nonprofit-cause/l10n/lt.json +6 -12
- package/templates/nonprofit-cause/l10n/nl.json +6 -12
- package/templates/nonprofit-cause/l10n/no.json +6 -12
- package/templates/nonprofit-cause/l10n/pl.json +6 -12
- package/templates/nonprofit-cause/l10n/pt.json +6 -12
- package/templates/nonprofit-cause/l10n/ru.json +6 -12
- package/templates/nonprofit-cause/l10n/sv.json +6 -12
- package/templates/nonprofit-cause/l10n/th.json +6 -12
- package/templates/nonprofit-cause/l10n/tr.json +6 -12
- package/templates/nonprofit-cause/l10n/uk.json +6 -12
- package/templates/nonprofit-cause/l10n/vi.json +6 -12
- package/templates/nonprofit-cause/l10n/zh.json +6 -12
- package/templates/nonprofit-cause/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/personal-fitness-trainer/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/podcast-creator/dev/index.ts +229 -137
- package/templates/podcast-creator/l10n/ar.json +6 -12
- package/templates/podcast-creator/l10n/cs.json +6 -12
- package/templates/podcast-creator/l10n/da.json +6 -12
- package/templates/podcast-creator/l10n/de.json +6 -12
- package/templates/podcast-creator/l10n/el.json +6 -12
- package/templates/podcast-creator/l10n/en.json +11 -18
- package/templates/podcast-creator/l10n/es.json +6 -12
- package/templates/podcast-creator/l10n/fi.json +6 -12
- package/templates/podcast-creator/l10n/fr.json +6 -12
- package/templates/podcast-creator/l10n/he.json +6 -10
- package/templates/podcast-creator/l10n/hu.json +6 -12
- package/templates/podcast-creator/l10n/id.json +6 -12
- package/templates/podcast-creator/l10n/it.json +6 -12
- package/templates/podcast-creator/l10n/ja.json +6 -12
- package/templates/podcast-creator/l10n/ko.json +6 -12
- package/templates/podcast-creator/l10n/lt.json +6 -12
- package/templates/podcast-creator/l10n/nl.json +6 -12
- package/templates/podcast-creator/l10n/no.json +6 -12
- package/templates/podcast-creator/l10n/pl.json +6 -12
- package/templates/podcast-creator/l10n/pt.json +6 -12
- package/templates/podcast-creator/l10n/ru.json +6 -12
- package/templates/podcast-creator/l10n/sv.json +6 -12
- package/templates/podcast-creator/l10n/th.json +6 -12
- package/templates/podcast-creator/l10n/tr.json +6 -12
- package/templates/podcast-creator/l10n/uk.json +6 -12
- package/templates/podcast-creator/l10n/vi.json +6 -12
- package/templates/podcast-creator/l10n/zh.json +6 -12
- package/templates/podcast-creator/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/portfolio-creative/dev/index.ts +231 -139
- package/templates/portfolio-creative/l10n/ar.json +0 -12
- package/templates/portfolio-creative/l10n/cs.json +0 -12
- package/templates/portfolio-creative/l10n/da.json +0 -12
- package/templates/portfolio-creative/l10n/de.json +0 -12
- package/templates/portfolio-creative/l10n/el.json +0 -12
- package/templates/portfolio-creative/l10n/en.json +4 -18
- package/templates/portfolio-creative/l10n/es.json +0 -12
- package/templates/portfolio-creative/l10n/fi.json +0 -12
- package/templates/portfolio-creative/l10n/fr.json +0 -12
- package/templates/portfolio-creative/l10n/he.json +0 -10
- package/templates/portfolio-creative/l10n/hu.json +0 -12
- package/templates/portfolio-creative/l10n/id.json +0 -12
- package/templates/portfolio-creative/l10n/it.json +0 -12
- package/templates/portfolio-creative/l10n/ja.json +0 -12
- package/templates/portfolio-creative/l10n/ko.json +0 -12
- package/templates/portfolio-creative/l10n/lt.json +0 -12
- package/templates/portfolio-creative/l10n/nl.json +0 -12
- package/templates/portfolio-creative/l10n/no.json +0 -12
- package/templates/portfolio-creative/l10n/pl.json +0 -12
- package/templates/portfolio-creative/l10n/pt.json +0 -12
- package/templates/portfolio-creative/l10n/ru.json +0 -12
- package/templates/portfolio-creative/l10n/sv.json +0 -12
- package/templates/portfolio-creative/l10n/th.json +0 -12
- package/templates/portfolio-creative/l10n/tr.json +0 -12
- package/templates/portfolio-creative/l10n/uk.json +0 -12
- package/templates/portfolio-creative/l10n/vi.json +0 -12
- package/templates/portfolio-creative/l10n/zh.json +0 -12
- package/templates/portfolio-creative/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/professional-services/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/professional-services/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/restaurant/dev/index.ts +229 -137
- package/templates/restaurant/l10n/ar.json +6 -12
- package/templates/restaurant/l10n/cs.json +6 -12
- package/templates/restaurant/l10n/da.json +6 -12
- package/templates/restaurant/l10n/de.json +6 -12
- package/templates/restaurant/l10n/el.json +6 -12
- package/templates/restaurant/l10n/en.json +11 -18
- package/templates/restaurant/l10n/es.json +6 -12
- package/templates/restaurant/l10n/fi.json +6 -12
- package/templates/restaurant/l10n/fr.json +6 -12
- package/templates/restaurant/l10n/he.json +6 -10
- package/templates/restaurant/l10n/hu.json +6 -12
- package/templates/restaurant/l10n/id.json +6 -12
- package/templates/restaurant/l10n/it.json +6 -12
- package/templates/restaurant/l10n/ja.json +6 -12
- package/templates/restaurant/l10n/ko.json +6 -12
- package/templates/restaurant/l10n/lt.json +6 -12
- package/templates/restaurant/l10n/nl.json +6 -12
- package/templates/restaurant/l10n/no.json +6 -12
- package/templates/restaurant/l10n/pl.json +6 -12
- package/templates/restaurant/l10n/pt.json +6 -12
- package/templates/restaurant/l10n/ru.json +6 -12
- package/templates/restaurant/l10n/sv.json +6 -12
- package/templates/restaurant/l10n/th.json +6 -12
- package/templates/restaurant/l10n/tr.json +6 -12
- package/templates/restaurant/l10n/uk.json +6 -12
- package/templates/restaurant/l10n/vi.json +6 -12
- package/templates/restaurant/l10n/zh.json +6 -12
- package/templates/restaurant/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/retail-store/dev/index.ts +229 -137
- package/templates/retail-store/l10n/ar.json +6 -12
- package/templates/retail-store/l10n/cs.json +6 -12
- package/templates/retail-store/l10n/da.json +6 -12
- package/templates/retail-store/l10n/de.json +6 -12
- package/templates/retail-store/l10n/el.json +6 -12
- package/templates/retail-store/l10n/en.json +11 -18
- package/templates/retail-store/l10n/es.json +6 -12
- package/templates/retail-store/l10n/fi.json +6 -12
- package/templates/retail-store/l10n/fr.json +6 -12
- package/templates/retail-store/l10n/he.json +6 -10
- package/templates/retail-store/l10n/hu.json +6 -12
- package/templates/retail-store/l10n/id.json +6 -12
- package/templates/retail-store/l10n/it.json +6 -12
- package/templates/retail-store/l10n/ja.json +6 -12
- package/templates/retail-store/l10n/ko.json +6 -12
- package/templates/retail-store/l10n/lt.json +6 -12
- package/templates/retail-store/l10n/nl.json +6 -12
- package/templates/retail-store/l10n/no.json +6 -12
- package/templates/retail-store/l10n/pl.json +6 -12
- package/templates/retail-store/l10n/pt.json +6 -12
- package/templates/retail-store/l10n/ru.json +6 -12
- package/templates/retail-store/l10n/sv.json +6 -12
- package/templates/retail-store/l10n/th.json +6 -12
- package/templates/retail-store/l10n/tr.json +6 -12
- package/templates/retail-store/l10n/uk.json +6 -12
- package/templates/retail-store/l10n/vi.json +6 -12
- package/templates/retail-store/l10n/zh.json +6 -12
- package/templates/retail-store/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/salon-spa/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/salon-spa/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/yoga-studio/dev/index.ts +231 -139
- package/templates/yoga-studio/l10n/ar.json +6 -12
- package/templates/yoga-studio/l10n/cs.json +6 -12
- package/templates/yoga-studio/l10n/da.json +6 -12
- package/templates/yoga-studio/l10n/de.json +6 -12
- package/templates/yoga-studio/l10n/el.json +6 -12
- package/templates/yoga-studio/l10n/en.json +11 -18
- package/templates/yoga-studio/l10n/es.json +6 -12
- package/templates/yoga-studio/l10n/fi.json +6 -12
- package/templates/yoga-studio/l10n/fr.json +6 -12
- package/templates/yoga-studio/l10n/he.json +6 -10
- package/templates/yoga-studio/l10n/hu.json +6 -12
- package/templates/yoga-studio/l10n/id.json +6 -12
- package/templates/yoga-studio/l10n/it.json +6 -12
- package/templates/yoga-studio/l10n/ja.json +6 -12
- package/templates/yoga-studio/l10n/ko.json +6 -12
- package/templates/yoga-studio/l10n/lt.json +6 -12
- package/templates/yoga-studio/l10n/nl.json +6 -12
- package/templates/yoga-studio/l10n/no.json +6 -12
- package/templates/yoga-studio/l10n/pl.json +6 -12
- package/templates/yoga-studio/l10n/pt.json +6 -12
- package/templates/yoga-studio/l10n/ru.json +6 -12
- package/templates/yoga-studio/l10n/sv.json +6 -12
- package/templates/yoga-studio/l10n/th.json +6 -12
- package/templates/yoga-studio/l10n/tr.json +6 -12
- package/templates/yoga-studio/l10n/uk.json +6 -12
- package/templates/yoga-studio/l10n/vi.json +6 -12
- package/templates/yoga-studio/l10n/zh.json +6 -12
- package/templates/yoga-studio/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-info/index.ts +30 -19
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// ../../stdlib/wix-sdk-auto/calendar/conferencing.generated.ts
|
|
8
|
+
var conferencing_generated_exports = {};
|
|
9
|
+
__export(conferencing_generated_exports, {
|
|
10
|
+
connect: () => connect,
|
|
11
|
+
createConference: () => createConference,
|
|
12
|
+
deleteConference: () => deleteConference,
|
|
13
|
+
getConference: () => getConference,
|
|
14
|
+
listConnections: () => listConnections,
|
|
15
|
+
listProviders: () => listProviders,
|
|
16
|
+
markConnectionAsDisconnected: () => markConnectionAsDisconnected,
|
|
17
|
+
updateConference: () => updateConference
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// ../../stdlib/wix-sdk-auto/_shared/runtime.generated.ts
|
|
21
|
+
function wixQueryPath(path, req) {
|
|
22
|
+
const parts = [];
|
|
23
|
+
const pair = (key, value) => {
|
|
24
|
+
parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
25
|
+
};
|
|
26
|
+
const add = (key, value) => {
|
|
27
|
+
if (value === void 0 || value === null) return;
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
for (const item of value) {
|
|
30
|
+
if (item === void 0 || item === null || typeof item === "object") continue;
|
|
31
|
+
pair(key, item);
|
|
32
|
+
}
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (typeof value === "object") {
|
|
36
|
+
for (const [k, v] of Object.entries(value)) add(`${key}.${k}`, v);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
pair(key, value);
|
|
40
|
+
};
|
|
41
|
+
for (const [key, value] of Object.entries(req ?? {})) add(key, value);
|
|
42
|
+
return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
|
|
43
|
+
}
|
|
44
|
+
function readField(req, field) {
|
|
45
|
+
let value = req;
|
|
46
|
+
for (const key of field.split(".")) {
|
|
47
|
+
if (value === null || typeof value !== "object") return void 0;
|
|
48
|
+
value = value[key];
|
|
49
|
+
}
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function restFieldMasks(req) {
|
|
53
|
+
if (req === null || typeof req !== "object") return req;
|
|
54
|
+
if (Array.isArray(req)) {
|
|
55
|
+
let changed = false;
|
|
56
|
+
const items = req.map((item) => {
|
|
57
|
+
const next = restFieldMasks(item);
|
|
58
|
+
if (next !== item) changed = true;
|
|
59
|
+
return next;
|
|
60
|
+
});
|
|
61
|
+
return changed ? items : req;
|
|
62
|
+
}
|
|
63
|
+
let out;
|
|
64
|
+
for (const [key, value] of Object.entries(req)) {
|
|
65
|
+
let next = value;
|
|
66
|
+
if ((key === "fieldMask" || key === "mask") && Array.isArray(value) && value.every((v) => typeof v === "string")) next = value.join(",");
|
|
67
|
+
else if (value !== null && typeof value === "object") next = restFieldMasks(value);
|
|
68
|
+
if (next !== value) (out ?? (out = { ...req }))[key] = next;
|
|
69
|
+
}
|
|
70
|
+
return out ?? req;
|
|
71
|
+
}
|
|
72
|
+
function withoutFields(req, fields) {
|
|
73
|
+
if (fields.length === 0 || req === null || typeof req !== "object") return req;
|
|
74
|
+
const out = { ...req };
|
|
75
|
+
for (const field of fields) {
|
|
76
|
+
const dot = field.indexOf(".");
|
|
77
|
+
const head = dot < 0 ? field : field.slice(0, dot);
|
|
78
|
+
if (!(head in out)) continue;
|
|
79
|
+
if (dot < 0) delete out[head];
|
|
80
|
+
else out[head] = withoutFields(out[head], [field.slice(dot + 1)]);
|
|
81
|
+
}
|
|
82
|
+
return out;
|
|
83
|
+
}
|
|
84
|
+
function wixCall(verb, template, req, opts, route = {}) {
|
|
85
|
+
return send(verb, template, req, opts, route, false);
|
|
86
|
+
}
|
|
87
|
+
function send(verb, template, req, opts, route, queue) {
|
|
88
|
+
const api = globalThis.himalaya?.wixApi;
|
|
89
|
+
if (!api) return Promise.reject(new Error("@himalaya/wix-*: host did not install the wixApi bridge"));
|
|
90
|
+
const fields = route.pathFields ?? [];
|
|
91
|
+
let path;
|
|
92
|
+
try {
|
|
93
|
+
let i = 0;
|
|
94
|
+
path = template.replace(/\{[^}]+\}/g, () => {
|
|
95
|
+
const field = fields[i++];
|
|
96
|
+
const value = field === void 0 ? void 0 : readField(req, field);
|
|
97
|
+
if (value === void 0 || value === null || value === "") {
|
|
98
|
+
throw new Error(`${verb} ${template}: request field ${field ?? "(unmapped)"} is required`);
|
|
99
|
+
}
|
|
100
|
+
return encodeURIComponent(String(value));
|
|
101
|
+
});
|
|
102
|
+
} catch (err) {
|
|
103
|
+
return Promise.reject(err);
|
|
104
|
+
}
|
|
105
|
+
const site = opts?.site?.trim();
|
|
106
|
+
const headers = site ? { "wix-site-id": site } : void 0;
|
|
107
|
+
const wire = restFieldMasks(req);
|
|
108
|
+
const target = route.query ? wixQueryPath(path, withoutFields(wire, fields)) : path;
|
|
109
|
+
const body = route.query ? void 0 : wire;
|
|
110
|
+
const readShaped = verb === "GET" || verb === "HEAD" || verb === "POST" && /\/(query|query-cursor|search|list|count)(?:\?|$)/i.test(target.split("#")[0]);
|
|
111
|
+
if (readShaped && (opts?.cache || opts?.onCacheResult)) {
|
|
112
|
+
if (!api.read) return Promise.reject(new Error("READ_LIFECYCLE_UNSUPPORTED: update the Himalaya runtime"));
|
|
113
|
+
return api.read(verb, target, body, headers, { cache: opts.cache ?? "default" }).then((result) => {
|
|
114
|
+
opts.onCacheResult?.(result.cache);
|
|
115
|
+
return result.data;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (opts?.cache === "only-if-cached") return Promise.reject(new Error("OFFLINE_CACHE_MISS"));
|
|
119
|
+
if (!queue) return api.call(verb, target, body, headers);
|
|
120
|
+
if (!api.offline) return api.call(verb, target, body, headers).then((value) => ({ status: "sent", value }));
|
|
121
|
+
return api.call(verb, target, body, headers, { offline: "queue" });
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// ../../stdlib/wix-sdk-auto/calendar/conferencing.generated.ts
|
|
125
|
+
function connect(req = {}, opts) {
|
|
126
|
+
return wixCall("POST", "/calendar/v3/conferences/v1/connections/connect", req, opts);
|
|
127
|
+
}
|
|
128
|
+
function createConference(req = {}, opts) {
|
|
129
|
+
return wixCall("POST", "/calendar/v3/conferences/v1/conferences", req, opts);
|
|
130
|
+
}
|
|
131
|
+
function deleteConference(req, opts) {
|
|
132
|
+
return wixCall("DELETE", "/calendar/v3/conferences/v1/conferences/{conferenceId}", req, opts, { pathFields: ["conferenceId"], query: true });
|
|
133
|
+
}
|
|
134
|
+
function getConference(req, opts) {
|
|
135
|
+
return wixCall("GET", "/calendar/v3/conferences/v1/conferences/{conferenceId}", req, opts, { pathFields: ["conferenceId"], query: true });
|
|
136
|
+
}
|
|
137
|
+
function listConnections(req = {}, opts) {
|
|
138
|
+
return wixCall("GET", "/calendar/v3/conferences/v1/connections", req, opts, { query: true });
|
|
139
|
+
}
|
|
140
|
+
function listProviders(req = {}, opts) {
|
|
141
|
+
return wixCall("GET", "/calendar/v3/conferences/v1/providers", req, opts, { query: true });
|
|
142
|
+
}
|
|
143
|
+
function markConnectionAsDisconnected(req = {}, opts) {
|
|
144
|
+
return wixCall("POST", "/calendar/v3/conferences/v1/connections/mark-as-disconnected", req, opts);
|
|
145
|
+
}
|
|
146
|
+
function updateConference(req, opts) {
|
|
147
|
+
return wixCall("PATCH", "/calendar/v3/conferences/v1/conferences/{conferenceId}", req, opts, { pathFields: ["conference.id"] });
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// ../../stdlib/wix-sdk-auto/calendar/eventViews.generated.ts
|
|
151
|
+
var eventViews_generated_exports = {};
|
|
152
|
+
__export(eventViews_generated_exports, {
|
|
153
|
+
getEventsView: () => getEventsView
|
|
154
|
+
});
|
|
155
|
+
function getEventsView(req = {}, opts) {
|
|
156
|
+
return wixCall("GET", "/calendar/v3/events/view", req, opts, { query: true });
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// ../../stdlib/wix-sdk-auto/calendar/events.generated.ts
|
|
160
|
+
var events_generated_exports = {};
|
|
161
|
+
__export(events_generated_exports, {
|
|
162
|
+
bulkCancelEvent: () => bulkCancelEvent,
|
|
163
|
+
bulkCreateEvent: () => bulkCreateEvent,
|
|
164
|
+
bulkUpdateEvent: () => bulkUpdateEvent,
|
|
165
|
+
cancelEvent: () => cancelEvent,
|
|
166
|
+
createEvent: () => createEvent,
|
|
167
|
+
getEvent: () => getEvent,
|
|
168
|
+
listEvents: () => listEvents,
|
|
169
|
+
listEventsByContactId: () => listEventsByContactId,
|
|
170
|
+
listEventsByMemberId: () => listEventsByMemberId,
|
|
171
|
+
queryEvents: () => queryEvents,
|
|
172
|
+
restoreEventDefaults: () => restoreEventDefaults,
|
|
173
|
+
splitRecurringEvent: () => splitRecurringEvent,
|
|
174
|
+
updateEvent: () => updateEvent
|
|
175
|
+
});
|
|
176
|
+
function bulkCancelEvent(req = {}, opts) {
|
|
177
|
+
return wixCall("POST", "/calendar/v3/bulk/events/cancel", req, opts);
|
|
178
|
+
}
|
|
179
|
+
function bulkCreateEvent(req = {}, opts) {
|
|
180
|
+
return wixCall("POST", "/calendar/v3/bulk/events/create", req, opts);
|
|
181
|
+
}
|
|
182
|
+
function bulkUpdateEvent(req = {}, opts) {
|
|
183
|
+
return wixCall("POST", "/calendar/v3/bulk/events/update", req, opts);
|
|
184
|
+
}
|
|
185
|
+
function cancelEvent(req, opts) {
|
|
186
|
+
return wixCall("POST", "/calendar/v3/events/{eventId}/cancel", req, opts, { pathFields: ["eventId"] });
|
|
187
|
+
}
|
|
188
|
+
function createEvent(req = {}, opts) {
|
|
189
|
+
return wixCall("POST", "/calendar/v3/events", req, opts);
|
|
190
|
+
}
|
|
191
|
+
function getEvent(req, opts) {
|
|
192
|
+
return wixCall("GET", "/calendar/v3/events/{eventId}", req, opts, { pathFields: ["eventId"], query: true });
|
|
193
|
+
}
|
|
194
|
+
function listEvents(req = {}, opts) {
|
|
195
|
+
return wixCall("GET", "/calendar/v3/events", req, opts, { query: true });
|
|
196
|
+
}
|
|
197
|
+
function listEventsByContactId(req, opts) {
|
|
198
|
+
return wixCall("GET", "/calendar/v3/events/contactId/{contactId}", req, opts, { pathFields: ["contactId"], query: true });
|
|
199
|
+
}
|
|
200
|
+
function listEventsByMemberId(req, opts) {
|
|
201
|
+
return wixCall("GET", "/calendar/v3/events/memberId/{memberId}", req, opts, { pathFields: ["memberId"], query: true });
|
|
202
|
+
}
|
|
203
|
+
function queryEvents(req = {}, opts) {
|
|
204
|
+
return wixCall("POST", "/calendar/v3/events/query", req, opts);
|
|
205
|
+
}
|
|
206
|
+
function restoreEventDefaults(req, opts) {
|
|
207
|
+
return wixCall("POST", "/calendar/v3/events/{eventId}/restore-defaults", req, opts, { pathFields: ["eventId"] });
|
|
208
|
+
}
|
|
209
|
+
function splitRecurringEvent(req, opts) {
|
|
210
|
+
return wixCall("POST", "/calendar/v3/events/{recurringEventId}/split", req, opts, { pathFields: ["recurringEventId"] });
|
|
211
|
+
}
|
|
212
|
+
function updateEvent(req, opts) {
|
|
213
|
+
return wixCall("PATCH", "/calendar/v3/events/{eventId}", req, opts, { pathFields: ["event.id"] });
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// ../../stdlib/wix-sdk-auto/calendar/participations.generated.ts
|
|
217
|
+
var participations_generated_exports = {};
|
|
218
|
+
__export(participations_generated_exports, {
|
|
219
|
+
createParticipation: () => createParticipation,
|
|
220
|
+
deleteParticipation: () => deleteParticipation,
|
|
221
|
+
getParticipation: () => getParticipation,
|
|
222
|
+
queryParticipations: () => queryParticipations,
|
|
223
|
+
updateParticipation: () => updateParticipation
|
|
224
|
+
});
|
|
225
|
+
function createParticipation(req = {}, opts) {
|
|
226
|
+
return wixCall("POST", "/calendar/v3/participations", req, opts);
|
|
227
|
+
}
|
|
228
|
+
function deleteParticipation(req, opts) {
|
|
229
|
+
return wixCall("DELETE", "/calendar/v3/participations/{participationId}", req, opts, { pathFields: ["participationId"], query: true });
|
|
230
|
+
}
|
|
231
|
+
function getParticipation(req, opts) {
|
|
232
|
+
return wixCall("GET", "/calendar/v3/participations/{participationId}", req, opts, { pathFields: ["participationId"], query: true });
|
|
233
|
+
}
|
|
234
|
+
function queryParticipations(req = {}, opts) {
|
|
235
|
+
return wixCall("POST", "/calendar/v3/participations/query", req, opts);
|
|
236
|
+
}
|
|
237
|
+
function updateParticipation(req, opts) {
|
|
238
|
+
return wixCall("PATCH", "/calendar/v3/participations/{participationId}", req, opts, { pathFields: ["participation.id"] });
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// ../../stdlib/wix-sdk-auto/calendar/scheduleTimeFrames.generated.ts
|
|
242
|
+
var scheduleTimeFrames_generated_exports = {};
|
|
243
|
+
__export(scheduleTimeFrames_generated_exports, {
|
|
244
|
+
getScheduleTimeFrame: () => getScheduleTimeFrame,
|
|
245
|
+
listScheduleTimeFrames: () => listScheduleTimeFrames
|
|
246
|
+
});
|
|
247
|
+
function getScheduleTimeFrame(req, opts) {
|
|
248
|
+
return wixCall("GET", "/calendar/v3/schedules/timeframe/{id}", req, opts, { pathFields: ["id"], query: true });
|
|
249
|
+
}
|
|
250
|
+
function listScheduleTimeFrames(req = {}, opts) {
|
|
251
|
+
return wixCall("GET", "/calendar/v3/schedules/timeframe", req, opts, { query: true });
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// ../../stdlib/wix-sdk-auto/calendar/schedules.generated.ts
|
|
255
|
+
var schedules_generated_exports = {};
|
|
256
|
+
__export(schedules_generated_exports, {
|
|
257
|
+
cancelSchedule: () => cancelSchedule,
|
|
258
|
+
createSchedule: () => createSchedule,
|
|
259
|
+
getSchedule: () => getSchedule,
|
|
260
|
+
querySchedules: () => querySchedules,
|
|
261
|
+
updateSchedule: () => updateSchedule
|
|
262
|
+
});
|
|
263
|
+
function cancelSchedule(req, opts) {
|
|
264
|
+
return wixCall("POST", "/calendar/v3/schedules/{scheduleId}/cancel", req, opts, { pathFields: ["scheduleId"] });
|
|
265
|
+
}
|
|
266
|
+
function createSchedule(req = {}, opts) {
|
|
267
|
+
return wixCall("POST", "/calendar/v3/schedules", req, opts);
|
|
268
|
+
}
|
|
269
|
+
function getSchedule(req, opts) {
|
|
270
|
+
return wixCall("GET", "/calendar/v3/schedules/{scheduleId}", req, opts, { pathFields: ["scheduleId"], query: true });
|
|
271
|
+
}
|
|
272
|
+
function querySchedules(req = {}, opts) {
|
|
273
|
+
return wixCall("POST", "/calendar/v3/schedules/query", req, opts);
|
|
274
|
+
}
|
|
275
|
+
function updateSchedule(req, opts) {
|
|
276
|
+
return wixCall("PATCH", "/calendar/v3/schedules/{scheduleId}", req, opts, { pathFields: ["schedule.id"] });
|
|
277
|
+
}
|
|
278
|
+
export {
|
|
279
|
+
conferencing_generated_exports as conferencing,
|
|
280
|
+
eventViews_generated_exports as eventViews,
|
|
281
|
+
events_generated_exports as events,
|
|
282
|
+
participations_generated_exports as participations,
|
|
283
|
+
scheduleTimeFrames_generated_exports as scheduleTimeFrames,
|
|
284
|
+
schedules_generated_exports as schedules
|
|
285
|
+
};
|
|
286
|
+
//# sourceMappingURL=wix-calendar.mjs.map
|
|
@@ -572,6 +572,26 @@ function readField(req, field) {
|
|
|
572
572
|
}
|
|
573
573
|
return value;
|
|
574
574
|
}
|
|
575
|
+
function restFieldMasks(req) {
|
|
576
|
+
if (req === null || typeof req !== "object") return req;
|
|
577
|
+
if (Array.isArray(req)) {
|
|
578
|
+
let changed = false;
|
|
579
|
+
const items = req.map((item) => {
|
|
580
|
+
const next = restFieldMasks(item);
|
|
581
|
+
if (next !== item) changed = true;
|
|
582
|
+
return next;
|
|
583
|
+
});
|
|
584
|
+
return changed ? items : req;
|
|
585
|
+
}
|
|
586
|
+
let out;
|
|
587
|
+
for (const [key, value] of Object.entries(req)) {
|
|
588
|
+
let next = value;
|
|
589
|
+
if ((key === "fieldMask" || key === "mask") && Array.isArray(value) && value.every((v) => typeof v === "string")) next = value.join(",");
|
|
590
|
+
else if (value !== null && typeof value === "object") next = restFieldMasks(value);
|
|
591
|
+
if (next !== value) (out ?? (out = { ...req }))[key] = next;
|
|
592
|
+
}
|
|
593
|
+
return out ?? req;
|
|
594
|
+
}
|
|
575
595
|
function withoutFields(req, fields) {
|
|
576
596
|
if (fields.length === 0 || req === null || typeof req !== "object") return req;
|
|
577
597
|
const out = { ...req };
|
|
@@ -607,8 +627,9 @@ function send(verb, template, req, opts, route, queue) {
|
|
|
607
627
|
}
|
|
608
628
|
const site = opts?.site?.trim();
|
|
609
629
|
const headers = site ? { "wix-site-id": site } : void 0;
|
|
610
|
-
const
|
|
611
|
-
const
|
|
630
|
+
const wire = restFieldMasks(req);
|
|
631
|
+
const target = route.query ? wixQueryPath2(path, withoutFields(wire, fields)) : path;
|
|
632
|
+
const body = route.query ? void 0 : wire;
|
|
612
633
|
const readShaped = verb === "GET" || verb === "HEAD" || verb === "POST" && /\/(query|query-cursor|search|list|count)(?:\?|$)/i.test(target.split("#")[0]);
|
|
613
634
|
if (readShaped && (opts?.cache || opts?.onCacheResult)) {
|
|
614
635
|
if (!api.read) return Promise.reject(new Error("READ_LIFECYCLE_UNSUPPORTED: update the Himalaya runtime"));
|