UNPKG

@woocommerce/data

Version:
132 lines (131 loc) 13.3 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.WC_ADMIN_NAMESPACE = exports.NAMESPACE = exports.QUERY_DEFAULTS = exports.MAX_PER_PAGE = exports.IMPORT_STORE_NAME = exports.EXPORT_STORE_NAME = exports.pluginNames = exports.getTooltipValueFormat = exports.getReportChartData = exports.getReportTableQuery = exports.getReportTableData = exports.getSummaryNumbers = exports.getFilterQuery = exports.searchItemsByString = exports.getLeaderboard = exports.getVisibleTasks = exports.useUser = exports.useUserPreferences = exports.useSettings = exports.useOptionsHydration = exports.withOptionsHydration = exports.withPluginsHydration = exports.withNavigationHydration = exports.withCurrentUserHydration = exports.withOnboardingHydration = exports.withSettingsHydration = exports.EXPERIMENTAL_TAX_CLASSES_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_FORM_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_CATEGORIES_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_TAGS_STORE_NAME = exports.EXPERIMENTAL_SHIPPING_ZONES_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_SHIPPING_CLASSES_STORE_NAME = exports.EXPERIMENTAL_PRODUCT_ATTRIBUTES_STORE_NAME = exports.ORDERS_STORE_NAME = exports.PRODUCTS_STORE_NAME = exports.SHIPPING_METHODS_STORE_NAME = exports.PAYMENT_GATEWAYS_STORE_NAME = exports.ITEMS_STORE_NAME = exports.OPTIONS_STORE_NAME = exports.NAVIGATION_STORE_NAME = exports.COUNTRIES_STORE_NAME = exports.REPORTS_STORE_NAME = exports.NOTES_STORE_NAME = exports.REVIEWS_STORE_NAME = exports.USER_STORE_NAME = exports.ONBOARDING_STORE_NAME = exports.PLUGINS_STORE_NAME = exports.SETTINGS_STORE_NAME = void 0; exports.MONTH = exports.WEEK = exports.DAY = exports.HOUR = exports.MINUTE = exports.SECOND = exports.WCS_NAMESPACE = void 0; /** * External dependencies */ require("@wordpress/core-data"); // Export store names var settings_1 = require("./settings"); Object.defineProperty(exports, "SETTINGS_STORE_NAME", { enumerable: true, get: function () { return settings_1.SETTINGS_STORE_NAME; } }); var plugins_1 = require("./plugins"); Object.defineProperty(exports, "PLUGINS_STORE_NAME", { enumerable: true, get: function () { return plugins_1.PLUGINS_STORE_NAME; } }); var onboarding_1 = require("./onboarding"); Object.defineProperty(exports, "ONBOARDING_STORE_NAME", { enumerable: true, get: function () { return onboarding_1.ONBOARDING_STORE_NAME; } }); var user_1 = require("./user"); Object.defineProperty(exports, "USER_STORE_NAME", { enumerable: true, get: function () { return user_1.USER_STORE_NAME; } }); var reviews_1 = require("./reviews"); Object.defineProperty(exports, "REVIEWS_STORE_NAME", { enumerable: true, get: function () { return reviews_1.REVIEWS_STORE_NAME; } }); var notes_1 = require("./notes"); Object.defineProperty(exports, "NOTES_STORE_NAME", { enumerable: true, get: function () { return notes_1.NOTES_STORE_NAME; } }); var reports_1 = require("./reports"); Object.defineProperty(exports, "REPORTS_STORE_NAME", { enumerable: true, get: function () { return reports_1.REPORTS_STORE_NAME; } }); var countries_1 = require("./countries"); Object.defineProperty(exports, "COUNTRIES_STORE_NAME", { enumerable: true, get: function () { return countries_1.COUNTRIES_STORE_NAME; } }); var navigation_1 = require("./navigation"); Object.defineProperty(exports, "NAVIGATION_STORE_NAME", { enumerable: true, get: function () { return navigation_1.NAVIGATION_STORE_NAME; } }); var options_1 = require("./options"); Object.defineProperty(exports, "OPTIONS_STORE_NAME", { enumerable: true, get: function () { return options_1.OPTIONS_STORE_NAME; } }); var items_1 = require("./items"); Object.defineProperty(exports, "ITEMS_STORE_NAME", { enumerable: true, get: function () { return items_1.ITEMS_STORE_NAME; } }); var payment_gateways_1 = require("./payment-gateways"); Object.defineProperty(exports, "PAYMENT_GATEWAYS_STORE_NAME", { enumerable: true, get: function () { return payment_gateways_1.PAYMENT_GATEWAYS_STORE_NAME; } }); var shipping_methods_1 = require("./shipping-methods"); Object.defineProperty(exports, "SHIPPING_METHODS_STORE_NAME", { enumerable: true, get: function () { return shipping_methods_1.SHIPPING_METHODS_STORE_NAME; } }); var products_1 = require("./products"); Object.defineProperty(exports, "PRODUCTS_STORE_NAME", { enumerable: true, get: function () { return products_1.PRODUCTS_STORE_NAME; } }); var orders_1 = require("./orders"); Object.defineProperty(exports, "ORDERS_STORE_NAME", { enumerable: true, get: function () { return orders_1.ORDERS_STORE_NAME; } }); var product_attributes_1 = require("./product-attributes"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_ATTRIBUTES_STORE_NAME", { enumerable: true, get: function () { return product_attributes_1.EXPERIMENTAL_PRODUCT_ATTRIBUTES_STORE_NAME; } }); var product_shipping_classes_1 = require("./product-shipping-classes"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_SHIPPING_CLASSES_STORE_NAME", { enumerable: true, get: function () { return product_shipping_classes_1.EXPERIMENTAL_PRODUCT_SHIPPING_CLASSES_STORE_NAME; } }); var shipping_zones_1 = require("./shipping-zones"); Object.defineProperty(exports, "EXPERIMENTAL_SHIPPING_ZONES_STORE_NAME", { enumerable: true, get: function () { return shipping_zones_1.EXPERIMENTAL_SHIPPING_ZONES_STORE_NAME; } }); var product_tags_1 = require("./product-tags"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_TAGS_STORE_NAME", { enumerable: true, get: function () { return product_tags_1.EXPERIMENTAL_PRODUCT_TAGS_STORE_NAME; } }); var product_categories_1 = require("./product-categories"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_CATEGORIES_STORE_NAME", { enumerable: true, get: function () { return product_categories_1.EXPERIMENTAL_PRODUCT_CATEGORIES_STORE_NAME; } }); var product_attribute_terms_1 = require("./product-attribute-terms"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME", { enumerable: true, get: function () { return product_attribute_terms_1.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME; } }); var product_variations_1 = require("./product-variations"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME", { enumerable: true, get: function () { return product_variations_1.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME; } }); var product_form_1 = require("./product-form"); Object.defineProperty(exports, "EXPERIMENTAL_PRODUCT_FORM_STORE_NAME", { enumerable: true, get: function () { return product_form_1.EXPERIMENTAL_PRODUCT_FORM_STORE_NAME; } }); var tax_classes_1 = require("./tax-classes"); Object.defineProperty(exports, "EXPERIMENTAL_TAX_CLASSES_STORE_NAME", { enumerable: true, get: function () { return tax_classes_1.EXPERIMENTAL_TAX_CLASSES_STORE_NAME; } }); // Export hooks var with_settings_hydration_1 = require("./settings/with-settings-hydration"); Object.defineProperty(exports, "withSettingsHydration", { enumerable: true, get: function () { return with_settings_hydration_1.withSettingsHydration; } }); var with_onboarding_hydration_1 = require("./onboarding/with-onboarding-hydration"); Object.defineProperty(exports, "withOnboardingHydration", { enumerable: true, get: function () { return with_onboarding_hydration_1.withOnboardingHydration; } }); var with_current_user_hydration_1 = require("./user/with-current-user-hydration"); Object.defineProperty(exports, "withCurrentUserHydration", { enumerable: true, get: function () { return with_current_user_hydration_1.withCurrentUserHydration; } }); var with_navigation_hydration_1 = require("./navigation/with-navigation-hydration"); Object.defineProperty(exports, "withNavigationHydration", { enumerable: true, get: function () { return with_navigation_hydration_1.withNavigationHydration; } }); var with_plugins_hydration_1 = require("./plugins/with-plugins-hydration"); Object.defineProperty(exports, "withPluginsHydration", { enumerable: true, get: function () { return with_plugins_hydration_1.withPluginsHydration; } }); var with_options_hydration_1 = require("./options/with-options-hydration"); Object.defineProperty(exports, "withOptionsHydration", { enumerable: true, get: function () { return with_options_hydration_1.withOptionsHydration; } }); Object.defineProperty(exports, "useOptionsHydration", { enumerable: true, get: function () { return with_options_hydration_1.useOptionsHydration; } }); var use_settings_1 = require("./settings/use-settings"); Object.defineProperty(exports, "useSettings", { enumerable: true, get: function () { return use_settings_1.useSettings; } }); var use_user_preferences_1 = require("./user/use-user-preferences"); Object.defineProperty(exports, "useUserPreferences", { enumerable: true, get: function () { return use_user_preferences_1.useUserPreferences; } }); var use_user_1 = require("./user/use-user"); Object.defineProperty(exports, "useUser", { enumerable: true, get: function () { return use_user_1.useUser; } }); // Export utils var utils_1 = require("./onboarding/utils"); Object.defineProperty(exports, "getVisibleTasks", { enumerable: true, get: function () { return utils_1.getVisibleTasks; } }); var utils_2 = require("./items/utils"); Object.defineProperty(exports, "getLeaderboard", { enumerable: true, get: function () { return utils_2.getLeaderboard; } }); Object.defineProperty(exports, "searchItemsByString", { enumerable: true, get: function () { return utils_2.searchItemsByString; } }); var utils_3 = require("./reports/utils"); Object.defineProperty(exports, "getFilterQuery", { enumerable: true, get: function () { return utils_3.getFilterQuery; } }); Object.defineProperty(exports, "getSummaryNumbers", { enumerable: true, get: function () { return utils_3.getSummaryNumbers; } }); Object.defineProperty(exports, "getReportTableData", { enumerable: true, get: function () { return utils_3.getReportTableData; } }); Object.defineProperty(exports, "getReportTableQuery", { enumerable: true, get: function () { return utils_3.getReportTableQuery; } }); Object.defineProperty(exports, "getReportChartData", { enumerable: true, get: function () { return utils_3.getReportChartData; } }); Object.defineProperty(exports, "getTooltipValueFormat", { enumerable: true, get: function () { return utils_3.getTooltipValueFormat; } }); // Export constants var constants_1 = require("./plugins/constants"); Object.defineProperty(exports, "pluginNames", { enumerable: true, get: function () { return constants_1.pluginNames; } }); var export_1 = require("./export"); Object.defineProperty(exports, "EXPORT_STORE_NAME", { enumerable: true, get: function () { return export_1.EXPORT_STORE_NAME; } }); var import_1 = require("./import"); Object.defineProperty(exports, "IMPORT_STORE_NAME", { enumerable: true, get: function () { return import_1.IMPORT_STORE_NAME; } }); var constants_2 = require("./constants"); Object.defineProperty(exports, "MAX_PER_PAGE", { enumerable: true, get: function () { return constants_2.MAX_PER_PAGE; } }); Object.defineProperty(exports, "QUERY_DEFAULTS", { enumerable: true, get: function () { return constants_2.QUERY_DEFAULTS; } }); Object.defineProperty(exports, "NAMESPACE", { enumerable: true, get: function () { return constants_2.NAMESPACE; } }); Object.defineProperty(exports, "WC_ADMIN_NAMESPACE", { enumerable: true, get: function () { return constants_2.WC_ADMIN_NAMESPACE; } }); Object.defineProperty(exports, "WCS_NAMESPACE", { enumerable: true, get: function () { return constants_2.WCS_NAMESPACE; } }); Object.defineProperty(exports, "SECOND", { enumerable: true, get: function () { return constants_2.SECOND; } }); Object.defineProperty(exports, "MINUTE", { enumerable: true, get: function () { return constants_2.MINUTE; } }); Object.defineProperty(exports, "HOUR", { enumerable: true, get: function () { return constants_2.HOUR; } }); Object.defineProperty(exports, "DAY", { enumerable: true, get: function () { return constants_2.DAY; } }); Object.defineProperty(exports, "WEEK", { enumerable: true, get: function () { return constants_2.WEEK; } }); Object.defineProperty(exports, "MONTH", { enumerable: true, get: function () { return constants_2.MONTH; } }); // Export types __exportStar(require("./types"), exports); __exportStar(require("./countries/types"), exports); __exportStar(require("./onboarding/types"), exports); __exportStar(require("./plugins/types"), exports); __exportStar(require("./products/types"), exports); __exportStar(require("./product-shipping-classes/types"), exports); __exportStar(require("./orders/types"), exports);