@wix/referral 1.0.10 → 1.0.11
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/cjs/index.d.ts +6 -5
- package/build/cjs/index.js +10 -5
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +6 -5
- package/build/es/index.js +6 -5
- package/build/es/index.js.map +1 -1
- package/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +38 -29
- package/type-bundles/index.bundle.d.ts +38 -29
- package/type-bundles/meta.bundle.d.ts +68 -50
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as programs from '@wix/referral_programs';
|
|
2
|
+
import * as tracker from '@wix/referral_tracker';
|
|
3
|
+
import * as rewards from '@wix/referral_rewards';
|
|
4
|
+
import * as friends from '@wix/referral_friends';
|
|
5
|
+
import * as customers from '@wix/referral_customers';
|
|
6
|
+
export { programs, tracker, rewards, friends, customers };
|
package/build/cjs/index.js
CHANGED
|
@@ -24,9 +24,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.customers = exports.friends = exports.rewards = exports.tracker = exports.programs = void 0;
|
|
27
|
-
|
|
28
|
-
exports.
|
|
29
|
-
|
|
30
|
-
exports.
|
|
31
|
-
|
|
27
|
+
const programs = __importStar(require("@wix/referral_programs"));
|
|
28
|
+
exports.programs = programs;
|
|
29
|
+
const tracker = __importStar(require("@wix/referral_tracker"));
|
|
30
|
+
exports.tracker = tracker;
|
|
31
|
+
const rewards = __importStar(require("@wix/referral_rewards"));
|
|
32
|
+
exports.rewards = rewards;
|
|
33
|
+
const friends = __importStar(require("@wix/referral_friends"));
|
|
34
|
+
exports.friends = friends;
|
|
35
|
+
const customers = __importStar(require("@wix/referral_customers"));
|
|
36
|
+
exports.customers = customers;
|
|
32
37
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AAM1C,4BAAQ;AALjB,+DAAiD;AAK9B,0BAAO;AAJ1B,+DAAiD;AAIrB,0BAAO;AAHnC,+DAAiD;AAGZ,0BAAO;AAF5C,mEAAqD;AAEP,8BAAS"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as programs from '@wix/referral_programs';
|
|
2
|
+
import * as tracker from '@wix/referral_tracker';
|
|
3
|
+
import * as rewards from '@wix/referral_rewards';
|
|
4
|
+
import * as friends from '@wix/referral_friends';
|
|
5
|
+
import * as customers from '@wix/referral_customers';
|
|
6
|
+
export { programs, tracker, rewards, friends, customers };
|
package/build/es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as programs from '@wix/referral_programs';
|
|
2
|
+
import * as tracker from '@wix/referral_tracker';
|
|
3
|
+
import * as rewards from '@wix/referral_rewards';
|
|
4
|
+
import * as friends from '@wix/referral_friends';
|
|
5
|
+
import * as customers from '@wix/referral_customers';
|
|
6
|
+
export { programs, tracker, rewards, friends, customers };
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/referral",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
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.3",
|
|
22
22
|
"@wix/referral_friends": "1.0.3",
|
|
23
|
-
"@wix/referral_programs": "1.0.
|
|
23
|
+
"@wix/referral_programs": "1.0.5",
|
|
24
24
|
"@wix/referral_rewards": "1.0.3",
|
|
25
25
|
"@wix/referral_tracker": "1.0.8"
|
|
26
26
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "cb8fb04410a2d63adac1d1080c0a161c6ae88f349cededb46d3e1b25"
|
|
51
51
|
}
|
|
@@ -2,12 +2,12 @@ interface ReferralProgram {
|
|
|
2
2
|
/** Referral program name. */
|
|
3
3
|
name?: string | null;
|
|
4
4
|
/**
|
|
5
|
-
* The status of the referral program.
|
|
5
|
+
* The status of the referral program. Possible values:
|
|
6
6
|
*
|
|
7
|
-
* `UNKNOWN`: Status is unknown
|
|
8
|
-
* `DRAFT`:
|
|
9
|
-
* `ACTIVE`: Referral program is active.
|
|
10
|
-
* `PAUSED`: Referral program is paused.
|
|
7
|
+
* - `UNKNOWN`: Status is unknown. This value is never used.
|
|
8
|
+
* - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
|
|
9
|
+
* - `ACTIVE`: Referral program is active.
|
|
10
|
+
* - `PAUSED`: Referral program is paused.
|
|
11
11
|
* @readonly
|
|
12
12
|
*/
|
|
13
13
|
status?: ProgramStatus;
|
|
@@ -23,20 +23,27 @@ interface ReferralProgram {
|
|
|
23
23
|
* @readonly
|
|
24
24
|
*/
|
|
25
25
|
_updatedDate?: Date;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Reward configuration for the referred friend.
|
|
28
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
29
|
+
*/
|
|
27
30
|
referredFriendReward?: Reward$2;
|
|
28
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Reward configuration for the referring customer.
|
|
33
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
34
|
+
*/
|
|
29
35
|
referringCustomerReward?: Reward$2;
|
|
30
36
|
/**
|
|
31
37
|
* A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
|
|
32
38
|
*
|
|
33
39
|
* Possible values:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* - `UNKNOWN`: Action is unknown.
|
|
42
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
43
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
44
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
45
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
46
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
40
47
|
*/
|
|
41
48
|
successfulReferralActions?: Action[];
|
|
42
49
|
/**
|
|
@@ -193,9 +200,11 @@ declare enum Action {
|
|
|
193
200
|
}
|
|
194
201
|
interface Emails {
|
|
195
202
|
/**
|
|
196
|
-
* Encourage customers to refer their friends email. Select
|
|
203
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
204
|
+
*
|
|
205
|
+
* Available apps:
|
|
197
206
|
*
|
|
198
|
-
* - `UNKNOWN`:
|
|
207
|
+
* - `UNKNOWN`: Unknown email.
|
|
199
208
|
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
200
209
|
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
201
210
|
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
@@ -230,19 +239,19 @@ interface PremiumFeatures {
|
|
|
230
239
|
interface GetReferralProgramRequest {
|
|
231
240
|
}
|
|
232
241
|
interface GetReferralProgramResponse {
|
|
233
|
-
/**
|
|
242
|
+
/** Retrieved referral program. */
|
|
234
243
|
referralProgram?: ReferralProgram;
|
|
235
244
|
}
|
|
236
245
|
interface BulkGetReferralProgramRequest {
|
|
237
246
|
}
|
|
238
247
|
interface BulkGetReferralProgramResponse {
|
|
239
|
-
/**
|
|
248
|
+
/** Retrieved referral programs. */
|
|
240
249
|
programInSites?: ProgramInSite[];
|
|
241
250
|
}
|
|
242
251
|
interface ProgramInSite {
|
|
243
252
|
/** Metasite ID. */
|
|
244
253
|
metaSiteId?: string;
|
|
245
|
-
/**
|
|
254
|
+
/** Retrieved referral program. */
|
|
246
255
|
referralProgram?: ReferralProgram;
|
|
247
256
|
}
|
|
248
257
|
interface QueryReferralProgramsRequest {
|
|
@@ -300,7 +309,7 @@ interface CursorPaging$4 {
|
|
|
300
309
|
cursor?: string | null;
|
|
301
310
|
}
|
|
302
311
|
interface QueryReferralProgramsResponse {
|
|
303
|
-
/**
|
|
312
|
+
/** Referral programs matching the query. */
|
|
304
313
|
referralPrograms?: ReferralProgram[];
|
|
305
314
|
/** Paging metadata. */
|
|
306
315
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
@@ -325,33 +334,33 @@ interface Cursors$4 {
|
|
|
325
334
|
prev?: string | null;
|
|
326
335
|
}
|
|
327
336
|
interface UpdateReferralProgramRequest {
|
|
328
|
-
/**
|
|
337
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
329
338
|
referralProgram: ReferralProgram;
|
|
330
339
|
}
|
|
331
340
|
interface UpdateReferralProgramResponse {
|
|
332
|
-
/**
|
|
341
|
+
/** Updated referral program. */
|
|
333
342
|
referralProgram?: ReferralProgram;
|
|
334
343
|
}
|
|
335
344
|
interface ActivateReferralProgramRequest {
|
|
336
345
|
}
|
|
337
346
|
interface ActivateReferralProgramResponse {
|
|
338
|
-
/**
|
|
347
|
+
/** Activated referral program. */
|
|
339
348
|
referralProgram?: ReferralProgram;
|
|
340
349
|
}
|
|
341
350
|
interface PauseReferralProgramRequest {
|
|
342
351
|
}
|
|
343
352
|
interface PauseReferralProgramResponse {
|
|
344
|
-
/**
|
|
353
|
+
/** Paused referral program. */
|
|
345
354
|
referralProgram?: ReferralProgram;
|
|
346
355
|
}
|
|
347
356
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
348
|
-
/**
|
|
357
|
+
/** Topic to generate social media post suggestions for. */
|
|
349
358
|
topic?: string;
|
|
350
359
|
}
|
|
351
360
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
352
|
-
/**
|
|
361
|
+
/** Generated social media post suggestions. */
|
|
353
362
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
354
|
-
/**
|
|
363
|
+
/** Referral URL to refer friends. */
|
|
355
364
|
referFriendsPageUrl?: string | null;
|
|
356
365
|
}
|
|
357
366
|
interface AISocialMediaPostSuggestion {
|
|
@@ -361,7 +370,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
361
370
|
hashtags?: string[];
|
|
362
371
|
}
|
|
363
372
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
364
|
-
/**
|
|
373
|
+
/** Topic to generate social media post suggestions for. */
|
|
365
374
|
topic?: string;
|
|
366
375
|
}
|
|
367
376
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
@@ -1466,11 +1475,11 @@ interface ReferralProgramsQueryBuilder {
|
|
|
1466
1475
|
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1467
1476
|
}
|
|
1468
1477
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1469
|
-
/**
|
|
1478
|
+
/** Topic to generate social media post suggestions for. */
|
|
1470
1479
|
topic?: string;
|
|
1471
1480
|
}
|
|
1472
1481
|
interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
1473
|
-
/**
|
|
1482
|
+
/** Topic to generate social media post suggestions for. */
|
|
1474
1483
|
topic?: string;
|
|
1475
1484
|
}
|
|
1476
1485
|
|
|
@@ -2,12 +2,12 @@ interface ReferralProgram {
|
|
|
2
2
|
/** Referral program name. */
|
|
3
3
|
name?: string | null;
|
|
4
4
|
/**
|
|
5
|
-
* The status of the referral program.
|
|
5
|
+
* The status of the referral program. Possible values:
|
|
6
6
|
*
|
|
7
|
-
* `UNKNOWN`: Status is unknown
|
|
8
|
-
* `DRAFT`:
|
|
9
|
-
* `ACTIVE`: Referral program is active.
|
|
10
|
-
* `PAUSED`: Referral program is paused.
|
|
7
|
+
* - `UNKNOWN`: Status is unknown. This value is never used.
|
|
8
|
+
* - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
|
|
9
|
+
* - `ACTIVE`: Referral program is active.
|
|
10
|
+
* - `PAUSED`: Referral program is paused.
|
|
11
11
|
* @readonly
|
|
12
12
|
*/
|
|
13
13
|
status?: ProgramStatus;
|
|
@@ -23,20 +23,27 @@ interface ReferralProgram {
|
|
|
23
23
|
* @readonly
|
|
24
24
|
*/
|
|
25
25
|
_updatedDate?: Date;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Reward configuration for the referred friend.
|
|
28
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
29
|
+
*/
|
|
27
30
|
referredFriendReward?: Reward$2;
|
|
28
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Reward configuration for the referring customer.
|
|
33
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
34
|
+
*/
|
|
29
35
|
referringCustomerReward?: Reward$2;
|
|
30
36
|
/**
|
|
31
37
|
* A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
|
|
32
38
|
*
|
|
33
39
|
* Possible values:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* - `UNKNOWN`: Action is unknown.
|
|
42
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
43
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
44
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
45
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
46
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
40
47
|
*/
|
|
41
48
|
successfulReferralActions?: Action[];
|
|
42
49
|
/**
|
|
@@ -193,9 +200,11 @@ declare enum Action {
|
|
|
193
200
|
}
|
|
194
201
|
interface Emails {
|
|
195
202
|
/**
|
|
196
|
-
* Encourage customers to refer their friends email. Select
|
|
203
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
204
|
+
*
|
|
205
|
+
* Available apps:
|
|
197
206
|
*
|
|
198
|
-
* - `UNKNOWN`:
|
|
207
|
+
* - `UNKNOWN`: Unknown email.
|
|
199
208
|
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
200
209
|
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
201
210
|
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
@@ -230,19 +239,19 @@ interface PremiumFeatures {
|
|
|
230
239
|
interface GetReferralProgramRequest {
|
|
231
240
|
}
|
|
232
241
|
interface GetReferralProgramResponse {
|
|
233
|
-
/**
|
|
242
|
+
/** Retrieved referral program. */
|
|
234
243
|
referralProgram?: ReferralProgram;
|
|
235
244
|
}
|
|
236
245
|
interface BulkGetReferralProgramRequest {
|
|
237
246
|
}
|
|
238
247
|
interface BulkGetReferralProgramResponse {
|
|
239
|
-
/**
|
|
248
|
+
/** Retrieved referral programs. */
|
|
240
249
|
programInSites?: ProgramInSite[];
|
|
241
250
|
}
|
|
242
251
|
interface ProgramInSite {
|
|
243
252
|
/** Metasite ID. */
|
|
244
253
|
metaSiteId?: string;
|
|
245
|
-
/**
|
|
254
|
+
/** Retrieved referral program. */
|
|
246
255
|
referralProgram?: ReferralProgram;
|
|
247
256
|
}
|
|
248
257
|
interface QueryReferralProgramsRequest {
|
|
@@ -300,7 +309,7 @@ interface CursorPaging$4 {
|
|
|
300
309
|
cursor?: string | null;
|
|
301
310
|
}
|
|
302
311
|
interface QueryReferralProgramsResponse {
|
|
303
|
-
/**
|
|
312
|
+
/** Referral programs matching the query. */
|
|
304
313
|
referralPrograms?: ReferralProgram[];
|
|
305
314
|
/** Paging metadata. */
|
|
306
315
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
@@ -325,33 +334,33 @@ interface Cursors$4 {
|
|
|
325
334
|
prev?: string | null;
|
|
326
335
|
}
|
|
327
336
|
interface UpdateReferralProgramRequest {
|
|
328
|
-
/**
|
|
337
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
329
338
|
referralProgram: ReferralProgram;
|
|
330
339
|
}
|
|
331
340
|
interface UpdateReferralProgramResponse {
|
|
332
|
-
/**
|
|
341
|
+
/** Updated referral program. */
|
|
333
342
|
referralProgram?: ReferralProgram;
|
|
334
343
|
}
|
|
335
344
|
interface ActivateReferralProgramRequest {
|
|
336
345
|
}
|
|
337
346
|
interface ActivateReferralProgramResponse {
|
|
338
|
-
/**
|
|
347
|
+
/** Activated referral program. */
|
|
339
348
|
referralProgram?: ReferralProgram;
|
|
340
349
|
}
|
|
341
350
|
interface PauseReferralProgramRequest {
|
|
342
351
|
}
|
|
343
352
|
interface PauseReferralProgramResponse {
|
|
344
|
-
/**
|
|
353
|
+
/** Paused referral program. */
|
|
345
354
|
referralProgram?: ReferralProgram;
|
|
346
355
|
}
|
|
347
356
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
348
|
-
/**
|
|
357
|
+
/** Topic to generate social media post suggestions for. */
|
|
349
358
|
topic?: string;
|
|
350
359
|
}
|
|
351
360
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
352
|
-
/**
|
|
361
|
+
/** Generated social media post suggestions. */
|
|
353
362
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
354
|
-
/**
|
|
363
|
+
/** Referral URL to refer friends. */
|
|
355
364
|
referFriendsPageUrl?: string | null;
|
|
356
365
|
}
|
|
357
366
|
interface AISocialMediaPostSuggestion {
|
|
@@ -361,7 +370,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
361
370
|
hashtags?: string[];
|
|
362
371
|
}
|
|
363
372
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
364
|
-
/**
|
|
373
|
+
/** Topic to generate social media post suggestions for. */
|
|
365
374
|
topic?: string;
|
|
366
375
|
}
|
|
367
376
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
@@ -1466,11 +1475,11 @@ interface ReferralProgramsQueryBuilder {
|
|
|
1466
1475
|
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1467
1476
|
}
|
|
1468
1477
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1469
|
-
/**
|
|
1478
|
+
/** Topic to generate social media post suggestions for. */
|
|
1470
1479
|
topic?: string;
|
|
1471
1480
|
}
|
|
1472
1481
|
interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
1473
|
-
/**
|
|
1482
|
+
/** Topic to generate social media post suggestions for. */
|
|
1474
1483
|
topic?: string;
|
|
1475
1484
|
}
|
|
1476
1485
|
|
|
@@ -2,12 +2,12 @@ interface ReferralProgram$1 {
|
|
|
2
2
|
/** Referral program name. */
|
|
3
3
|
name?: string | null;
|
|
4
4
|
/**
|
|
5
|
-
* The status of the referral program.
|
|
5
|
+
* The status of the referral program. Possible values:
|
|
6
6
|
*
|
|
7
|
-
* `UNKNOWN`: Status is unknown
|
|
8
|
-
* `DRAFT`:
|
|
9
|
-
* `ACTIVE`: Referral program is active.
|
|
10
|
-
* `PAUSED`: Referral program is paused.
|
|
7
|
+
* - `UNKNOWN`: Status is unknown. This value is never used.
|
|
8
|
+
* - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
|
|
9
|
+
* - `ACTIVE`: Referral program is active.
|
|
10
|
+
* - `PAUSED`: Referral program is paused.
|
|
11
11
|
* @readonly
|
|
12
12
|
*/
|
|
13
13
|
status?: ProgramStatus$1;
|
|
@@ -23,20 +23,27 @@ interface ReferralProgram$1 {
|
|
|
23
23
|
* @readonly
|
|
24
24
|
*/
|
|
25
25
|
updatedDate?: Date;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Reward configuration for the referred friend.
|
|
28
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
29
|
+
*/
|
|
27
30
|
referredFriendReward?: Reward$3;
|
|
28
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Reward configuration for the referring customer.
|
|
33
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
34
|
+
*/
|
|
29
35
|
referringCustomerReward?: Reward$3;
|
|
30
36
|
/**
|
|
31
37
|
* A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
|
|
32
38
|
*
|
|
33
39
|
* Possible values:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* - `UNKNOWN`: Action is unknown.
|
|
42
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
43
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
44
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
45
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
46
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
40
47
|
*/
|
|
41
48
|
successfulReferralActions?: Action$1[];
|
|
42
49
|
/**
|
|
@@ -193,9 +200,11 @@ declare enum Action$1 {
|
|
|
193
200
|
}
|
|
194
201
|
interface Emails$1 {
|
|
195
202
|
/**
|
|
196
|
-
* Encourage customers to refer their friends email. Select
|
|
203
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
204
|
+
*
|
|
205
|
+
* Available apps:
|
|
197
206
|
*
|
|
198
|
-
* - `UNKNOWN`:
|
|
207
|
+
* - `UNKNOWN`: Unknown email.
|
|
199
208
|
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
200
209
|
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
201
210
|
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
@@ -230,7 +239,7 @@ interface PremiumFeatures$1 {
|
|
|
230
239
|
interface GetReferralProgramRequest$1 {
|
|
231
240
|
}
|
|
232
241
|
interface GetReferralProgramResponse$1 {
|
|
233
|
-
/**
|
|
242
|
+
/** Retrieved referral program. */
|
|
234
243
|
referralProgram?: ReferralProgram$1;
|
|
235
244
|
}
|
|
236
245
|
interface QueryReferralProgramsRequest$1 {
|
|
@@ -288,7 +297,7 @@ interface CursorPaging$9 {
|
|
|
288
297
|
cursor?: string | null;
|
|
289
298
|
}
|
|
290
299
|
interface QueryReferralProgramsResponse$1 {
|
|
291
|
-
/**
|
|
300
|
+
/** Referral programs matching the query. */
|
|
292
301
|
referralPrograms?: ReferralProgram$1[];
|
|
293
302
|
/** Paging metadata. */
|
|
294
303
|
pagingMetadata?: CursorPagingMetadata$9;
|
|
@@ -313,33 +322,33 @@ interface Cursors$9 {
|
|
|
313
322
|
prev?: string | null;
|
|
314
323
|
}
|
|
315
324
|
interface UpdateReferralProgramRequest$1 {
|
|
316
|
-
/**
|
|
325
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
317
326
|
referralProgram: ReferralProgram$1;
|
|
318
327
|
}
|
|
319
328
|
interface UpdateReferralProgramResponse$1 {
|
|
320
|
-
/**
|
|
329
|
+
/** Updated referral program. */
|
|
321
330
|
referralProgram?: ReferralProgram$1;
|
|
322
331
|
}
|
|
323
332
|
interface ActivateReferralProgramRequest$1 {
|
|
324
333
|
}
|
|
325
334
|
interface ActivateReferralProgramResponse$1 {
|
|
326
|
-
/**
|
|
335
|
+
/** Activated referral program. */
|
|
327
336
|
referralProgram?: ReferralProgram$1;
|
|
328
337
|
}
|
|
329
338
|
interface PauseReferralProgramRequest$1 {
|
|
330
339
|
}
|
|
331
340
|
interface PauseReferralProgramResponse$1 {
|
|
332
|
-
/**
|
|
341
|
+
/** Paused referral program. */
|
|
333
342
|
referralProgram?: ReferralProgram$1;
|
|
334
343
|
}
|
|
335
344
|
interface GetAISocialMediaPostsSuggestionsRequest$1 {
|
|
336
|
-
/**
|
|
345
|
+
/** Topic to generate social media post suggestions for. */
|
|
337
346
|
topic?: string;
|
|
338
347
|
}
|
|
339
348
|
interface GetAISocialMediaPostsSuggestionsResponse$1 {
|
|
340
|
-
/**
|
|
349
|
+
/** Generated social media post suggestions. */
|
|
341
350
|
suggestions?: AISocialMediaPostSuggestion$1[];
|
|
342
|
-
/**
|
|
351
|
+
/** Referral URL to refer friends. */
|
|
343
352
|
referFriendsPageUrl?: string | null;
|
|
344
353
|
}
|
|
345
354
|
interface AISocialMediaPostSuggestion$1 {
|
|
@@ -349,7 +358,7 @@ interface AISocialMediaPostSuggestion$1 {
|
|
|
349
358
|
hashtags?: string[];
|
|
350
359
|
}
|
|
351
360
|
interface GenerateAISocialMediaPostsSuggestionsRequest$1 {
|
|
352
|
-
/**
|
|
361
|
+
/** Topic to generate social media post suggestions for. */
|
|
353
362
|
topic?: string;
|
|
354
363
|
}
|
|
355
364
|
interface GenerateAISocialMediaPostsSuggestionsResponse$1 {
|
|
@@ -445,12 +454,12 @@ interface ReferralProgram {
|
|
|
445
454
|
/** Referral program name. */
|
|
446
455
|
name?: string | null;
|
|
447
456
|
/**
|
|
448
|
-
* The status of the referral program.
|
|
457
|
+
* The status of the referral program. Possible values:
|
|
449
458
|
*
|
|
450
|
-
* `UNKNOWN`: Status is unknown
|
|
451
|
-
* `DRAFT`:
|
|
452
|
-
* `ACTIVE`: Referral program is active.
|
|
453
|
-
* `PAUSED`: Referral program is paused.
|
|
459
|
+
* - `UNKNOWN`: Status is unknown. This value is never used.
|
|
460
|
+
* - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
|
|
461
|
+
* - `ACTIVE`: Referral program is active.
|
|
462
|
+
* - `PAUSED`: Referral program is paused.
|
|
454
463
|
* @readonly
|
|
455
464
|
*/
|
|
456
465
|
status?: ProgramStatus;
|
|
@@ -466,20 +475,27 @@ interface ReferralProgram {
|
|
|
466
475
|
* @readonly
|
|
467
476
|
*/
|
|
468
477
|
_updatedDate?: Date;
|
|
469
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* Reward configuration for the referred friend.
|
|
480
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
481
|
+
*/
|
|
470
482
|
referredFriendReward?: Reward$2;
|
|
471
|
-
/**
|
|
483
|
+
/**
|
|
484
|
+
* Reward configuration for the referring customer.
|
|
485
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
486
|
+
*/
|
|
472
487
|
referringCustomerReward?: Reward$2;
|
|
473
488
|
/**
|
|
474
489
|
* A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
|
|
475
490
|
*
|
|
476
491
|
* Possible values:
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
492
|
+
*
|
|
493
|
+
* - `UNKNOWN`: Action is unknown.
|
|
494
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
495
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
496
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
497
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
498
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
483
499
|
*/
|
|
484
500
|
successfulReferralActions?: Action[];
|
|
485
501
|
/**
|
|
@@ -636,9 +652,11 @@ declare enum Action {
|
|
|
636
652
|
}
|
|
637
653
|
interface Emails {
|
|
638
654
|
/**
|
|
639
|
-
* Encourage customers to refer their friends email. Select
|
|
655
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
656
|
+
*
|
|
657
|
+
* Available apps:
|
|
640
658
|
*
|
|
641
|
-
* - `UNKNOWN`:
|
|
659
|
+
* - `UNKNOWN`: Unknown email.
|
|
642
660
|
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
643
661
|
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
644
662
|
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
@@ -673,7 +691,7 @@ interface PremiumFeatures {
|
|
|
673
691
|
interface GetReferralProgramRequest {
|
|
674
692
|
}
|
|
675
693
|
interface GetReferralProgramResponse {
|
|
676
|
-
/**
|
|
694
|
+
/** Retrieved referral program. */
|
|
677
695
|
referralProgram?: ReferralProgram;
|
|
678
696
|
}
|
|
679
697
|
interface QueryReferralProgramsRequest {
|
|
@@ -731,7 +749,7 @@ interface CursorPaging$8 {
|
|
|
731
749
|
cursor?: string | null;
|
|
732
750
|
}
|
|
733
751
|
interface QueryReferralProgramsResponse {
|
|
734
|
-
/**
|
|
752
|
+
/** Referral programs matching the query. */
|
|
735
753
|
referralPrograms?: ReferralProgram[];
|
|
736
754
|
/** Paging metadata. */
|
|
737
755
|
pagingMetadata?: CursorPagingMetadata$8;
|
|
@@ -756,33 +774,33 @@ interface Cursors$8 {
|
|
|
756
774
|
prev?: string | null;
|
|
757
775
|
}
|
|
758
776
|
interface UpdateReferralProgramRequest {
|
|
759
|
-
/**
|
|
777
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
760
778
|
referralProgram: ReferralProgram;
|
|
761
779
|
}
|
|
762
780
|
interface UpdateReferralProgramResponse {
|
|
763
|
-
/**
|
|
781
|
+
/** Updated referral program. */
|
|
764
782
|
referralProgram?: ReferralProgram;
|
|
765
783
|
}
|
|
766
784
|
interface ActivateReferralProgramRequest {
|
|
767
785
|
}
|
|
768
786
|
interface ActivateReferralProgramResponse {
|
|
769
|
-
/**
|
|
787
|
+
/** Activated referral program. */
|
|
770
788
|
referralProgram?: ReferralProgram;
|
|
771
789
|
}
|
|
772
790
|
interface PauseReferralProgramRequest {
|
|
773
791
|
}
|
|
774
792
|
interface PauseReferralProgramResponse {
|
|
775
|
-
/**
|
|
793
|
+
/** Paused referral program. */
|
|
776
794
|
referralProgram?: ReferralProgram;
|
|
777
795
|
}
|
|
778
796
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
779
|
-
/**
|
|
797
|
+
/** Topic to generate social media post suggestions for. */
|
|
780
798
|
topic?: string;
|
|
781
799
|
}
|
|
782
800
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
783
|
-
/**
|
|
801
|
+
/** Generated social media post suggestions. */
|
|
784
802
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
785
|
-
/**
|
|
803
|
+
/** Referral URL to refer friends. */
|
|
786
804
|
referFriendsPageUrl?: string | null;
|
|
787
805
|
}
|
|
788
806
|
interface AISocialMediaPostSuggestion {
|
|
@@ -792,7 +810,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
792
810
|
hashtags?: string[];
|
|
793
811
|
}
|
|
794
812
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
795
|
-
/**
|
|
813
|
+
/** Topic to generate social media post suggestions for. */
|
|
796
814
|
topic?: string;
|
|
797
815
|
}
|
|
798
816
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|