@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/referral",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/referral_customers": "1.0.
|
|
22
|
-
"@wix/referral_friends": "1.0.
|
|
23
|
-
"@wix/referral_programs": "1.0.
|
|
24
|
-
"@wix/referral_rewards": "1.0.
|
|
25
|
-
"@wix/referral_tracker": "1.0.
|
|
21
|
+
"@wix/referral_customers": "1.0.8",
|
|
22
|
+
"@wix/referral_friends": "1.0.6",
|
|
23
|
+
"@wix/referral_programs": "1.0.8",
|
|
24
|
+
"@wix/referral_rewards": "1.0.7",
|
|
25
|
+
"@wix/referral_tracker": "1.0.11"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"glob": "^10.4.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "d51c39b89dfcb79fe47576a7cbd4cb0152eaa9801bc66a6f14af9f46"
|
|
51
51
|
}
|
|
@@ -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 context$4_UnassignReason: typeof UnassignReason;
|
|
|
1742
1748
|
type context$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
|
|
1743
1749
|
type context$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
|
|
1744
1750
|
type context$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
|
|
1745
|
-
type context$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
|
|
1746
|
-
type context$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
|
|
1747
|
-
type context$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
|
|
1748
|
-
type context$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
|
|
1749
|
-
type context$4__publicGetReferralProgramType = _publicGetReferralProgramType;
|
|
1750
1751
|
type context$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
|
|
1751
|
-
type context$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
|
|
1752
|
-
type context$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
|
|
1753
|
-
type context$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
|
|
1754
1752
|
declare const context$4_activateReferralProgram: typeof activateReferralProgram;
|
|
1755
1753
|
declare const context$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
|
|
1756
1754
|
declare const context$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
|
|
@@ -1761,7 +1759,7 @@ declare const context$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
|
1761
1759
|
declare const context$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
1762
1760
|
declare const context$4_updateReferralProgram: typeof updateReferralProgram;
|
|
1763
1761
|
declare namespace context$4 {
|
|
1764
|
-
export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$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 context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$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 context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$
|
|
1762
|
+
export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$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 context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$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 context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, context$4_activateReferralProgram as activateReferralProgram, context$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, context$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, context$4_getReferralProgram as getReferralProgram, context$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, context$4_onProgramUpdated as onProgramUpdated, context$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, context$4_queryReferralPrograms as queryReferralPrograms, context$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 context$3_Trigger = Trigger;
|
|
|
2708
2699
|
type context$3_V1ActionEvent = V1ActionEvent;
|
|
2709
2700
|
type context$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
|
|
2710
2701
|
type context$3_V1Trigger = V1Trigger;
|
|
2711
|
-
type context$3__publicGetReferralEventType = _publicGetReferralEventType;
|
|
2712
|
-
type context$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
|
|
2713
2702
|
type context$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
|
|
2714
|
-
type context$3__publicQueryReferralEventType = _publicQueryReferralEventType;
|
|
2715
|
-
type context$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
|
|
2716
|
-
type context$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
|
|
2717
2703
|
declare const context$3_getReferralEvent: typeof getReferralEvent;
|
|
2718
2704
|
declare const context$3_getReferralStatistics: typeof getReferralStatistics;
|
|
2719
2705
|
declare const context$3_onReferralEventCreated: typeof onReferralEventCreated;
|
|
@@ -2721,7 +2707,7 @@ declare const context$3_queryReferralEvent: typeof queryReferralEvent;
|
|
|
2721
2707
|
declare const context$3_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
2722
2708
|
declare const context$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
2723
2709
|
declare namespace context$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 context$3_CreateReferralEventRequest as CreateReferralEventRequest, type context$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 context$3_GetReferralEventRequest as GetReferralEventRequest, type context$3_GetReferralEventResponse as GetReferralEventResponse, type context$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type context$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type context$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type context$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 context$3_QueryReferralEventRequest as QueryReferralEventRequest, type context$3_QueryReferralEventResponse as QueryReferralEventResponse, type context$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type context$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type context$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type context$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type context$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type context$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type context$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type context$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type context$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type context$3_ReferralEvent as ReferralEvent, type context$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type context$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type context$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type context$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type context$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type context$3_ReferredFriendAction as ReferredFriendAction, type context$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type context$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type context$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type context$3_ReferringCustomerTotal as ReferringCustomerTotal, type RestoreInfo$3 as RestoreInfo, Reward$1 as Reward, type context$3_RewardEvent as RewardEvent, type context$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type context$3_Trigger as Trigger, type context$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type context$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type context$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type context$
|
|
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 context$3_CreateReferralEventRequest as CreateReferralEventRequest, type context$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 context$3_GetReferralEventRequest as GetReferralEventRequest, type context$3_GetReferralEventResponse as GetReferralEventResponse, type context$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type context$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type context$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type context$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 context$3_QueryReferralEventRequest as QueryReferralEventRequest, type context$3_QueryReferralEventResponse as QueryReferralEventResponse, type context$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type context$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type context$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type context$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type context$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type context$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type context$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type context$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type context$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type context$3_ReferralEvent as ReferralEvent, type context$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type context$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type context$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type context$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type context$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type context$3_ReferredFriendAction as ReferredFriendAction, type context$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type context$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type context$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type context$3_ReferringCustomerTotal as ReferringCustomerTotal, type RestoreInfo$3 as RestoreInfo, Reward$1 as Reward, type context$3_RewardEvent as RewardEvent, type context$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type context$3_Trigger as Trigger, type context$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type context$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type context$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, context$3_getReferralEvent as getReferralEvent, context$3_getReferralStatistics as getReferralStatistics, context$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, context$3_queryReferralEvent as queryReferralEvent, context$3_queryReferredFriendActions as queryReferredFriendActions, context$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 context$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
3291
3273
|
type context$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
@@ -3321,12 +3303,10 @@ type context$2_V1Coupon = V1Coupon;
|
|
|
3321
3303
|
type context$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
3322
3304
|
type context$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
3323
3305
|
type context$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
3324
|
-
type context$2__publicGetReferralRewardType = _publicGetReferralRewardType;
|
|
3325
|
-
type context$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
|
|
3326
3306
|
declare const context$2_getReferralReward: typeof getReferralReward;
|
|
3327
3307
|
declare const context$2_queryReferralRewards: typeof queryReferralRewards;
|
|
3328
3308
|
declare namespace context$2 {
|
|
3329
|
-
export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$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, context$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 context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType,
|
|
3309
|
+
export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$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, context$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 context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, context$2_getReferralReward as getReferralReward, context$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 context$1_UpdateReferredFriend = UpdateReferredFriend;
|
|
|
3962
3934
|
type context$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
|
|
3963
3935
|
type context$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
|
|
3964
3936
|
type context$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
|
|
3965
|
-
type context$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
|
|
3966
|
-
type context$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
|
|
3967
|
-
type context$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
|
|
3968
|
-
type context$1__publicGetReferredFriendType = _publicGetReferredFriendType;
|
|
3969
3937
|
type context$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
|
|
3970
3938
|
type context$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
|
|
3971
3939
|
type context$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
|
|
3972
|
-
type context$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
|
|
3973
|
-
type context$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
|
|
3974
3940
|
declare const context$1_createReferredFriend: typeof createReferredFriend;
|
|
3975
3941
|
declare const context$1_deleteReferredFriend: typeof deleteReferredFriend;
|
|
3976
3942
|
declare const context$1_getReferredFriend: typeof getReferredFriend;
|
|
@@ -3981,7 +3947,7 @@ declare const context$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
|
|
|
3981
3947
|
declare const context$1_queryReferredFriend: typeof queryReferredFriend;
|
|
3982
3948
|
declare const context$1_updateReferredFriend: typeof updateReferredFriend;
|
|
3983
3949
|
declare namespace context$1 {
|
|
3984
|
-
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$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 context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$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 context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$
|
|
3950
|
+
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$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 context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$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 context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type context$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type context$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, context$1_createReferredFriend as createReferredFriend, context$1_deleteReferredFriend as deleteReferredFriend, context$1_getReferredFriend as getReferredFriend, context$1_getReferredFriendByContactId as getReferredFriendByContactId, context$1_onReferredFriendCreated as onReferredFriendCreated, context$1_onReferredFriendDeleted as onReferredFriendDeleted, context$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, context$1_queryReferredFriend as queryReferredFriend, context$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 context_SortOrder: typeof SortOrder;
|
|
|
4513
4472
|
type context_Sorting = Sorting;
|
|
4514
4473
|
type context_WebhookIdentityType = WebhookIdentityType;
|
|
4515
4474
|
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4516
|
-
type context__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
|
|
4517
|
-
type context__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
|
|
4518
|
-
type context__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
|
|
4519
|
-
type context__publicGetReferringCustomerType = _publicGetReferringCustomerType;
|
|
4520
4475
|
type context__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
|
|
4521
4476
|
type context__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
|
|
4522
|
-
type context__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
|
|
4523
4477
|
declare const context_deleteReferringCustomer: typeof deleteReferringCustomer;
|
|
4524
4478
|
declare const context_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
|
|
4525
4479
|
declare const context_getReferringCustomer: typeof getReferringCustomer;
|
|
@@ -4528,7 +4482,7 @@ declare const context_onReferringCustomerCreated: typeof onReferringCustomerCrea
|
|
|
4528
4482
|
declare const context_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
|
|
4529
4483
|
declare const context_queryReferringCustomers: typeof queryReferringCustomers;
|
|
4530
4484
|
declare namespace context {
|
|
4531
|
-
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type context_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type context_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type context_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type context_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type context_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type context_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type context_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type context_GetReferringCustomerRequest as GetReferringCustomerRequest, type context_GetReferringCustomerResponse as GetReferringCustomerResponse, type context_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type context_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type context_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type context_ReferringCustomer as ReferringCustomer, type context_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type context_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type context_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type context_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type context_ReferringCustomersQueryResult as ReferringCustomersQueryResult, type context_RestoreInfo as RestoreInfo, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_WebhookIdentityType as WebhookIdentityType, type
|
|
4485
|
+
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type context_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type context_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type context_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type context_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type context_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type context_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type context_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type context_GetReferringCustomerRequest as GetReferringCustomerRequest, type context_GetReferringCustomerResponse as GetReferringCustomerResponse, type context_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type context_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type context_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type context_ReferringCustomer as ReferringCustomer, type context_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type context_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type context_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type context_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type context_ReferringCustomersQueryResult as ReferringCustomersQueryResult, type context_RestoreInfo as RestoreInfo, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type context__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, context_deleteReferringCustomer as deleteReferringCustomer, context_generateReferringCustomerForContact as generateReferringCustomerForContact, context_getReferringCustomer as getReferringCustomer, context_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, context_onReferringCustomerCreated as onReferringCustomerCreated, context_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, context_queryReferringCustomers as queryReferringCustomers };
|
|
4532
4486
|
}
|
|
4533
4487
|
|
|
4534
4488
|
export { context as customers, context$1 as friends, context$4 as programs, context$2 as rewards, context$3 as tracker };
|