@wix/referral 1.0.15 → 1.0.17
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 +206 -197
- package/type-bundles/index.bundle.d.ts +206 -197
- package/type-bundles/meta.bundle.d.ts +248 -146
|
@@ -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 {
|
|
@@ -493,7 +496,7 @@ interface DomainEventBodyOneOf$4 {
|
|
|
493
496
|
interface EntityCreatedEvent$4 {
|
|
494
497
|
entity?: string;
|
|
495
498
|
}
|
|
496
|
-
interface RestoreInfo$
|
|
499
|
+
interface RestoreInfo$4 {
|
|
497
500
|
deletedDate?: Date;
|
|
498
501
|
}
|
|
499
502
|
interface EntityUpdatedEvent$4 {
|
|
@@ -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$
|
|
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 {
|
|
@@ -2272,7 +2270,7 @@ interface DomainEventBodyOneOf$3 {
|
|
|
2272
2270
|
interface EntityCreatedEvent$3 {
|
|
2273
2271
|
entity?: string;
|
|
2274
2272
|
}
|
|
2275
|
-
interface RestoreInfo$
|
|
2273
|
+
interface RestoreInfo$3 {
|
|
2276
2274
|
deletedDate?: Date;
|
|
2277
2275
|
}
|
|
2278
2276
|
interface EntityUpdatedEvent$3 {
|
|
@@ -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,163 +2707,205 @@ 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$
|
|
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
|
-
/** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
|
|
2728
2713
|
interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewardTypeOptionsOneOf {
|
|
2729
2714
|
/**
|
|
2730
|
-
*
|
|
2715
|
+
* ID of the referring customer who received the reward.
|
|
2731
2716
|
* @readonly
|
|
2732
2717
|
*/
|
|
2733
2718
|
rewardedReferringCustomerId?: string;
|
|
2734
2719
|
/**
|
|
2735
|
-
*
|
|
2720
|
+
* ID of the referred friend who received the reward.
|
|
2736
2721
|
* @readonly
|
|
2737
2722
|
*/
|
|
2738
2723
|
rewardedReferredFriendId?: string;
|
|
2739
|
-
/**
|
|
2724
|
+
/** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
|
|
2740
2725
|
coupon?: V1Coupon;
|
|
2741
|
-
/**
|
|
2726
|
+
/** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
|
|
2742
2727
|
loyaltyPoints?: V1LoyaltyPoints;
|
|
2743
2728
|
/**
|
|
2744
|
-
*
|
|
2729
|
+
* Referral reward ID.
|
|
2745
2730
|
* @readonly
|
|
2746
2731
|
*/
|
|
2747
2732
|
_id?: string | null;
|
|
2748
|
-
/**
|
|
2733
|
+
/**
|
|
2734
|
+
* Revision number, which increments by 1 each time the referral reward is updated.
|
|
2735
|
+
* To prevent conflicting changes, the current revision must be passed when updating the referral reward.
|
|
2736
|
+
*/
|
|
2749
2737
|
revision?: string | null;
|
|
2750
2738
|
/**
|
|
2751
|
-
*
|
|
2739
|
+
* Date and time the referral reward was created.
|
|
2752
2740
|
* @readonly
|
|
2753
2741
|
*/
|
|
2754
2742
|
_createdDate?: Date;
|
|
2755
2743
|
/**
|
|
2756
|
-
*
|
|
2744
|
+
* Date and time the referral reward was last updated.
|
|
2757
2745
|
* @readonly
|
|
2758
2746
|
*/
|
|
2759
2747
|
_updatedDate?: Date;
|
|
2760
|
-
/**
|
|
2748
|
+
/**
|
|
2749
|
+
* Type of reward given.
|
|
2750
|
+
*
|
|
2751
|
+
* Possible values:
|
|
2752
|
+
* - `UNKNOWN`: Unknown reward.
|
|
2753
|
+
* - `COUPON`: A loyalty coupon is given.
|
|
2754
|
+
* - `LOYALTY_POINTS`: Loyalty points are awarded.
|
|
2755
|
+
* - `NOTHING`: No reward is given.
|
|
2756
|
+
*/
|
|
2761
2757
|
rewardType?: RewardTypeType;
|
|
2762
2758
|
}
|
|
2763
2759
|
/** @oneof */
|
|
2764
2760
|
interface ReferralRewardReceiverOneOf {
|
|
2765
2761
|
/**
|
|
2766
|
-
*
|
|
2762
|
+
* ID of the referring customer who received the reward.
|
|
2767
2763
|
* @readonly
|
|
2768
2764
|
*/
|
|
2769
2765
|
rewardedReferringCustomerId?: string;
|
|
2770
2766
|
/**
|
|
2771
|
-
*
|
|
2767
|
+
* ID of the referred friend who received the reward.
|
|
2772
2768
|
* @readonly
|
|
2773
2769
|
*/
|
|
2774
2770
|
rewardedReferredFriendId?: string;
|
|
2775
2771
|
}
|
|
2776
2772
|
/** @oneof */
|
|
2777
2773
|
interface ReferralRewardRewardTypeOptionsOneOf {
|
|
2778
|
-
/**
|
|
2774
|
+
/** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
|
|
2779
2775
|
coupon?: V1Coupon;
|
|
2780
|
-
/**
|
|
2776
|
+
/** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
|
|
2781
2777
|
loyaltyPoints?: V1LoyaltyPoints;
|
|
2782
2778
|
}
|
|
2783
2779
|
declare enum RewardTypeType {
|
|
2784
|
-
/** Unknown reward
|
|
2780
|
+
/** Unknown reward. */
|
|
2785
2781
|
UNKNOWN = "UNKNOWN",
|
|
2786
|
-
/**
|
|
2782
|
+
/** A loyalty coupon is given. */
|
|
2787
2783
|
COUPON = "COUPON",
|
|
2788
|
-
/** Loyalty points
|
|
2784
|
+
/** Loyalty points are awarded. */
|
|
2789
2785
|
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
2790
|
-
/** No reward. */
|
|
2786
|
+
/** No reward is given. */
|
|
2791
2787
|
NOTHING = "NOTHING"
|
|
2792
2788
|
}
|
|
2793
2789
|
interface V1Coupon {
|
|
2794
2790
|
/**
|
|
2795
|
-
* Coupon ID.
|
|
2791
|
+
* Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
|
|
2796
2792
|
* @readonly
|
|
2797
2793
|
*/
|
|
2798
2794
|
_id?: string;
|
|
2799
2795
|
/**
|
|
2800
|
-
*
|
|
2796
|
+
* The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
|
|
2801
2797
|
* @readonly
|
|
2802
2798
|
*/
|
|
2803
2799
|
code?: string;
|
|
2804
2800
|
/**
|
|
2805
|
-
*
|
|
2801
|
+
* Current status of the coupon.
|
|
2802
|
+
*
|
|
2803
|
+
* Possible values:
|
|
2804
|
+
*
|
|
2805
|
+
* - `UNKNOWN`: Unknown coupon status.
|
|
2806
|
+
* - `ACTIVE`: Coupon is active and can be applied.
|
|
2807
|
+
* - `APPLIED`: Coupon was already applied and can't be used anymore.
|
|
2808
|
+
* - `DELETED`: Coupon was deleted.
|
|
2806
2809
|
* @readonly
|
|
2807
2810
|
*/
|
|
2808
2811
|
status?: Status$1;
|
|
2809
2812
|
/**
|
|
2810
|
-
*
|
|
2813
|
+
* Detailed specifications of the coupon.
|
|
2811
2814
|
* @readonly
|
|
2812
2815
|
*/
|
|
2813
2816
|
couponSpecification?: Coupon;
|
|
2814
2817
|
}
|
|
2815
2818
|
declare enum Status$1 {
|
|
2816
|
-
/**
|
|
2819
|
+
/** The coupon status is unknown or not specified. */
|
|
2817
2820
|
UNKNOWN = "UNKNOWN",
|
|
2818
|
-
/**
|
|
2821
|
+
/** The coupon is active and can be applied to purchases. */
|
|
2819
2822
|
ACTIVE = "ACTIVE",
|
|
2820
|
-
/**
|
|
2823
|
+
/** The coupon has been applied and can't be used again. */
|
|
2821
2824
|
APPLIED = "APPLIED",
|
|
2822
|
-
/**
|
|
2825
|
+
/** The coupon has been deleted and is no longer valid. */
|
|
2823
2826
|
DELETED = "DELETED"
|
|
2824
2827
|
}
|
|
2825
2828
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2826
|
-
/** Options for fixed amount discount
|
|
2829
|
+
/** Options for fixed amount discount. */
|
|
2827
2830
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2828
|
-
/** Options for percentage discount
|
|
2831
|
+
/** Options for percentage discount. */
|
|
2829
2832
|
percentageOptions?: PercentageDiscount;
|
|
2830
2833
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2831
2834
|
minimumSubtotal?: number;
|
|
2832
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2835
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
2833
2836
|
scope?: CouponScope;
|
|
2834
|
-
/** Coupon name */
|
|
2837
|
+
/** Coupon name. */
|
|
2835
2838
|
name?: string;
|
|
2836
|
-
/**
|
|
2839
|
+
/**
|
|
2840
|
+
* Coupon discount type.
|
|
2841
|
+
*
|
|
2842
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
2843
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
2844
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
2845
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
2846
|
+
*/
|
|
2837
2847
|
discountType?: DiscountType;
|
|
2838
|
-
/**
|
|
2848
|
+
/**
|
|
2849
|
+
* Whether the coupon is limited to one item.
|
|
2850
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
2851
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
2852
|
+
*/
|
|
2839
2853
|
limitedToOneItem?: boolean | null;
|
|
2840
|
-
/**
|
|
2854
|
+
/** Whether the coupon applies to subscription products. */
|
|
2841
2855
|
appliesToSubscriptions?: boolean | null;
|
|
2842
|
-
/**
|
|
2856
|
+
/**
|
|
2857
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
2858
|
+
*
|
|
2859
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
2860
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
2861
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
2862
|
+
*
|
|
2863
|
+
* Max: `999`
|
|
2864
|
+
*/
|
|
2843
2865
|
discountedCycleCount?: number | null;
|
|
2844
2866
|
}
|
|
2845
2867
|
/** @oneof */
|
|
2846
2868
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2847
|
-
/** Options for fixed amount discount
|
|
2869
|
+
/** Options for fixed amount discount. */
|
|
2848
2870
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2849
|
-
/** Options for percentage discount
|
|
2871
|
+
/** Options for percentage discount. */
|
|
2850
2872
|
percentageOptions?: PercentageDiscount;
|
|
2851
2873
|
}
|
|
2852
2874
|
/** @oneof */
|
|
2853
2875
|
interface CouponScopeOrMinSubtotalOneOf {
|
|
2854
2876
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2855
2877
|
minimumSubtotal?: number;
|
|
2856
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2878
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
2857
2879
|
scope?: CouponScope;
|
|
2858
2880
|
}
|
|
2859
2881
|
declare enum DiscountType {
|
|
2882
|
+
/** Unknown discount type. */
|
|
2860
2883
|
UNKNOWN = "UNKNOWN",
|
|
2861
|
-
/** Discount as a fixed amount */
|
|
2884
|
+
/** Discount as a fixed amount. */
|
|
2862
2885
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
2863
|
-
/** Discount as a percentage */
|
|
2886
|
+
/** Discount as a percentage. */
|
|
2864
2887
|
PERCENTAGE = "PERCENTAGE",
|
|
2865
|
-
/** Free shipping */
|
|
2888
|
+
/** Free shipping. */
|
|
2866
2889
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2867
2890
|
}
|
|
2868
2891
|
interface FixedAmountDiscount {
|
|
2869
|
-
/**
|
|
2892
|
+
/** Amount of discount as a fixed value. */
|
|
2870
2893
|
amount?: number;
|
|
2871
2894
|
}
|
|
2872
2895
|
interface PercentageDiscount {
|
|
2896
|
+
/** Percentage of discount. */
|
|
2873
2897
|
percentage?: number;
|
|
2874
2898
|
}
|
|
2875
2899
|
interface CouponScope {
|
|
2900
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2876
2901
|
namespace?: string;
|
|
2902
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
2877
2903
|
group?: Group;
|
|
2878
2904
|
}
|
|
2879
2905
|
interface Group {
|
|
2906
|
+
/** Name of the group. */
|
|
2880
2907
|
name?: string;
|
|
2908
|
+
/** Entity ID of the group. */
|
|
2881
2909
|
entityId?: string | null;
|
|
2882
2910
|
}
|
|
2883
2911
|
interface V1LoyaltyPoints {
|
|
@@ -2887,46 +2915,52 @@ interface V1LoyaltyPoints {
|
|
|
2887
2915
|
*/
|
|
2888
2916
|
transactionId?: string;
|
|
2889
2917
|
/**
|
|
2890
|
-
*
|
|
2918
|
+
* The number of loyalty points awarded.
|
|
2891
2919
|
* @readonly
|
|
2892
2920
|
*/
|
|
2893
2921
|
amount?: number;
|
|
2894
2922
|
}
|
|
2895
2923
|
interface GetReferralRewardRequest {
|
|
2896
|
-
/**
|
|
2924
|
+
/** Referral reward ID. */
|
|
2897
2925
|
_id: string;
|
|
2898
2926
|
}
|
|
2899
2927
|
interface GetReferralRewardResponse {
|
|
2900
|
-
/**
|
|
2928
|
+
/** Retrieved referral reward. */
|
|
2901
2929
|
referralReward?: ReferralReward;
|
|
2902
2930
|
}
|
|
2903
2931
|
interface QueryReferralRewardsRequest {
|
|
2904
|
-
/** Query to filter
|
|
2932
|
+
/** Query to filter referral rewards. */
|
|
2905
2933
|
query: CursorQuery$2;
|
|
2906
|
-
/**
|
|
2934
|
+
/** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
|
|
2907
2935
|
contactId?: string | null;
|
|
2908
2936
|
}
|
|
2909
2937
|
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
2910
|
-
/**
|
|
2938
|
+
/**
|
|
2939
|
+
* Cursor paging options.
|
|
2940
|
+
*
|
|
2941
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2942
|
+
*/
|
|
2911
2943
|
cursorPaging?: CursorPaging$2;
|
|
2912
2944
|
/**
|
|
2913
|
-
* Filter object
|
|
2914
|
-
*
|
|
2915
|
-
*
|
|
2916
|
-
* "fieldName2":{"$operator":"value2"}
|
|
2917
|
-
* }`
|
|
2918
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
2945
|
+
* Filter object.
|
|
2946
|
+
*
|
|
2947
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
2919
2948
|
*/
|
|
2920
2949
|
filter?: Record<string, any> | null;
|
|
2921
2950
|
/**
|
|
2922
|
-
* Sort object
|
|
2923
|
-
*
|
|
2951
|
+
* Sort object.
|
|
2952
|
+
*
|
|
2953
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
2924
2954
|
*/
|
|
2925
2955
|
sort?: Sorting$2[];
|
|
2926
2956
|
}
|
|
2927
2957
|
/** @oneof */
|
|
2928
2958
|
interface CursorQueryPagingMethodOneOf$2 {
|
|
2929
|
-
/**
|
|
2959
|
+
/**
|
|
2960
|
+
* Cursor paging options.
|
|
2961
|
+
*
|
|
2962
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2963
|
+
*/
|
|
2930
2964
|
cursorPaging?: CursorPaging$2;
|
|
2931
2965
|
}
|
|
2932
2966
|
interface Sorting$2 {
|
|
@@ -2951,13 +2985,13 @@ interface CursorPaging$2 {
|
|
|
2951
2985
|
cursor?: string | null;
|
|
2952
2986
|
}
|
|
2953
2987
|
interface QueryReferralRewardsResponse {
|
|
2954
|
-
/**
|
|
2988
|
+
/** Retrieved referral rewards. */
|
|
2955
2989
|
referralRewards?: ReferralReward[];
|
|
2956
2990
|
/** Metadata for paging. */
|
|
2957
2991
|
metadata?: CursorPagingMetadata$2;
|
|
2958
2992
|
}
|
|
2959
2993
|
interface CursorPagingMetadata$2 {
|
|
2960
|
-
/** Number of items returned in
|
|
2994
|
+
/** Number of items returned in current page. */
|
|
2961
2995
|
count?: number | null;
|
|
2962
2996
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
2963
2997
|
cursors?: Cursors$2;
|
|
@@ -2980,31 +3014,32 @@ interface ValidateReferralRewardRequest {
|
|
|
2980
3014
|
reward?: Reward;
|
|
2981
3015
|
}
|
|
2982
3016
|
interface Reward extends RewardOptionsOneOf {
|
|
2983
|
-
/** Options for coupon reward type */
|
|
3017
|
+
/** Options for coupon reward type. */
|
|
2984
3018
|
couponOptions?: Coupon;
|
|
2985
|
-
/** Options for Loyalty points reward type */
|
|
3019
|
+
/** Options for Loyalty points reward type. */
|
|
2986
3020
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
2987
|
-
/** Type of the reward */
|
|
3021
|
+
/** Type of the reward. */
|
|
2988
3022
|
type?: Type;
|
|
2989
3023
|
}
|
|
2990
3024
|
/** @oneof */
|
|
2991
3025
|
interface RewardOptionsOneOf {
|
|
2992
|
-
/** Options for coupon reward type */
|
|
3026
|
+
/** Options for coupon reward type. */
|
|
2993
3027
|
couponOptions?: Coupon;
|
|
2994
|
-
/** Options for Loyalty points reward type */
|
|
3028
|
+
/** Options for Loyalty points reward type. */
|
|
2995
3029
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
2996
3030
|
}
|
|
2997
3031
|
declare enum Type {
|
|
3032
|
+
/** Unknown reward type. */
|
|
2998
3033
|
UNKNOWN = "UNKNOWN",
|
|
2999
|
-
/** Coupon reward type */
|
|
3034
|
+
/** Coupon reward type. */
|
|
3000
3035
|
COUPON = "COUPON",
|
|
3001
|
-
/** Loyalty points reward type */
|
|
3036
|
+
/** Loyalty points reward type. */
|
|
3002
3037
|
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
3003
|
-
/** No reward type */
|
|
3038
|
+
/** No reward type. */
|
|
3004
3039
|
NOTHING = "NOTHING"
|
|
3005
3040
|
}
|
|
3006
3041
|
interface LoyaltyPoints {
|
|
3007
|
-
/**
|
|
3042
|
+
/** Number of loyalty points to give. */
|
|
3008
3043
|
amount?: number;
|
|
3009
3044
|
}
|
|
3010
3045
|
interface ValidateReferralRewardResponse {
|
|
@@ -3012,13 +3047,13 @@ interface ValidateReferralRewardResponse {
|
|
|
3012
3047
|
interface BulkGetReferralRewardsRequest {
|
|
3013
3048
|
}
|
|
3014
3049
|
interface BulkGetReferralRewardsResponse {
|
|
3015
|
-
/**
|
|
3050
|
+
/** Rewards grouped by site. */
|
|
3016
3051
|
rewardsInSite?: RewardsInSite[];
|
|
3017
3052
|
}
|
|
3018
3053
|
interface RewardsInSite {
|
|
3019
3054
|
/** Metasite ID. */
|
|
3020
3055
|
metaSiteId?: string;
|
|
3021
|
-
/**
|
|
3056
|
+
/** List of rewards for the site. */
|
|
3022
3057
|
rewards?: ReferralReward[];
|
|
3023
3058
|
}
|
|
3024
3059
|
interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
@@ -3044,7 +3079,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
3044
3079
|
slug?: string;
|
|
3045
3080
|
/** ID of the entity associated with the event. */
|
|
3046
3081
|
entityId?: string;
|
|
3047
|
-
/** Event timestamp. */
|
|
3082
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3048
3083
|
eventTime?: Date;
|
|
3049
3084
|
/**
|
|
3050
3085
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3073,7 +3108,7 @@ interface DomainEventBodyOneOf$2 {
|
|
|
3073
3108
|
interface EntityCreatedEvent$2 {
|
|
3074
3109
|
entity?: string;
|
|
3075
3110
|
}
|
|
3076
|
-
interface
|
|
3111
|
+
interface RestoreInfo$2 {
|
|
3077
3112
|
deletedDate?: Date;
|
|
3078
3113
|
}
|
|
3079
3114
|
interface EntityUpdatedEvent$2 {
|
|
@@ -3094,22 +3129,22 @@ interface ActionEvent$2 {
|
|
|
3094
3129
|
interface Empty$1 {
|
|
3095
3130
|
}
|
|
3096
3131
|
interface SuccessfulReferralEvent$1 {
|
|
3097
|
-
/**
|
|
3132
|
+
/** Details of the referred friend who completed their referral. */
|
|
3098
3133
|
referredFriendDetails?: ReferredFriendDetails$1;
|
|
3099
3134
|
}
|
|
3100
3135
|
interface ReferredFriendDetails$1 {
|
|
3101
3136
|
/**
|
|
3102
|
-
*
|
|
3137
|
+
* ID of the referred friend.
|
|
3103
3138
|
* @readonly
|
|
3104
3139
|
*/
|
|
3105
3140
|
referredFriendId?: string;
|
|
3106
3141
|
/**
|
|
3107
|
-
*
|
|
3142
|
+
* Contact ID of the referred friend.
|
|
3108
3143
|
* @readonly
|
|
3109
3144
|
*/
|
|
3110
3145
|
contactId?: string;
|
|
3111
3146
|
/**
|
|
3112
|
-
*
|
|
3147
|
+
* ID of the customer who referred this friend.
|
|
3113
3148
|
* @readonly
|
|
3114
3149
|
*/
|
|
3115
3150
|
referringCustomerId?: string;
|
|
@@ -3199,37 +3234,40 @@ interface QueryReferralRewardsResponseNonNullableFields {
|
|
|
3199
3234
|
referralRewards: ReferralRewardNonNullableFields[];
|
|
3200
3235
|
}
|
|
3201
3236
|
interface QueryReferralRewardsOptions {
|
|
3202
|
-
/**
|
|
3237
|
+
/** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
|
|
3203
3238
|
contactId?: string | null;
|
|
3204
3239
|
}
|
|
3205
3240
|
|
|
3206
3241
|
declare function getReferralReward$1(httpClient: HttpClient): GetReferralRewardSignature;
|
|
3207
3242
|
interface GetReferralRewardSignature {
|
|
3208
3243
|
/**
|
|
3209
|
-
*
|
|
3210
|
-
* @param -
|
|
3211
|
-
* @returns
|
|
3244
|
+
* Retrieves a referral reward.
|
|
3245
|
+
* @param - Referral reward ID.
|
|
3246
|
+
* @returns Retrieved referral reward.
|
|
3212
3247
|
*/
|
|
3213
3248
|
(_id: string): Promise<ReferralReward & ReferralRewardNonNullableFields>;
|
|
3214
3249
|
}
|
|
3215
3250
|
declare function queryReferralRewards$1(httpClient: HttpClient): QueryReferralRewardsSignature;
|
|
3216
3251
|
interface QueryReferralRewardsSignature {
|
|
3217
3252
|
/**
|
|
3218
|
-
*
|
|
3253
|
+
* Retrieves a list of referral rewards, given the provided paging, filtering, and sorting.
|
|
3219
3254
|
*
|
|
3220
|
-
*
|
|
3221
|
-
*
|
|
3222
|
-
*
|
|
3255
|
+
* You can filter the results by:
|
|
3256
|
+
* - `contact_id`: Set to `me` to return rewards for the current identity.
|
|
3257
|
+
* - `owner_type`.
|
|
3258
|
+
* - `reward_type`.
|
|
3259
|
+
*
|
|
3260
|
+
* To learn about working with _Query_ endpoints, see
|
|
3261
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
3262
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
3263
|
+
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
3264
|
+
* @param - Query to filter referral rewards.
|
|
3223
3265
|
*/
|
|
3224
3266
|
(query: CursorQuery$2, options?: QueryReferralRewardsOptions | undefined): Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
|
|
3225
3267
|
}
|
|
3226
3268
|
|
|
3227
|
-
declare
|
|
3228
|
-
|
|
3229
|
-
type _publicGetReferralRewardType = typeof getReferralReward$1;
|
|
3230
|
-
declare const getReferralReward: ReturnType<typeof createRESTModule$2<_publicGetReferralRewardType>>;
|
|
3231
|
-
type _publicQueryReferralRewardsType = typeof queryReferralRewards$1;
|
|
3232
|
-
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;
|
|
3233
3271
|
|
|
3234
3272
|
type index_d$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
3235
3273
|
type index_d$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
@@ -3261,17 +3299,14 @@ declare const index_d$2_RewardTypeType: typeof RewardTypeType;
|
|
|
3261
3299
|
type index_d$2_RewardsInSite = RewardsInSite;
|
|
3262
3300
|
type index_d$2_Type = Type;
|
|
3263
3301
|
declare const index_d$2_Type: typeof Type;
|
|
3264
|
-
type index_d$2_UndeleteInfo = UndeleteInfo;
|
|
3265
3302
|
type index_d$2_V1Coupon = V1Coupon;
|
|
3266
3303
|
type index_d$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
3267
3304
|
type index_d$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
3268
3305
|
type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
3269
|
-
type index_d$2__publicGetReferralRewardType = _publicGetReferralRewardType;
|
|
3270
|
-
type index_d$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
|
|
3271
3306
|
declare const index_d$2_getReferralReward: typeof getReferralReward;
|
|
3272
3307
|
declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
|
|
3273
3308
|
declare namespace index_d$2 {
|
|
3274
|
-
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 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$
|
|
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 };
|
|
3275
3310
|
}
|
|
3276
3311
|
|
|
3277
3312
|
interface ReferredFriend {
|
|
@@ -3846,22 +3881,14 @@ declare const onReferredFriendCreated$1: EventDefinition<ReferredFriendCreatedEn
|
|
|
3846
3881
|
declare const onReferredFriendUpdated$1: EventDefinition<ReferredFriendUpdatedEnvelope, "wix.loyalty.referral.v1.referred_friend_updated">;
|
|
3847
3882
|
declare const onReferredFriendDeleted$1: EventDefinition<ReferredFriendDeletedEnvelope, "wix.loyalty.referral.v1.referred_friend_deleted">;
|
|
3848
3883
|
|
|
3849
|
-
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3850
|
-
|
|
3851
3884
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3852
3885
|
|
|
3853
|
-
|
|
3854
|
-
declare const
|
|
3855
|
-
|
|
3856
|
-
declare const
|
|
3857
|
-
|
|
3858
|
-
declare const
|
|
3859
|
-
type _publicUpdateReferredFriendType = typeof updateReferredFriend$1;
|
|
3860
|
-
declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<_publicUpdateReferredFriendType>>;
|
|
3861
|
-
type _publicDeleteReferredFriendType = typeof deleteReferredFriend$1;
|
|
3862
|
-
declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<_publicDeleteReferredFriendType>>;
|
|
3863
|
-
type _publicQueryReferredFriendType = typeof queryReferredFriend$1;
|
|
3864
|
-
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;
|
|
3865
3892
|
|
|
3866
3893
|
type _publicOnReferredFriendCreatedType = typeof onReferredFriendCreated$1;
|
|
3867
3894
|
/** */
|
|
@@ -3907,15 +3934,9 @@ type index_d$1_UpdateReferredFriend = UpdateReferredFriend;
|
|
|
3907
3934
|
type index_d$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
|
|
3908
3935
|
type index_d$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
|
|
3909
3936
|
type index_d$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
|
|
3910
|
-
type index_d$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
|
|
3911
|
-
type index_d$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
|
|
3912
|
-
type index_d$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
|
|
3913
|
-
type index_d$1__publicGetReferredFriendType = _publicGetReferredFriendType;
|
|
3914
3937
|
type index_d$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
|
|
3915
3938
|
type index_d$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
|
|
3916
3939
|
type index_d$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
|
|
3917
|
-
type index_d$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
|
|
3918
|
-
type index_d$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
|
|
3919
3940
|
declare const index_d$1_createReferredFriend: typeof createReferredFriend;
|
|
3920
3941
|
declare const index_d$1_deleteReferredFriend: typeof deleteReferredFriend;
|
|
3921
3942
|
declare const index_d$1_getReferredFriend: typeof getReferredFriend;
|
|
@@ -3926,7 +3947,7 @@ declare const index_d$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
|
|
|
3926
3947
|
declare const index_d$1_queryReferredFriend: typeof queryReferredFriend;
|
|
3927
3948
|
declare const index_d$1_updateReferredFriend: typeof updateReferredFriend;
|
|
3928
3949
|
declare namespace index_d$1 {
|
|
3929
|
-
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 };
|
|
3930
3951
|
}
|
|
3931
3952
|
|
|
3932
3953
|
/** ReferringCustomer is the main entity of ReferringCustomers. */
|
|
@@ -4392,20 +4413,13 @@ interface DeleteReferringCustomerSignature {
|
|
|
4392
4413
|
declare const onReferringCustomerCreated$1: EventDefinition<ReferringCustomerCreatedEnvelope, "wix.loyalty.referral.v1.referring_customer_created">;
|
|
4393
4414
|
declare const onReferringCustomerDeleted$1: EventDefinition<ReferringCustomerDeletedEnvelope, "wix.loyalty.referral.v1.referring_customer_deleted">;
|
|
4394
4415
|
|
|
4395
|
-
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4396
|
-
|
|
4397
4416
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4398
4417
|
|
|
4399
|
-
|
|
4400
|
-
declare const
|
|
4401
|
-
|
|
4402
|
-
declare const
|
|
4403
|
-
|
|
4404
|
-
declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<_publicGetReferringCustomerByReferralCodeType>>;
|
|
4405
|
-
type _publicQueryReferringCustomersType = typeof queryReferringCustomers$1;
|
|
4406
|
-
declare const queryReferringCustomers: ReturnType<typeof createRESTModule<_publicQueryReferringCustomersType>>;
|
|
4407
|
-
type _publicDeleteReferringCustomerType = typeof deleteReferringCustomer$1;
|
|
4408
|
-
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;
|
|
4409
4423
|
|
|
4410
4424
|
type _publicOnReferringCustomerCreatedType = typeof onReferringCustomerCreated$1;
|
|
4411
4425
|
/** */
|
|
@@ -4458,13 +4472,8 @@ declare const index_d_SortOrder: typeof SortOrder;
|
|
|
4458
4472
|
type index_d_Sorting = Sorting;
|
|
4459
4473
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4460
4474
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4461
|
-
type index_d__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
|
|
4462
|
-
type index_d__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
|
|
4463
|
-
type index_d__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
|
|
4464
|
-
type index_d__publicGetReferringCustomerType = _publicGetReferringCustomerType;
|
|
4465
4475
|
type index_d__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
|
|
4466
4476
|
type index_d__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
|
|
4467
|
-
type index_d__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
|
|
4468
4477
|
declare const index_d_deleteReferringCustomer: typeof deleteReferringCustomer;
|
|
4469
4478
|
declare const index_d_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
|
|
4470
4479
|
declare const index_d_getReferringCustomer: typeof getReferringCustomer;
|
|
@@ -4473,7 +4482,7 @@ declare const index_d_onReferringCustomerCreated: typeof onReferringCustomerCrea
|
|
|
4473
4482
|
declare const index_d_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
|
|
4474
4483
|
declare const index_d_queryReferringCustomers: typeof queryReferringCustomers;
|
|
4475
4484
|
declare namespace index_d {
|
|
4476
|
-
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 };
|
|
4477
4486
|
}
|
|
4478
4487
|
|
|
4479
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 };
|