@wix/auto_sdk_referral_programs 1.0.33 → 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.
@@ -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?: TypeWithLiterals;
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 Type {
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 TypeWithLiterals = Type | 'UNKNOWN' | 'COUPON' | 'LOYALTY_POINTS' | 'NOTHING';
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.
@@ -1611,6 +1621,8 @@ interface ProgramUpdatedEnvelope {
1611
1621
  }
1612
1622
  /**
1613
1623
  * Triggered when a referral program is updated.
1624
+ * @permissionScope Manage Restaurants - all permissions
1625
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1614
1626
  * @permissionScope Manage Referrals
1615
1627
  * @permissionScopeId SCOPE.DC-REFERRALS.MANAGE-REFERRALS
1616
1628
  * @permissionId REFERRALS.READ_PROGRAM
@@ -1729,4 +1741,4 @@ interface GenerateAiSocialMediaPostsSuggestionsOptions {
1729
1741
  */
1730
1742
  declare function getReferralProgramPremiumFeatures(): Promise<NonNullablePaths<GetReferralProgramPremiumFeaturesResponse, `referralProgram`>>;
1731
1743
 
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 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, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
1744
+ 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, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
@@ -423,13 +423,13 @@ var ProgramStatus = /* @__PURE__ */ ((ProgramStatus2) => {
423
423
  ProgramStatus2["PAUSED"] = "PAUSED";
424
424
  return ProgramStatus2;
425
425
  })(ProgramStatus || {});
426
- var Type = /* @__PURE__ */ ((Type2) => {
427
- Type2["UNKNOWN"] = "UNKNOWN";
428
- Type2["COUPON"] = "COUPON";
429
- Type2["LOYALTY_POINTS"] = "LOYALTY_POINTS";
430
- Type2["NOTHING"] = "NOTHING";
431
- return Type2;
432
- })(Type || {});
426
+ var RewardType = /* @__PURE__ */ ((RewardType2) => {
427
+ RewardType2["UNKNOWN"] = "UNKNOWN";
428
+ RewardType2["COUPON"] = "COUPON";
429
+ RewardType2["LOYALTY_POINTS"] = "LOYALTY_POINTS";
430
+ RewardType2["NOTHING"] = "NOTHING";
431
+ return RewardType2;
432
+ })(RewardType || {});
433
433
  var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
434
434
  DiscountType2["UNKNOWN"] = "UNKNOWN";
435
435
  DiscountType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
@@ -589,6 +589,12 @@ var ProductAdjustment = /* @__PURE__ */ ((ProductAdjustment2) => {
589
589
  ProductAdjustment2["DOWNGRADE"] = "DOWNGRADE";
590
590
  return ProductAdjustment2;
591
591
  })(ProductAdjustment || {});
592
+ var Type = /* @__PURE__ */ ((Type2) => {
593
+ Type2["UNSPECIFIED"] = "UNSPECIFIED";
594
+ Type2["INSTALLED"] = "INSTALLED";
595
+ Type2["DELETED"] = "DELETED";
596
+ return Type2;
597
+ })(Type || {});
592
598
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
593
599
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
594
600
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -808,6 +814,7 @@ export {
808
814
  ProgramStatus,
809
815
  ProviderName,
810
816
  ReactivationReasonEnum,
817
+ RewardType,
811
818
  SiteCreatedContext,
812
819
  State,
813
820
  SubscriptionStatus,