@wix/referral 1.0.28 → 1.0.29
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.29",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/referral_customers": "1.0.12",
|
|
22
22
|
"@wix/referral_friends": "1.0.9",
|
|
23
|
-
"@wix/referral_programs": "1.0.
|
|
23
|
+
"@wix/referral_programs": "1.0.16",
|
|
24
24
|
"@wix/referral_rewards": "1.0.12",
|
|
25
25
|
"@wix/referral_tracker": "1.0.14"
|
|
26
26
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "3b110dc382527065c3791edc8bb8c2320b3c04b957a6df47a3cf0b79"
|
|
51
51
|
}
|
|
@@ -676,6 +676,85 @@ 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
|
+
}
|
|
679
758
|
interface UpdateReferralProgramRequest {
|
|
680
759
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
681
760
|
referralProgram: ReferralProgram;
|
|
@@ -1726,6 +1805,9 @@ interface ReferralProgramNonNullableFields {
|
|
|
1726
1805
|
interface GetReferralProgramResponseNonNullableFields {
|
|
1727
1806
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1728
1807
|
}
|
|
1808
|
+
interface QueryReferralProgramsResponseNonNullableFields {
|
|
1809
|
+
referralPrograms: ReferralProgramNonNullableFields[];
|
|
1810
|
+
}
|
|
1729
1811
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
1730
1812
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1731
1813
|
}
|
|
@@ -1798,6 +1880,31 @@ interface ProgramUpdatedEnvelope {
|
|
|
1798
1880
|
entity: ReferralProgram;
|
|
1799
1881
|
metadata: EventMetadata$3;
|
|
1800
1882
|
}
|
|
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
|
+
}
|
|
1801
1908
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1802
1909
|
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
1803
1910
|
topic?: string;
|
|
@@ -1814,6 +1921,19 @@ interface GetReferralProgramSignature {
|
|
|
1814
1921
|
*/
|
|
1815
1922
|
(): Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
|
|
1816
1923
|
}
|
|
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
|
+
}
|
|
1817
1937
|
declare function updateReferralProgram$1(httpClient: HttpClient): UpdateReferralProgramSignature;
|
|
1818
1938
|
interface UpdateReferralProgramSignature {
|
|
1819
1939
|
/**
|
|
@@ -1892,6 +2012,7 @@ declare global {
|
|
|
1892
2012
|
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
1893
2013
|
|
|
1894
2014
|
declare const getReferralProgram: MaybeContext<BuildRESTFunction<typeof getReferralProgram$1> & typeof getReferralProgram$1>;
|
|
2015
|
+
declare const queryReferralPrograms: MaybeContext<BuildRESTFunction<typeof queryReferralPrograms$1> & typeof queryReferralPrograms$1>;
|
|
1895
2016
|
declare const updateReferralProgram: MaybeContext<BuildRESTFunction<typeof updateReferralProgram$1> & typeof updateReferralProgram$1>;
|
|
1896
2017
|
declare const activateReferralProgram: MaybeContext<BuildRESTFunction<typeof activateReferralProgram$1> & typeof activateReferralProgram$1>;
|
|
1897
2018
|
declare const pauseReferralProgram: MaybeContext<BuildRESTFunction<typeof pauseReferralProgram$1> & typeof pauseReferralProgram$1>;
|
|
@@ -1969,11 +2090,16 @@ declare const context$4_ProgramStatus: typeof ProgramStatus;
|
|
|
1969
2090
|
type context$4_ProgramUpdatedEnvelope = ProgramUpdatedEnvelope;
|
|
1970
2091
|
type context$4_ProviderName = ProviderName;
|
|
1971
2092
|
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;
|
|
1972
2096
|
type context$4_ReactivationData = ReactivationData;
|
|
1973
2097
|
type context$4_ReactivationReasonEnum = ReactivationReasonEnum;
|
|
1974
2098
|
declare const context$4_ReactivationReasonEnum: typeof ReactivationReasonEnum;
|
|
1975
2099
|
type context$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
1976
2100
|
type context$4_ReferralProgram = ReferralProgram;
|
|
2101
|
+
type context$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
2102
|
+
type context$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
1977
2103
|
type context$4_ServiceProvisioned = ServiceProvisioned;
|
|
1978
2104
|
type context$4_ServiceRemoved = ServiceRemoved;
|
|
1979
2105
|
type context$4_SiteCreated = SiteCreated;
|
|
@@ -2019,9 +2145,10 @@ declare const context$4_getReferralProgram: typeof getReferralProgram;
|
|
|
2019
2145
|
declare const context$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
2020
2146
|
declare const context$4_onProgramUpdated: typeof onProgramUpdated;
|
|
2021
2147
|
declare const context$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
2148
|
+
declare const context$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
2022
2149
|
declare const context$4_updateReferralProgram: typeof updateReferralProgram;
|
|
2023
2150
|
declare namespace context$4 {
|
|
2024
|
-
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 };
|
|
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 CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, context$4_activateReferralProgram as activateReferralProgram, context$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, context$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, context$4_getReferralProgram as getReferralProgram, context$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, context$4_onProgramUpdated as onProgramUpdated, context$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, context$4_queryReferralPrograms as queryReferralPrograms, context$4_updateReferralProgram as updateReferralProgram };
|
|
2025
2152
|
}
|
|
2026
2153
|
|
|
2027
2154
|
interface ReferralEvent extends ReferralEventEventTypeOneOf {
|
|
@@ -676,6 +676,85 @@ 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
|
+
}
|
|
679
758
|
interface UpdateReferralProgramRequest {
|
|
680
759
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
681
760
|
referralProgram: ReferralProgram;
|
|
@@ -1726,6 +1805,9 @@ interface ReferralProgramNonNullableFields {
|
|
|
1726
1805
|
interface GetReferralProgramResponseNonNullableFields {
|
|
1727
1806
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1728
1807
|
}
|
|
1808
|
+
interface QueryReferralProgramsResponseNonNullableFields {
|
|
1809
|
+
referralPrograms: ReferralProgramNonNullableFields[];
|
|
1810
|
+
}
|
|
1729
1811
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
1730
1812
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
1731
1813
|
}
|
|
@@ -1798,6 +1880,31 @@ interface ProgramUpdatedEnvelope {
|
|
|
1798
1880
|
entity: ReferralProgram;
|
|
1799
1881
|
metadata: EventMetadata$3;
|
|
1800
1882
|
}
|
|
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
|
+
}
|
|
1801
1908
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1802
1909
|
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
1803
1910
|
topic?: string;
|
|
@@ -1814,6 +1921,19 @@ interface GetReferralProgramSignature {
|
|
|
1814
1921
|
*/
|
|
1815
1922
|
(): Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
|
|
1816
1923
|
}
|
|
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
|
+
}
|
|
1817
1937
|
declare function updateReferralProgram$1(httpClient: HttpClient): UpdateReferralProgramSignature;
|
|
1818
1938
|
interface UpdateReferralProgramSignature {
|
|
1819
1939
|
/**
|
|
@@ -1892,6 +2012,7 @@ declare global {
|
|
|
1892
2012
|
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
1893
2013
|
|
|
1894
2014
|
declare const getReferralProgram: MaybeContext<BuildRESTFunction<typeof getReferralProgram$1> & typeof getReferralProgram$1>;
|
|
2015
|
+
declare const queryReferralPrograms: MaybeContext<BuildRESTFunction<typeof queryReferralPrograms$1> & typeof queryReferralPrograms$1>;
|
|
1895
2016
|
declare const updateReferralProgram: MaybeContext<BuildRESTFunction<typeof updateReferralProgram$1> & typeof updateReferralProgram$1>;
|
|
1896
2017
|
declare const activateReferralProgram: MaybeContext<BuildRESTFunction<typeof activateReferralProgram$1> & typeof activateReferralProgram$1>;
|
|
1897
2018
|
declare const pauseReferralProgram: MaybeContext<BuildRESTFunction<typeof pauseReferralProgram$1> & typeof pauseReferralProgram$1>;
|
|
@@ -1969,11 +2090,16 @@ declare const index_d$4_ProgramStatus: typeof ProgramStatus;
|
|
|
1969
2090
|
type index_d$4_ProgramUpdatedEnvelope = ProgramUpdatedEnvelope;
|
|
1970
2091
|
type index_d$4_ProviderName = ProviderName;
|
|
1971
2092
|
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;
|
|
1972
2096
|
type index_d$4_ReactivationData = ReactivationData;
|
|
1973
2097
|
type index_d$4_ReactivationReasonEnum = ReactivationReasonEnum;
|
|
1974
2098
|
declare const index_d$4_ReactivationReasonEnum: typeof ReactivationReasonEnum;
|
|
1975
2099
|
type index_d$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
1976
2100
|
type index_d$4_ReferralProgram = ReferralProgram;
|
|
2101
|
+
type index_d$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
2102
|
+
type index_d$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
1977
2103
|
type index_d$4_ServiceProvisioned = ServiceProvisioned;
|
|
1978
2104
|
type index_d$4_ServiceRemoved = ServiceRemoved;
|
|
1979
2105
|
type index_d$4_SiteCreated = SiteCreated;
|
|
@@ -2019,9 +2145,10 @@ declare const index_d$4_getReferralProgram: typeof getReferralProgram;
|
|
|
2019
2145
|
declare const index_d$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
2020
2146
|
declare const index_d$4_onProgramUpdated: typeof onProgramUpdated;
|
|
2021
2147
|
declare const index_d$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
2148
|
+
declare const index_d$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
2022
2149
|
declare const index_d$4_updateReferralProgram: typeof updateReferralProgram;
|
|
2023
2150
|
declare namespace index_d$4 {
|
|
2024
|
-
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 };
|
|
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 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 };
|
|
2025
2152
|
}
|
|
2026
2153
|
|
|
2027
2154
|
interface ReferralEvent extends ReferralEventEventTypeOneOf {
|
|
@@ -254,6 +254,85 @@ 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
|
+
}
|
|
257
336
|
interface UpdateReferralProgramRequest$1 {
|
|
258
337
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
259
338
|
referralProgram: ReferralProgram$1;
|
|
@@ -357,6 +436,9 @@ interface ReferralProgramNonNullableFields$1 {
|
|
|
357
436
|
interface GetReferralProgramResponseNonNullableFields$1 {
|
|
358
437
|
referralProgram?: ReferralProgramNonNullableFields$1;
|
|
359
438
|
}
|
|
439
|
+
interface QueryReferralProgramsResponseNonNullableFields$1 {
|
|
440
|
+
referralPrograms: ReferralProgramNonNullableFields$1[];
|
|
441
|
+
}
|
|
360
442
|
interface UpdateReferralProgramResponseNonNullableFields$1 {
|
|
361
443
|
referralProgram?: ReferralProgramNonNullableFields$1;
|
|
362
444
|
}
|
|
@@ -636,6 +718,85 @@ interface GetReferralProgramResponse {
|
|
|
636
718
|
/** Retrieved referral program. */
|
|
637
719
|
referralProgram?: ReferralProgram;
|
|
638
720
|
}
|
|
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
|
+
}
|
|
639
800
|
interface UpdateReferralProgramRequest {
|
|
640
801
|
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
641
802
|
referralProgram: ReferralProgram;
|
|
@@ -739,6 +900,9 @@ interface ReferralProgramNonNullableFields {
|
|
|
739
900
|
interface GetReferralProgramResponseNonNullableFields {
|
|
740
901
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
741
902
|
}
|
|
903
|
+
interface QueryReferralProgramsResponseNonNullableFields {
|
|
904
|
+
referralPrograms: ReferralProgramNonNullableFields[];
|
|
905
|
+
}
|
|
742
906
|
interface UpdateReferralProgramResponseNonNullableFields {
|
|
743
907
|
referralProgram?: ReferralProgramNonNullableFields;
|
|
744
908
|
}
|
|
@@ -773,6 +937,7 @@ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
773
937
|
__originalResponseType: R;
|
|
774
938
|
};
|
|
775
939
|
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>;
|
|
776
941
|
declare function updateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, UpdateReferralProgramRequest, UpdateReferralProgramRequest$1, UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields, UpdateReferralProgramResponse$1 & UpdateReferralProgramResponseNonNullableFields$1>;
|
|
777
942
|
declare function activateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, ActivateReferralProgramRequest, ActivateReferralProgramRequest$1, ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields, ActivateReferralProgramResponse$1 & ActivateReferralProgramResponseNonNullableFields$1>;
|
|
778
943
|
declare function pauseReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, PauseReferralProgramRequest, PauseReferralProgramRequest$1, PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields, PauseReferralProgramResponse$1 & PauseReferralProgramResponseNonNullableFields$1>;
|
|
@@ -786,9 +951,10 @@ declare const meta$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPo
|
|
|
786
951
|
declare const meta$4_getReferralProgram: typeof getReferralProgram;
|
|
787
952
|
declare const meta$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
|
|
788
953
|
declare const meta$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
954
|
+
declare const meta$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
789
955
|
declare const meta$4_updateReferralProgram: typeof updateReferralProgram;
|
|
790
956
|
declare namespace meta$4 {
|
|
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 };
|
|
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$4_queryReferralPrograms as queryReferralPrograms, meta$4_updateReferralProgram as updateReferralProgram };
|
|
792
958
|
}
|
|
793
959
|
|
|
794
960
|
interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
|