@wix/referral 1.0.29 → 1.0.31
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/referral",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/referral_customers": "1.0.
|
|
22
|
-
"@wix/referral_friends": "1.0.
|
|
23
|
-
"@wix/referral_programs": "1.0.
|
|
24
|
-
"@wix/referral_rewards": "1.0.
|
|
25
|
-
"@wix/referral_tracker": "1.0.
|
|
21
|
+
"@wix/referral_customers": "1.0.13",
|
|
22
|
+
"@wix/referral_friends": "1.0.10",
|
|
23
|
+
"@wix/referral_programs": "1.0.18",
|
|
24
|
+
"@wix/referral_rewards": "1.0.13",
|
|
25
|
+
"@wix/referral_tracker": "1.0.15"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"glob": "^10.4.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "1b8665aae270d0132f239fd9950b1ddf08d7651ea5bd03f198c6e78b"
|
|
51
51
|
}
|
|
@@ -676,85 +676,6 @@ interface ProgramInSite {
|
|
|
676
676
|
/** Retrieved referral program. */
|
|
677
677
|
referralProgram?: ReferralProgram;
|
|
678
678
|
}
|
|
679
|
-
interface QueryReferralProgramsRequest {
|
|
680
|
-
/** Query options. */
|
|
681
|
-
query: CursorQuery$4;
|
|
682
|
-
}
|
|
683
|
-
interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
|
|
684
|
-
/**
|
|
685
|
-
* Cursor paging options.
|
|
686
|
-
*
|
|
687
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
688
|
-
*/
|
|
689
|
-
cursorPaging?: CursorPaging$4;
|
|
690
|
-
/**
|
|
691
|
-
* Filter object.
|
|
692
|
-
*
|
|
693
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
694
|
-
*/
|
|
695
|
-
filter?: Record<string, any> | null;
|
|
696
|
-
/**
|
|
697
|
-
* Sort object.
|
|
698
|
-
*
|
|
699
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
700
|
-
*/
|
|
701
|
-
sort?: Sorting$4[];
|
|
702
|
-
}
|
|
703
|
-
/** @oneof */
|
|
704
|
-
interface CursorQueryPagingMethodOneOf$4 {
|
|
705
|
-
/**
|
|
706
|
-
* Cursor paging options.
|
|
707
|
-
*
|
|
708
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
709
|
-
*/
|
|
710
|
-
cursorPaging?: CursorPaging$4;
|
|
711
|
-
}
|
|
712
|
-
interface Sorting$4 {
|
|
713
|
-
/** Name of the field to sort by. */
|
|
714
|
-
fieldName?: string;
|
|
715
|
-
/** Sort order. */
|
|
716
|
-
order?: SortOrder$4;
|
|
717
|
-
}
|
|
718
|
-
declare enum SortOrder$4 {
|
|
719
|
-
ASC = "ASC",
|
|
720
|
-
DESC = "DESC"
|
|
721
|
-
}
|
|
722
|
-
interface CursorPaging$4 {
|
|
723
|
-
/** Maximum number of items to return in the results. */
|
|
724
|
-
limit?: number | null;
|
|
725
|
-
/**
|
|
726
|
-
* Pointer to the next or previous page in the list of results.
|
|
727
|
-
*
|
|
728
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
729
|
-
* Not relevant for the first request.
|
|
730
|
-
*/
|
|
731
|
-
cursor?: string | null;
|
|
732
|
-
}
|
|
733
|
-
interface QueryReferralProgramsResponse {
|
|
734
|
-
/** Referral programs matching the query. */
|
|
735
|
-
referralPrograms?: ReferralProgram[];
|
|
736
|
-
/** Paging metadata. */
|
|
737
|
-
pagingMetadata?: CursorPagingMetadata$4;
|
|
738
|
-
}
|
|
739
|
-
interface CursorPagingMetadata$4 {
|
|
740
|
-
/** Number of items returned in current page. */
|
|
741
|
-
count?: number | null;
|
|
742
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
743
|
-
cursors?: Cursors$4;
|
|
744
|
-
/**
|
|
745
|
-
* Whether there are more pages to retrieve following the current page.
|
|
746
|
-
*
|
|
747
|
-
* + `true`: Another page of results can be retrieved.
|
|
748
|
-
* + `false`: This is the last page.
|
|
749
|
-
*/
|
|
750
|
-
hasNext?: boolean | null;
|
|
751
|
-
}
|
|
752
|
-
interface Cursors$4 {
|
|
753
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
754
|
-
next?: string | null;
|
|
755
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
756
|
-
prev?: string | null;
|
|
757
|
-
}
|
|
758
679
|
interface UpdateReferralProgramRequest {
|
|
759
680
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
760
681
|
referralProgram: ReferralProgram;
|
|
@@ -919,7 +840,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
919
840
|
version?: string;
|
|
920
841
|
/** A timestamp of the event. */
|
|
921
842
|
timestamp?: string;
|
|
922
|
-
/**
|
|
843
|
+
/**
|
|
844
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
845
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
846
|
+
*/
|
|
923
847
|
assets?: Asset[];
|
|
924
848
|
}
|
|
925
849
|
/** @oneof */
|
|
@@ -1805,9 +1729,6 @@ interface ReferralProgramNonNullableFields {
|
|
|
1805
1729
|
interface GetReferralProgramResponseNonNullableFields {
|
|
1806
1730
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1807
1731
|
}
|
|
1808
|
-
interface QueryReferralProgramsResponseNonNullableFields {
|
|
1809
|
-
referralPrograms: ReferralProgramNonNullableFields[];
|
|
1810
|
-
}
|
|
1811
1732
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
1812
1733
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1813
1734
|
}
|
|
@@ -1880,31 +1801,6 @@ interface ProgramUpdatedEnvelope {
|
|
|
1880
1801
|
entity: ReferralProgram;
|
|
1881
1802
|
metadata: EventMetadata$3;
|
|
1882
1803
|
}
|
|
1883
|
-
interface QueryCursorResult$4 {
|
|
1884
|
-
cursors: Cursors$4;
|
|
1885
|
-
hasNext: () => boolean;
|
|
1886
|
-
hasPrev: () => boolean;
|
|
1887
|
-
length: number;
|
|
1888
|
-
pageSize: number;
|
|
1889
|
-
}
|
|
1890
|
-
interface ReferralProgramsQueryResult extends QueryCursorResult$4 {
|
|
1891
|
-
items: ReferralProgram[];
|
|
1892
|
-
query: ReferralProgramsQueryBuilder;
|
|
1893
|
-
next: () => Promise<ReferralProgramsQueryResult>;
|
|
1894
|
-
prev: () => Promise<ReferralProgramsQueryResult>;
|
|
1895
|
-
}
|
|
1896
|
-
interface ReferralProgramsQueryBuilder {
|
|
1897
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1898
|
-
* @documentationMaturity preview
|
|
1899
|
-
*/
|
|
1900
|
-
limit: (limit: number) => ReferralProgramsQueryBuilder;
|
|
1901
|
-
/** @param cursor - A pointer to specific record
|
|
1902
|
-
* @documentationMaturity preview
|
|
1903
|
-
*/
|
|
1904
|
-
skipTo: (cursor: string) => ReferralProgramsQueryBuilder;
|
|
1905
|
-
/** @documentationMaturity preview */
|
|
1906
|
-
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1907
|
-
}
|
|
1908
1804
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1909
1805
|
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
1910
1806
|
topic?: string;
|
|
@@ -1921,19 +1817,6 @@ interface GetReferralProgramSignature {
|
|
|
1921
1817
|
*/
|
|
1922
1818
|
(): Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
|
|
1923
1819
|
}
|
|
1924
|
-
declare function queryReferralPrograms$1(httpClient: HttpClient): QueryReferralProgramsSignature;
|
|
1925
|
-
interface QueryReferralProgramsSignature {
|
|
1926
|
-
/**
|
|
1927
|
-
* Retrieves a list of referral programs, given the provided paging, filtering, and sorting.
|
|
1928
|
-
*
|
|
1929
|
-
* To learn about working with _Query_ method, see
|
|
1930
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
1931
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
1932
|
-
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
1933
|
-
* @deprecated
|
|
1934
|
-
*/
|
|
1935
|
-
(): ReferralProgramsQueryBuilder;
|
|
1936
|
-
}
|
|
1937
1820
|
declare function updateReferralProgram$1(httpClient: HttpClient): UpdateReferralProgramSignature;
|
|
1938
1821
|
interface UpdateReferralProgramSignature {
|
|
1939
1822
|
/**
|
|
@@ -2012,7 +1895,6 @@ declare global {
|
|
|
2012
1895
|
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
2013
1896
|
|
|
2014
1897
|
declare const getReferralProgram: MaybeContext<BuildRESTFunction<typeof getReferralProgram$1> & typeof getReferralProgram$1>;
|
|
2015
|
-
declare const queryReferralPrograms: MaybeContext<BuildRESTFunction<typeof queryReferralPrograms$1> & typeof queryReferralPrograms$1>;
|
|
2016
1898
|
declare const updateReferralProgram: MaybeContext<BuildRESTFunction<typeof updateReferralProgram$1> & typeof updateReferralProgram$1>;
|
|
2017
1899
|
declare const activateReferralProgram: MaybeContext<BuildRESTFunction<typeof activateReferralProgram$1> & typeof activateReferralProgram$1>;
|
|
2018
1900
|
declare const pauseReferralProgram: MaybeContext<BuildRESTFunction<typeof pauseReferralProgram$1> & typeof pauseReferralProgram$1>;
|
|
@@ -2090,16 +1972,11 @@ declare const context$4_ProgramStatus: typeof ProgramStatus;
|
|
|
2090
1972
|
type context$4_ProgramUpdatedEnvelope = ProgramUpdatedEnvelope;
|
|
2091
1973
|
type context$4_ProviderName = ProviderName;
|
|
2092
1974
|
declare const context$4_ProviderName: typeof ProviderName;
|
|
2093
|
-
type context$4_QueryReferralProgramsRequest = QueryReferralProgramsRequest;
|
|
2094
|
-
type context$4_QueryReferralProgramsResponse = QueryReferralProgramsResponse;
|
|
2095
|
-
type context$4_QueryReferralProgramsResponseNonNullableFields = QueryReferralProgramsResponseNonNullableFields;
|
|
2096
1975
|
type context$4_ReactivationData = ReactivationData;
|
|
2097
1976
|
type context$4_ReactivationReasonEnum = ReactivationReasonEnum;
|
|
2098
1977
|
declare const context$4_ReactivationReasonEnum: typeof ReactivationReasonEnum;
|
|
2099
1978
|
type context$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
2100
1979
|
type context$4_ReferralProgram = ReferralProgram;
|
|
2101
|
-
type context$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
2102
|
-
type context$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
2103
1980
|
type context$4_ServiceProvisioned = ServiceProvisioned;
|
|
2104
1981
|
type context$4_ServiceRemoved = ServiceRemoved;
|
|
2105
1982
|
type context$4_SiteCreated = SiteCreated;
|
|
@@ -2145,10 +2022,9 @@ declare const context$4_getReferralProgram: typeof getReferralProgram;
|
|
|
2145
2022
|
declare const context$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
2146
2023
|
declare const context$4_onProgramUpdated: typeof onProgramUpdated;
|
|
2147
2024
|
declare const context$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
2148
|
-
declare const context$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
2149
2025
|
declare const context$4_updateReferralProgram: typeof updateReferralProgram;
|
|
2150
2026
|
declare namespace context$4 {
|
|
2151
|
-
export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type
|
|
2027
|
+
export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, context$4_activateReferralProgram as activateReferralProgram, context$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, context$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, context$4_getReferralProgram as getReferralProgram, context$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, context$4_onProgramUpdated as onProgramUpdated, context$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, context$4_updateReferralProgram as updateReferralProgram };
|
|
2152
2028
|
}
|
|
2153
2029
|
|
|
2154
2030
|
interface ReferralEvent extends ReferralEventEventTypeOneOf {
|
|
@@ -676,85 +676,6 @@ interface ProgramInSite {
|
|
|
676
676
|
/** Retrieved referral program. */
|
|
677
677
|
referralProgram?: ReferralProgram;
|
|
678
678
|
}
|
|
679
|
-
interface QueryReferralProgramsRequest {
|
|
680
|
-
/** Query options. */
|
|
681
|
-
query: CursorQuery$4;
|
|
682
|
-
}
|
|
683
|
-
interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
|
|
684
|
-
/**
|
|
685
|
-
* Cursor paging options.
|
|
686
|
-
*
|
|
687
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
688
|
-
*/
|
|
689
|
-
cursorPaging?: CursorPaging$4;
|
|
690
|
-
/**
|
|
691
|
-
* Filter object.
|
|
692
|
-
*
|
|
693
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
694
|
-
*/
|
|
695
|
-
filter?: Record<string, any> | null;
|
|
696
|
-
/**
|
|
697
|
-
* Sort object.
|
|
698
|
-
*
|
|
699
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
700
|
-
*/
|
|
701
|
-
sort?: Sorting$4[];
|
|
702
|
-
}
|
|
703
|
-
/** @oneof */
|
|
704
|
-
interface CursorQueryPagingMethodOneOf$4 {
|
|
705
|
-
/**
|
|
706
|
-
* Cursor paging options.
|
|
707
|
-
*
|
|
708
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
709
|
-
*/
|
|
710
|
-
cursorPaging?: CursorPaging$4;
|
|
711
|
-
}
|
|
712
|
-
interface Sorting$4 {
|
|
713
|
-
/** Name of the field to sort by. */
|
|
714
|
-
fieldName?: string;
|
|
715
|
-
/** Sort order. */
|
|
716
|
-
order?: SortOrder$4;
|
|
717
|
-
}
|
|
718
|
-
declare enum SortOrder$4 {
|
|
719
|
-
ASC = "ASC",
|
|
720
|
-
DESC = "DESC"
|
|
721
|
-
}
|
|
722
|
-
interface CursorPaging$4 {
|
|
723
|
-
/** Maximum number of items to return in the results. */
|
|
724
|
-
limit?: number | null;
|
|
725
|
-
/**
|
|
726
|
-
* Pointer to the next or previous page in the list of results.
|
|
727
|
-
*
|
|
728
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
729
|
-
* Not relevant for the first request.
|
|
730
|
-
*/
|
|
731
|
-
cursor?: string | null;
|
|
732
|
-
}
|
|
733
|
-
interface QueryReferralProgramsResponse {
|
|
734
|
-
/** Referral programs matching the query. */
|
|
735
|
-
referralPrograms?: ReferralProgram[];
|
|
736
|
-
/** Paging metadata. */
|
|
737
|
-
pagingMetadata?: CursorPagingMetadata$4;
|
|
738
|
-
}
|
|
739
|
-
interface CursorPagingMetadata$4 {
|
|
740
|
-
/** Number of items returned in current page. */
|
|
741
|
-
count?: number | null;
|
|
742
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
743
|
-
cursors?: Cursors$4;
|
|
744
|
-
/**
|
|
745
|
-
* Whether there are more pages to retrieve following the current page.
|
|
746
|
-
*
|
|
747
|
-
* + `true`: Another page of results can be retrieved.
|
|
748
|
-
* + `false`: This is the last page.
|
|
749
|
-
*/
|
|
750
|
-
hasNext?: boolean | null;
|
|
751
|
-
}
|
|
752
|
-
interface Cursors$4 {
|
|
753
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
754
|
-
next?: string | null;
|
|
755
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
756
|
-
prev?: string | null;
|
|
757
|
-
}
|
|
758
679
|
interface UpdateReferralProgramRequest {
|
|
759
680
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
760
681
|
referralProgram: ReferralProgram;
|
|
@@ -919,7 +840,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
919
840
|
version?: string;
|
|
920
841
|
/** A timestamp of the event. */
|
|
921
842
|
timestamp?: string;
|
|
922
|
-
/**
|
|
843
|
+
/**
|
|
844
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
845
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
846
|
+
*/
|
|
923
847
|
assets?: Asset[];
|
|
924
848
|
}
|
|
925
849
|
/** @oneof */
|
|
@@ -1805,9 +1729,6 @@ interface ReferralProgramNonNullableFields {
|
|
|
1805
1729
|
interface GetReferralProgramResponseNonNullableFields {
|
|
1806
1730
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1807
1731
|
}
|
|
1808
|
-
interface QueryReferralProgramsResponseNonNullableFields {
|
|
1809
|
-
referralPrograms: ReferralProgramNonNullableFields[];
|
|
1810
|
-
}
|
|
1811
1732
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
1812
1733
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1813
1734
|
}
|
|
@@ -1880,31 +1801,6 @@ interface ProgramUpdatedEnvelope {
|
|
|
1880
1801
|
entity: ReferralProgram;
|
|
1881
1802
|
metadata: EventMetadata$3;
|
|
1882
1803
|
}
|
|
1883
|
-
interface QueryCursorResult$4 {
|
|
1884
|
-
cursors: Cursors$4;
|
|
1885
|
-
hasNext: () => boolean;
|
|
1886
|
-
hasPrev: () => boolean;
|
|
1887
|
-
length: number;
|
|
1888
|
-
pageSize: number;
|
|
1889
|
-
}
|
|
1890
|
-
interface ReferralProgramsQueryResult extends QueryCursorResult$4 {
|
|
1891
|
-
items: ReferralProgram[];
|
|
1892
|
-
query: ReferralProgramsQueryBuilder;
|
|
1893
|
-
next: () => Promise<ReferralProgramsQueryResult>;
|
|
1894
|
-
prev: () => Promise<ReferralProgramsQueryResult>;
|
|
1895
|
-
}
|
|
1896
|
-
interface ReferralProgramsQueryBuilder {
|
|
1897
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1898
|
-
* @documentationMaturity preview
|
|
1899
|
-
*/
|
|
1900
|
-
limit: (limit: number) => ReferralProgramsQueryBuilder;
|
|
1901
|
-
/** @param cursor - A pointer to specific record
|
|
1902
|
-
* @documentationMaturity preview
|
|
1903
|
-
*/
|
|
1904
|
-
skipTo: (cursor: string) => ReferralProgramsQueryBuilder;
|
|
1905
|
-
/** @documentationMaturity preview */
|
|
1906
|
-
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1907
|
-
}
|
|
1908
1804
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1909
1805
|
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
1910
1806
|
topic?: string;
|
|
@@ -1921,19 +1817,6 @@ interface GetReferralProgramSignature {
|
|
|
1921
1817
|
*/
|
|
1922
1818
|
(): Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
|
|
1923
1819
|
}
|
|
1924
|
-
declare function queryReferralPrograms$1(httpClient: HttpClient): QueryReferralProgramsSignature;
|
|
1925
|
-
interface QueryReferralProgramsSignature {
|
|
1926
|
-
/**
|
|
1927
|
-
* Retrieves a list of referral programs, given the provided paging, filtering, and sorting.
|
|
1928
|
-
*
|
|
1929
|
-
* To learn about working with _Query_ method, see
|
|
1930
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
1931
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
1932
|
-
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
1933
|
-
* @deprecated
|
|
1934
|
-
*/
|
|
1935
|
-
(): ReferralProgramsQueryBuilder;
|
|
1936
|
-
}
|
|
1937
1820
|
declare function updateReferralProgram$1(httpClient: HttpClient): UpdateReferralProgramSignature;
|
|
1938
1821
|
interface UpdateReferralProgramSignature {
|
|
1939
1822
|
/**
|
|
@@ -2012,7 +1895,6 @@ declare global {
|
|
|
2012
1895
|
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
2013
1896
|
|
|
2014
1897
|
declare const getReferralProgram: MaybeContext<BuildRESTFunction<typeof getReferralProgram$1> & typeof getReferralProgram$1>;
|
|
2015
|
-
declare const queryReferralPrograms: MaybeContext<BuildRESTFunction<typeof queryReferralPrograms$1> & typeof queryReferralPrograms$1>;
|
|
2016
1898
|
declare const updateReferralProgram: MaybeContext<BuildRESTFunction<typeof updateReferralProgram$1> & typeof updateReferralProgram$1>;
|
|
2017
1899
|
declare const activateReferralProgram: MaybeContext<BuildRESTFunction<typeof activateReferralProgram$1> & typeof activateReferralProgram$1>;
|
|
2018
1900
|
declare const pauseReferralProgram: MaybeContext<BuildRESTFunction<typeof pauseReferralProgram$1> & typeof pauseReferralProgram$1>;
|
|
@@ -2090,16 +1972,11 @@ declare const index_d$4_ProgramStatus: typeof ProgramStatus;
|
|
|
2090
1972
|
type index_d$4_ProgramUpdatedEnvelope = ProgramUpdatedEnvelope;
|
|
2091
1973
|
type index_d$4_ProviderName = ProviderName;
|
|
2092
1974
|
declare const index_d$4_ProviderName: typeof ProviderName;
|
|
2093
|
-
type index_d$4_QueryReferralProgramsRequest = QueryReferralProgramsRequest;
|
|
2094
|
-
type index_d$4_QueryReferralProgramsResponse = QueryReferralProgramsResponse;
|
|
2095
|
-
type index_d$4_QueryReferralProgramsResponseNonNullableFields = QueryReferralProgramsResponseNonNullableFields;
|
|
2096
1975
|
type index_d$4_ReactivationData = ReactivationData;
|
|
2097
1976
|
type index_d$4_ReactivationReasonEnum = ReactivationReasonEnum;
|
|
2098
1977
|
declare const index_d$4_ReactivationReasonEnum: typeof ReactivationReasonEnum;
|
|
2099
1978
|
type index_d$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
2100
1979
|
type index_d$4_ReferralProgram = ReferralProgram;
|
|
2101
|
-
type index_d$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
2102
|
-
type index_d$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
2103
1980
|
type index_d$4_ServiceProvisioned = ServiceProvisioned;
|
|
2104
1981
|
type index_d$4_ServiceRemoved = ServiceRemoved;
|
|
2105
1982
|
type index_d$4_SiteCreated = SiteCreated;
|
|
@@ -2145,10 +2022,9 @@ declare const index_d$4_getReferralProgram: typeof getReferralProgram;
|
|
|
2145
2022
|
declare const index_d$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
2146
2023
|
declare const index_d$4_onProgramUpdated: typeof onProgramUpdated;
|
|
2147
2024
|
declare const index_d$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
2148
|
-
declare const index_d$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
2149
2025
|
declare const index_d$4_updateReferralProgram: typeof updateReferralProgram;
|
|
2150
2026
|
declare namespace index_d$4 {
|
|
2151
|
-
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
|
|
2027
|
+
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 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_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, 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, 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_updateReferralProgram as updateReferralProgram };
|
|
2152
2028
|
}
|
|
2153
2029
|
|
|
2154
2030
|
interface ReferralEvent extends ReferralEventEventTypeOneOf {
|
|
@@ -254,85 +254,6 @@ interface GetReferralProgramResponse$1 {
|
|
|
254
254
|
/** Retrieved referral program. */
|
|
255
255
|
referralProgram?: ReferralProgram$1;
|
|
256
256
|
}
|
|
257
|
-
interface QueryReferralProgramsRequest$1 {
|
|
258
|
-
/** Query options. */
|
|
259
|
-
query: CursorQuery$9;
|
|
260
|
-
}
|
|
261
|
-
interface CursorQuery$9 extends CursorQueryPagingMethodOneOf$9 {
|
|
262
|
-
/**
|
|
263
|
-
* Cursor paging options.
|
|
264
|
-
*
|
|
265
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
266
|
-
*/
|
|
267
|
-
cursorPaging?: CursorPaging$9;
|
|
268
|
-
/**
|
|
269
|
-
* Filter object.
|
|
270
|
-
*
|
|
271
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
272
|
-
*/
|
|
273
|
-
filter?: Record<string, any> | null;
|
|
274
|
-
/**
|
|
275
|
-
* Sort object.
|
|
276
|
-
*
|
|
277
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
278
|
-
*/
|
|
279
|
-
sort?: Sorting$9[];
|
|
280
|
-
}
|
|
281
|
-
/** @oneof */
|
|
282
|
-
interface CursorQueryPagingMethodOneOf$9 {
|
|
283
|
-
/**
|
|
284
|
-
* Cursor paging options.
|
|
285
|
-
*
|
|
286
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
287
|
-
*/
|
|
288
|
-
cursorPaging?: CursorPaging$9;
|
|
289
|
-
}
|
|
290
|
-
interface Sorting$9 {
|
|
291
|
-
/** Name of the field to sort by. */
|
|
292
|
-
fieldName?: string;
|
|
293
|
-
/** Sort order. */
|
|
294
|
-
order?: SortOrder$9;
|
|
295
|
-
}
|
|
296
|
-
declare enum SortOrder$9 {
|
|
297
|
-
ASC = "ASC",
|
|
298
|
-
DESC = "DESC"
|
|
299
|
-
}
|
|
300
|
-
interface CursorPaging$9 {
|
|
301
|
-
/** Maximum number of items to return in the results. */
|
|
302
|
-
limit?: number | null;
|
|
303
|
-
/**
|
|
304
|
-
* Pointer to the next or previous page in the list of results.
|
|
305
|
-
*
|
|
306
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
307
|
-
* Not relevant for the first request.
|
|
308
|
-
*/
|
|
309
|
-
cursor?: string | null;
|
|
310
|
-
}
|
|
311
|
-
interface QueryReferralProgramsResponse$1 {
|
|
312
|
-
/** Referral programs matching the query. */
|
|
313
|
-
referralPrograms?: ReferralProgram$1[];
|
|
314
|
-
/** Paging metadata. */
|
|
315
|
-
pagingMetadata?: CursorPagingMetadata$9;
|
|
316
|
-
}
|
|
317
|
-
interface CursorPagingMetadata$9 {
|
|
318
|
-
/** Number of items returned in current page. */
|
|
319
|
-
count?: number | null;
|
|
320
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
321
|
-
cursors?: Cursors$9;
|
|
322
|
-
/**
|
|
323
|
-
* Whether there are more pages to retrieve following the current page.
|
|
324
|
-
*
|
|
325
|
-
* + `true`: Another page of results can be retrieved.
|
|
326
|
-
* + `false`: This is the last page.
|
|
327
|
-
*/
|
|
328
|
-
hasNext?: boolean | null;
|
|
329
|
-
}
|
|
330
|
-
interface Cursors$9 {
|
|
331
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
332
|
-
next?: string | null;
|
|
333
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
334
|
-
prev?: string | null;
|
|
335
|
-
}
|
|
336
257
|
interface UpdateReferralProgramRequest$1 {
|
|
337
258
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
338
259
|
referralProgram: ReferralProgram$1;
|
|
@@ -436,9 +357,6 @@ interface ReferralProgramNonNullableFields$1 {
|
|
|
436
357
|
interface GetReferralProgramResponseNonNullableFields$1 {
|
|
437
358
|
referralProgram?: ReferralProgramNonNullableFields$1;
|
|
438
359
|
}
|
|
439
|
-
interface QueryReferralProgramsResponseNonNullableFields$1 {
|
|
440
|
-
referralPrograms: ReferralProgramNonNullableFields$1[];
|
|
441
|
-
}
|
|
442
360
|
interface UpdateReferralProgramResponseNonNullableFields$1 {
|
|
443
361
|
referralProgram?: ReferralProgramNonNullableFields$1;
|
|
444
362
|
}
|
|
@@ -718,85 +636,6 @@ interface GetReferralProgramResponse {
|
|
|
718
636
|
/** Retrieved referral program. */
|
|
719
637
|
referralProgram?: ReferralProgram;
|
|
720
638
|
}
|
|
721
|
-
interface QueryReferralProgramsRequest {
|
|
722
|
-
/** Query options. */
|
|
723
|
-
query: CursorQuery$8;
|
|
724
|
-
}
|
|
725
|
-
interface CursorQuery$8 extends CursorQueryPagingMethodOneOf$8 {
|
|
726
|
-
/**
|
|
727
|
-
* Cursor paging options.
|
|
728
|
-
*
|
|
729
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
730
|
-
*/
|
|
731
|
-
cursorPaging?: CursorPaging$8;
|
|
732
|
-
/**
|
|
733
|
-
* Filter object.
|
|
734
|
-
*
|
|
735
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
736
|
-
*/
|
|
737
|
-
filter?: Record<string, any> | null;
|
|
738
|
-
/**
|
|
739
|
-
* Sort object.
|
|
740
|
-
*
|
|
741
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
742
|
-
*/
|
|
743
|
-
sort?: Sorting$8[];
|
|
744
|
-
}
|
|
745
|
-
/** @oneof */
|
|
746
|
-
interface CursorQueryPagingMethodOneOf$8 {
|
|
747
|
-
/**
|
|
748
|
-
* Cursor paging options.
|
|
749
|
-
*
|
|
750
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
751
|
-
*/
|
|
752
|
-
cursorPaging?: CursorPaging$8;
|
|
753
|
-
}
|
|
754
|
-
interface Sorting$8 {
|
|
755
|
-
/** Name of the field to sort by. */
|
|
756
|
-
fieldName?: string;
|
|
757
|
-
/** Sort order. */
|
|
758
|
-
order?: SortOrder$8;
|
|
759
|
-
}
|
|
760
|
-
declare enum SortOrder$8 {
|
|
761
|
-
ASC = "ASC",
|
|
762
|
-
DESC = "DESC"
|
|
763
|
-
}
|
|
764
|
-
interface CursorPaging$8 {
|
|
765
|
-
/** Maximum number of items to return in the results. */
|
|
766
|
-
limit?: number | null;
|
|
767
|
-
/**
|
|
768
|
-
* Pointer to the next or previous page in the list of results.
|
|
769
|
-
*
|
|
770
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
771
|
-
* Not relevant for the first request.
|
|
772
|
-
*/
|
|
773
|
-
cursor?: string | null;
|
|
774
|
-
}
|
|
775
|
-
interface QueryReferralProgramsResponse {
|
|
776
|
-
/** Referral programs matching the query. */
|
|
777
|
-
referralPrograms?: ReferralProgram[];
|
|
778
|
-
/** Paging metadata. */
|
|
779
|
-
pagingMetadata?: CursorPagingMetadata$8;
|
|
780
|
-
}
|
|
781
|
-
interface CursorPagingMetadata$8 {
|
|
782
|
-
/** Number of items returned in current page. */
|
|
783
|
-
count?: number | null;
|
|
784
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
785
|
-
cursors?: Cursors$8;
|
|
786
|
-
/**
|
|
787
|
-
* Whether there are more pages to retrieve following the current page.
|
|
788
|
-
*
|
|
789
|
-
* + `true`: Another page of results can be retrieved.
|
|
790
|
-
* + `false`: This is the last page.
|
|
791
|
-
*/
|
|
792
|
-
hasNext?: boolean | null;
|
|
793
|
-
}
|
|
794
|
-
interface Cursors$8 {
|
|
795
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
796
|
-
next?: string | null;
|
|
797
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
798
|
-
prev?: string | null;
|
|
799
|
-
}
|
|
800
639
|
interface UpdateReferralProgramRequest {
|
|
801
640
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
802
641
|
referralProgram: ReferralProgram;
|
|
@@ -900,9 +739,6 @@ interface ReferralProgramNonNullableFields {
|
|
|
900
739
|
interface GetReferralProgramResponseNonNullableFields {
|
|
901
740
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
902
741
|
}
|
|
903
|
-
interface QueryReferralProgramsResponseNonNullableFields {
|
|
904
|
-
referralPrograms: ReferralProgramNonNullableFields[];
|
|
905
|
-
}
|
|
906
742
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
907
743
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
908
744
|
}
|
|
@@ -937,7 +773,6 @@ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
937
773
|
__originalResponseType: R;
|
|
938
774
|
};
|
|
939
775
|
declare function getReferralProgram(): __PublicMethodMetaInfo$4<'GET', {}, GetReferralProgramRequest, GetReferralProgramRequest$1, GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields, GetReferralProgramResponse$1 & GetReferralProgramResponseNonNullableFields$1>;
|
|
940
|
-
declare function queryReferralPrograms(): __PublicMethodMetaInfo$4<'POST', {}, QueryReferralProgramsRequest, QueryReferralProgramsRequest$1, QueryReferralProgramsResponse & QueryReferralProgramsResponseNonNullableFields, QueryReferralProgramsResponse$1 & QueryReferralProgramsResponseNonNullableFields$1>;
|
|
941
776
|
declare function updateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, UpdateReferralProgramRequest, UpdateReferralProgramRequest$1, UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields, UpdateReferralProgramResponse$1 & UpdateReferralProgramResponseNonNullableFields$1>;
|
|
942
777
|
declare function activateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, ActivateReferralProgramRequest, ActivateReferralProgramRequest$1, ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields, ActivateReferralProgramResponse$1 & ActivateReferralProgramResponseNonNullableFields$1>;
|
|
943
778
|
declare function pauseReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, PauseReferralProgramRequest, PauseReferralProgramRequest$1, PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields, PauseReferralProgramResponse$1 & PauseReferralProgramResponseNonNullableFields$1>;
|
|
@@ -951,10 +786,9 @@ declare const meta$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPo
|
|
|
951
786
|
declare const meta$4_getReferralProgram: typeof getReferralProgram;
|
|
952
787
|
declare const meta$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
953
788
|
declare const meta$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
954
|
-
declare const meta$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
955
789
|
declare const meta$4_updateReferralProgram: typeof updateReferralProgram;
|
|
956
790
|
declare namespace meta$4 {
|
|
957
|
-
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$
|
|
791
|
+
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$4_updateReferralProgram as updateReferralProgram };
|
|
958
792
|
}
|
|
959
793
|
|
|
960
794
|
interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
|