@23blocks/block-sales 5.0.3 → 5.1.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.
package/dist/index.esm.js
CHANGED
|
@@ -1779,7 +1779,8 @@ function createPurchasesService(transport, _config) {
|
|
|
1779
1779
|
stripe: createStripeService(transport),
|
|
1780
1780
|
mercadopago: createMercadoPagoService(transport),
|
|
1781
1781
|
vendorPayments: createVendorPaymentsService(transport),
|
|
1782
|
-
purchases: createPurchasesService(transport)
|
|
1782
|
+
purchases: createPurchasesService(transport),
|
|
1783
|
+
health: ()=>transport.get('/health')
|
|
1783
1784
|
};
|
|
1784
1785
|
}
|
|
1785
1786
|
const salesBlockMetadata = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Transport, BlockConfig, BlockMetadata } from '@23blocks/contracts';
|
|
1
|
+
import type { Transport, BlockConfig, BlockMetadata, HealthCheckResponse } from '@23blocks/contracts';
|
|
2
2
|
import { type OrdersService, type OrderDetailsService, type OrderTaxesService, type PaymentsService, type SubscriptionsService, type SubscriptionModelsService, type SalesEntitiesService, type SalesUsersService, type SalesCustomersService, type FlexibleOrdersService, type StripeService, type MercadoPagoService, type VendorPaymentsService, type PurchasesService } from './services/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the Sales block.
|
|
@@ -41,6 +41,8 @@ export interface SalesBlock {
|
|
|
41
41
|
vendorPayments: VendorPaymentsService;
|
|
42
42
|
/** Gateway-agnostic single-call purchases (Order + Payment + Subscription) */
|
|
43
43
|
purchases: PurchasesService;
|
|
44
|
+
/** Ping the service health endpoint */
|
|
45
|
+
health(): Promise<HealthCheckResponse>;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Create the Sales block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales.block.d.ts","sourceRoot":"","sources":["../../../src/lib/sales.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAA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