@atomic-solutions/woocommerce-api-client 0.1.0 → 0.1.2

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.
Files changed (45) hide show
  1. package/dist/client/index.d.mts +3 -3
  2. package/dist/client/index.d.ts +3 -3
  3. package/dist/client/index.js +155 -11
  4. package/dist/client/index.js.map +1 -1
  5. package/dist/client/index.mjs +155 -11
  6. package/dist/client/index.mjs.map +1 -1
  7. package/dist/http/index.d.mts +3 -3
  8. package/dist/http/index.d.ts +3 -3
  9. package/dist/http/index.js +4 -3
  10. package/dist/http/index.js.map +1 -1
  11. package/dist/http/index.mjs +4 -3
  12. package/dist/http/index.mjs.map +1 -1
  13. package/dist/index.d.mts +5 -5
  14. package/dist/index.d.ts +5 -5
  15. package/dist/index.js +42 -29
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +41 -28
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/{types-qKWtrw7A.d.ts → types-DuA0wOpm.d.mts} +1 -1
  20. package/dist/{types-B-zy1xrP.d.mts → types-DuA0wOpm.d.ts} +1 -1
  21. package/dist/utils/index.d.mts +3 -3
  22. package/dist/utils/index.d.ts +3 -3
  23. package/package.json +4 -19
  24. package/dist/pagination.schema-CdjWGZJr.d.mts +0 -190
  25. package/dist/pagination.schema-CdjWGZJr.d.ts +0 -190
  26. package/dist/products-Cxl54crz.d.mts +0 -3412
  27. package/dist/products-Cxl54crz.d.ts +0 -3412
  28. package/dist/schemas/admin-api/index.d.mts +0 -5340
  29. package/dist/schemas/admin-api/index.d.ts +0 -5340
  30. package/dist/schemas/admin-api/index.js +0 -584
  31. package/dist/schemas/admin-api/index.js.map +0 -1
  32. package/dist/schemas/admin-api/index.mjs +0 -545
  33. package/dist/schemas/admin-api/index.mjs.map +0 -1
  34. package/dist/schemas/index.d.mts +0 -4
  35. package/dist/schemas/index.d.ts +0 -4
  36. package/dist/schemas/index.js +0 -887
  37. package/dist/schemas/index.js.map +0 -1
  38. package/dist/schemas/index.mjs +0 -844
  39. package/dist/schemas/index.mjs.map +0 -1
  40. package/dist/schemas/store-api/index.d.mts +0 -1076
  41. package/dist/schemas/store-api/index.d.ts +0 -1076
  42. package/dist/schemas/store-api/index.js +0 -887
  43. package/dist/schemas/store-api/index.js.map +0 -1
  44. package/dist/schemas/store-api/index.mjs +0 -844
  45. package/dist/schemas/store-api/index.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  export { createClient } from './client/index.mjs';
2
- import { B as BaseError, a as BaseErrorOptions, V as ValidationReportableData, W as WooCommerceDataValidationErrorOptions } from './types-B-zy1xrP.mjs';
3
- export { C as CartAPI, b as CartHeadersAdapter, c as CheckoutAPI, G as GetOrderInput, J as JwtTokenAdapter, O as OrdersAPI, P as PaginatedResponse, d as ProductsAPI, e as WooCommerceApiError, f as WooCommerceApiErrorOptions, g as WooCommerceClient, h as WooCommerceConfig } from './types-B-zy1xrP.mjs';
4
- export { A as Address, B as BillingAddress, P as PaginationMeta, a as PaginationParams, b as addressSchema, c as billingAddressSchema, p as paginationMetaSchema, d as paginationParamsSchema } from './pagination.schema-CdjWGZJr.mjs';
5
- export { A as AddToCartInput, C as Cart, a as CartItem, b as CartItemImage, c as Checkout, d as CheckoutInput, e as CouponInput, P as Product, f as ProductCategory, g as ProductImage, h as ProductParams, R as RemoveCartItemInput, S as SelectShippingRateInput, i as StoreApiOrder, U as UpdateCartItemInput, j as UpdateCustomerInput, k as addToCartInputSchema, l as cartItemImageSchema, m as cartSchema, n as checkoutInputSchema, o as checkoutSchema, p as couponInputSchema, q as productCategorySchema, r as productImageSchema, s as productSchema, t as removeCartItemInputSchema, u as searchParamsSchema, v as selectShippingRateInputSchema, w as storeApiOrderSchema, x as updateCartItemInputSchema, y as updateCustomerInputSchema } from './products-Cxl54crz.mjs';
6
- export { CategoryFilterParams as AdminCategoryFilterParams, Product as AdminProduct, ProductCategory as AdminProductCategory, ProductFilterParams as AdminProductFilterParams, Coupon, CouponFilterParams, Customer, CustomerFilterParams, Order, OrderFilterParams, PaymentMethod, PaymentMethodFilterParams, TAppEnumsKeys, categoryFilterSchema as adminCategoryFilterSchema, couponFilterSchema as adminCouponFilterSchema, couponSchema as adminCouponSchema, orderFilterSchema as adminOrderFilterSchema, orderSchema as adminOrderSchema, productCategorySchema as adminProductCategorySchema, productFilterSchema as adminProductFilterSchema, productSchema as adminProductSchema, createCategorySchema, createCouponSchema, createCustomerSchema, customerFilterSchema, customerSchema, getAppEnumRaw, getAppEnumZod, paymentMethodFilterSchema, paymentMethodSchema, schemas, updateCustomerSchema, wcErrorResponseSchema } from './schemas/admin-api/index.mjs';
2
+ import { B as BaseError, a as BaseErrorOptions, V as ValidationReportableData, W as WooCommerceDataValidationErrorOptions } from './types-DuA0wOpm.mjs';
3
+ export { C as CartAPI, b as CartHeadersAdapter, c as CheckoutAPI, G as GetOrderInput, J as JwtTokenAdapter, O as OrdersAPI, P as PaginatedResponse, d as ProductsAPI, e as WooCommerceApiError, f as WooCommerceApiErrorOptions, g as WooCommerceClient, h as WooCommerceConfig } from './types-DuA0wOpm.mjs';
4
+ export { AddToCartInput, Address, BillingAddress, Cart, CartItem, CartItemImage, Checkout, CheckoutInput, CouponInput, Product, ProductCategory, ProductImage, ProductParams, RemoveCartItemInput, SelectShippingRateInput, StoreApiOrder, UpdateCartItemInput, UpdateCustomerInput, addToCartInputSchema, addressSchema, billingAddressSchemaMandatory as billingAddressSchema, cartItemImageSchema, cartSchema, checkoutInputSchema, checkoutSchema, couponInputSchema, paginationMetaSchema, paginationParamsSchema, productCategorySchema, productImageSchema, productSchema, removeCartItemInputSchema, searchParamsSchema, selectShippingRateInputSchema, storeApiOrderSchema, updateCartItemInputSchema, updateCustomerInputSchema } from '@atomic-solutions/schemas/woocommerce/store-api';
5
+ export { PaginationMeta, PaginationParams } from '@atomic-solutions/schemas/common';
6
+ export { CategoryFilterParams as AdminCategoryFilterParams, Product as AdminProduct, ProductCategory as AdminProductCategory, ProductFilterParams as AdminProductFilterParams, Coupon, CouponFilterParams, Customer, CustomerFilterParams, Order, OrderFilterParams, PaymentMethod, PaymentMethodFilterParams, TAppEnumsKeys, categoryFilterSchema as adminCategoryFilterSchema, couponFilterSchema as adminCouponFilterSchema, couponSchema as adminCouponSchema, orderFilterSchema as adminOrderFilterSchema, orderSchema as adminOrderSchema, productCategorySchema as adminProductCategorySchema, productFilterSchema as adminProductFilterSchema, productSchema as adminProductSchema, createCategorySchema, createCouponSchema, createCustomerSchema, customerFilterSchema, customerSchema, getAppEnumRaw, getAppEnumZod, paymentMethodFilterSchema, paymentMethodSchema, schemas, updateCustomerSchema, wcErrorResponseSchema } from '@atomic-solutions/schemas/woocommerce/admin-api';
7
7
  import { ZodError } from 'zod';
8
8
  import 'axios';
9
9
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export { createClient } from './client/index.js';
2
- import { B as BaseError, a as BaseErrorOptions, V as ValidationReportableData, W as WooCommerceDataValidationErrorOptions } from './types-qKWtrw7A.js';
3
- export { C as CartAPI, b as CartHeadersAdapter, c as CheckoutAPI, G as GetOrderInput, J as JwtTokenAdapter, O as OrdersAPI, P as PaginatedResponse, d as ProductsAPI, e as WooCommerceApiError, f as WooCommerceApiErrorOptions, g as WooCommerceClient, h as WooCommerceConfig } from './types-qKWtrw7A.js';
4
- export { A as Address, B as BillingAddress, P as PaginationMeta, a as PaginationParams, b as addressSchema, c as billingAddressSchema, p as paginationMetaSchema, d as paginationParamsSchema } from './pagination.schema-CdjWGZJr.js';
5
- export { A as AddToCartInput, C as Cart, a as CartItem, b as CartItemImage, c as Checkout, d as CheckoutInput, e as CouponInput, P as Product, f as ProductCategory, g as ProductImage, h as ProductParams, R as RemoveCartItemInput, S as SelectShippingRateInput, i as StoreApiOrder, U as UpdateCartItemInput, j as UpdateCustomerInput, k as addToCartInputSchema, l as cartItemImageSchema, m as cartSchema, n as checkoutInputSchema, o as checkoutSchema, p as couponInputSchema, q as productCategorySchema, r as productImageSchema, s as productSchema, t as removeCartItemInputSchema, u as searchParamsSchema, v as selectShippingRateInputSchema, w as storeApiOrderSchema, x as updateCartItemInputSchema, y as updateCustomerInputSchema } from './products-Cxl54crz.js';
6
- export { CategoryFilterParams as AdminCategoryFilterParams, Product as AdminProduct, ProductCategory as AdminProductCategory, ProductFilterParams as AdminProductFilterParams, Coupon, CouponFilterParams, Customer, CustomerFilterParams, Order, OrderFilterParams, PaymentMethod, PaymentMethodFilterParams, TAppEnumsKeys, categoryFilterSchema as adminCategoryFilterSchema, couponFilterSchema as adminCouponFilterSchema, couponSchema as adminCouponSchema, orderFilterSchema as adminOrderFilterSchema, orderSchema as adminOrderSchema, productCategorySchema as adminProductCategorySchema, productFilterSchema as adminProductFilterSchema, productSchema as adminProductSchema, createCategorySchema, createCouponSchema, createCustomerSchema, customerFilterSchema, customerSchema, getAppEnumRaw, getAppEnumZod, paymentMethodFilterSchema, paymentMethodSchema, schemas, updateCustomerSchema, wcErrorResponseSchema } from './schemas/admin-api/index.js';
2
+ import { B as BaseError, a as BaseErrorOptions, V as ValidationReportableData, W as WooCommerceDataValidationErrorOptions } from './types-DuA0wOpm.js';
3
+ export { C as CartAPI, b as CartHeadersAdapter, c as CheckoutAPI, G as GetOrderInput, J as JwtTokenAdapter, O as OrdersAPI, P as PaginatedResponse, d as ProductsAPI, e as WooCommerceApiError, f as WooCommerceApiErrorOptions, g as WooCommerceClient, h as WooCommerceConfig } from './types-DuA0wOpm.js';
4
+ export { AddToCartInput, Address, BillingAddress, Cart, CartItem, CartItemImage, Checkout, CheckoutInput, CouponInput, Product, ProductCategory, ProductImage, ProductParams, RemoveCartItemInput, SelectShippingRateInput, StoreApiOrder, UpdateCartItemInput, UpdateCustomerInput, addToCartInputSchema, addressSchema, billingAddressSchemaMandatory as billingAddressSchema, cartItemImageSchema, cartSchema, checkoutInputSchema, checkoutSchema, couponInputSchema, paginationMetaSchema, paginationParamsSchema, productCategorySchema, productImageSchema, productSchema, removeCartItemInputSchema, searchParamsSchema, selectShippingRateInputSchema, storeApiOrderSchema, updateCartItemInputSchema, updateCustomerInputSchema } from '@atomic-solutions/schemas/woocommerce/store-api';
5
+ export { PaginationMeta, PaginationParams } from '@atomic-solutions/schemas/common';
6
+ export { CategoryFilterParams as AdminCategoryFilterParams, Product as AdminProduct, ProductCategory as AdminProductCategory, ProductFilterParams as AdminProductFilterParams, Coupon, CouponFilterParams, Customer, CustomerFilterParams, Order, OrderFilterParams, PaymentMethod, PaymentMethodFilterParams, TAppEnumsKeys, categoryFilterSchema as adminCategoryFilterSchema, couponFilterSchema as adminCouponFilterSchema, couponSchema as adminCouponSchema, orderFilterSchema as adminOrderFilterSchema, orderSchema as adminOrderSchema, productCategorySchema as adminProductCategorySchema, productFilterSchema as adminProductFilterSchema, productSchema as adminProductSchema, createCategorySchema, createCouponSchema, createCustomerSchema, customerFilterSchema, customerSchema, getAppEnumRaw, getAppEnumZod, paymentMethodFilterSchema, paymentMethodSchema, schemas, updateCustomerSchema, wcErrorResponseSchema } from '@atomic-solutions/schemas/woocommerce/admin-api';
7
7
  import { ZodError } from 'zod';
8
8
  import 'axios';
9
9
 
package/dist/index.js CHANGED
@@ -449,9 +449,9 @@ var setupRequestInterceptor = (axiosInstance, config, client) => {
449
449
  axiosInstance.interceptors.request.use(
450
450
  async (requestConfig) => {
451
451
  const url = requestConfig.url;
452
- if (requiresAuth(url) && config.jwtToken) {
452
+ if (config.jwtToken) {
453
453
  const token = await config.jwtToken.get();
454
- if (token) {
454
+ if (token && (requiresAuth(url) || requiresCartAuth(url))) {
455
455
  requestConfig.headers.Authorization = `Bearer ${token}`;
456
456
  if (config.debug) {
457
457
  debug("Injected JWT token for", url);
@@ -460,10 +460,11 @@ var setupRequestInterceptor = (axiosInstance, config, client) => {
460
460
  }
461
461
  if (requiresCartAuth(url)) {
462
462
  const headers = await config.cartHeaders.get();
463
+ const isAuthenticated = !!await config.jwtToken?.get();
463
464
  if (headers.nonce) {
464
465
  requestConfig.headers.Nonce = headers.nonce;
465
466
  }
466
- if (headers.cartToken) {
467
+ if (headers.cartToken && !isAuthenticated) {
467
468
  requestConfig.headers["Cart-Token"] = headers.cartToken;
468
469
  }
469
470
  requestConfig.headers["Cache-Control"] = "no-cache, no-store, must-revalidate";
@@ -777,8 +778,6 @@ var pricesSchema = zod.z.object({
777
778
  sale_price: zod.z.string()
778
779
  }).optional()
779
780
  }).merge(moneySchema);
780
-
781
- // src/schemas/store-api/cart-item.schema.ts
782
781
  var itemTotalsSchema = zod.z.object({
783
782
  /** Subtotal before taxes */
784
783
  line_subtotal: zod.z.string(),
@@ -955,8 +954,6 @@ var shippingPackageSchema = zod.z.object({
955
954
  /** Available shipping rates for this package */
956
955
  shipping_rates: zod.z.array(shippingRateSchema)
957
956
  });
958
-
959
- // src/schemas/store-api/cart.ts
960
957
  var cartSchema = zod.z.object({
961
958
  items: zod.z.array(cartItemSchema),
962
959
  items_count: zod.z.number(),
@@ -1176,8 +1173,6 @@ var orderTotalsSchema = zod.z.object({
1176
1173
  /** Currency suffix (e.g., 'USD') */
1177
1174
  currency_suffix: zod.z.string()
1178
1175
  });
1179
-
1180
- // src/schemas/store-api/order.schema.ts
1181
1176
  var orderStatusEnum = zod.z.enum([
1182
1177
  "pending",
1183
1178
  // Order received, awaiting payment
@@ -1224,6 +1219,21 @@ var storeApiOrderSchema = zod.z.object({
1224
1219
  /** Payment method title (optional - returned from checkout) */
1225
1220
  payment_method_title: zod.z.string().optional()
1226
1221
  });
1222
+ zod.z.object({
1223
+ id: zod.z.number(),
1224
+ status: zod.z.string(),
1225
+ order_key: zod.z.string(),
1226
+ number: zod.z.string(),
1227
+ currency: zod.z.string(),
1228
+ total: zod.z.string(),
1229
+ date_created: zod.z.string(),
1230
+ customer_note: zod.z.string(),
1231
+ billing: zod.z.record(zod.z.string(), zod.z.unknown()),
1232
+ shipping: zod.z.record(zod.z.string(), zod.z.unknown()),
1233
+ payment_method: zod.z.string(),
1234
+ payment_method_title: zod.z.string(),
1235
+ line_items: zod.z.array(zod.z.unknown())
1236
+ });
1227
1237
  var checkoutSchema = zod.z.object({
1228
1238
  order_id: zod.z.number(),
1229
1239
  status: zod.z.string(),
@@ -1404,8 +1414,6 @@ var storeProductsSearchParamsSchema = zod.z.object({
1404
1414
  /** Filter by product rating (1-5 stars) */
1405
1415
  rating: zod.z.array(zod.z.number().min(1).max(5)).optional()
1406
1416
  });
1407
-
1408
- // src/schemas/store-api/products.ts
1409
1417
  var productSchema = zod.z.object({
1410
1418
  id: zod.z.number(),
1411
1419
  name: zod.z.string(),
@@ -1436,6 +1444,23 @@ var productSchema = zod.z.object({
1436
1444
  review_count: zod.z.number(),
1437
1445
  extensions: zod.z.record(zod.z.string(), zod.z.unknown())
1438
1446
  });
1447
+ var paymentDataItemSchema = zod.z.object({
1448
+ /** Key identifier for the payment data field */
1449
+ key: zod.z.string(),
1450
+ /** Value can be string or boolean depending on the field */
1451
+ value: zod.z.union([zod.z.string(), zod.z.boolean()])
1452
+ });
1453
+ zod.z.object({
1454
+ /** Payment method ID (e.g., "cod", "stripe", "bacs") */
1455
+ payment_method: zod.z.string().min(1, "Payment method is required"),
1456
+ /**
1457
+ * Optional payment gateway-specific data
1458
+ *
1459
+ * Array of key-value pairs that will be passed to the payment gateway
1460
+ * Example: [{ key: "stripe_token", value: "tok_xyz" }]
1461
+ */
1462
+ payment_data: zod.z.array(paymentDataItemSchema).optional()
1463
+ });
1439
1464
 
1440
1465
  // src/api/cart.ts
1441
1466
  var createCartAPI = (client, endpoints, options) => ({
@@ -1574,8 +1599,6 @@ var createClient = (config) => {
1574
1599
  setupErrorInterceptor(axiosInstance, fullConfig, client);
1575
1600
  return client;
1576
1601
  };
1577
-
1578
- // src/schemas/admin-api/enums/enums-raw.ts
1579
1602
  var ORDER_STATUS = [
1580
1603
  "cancelled",
1581
1604
  "completed",
@@ -1689,8 +1712,6 @@ var ENUM_RAW = {
1689
1712
  ORDER_BY: COUPONS_ORDER_BY
1690
1713
  }
1691
1714
  };
1692
-
1693
- // src/schemas/admin-api/enums/enums.ts
1694
1715
  var APP_ENUMS = {
1695
1716
  PRODUCT_TYPES: {
1696
1717
  RAW: ENUM_RAW.PRODUCT.TYPES,
@@ -1796,8 +1817,6 @@ var wpLinksSchema = zod.z.object({
1796
1817
  })
1797
1818
  ).optional()
1798
1819
  });
1799
-
1800
- // src/schemas/admin-api/base/base-wc.schema.ts
1801
1820
  var wcSortingSchema = zod.z.object({
1802
1821
  order: getAppEnumZod("COMMON_SORT_ORDER").default("desc"),
1803
1822
  orderby: zod.z.string().optional()
@@ -1849,8 +1868,6 @@ var wcErrorResponseSchema = zod.z.object({
1849
1868
  status: zod.z.number()
1850
1869
  }).optional()
1851
1870
  }).passthrough();
1852
-
1853
- // src/schemas/admin-api/coupons/coupon-filter.schema.ts
1854
1871
  var couponFilterSchema = wcBaseParamsSchema.extend({
1855
1872
  orderby: getAppEnumZod("COUPONS_ORDER_BY").default("date"),
1856
1873
  code: zod.z.string().optional()
@@ -1941,7 +1958,7 @@ var orderLineItemSchema = zod.z.object({
1941
1958
  sku: zod.z.string(),
1942
1959
  price: zod.z.number()
1943
1960
  });
1944
- var orderSchema = wcBaseResponseSchema.extend({
1961
+ var orderSchema2 = wcBaseResponseSchema.extend({
1945
1962
  id: zod.z.number(),
1946
1963
  parent_id: zod.z.number(),
1947
1964
  status: getAppEnumZod("ORDER_STATUS"),
@@ -1973,7 +1990,7 @@ var orderSchema = wcBaseResponseSchema.extend({
1973
1990
  var paymentMethodFilterSchema = wcBaseParamsSchema.extend({
1974
1991
  enabled: zod.z.boolean().optional()
1975
1992
  });
1976
- var paymentMethodSchema = wcBaseResponseSchema.extend({
1993
+ var paymentMethodSchema2 = wcBaseResponseSchema.extend({
1977
1994
  id: getAppEnumZod("PAYMENT_METHODS"),
1978
1995
  title: zod.z.string(),
1979
1996
  description: zod.z.string(),
@@ -2036,8 +2053,6 @@ var productSchema2 = wcBaseResponseSchema.extend({
2036
2053
  on_sale: zod.z.boolean(),
2037
2054
  manufacturer: zod.z.string().optional()
2038
2055
  });
2039
-
2040
- // src/schemas/admin-api/products/category.schema.ts
2041
2056
  var productCategorySchema2 = wcBaseResponseSchema.extend({
2042
2057
  id: zod.z.number(),
2043
2058
  name: zod.z.string(),
@@ -2071,8 +2086,6 @@ var createCategorySchema = productCategorySchema2.omit({
2071
2086
  }).extend({
2072
2087
  name: zod.z.string().min(1, "Name is required")
2073
2088
  });
2074
-
2075
- // src/schemas/admin-api/index.ts
2076
2089
  var schemas = {
2077
2090
  resources: {
2078
2091
  product: {
@@ -2085,7 +2098,7 @@ var schemas = {
2085
2098
  },
2086
2099
  order: {
2087
2100
  filter: orderFilterSchema,
2088
- entity: orderSchema,
2101
+ entity: orderSchema2,
2089
2102
  lineItem: orderLineItemSchema
2090
2103
  },
2091
2104
  customer: {
@@ -2101,7 +2114,7 @@ var schemas = {
2101
2114
  },
2102
2115
  paymentMethod: {
2103
2116
  filter: paymentMethodFilterSchema,
2104
- entity: paymentMethodSchema
2117
+ entity: paymentMethodSchema2
2105
2118
  }
2106
2119
  }
2107
2120
  };
@@ -2114,7 +2127,7 @@ exports.adminCategoryFilterSchema = categoryFilterSchema;
2114
2127
  exports.adminCouponFilterSchema = couponFilterSchema;
2115
2128
  exports.adminCouponSchema = couponSchema;
2116
2129
  exports.adminOrderFilterSchema = orderFilterSchema;
2117
- exports.adminOrderSchema = orderSchema;
2130
+ exports.adminOrderSchema = orderSchema2;
2118
2131
  exports.adminProductCategorySchema = productCategorySchema2;
2119
2132
  exports.adminProductFilterSchema = productFilterSchema;
2120
2133
  exports.adminProductSchema = productSchema2;
@@ -2135,7 +2148,7 @@ exports.getAppEnumZod = getAppEnumZod;
2135
2148
  exports.paginationMetaSchema = paginationMetaSchema;
2136
2149
  exports.paginationParamsSchema = paginationParamsSchema;
2137
2150
  exports.paymentMethodFilterSchema = paymentMethodFilterSchema;
2138
- exports.paymentMethodSchema = paymentMethodSchema;
2151
+ exports.paymentMethodSchema = paymentMethodSchema2;
2139
2152
  exports.productCategorySchema = productCategorySchema;
2140
2153
  exports.productImageSchema = productImageSchema;
2141
2154
  exports.productSchema = productSchema;