@atomic-solutions/schemas 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +34 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +34 -37
- package/dist/index.js.map +1 -1
- package/dist/{payment.schema-CjccuGNs.d.cts → payment.schema-6SVuX8nC.d.cts} +232 -199
- package/dist/{payment.schema-CjccuGNs.d.ts → payment.schema-6SVuX8nC.d.ts} +232 -199
- package/dist/woocommerce/index.cjs +34 -36
- package/dist/woocommerce/index.cjs.map +1 -1
- package/dist/woocommerce/index.d.cts +1 -1
- package/dist/woocommerce/index.d.ts +1 -1
- package/dist/woocommerce/index.js +34 -37
- package/dist/woocommerce/index.js.map +1 -1
- package/dist/woocommerce-admin/index.d.cts +104 -104
- package/dist/woocommerce-admin/index.d.ts +104 -104
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as Address, e as AddressNonOptional, B as BillingAddress, f as BillingAddressNonOptional, M as Money, a as addressSchema, b as addressSchemaNonMandatory, c as billingAddressSchemaMandatory, d as billingAddressSchemaNonMandatory, m as moneySchema } from './money.schema-BeHADrsV.cjs';
|
|
2
2
|
export { PaginationMeta, PaginationParams, paginationMetaSchema, paginationParamsSchema } from './common/index.cjs';
|
|
3
|
-
export {
|
|
3
|
+
export { a3 as AddToCart, K as AddToCartInput, H as Cart, a7 as CartCoupon, I as CartItem, J as CartItemImage, Y as Checkout, Z as CheckoutInput, L as CouponInput, a0 as EmbeddedCategory, P as OrderItem, Q as OrderItemImage, T as OrderItemPrices, V as OrderItemTotals, O as OrderStatus, X as OrderTotals, a8 as PaymentDataItem, a9 as PaymentMethod, a4 as Prices, _ as Product, $ as ProductCategory, a1 as ProductImage, a2 as ProductParams, W as QuantityLimits, R as RemoveCartItemInput, S as SelectShippingRateInput, a6 as ShippingPackage, a5 as ShippingRate, N as StoreApiOrder, U as UpdateCartItemInput, M as UpdateCustomerInput, e as addToCartInputSchema, A as addToCartSchema, E as cartCouponSchema, b as cartItemImageSchema, a as cartItemSchema, c as cartSchema, d as cartTotalsSchema, t as checkoutInputSchema, p as checkoutSchema, f as couponInputSchema, x as embeddedCategorySchema, i as itemTotalsSchema, k as orderItemImageSchema, l as orderItemPricesSchema, j as orderItemSchema, m as orderItemTotalsSchema, o as orderStatusEnum, n as orderTotalsSchema, F as paymentDataItemSchema, G as paymentMethodSchema, B as pricesSchema, w as productCategorySchema, y as productImageSchema, v as productSchema, q as quantityLimitsSchema, r as removeCartItemInputSchema, z as searchParamsSchema, s as selectShippingRateInputSchema, D as shippingPackageSchema, C as shippingRateSchema, h as storeApiOrderSchema, u as updateCartItemInputSchema, g as updateCustomerInputSchema } from './payment.schema-6SVuX8nC.cjs';
|
|
4
4
|
export { AvatarUrls, AvatarUrlsSchema, CategoriesList, CategoriesListSchema, Category, CategoryParams, CategoryParamsSchema, CategorySchema, CurrentUser, CurrentUserSchema, EmbeddedPost, EmbeddedPostSchema, EmbeddedPostsList, EmbeddedPostsListSchema, Guid, GuidSchema, HalLinkItem, HalLinkItemSchema, HalLinks, HalLinksSchema, ImageMeta, ImageMetaSchema, JwtErrorResponse, JwtErrorResponseSchema, JwtLoginInput, JwtLoginInputSchema, JwtTokenResponse, JwtTokenResponseSchema, JwtValidateResponse, JwtValidateResponseSchema, Media, MediaDetails, MediaDetailsSchema, MediaList, MediaListSchema, MediaSchema, MediaSize, MediaSizeSchema, MediaSizes, MediaSizesSchema, PaginationParamsSchema, Post, PostParams, PostParamsSchema, PostSchema, PostStatus, PostStatusSchema, PostsList, PostsListSchema, RenderedContent, RenderedContentSchema, Tag, TagSchema, TagsList, TagsListSchema, User, UserSchema, UsersList, UsersListSchema, WordPressBase, WordPressBaseSchema } from './wordpress/index.cjs';
|
|
5
5
|
export { APP_ENUMS, CategoryFilterParams, Coupon, CouponFilterParams, CreateCategoryInput, CreateCouponInput, Customer, CustomerFilterParams, ENUM_RAW, Order, OrderFilterParams, PaymentMethodFilterParams, ProductFilterParams, TAppEnum, TAppEnumsKeys, WCBaseParams, WCErrorResponse, WCPaginationMeta, WPPaginationHeaders, baseFilteringSchema, basePaginationSchema, categoryFilterSchema, couponFilterSchema, couponSchema, createCategorySchema, createCouponSchema, createCustomerSchema, createPaginatedSchema, customerFilterSchema, customerSchema, getAppEnumRaw, getAppEnumZod, loyaltySchemaFull, loyaltySchemaRedacted, orderFilterSchema, orderLineItemSchema, orderSchema, paymentMethodFilterSchema, productFilterSchema, schemas, updateCustomerSchema, wcAddressSchema, wcBaseParamsSchema, wcBaseResponseSchema, wcDateFilterSchema, wcErrorResponseSchema, wcMetaDataSchema, wcPaginationMetaSchema, wcSortingSchema, wpBaseParamsSchema, wpLinksSchema, wpPaginationHeadersSchema, wpStatusSchema } from './woocommerce-admin/index.cjs';
|
|
6
6
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as Address, e as AddressNonOptional, B as BillingAddress, f as BillingAddressNonOptional, M as Money, a as addressSchema, b as addressSchemaNonMandatory, c as billingAddressSchemaMandatory, d as billingAddressSchemaNonMandatory, m as moneySchema } from './money.schema-BeHADrsV.js';
|
|
2
2
|
export { PaginationMeta, PaginationParams, paginationMetaSchema, paginationParamsSchema } from './common/index.js';
|
|
3
|
-
export {
|
|
3
|
+
export { a3 as AddToCart, K as AddToCartInput, H as Cart, a7 as CartCoupon, I as CartItem, J as CartItemImage, Y as Checkout, Z as CheckoutInput, L as CouponInput, a0 as EmbeddedCategory, P as OrderItem, Q as OrderItemImage, T as OrderItemPrices, V as OrderItemTotals, O as OrderStatus, X as OrderTotals, a8 as PaymentDataItem, a9 as PaymentMethod, a4 as Prices, _ as Product, $ as ProductCategory, a1 as ProductImage, a2 as ProductParams, W as QuantityLimits, R as RemoveCartItemInput, S as SelectShippingRateInput, a6 as ShippingPackage, a5 as ShippingRate, N as StoreApiOrder, U as UpdateCartItemInput, M as UpdateCustomerInput, e as addToCartInputSchema, A as addToCartSchema, E as cartCouponSchema, b as cartItemImageSchema, a as cartItemSchema, c as cartSchema, d as cartTotalsSchema, t as checkoutInputSchema, p as checkoutSchema, f as couponInputSchema, x as embeddedCategorySchema, i as itemTotalsSchema, k as orderItemImageSchema, l as orderItemPricesSchema, j as orderItemSchema, m as orderItemTotalsSchema, o as orderStatusEnum, n as orderTotalsSchema, F as paymentDataItemSchema, G as paymentMethodSchema, B as pricesSchema, w as productCategorySchema, y as productImageSchema, v as productSchema, q as quantityLimitsSchema, r as removeCartItemInputSchema, z as searchParamsSchema, s as selectShippingRateInputSchema, D as shippingPackageSchema, C as shippingRateSchema, h as storeApiOrderSchema, u as updateCartItemInputSchema, g as updateCustomerInputSchema } from './payment.schema-6SVuX8nC.js';
|
|
4
4
|
export { AvatarUrls, AvatarUrlsSchema, CategoriesList, CategoriesListSchema, Category, CategoryParams, CategoryParamsSchema, CategorySchema, CurrentUser, CurrentUserSchema, EmbeddedPost, EmbeddedPostSchema, EmbeddedPostsList, EmbeddedPostsListSchema, Guid, GuidSchema, HalLinkItem, HalLinkItemSchema, HalLinks, HalLinksSchema, ImageMeta, ImageMetaSchema, JwtErrorResponse, JwtErrorResponseSchema, JwtLoginInput, JwtLoginInputSchema, JwtTokenResponse, JwtTokenResponseSchema, JwtValidateResponse, JwtValidateResponseSchema, Media, MediaDetails, MediaDetailsSchema, MediaList, MediaListSchema, MediaSchema, MediaSize, MediaSizeSchema, MediaSizes, MediaSizesSchema, PaginationParamsSchema, Post, PostParams, PostParamsSchema, PostSchema, PostStatus, PostStatusSchema, PostsList, PostsListSchema, RenderedContent, RenderedContentSchema, Tag, TagSchema, TagsList, TagsListSchema, User, UserSchema, UsersList, UsersListSchema, WordPressBase, WordPressBaseSchema } from './wordpress/index.js';
|
|
5
5
|
export { APP_ENUMS, CategoryFilterParams, Coupon, CouponFilterParams, CreateCategoryInput, CreateCouponInput, Customer, CustomerFilterParams, ENUM_RAW, Order, OrderFilterParams, PaymentMethodFilterParams, ProductFilterParams, TAppEnum, TAppEnumsKeys, WCBaseParams, WCErrorResponse, WCPaginationMeta, WPPaginationHeaders, baseFilteringSchema, basePaginationSchema, categoryFilterSchema, couponFilterSchema, couponSchema, createCategorySchema, createCouponSchema, createCustomerSchema, createPaginatedSchema, customerFilterSchema, customerSchema, getAppEnumRaw, getAppEnumZod, loyaltySchemaFull, loyaltySchemaRedacted, orderFilterSchema, orderLineItemSchema, orderSchema, paymentMethodFilterSchema, productFilterSchema, schemas, updateCustomerSchema, wcAddressSchema, wcBaseParamsSchema, wcBaseResponseSchema, wcDateFilterSchema, wcErrorResponseSchema, wcMetaDataSchema, wcPaginationMetaSchema, wcSortingSchema, wpBaseParamsSchema, wpLinksSchema, wpPaginationHeadersSchema, wpStatusSchema } from './woocommerce-admin/index.js';
|
|
6
6
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -115,6 +115,38 @@ var pricesSchema = z.object({
|
|
|
115
115
|
sale_price: z.string()
|
|
116
116
|
}).optional()
|
|
117
117
|
}).merge(moneySchema);
|
|
118
|
+
var productImageSchema = z.object({
|
|
119
|
+
/** Alternative text for the image */
|
|
120
|
+
alt: z.string(),
|
|
121
|
+
/** Image unique identifier */
|
|
122
|
+
id: z.number(),
|
|
123
|
+
/** Image filename */
|
|
124
|
+
name: z.string(),
|
|
125
|
+
/** Available image sizes in JSON format */
|
|
126
|
+
sizes: z.string(),
|
|
127
|
+
/** Full-size image URL */
|
|
128
|
+
src: z.string().url(),
|
|
129
|
+
/** Srcset attribute for responsive images */
|
|
130
|
+
srcset: z.string(),
|
|
131
|
+
/** Thumbnail image URL */
|
|
132
|
+
thumbnail: z.string().url()
|
|
133
|
+
});
|
|
134
|
+
var cartItemImageSchema = z.object({
|
|
135
|
+
/** Image ID */
|
|
136
|
+
id: z.number(),
|
|
137
|
+
/** Full image URL */
|
|
138
|
+
src: z.string(),
|
|
139
|
+
/** Thumbnail URL */
|
|
140
|
+
thumbnail: z.string(),
|
|
141
|
+
/** Responsive image srcset */
|
|
142
|
+
srcset: z.string(),
|
|
143
|
+
/** Responsive image sizes */
|
|
144
|
+
sizes: z.string(),
|
|
145
|
+
/** Image name */
|
|
146
|
+
name: z.string(),
|
|
147
|
+
/** Image alt text */
|
|
148
|
+
alt: z.string()
|
|
149
|
+
});
|
|
118
150
|
|
|
119
151
|
// src/woocommerce/cart-item.schema.ts
|
|
120
152
|
var itemTotalsSchema = z.object({
|
|
@@ -164,24 +196,7 @@ var cartItemSchema = z.object({
|
|
|
164
196
|
/** Product permalink URL */
|
|
165
197
|
permalink: z.string(),
|
|
166
198
|
/** Product images */
|
|
167
|
-
images: z.array(
|
|
168
|
-
z.object({
|
|
169
|
-
/** Image ID */
|
|
170
|
-
id: z.number(),
|
|
171
|
-
/** Full image URL */
|
|
172
|
-
src: z.string(),
|
|
173
|
-
/** Thumbnail URL */
|
|
174
|
-
thumbnail: z.string(),
|
|
175
|
-
/** Responsive image srcset */
|
|
176
|
-
srcset: z.string(),
|
|
177
|
-
/** Responsive image sizes */
|
|
178
|
-
sizes: z.string(),
|
|
179
|
-
/** Image name */
|
|
180
|
-
name: z.string(),
|
|
181
|
-
/** Image alt text */
|
|
182
|
-
alt: z.string()
|
|
183
|
-
})
|
|
184
|
-
),
|
|
199
|
+
images: z.array(cartItemImageSchema),
|
|
185
200
|
/** Variation attributes (for variable products) */
|
|
186
201
|
variation: z.array(
|
|
187
202
|
z.object({
|
|
@@ -622,24 +637,6 @@ var addToCartSchema = z.object({
|
|
|
622
637
|
/** URL for add to cart action */
|
|
623
638
|
url: z.string()
|
|
624
639
|
});
|
|
625
|
-
var productImageSchema = z.object({
|
|
626
|
-
/** Alternative text for the image */
|
|
627
|
-
alt: z.string(),
|
|
628
|
-
/** Image unique identifier */
|
|
629
|
-
id: z.number(),
|
|
630
|
-
/** Image filename */
|
|
631
|
-
name: z.string(),
|
|
632
|
-
/** Available image sizes in JSON format */
|
|
633
|
-
sizes: z.string(),
|
|
634
|
-
/** Full-size image URL */
|
|
635
|
-
src: z.string().url(),
|
|
636
|
-
/** Srcset attribute for responsive images */
|
|
637
|
-
srcset: z.string(),
|
|
638
|
-
/** Thumbnail image URL */
|
|
639
|
-
thumbnail: z.string().url()
|
|
640
|
-
});
|
|
641
|
-
|
|
642
|
-
// src/woocommerce/category.schema.ts
|
|
643
640
|
var embeddedCategorySchema = z.object({
|
|
644
641
|
/** Category unique identifier */
|
|
645
642
|
id: z.number(),
|
|
@@ -1697,6 +1694,6 @@ var schemas = {
|
|
|
1697
1694
|
}
|
|
1698
1695
|
};
|
|
1699
1696
|
|
|
1700
|
-
export { APP_ENUMS, AvatarUrlsSchema, CategoriesListSchema, CategoryParamsSchema, CategorySchema, CurrentUserSchema, ENUM_RAW, EmbeddedPostSchema, EmbeddedPostsListSchema, GuidSchema, HalLinkItemSchema, HalLinksSchema, ImageMetaSchema, JwtErrorResponseSchema, JwtLoginInputSchema, JwtTokenResponseSchema, JwtValidateResponseSchema, MediaDetailsSchema, MediaListSchema, MediaSchema, MediaSizeSchema, MediaSizesSchema, PaginationParamsSchema, PostParamsSchema, PostSchema, PostStatusSchema, PostsListSchema, RenderedContentSchema, TagSchema, TagsListSchema, UserSchema, UsersListSchema, WordPressBaseSchema, addToCartInputSchema, addToCartSchema, addressSchema, addressSchemaNonMandatory, baseFilteringSchema, basePaginationSchema, billingAddressSchemaMandatory, billingAddressSchemaNonMandatory, cartCouponSchema, cartItemSchema, cartSchema, cartTotalsSchema, categoryFilterSchema, checkoutInputSchema, checkoutSchema, couponFilterSchema, couponInputSchema, couponSchema, createCategorySchema, createCouponSchema, createCustomerSchema, createPaginatedSchema, customerFilterSchema, customerSchema, embeddedCategorySchema, getAppEnumRaw, getAppEnumZod, itemTotalsSchema, loyaltySchemaFull, loyaltySchemaRedacted, moneySchema, orderFilterSchema, orderItemImageSchema, orderItemPricesSchema, orderItemSchema, orderItemTotalsSchema, orderLineItemSchema, orderSchema, orderStatusEnum, orderTotalsSchema, paginationMetaSchema, paginationParamsSchema, paymentDataItemSchema, paymentMethodFilterSchema, paymentMethodSchema, pricesSchema, productCategorySchema, productFilterSchema, productImageSchema, productSchema, quantityLimitsSchema, removeCartItemInputSchema, schemas, storeProductsSearchParamsSchema as searchParamsSchema, selectShippingRateInputSchema, shippingPackageSchema, shippingRateSchema, storeApiOrderSchema, updateCartItemInputSchema, updateCustomerInputSchema, updateCustomerSchema, wcAddressSchema, wcBaseParamsSchema, wcBaseResponseSchema, wcDateFilterSchema, wcErrorResponseSchema, wcMetaDataSchema, wcPaginationMetaSchema, wcSortingSchema, wpBaseParamsSchema, wpLinksSchema, wpPaginationHeadersSchema, wpStatusSchema };
|
|
1697
|
+
export { APP_ENUMS, AvatarUrlsSchema, CategoriesListSchema, CategoryParamsSchema, CategorySchema, CurrentUserSchema, ENUM_RAW, EmbeddedPostSchema, EmbeddedPostsListSchema, GuidSchema, HalLinkItemSchema, HalLinksSchema, ImageMetaSchema, JwtErrorResponseSchema, JwtLoginInputSchema, JwtTokenResponseSchema, JwtValidateResponseSchema, MediaDetailsSchema, MediaListSchema, MediaSchema, MediaSizeSchema, MediaSizesSchema, PaginationParamsSchema, PostParamsSchema, PostSchema, PostStatusSchema, PostsListSchema, RenderedContentSchema, TagSchema, TagsListSchema, UserSchema, UsersListSchema, WordPressBaseSchema, addToCartInputSchema, addToCartSchema, addressSchema, addressSchemaNonMandatory, baseFilteringSchema, basePaginationSchema, billingAddressSchemaMandatory, billingAddressSchemaNonMandatory, cartCouponSchema, cartItemImageSchema, cartItemSchema, cartSchema, cartTotalsSchema, categoryFilterSchema, checkoutInputSchema, checkoutSchema, couponFilterSchema, couponInputSchema, couponSchema, createCategorySchema, createCouponSchema, createCustomerSchema, createPaginatedSchema, customerFilterSchema, customerSchema, embeddedCategorySchema, getAppEnumRaw, getAppEnumZod, itemTotalsSchema, loyaltySchemaFull, loyaltySchemaRedacted, moneySchema, orderFilterSchema, orderItemImageSchema, orderItemPricesSchema, orderItemSchema, orderItemTotalsSchema, orderLineItemSchema, orderSchema, orderStatusEnum, orderTotalsSchema, paginationMetaSchema, paginationParamsSchema, paymentDataItemSchema, paymentMethodFilterSchema, paymentMethodSchema, pricesSchema, productCategorySchema, productFilterSchema, productImageSchema, productSchema, quantityLimitsSchema, removeCartItemInputSchema, schemas, storeProductsSearchParamsSchema as searchParamsSchema, selectShippingRateInputSchema, shippingPackageSchema, shippingRateSchema, storeApiOrderSchema, updateCartItemInputSchema, updateCustomerInputSchema, updateCustomerSchema, wcAddressSchema, wcBaseParamsSchema, wcBaseResponseSchema, wcDateFilterSchema, wcErrorResponseSchema, wcMetaDataSchema, wcPaginationMetaSchema, wcSortingSchema, wpBaseParamsSchema, wpLinksSchema, wpPaginationHeadersSchema, wpStatusSchema };
|
|
1701
1698
|
//# sourceMappingURL=index.js.map
|
|
1702
1699
|
//# sourceMappingURL=index.js.map
|