@wix/auto_sdk_referral_programs 1.0.34 → 1.0.36
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 +20 -6
- 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 +20 -6
- 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 +20 -6
- 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 +20 -6
- 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;
|
|
@@ -1413,6 +1413,12 @@ interface ContractSwitched {
|
|
|
1413
1413
|
* + `DOWNGRADE`: The product has been downgraded.
|
|
1414
1414
|
*/
|
|
1415
1415
|
productAdjustment?: ProductAdjustmentWithLiterals;
|
|
1416
|
+
/**
|
|
1417
|
+
* Number of seats before the contract switch.
|
|
1418
|
+
* @min 1
|
|
1419
|
+
* @max 500
|
|
1420
|
+
*/
|
|
1421
|
+
previousSeats?: number | null;
|
|
1416
1422
|
}
|
|
1417
1423
|
/** Copied from SBS */
|
|
1418
1424
|
declare enum ContractSwitchType {
|
|
@@ -1489,6 +1495,16 @@ interface RecurringChargeAttemptFailed {
|
|
|
1489
1495
|
/** Subscription for which the recurring charge attempt has failed. */
|
|
1490
1496
|
subscription?: Subscription;
|
|
1491
1497
|
}
|
|
1498
|
+
interface ReferralAppInstallation {
|
|
1499
|
+
type?: TypeWithLiterals;
|
|
1500
|
+
}
|
|
1501
|
+
declare enum Type {
|
|
1502
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
1503
|
+
INSTALLED = "INSTALLED",
|
|
1504
|
+
DELETED = "DELETED"
|
|
1505
|
+
}
|
|
1506
|
+
/** @enumType */
|
|
1507
|
+
type TypeWithLiterals = Type | 'UNSPECIFIED' | 'INSTALLED' | 'DELETED';
|
|
1492
1508
|
interface MessageEnvelope {
|
|
1493
1509
|
/**
|
|
1494
1510
|
* App instance ID.
|
|
@@ -1611,8 +1627,6 @@ interface ProgramUpdatedEnvelope {
|
|
|
1611
1627
|
}
|
|
1612
1628
|
/**
|
|
1613
1629
|
* Triggered when a referral program is updated.
|
|
1614
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1615
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1616
1630
|
* @permissionScope Manage Referrals
|
|
1617
1631
|
* @permissionScopeId SCOPE.DC-REFERRALS.MANAGE-REFERRALS
|
|
1618
1632
|
* @permissionId REFERRALS.READ_PROGRAM
|
|
@@ -1719,4 +1733,4 @@ interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
|
1719
1733
|
*/
|
|
1720
1734
|
declare function getReferralProgramPremiumFeatures(): Promise<NonNullablePaths<GetReferralProgramPremiumFeaturesResponse, `referralProgram`>>;
|
|
1721
1735
|
|
|
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 };
|
|
1736
|
+
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 };
|
|
@@ -423,13 +423,13 @@ var ProgramStatus = /* @__PURE__ */ ((ProgramStatus2) => {
|
|
|
423
423
|
ProgramStatus2["PAUSED"] = "PAUSED";
|
|
424
424
|
return ProgramStatus2;
|
|
425
425
|
})(ProgramStatus || {});
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
return
|
|
432
|
-
})(
|
|
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,
|