@vivoa/plugin-sdk 0.6.1 → 0.6.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.
- package/dist/index.d.mts +84 -4
- package/dist/index.d.ts +84 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -860,10 +860,14 @@ interface AnalyticsMoney {
|
|
|
860
860
|
}
|
|
861
861
|
/** A single line item attached to an ecommerce event. */
|
|
862
862
|
interface AnalyticsItem {
|
|
863
|
-
/** Product
|
|
863
|
+
/** Product id as the store knows it (Meta `content_ids`, GA4 `item_id`). */
|
|
864
864
|
id: string;
|
|
865
|
+
/** Variant id for catalog-level granularity, when the line resolves one. */
|
|
866
|
+
variantId?: string | null;
|
|
865
867
|
name?: string;
|
|
866
868
|
sku?: string | null;
|
|
869
|
+
/** Brand for catalog feeds that key on it. */
|
|
870
|
+
brand?: string | null;
|
|
867
871
|
quantity?: number;
|
|
868
872
|
price?: AnalyticsMoney;
|
|
869
873
|
category?: string | null;
|
|
@@ -874,21 +878,91 @@ interface AnalyticsItem {
|
|
|
874
878
|
* about a given name simply ignores it.
|
|
875
879
|
*/
|
|
876
880
|
type AnalyticsEventName = 'page_view' | 'view_item' | 'add_to_cart' | 'remove_from_cart' | 'begin_checkout' | 'purchase';
|
|
881
|
+
/**
|
|
882
|
+
* Where the action physically happened. Maps to Meta `action_source`; other
|
|
883
|
+
* providers ignore it. Defaults to `website` when the host omits it.
|
|
884
|
+
*/
|
|
885
|
+
type AnalyticsActionSource = 'website' | 'app' | 'server' | 'phone_call' | 'chat' | 'email' | 'physical_store' | 'other';
|
|
886
|
+
/**
|
|
887
|
+
* Identity + match-quality signals. EVERYTHING here is optional — the host
|
|
888
|
+
* populates whatever it can resolve for the event in scope.
|
|
889
|
+
*
|
|
890
|
+
* @rule The `*Sha256` fields arrive ALREADY hashed by the host (SHA256 hex of
|
|
891
|
+
* the normalized value: lowercased + trimmed; phone in E.164 digits).
|
|
892
|
+
* The plugin NEVER receives raw PII. `externalId`, `clientIpAddress`,
|
|
893
|
+
* `clientUserAgent` and the click ids are the exception — providers
|
|
894
|
+
* require them PLAIN.
|
|
895
|
+
*/
|
|
896
|
+
interface AnalyticsUserData {
|
|
897
|
+
emailSha256?: string | null;
|
|
898
|
+
phoneSha256?: string | null;
|
|
899
|
+
firstNameSha256?: string | null;
|
|
900
|
+
lastNameSha256?: string | null;
|
|
901
|
+
citySha256?: string | null;
|
|
902
|
+
stateSha256?: string | null;
|
|
903
|
+
zipSha256?: string | null;
|
|
904
|
+
countrySha256?: string | null;
|
|
905
|
+
genderSha256?: string | null;
|
|
906
|
+
/** Date of birth, YYYYMMDD normalized then SHA256. */
|
|
907
|
+
dobSha256?: string | null;
|
|
908
|
+
/** Store customer/user id — Meta `external_id` (not hashed by spec). */
|
|
909
|
+
externalId?: string | null;
|
|
910
|
+
/** Plain IPv4/IPv6 — never hashed (geo match). */
|
|
911
|
+
clientIpAddress?: string | null;
|
|
912
|
+
/** Plain browser UA — never hashed (device match). */
|
|
913
|
+
clientUserAgent?: string | null;
|
|
914
|
+
/** Meta browser cookie `_fbp`. */
|
|
915
|
+
fbp?: string | null;
|
|
916
|
+
/** Meta click id `_fbc`. */
|
|
917
|
+
fbc?: string | null;
|
|
918
|
+
/** Google Ads click id. */
|
|
919
|
+
gclid?: string | null;
|
|
920
|
+
/** TikTok click id. */
|
|
921
|
+
ttclid?: string | null;
|
|
922
|
+
}
|
|
923
|
+
/** Marketing attribution captured at the session that led to the event. */
|
|
924
|
+
interface AnalyticsUtm {
|
|
925
|
+
source?: string | null;
|
|
926
|
+
medium?: string | null;
|
|
927
|
+
campaign?: string | null;
|
|
928
|
+
term?: string | null;
|
|
929
|
+
content?: string | null;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Consent signals the host resolved for this event. Providers that honor
|
|
933
|
+
* consent (Meta LDU, Google Consent Mode) gate on it; others ignore it.
|
|
934
|
+
*/
|
|
935
|
+
interface AnalyticsConsent {
|
|
936
|
+
adStorage?: boolean;
|
|
937
|
+
adUserData?: boolean;
|
|
938
|
+
adPersonalization?: boolean;
|
|
939
|
+
}
|
|
877
940
|
/**
|
|
878
941
|
* Normalized analytics event. The host builds this from a DomainEvent and hands
|
|
879
942
|
* it to every active analytics adapter. The adapter translates it to its own
|
|
880
|
-
* wire format (GA4 event, Meta event, ...).
|
|
943
|
+
* wire format (GA4 event, Meta event, ...). See the @rule SUPERSET note at the
|
|
944
|
+
* top of the module: this is the superset of what Meta CAPI needs.
|
|
881
945
|
*/
|
|
882
946
|
interface AnalyticsEvent {
|
|
883
947
|
name: AnalyticsEventName;
|
|
884
948
|
/** ISO-8601 instant the underlying action happened. */
|
|
885
949
|
occurredAt: string;
|
|
950
|
+
/**
|
|
951
|
+
* Stable id for cross-channel deduplication against the browser pixel (Meta
|
|
952
|
+
* `event_id`). For `purchase` the host sets it to the order id so the pixel
|
|
953
|
+
* and the server event collapse into one.
|
|
954
|
+
*/
|
|
955
|
+
eventId?: string | null;
|
|
956
|
+
/** Where the action happened — Meta `action_source`. Defaults to `website`. */
|
|
957
|
+
actionSource?: AnalyticsActionSource;
|
|
886
958
|
/**
|
|
887
959
|
* Pseudonymous client identity for sessionization (maps to GA4 `client_id`
|
|
888
960
|
* / Meta `external_id`). Null when the host cannot resolve a stable id.
|
|
889
961
|
*/
|
|
890
962
|
clientId?: string | null;
|
|
891
963
|
sessionId?: string | null;
|
|
964
|
+
/** Hashed identity + client signals + click ids. See {@link AnalyticsUserData}. */
|
|
965
|
+
user?: AnalyticsUserData;
|
|
892
966
|
/** Monetary value for value-bearing events (purchase, begin_checkout). */
|
|
893
967
|
value?: AnalyticsMoney | null;
|
|
894
968
|
/** Order id for `purchase` — providers dedupe transactions on it. */
|
|
@@ -896,7 +970,13 @@ interface AnalyticsEvent {
|
|
|
896
970
|
items?: AnalyticsItem[];
|
|
897
971
|
/** Page context for `page_view`. */
|
|
898
972
|
pageLocation?: string | null;
|
|
973
|
+
/** Referring URL, when the host knows it. */
|
|
974
|
+
pageReferrer?: string | null;
|
|
899
975
|
pageTitle?: string | null;
|
|
976
|
+
/** Marketing attribution for the session that produced the event. */
|
|
977
|
+
utm?: AnalyticsUtm;
|
|
978
|
+
/** Consent signals resolved by the host for this event. */
|
|
979
|
+
consent?: AnalyticsConsent;
|
|
900
980
|
/** Extra params forwarded verbatim as custom dimensions. */
|
|
901
981
|
params?: Record<string, unknown>;
|
|
902
982
|
}
|
|
@@ -1091,7 +1171,7 @@ declare function checkPermissions(required: string[], grantedRaw: string[]): Per
|
|
|
1091
1171
|
* - MINOR: additive (new optional fields, new tokens) — backwards compatible.
|
|
1092
1172
|
* - PATCH: docs/fixes with zero shape changes.
|
|
1093
1173
|
*/
|
|
1094
|
-
declare const SDK_VERSION = "0.6.
|
|
1174
|
+
declare const SDK_VERSION = "0.6.2";
|
|
1095
1175
|
/**
|
|
1096
1176
|
* True when a plugin built against `pluginSdkVersion` can run on a host that
|
|
1097
1177
|
* ships `hostSdkVersion`. Rule: same major, host minor >= plugin minor.
|
|
@@ -1100,4 +1180,4 @@ declare const SDK_VERSION = "0.6.1";
|
|
|
1100
1180
|
*/
|
|
1101
1181
|
declare function isSdkCompatible(pluginSdkVersion: string, hostSdkVersion: string): boolean;
|
|
1102
1182
|
|
|
1103
|
-
export { ANALYTICS_PLUGIN_TOKEN, type AccordionBlock, type AccordionSection, type ActionBlock, ActionVariant, type AnalyticsEvent, type AnalyticsEventName, AnalyticsFeature, type AnalyticsItem, type AnalyticsMoney, type AnalyticsPluginConfig, type AnalyticsStaticConfig, type BannerBlock, type Block, type BlockBase, BlockType, type CalloutBlock, type Capability, CapabilityKind, type CardBlock, type CodConfig, type CodFeeConfig, CodFeeType, type ConditionalBlock, type ConditionalEquals, type ConditionalWhen, ConfigScope, type ConfigurablePlugin, type CopyFieldBlock, type CreateShipmentParams, type DispatchContext, type DividerBlock, type DomainEventHandler, type DomainEventName, type FieldBlock, type FieldDefinition, type FieldDependsOn, type FieldMap, type FieldOption, FieldType, FieldVariant, GatewayEnvironment, type GatewayStaticConfig, type GroupBlock, type HostApi, type HttpClient, type HttpRequest, type HttpResponse, type IAnalyticsPlugin, type IPaymentPlugin, type IPlugin, type IShippingPlugin, type ISuppliersPlugin, type InlineRowBlock, type KeyValueBlock, type KeyValueRow, LayoutMode, type Logger, type MarkdownBlock, MessageVariant, PAYMENT_PLUGIN_TOKEN, type PaymentCard, type PaymentCustomer, type PaymentGatewayCode, type PaymentPayload, type PaymentPluginConfig, type PaymentResult, type PaymentVerifyPayload, type Permission, type PermissionCheck, type PlaceSupplierOrderInput, type Plugin, type PluginActionContext, type PluginActionResult, type PluginConfigField, type PluginConfigFieldDependency, type PluginConfigResult, type PluginConfigValidation, type PluginFactory, type PluginManifest, PluginType, type RepeaterBlock, RepeaterSource, SDK_VERSION, SHIPPING_PLUGIN_TOKEN, SUPPLIERS_PLUGIN_TOKEN, type SecretStore, type SelectOption, type SequenceStore, type SetupAction, type SetupLayout, type SetupLayoutValidation, type SetupStep, type ShipmentAddress, type ShipmentParcel, type ShipmentResult, type ShippingDefaultConfig, ShippingFeature, type ShippingPluginConfig, type ShippingQuote, type ShippingQuoteParams, type ShippingStaticConfig, StepStatusFrom, type StepStatusFromAction, type StepStatusFromFields, type StepStatusSource, type StorageBroker, type SupplierCatalogQuery, type SupplierFulfillmentEvent, type SupplierListing, type SupplierListingAttribute, type SupplierListingPage, type SupplierListingVariant, type SupplierMoney, type SupplierOrderAddressLevel, type SupplierOrderCustomer, type SupplierOrderLine, type SupplierOrderResult, type SupplierOrderStatus, type SupplierShipTo, type SupplierStock, type SuppliersDefaultConfig, SuppliersFeature, type SuppliersPluginConfig, type SuppliersStaticConfig, type TabItem, type TabsBlock, type ToggleBlock, type TrackingEvent, TransactionStatus, type WebhookSignatureResult, analyticsCapability, capability, checkPermissions, createPluginConfig, crossValidateSetupLayout, definePlugin, field, isConfigurablePlugin, isPermissionGranted, isPluginFactory, isSdkCompatible, parsePermission, paymentCapability, shippingCapability, suppliersCapability, validateSetupLayout };
|
|
1183
|
+
export { ANALYTICS_PLUGIN_TOKEN, type AccordionBlock, type AccordionSection, type ActionBlock, ActionVariant, type AnalyticsActionSource, type AnalyticsConsent, type AnalyticsEvent, type AnalyticsEventName, AnalyticsFeature, type AnalyticsItem, type AnalyticsMoney, type AnalyticsPluginConfig, type AnalyticsStaticConfig, type AnalyticsUserData, type AnalyticsUtm, type BannerBlock, type Block, type BlockBase, BlockType, type CalloutBlock, type Capability, CapabilityKind, type CardBlock, type CodConfig, type CodFeeConfig, CodFeeType, type ConditionalBlock, type ConditionalEquals, type ConditionalWhen, ConfigScope, type ConfigurablePlugin, type CopyFieldBlock, type CreateShipmentParams, type DispatchContext, type DividerBlock, type DomainEventHandler, type DomainEventName, type FieldBlock, type FieldDefinition, type FieldDependsOn, type FieldMap, type FieldOption, FieldType, FieldVariant, GatewayEnvironment, type GatewayStaticConfig, type GroupBlock, type HostApi, type HttpClient, type HttpRequest, type HttpResponse, type IAnalyticsPlugin, type IPaymentPlugin, type IPlugin, type IShippingPlugin, type ISuppliersPlugin, type InlineRowBlock, type KeyValueBlock, type KeyValueRow, LayoutMode, type Logger, type MarkdownBlock, MessageVariant, PAYMENT_PLUGIN_TOKEN, type PaymentCard, type PaymentCustomer, type PaymentGatewayCode, type PaymentPayload, type PaymentPluginConfig, type PaymentResult, type PaymentVerifyPayload, type Permission, type PermissionCheck, type PlaceSupplierOrderInput, type Plugin, type PluginActionContext, type PluginActionResult, type PluginConfigField, type PluginConfigFieldDependency, type PluginConfigResult, type PluginConfigValidation, type PluginFactory, type PluginManifest, PluginType, type RepeaterBlock, RepeaterSource, SDK_VERSION, SHIPPING_PLUGIN_TOKEN, SUPPLIERS_PLUGIN_TOKEN, type SecretStore, type SelectOption, type SequenceStore, type SetupAction, type SetupLayout, type SetupLayoutValidation, type SetupStep, type ShipmentAddress, type ShipmentParcel, type ShipmentResult, type ShippingDefaultConfig, ShippingFeature, type ShippingPluginConfig, type ShippingQuote, type ShippingQuoteParams, type ShippingStaticConfig, StepStatusFrom, type StepStatusFromAction, type StepStatusFromFields, type StepStatusSource, type StorageBroker, type SupplierCatalogQuery, type SupplierFulfillmentEvent, type SupplierListing, type SupplierListingAttribute, type SupplierListingPage, type SupplierListingVariant, type SupplierMoney, type SupplierOrderAddressLevel, type SupplierOrderCustomer, type SupplierOrderLine, type SupplierOrderResult, type SupplierOrderStatus, type SupplierShipTo, type SupplierStock, type SuppliersDefaultConfig, SuppliersFeature, type SuppliersPluginConfig, type SuppliersStaticConfig, type TabItem, type TabsBlock, type ToggleBlock, type TrackingEvent, TransactionStatus, type WebhookSignatureResult, analyticsCapability, capability, checkPermissions, createPluginConfig, crossValidateSetupLayout, definePlugin, field, isConfigurablePlugin, isPermissionGranted, isPluginFactory, isSdkCompatible, parsePermission, paymentCapability, shippingCapability, suppliersCapability, validateSetupLayout };
|
package/dist/index.d.ts
CHANGED
|
@@ -860,10 +860,14 @@ interface AnalyticsMoney {
|
|
|
860
860
|
}
|
|
861
861
|
/** A single line item attached to an ecommerce event. */
|
|
862
862
|
interface AnalyticsItem {
|
|
863
|
-
/** Product
|
|
863
|
+
/** Product id as the store knows it (Meta `content_ids`, GA4 `item_id`). */
|
|
864
864
|
id: string;
|
|
865
|
+
/** Variant id for catalog-level granularity, when the line resolves one. */
|
|
866
|
+
variantId?: string | null;
|
|
865
867
|
name?: string;
|
|
866
868
|
sku?: string | null;
|
|
869
|
+
/** Brand for catalog feeds that key on it. */
|
|
870
|
+
brand?: string | null;
|
|
867
871
|
quantity?: number;
|
|
868
872
|
price?: AnalyticsMoney;
|
|
869
873
|
category?: string | null;
|
|
@@ -874,21 +878,91 @@ interface AnalyticsItem {
|
|
|
874
878
|
* about a given name simply ignores it.
|
|
875
879
|
*/
|
|
876
880
|
type AnalyticsEventName = 'page_view' | 'view_item' | 'add_to_cart' | 'remove_from_cart' | 'begin_checkout' | 'purchase';
|
|
881
|
+
/**
|
|
882
|
+
* Where the action physically happened. Maps to Meta `action_source`; other
|
|
883
|
+
* providers ignore it. Defaults to `website` when the host omits it.
|
|
884
|
+
*/
|
|
885
|
+
type AnalyticsActionSource = 'website' | 'app' | 'server' | 'phone_call' | 'chat' | 'email' | 'physical_store' | 'other';
|
|
886
|
+
/**
|
|
887
|
+
* Identity + match-quality signals. EVERYTHING here is optional — the host
|
|
888
|
+
* populates whatever it can resolve for the event in scope.
|
|
889
|
+
*
|
|
890
|
+
* @rule The `*Sha256` fields arrive ALREADY hashed by the host (SHA256 hex of
|
|
891
|
+
* the normalized value: lowercased + trimmed; phone in E.164 digits).
|
|
892
|
+
* The plugin NEVER receives raw PII. `externalId`, `clientIpAddress`,
|
|
893
|
+
* `clientUserAgent` and the click ids are the exception — providers
|
|
894
|
+
* require them PLAIN.
|
|
895
|
+
*/
|
|
896
|
+
interface AnalyticsUserData {
|
|
897
|
+
emailSha256?: string | null;
|
|
898
|
+
phoneSha256?: string | null;
|
|
899
|
+
firstNameSha256?: string | null;
|
|
900
|
+
lastNameSha256?: string | null;
|
|
901
|
+
citySha256?: string | null;
|
|
902
|
+
stateSha256?: string | null;
|
|
903
|
+
zipSha256?: string | null;
|
|
904
|
+
countrySha256?: string | null;
|
|
905
|
+
genderSha256?: string | null;
|
|
906
|
+
/** Date of birth, YYYYMMDD normalized then SHA256. */
|
|
907
|
+
dobSha256?: string | null;
|
|
908
|
+
/** Store customer/user id — Meta `external_id` (not hashed by spec). */
|
|
909
|
+
externalId?: string | null;
|
|
910
|
+
/** Plain IPv4/IPv6 — never hashed (geo match). */
|
|
911
|
+
clientIpAddress?: string | null;
|
|
912
|
+
/** Plain browser UA — never hashed (device match). */
|
|
913
|
+
clientUserAgent?: string | null;
|
|
914
|
+
/** Meta browser cookie `_fbp`. */
|
|
915
|
+
fbp?: string | null;
|
|
916
|
+
/** Meta click id `_fbc`. */
|
|
917
|
+
fbc?: string | null;
|
|
918
|
+
/** Google Ads click id. */
|
|
919
|
+
gclid?: string | null;
|
|
920
|
+
/** TikTok click id. */
|
|
921
|
+
ttclid?: string | null;
|
|
922
|
+
}
|
|
923
|
+
/** Marketing attribution captured at the session that led to the event. */
|
|
924
|
+
interface AnalyticsUtm {
|
|
925
|
+
source?: string | null;
|
|
926
|
+
medium?: string | null;
|
|
927
|
+
campaign?: string | null;
|
|
928
|
+
term?: string | null;
|
|
929
|
+
content?: string | null;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Consent signals the host resolved for this event. Providers that honor
|
|
933
|
+
* consent (Meta LDU, Google Consent Mode) gate on it; others ignore it.
|
|
934
|
+
*/
|
|
935
|
+
interface AnalyticsConsent {
|
|
936
|
+
adStorage?: boolean;
|
|
937
|
+
adUserData?: boolean;
|
|
938
|
+
adPersonalization?: boolean;
|
|
939
|
+
}
|
|
877
940
|
/**
|
|
878
941
|
* Normalized analytics event. The host builds this from a DomainEvent and hands
|
|
879
942
|
* it to every active analytics adapter. The adapter translates it to its own
|
|
880
|
-
* wire format (GA4 event, Meta event, ...).
|
|
943
|
+
* wire format (GA4 event, Meta event, ...). See the @rule SUPERSET note at the
|
|
944
|
+
* top of the module: this is the superset of what Meta CAPI needs.
|
|
881
945
|
*/
|
|
882
946
|
interface AnalyticsEvent {
|
|
883
947
|
name: AnalyticsEventName;
|
|
884
948
|
/** ISO-8601 instant the underlying action happened. */
|
|
885
949
|
occurredAt: string;
|
|
950
|
+
/**
|
|
951
|
+
* Stable id for cross-channel deduplication against the browser pixel (Meta
|
|
952
|
+
* `event_id`). For `purchase` the host sets it to the order id so the pixel
|
|
953
|
+
* and the server event collapse into one.
|
|
954
|
+
*/
|
|
955
|
+
eventId?: string | null;
|
|
956
|
+
/** Where the action happened — Meta `action_source`. Defaults to `website`. */
|
|
957
|
+
actionSource?: AnalyticsActionSource;
|
|
886
958
|
/**
|
|
887
959
|
* Pseudonymous client identity for sessionization (maps to GA4 `client_id`
|
|
888
960
|
* / Meta `external_id`). Null when the host cannot resolve a stable id.
|
|
889
961
|
*/
|
|
890
962
|
clientId?: string | null;
|
|
891
963
|
sessionId?: string | null;
|
|
964
|
+
/** Hashed identity + client signals + click ids. See {@link AnalyticsUserData}. */
|
|
965
|
+
user?: AnalyticsUserData;
|
|
892
966
|
/** Monetary value for value-bearing events (purchase, begin_checkout). */
|
|
893
967
|
value?: AnalyticsMoney | null;
|
|
894
968
|
/** Order id for `purchase` — providers dedupe transactions on it. */
|
|
@@ -896,7 +970,13 @@ interface AnalyticsEvent {
|
|
|
896
970
|
items?: AnalyticsItem[];
|
|
897
971
|
/** Page context for `page_view`. */
|
|
898
972
|
pageLocation?: string | null;
|
|
973
|
+
/** Referring URL, when the host knows it. */
|
|
974
|
+
pageReferrer?: string | null;
|
|
899
975
|
pageTitle?: string | null;
|
|
976
|
+
/** Marketing attribution for the session that produced the event. */
|
|
977
|
+
utm?: AnalyticsUtm;
|
|
978
|
+
/** Consent signals resolved by the host for this event. */
|
|
979
|
+
consent?: AnalyticsConsent;
|
|
900
980
|
/** Extra params forwarded verbatim as custom dimensions. */
|
|
901
981
|
params?: Record<string, unknown>;
|
|
902
982
|
}
|
|
@@ -1091,7 +1171,7 @@ declare function checkPermissions(required: string[], grantedRaw: string[]): Per
|
|
|
1091
1171
|
* - MINOR: additive (new optional fields, new tokens) — backwards compatible.
|
|
1092
1172
|
* - PATCH: docs/fixes with zero shape changes.
|
|
1093
1173
|
*/
|
|
1094
|
-
declare const SDK_VERSION = "0.6.
|
|
1174
|
+
declare const SDK_VERSION = "0.6.2";
|
|
1095
1175
|
/**
|
|
1096
1176
|
* True when a plugin built against `pluginSdkVersion` can run on a host that
|
|
1097
1177
|
* ships `hostSdkVersion`. Rule: same major, host minor >= plugin minor.
|
|
@@ -1100,4 +1180,4 @@ declare const SDK_VERSION = "0.6.1";
|
|
|
1100
1180
|
*/
|
|
1101
1181
|
declare function isSdkCompatible(pluginSdkVersion: string, hostSdkVersion: string): boolean;
|
|
1102
1182
|
|
|
1103
|
-
export { ANALYTICS_PLUGIN_TOKEN, type AccordionBlock, type AccordionSection, type ActionBlock, ActionVariant, type AnalyticsEvent, type AnalyticsEventName, AnalyticsFeature, type AnalyticsItem, type AnalyticsMoney, type AnalyticsPluginConfig, type AnalyticsStaticConfig, type BannerBlock, type Block, type BlockBase, BlockType, type CalloutBlock, type Capability, CapabilityKind, type CardBlock, type CodConfig, type CodFeeConfig, CodFeeType, type ConditionalBlock, type ConditionalEquals, type ConditionalWhen, ConfigScope, type ConfigurablePlugin, type CopyFieldBlock, type CreateShipmentParams, type DispatchContext, type DividerBlock, type DomainEventHandler, type DomainEventName, type FieldBlock, type FieldDefinition, type FieldDependsOn, type FieldMap, type FieldOption, FieldType, FieldVariant, GatewayEnvironment, type GatewayStaticConfig, type GroupBlock, type HostApi, type HttpClient, type HttpRequest, type HttpResponse, type IAnalyticsPlugin, type IPaymentPlugin, type IPlugin, type IShippingPlugin, type ISuppliersPlugin, type InlineRowBlock, type KeyValueBlock, type KeyValueRow, LayoutMode, type Logger, type MarkdownBlock, MessageVariant, PAYMENT_PLUGIN_TOKEN, type PaymentCard, type PaymentCustomer, type PaymentGatewayCode, type PaymentPayload, type PaymentPluginConfig, type PaymentResult, type PaymentVerifyPayload, type Permission, type PermissionCheck, type PlaceSupplierOrderInput, type Plugin, type PluginActionContext, type PluginActionResult, type PluginConfigField, type PluginConfigFieldDependency, type PluginConfigResult, type PluginConfigValidation, type PluginFactory, type PluginManifest, PluginType, type RepeaterBlock, RepeaterSource, SDK_VERSION, SHIPPING_PLUGIN_TOKEN, SUPPLIERS_PLUGIN_TOKEN, type SecretStore, type SelectOption, type SequenceStore, type SetupAction, type SetupLayout, type SetupLayoutValidation, type SetupStep, type ShipmentAddress, type ShipmentParcel, type ShipmentResult, type ShippingDefaultConfig, ShippingFeature, type ShippingPluginConfig, type ShippingQuote, type ShippingQuoteParams, type ShippingStaticConfig, StepStatusFrom, type StepStatusFromAction, type StepStatusFromFields, type StepStatusSource, type StorageBroker, type SupplierCatalogQuery, type SupplierFulfillmentEvent, type SupplierListing, type SupplierListingAttribute, type SupplierListingPage, type SupplierListingVariant, type SupplierMoney, type SupplierOrderAddressLevel, type SupplierOrderCustomer, type SupplierOrderLine, type SupplierOrderResult, type SupplierOrderStatus, type SupplierShipTo, type SupplierStock, type SuppliersDefaultConfig, SuppliersFeature, type SuppliersPluginConfig, type SuppliersStaticConfig, type TabItem, type TabsBlock, type ToggleBlock, type TrackingEvent, TransactionStatus, type WebhookSignatureResult, analyticsCapability, capability, checkPermissions, createPluginConfig, crossValidateSetupLayout, definePlugin, field, isConfigurablePlugin, isPermissionGranted, isPluginFactory, isSdkCompatible, parsePermission, paymentCapability, shippingCapability, suppliersCapability, validateSetupLayout };
|
|
1183
|
+
export { ANALYTICS_PLUGIN_TOKEN, type AccordionBlock, type AccordionSection, type ActionBlock, ActionVariant, type AnalyticsActionSource, type AnalyticsConsent, type AnalyticsEvent, type AnalyticsEventName, AnalyticsFeature, type AnalyticsItem, type AnalyticsMoney, type AnalyticsPluginConfig, type AnalyticsStaticConfig, type AnalyticsUserData, type AnalyticsUtm, type BannerBlock, type Block, type BlockBase, BlockType, type CalloutBlock, type Capability, CapabilityKind, type CardBlock, type CodConfig, type CodFeeConfig, CodFeeType, type ConditionalBlock, type ConditionalEquals, type ConditionalWhen, ConfigScope, type ConfigurablePlugin, type CopyFieldBlock, type CreateShipmentParams, type DispatchContext, type DividerBlock, type DomainEventHandler, type DomainEventName, type FieldBlock, type FieldDefinition, type FieldDependsOn, type FieldMap, type FieldOption, FieldType, FieldVariant, GatewayEnvironment, type GatewayStaticConfig, type GroupBlock, type HostApi, type HttpClient, type HttpRequest, type HttpResponse, type IAnalyticsPlugin, type IPaymentPlugin, type IPlugin, type IShippingPlugin, type ISuppliersPlugin, type InlineRowBlock, type KeyValueBlock, type KeyValueRow, LayoutMode, type Logger, type MarkdownBlock, MessageVariant, PAYMENT_PLUGIN_TOKEN, type PaymentCard, type PaymentCustomer, type PaymentGatewayCode, type PaymentPayload, type PaymentPluginConfig, type PaymentResult, type PaymentVerifyPayload, type Permission, type PermissionCheck, type PlaceSupplierOrderInput, type Plugin, type PluginActionContext, type PluginActionResult, type PluginConfigField, type PluginConfigFieldDependency, type PluginConfigResult, type PluginConfigValidation, type PluginFactory, type PluginManifest, PluginType, type RepeaterBlock, RepeaterSource, SDK_VERSION, SHIPPING_PLUGIN_TOKEN, SUPPLIERS_PLUGIN_TOKEN, type SecretStore, type SelectOption, type SequenceStore, type SetupAction, type SetupLayout, type SetupLayoutValidation, type SetupStep, type ShipmentAddress, type ShipmentParcel, type ShipmentResult, type ShippingDefaultConfig, ShippingFeature, type ShippingPluginConfig, type ShippingQuote, type ShippingQuoteParams, type ShippingStaticConfig, StepStatusFrom, type StepStatusFromAction, type StepStatusFromFields, type StepStatusSource, type StorageBroker, type SupplierCatalogQuery, type SupplierFulfillmentEvent, type SupplierListing, type SupplierListingAttribute, type SupplierListingPage, type SupplierListingVariant, type SupplierMoney, type SupplierOrderAddressLevel, type SupplierOrderCustomer, type SupplierOrderLine, type SupplierOrderResult, type SupplierOrderStatus, type SupplierShipTo, type SupplierStock, type SuppliersDefaultConfig, SuppliersFeature, type SuppliersPluginConfig, type SuppliersStaticConfig, type TabItem, type TabsBlock, type ToggleBlock, type TrackingEvent, TransactionStatus, type WebhookSignatureResult, analyticsCapability, capability, checkPermissions, createPluginConfig, crossValidateSetupLayout, definePlugin, field, isConfigurablePlugin, isPermissionGranted, isPluginFactory, isSdkCompatible, parsePermission, paymentCapability, shippingCapability, suppliersCapability, validateSetupLayout };
|
package/dist/index.js
CHANGED
|
@@ -544,7 +544,7 @@ function checkPermissions(required, grantedRaw) {
|
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
// src/version.ts
|
|
547
|
-
var SDK_VERSION = "0.6.
|
|
547
|
+
var SDK_VERSION = "0.6.2";
|
|
548
548
|
function isSdkCompatible(pluginSdkVersion, hostSdkVersion) {
|
|
549
549
|
const parse = (v) => {
|
|
550
550
|
const m = /^(\d+)\.(\d+)\.(\d+)/.exec(v);
|
package/dist/index.mjs
CHANGED
|
@@ -502,7 +502,7 @@ function checkPermissions(required, grantedRaw) {
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
// src/version.ts
|
|
505
|
-
var SDK_VERSION = "0.6.
|
|
505
|
+
var SDK_VERSION = "0.6.2";
|
|
506
506
|
function isSdkCompatible(pluginSdkVersion, hostSdkVersion) {
|
|
507
507
|
const parse = (v) => {
|
|
508
508
|
const m = /^(\d+)\.(\d+)\.(\d+)/.exec(v);
|