@thorprovider/adapters 4.1.0 → 4.2.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.
@@ -16,6 +16,39 @@ import type { BackendCapabilities } from '@thorprovider/types';
16
16
 
17
17
  export type { BackendCapabilities };
18
18
 
19
+ /**
20
+ * Mock backend capabilities
21
+ *
22
+ * Fixture-backed provider used when a storefront has not yet been connected
23
+ * to a real backend. Supports the minimum commerce flows needed for layout,
24
+ * preview, navigation, region switching, and cart prototyping.
25
+ */
26
+ export const MOCK_CAPABILITIES: Readonly<BackendCapabilities> = {
27
+ updateProfile: false,
28
+ updateEmail: false,
29
+ changePasswordDirect: false,
30
+ changePasswordViaEmail: false,
31
+ deleteAccount: false,
32
+ uploadAvatar: false,
33
+ avatarViaMetadata: false,
34
+ customAttributes: false,
35
+ fetchOrders: true,
36
+ cancelOrder: true,
37
+ manageAddresses: false,
38
+ defaultAddress: false,
39
+ applyDiscounts: true,
40
+ shippingCalculation: true,
41
+ guestCheckout: true,
42
+ savedPaymentMethods: false,
43
+ listPaymentProviders: true,
44
+ regionSpecificPayments: true,
45
+ wishlist: false,
46
+ advancedSearch: false,
47
+ facetedFilters: false,
48
+ productReviews: false,
49
+ loyaltyProgram: false,
50
+ };
51
+
19
52
  /**
20
53
  * Medusa backend capabilities
21
54
  *
@@ -1 +0,0 @@
1
- command not found: jest
File without changes
package/publish.log DELETED
@@ -1,93 +0,0 @@
1
- npm warn Unknown project config "network-concurrency". This will stop working in the next major version of npm.
2
- npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
3
- npm warn publish errors corrected:
4
- npm warn publish "repository.url" was normalized to "git+https://github.com/thorprovider/thor-commerce.git"
5
- npm notice
6
- npm notice 📦 @thor/adapters@3.0.1
7
- npm notice Tarball Contents
8
- npm notice 629B AGENTS.md
9
- npm notice 9.1kB CHANGELOG.md
10
- npm notice 19.2kB README.md
11
- npm notice 73.6kB dist/index.d.mts
12
- npm notice 73.6kB dist/index.d.ts
13
- npm notice 191.6kB dist/index.js
14
- npm notice 377.7kB dist/index.js.map
15
- npm notice 187.4kB dist/index.mjs
16
- npm notice 377.4kB dist/index.mjs.map
17
- npm notice 4.7kB docs/authentication.md
18
- npm notice 4.3kB docs/capabilities-system.md
19
- npm notice 9.9kB docs/category-customization.md
20
- npm notice 11.0kB docs/fetch-reliability-solution.md
21
- npm notice 4.4kB docs/getting-started.md
22
- npm notice 7.8kB docs/multi-tenant-channel-scoping.md
23
- npm notice 4.5kB docs/profile-management.md
24
- npm notice 3.7kB docs/providers-overview.md
25
- npm notice 2.1kB docs/RETRY_SOLUTION_SUMMARY.md
26
- npm notice 5.2kB docs/services-overview.md
27
- npm notice 4.0kB docs/update-documentation.md
28
- npm notice 1.2kB package.json
29
- npm notice 6.3kB quick-reference.md
30
- npm notice 2.5kB src/admin/AdminAuthService.ts
31
- npm notice 2.4kB src/admin/AdminSessionService.ts
32
- npm notice 414B src/admin/index.ts
33
- npm notice 4.2kB src/admin/MetricsService.ts
34
- npm notice 2.5kB src/backend/BackendMetadataAdapter.ts
35
- npm notice 3.5kB src/backend/factory.ts
36
- npm notice 312B src/backend/index.ts
37
- npm notice 3.9kB src/backend/medusa/MedusaMetadataAdapter.ts
38
- npm notice 6.3kB src/core/errors.js
39
- npm notice 3.5kB src/core/errors.ts
40
- npm notice 11.3kB src/core/fetch-utils.js
41
- npm notice 6.0kB src/core/fetch-utils.ts
42
- npm notice 141B src/core/index.ts
43
- npm notice 2.3kB src/core/logger.js
44
- npm notice 1.1kB src/core/logger.ts
45
- npm notice 2.0kB src/factory/index.ts
46
- npm notice 4.5kB src/index.ts
47
- npm notice 2.7kB src/lib/money-transform.ts
48
- npm notice 6.2kB src/metadata/channel-scope-validation.js
49
- npm notice 5.1kB src/metadata/channel-scope-validation.ts
50
- npm notice 7.6kB src/metadata/channel-scope.js
51
- npm notice 8.2kB src/metadata/channel-scope.ts
52
- npm notice 3.3kB src/metadata/index.js
53
- npm notice 810B src/metadata/index.ts
54
- npm notice 148B src/providers/index.ts
55
- npm notice 30.0kB src/providers/medusa/auth.js
56
- npm notice 15.1kB src/providers/medusa/auth.ts
57
- npm notice 6.2kB src/providers/medusa/fulfillment-planner.ts
58
- npm notice 151.8kB src/providers/medusa/index.js
59
- npm notice 147.6kB src/providers/medusa/index.ts
60
- npm notice 184B src/providers/medusa/medusa.ts
61
- npm notice 11.0kB src/providers/medusa/payment.js
62
- npm notice 7.2kB src/providers/medusa/payment.ts
63
- npm notice 25.8kB src/providers/medusa/transforms.js
64
- npm notice 19.8kB src/providers/medusa/transforms.ts
65
- npm notice 5.5kB src/resilience/circuit-breaker.ts
66
- npm notice 238B src/resilience/index.ts
67
- npm notice 7.6kB src/resilience/README.md
68
- npm notice 4.8kB src/types/capabilities.types.js
69
- npm notice 4.7kB src/types/capabilities.types.ts
70
- npm notice 513B src/types/index.ts
71
- npm notice 350B src/types/provider.js
72
- npm notice 365B src/types/provider.ts
73
- npm notice 6.5kB src/types/ui-responses.ts
74
- npm notice 1.1kB src/utils/city-coordinates.ts
75
- npm notice 1.3kB src/utils/geolocation.ts
76
- npm notice 5.6kB src/utils/payment-utils.js
77
- npm notice 6.5kB src/utils/payment-utils.ts
78
- npm notice 357B tsconfig.json
79
- npm notice 370B tsup.config.ts
80
- npm notice Tarball Details
81
- npm notice name: @thor/adapters
82
- npm notice version: 3.0.1
83
- npm notice filename: thor-adapters-3.0.1.tgz
84
- npm notice package size: 413.9 kB
85
- npm notice unpacked size: 1.9 MB
86
- npm notice shasum: 696c58c4b5629ad1ec09336238ea157aad015e3d
87
- npm notice integrity: sha512-tIweHlz73prg8[...]3KYkFTyNlUX4w==
88
- npm notice total files: 72
89
- npm notice
90
- npm notice Publishing to https://npm.pkg.github.com with tag latest and restricted access
91
- npm error code E401
92
- npm error 401 Unauthorized - PUT https://npm.pkg.github.com/@thor%2fadapters - unauthenticated: User cannot be authenticated with the token provided.
93
- npm error A complete log of this run can be found in: /home/nelson/.npm/_logs/2026-04-16T15_45_37_415Z-debug-0.log