@wix/auto_sdk_referral_programs 1.0.13 → 1.0.14
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/build/index.d.mts +81 -0
- package/build/index.d.ts +81 -0
- package/build/index.js +991 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +939 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +93 -0
- package/build/internal/index.d.ts +93 -0
- package/build/internal/index.js +991 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +939 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{cjs/src/loyalty-referral-v1-program-programs.types.d.ts → internal/loyalty-referral-v1-program-programs.universal-C3JvbwiY.d.mts} +205 -143
- package/build/internal/{cjs/src/loyalty-referral-v1-program-programs.types.d.ts → loyalty-referral-v1-program-programs.universal-C3JvbwiY.d.ts} +205 -143
- package/build/internal/meta.d.mts +357 -0
- package/build/internal/meta.d.ts +357 -0
- package/build/internal/meta.js +606 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +572 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/loyalty-referral-v1-program-programs.types.d.ts → loyalty-referral-v1-program-programs.universal-BCsb8iST.d.mts} +205 -143
- package/build/{internal/es/src/loyalty-referral-v1-program-programs.types.d.ts → loyalty-referral-v1-program-programs.universal-BCsb8iST.d.ts} +205 -143
- package/build/meta.d.mts +357 -0
- package/build/meta.d.ts +357 -0
- package/build/meta.js +606 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +572 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.context.d.ts +0 -17
- package/build/cjs/src/loyalty-referral-v1-program-programs.context.js +0 -42
- package/build/cjs/src/loyalty-referral-v1-program-programs.context.js.map +0 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.http.d.ts +0 -39
- package/build/cjs/src/loyalty-referral-v1-program-programs.http.js +0 -450
- package/build/cjs/src/loyalty-referral-v1-program-programs.http.js.map +0 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.meta.d.ts +0 -20
- package/build/cjs/src/loyalty-referral-v1-program-programs.meta.js +0 -180
- package/build/cjs/src/loyalty-referral-v1-program-programs.meta.js.map +0 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.public.d.ts +0 -69
- package/build/cjs/src/loyalty-referral-v1-program-programs.public.js +0 -114
- package/build/cjs/src/loyalty-referral-v1-program-programs.public.js.map +0 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.types.js +0 -284
- package/build/cjs/src/loyalty-referral-v1-program-programs.types.js.map +0 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.universal.d.ts +0 -1741
- package/build/cjs/src/loyalty-referral-v1-program-programs.universal.js +0 -595
- package/build/cjs/src/loyalty-referral-v1-program-programs.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/loyalty-referral-v1-program-programs.context.d.ts +0 -17
- package/build/es/src/loyalty-referral-v1-program-programs.context.js +0 -19
- package/build/es/src/loyalty-referral-v1-program-programs.context.js.map +0 -1
- package/build/es/src/loyalty-referral-v1-program-programs.http.d.ts +0 -39
- package/build/es/src/loyalty-referral-v1-program-programs.http.js +0 -439
- package/build/es/src/loyalty-referral-v1-program-programs.http.js.map +0 -1
- package/build/es/src/loyalty-referral-v1-program-programs.meta.d.ts +0 -20
- package/build/es/src/loyalty-referral-v1-program-programs.meta.js +0 -146
- package/build/es/src/loyalty-referral-v1-program-programs.meta.js.map +0 -1
- package/build/es/src/loyalty-referral-v1-program-programs.public.d.ts +0 -69
- package/build/es/src/loyalty-referral-v1-program-programs.public.js +0 -83
- package/build/es/src/loyalty-referral-v1-program-programs.public.js.map +0 -1
- package/build/es/src/loyalty-referral-v1-program-programs.types.js +0 -281
- package/build/es/src/loyalty-referral-v1-program-programs.types.js.map +0 -1
- package/build/es/src/loyalty-referral-v1-program-programs.universal.d.ts +0 -1741
- package/build/es/src/loyalty-referral-v1-program-programs.universal.js +0 -561
- package/build/es/src/loyalty-referral-v1-program-programs.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.context.d.ts +0 -19
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.context.js +0 -42
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.http.d.ts +0 -39
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.http.js +0 -450
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.meta.d.ts +0 -20
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.meta.js +0 -180
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.public.d.ts +0 -79
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.public.js +0 -114
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.types.js +0 -284
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.universal.d.ts +0 -1753
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.universal.js +0 -595
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.context.d.ts +0 -19
- package/build/internal/es/src/loyalty-referral-v1-program-programs.context.js +0 -19
- package/build/internal/es/src/loyalty-referral-v1-program-programs.context.js.map +0 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.http.d.ts +0 -39
- package/build/internal/es/src/loyalty-referral-v1-program-programs.http.js +0 -439
- package/build/internal/es/src/loyalty-referral-v1-program-programs.http.js.map +0 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.meta.d.ts +0 -20
- package/build/internal/es/src/loyalty-referral-v1-program-programs.meta.js +0 -146
- package/build/internal/es/src/loyalty-referral-v1-program-programs.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.public.d.ts +0 -79
- package/build/internal/es/src/loyalty-referral-v1-program-programs.public.js +0 -83
- package/build/internal/es/src/loyalty-referral-v1-program-programs.public.js.map +0 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.types.js +0 -281
- package/build/internal/es/src/loyalty-referral-v1-program-programs.types.js.map +0 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.universal.d.ts +0 -1753
- package/build/internal/es/src/loyalty-referral-v1-program-programs.universal.js +0 -561
- package/build/internal/es/src/loyalty-referral-v1-program-programs.universal.js.map +0 -1
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { J as GetReferralProgramRequest$1, G as GetReferralProgramResponse$1, K as BulkGetReferralProgramRequest$1, M as BulkGetReferralProgramResponse$1, Q as UpdateReferralProgramRequest$1, U as UpdateReferralProgramResponse$1, V as ActivateReferralProgramRequest$1, A as ActivateReferralProgramResponse$1, X as PauseReferralProgramRequest$1, P as PauseReferralProgramResponse$1, Y as GetAISocialMediaPostsSuggestionsRequest$1, b as GetAISocialMediaPostsSuggestionsResponse$1, _ as GenerateAISocialMediaPostsSuggestionsRequest$1, d as GenerateAISocialMediaPostsSuggestionsResponse$1, $ as GetReferralProgramPremiumFeaturesRequest$1, e as GetReferralProgramPremiumFeaturesResponse$1 } from './loyalty-referral-v1-program-programs.universal-BCsb8iST.js';
|
|
2
|
+
|
|
3
|
+
interface ReferralProgram {
|
|
4
|
+
/**
|
|
5
|
+
* Referral program name.
|
|
6
|
+
* @minLength 2
|
|
7
|
+
* @maxLength 50
|
|
8
|
+
*/
|
|
9
|
+
name?: string | null;
|
|
10
|
+
/** @readonly */
|
|
11
|
+
status?: ProgramStatusWithLiterals;
|
|
12
|
+
/**
|
|
13
|
+
* Revision number, which increments by 1 each time the program is updated.
|
|
14
|
+
* To prevent conflicting changes, the current `revision` must be passed when updating the program.
|
|
15
|
+
* @immutable
|
|
16
|
+
*/
|
|
17
|
+
revision?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Date and time the program was created.
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
createdDate?: Date | null;
|
|
23
|
+
/**
|
|
24
|
+
* Date and time the program was last updated.
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
updatedDate?: Date | null;
|
|
28
|
+
/**
|
|
29
|
+
* Reward configuration for the referred friend.
|
|
30
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
31
|
+
*/
|
|
32
|
+
referredFriendReward?: Reward;
|
|
33
|
+
/**
|
|
34
|
+
* Reward configuration for the referring customer.
|
|
35
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
36
|
+
*/
|
|
37
|
+
referringCustomerReward?: Reward;
|
|
38
|
+
/**
|
|
39
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
40
|
+
* @maxSize 100
|
|
41
|
+
*/
|
|
42
|
+
successfulReferralActions?: ActionWithLiterals[];
|
|
43
|
+
/** Configures email notifications for the referral program. */
|
|
44
|
+
emails?: Emails;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates which premium features are available for the current account.
|
|
47
|
+
* @readonly
|
|
48
|
+
*/
|
|
49
|
+
premiumFeatures?: PremiumFeatures;
|
|
50
|
+
}
|
|
51
|
+
/** Status of the referral program. */
|
|
52
|
+
declare enum ProgramStatus {
|
|
53
|
+
/** Unknown program status. */
|
|
54
|
+
UNKNOWN = "UNKNOWN",
|
|
55
|
+
/** Referral program is in a draft state and is being modified. It is not yet active. */
|
|
56
|
+
DRAFT = "DRAFT",
|
|
57
|
+
/** Referral program is active. */
|
|
58
|
+
ACTIVE = "ACTIVE",
|
|
59
|
+
/** Referral program is paused. */
|
|
60
|
+
PAUSED = "PAUSED"
|
|
61
|
+
}
|
|
62
|
+
/** @enumType */
|
|
63
|
+
type ProgramStatusWithLiterals = ProgramStatus | 'UNKNOWN' | 'DRAFT' | 'ACTIVE' | 'PAUSED';
|
|
64
|
+
interface Reward extends RewardOptionsOneOf {
|
|
65
|
+
/** Options for coupon reward type. */
|
|
66
|
+
couponOptions?: Coupon;
|
|
67
|
+
/** Options for the Loyalty points reward type. */
|
|
68
|
+
loyaltyPointsOptions?: LoyaltyPoints;
|
|
69
|
+
/** Type of the reward. */
|
|
70
|
+
type?: TypeWithLiterals;
|
|
71
|
+
}
|
|
72
|
+
/** @oneof */
|
|
73
|
+
interface RewardOptionsOneOf {
|
|
74
|
+
/** Options for coupon reward type. */
|
|
75
|
+
couponOptions?: Coupon;
|
|
76
|
+
/** Options for the Loyalty points reward type. */
|
|
77
|
+
loyaltyPointsOptions?: LoyaltyPoints;
|
|
78
|
+
}
|
|
79
|
+
declare enum Type {
|
|
80
|
+
/** Unknown reward type. */
|
|
81
|
+
UNKNOWN = "UNKNOWN",
|
|
82
|
+
/** Coupon reward type. */
|
|
83
|
+
COUPON = "COUPON",
|
|
84
|
+
/** Loyalty points reward type. */
|
|
85
|
+
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
86
|
+
/** No reward type. */
|
|
87
|
+
NOTHING = "NOTHING"
|
|
88
|
+
}
|
|
89
|
+
/** @enumType */
|
|
90
|
+
type TypeWithLiterals = Type | 'UNKNOWN' | 'COUPON' | 'LOYALTY_POINTS' | 'NOTHING';
|
|
91
|
+
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
92
|
+
/** Options for fixed amount discount. */
|
|
93
|
+
fixedAmountOptions?: FixedAmountDiscount;
|
|
94
|
+
/** Options for percentage discounts. */
|
|
95
|
+
percentageOptions?: PercentageDiscount;
|
|
96
|
+
/** Limit the coupon to carts with a subtotal above this number. */
|
|
97
|
+
minimumSubtotal?: number;
|
|
98
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
99
|
+
scope?: CouponScope;
|
|
100
|
+
/**
|
|
101
|
+
* Coupon name.
|
|
102
|
+
* @minLength 1
|
|
103
|
+
* @maxLength 50
|
|
104
|
+
*/
|
|
105
|
+
name?: string;
|
|
106
|
+
/** Coupon discount type. */
|
|
107
|
+
discountType?: DiscountTypeWithLiterals;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the coupon is limited to one item.
|
|
110
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
111
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
112
|
+
*/
|
|
113
|
+
limitedToOneItem?: boolean | null;
|
|
114
|
+
/** Whether the coupon applies to subscription products. */
|
|
115
|
+
appliesToSubscriptions?: boolean | null;
|
|
116
|
+
/**
|
|
117
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
118
|
+
*
|
|
119
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
120
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
121
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
122
|
+
*
|
|
123
|
+
* Max: `999`
|
|
124
|
+
*/
|
|
125
|
+
discountedCycleCount?: number | null;
|
|
126
|
+
}
|
|
127
|
+
/** @oneof */
|
|
128
|
+
interface CouponDiscountTypeOptionsOneOf {
|
|
129
|
+
/** Options for fixed amount discount. */
|
|
130
|
+
fixedAmountOptions?: FixedAmountDiscount;
|
|
131
|
+
/** Options for percentage discounts. */
|
|
132
|
+
percentageOptions?: PercentageDiscount;
|
|
133
|
+
}
|
|
134
|
+
/** @oneof */
|
|
135
|
+
interface CouponScopeOrMinSubtotalOneOf {
|
|
136
|
+
/** Limit the coupon to carts with a subtotal above this number. */
|
|
137
|
+
minimumSubtotal?: number;
|
|
138
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
139
|
+
scope?: CouponScope;
|
|
140
|
+
}
|
|
141
|
+
declare enum DiscountType {
|
|
142
|
+
/** Unknown discount type. */
|
|
143
|
+
UNKNOWN = "UNKNOWN",
|
|
144
|
+
/** Discount as a fixed amount. */
|
|
145
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
146
|
+
/** Discount as a percentage. */
|
|
147
|
+
PERCENTAGE = "PERCENTAGE",
|
|
148
|
+
/** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
|
|
149
|
+
FREE_SHIPPING = "FREE_SHIPPING"
|
|
150
|
+
}
|
|
151
|
+
/** @enumType */
|
|
152
|
+
type DiscountTypeWithLiterals = DiscountType | 'UNKNOWN' | 'FIXED_AMOUNT' | 'PERCENTAGE' | 'FREE_SHIPPING';
|
|
153
|
+
interface FixedAmountDiscount {
|
|
154
|
+
/** Amount of the discount as a fixed value. */
|
|
155
|
+
amount?: number;
|
|
156
|
+
}
|
|
157
|
+
interface PercentageDiscount {
|
|
158
|
+
/**
|
|
159
|
+
* Percentage of discount.
|
|
160
|
+
* @max 100
|
|
161
|
+
*/
|
|
162
|
+
percentage?: number;
|
|
163
|
+
}
|
|
164
|
+
interface CouponScope {
|
|
165
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
166
|
+
namespace?: string;
|
|
167
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
168
|
+
group?: Group;
|
|
169
|
+
}
|
|
170
|
+
interface Group {
|
|
171
|
+
/** Name of the group. */
|
|
172
|
+
name?: string;
|
|
173
|
+
/** Entity ID of the group. */
|
|
174
|
+
entityId?: string | null;
|
|
175
|
+
}
|
|
176
|
+
interface LoyaltyPoints {
|
|
177
|
+
/**
|
|
178
|
+
* Number of loyalty points to give.
|
|
179
|
+
* @min 1
|
|
180
|
+
* @max 9999999
|
|
181
|
+
*/
|
|
182
|
+
amount?: number;
|
|
183
|
+
}
|
|
184
|
+
declare enum Action {
|
|
185
|
+
/** Unknown action. */
|
|
186
|
+
UNKNOWN = "UNKNOWN",
|
|
187
|
+
/** Referred friend ordered and paid for an order in a store. */
|
|
188
|
+
STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
|
|
189
|
+
/** Referred friend ordered and paid for a plan. */
|
|
190
|
+
PLAN_ORDERED = "PLAN_ORDERED",
|
|
191
|
+
/** Referred friend ordered and paid for a ticket. */
|
|
192
|
+
TICKET_ORDERED = "TICKET_ORDERED",
|
|
193
|
+
/** Referred friend booked and paid for a session. */
|
|
194
|
+
SESSION_BOOKED = "SESSION_BOOKED",
|
|
195
|
+
/** Referred friend placed and paid for a restaurant order. */
|
|
196
|
+
RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED",
|
|
197
|
+
/** Referred friend joined an online program. */
|
|
198
|
+
ONLINE_PROGRAM_JOINED = "ONLINE_PROGRAM_JOINED"
|
|
199
|
+
}
|
|
200
|
+
/** @enumType */
|
|
201
|
+
type ActionWithLiterals = Action | 'UNKNOWN' | 'STORE_ORDER_PLACED' | 'PLAN_ORDERED' | 'TICKET_ORDERED' | 'SESSION_BOOKED' | 'RESTAURANT_ORDER_PLACED' | 'ONLINE_PROGRAM_JOINED';
|
|
202
|
+
interface Emails {
|
|
203
|
+
/** Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled. */
|
|
204
|
+
encourageToReferFriends?: AppWithLiterals[];
|
|
205
|
+
/**
|
|
206
|
+
* Whether to send email notifications to referring customers when they receive a referral reward.
|
|
207
|
+
* If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
|
|
208
|
+
*/
|
|
209
|
+
notifyCustomersAboutReward?: boolean;
|
|
210
|
+
}
|
|
211
|
+
declare enum App {
|
|
212
|
+
/** Unknown app. */
|
|
213
|
+
UNKNOWN = "UNKNOWN",
|
|
214
|
+
/** Send an email to customers who've placed an order with stores. */
|
|
215
|
+
STORES = "STORES",
|
|
216
|
+
/** Send an email to customers who've placed an order with pricing plans. */
|
|
217
|
+
PRICING_PLANS = "PRICING_PLANS",
|
|
218
|
+
/** Send an email to customers who've placed an order with events. */
|
|
219
|
+
EVENTS = "EVENTS",
|
|
220
|
+
/** Send an email to customers who've placed an order with bookings. */
|
|
221
|
+
BOOKINGS = "BOOKINGS",
|
|
222
|
+
/** Send an email to customers who've placed an order with restaurants. */
|
|
223
|
+
RESTAURANTS = "RESTAURANTS",
|
|
224
|
+
/** Send an email to customers who've joined an online program. */
|
|
225
|
+
ONLINE_PROGRAMS = "ONLINE_PROGRAMS"
|
|
226
|
+
}
|
|
227
|
+
/** @enumType */
|
|
228
|
+
type AppWithLiterals = App | 'UNKNOWN' | 'STORES' | 'PRICING_PLANS' | 'EVENTS' | 'BOOKINGS' | 'RESTAURANTS' | 'ONLINE_PROGRAMS';
|
|
229
|
+
interface PremiumFeatures {
|
|
230
|
+
/**
|
|
231
|
+
* Whether the site owner has access to the referral program feature.
|
|
232
|
+
* @readonly
|
|
233
|
+
*/
|
|
234
|
+
referralProgram?: boolean;
|
|
235
|
+
}
|
|
236
|
+
interface GetReferralProgramRequest {
|
|
237
|
+
}
|
|
238
|
+
interface GetReferralProgramResponse {
|
|
239
|
+
/** Retrieved referral program. */
|
|
240
|
+
referralProgram?: ReferralProgram;
|
|
241
|
+
}
|
|
242
|
+
interface BulkGetReferralProgramRequest {
|
|
243
|
+
}
|
|
244
|
+
interface BulkGetReferralProgramResponse {
|
|
245
|
+
/** Retrieved referral programs. */
|
|
246
|
+
programInSites?: ProgramInSite[];
|
|
247
|
+
}
|
|
248
|
+
interface ProgramInSite {
|
|
249
|
+
/**
|
|
250
|
+
* Metasite ID.
|
|
251
|
+
* @format GUID
|
|
252
|
+
*/
|
|
253
|
+
metaSiteId?: string;
|
|
254
|
+
/** Retrieved referral program. */
|
|
255
|
+
referralProgram?: ReferralProgram;
|
|
256
|
+
}
|
|
257
|
+
interface UpdateReferralProgramRequest {
|
|
258
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
259
|
+
referralProgram: ReferralProgram;
|
|
260
|
+
}
|
|
261
|
+
interface UpdateReferralProgramResponse {
|
|
262
|
+
/** Updated referral program. */
|
|
263
|
+
referralProgram?: ReferralProgram;
|
|
264
|
+
}
|
|
265
|
+
interface ActivateReferralProgramRequest {
|
|
266
|
+
}
|
|
267
|
+
interface ActivateReferralProgramResponse {
|
|
268
|
+
/** Activated referral program. */
|
|
269
|
+
referralProgram?: ReferralProgram;
|
|
270
|
+
}
|
|
271
|
+
interface PauseReferralProgramRequest {
|
|
272
|
+
}
|
|
273
|
+
interface PauseReferralProgramResponse {
|
|
274
|
+
/** Paused referral program. */
|
|
275
|
+
referralProgram?: ReferralProgram;
|
|
276
|
+
}
|
|
277
|
+
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
278
|
+
/**
|
|
279
|
+
* Topic to generate social media post suggestions for. For example, fitness, education, or technology.
|
|
280
|
+
* @maxLength 512
|
|
281
|
+
*/
|
|
282
|
+
topic?: string;
|
|
283
|
+
}
|
|
284
|
+
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
285
|
+
/**
|
|
286
|
+
* Generated social media post suggestions.
|
|
287
|
+
* @maxSize 3
|
|
288
|
+
*/
|
|
289
|
+
suggestions?: AISocialMediaPostSuggestion[];
|
|
290
|
+
/**
|
|
291
|
+
* Referral URL to refer friends.
|
|
292
|
+
* @maxLength 2083
|
|
293
|
+
*/
|
|
294
|
+
referFriendsPageUrl?: string | null;
|
|
295
|
+
}
|
|
296
|
+
interface AISocialMediaPostSuggestion {
|
|
297
|
+
/**
|
|
298
|
+
* Suggested post content.
|
|
299
|
+
* @maxLength 4096
|
|
300
|
+
*/
|
|
301
|
+
postContent?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Suggested hashtags.
|
|
304
|
+
* @maxLength 256
|
|
305
|
+
* @maxSize 256
|
|
306
|
+
*/
|
|
307
|
+
hashtags?: string[];
|
|
308
|
+
}
|
|
309
|
+
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
310
|
+
/**
|
|
311
|
+
* Topic to generate social media post suggestions for. For example, fitness, education, or technology.
|
|
312
|
+
* @maxLength 512
|
|
313
|
+
*/
|
|
314
|
+
topic?: string;
|
|
315
|
+
}
|
|
316
|
+
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
317
|
+
/**
|
|
318
|
+
* Generated social media post suggestions.
|
|
319
|
+
* @maxSize 3
|
|
320
|
+
*/
|
|
321
|
+
suggestions?: AISocialMediaPostSuggestion[];
|
|
322
|
+
/**
|
|
323
|
+
* Referral URL to refer friends.
|
|
324
|
+
* @maxLength 2083
|
|
325
|
+
*/
|
|
326
|
+
referFriendsPageUrl?: string | null;
|
|
327
|
+
}
|
|
328
|
+
interface GetReferralProgramPremiumFeaturesRequest {
|
|
329
|
+
}
|
|
330
|
+
interface GetReferralProgramPremiumFeaturesResponse {
|
|
331
|
+
/**
|
|
332
|
+
* Whether the site has the referral program feature enabled.
|
|
333
|
+
* @readonly
|
|
334
|
+
*/
|
|
335
|
+
referralProgram?: boolean;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
339
|
+
getUrl: (context: any) => string;
|
|
340
|
+
httpMethod: K;
|
|
341
|
+
path: string;
|
|
342
|
+
pathParams: M;
|
|
343
|
+
__requestType: T;
|
|
344
|
+
__originalRequestType: S;
|
|
345
|
+
__responseType: Q;
|
|
346
|
+
__originalResponseType: R;
|
|
347
|
+
};
|
|
348
|
+
declare function getReferralProgram(): __PublicMethodMetaInfo<'GET', {}, GetReferralProgramRequest$1, GetReferralProgramRequest, GetReferralProgramResponse$1, GetReferralProgramResponse>;
|
|
349
|
+
declare function bulkGetReferralProgram(): __PublicMethodMetaInfo<'GET', {}, BulkGetReferralProgramRequest$1, BulkGetReferralProgramRequest, BulkGetReferralProgramResponse$1, BulkGetReferralProgramResponse>;
|
|
350
|
+
declare function updateReferralProgram(): __PublicMethodMetaInfo<'PATCH', {}, UpdateReferralProgramRequest$1, UpdateReferralProgramRequest, UpdateReferralProgramResponse$1, UpdateReferralProgramResponse>;
|
|
351
|
+
declare function activateReferralProgram(): __PublicMethodMetaInfo<'PATCH', {}, ActivateReferralProgramRequest$1, ActivateReferralProgramRequest, ActivateReferralProgramResponse$1, ActivateReferralProgramResponse>;
|
|
352
|
+
declare function pauseReferralProgram(): __PublicMethodMetaInfo<'PATCH', {}, PauseReferralProgramRequest$1, PauseReferralProgramRequest, PauseReferralProgramResponse$1, PauseReferralProgramResponse>;
|
|
353
|
+
declare function getAiSocialMediaPostsSuggestions(): __PublicMethodMetaInfo<'GET', {}, GetAISocialMediaPostsSuggestionsRequest$1, GetAISocialMediaPostsSuggestionsRequest, GetAISocialMediaPostsSuggestionsResponse$1, GetAISocialMediaPostsSuggestionsResponse>;
|
|
354
|
+
declare function generateAiSocialMediaPostsSuggestions(): __PublicMethodMetaInfo<'POST', {}, GenerateAISocialMediaPostsSuggestionsRequest$1, GenerateAISocialMediaPostsSuggestionsRequest, GenerateAISocialMediaPostsSuggestionsResponse$1, GenerateAISocialMediaPostsSuggestionsResponse>;
|
|
355
|
+
declare function getReferralProgramPremiumFeatures(): __PublicMethodMetaInfo<'GET', {}, GetReferralProgramPremiumFeaturesRequest$1, GetReferralProgramPremiumFeaturesRequest, GetReferralProgramPremiumFeaturesResponse$1, GetReferralProgramPremiumFeaturesResponse>;
|
|
356
|
+
|
|
357
|
+
export { type __PublicMethodMetaInfo, activateReferralProgram, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, pauseReferralProgram, updateReferralProgram };
|