@wix/auto_sdk_referral_programs 1.0.34 → 1.0.35
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +15 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +14 -4
- package/build/cjs/index.typings.js +15 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +14 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +14 -4
- package/build/es/index.typings.mjs +14 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -3
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +15 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +14 -4
- package/build/internal/cjs/index.typings.js +15 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -3
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +14 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +14 -4
- package/build/internal/es/index.typings.mjs +14 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -3
- package/package.json +2 -2
|
@@ -67,7 +67,7 @@ interface Reward extends RewardOptionsOneOf {
|
|
|
67
67
|
/** Options for the Loyalty points reward type. */
|
|
68
68
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
69
69
|
/** Type of the reward. */
|
|
70
|
-
type?:
|
|
70
|
+
type?: RewardTypeWithLiterals;
|
|
71
71
|
}
|
|
72
72
|
/** @oneof */
|
|
73
73
|
interface RewardOptionsOneOf {
|
|
@@ -76,7 +76,7 @@ interface RewardOptionsOneOf {
|
|
|
76
76
|
/** Options for the Loyalty points reward type. */
|
|
77
77
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
78
78
|
}
|
|
79
|
-
declare enum
|
|
79
|
+
declare enum RewardType {
|
|
80
80
|
/** Unknown reward type. */
|
|
81
81
|
UNKNOWN = "UNKNOWN",
|
|
82
82
|
/** Coupon reward type. */
|
|
@@ -87,7 +87,7 @@ declare enum Type {
|
|
|
87
87
|
NOTHING = "NOTHING"
|
|
88
88
|
}
|
|
89
89
|
/** @enumType */
|
|
90
|
-
type
|
|
90
|
+
type RewardTypeWithLiterals = RewardType | 'UNKNOWN' | 'COUPON' | 'LOYALTY_POINTS' | 'NOTHING';
|
|
91
91
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
92
92
|
/** Options for fixed amount discount. */
|
|
93
93
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
@@ -1489,6 +1489,16 @@ interface RecurringChargeAttemptFailed {
|
|
|
1489
1489
|
/** Subscription for which the recurring charge attempt has failed. */
|
|
1490
1490
|
subscription?: Subscription;
|
|
1491
1491
|
}
|
|
1492
|
+
interface ReferralAppInstallation {
|
|
1493
|
+
type?: TypeWithLiterals;
|
|
1494
|
+
}
|
|
1495
|
+
declare enum Type {
|
|
1496
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
1497
|
+
INSTALLED = "INSTALLED",
|
|
1498
|
+
DELETED = "DELETED"
|
|
1499
|
+
}
|
|
1500
|
+
/** @enumType */
|
|
1501
|
+
type TypeWithLiterals = Type | 'UNSPECIFIED' | 'INSTALLED' | 'DELETED';
|
|
1492
1502
|
interface MessageEnvelope {
|
|
1493
1503
|
/**
|
|
1494
1504
|
* App instance ID.
|
|
@@ -1719,4 +1729,4 @@ interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
|
1719
1729
|
*/
|
|
1720
1730
|
declare function getReferralProgramPremiumFeatures(): Promise<NonNullablePaths<GetReferralProgramPremiumFeaturesResponse, `referralProgram`>>;
|
|
1721
1731
|
|
|
1722
|
-
export { type AISocialMediaPostSuggestion, Action, type ActionEvent, type ActionWithLiterals, type ActivateReferralProgramRequest, type ActivateReferralProgramResponse, App, type AppWithLiterals, type Asset, type BaseEventMetadata, type BillingReference, type BulkGetReferralProgramRequest, type BulkGetReferralProgramResponse, type CancellationDetails, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type Coupon, type CouponDiscountTypeOptionsOneOf, type CouponScope, type CouponScopeOrMinSubtotalOneOf, type Cycle, type CycleCycleSelectorOneOf, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Emails, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FixedAmountDiscount, type GenerateAISocialMediaPostsSuggestionsRequest, type GenerateAISocialMediaPostsSuggestionsResponse, type GenerateAiSocialMediaPostsSuggestionsOptions, type GetAISocialMediaPostsSuggestionsRequest, type GetAISocialMediaPostsSuggestionsResponse, type GetAiSocialMediaPostsSuggestionsOptions, type GetReferralProgramPremiumFeaturesRequest, type GetReferralProgramPremiumFeaturesResponse, type GetReferralProgramRequest, type GetReferralProgramResponse, type Group, type HtmlSitePublished, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalUnit, type IntervalUnitWithLiterals, type LoyaltyPoints, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type OneTime, type Page, type PauseReferralProgramRequest, type PauseReferralProgramResponse, type PercentageDiscount, type PicassoAssigned, type PicassoUnassigned, type PremiumFeatures, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductPriceIncreaseData, type ProgramInSite, ProgramStatus, type ProgramStatusWithLiterals, type ProgramUpdatedEnvelope, ProviderName, type ProviderNameWithLiterals, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, type ReferralProgram, type RestoreInfo, type Reward, type RewardOptionsOneOf, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, State, type StateWithLiterals, type StudioAssigned, type StudioUnassigned, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, Type, type TypeWithLiterals, UnassignReason, type UnassignReasonWithLiterals, type UpdateReferralProgramRequest, type UpdateReferralProgramResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, activateReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
|
|
1732
|
+
export { type AISocialMediaPostSuggestion, Action, type ActionEvent, type ActionWithLiterals, type ActivateReferralProgramRequest, type ActivateReferralProgramResponse, App, type AppWithLiterals, type Asset, type BaseEventMetadata, type BillingReference, type BulkGetReferralProgramRequest, type BulkGetReferralProgramResponse, type CancellationDetails, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type Coupon, type CouponDiscountTypeOptionsOneOf, type CouponScope, type CouponScopeOrMinSubtotalOneOf, type Cycle, type CycleCycleSelectorOneOf, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Emails, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FixedAmountDiscount, type GenerateAISocialMediaPostsSuggestionsRequest, type GenerateAISocialMediaPostsSuggestionsResponse, type GenerateAiSocialMediaPostsSuggestionsOptions, type GetAISocialMediaPostsSuggestionsRequest, type GetAISocialMediaPostsSuggestionsResponse, type GetAiSocialMediaPostsSuggestionsOptions, type GetReferralProgramPremiumFeaturesRequest, type GetReferralProgramPremiumFeaturesResponse, type GetReferralProgramRequest, type GetReferralProgramResponse, type Group, type HtmlSitePublished, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalUnit, type IntervalUnitWithLiterals, type LoyaltyPoints, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type OneTime, type Page, type PauseReferralProgramRequest, type PauseReferralProgramResponse, type PercentageDiscount, type PicassoAssigned, type PicassoUnassigned, type PremiumFeatures, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductPriceIncreaseData, type ProgramInSite, ProgramStatus, type ProgramStatusWithLiterals, type ProgramUpdatedEnvelope, ProviderName, type ProviderNameWithLiterals, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, type ReferralAppInstallation, type ReferralProgram, type RestoreInfo, type Reward, type RewardOptionsOneOf, RewardType, type RewardTypeWithLiterals, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, State, type StateWithLiterals, type StudioAssigned, type StudioUnassigned, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, Type, type TypeWithLiterals, UnassignReason, type UnassignReasonWithLiterals, type UpdateReferralProgramRequest, type UpdateReferralProgramResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, activateReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
|
|
@@ -34,6 +34,7 @@ __export(index_typings_exports, {
|
|
|
34
34
|
ProgramStatus: () => ProgramStatus,
|
|
35
35
|
ProviderName: () => ProviderName,
|
|
36
36
|
ReactivationReasonEnum: () => ReactivationReasonEnum,
|
|
37
|
+
RewardType: () => RewardType,
|
|
37
38
|
SiteCreatedContext: () => SiteCreatedContext,
|
|
38
39
|
State: () => State,
|
|
39
40
|
SubscriptionStatus: () => SubscriptionStatus,
|
|
@@ -473,13 +474,13 @@ var ProgramStatus = /* @__PURE__ */ ((ProgramStatus2) => {
|
|
|
473
474
|
ProgramStatus2["PAUSED"] = "PAUSED";
|
|
474
475
|
return ProgramStatus2;
|
|
475
476
|
})(ProgramStatus || {});
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
return
|
|
482
|
-
})(
|
|
477
|
+
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
478
|
+
RewardType2["UNKNOWN"] = "UNKNOWN";
|
|
479
|
+
RewardType2["COUPON"] = "COUPON";
|
|
480
|
+
RewardType2["LOYALTY_POINTS"] = "LOYALTY_POINTS";
|
|
481
|
+
RewardType2["NOTHING"] = "NOTHING";
|
|
482
|
+
return RewardType2;
|
|
483
|
+
})(RewardType || {});
|
|
483
484
|
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
484
485
|
DiscountType2["UNKNOWN"] = "UNKNOWN";
|
|
485
486
|
DiscountType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
@@ -639,6 +640,12 @@ var ProductAdjustment = /* @__PURE__ */ ((ProductAdjustment2) => {
|
|
|
639
640
|
ProductAdjustment2["DOWNGRADE"] = "DOWNGRADE";
|
|
640
641
|
return ProductAdjustment2;
|
|
641
642
|
})(ProductAdjustment || {});
|
|
643
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
644
|
+
Type2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
645
|
+
Type2["INSTALLED"] = "INSTALLED";
|
|
646
|
+
Type2["DELETED"] = "DELETED";
|
|
647
|
+
return Type2;
|
|
648
|
+
})(Type || {});
|
|
642
649
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
643
650
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
644
651
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -859,6 +866,7 @@ async function getReferralProgramPremiumFeatures2() {
|
|
|
859
866
|
ProgramStatus,
|
|
860
867
|
ProviderName,
|
|
861
868
|
ReactivationReasonEnum,
|
|
869
|
+
RewardType,
|
|
862
870
|
SiteCreatedContext,
|
|
863
871
|
State,
|
|
864
872
|
SubscriptionStatus,
|