@wix/referral 1.0.16 → 1.0.18
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/package.json +7 -7
- package/type-bundles/context.bundle.d.ts +72 -118
- package/type-bundles/index.bundle.d.ts +72 -118
- package/type-bundles/meta.bundle.d.ts +44 -38
|
@@ -83,7 +83,7 @@ interface ReferralProgram {
|
|
|
83
83
|
*/
|
|
84
84
|
referringCustomerReward?: Reward$2;
|
|
85
85
|
/**
|
|
86
|
-
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an
|
|
86
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
87
87
|
*
|
|
88
88
|
* Possible values:
|
|
89
89
|
*
|
|
@@ -128,7 +128,7 @@ declare enum ProgramStatus {
|
|
|
128
128
|
interface Reward$2 extends RewardOptionsOneOf$1 {
|
|
129
129
|
/** Options for coupon reward type. */
|
|
130
130
|
couponOptions?: Coupon$2;
|
|
131
|
-
/** Options for Loyalty points reward type. */
|
|
131
|
+
/** Options for the Loyalty points reward type. */
|
|
132
132
|
loyaltyPointsOptions?: LoyaltyPoints$2;
|
|
133
133
|
/** Type of the reward. */
|
|
134
134
|
type?: Type$1;
|
|
@@ -137,7 +137,7 @@ interface Reward$2 extends RewardOptionsOneOf$1 {
|
|
|
137
137
|
interface RewardOptionsOneOf$1 {
|
|
138
138
|
/** Options for coupon reward type. */
|
|
139
139
|
couponOptions?: Coupon$2;
|
|
140
|
-
/** Options for Loyalty points reward type. */
|
|
140
|
+
/** Options for the Loyalty points reward type. */
|
|
141
141
|
loyaltyPointsOptions?: LoyaltyPoints$2;
|
|
142
142
|
}
|
|
143
143
|
declare enum Type$1 {
|
|
@@ -153,7 +153,7 @@ declare enum Type$1 {
|
|
|
153
153
|
interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
|
|
154
154
|
/** Options for fixed amount discount. */
|
|
155
155
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
156
|
-
/** Options for percentage
|
|
156
|
+
/** Options for percentage discounts. */
|
|
157
157
|
percentageOptions?: PercentageDiscount$2;
|
|
158
158
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
159
159
|
minimumSubtotal?: number;
|
|
@@ -193,7 +193,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
|
|
|
193
193
|
interface CouponDiscountTypeOptionsOneOf$2 {
|
|
194
194
|
/** Options for fixed amount discount. */
|
|
195
195
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
196
|
-
/** Options for percentage
|
|
196
|
+
/** Options for percentage discounts. */
|
|
197
197
|
percentageOptions?: PercentageDiscount$2;
|
|
198
198
|
}
|
|
199
199
|
/** @oneof */
|
|
@@ -214,7 +214,7 @@ declare enum DiscountType$2 {
|
|
|
214
214
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
215
215
|
}
|
|
216
216
|
interface FixedAmountDiscount$2 {
|
|
217
|
-
/** Amount of discount as a fixed value. */
|
|
217
|
+
/** Amount of the discount as a fixed value. */
|
|
218
218
|
amount?: number;
|
|
219
219
|
}
|
|
220
220
|
interface PercentageDiscount$2 {
|
|
@@ -224,7 +224,7 @@ interface PercentageDiscount$2 {
|
|
|
224
224
|
interface CouponScope$2 {
|
|
225
225
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
226
226
|
namespace?: string;
|
|
227
|
-
/** Coupon scope's applied group, for example
|
|
227
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
228
228
|
group?: Group$2;
|
|
229
229
|
}
|
|
230
230
|
interface Group$2 {
|
|
@@ -265,7 +265,10 @@ interface Emails {
|
|
|
265
265
|
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
266
266
|
*/
|
|
267
267
|
encourageToReferFriends?: App[];
|
|
268
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* Whether to send email notifications to referring customers when they receive a referral reward.
|
|
270
|
+
* If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
|
|
271
|
+
*/
|
|
269
272
|
notifyCustomersAboutReward?: boolean;
|
|
270
273
|
}
|
|
271
274
|
declare enum App {
|
|
@@ -284,7 +287,7 @@ declare enum App {
|
|
|
284
287
|
}
|
|
285
288
|
interface PremiumFeatures {
|
|
286
289
|
/**
|
|
287
|
-
* Whether the
|
|
290
|
+
* Whether the site owner has access to the referral program feature.
|
|
288
291
|
* @readonly
|
|
289
292
|
*/
|
|
290
293
|
referralProgram?: boolean;
|
|
@@ -407,7 +410,7 @@ interface PauseReferralProgramResponse {
|
|
|
407
410
|
referralProgram?: ReferralProgram;
|
|
408
411
|
}
|
|
409
412
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
410
|
-
/** Topic to generate social media post suggestions for. */
|
|
413
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
411
414
|
topic?: string;
|
|
412
415
|
}
|
|
413
416
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
@@ -423,7 +426,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
423
426
|
hashtags?: string[];
|
|
424
427
|
}
|
|
425
428
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
426
|
-
/** Topic to generate social media post suggestions for. */
|
|
429
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
427
430
|
topic?: string;
|
|
428
431
|
}
|
|
429
432
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
@@ -1528,11 +1531,11 @@ interface ReferralProgramsQueryBuilder {
|
|
|
1528
1531
|
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1529
1532
|
}
|
|
1530
1533
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1531
|
-
/** Topic to generate social media post suggestions for. */
|
|
1534
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
1532
1535
|
topic?: string;
|
|
1533
1536
|
}
|
|
1534
1537
|
interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
1535
|
-
/** Topic to generate social media post suggestions for. */
|
|
1538
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
1536
1539
|
topic?: string;
|
|
1537
1540
|
}
|
|
1538
1541
|
|
|
@@ -1584,7 +1587,15 @@ interface PauseReferralProgramSignature {
|
|
|
1584
1587
|
declare function getAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): GetAiSocialMediaPostsSuggestionsSignature;
|
|
1585
1588
|
interface GetAiSocialMediaPostsSuggestionsSignature {
|
|
1586
1589
|
/**
|
|
1587
|
-
* Retrieves pre-generated social media post suggestions for promoting the referral program.
|
|
1590
|
+
* Retrieves pre-generated AI social media post suggestions for promoting the referral program.
|
|
1591
|
+
*
|
|
1592
|
+
* Use this method to get a list of AI-generated social media post suggestions
|
|
1593
|
+
* that site owners or members can use to promote the referral program.
|
|
1594
|
+
*
|
|
1595
|
+
* These suggestions can be displayed to users in your app's UI, allowing them to easily copy and share on their preferred social media platforms.
|
|
1596
|
+
*
|
|
1597
|
+
* >**Note**: This endpoint retrieves existing suggestions. To generate new ones,
|
|
1598
|
+
* use the [Generate AI Social Media Posts Suggestions](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/generate-ai-social-media-posts-suggestions) endpoint.
|
|
1588
1599
|
*/
|
|
1589
1600
|
(options?: GetAiSocialMediaPostsSuggestionsOptions | undefined): Promise<GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields>;
|
|
1590
1601
|
}
|
|
@@ -1592,6 +1603,11 @@ declare function generateAiSocialMediaPostsSuggestions$1(httpClient: HttpClient)
|
|
|
1592
1603
|
interface GenerateAiSocialMediaPostsSuggestionsSignature {
|
|
1593
1604
|
/**
|
|
1594
1605
|
* Creates new AI-generated social media post suggestions for promoting the referral program.
|
|
1606
|
+
*
|
|
1607
|
+
* Use this method to generate fresh AI-powered social media post suggestions for promoting the referral program. This is useful when you want to refresh
|
|
1608
|
+
* the content or generate alternatives to the existing suggestions.
|
|
1609
|
+
*
|
|
1610
|
+
* >**Note**: This endpoint generates new suggestions each time it's called. To retrieve existing suggestions without generating new ones, use the [Get AI Social Media Posts Suggestions](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/get-ai-social-media-posts-suggestions) method.
|
|
1595
1611
|
*/
|
|
1596
1612
|
(options?: GenerateAiSocialMediaPostsSuggestionsOptions | undefined): Promise<GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields>;
|
|
1597
1613
|
}
|
|
@@ -1604,26 +1620,16 @@ interface GetReferralProgramPremiumFeaturesSignature {
|
|
|
1604
1620
|
}
|
|
1605
1621
|
declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.loyalty.referral.v1.program_updated">;
|
|
1606
1622
|
|
|
1607
|
-
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1608
|
-
|
|
1609
1623
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1610
1624
|
|
|
1611
|
-
|
|
1612
|
-
declare const
|
|
1613
|
-
|
|
1614
|
-
declare const
|
|
1615
|
-
|
|
1616
|
-
declare const
|
|
1617
|
-
|
|
1618
|
-
declare const
|
|
1619
|
-
type _publicPauseReferralProgramType = typeof pauseReferralProgram$1;
|
|
1620
|
-
declare const pauseReferralProgram: ReturnType<typeof createRESTModule$4<_publicPauseReferralProgramType>>;
|
|
1621
|
-
type _publicGetAiSocialMediaPostsSuggestionsType = typeof getAiSocialMediaPostsSuggestions$1;
|
|
1622
|
-
declare const getAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGetAiSocialMediaPostsSuggestionsType>>;
|
|
1623
|
-
type _publicGenerateAiSocialMediaPostsSuggestionsType = typeof generateAiSocialMediaPostsSuggestions$1;
|
|
1624
|
-
declare const generateAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGenerateAiSocialMediaPostsSuggestionsType>>;
|
|
1625
|
-
type _publicGetReferralProgramPremiumFeaturesType = typeof getReferralProgramPremiumFeatures$1;
|
|
1626
|
-
declare const getReferralProgramPremiumFeatures: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramPremiumFeaturesType>>;
|
|
1625
|
+
declare const getReferralProgram: BuildRESTFunction<typeof getReferralProgram$1> & typeof getReferralProgram$1;
|
|
1626
|
+
declare const queryReferralPrograms: BuildRESTFunction<typeof queryReferralPrograms$1> & typeof queryReferralPrograms$1;
|
|
1627
|
+
declare const updateReferralProgram: BuildRESTFunction<typeof updateReferralProgram$1> & typeof updateReferralProgram$1;
|
|
1628
|
+
declare const activateReferralProgram: BuildRESTFunction<typeof activateReferralProgram$1> & typeof activateReferralProgram$1;
|
|
1629
|
+
declare const pauseReferralProgram: BuildRESTFunction<typeof pauseReferralProgram$1> & typeof pauseReferralProgram$1;
|
|
1630
|
+
declare const getAiSocialMediaPostsSuggestions: BuildRESTFunction<typeof getAiSocialMediaPostsSuggestions$1> & typeof getAiSocialMediaPostsSuggestions$1;
|
|
1631
|
+
declare const generateAiSocialMediaPostsSuggestions: BuildRESTFunction<typeof generateAiSocialMediaPostsSuggestions$1> & typeof generateAiSocialMediaPostsSuggestions$1;
|
|
1632
|
+
declare const getReferralProgramPremiumFeatures: BuildRESTFunction<typeof getReferralProgramPremiumFeatures$1> & typeof getReferralProgramPremiumFeatures$1;
|
|
1627
1633
|
|
|
1628
1634
|
type _publicOnProgramUpdatedType = typeof onProgramUpdated$1;
|
|
1629
1635
|
/** */
|
|
@@ -1742,15 +1748,7 @@ declare const index_d$4_UnassignReason: typeof UnassignReason;
|
|
|
1742
1748
|
type index_d$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
|
|
1743
1749
|
type index_d$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
|
|
1744
1750
|
type index_d$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
|
|
1745
|
-
type index_d$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
|
|
1746
|
-
type index_d$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
|
|
1747
|
-
type index_d$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
|
|
1748
|
-
type index_d$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
|
|
1749
|
-
type index_d$4__publicGetReferralProgramType = _publicGetReferralProgramType;
|
|
1750
1751
|
type index_d$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
|
|
1751
|
-
type index_d$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
|
|
1752
|
-
type index_d$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
|
|
1753
|
-
type index_d$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
|
|
1754
1752
|
declare const index_d$4_activateReferralProgram: typeof activateReferralProgram;
|
|
1755
1753
|
declare const index_d$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
|
|
1756
1754
|
declare const index_d$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
|
|
@@ -1761,7 +1759,7 @@ declare const index_d$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
|
1761
1759
|
declare const index_d$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
1762
1760
|
declare const index_d$4_updateReferralProgram: typeof updateReferralProgram;
|
|
1763
1761
|
declare namespace index_d$4 {
|
|
1764
|
-
export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type index_d$4_PremiumFeatures as PremiumFeatures, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type index_d$4_ServiceProvisioned as ServiceProvisioned, type index_d$4_ServiceRemoved as ServiceRemoved, type index_d$4_SiteCreated as SiteCreated, index_d$4_SiteCreatedContext as SiteCreatedContext, type index_d$4_SiteDeleted as SiteDeleted, type index_d$4_SiteHardDeleted as SiteHardDeleted, type index_d$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$4_SitePublished as SitePublished, type index_d$4_SiteRenamed as SiteRenamed, type index_d$4_SiteTransferred as SiteTransferred, type index_d$4_SiteUndeleted as SiteUndeleted, type index_d$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, index_d$4_State as State, type index_d$4_StudioAssigned as StudioAssigned, type index_d$4_StudioUnassigned as StudioUnassigned, type index_d$4_Subscription as Subscription, type index_d$4_SubscriptionAssigned as SubscriptionAssigned, type index_d$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d$4_SubscriptionCancelled as SubscriptionCancelled, type index_d$4_SubscriptionCreated as SubscriptionCreated, type index_d$4_SubscriptionEvent as SubscriptionEvent, type index_d$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d$4_SubscriptionPendingChange as SubscriptionPendingChange, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SubscriptionTransferred as SubscriptionTransferred, type index_d$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, index_d$4_UnassignReason as UnassignReason, type index_d$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type index_d$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type index_d$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type index_d$
|
|
1762
|
+
export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type index_d$4_PremiumFeatures as PremiumFeatures, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type index_d$4_ServiceProvisioned as ServiceProvisioned, type index_d$4_ServiceRemoved as ServiceRemoved, type index_d$4_SiteCreated as SiteCreated, index_d$4_SiteCreatedContext as SiteCreatedContext, type index_d$4_SiteDeleted as SiteDeleted, type index_d$4_SiteHardDeleted as SiteHardDeleted, type index_d$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$4_SitePublished as SitePublished, type index_d$4_SiteRenamed as SiteRenamed, type index_d$4_SiteTransferred as SiteTransferred, type index_d$4_SiteUndeleted as SiteUndeleted, type index_d$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, index_d$4_State as State, type index_d$4_StudioAssigned as StudioAssigned, type index_d$4_StudioUnassigned as StudioUnassigned, type index_d$4_Subscription as Subscription, type index_d$4_SubscriptionAssigned as SubscriptionAssigned, type index_d$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d$4_SubscriptionCancelled as SubscriptionCancelled, type index_d$4_SubscriptionCreated as SubscriptionCreated, type index_d$4_SubscriptionEvent as SubscriptionEvent, type index_d$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d$4_SubscriptionPendingChange as SubscriptionPendingChange, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SubscriptionTransferred as SubscriptionTransferred, type index_d$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, index_d$4_UnassignReason as UnassignReason, type index_d$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type index_d$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type index_d$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type index_d$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, index_d$4_activateReferralProgram as activateReferralProgram, index_d$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, index_d$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, index_d$4_getReferralProgram as getReferralProgram, index_d$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, index_d$4_onProgramUpdated as onProgramUpdated, index_d$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, index_d$4_queryReferralPrograms as queryReferralPrograms, index_d$4_updateReferralProgram as updateReferralProgram };
|
|
1765
1763
|
}
|
|
1766
1764
|
|
|
1767
1765
|
interface ReferralEvent extends ReferralEventEventTypeOneOf {
|
|
@@ -2128,7 +2126,7 @@ declare enum Status$2 {
|
|
|
2128
2126
|
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
2129
2127
|
/** Options for fixed amount discount. */
|
|
2130
2128
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2131
|
-
/** Options for percentage
|
|
2129
|
+
/** Options for percentage discounts. */
|
|
2132
2130
|
percentageOptions?: PercentageDiscount$1;
|
|
2133
2131
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2134
2132
|
minimumSubtotal?: number;
|
|
@@ -2168,7 +2166,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
|
|
|
2168
2166
|
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
2169
2167
|
/** Options for fixed amount discount. */
|
|
2170
2168
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2171
|
-
/** Options for percentage
|
|
2169
|
+
/** Options for percentage discounts. */
|
|
2172
2170
|
percentageOptions?: PercentageDiscount$1;
|
|
2173
2171
|
}
|
|
2174
2172
|
/** @oneof */
|
|
@@ -2189,7 +2187,7 @@ declare enum DiscountType$1 {
|
|
|
2189
2187
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2190
2188
|
}
|
|
2191
2189
|
interface FixedAmountDiscount$1 {
|
|
2192
|
-
/** Amount of discount as a fixed value. */
|
|
2190
|
+
/** Amount of the discount as a fixed value. */
|
|
2193
2191
|
amount?: number;
|
|
2194
2192
|
}
|
|
2195
2193
|
interface PercentageDiscount$1 {
|
|
@@ -2199,7 +2197,7 @@ interface PercentageDiscount$1 {
|
|
|
2199
2197
|
interface CouponScope$1 {
|
|
2200
2198
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2201
2199
|
namespace?: string;
|
|
2202
|
-
/** Coupon scope's applied group, for example
|
|
2200
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2203
2201
|
group?: Group$1;
|
|
2204
2202
|
}
|
|
2205
2203
|
interface Group$1 {
|
|
@@ -2653,20 +2651,13 @@ interface QueryReferredFriendActionsSignature {
|
|
|
2653
2651
|
}
|
|
2654
2652
|
declare const onReferralEventCreated$1: EventDefinition<ReferralEventCreatedEnvelope, "wix.loyalty.referral.v1.referral_event_created">;
|
|
2655
2653
|
|
|
2656
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
2657
|
-
|
|
2658
2654
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2659
2655
|
|
|
2660
|
-
|
|
2661
|
-
declare const
|
|
2662
|
-
|
|
2663
|
-
declare const
|
|
2664
|
-
|
|
2665
|
-
declare const getReferralStatistics: ReturnType<typeof createRESTModule$3<_publicGetReferralStatisticsType>>;
|
|
2666
|
-
type _publicQueryReferringCustomerTotalsType = typeof queryReferringCustomerTotals$1;
|
|
2667
|
-
declare const queryReferringCustomerTotals: ReturnType<typeof createRESTModule$3<_publicQueryReferringCustomerTotalsType>>;
|
|
2668
|
-
type _publicQueryReferredFriendActionsType = typeof queryReferredFriendActions$1;
|
|
2669
|
-
declare const queryReferredFriendActions: ReturnType<typeof createRESTModule$3<_publicQueryReferredFriendActionsType>>;
|
|
2656
|
+
declare const getReferralEvent: BuildRESTFunction<typeof getReferralEvent$1> & typeof getReferralEvent$1;
|
|
2657
|
+
declare const queryReferralEvent: BuildRESTFunction<typeof queryReferralEvent$1> & typeof queryReferralEvent$1;
|
|
2658
|
+
declare const getReferralStatistics: BuildRESTFunction<typeof getReferralStatistics$1> & typeof getReferralStatistics$1;
|
|
2659
|
+
declare const queryReferringCustomerTotals: BuildRESTFunction<typeof queryReferringCustomerTotals$1> & typeof queryReferringCustomerTotals$1;
|
|
2660
|
+
declare const queryReferredFriendActions: BuildRESTFunction<typeof queryReferredFriendActions$1> & typeof queryReferredFriendActions$1;
|
|
2670
2661
|
|
|
2671
2662
|
type _publicOnReferralEventCreatedType = typeof onReferralEventCreated$1;
|
|
2672
2663
|
/** */
|
|
@@ -2708,12 +2699,7 @@ type index_d$3_Trigger = Trigger;
|
|
|
2708
2699
|
type index_d$3_V1ActionEvent = V1ActionEvent;
|
|
2709
2700
|
type index_d$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
|
|
2710
2701
|
type index_d$3_V1Trigger = V1Trigger;
|
|
2711
|
-
type index_d$3__publicGetReferralEventType = _publicGetReferralEventType;
|
|
2712
|
-
type index_d$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
|
|
2713
2702
|
type index_d$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
|
|
2714
|
-
type index_d$3__publicQueryReferralEventType = _publicQueryReferralEventType;
|
|
2715
|
-
type index_d$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
|
|
2716
|
-
type index_d$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
|
|
2717
2703
|
declare const index_d$3_getReferralEvent: typeof getReferralEvent;
|
|
2718
2704
|
declare const index_d$3_getReferralStatistics: typeof getReferralStatistics;
|
|
2719
2705
|
declare const index_d$3_onReferralEventCreated: typeof onReferralEventCreated;
|
|
@@ -2721,7 +2707,7 @@ declare const index_d$3_queryReferralEvent: typeof queryReferralEvent;
|
|
|
2721
2707
|
declare const index_d$3_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
2722
2708
|
declare const index_d$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
2723
2709
|
declare namespace index_d$3 {
|
|
2724
|
-
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, type RestoreInfo$3 as RestoreInfo, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type index_d$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type index_d$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type index_d$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type index_d$
|
|
2710
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, type RestoreInfo$3 as RestoreInfo, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type index_d$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type index_d$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type index_d$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type index_d$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, index_d$3_getReferralEvent as getReferralEvent, index_d$3_getReferralStatistics as getReferralStatistics, index_d$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, index_d$3_queryReferralEvent as queryReferralEvent, index_d$3_queryReferredFriendActions as queryReferredFriendActions, index_d$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
|
|
2725
2711
|
}
|
|
2726
2712
|
|
|
2727
2713
|
interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewardTypeOptionsOneOf {
|
|
@@ -2842,7 +2828,7 @@ declare enum Status$1 {
|
|
|
2842
2828
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2843
2829
|
/** Options for fixed amount discount. */
|
|
2844
2830
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2845
|
-
/** Options for percentage
|
|
2831
|
+
/** Options for percentage discounts. */
|
|
2846
2832
|
percentageOptions?: PercentageDiscount;
|
|
2847
2833
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2848
2834
|
minimumSubtotal?: number;
|
|
@@ -2882,7 +2868,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
|
|
|
2882
2868
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2883
2869
|
/** Options for fixed amount discount. */
|
|
2884
2870
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2885
|
-
/** Options for percentage
|
|
2871
|
+
/** Options for percentage discounts. */
|
|
2886
2872
|
percentageOptions?: PercentageDiscount;
|
|
2887
2873
|
}
|
|
2888
2874
|
/** @oneof */
|
|
@@ -2903,7 +2889,7 @@ declare enum DiscountType {
|
|
|
2903
2889
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2904
2890
|
}
|
|
2905
2891
|
interface FixedAmountDiscount {
|
|
2906
|
-
/** Amount of discount as a fixed value. */
|
|
2892
|
+
/** Amount of the discount as a fixed value. */
|
|
2907
2893
|
amount?: number;
|
|
2908
2894
|
}
|
|
2909
2895
|
interface PercentageDiscount {
|
|
@@ -2913,7 +2899,7 @@ interface PercentageDiscount {
|
|
|
2913
2899
|
interface CouponScope {
|
|
2914
2900
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2915
2901
|
namespace?: string;
|
|
2916
|
-
/** Coupon scope's applied group, for example
|
|
2902
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2917
2903
|
group?: Group;
|
|
2918
2904
|
}
|
|
2919
2905
|
interface Group {
|
|
@@ -3030,7 +3016,7 @@ interface ValidateReferralRewardRequest {
|
|
|
3030
3016
|
interface Reward extends RewardOptionsOneOf {
|
|
3031
3017
|
/** Options for coupon reward type. */
|
|
3032
3018
|
couponOptions?: Coupon;
|
|
3033
|
-
/** Options for Loyalty points reward type. */
|
|
3019
|
+
/** Options for the Loyalty points reward type. */
|
|
3034
3020
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
3035
3021
|
/** Type of the reward. */
|
|
3036
3022
|
type?: Type;
|
|
@@ -3039,7 +3025,7 @@ interface Reward extends RewardOptionsOneOf {
|
|
|
3039
3025
|
interface RewardOptionsOneOf {
|
|
3040
3026
|
/** Options for coupon reward type. */
|
|
3041
3027
|
couponOptions?: Coupon;
|
|
3042
|
-
/** Options for Loyalty points reward type. */
|
|
3028
|
+
/** Options for the Loyalty points reward type. */
|
|
3043
3029
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
3044
3030
|
}
|
|
3045
3031
|
declare enum Type {
|
|
@@ -3280,12 +3266,8 @@ interface QueryReferralRewardsSignature {
|
|
|
3280
3266
|
(query: CursorQuery$2, options?: QueryReferralRewardsOptions | undefined): Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
|
|
3281
3267
|
}
|
|
3282
3268
|
|
|
3283
|
-
declare
|
|
3284
|
-
|
|
3285
|
-
type _publicGetReferralRewardType = typeof getReferralReward$1;
|
|
3286
|
-
declare const getReferralReward: ReturnType<typeof createRESTModule$2<_publicGetReferralRewardType>>;
|
|
3287
|
-
type _publicQueryReferralRewardsType = typeof queryReferralRewards$1;
|
|
3288
|
-
declare const queryReferralRewards: ReturnType<typeof createRESTModule$2<_publicQueryReferralRewardsType>>;
|
|
3269
|
+
declare const getReferralReward: BuildRESTFunction<typeof getReferralReward$1> & typeof getReferralReward$1;
|
|
3270
|
+
declare const queryReferralRewards: BuildRESTFunction<typeof queryReferralRewards$1> & typeof queryReferralRewards$1;
|
|
3289
3271
|
|
|
3290
3272
|
type index_d$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
3291
3273
|
type index_d$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
@@ -3321,12 +3303,10 @@ type index_d$2_V1Coupon = V1Coupon;
|
|
|
3321
3303
|
type index_d$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
3322
3304
|
type index_d$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
3323
3305
|
type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
3324
|
-
type index_d$2__publicGetReferralRewardType = _publicGetReferralRewardType;
|
|
3325
|
-
type index_d$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
|
|
3326
3306
|
declare const index_d$2_getReferralReward: typeof getReferralReward;
|
|
3327
3307
|
declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
|
|
3328
3308
|
declare namespace index_d$2 {
|
|
3329
|
-
export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType,
|
|
3309
|
+
export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
|
|
3330
3310
|
}
|
|
3331
3311
|
|
|
3332
3312
|
interface ReferredFriend {
|
|
@@ -3901,22 +3881,14 @@ declare const onReferredFriendCreated$1: EventDefinition<ReferredFriendCreatedEn
|
|
|
3901
3881
|
declare const onReferredFriendUpdated$1: EventDefinition<ReferredFriendUpdatedEnvelope, "wix.loyalty.referral.v1.referred_friend_updated">;
|
|
3902
3882
|
declare const onReferredFriendDeleted$1: EventDefinition<ReferredFriendDeletedEnvelope, "wix.loyalty.referral.v1.referred_friend_deleted">;
|
|
3903
3883
|
|
|
3904
|
-
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3905
|
-
|
|
3906
3884
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3907
3885
|
|
|
3908
|
-
|
|
3909
|
-
declare const
|
|
3910
|
-
|
|
3911
|
-
declare const
|
|
3912
|
-
|
|
3913
|
-
declare const
|
|
3914
|
-
type _publicUpdateReferredFriendType = typeof updateReferredFriend$1;
|
|
3915
|
-
declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<_publicUpdateReferredFriendType>>;
|
|
3916
|
-
type _publicDeleteReferredFriendType = typeof deleteReferredFriend$1;
|
|
3917
|
-
declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<_publicDeleteReferredFriendType>>;
|
|
3918
|
-
type _publicQueryReferredFriendType = typeof queryReferredFriend$1;
|
|
3919
|
-
declare const queryReferredFriend: ReturnType<typeof createRESTModule$1<_publicQueryReferredFriendType>>;
|
|
3886
|
+
declare const createReferredFriend: BuildRESTFunction<typeof createReferredFriend$1> & typeof createReferredFriend$1;
|
|
3887
|
+
declare const getReferredFriend: BuildRESTFunction<typeof getReferredFriend$1> & typeof getReferredFriend$1;
|
|
3888
|
+
declare const getReferredFriendByContactId: BuildRESTFunction<typeof getReferredFriendByContactId$1> & typeof getReferredFriendByContactId$1;
|
|
3889
|
+
declare const updateReferredFriend: BuildRESTFunction<typeof updateReferredFriend$1> & typeof updateReferredFriend$1;
|
|
3890
|
+
declare const deleteReferredFriend: BuildRESTFunction<typeof deleteReferredFriend$1> & typeof deleteReferredFriend$1;
|
|
3891
|
+
declare const queryReferredFriend: BuildRESTFunction<typeof queryReferredFriend$1> & typeof queryReferredFriend$1;
|
|
3920
3892
|
|
|
3921
3893
|
type _publicOnReferredFriendCreatedType = typeof onReferredFriendCreated$1;
|
|
3922
3894
|
/** */
|
|
@@ -3962,15 +3934,9 @@ type index_d$1_UpdateReferredFriend = UpdateReferredFriend;
|
|
|
3962
3934
|
type index_d$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
|
|
3963
3935
|
type index_d$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
|
|
3964
3936
|
type index_d$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
|
|
3965
|
-
type index_d$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
|
|
3966
|
-
type index_d$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
|
|
3967
|
-
type index_d$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
|
|
3968
|
-
type index_d$1__publicGetReferredFriendType = _publicGetReferredFriendType;
|
|
3969
3937
|
type index_d$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
|
|
3970
3938
|
type index_d$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
|
|
3971
3939
|
type index_d$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
|
|
3972
|
-
type index_d$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
|
|
3973
|
-
type index_d$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
|
|
3974
3940
|
declare const index_d$1_createReferredFriend: typeof createReferredFriend;
|
|
3975
3941
|
declare const index_d$1_deleteReferredFriend: typeof deleteReferredFriend;
|
|
3976
3942
|
declare const index_d$1_getReferredFriend: typeof getReferredFriend;
|
|
@@ -3981,7 +3947,7 @@ declare const index_d$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
|
|
|
3981
3947
|
declare const index_d$1_queryReferredFriend: typeof queryReferredFriend;
|
|
3982
3948
|
declare const index_d$1_updateReferredFriend: typeof updateReferredFriend;
|
|
3983
3949
|
declare namespace index_d$1 {
|
|
3984
|
-
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$
|
|
3950
|
+
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type index_d$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type index_d$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, index_d$1_createReferredFriend as createReferredFriend, index_d$1_deleteReferredFriend as deleteReferredFriend, index_d$1_getReferredFriend as getReferredFriend, index_d$1_getReferredFriendByContactId as getReferredFriendByContactId, index_d$1_onReferredFriendCreated as onReferredFriendCreated, index_d$1_onReferredFriendDeleted as onReferredFriendDeleted, index_d$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, index_d$1_queryReferredFriend as queryReferredFriend, index_d$1_updateReferredFriend as updateReferredFriend };
|
|
3985
3951
|
}
|
|
3986
3952
|
|
|
3987
3953
|
/** ReferringCustomer is the main entity of ReferringCustomers. */
|
|
@@ -4395,7 +4361,7 @@ interface GenerateReferringCustomerForContactSignature {
|
|
|
4395
4361
|
/**
|
|
4396
4362
|
* Creates a new referring customer or returns an existing one for the provided contact ID.
|
|
4397
4363
|
*
|
|
4398
|
-
* You can use `
|
|
4364
|
+
* You can use `me` instead of a specific contact ID to generate a referring customer for the current identity's contact.
|
|
4399
4365
|
*
|
|
4400
4366
|
* See the [About Identities](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) article to learn more about identies.
|
|
4401
4367
|
* @param - Contact ID or `"me"` to generate the current identity's referring customer.
|
|
@@ -4447,20 +4413,13 @@ interface DeleteReferringCustomerSignature {
|
|
|
4447
4413
|
declare const onReferringCustomerCreated$1: EventDefinition<ReferringCustomerCreatedEnvelope, "wix.loyalty.referral.v1.referring_customer_created">;
|
|
4448
4414
|
declare const onReferringCustomerDeleted$1: EventDefinition<ReferringCustomerDeletedEnvelope, "wix.loyalty.referral.v1.referring_customer_deleted">;
|
|
4449
4415
|
|
|
4450
|
-
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4451
|
-
|
|
4452
4416
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4453
4417
|
|
|
4454
|
-
|
|
4455
|
-
declare const
|
|
4456
|
-
|
|
4457
|
-
declare const
|
|
4458
|
-
|
|
4459
|
-
declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<_publicGetReferringCustomerByReferralCodeType>>;
|
|
4460
|
-
type _publicQueryReferringCustomersType = typeof queryReferringCustomers$1;
|
|
4461
|
-
declare const queryReferringCustomers: ReturnType<typeof createRESTModule<_publicQueryReferringCustomersType>>;
|
|
4462
|
-
type _publicDeleteReferringCustomerType = typeof deleteReferringCustomer$1;
|
|
4463
|
-
declare const deleteReferringCustomer: ReturnType<typeof createRESTModule<_publicDeleteReferringCustomerType>>;
|
|
4418
|
+
declare const generateReferringCustomerForContact: BuildRESTFunction<typeof generateReferringCustomerForContact$1> & typeof generateReferringCustomerForContact$1;
|
|
4419
|
+
declare const getReferringCustomer: BuildRESTFunction<typeof getReferringCustomer$1> & typeof getReferringCustomer$1;
|
|
4420
|
+
declare const getReferringCustomerByReferralCode: BuildRESTFunction<typeof getReferringCustomerByReferralCode$1> & typeof getReferringCustomerByReferralCode$1;
|
|
4421
|
+
declare const queryReferringCustomers: BuildRESTFunction<typeof queryReferringCustomers$1> & typeof queryReferringCustomers$1;
|
|
4422
|
+
declare const deleteReferringCustomer: BuildRESTFunction<typeof deleteReferringCustomer$1> & typeof deleteReferringCustomer$1;
|
|
4464
4423
|
|
|
4465
4424
|
type _publicOnReferringCustomerCreatedType = typeof onReferringCustomerCreated$1;
|
|
4466
4425
|
/** */
|
|
@@ -4513,13 +4472,8 @@ declare const index_d_SortOrder: typeof SortOrder;
|
|
|
4513
4472
|
type index_d_Sorting = Sorting;
|
|
4514
4473
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4515
4474
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4516
|
-
type index_d__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
|
|
4517
|
-
type index_d__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
|
|
4518
|
-
type index_d__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
|
|
4519
|
-
type index_d__publicGetReferringCustomerType = _publicGetReferringCustomerType;
|
|
4520
4475
|
type index_d__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
|
|
4521
4476
|
type index_d__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
|
|
4522
|
-
type index_d__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
|
|
4523
4477
|
declare const index_d_deleteReferringCustomer: typeof deleteReferringCustomer;
|
|
4524
4478
|
declare const index_d_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
|
|
4525
4479
|
declare const index_d_getReferringCustomer: typeof getReferringCustomer;
|
|
@@ -4528,7 +4482,7 @@ declare const index_d_onReferringCustomerCreated: typeof onReferringCustomerCrea
|
|
|
4528
4482
|
declare const index_d_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
|
|
4529
4483
|
declare const index_d_queryReferringCustomers: typeof queryReferringCustomers;
|
|
4530
4484
|
declare namespace index_d {
|
|
4531
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_WebhookIdentityType as WebhookIdentityType, type
|
|
4485
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type index_d__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, index_d_deleteReferringCustomer as deleteReferringCustomer, index_d_generateReferringCustomerForContact as generateReferringCustomerForContact, index_d_getReferringCustomer as getReferringCustomer, index_d_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, index_d_onReferringCustomerCreated as onReferringCustomerCreated, index_d_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, index_d_queryReferringCustomers as queryReferringCustomers };
|
|
4532
4486
|
}
|
|
4533
4487
|
|
|
4534
4488
|
export { index_d as customers, index_d$1 as friends, index_d$4 as programs, index_d$2 as rewards, index_d$3 as tracker };
|