@reactionary/core 0.0.67 → 0.0.69

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 (3) hide show
  1. package/index.js +255 -4
  2. package/package.json +1 -1
  3. package/src/index.d.ts +6 -3
package/index.js CHANGED
@@ -30,34 +30,285 @@ import {
30
30
  SessionSchema,
31
31
  TaxJurisdictionSchema
32
32
  } from "./schemas/session.schema.js";
33
- export * from "./schemas/models/index.js";
34
- export * from "./schemas/mutations/index.js";
35
- export * from "./schemas/queries/index.js";
33
+ import {
34
+ AddressIdentifierSchema,
35
+ AddressSchema,
36
+ AnalyticsEventSchema,
37
+ AnonymousIdentitySchema,
38
+ BaseModelSchema,
39
+ CacheInformationSchema,
40
+ CartIdentifierSchema,
41
+ CartItemIdentifierSchema,
42
+ CartItemSchema,
43
+ CartSchema,
44
+ CategoryIdentifierSchema,
45
+ CategoryPaginatedResultSchema,
46
+ CategorySchema,
47
+ CheckoutIdentifierSchema,
48
+ CheckoutItemIdentifierSchema,
49
+ CheckoutItemSchema,
50
+ CheckoutSchema,
51
+ CostBreakDownSchema,
52
+ CurrencySchema,
53
+ FacetIdentifierSchema,
54
+ FacetValueIdentifierSchema,
55
+ FulfillmentCenterIdentifierSchema,
56
+ GuestIdentitySchema,
57
+ IdentityIdentifierSchema,
58
+ IdentitySchema,
59
+ ImageSchema,
60
+ InventoryIdentifierSchema,
61
+ InventorySchema,
62
+ ItemCostBreakdownSchema,
63
+ MetaSchema,
64
+ MonetaryAmountSchema,
65
+ OrderIdentifierSchema,
66
+ OrderInventoryStatusSchema,
67
+ OrderItemIdentifierSchema,
68
+ OrderItemSchema,
69
+ OrderSchema,
70
+ OrderStatusSchema,
71
+ PaginationOptionsSchema,
72
+ PaymentInstructionIdentifierSchema,
73
+ PaymentInstructionSchema,
74
+ PaymentMethodIdentifierSchema,
75
+ PaymentMethodSchema,
76
+ PaymentProtocolDataSchema,
77
+ PaymentStatusSchema,
78
+ PickupPointIdentifierSchema,
79
+ PickupPointSchema,
80
+ PriceIdentifierSchema,
81
+ PriceSchema,
82
+ ProductAttributeIdentifierSchema,
83
+ ProductAttributeSchema,
84
+ ProductAttributeValueIdentifierSchema,
85
+ ProductAttributeValueSchema,
86
+ ProductIdentifierSchema,
87
+ ProductOptionIdentifierSchema,
88
+ ProductOptionSchema,
89
+ ProductOptionValueIdentifierSchema,
90
+ ProductOptionValueSchema,
91
+ ProductSchema,
92
+ ProductSearchIdentifierSchema,
93
+ ProductSearchResultFacetSchema,
94
+ ProductSearchResultFacetValueSchema,
95
+ ProductSearchResultItemSchema,
96
+ ProductSearchResultItemVariantSchema,
97
+ ProductSearchResultSchema,
98
+ ProductVariantIdentifierSchema,
99
+ ProductVariantOptionSchema,
100
+ ProductVariantSchema,
101
+ ProfileSchema,
102
+ RegisteredIdentitySchema,
103
+ ShippingInstructionSchema,
104
+ ShippingMethodIdentifierSchema,
105
+ ShippingMethodSchema,
106
+ StoreIdentifierSchema,
107
+ StoreSchema,
108
+ TieredPriceSchema,
109
+ WebStoreIdentifierSchema,
110
+ createPaginatedResponseSchema
111
+ } from "./schemas/models/index.js";
112
+ import {
113
+ AnalyticsMutationSchema,
114
+ AnalyticsMutationSearchEventSchema,
115
+ AnalyticsMutationSearchProductClickEventSchema,
116
+ BaseMutationSchema,
117
+ CartMutationAddPaymentMethodSchema,
118
+ CartMutationApplyCouponSchema,
119
+ CartMutationChangeCurrencySchema,
120
+ CartMutationCheckoutSchema,
121
+ CartMutationDeleteCartSchema,
122
+ CartMutationItemAddSchema,
123
+ CartMutationItemQuantityChangeSchema,
124
+ CartMutationItemRemoveSchema,
125
+ CartMutationRemoveCouponSchema,
126
+ CartMutationRemovePaymentMethodSchema,
127
+ CartMutationSetBillingAddressSchema,
128
+ CartMutationSetShippingInfoSchema,
129
+ CheckoutMutationAddPaymentInstructionSchema,
130
+ CheckoutMutationFinalizeCheckoutSchema,
131
+ CheckoutMutationInitiateCheckoutSchema,
132
+ CheckoutMutationRemovePaymentInstructionSchema,
133
+ CheckoutMutationSetShippingAddressSchema,
134
+ CheckoutMutationSetShippingInstructionSchema,
135
+ IdentityMutationLoginSchema,
136
+ IdentityMutationLogoutSchema,
137
+ IdentityMutationRegisterSchema,
138
+ ProfileMutationUpdateSchema
139
+ } from "./schemas/mutations/index.js";
140
+ import {
141
+ BaseQuerySchema,
142
+ CartQueryByIdSchema,
143
+ CategoryQueryById,
144
+ CategoryQueryBySlug,
145
+ CategoryQueryForBreadcrumb,
146
+ CategoryQueryForChildCategories,
147
+ CategoryQueryForTopCategories,
148
+ CheckoutQueryByIdSchema,
149
+ CheckoutQueryForAvailablePaymentMethodsSchema,
150
+ CheckoutQueryForAvailableShippingMethodsSchema,
151
+ IdentityQuerySelfSchema,
152
+ InventoryQueryBySKUSchema,
153
+ OrderQueryByIdSchema,
154
+ PriceQueryBySkuSchema,
155
+ ProductQueryByIdSchema,
156
+ ProductQueryBySKUSchema,
157
+ ProductQueryBySlugSchema,
158
+ ProductQueryVariantsSchema,
159
+ ProductSearchQueryByTermSchema,
160
+ ProfileQuerySelfSchema,
161
+ StoreQueryByProximitySchema
162
+ } from "./schemas/queries/index.js";
36
163
  import { createInitialRequestContext } from "./initialization.js";
37
164
  export {
165
+ AddressIdentifierSchema,
166
+ AddressSchema,
167
+ AnalyticsEventSchema,
168
+ AnalyticsMutationSchema,
169
+ AnalyticsMutationSearchEventSchema,
170
+ AnalyticsMutationSearchProductClickEventSchema,
38
171
  AnalyticsProvider,
172
+ AnonymousIdentitySchema,
173
+ BaseModelSchema,
174
+ BaseMutationSchema,
39
175
  BaseProvider,
176
+ BaseQuerySchema,
177
+ CacheInformationSchema,
40
178
  CapabilitiesSchema,
179
+ CartIdentifierSchema,
180
+ CartItemIdentifierSchema,
181
+ CartItemSchema,
182
+ CartMutationAddPaymentMethodSchema,
183
+ CartMutationApplyCouponSchema,
184
+ CartMutationChangeCurrencySchema,
185
+ CartMutationCheckoutSchema,
186
+ CartMutationDeleteCartSchema,
187
+ CartMutationItemAddSchema,
188
+ CartMutationItemQuantityChangeSchema,
189
+ CartMutationItemRemoveSchema,
190
+ CartMutationRemoveCouponSchema,
191
+ CartMutationRemovePaymentMethodSchema,
192
+ CartMutationSetBillingAddressSchema,
193
+ CartMutationSetShippingInfoSchema,
41
194
  CartProvider,
195
+ CartQueryByIdSchema,
196
+ CartSchema,
197
+ CategoryIdentifierSchema,
198
+ CategoryPaginatedResultSchema,
42
199
  CategoryProvider,
200
+ CategoryQueryById,
201
+ CategoryQueryBySlug,
202
+ CategoryQueryForBreadcrumb,
203
+ CategoryQueryForChildCategories,
204
+ CategoryQueryForTopCategories,
205
+ CategorySchema,
206
+ CheckoutIdentifierSchema,
207
+ CheckoutItemIdentifierSchema,
208
+ CheckoutItemSchema,
209
+ CheckoutMutationAddPaymentInstructionSchema,
210
+ CheckoutMutationFinalizeCheckoutSchema,
211
+ CheckoutMutationInitiateCheckoutSchema,
212
+ CheckoutMutationRemovePaymentInstructionSchema,
213
+ CheckoutMutationSetShippingAddressSchema,
214
+ CheckoutMutationSetShippingInstructionSchema,
43
215
  CheckoutProvider,
216
+ CheckoutQueryByIdSchema,
217
+ CheckoutQueryForAvailablePaymentMethodsSchema,
218
+ CheckoutQueryForAvailableShippingMethodsSchema,
219
+ CheckoutSchema,
44
220
  ClientBuilder,
221
+ CostBreakDownSchema,
222
+ CurrencySchema,
223
+ FacetIdentifierSchema,
224
+ FacetValueIdentifierSchema,
225
+ FulfillmentCenterIdentifierSchema,
226
+ GuestIdentitySchema,
227
+ IdentityIdentifierSchema,
228
+ IdentityMutationLoginSchema,
229
+ IdentityMutationLogoutSchema,
230
+ IdentityMutationRegisterSchema,
45
231
  IdentityProvider,
232
+ IdentityQuerySelfSchema,
233
+ IdentitySchema,
234
+ ImageSchema,
235
+ InventoryIdentifierSchema,
46
236
  InventoryProvider,
237
+ InventoryQueryBySKUSchema,
238
+ InventorySchema,
239
+ ItemCostBreakdownSchema,
47
240
  LanguageContextSchema,
48
241
  MemoryCache,
242
+ MetaSchema,
243
+ MonetaryAmountSchema,
49
244
  NoOpCache,
245
+ OrderIdentifierSchema,
246
+ OrderInventoryStatusSchema,
247
+ OrderItemIdentifierSchema,
248
+ OrderItemSchema,
50
249
  OrderProvider,
250
+ OrderQueryByIdSchema,
251
+ OrderSchema,
252
+ OrderStatusSchema,
253
+ PaginationOptionsSchema,
254
+ PaymentInstructionIdentifierSchema,
255
+ PaymentInstructionSchema,
256
+ PaymentMethodIdentifierSchema,
257
+ PaymentMethodSchema,
258
+ PaymentProtocolDataSchema,
259
+ PaymentStatusSchema,
260
+ PickupPointIdentifierSchema,
261
+ PickupPointSchema,
262
+ PriceIdentifierSchema,
51
263
  PriceProvider,
264
+ PriceQueryBySkuSchema,
265
+ PriceSchema,
266
+ ProductAttributeIdentifierSchema,
267
+ ProductAttributeSchema,
268
+ ProductAttributeValueIdentifierSchema,
269
+ ProductAttributeValueSchema,
270
+ ProductIdentifierSchema,
271
+ ProductOptionIdentifierSchema,
272
+ ProductOptionSchema,
273
+ ProductOptionValueIdentifierSchema,
274
+ ProductOptionValueSchema,
52
275
  ProductProvider,
276
+ ProductQueryByIdSchema,
277
+ ProductQueryBySKUSchema,
278
+ ProductQueryBySlugSchema,
279
+ ProductQueryVariantsSchema,
280
+ ProductSchema,
281
+ ProductSearchIdentifierSchema,
53
282
  ProductSearchProvider,
283
+ ProductSearchQueryByTermSchema,
284
+ ProductSearchResultFacetSchema,
285
+ ProductSearchResultFacetValueSchema,
286
+ ProductSearchResultItemSchema,
287
+ ProductSearchResultItemVariantSchema,
288
+ ProductSearchResultSchema,
289
+ ProductVariantIdentifierSchema,
290
+ ProductVariantOptionSchema,
291
+ ProductVariantSchema,
292
+ ProfileMutationUpdateSchema,
54
293
  ProfileProvider,
294
+ ProfileQuerySelfSchema,
295
+ ProfileSchema,
55
296
  Reactionary,
56
297
  ReactionaryDecoratorOptions,
57
298
  RedisCache,
299
+ RegisteredIdentitySchema,
58
300
  RequestContextSchema,
59
301
  SessionSchema,
302
+ ShippingInstructionSchema,
303
+ ShippingMethodIdentifierSchema,
304
+ ShippingMethodSchema,
305
+ StoreIdentifierSchema,
60
306
  StoreProvider,
307
+ StoreQueryByProximitySchema,
308
+ StoreSchema,
61
309
  TaxJurisdictionSchema,
62
- createInitialRequestContext
310
+ TieredPriceSchema,
311
+ WebStoreIdentifierSchema,
312
+ createInitialRequestContext,
313
+ createPaginatedResponseSchema
63
314
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/core",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
package/src/index.d.ts CHANGED
@@ -8,7 +8,10 @@ export { Reactionary, ReactionaryDecoratorOptions, } from './decorators/reaction
8
8
  export { AnalyticsProvider, BaseProvider, CartProvider, CategoryProvider, CheckoutProvider, IdentityProvider, InventoryProvider, OrderProvider, PriceProvider, ProductProvider, ProductSearchProvider, ProfileProvider, StoreProvider, } from './providers/index.js';
9
9
  export { type Capabilities, CapabilitiesSchema, } from './schemas/capabilities.schema.js';
10
10
  export { type LanguageContext, LanguageContextSchema, type RequestContext, RequestContextSchema, type Session, SessionSchema, type TaxJurisdiction, TaxJurisdictionSchema, } from './schemas/session.schema.js';
11
- export * from './schemas/models/index.js';
12
- export * from './schemas/mutations/index.js';
13
- export * from './schemas/queries/index.js';
11
+ export { AddressIdentifierSchema, AddressSchema, AnalyticsEventSchema, AnonymousIdentitySchema, BaseModelSchema, CacheInformationSchema, CartIdentifierSchema, CartItemIdentifierSchema, CartItemSchema, CartSchema, CategoryIdentifierSchema, CategoryPaginatedResultSchema, CategorySchema, CheckoutIdentifierSchema, CheckoutItemIdentifierSchema, CheckoutItemSchema, CheckoutSchema, CostBreakDownSchema, CurrencySchema, FacetIdentifierSchema, FacetValueIdentifierSchema, FulfillmentCenterIdentifierSchema, GuestIdentitySchema, IdentityIdentifierSchema, IdentitySchema, ImageSchema, InventoryIdentifierSchema, InventorySchema, ItemCostBreakdownSchema, MetaSchema, MonetaryAmountSchema, OrderIdentifierSchema, OrderInventoryStatusSchema, OrderItemIdentifierSchema, OrderItemSchema, OrderSchema, OrderStatusSchema, PaginationOptionsSchema, PaymentInstructionIdentifierSchema, PaymentInstructionSchema, PaymentMethodIdentifierSchema, PaymentMethodSchema, PaymentProtocolDataSchema, PaymentStatusSchema, PickupPointIdentifierSchema, PickupPointSchema, PriceIdentifierSchema, PriceSchema, ProductAttributeIdentifierSchema, ProductAttributeSchema, ProductAttributeValueIdentifierSchema, ProductAttributeValueSchema, ProductIdentifierSchema, ProductOptionIdentifierSchema, ProductOptionSchema, ProductOptionValueIdentifierSchema, ProductOptionValueSchema, ProductSchema, ProductSearchIdentifierSchema, ProductSearchResultFacetSchema, ProductSearchResultFacetValueSchema, ProductSearchResultItemSchema, ProductSearchResultItemVariantSchema, ProductSearchResultSchema, ProductVariantIdentifierSchema, ProductVariantOptionSchema, ProductVariantSchema, ProfileSchema, RegisteredIdentitySchema, ShippingInstructionSchema, ShippingMethodIdentifierSchema, ShippingMethodSchema, StoreIdentifierSchema, StoreSchema, TieredPriceSchema, WebStoreIdentifierSchema, createPaginatedResponseSchema, } from './schemas/models/index.js';
12
+ export type { Address, AddressIdentifier, AnalyticsEvent, AnonymousIdentity, BaseModel, CacheInformation, Cart, CartIdentifier, CartItem, CartItemIdentifier, Category, CategoryIdentifier, CategoryPaginatedResult, Checkout, CheckoutIdentifier, CheckoutItem, CheckoutItemIdentifier, CostBreakDown, Currency, FacetIdentifier, FacetValueIdentifier, FulfillmentCenterIdentifier, GuestIdentity, IdentifierType, Identity, IdentityIdentifier, Image, Inventory, InventoryIdentifier, ItemCostBreakdown, Meta, MonetaryAmount, Order, OrderIdentifier, OrderItem, OrderItemIdentifier, PaginationOptions, PaymentInstruction, PaymentInstructionIdentifier, PaymentMethod, PaymentMethodIdentifier, PaymentStatus, PickupPoint, PickupPointIdentifier, Price, PriceIdentifier, Product, ProductAttribute, ProductAttributeIdentifier, ProductAttributeValue, ProductAttributeValueIdentifier, ProductIdentifier, ProductOption, ProductOptionIdentifier, ProductOptionValue, ProductOptionValueIdentifier, ProductSearchResult, ProductSearchResultFacet, ProductSearchResultFacetValue, ProductSearchResultItem, ProductSearchResultItemVariant, ProductVariant, ProductVariantIdentifier, ProductVariantOption, Profile, RegisteredIdentity, SearchIdentifier, ShippingInstruction, ShippingMethod, ShippingMethodIdentifier, Store, StoreIdentifier, TieredPrice, WebStoreIdentifier, } from './schemas/models/index.js';
13
+ export { AnalyticsMutationSchema, AnalyticsMutationSearchEventSchema, AnalyticsMutationSearchProductClickEventSchema, BaseMutationSchema, CartMutationAddPaymentMethodSchema, CartMutationApplyCouponSchema, CartMutationChangeCurrencySchema, CartMutationCheckoutSchema, CartMutationDeleteCartSchema, CartMutationItemAddSchema, CartMutationItemQuantityChangeSchema, CartMutationItemRemoveSchema, CartMutationRemoveCouponSchema, CartMutationRemovePaymentMethodSchema, CartMutationSetBillingAddressSchema, CartMutationSetShippingInfoSchema, CheckoutMutationAddPaymentInstructionSchema, CheckoutMutationFinalizeCheckoutSchema, CheckoutMutationInitiateCheckoutSchema, CheckoutMutationRemovePaymentInstructionSchema, CheckoutMutationSetShippingAddressSchema, CheckoutMutationSetShippingInstructionSchema, IdentityMutationLoginSchema, IdentityMutationLogoutSchema, IdentityMutationRegisterSchema, ProfileMutationUpdateSchema, } from './schemas/mutations/index.js';
14
+ export type { AnalyticsMutation, AnalyticsMutationSearchEvent, AnalyticsMutationSearchProductClickEvent, BaseMutation, CartMutationAddPaymentMethod, CartMutationApplyCoupon, CartMutationChangeCurrency, CartMutationCheckout, CartMutationDeleteCart, CartMutationItemAdd, CartMutationItemQuantityChange, CartMutationItemRemove, CartMutationRemoveCoupon, CartMutationRemovePaymentMethod, CartMutationSetBillingAddress, CartMutationSetShippingInfo, CheckoutMutationAddPaymentInstruction, CheckoutMutationFinalizeCheckout, CheckoutMutationInitiateCheckout, CheckoutMutationRemovePaymentInstruction, CheckoutMutationSetShippingAddress, CheckoutMutationSetShippingInstruction, IdentityMutationLogin, IdentityMutationLogout, IdentityMutationRegister, ProfileMutationUpdate, } from './schemas/mutations/index.js';
15
+ export { BaseQuerySchema, CartQueryByIdSchema, CategoryQueryById, CategoryQueryBySlug, CategoryQueryForBreadcrumb, CategoryQueryForChildCategories, CategoryQueryForTopCategories, CheckoutQueryByIdSchema, CheckoutQueryForAvailablePaymentMethodsSchema, CheckoutQueryForAvailableShippingMethodsSchema, IdentityQuerySelfSchema, InventoryQueryBySKUSchema, OrderQueryByIdSchema, PriceQueryBySkuSchema, ProductQueryByIdSchema, ProductQueryBySKUSchema, ProductQueryBySlugSchema, ProductQueryVariantsSchema, ProductSearchQueryByTermSchema, ProfileQuerySelfSchema, StoreQueryByProximitySchema, } from './schemas/queries/index.js';
16
+ export type { BaseQuery, CartQueryById, CheckoutQueryById, CheckoutQueryForAvailablePaymentMethods, CheckoutQueryForAvailableShippingMethods, IdentityQuerySelf, InventoryQueryBySKU, OrderQueryById, PriceQueryBySku, ProductQueryById, ProductQueryBySKU, ProductQueryBySlug, ProductQueryVariants, ProductSearchQueryByTerm, ProfileQuerySelf, StoreQueryByProximity, } from './schemas/queries/index.js';
14
17
  export { createInitialRequestContext } from './initialization.js';