@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.15
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/CHANGELOG.md +98 -0
- package/README.md +22 -14
- package/core.d.ts.map +1 -1
- package/core.js +14 -7
- package/core.js.map +1 -1
- package/core.mjs +14 -7
- package/core.mjs.map +1 -1
- package/index.d.mts +11 -26
- package/index.d.ts +11 -26
- package/index.d.ts.map +1 -1
- package/index.js +8 -23
- package/index.js.map +1 -1
- package/index.mjs +8 -23
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api/api.d.ts +365 -0
- package/resources/api/api.d.ts.map +1 -0
- package/resources/api/api.js +94 -0
- package/resources/api/api.js.map +1 -0
- package/resources/api/api.mjs +67 -0
- package/resources/api/api.mjs.map +1 -0
- package/resources/api/index.d.ts +9 -0
- package/resources/api/index.d.ts.map +1 -0
- package/resources/api/index.js +21 -0
- package/resources/api/index.js.map +1 -0
- package/resources/api/index.mjs +10 -0
- package/resources/api/index.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/accounts.d.ts +44 -6
- package/resources/api/loyalty/accounts.d.ts.map +1 -0
- package/resources/api/loyalty/accounts.js +24 -0
- package/resources/api/loyalty/accounts.js.map +1 -0
- package/resources/api/loyalty/accounts.mjs +20 -0
- package/resources/api/loyalty/accounts.mjs.map +1 -0
- package/resources/api/loyalty/badges.d.ts +870 -0
- package/resources/api/loyalty/badges.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.js +2 -2
- package/resources/api/loyalty/badges.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
- package/resources/api/loyalty/badges.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.d.ts +3 -9
- package/resources/api/loyalty/currencies.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
- package/resources/api/loyalty/currencies.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
- package/resources/api/loyalty/currencies.mjs.map +1 -0
- package/resources/api/loyalty/index.d.ts +10 -0
- package/resources/api/loyalty/index.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.js +5 -3
- package/resources/api/loyalty/index.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
- package/resources/api/loyalty/index.mjs.map +1 -0
- package/resources/api/loyalty/loyalty.d.ts +807 -0
- package/resources/api/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
- package/resources/api/loyalty/loyalty.js.map +1 -0
- package/resources/api/loyalty/loyalty.mjs +59 -0
- package/resources/api/loyalty/loyalty.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.d.ts +36 -4
- package/resources/api/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.js +8 -2
- package/resources/api/loyalty/multipliers.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.mjs +8 -2
- package/resources/api/loyalty/multipliers.mjs.map +1 -0
- package/resources/api/loyalty/questions-responses.d.ts +97 -0
- package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/api/loyalty/questions-responses.js +22 -0
- package/resources/api/loyalty/questions-responses.js.map +1 -0
- package/resources/api/loyalty/questions-responses.mjs +18 -0
- package/resources/api/loyalty/questions-responses.mjs.map +1 -0
- package/resources/api/loyalty/questions.d.ts +150 -0
- package/resources/api/loyalty/questions.d.ts.map +1 -0
- package/resources/api/loyalty/questions.js +27 -0
- package/resources/api/loyalty/questions.js.map +1 -0
- package/resources/api/loyalty/questions.mjs +23 -0
- package/resources/api/loyalty/questions.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +9 -9
- package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.js +3 -3
- package/resources/api/loyalty/rule-edits.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.mjs +3 -3
- package/resources/api/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.d.ts +167 -90
- package/resources/api/loyalty/rules.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.js +3 -3
- package/resources/api/loyalty/rules.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
- package/resources/api/loyalty/rules.mjs.map +1 -0
- package/resources/api/loyalty.d.ts +2 -0
- package/resources/api/loyalty.d.ts.map +1 -0
- package/resources/api/loyalty.js +19 -0
- package/resources/api/loyalty.js.map +1 -0
- package/resources/api/loyalty.mjs +3 -0
- package/resources/api/loyalty.mjs.map +1 -0
- package/resources/api/minting.d.ts +95 -0
- package/resources/api/minting.d.ts.map +1 -0
- package/resources/api/minting.js +15 -0
- package/resources/api/minting.js.map +1 -0
- package/resources/api/minting.mjs +11 -0
- package/resources/api/minting.mjs.map +1 -0
- package/resources/api/referral/index.d.ts +3 -0
- package/resources/api/referral/index.d.ts.map +1 -0
- package/resources/api/referral/index.js +9 -0
- package/resources/api/referral/index.js.map +1 -0
- package/resources/api/referral/index.mjs +4 -0
- package/resources/api/referral/index.mjs.map +1 -0
- package/resources/api/referral/referral.d.ts +31 -0
- package/resources/api/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → api/referral/referral.js} +16 -13
- package/resources/api/referral/referral.js.map +1 -0
- package/resources/api/referral/referral.mjs +19 -0
- package/resources/api/referral/referral.mjs.map +1 -0
- package/resources/api/referral/users.d.ts +57 -0
- package/resources/api/referral/users.d.ts.map +1 -0
- package/resources/api/referral/users.js +21 -0
- package/resources/api/referral/users.js.map +1 -0
- package/resources/api/referral/users.mjs +17 -0
- package/resources/api/referral/users.mjs.map +1 -0
- package/resources/api/referral.d.ts +2 -0
- package/resources/api/referral.d.ts.map +1 -0
- package/resources/api/referral.js +19 -0
- package/resources/api/referral.js.map +1 -0
- package/resources/api/referral.mjs +3 -0
- package/resources/api/referral.mjs.map +1 -0
- package/resources/api/users/index.d.ts +3 -0
- package/resources/api/users/index.d.ts.map +1 -0
- package/resources/{users → api/users}/index.js +1 -3
- package/resources/api/users/index.js.map +1 -0
- package/resources/api/users/index.mjs +4 -0
- package/resources/api/users/index.mjs.map +1 -0
- package/resources/api/users/metadatas.d.ts +137 -0
- package/resources/api/users/metadatas.d.ts.map +1 -0
- package/resources/{users → api/users}/metadatas.js +8 -2
- package/resources/api/users/metadatas.js.map +1 -0
- package/resources/api/users/metadatas.mjs +18 -0
- package/resources/api/users/metadatas.mjs.map +1 -0
- package/resources/api/users/users.d.ts +133 -0
- package/resources/api/users/users.d.ts.map +1 -0
- package/resources/{users → api/users}/users.js +19 -5
- package/resources/api/users/users.js.map +1 -0
- package/resources/api/users/users.mjs +30 -0
- package/resources/api/users/users.mjs.map +1 -0
- package/resources/api/users.d.ts +2 -0
- package/resources/api/users.d.ts.map +1 -0
- package/resources/api/users.js +19 -0
- package/resources/api/users.js.map +1 -0
- package/resources/api/users.mjs +3 -0
- package/resources/api/users.mjs.map +1 -0
- package/resources/api/website-collections.d.ts +73 -0
- package/resources/api/website-collections.d.ts.map +1 -0
- package/resources/api/website-collections.js +25 -0
- package/resources/api/website-collections.js.map +1 -0
- package/resources/api/website-collections.mjs +21 -0
- package/resources/api/website-collections.mjs.map +1 -0
- package/resources/api/website-user-roles.d.ts +73 -0
- package/resources/api/website-user-roles.d.ts.map +1 -0
- package/resources/api/website-user-roles.js +22 -0
- package/resources/api/website-user-roles.js.map +1 -0
- package/resources/api/website-user-roles.mjs +18 -0
- package/resources/api/website-user-roles.mjs.map +1 -0
- package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
- package/resources/api/websites.d.ts.map +1 -0
- package/resources/{websites.js → api/websites.js} +2 -2
- package/resources/api/websites.js.map +1 -0
- package/resources/{websites.mjs → api/websites.mjs} +2 -2
- package/resources/api/websites.mjs.map +1 -0
- package/resources/api.d.ts +2 -0
- package/resources/api.d.ts.map +1 -0
- package/resources/api.js +19 -0
- package/resources/api.js.map +1 -0
- package/resources/api.mjs +3 -0
- package/resources/api.mjs.map +1 -0
- package/resources/index.d.ts +1 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/core.ts +16 -8
- package/src/index.ts +28 -57
- package/src/resources/api/api.ts +629 -0
- package/src/resources/api/index.ts +51 -0
- package/src/resources/{loyalty → api/loyalty}/accounts.ts +65 -8
- package/src/resources/api/loyalty/badges.ts +1142 -0
- package/src/resources/{loyalty → api/loyalty}/currencies.ts +3 -9
- package/src/resources/{loyalty → api/loyalty}/index.ts +38 -11
- package/src/resources/api/loyalty/loyalty.ts +1297 -0
- package/src/resources/{loyalty → api/loyalty}/multipliers.ts +61 -4
- package/src/resources/api/loyalty/questions-responses.ts +146 -0
- package/src/resources/api/loyalty/questions.ts +208 -0
- package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +11 -14
- package/src/resources/{loyalty → api/loyalty}/rules.ts +339 -180
- package/src/resources/api/loyalty.ts +3 -0
- package/src/resources/api/minting.ts +157 -0
- package/src/resources/api/referral/index.ts +10 -0
- package/src/resources/api/referral/referral.ts +70 -0
- package/src/resources/api/referral/users.ts +93 -0
- package/src/resources/api/referral.ts +3 -0
- package/src/resources/api/users/index.ts +18 -0
- package/src/resources/api/users/metadatas.ts +206 -0
- package/src/resources/api/users/users.ts +203 -0
- package/src/resources/api/users.ts +3 -0
- package/src/resources/api/website-collections.ts +148 -0
- package/src/resources/api/website-user-roles.ts +107 -0
- package/src/resources/{websites.ts → api/websites.ts} +3 -3
- package/src/resources/api.ts +3 -0
- package/src/resources/index.ts +8 -11
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -81
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -30
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -26
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -168
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -17
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -13
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -26
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -16
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -12
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/accounts.d.ts.map +0 -1
- package/resources/loyalty/accounts.js +0 -16
- package/resources/loyalty/accounts.js.map +0 -1
- package/resources/loyalty/accounts.mjs +0 -12
- package/resources/loyalty/accounts.mjs.map +0 -1
- package/resources/loyalty/badges.d.ts +0 -299
- package/resources/loyalty/badges.d.ts.map +0 -1
- package/resources/loyalty/badges.js.map +0 -1
- package/resources/loyalty/badges.mjs.map +0 -1
- package/resources/loyalty/currencies.d.ts.map +0 -1
- package/resources/loyalty/currencies.js.map +0 -1
- package/resources/loyalty/currencies.mjs.map +0 -1
- package/resources/loyalty/index.d.ts +0 -9
- package/resources/loyalty/index.d.ts.map +0 -1
- package/resources/loyalty/index.js.map +0 -1
- package/resources/loyalty/index.mjs.map +0 -1
- package/resources/loyalty/loyalty.d.ts +0 -34
- package/resources/loyalty/loyalty.d.ts.map +0 -1
- package/resources/loyalty/loyalty.js.map +0 -1
- package/resources/loyalty/loyalty.mjs +0 -36
- package/resources/loyalty/loyalty.mjs.map +0 -1
- package/resources/loyalty/multipliers.d.ts.map +0 -1
- package/resources/loyalty/multipliers.js.map +0 -1
- package/resources/loyalty/multipliers.mjs.map +0 -1
- package/resources/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/loyalty/rule-edits.js.map +0 -1
- package/resources/loyalty/rule-edits.mjs.map +0 -1
- package/resources/loyalty/rules.d.ts.map +0 -1
- package/resources/loyalty/rules.js.map +0 -1
- package/resources/loyalty/rules.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/resources/users/index.d.ts +0 -4
- package/resources/users/index.d.ts.map +0 -1
- package/resources/users/index.js.map +0 -1
- package/resources/users/index.mjs +0 -5
- package/resources/users/index.mjs.map +0 -1
- package/resources/users/metadatas.d.ts +0 -64
- package/resources/users/metadatas.d.ts.map +0 -1
- package/resources/users/metadatas.js.map +0 -1
- package/resources/users/metadatas.mjs +0 -12
- package/resources/users/metadatas.mjs.map +0 -1
- package/resources/users/users.d.ts +0 -14
- package/resources/users/users.d.ts.map +0 -1
- package/resources/users/users.js.map +0 -1
- package/resources/users/users.mjs +0 -16
- package/resources/users/users.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -193
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -28
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -24
- package/resources/users/wallets.mjs.map +0 -1
- package/resources/websites.d.ts.map +0 -1
- package/resources/websites.js.map +0 -1
- package/resources/websites.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- package/src/resources/auction-bids.ts +0 -123
- package/src/resources/drip/drip.ts +0 -25
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -210
- package/src/resources/drip/status.ts +0 -33
- package/src/resources/loyalty/badges.ts +0 -435
- package/src/resources/loyalty/loyalty.ts +0 -159
- package/src/resources/loyalty/transaction-entries.ts +0 -229
- package/src/resources/users/index.ts +0 -12
- package/src/resources/users/metadatas.ts +0 -103
- package/src/resources/users/users.ts +0 -39
- package/src/resources/users/wallets.ts +0 -271
|
@@ -0,0 +1,870 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
export declare class Badges extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint allows you to configure a new badge.
|
|
6
|
+
*/
|
|
7
|
+
create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* This endpoint allows you to update an existing badge.
|
|
10
|
+
*/
|
|
11
|
+
update(id: string, body?: BadgeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
12
|
+
update(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* This endpoint allows you to fetch badge(s) data.
|
|
15
|
+
*/
|
|
16
|
+
list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* This endpoint allows you to delete a badge.
|
|
20
|
+
*/
|
|
21
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint allows you to revoke a badge from an account
|
|
24
|
+
*/
|
|
25
|
+
revoke(id: string, body?: BadgeRevokeParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
26
|
+
revoke(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* This endpoint allows you to reward a badge for an account
|
|
29
|
+
*/
|
|
30
|
+
reward(id: string, body?: BadgeRewardParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
31
|
+
reward(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Response returned upon successful creation of the badge.
|
|
35
|
+
*/
|
|
36
|
+
export interface BadgeCreateResponse {
|
|
37
|
+
/**
|
|
38
|
+
* UUID of the badge (converted to lowercase)
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The description of the badge
|
|
43
|
+
*/
|
|
44
|
+
description: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The URL of the badge image
|
|
47
|
+
*/
|
|
48
|
+
imageUrl: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Array of conditions of the badge
|
|
51
|
+
*/
|
|
52
|
+
loyaltyConditions: Array<BadgeCreateResponse.LoyaltyCondition>;
|
|
53
|
+
/**
|
|
54
|
+
* The name of the badge
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* Array of user badges
|
|
59
|
+
*/
|
|
60
|
+
LoyaltyBadgeUser?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace BadgeCreateResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Schema for a loyalty condition rule.
|
|
65
|
+
*/
|
|
66
|
+
interface LoyaltyCondition {
|
|
67
|
+
/**
|
|
68
|
+
* UUID of the condition (converted to lowercase)
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* The amount of the condition
|
|
73
|
+
*/
|
|
74
|
+
amount: number | null;
|
|
75
|
+
association: Array<LoyaltyCondition.Association>;
|
|
76
|
+
/**
|
|
77
|
+
* The URL of the CSV file
|
|
78
|
+
*/
|
|
79
|
+
csvUrl: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The description of the condition
|
|
82
|
+
*/
|
|
83
|
+
description: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* UUID of the currency (converted to lowercase)
|
|
86
|
+
*/
|
|
87
|
+
loyaltyCurrencyId: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* UUID of the rule group (converted to lowercase)
|
|
90
|
+
*/
|
|
91
|
+
loyaltyRuleGroupId: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* The repeat count of the condition
|
|
94
|
+
*/
|
|
95
|
+
repeatCount: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* The required count of the condition
|
|
98
|
+
*/
|
|
99
|
+
requiredCount: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* The type of the condition
|
|
102
|
+
*/
|
|
103
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
104
|
+
}
|
|
105
|
+
namespace LoyaltyCondition {
|
|
106
|
+
interface Association {
|
|
107
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
108
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
109
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
110
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
111
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
112
|
+
}
|
|
113
|
+
namespace Association {
|
|
114
|
+
interface LoyaltyBadge {
|
|
115
|
+
/**
|
|
116
|
+
* UUID of the association (converted to lowercase)
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
/**
|
|
120
|
+
* The name of the association
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
}
|
|
124
|
+
interface LoyaltyCurrency {
|
|
125
|
+
/**
|
|
126
|
+
* UUID of the association (converted to lowercase)
|
|
127
|
+
*/
|
|
128
|
+
id: string;
|
|
129
|
+
/**
|
|
130
|
+
* The name of the association
|
|
131
|
+
*/
|
|
132
|
+
name: string;
|
|
133
|
+
}
|
|
134
|
+
interface LoyaltyLeaderboardView {
|
|
135
|
+
/**
|
|
136
|
+
* UUID of the association (converted to lowercase)
|
|
137
|
+
*/
|
|
138
|
+
id: string;
|
|
139
|
+
/**
|
|
140
|
+
* The name of the association
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
}
|
|
144
|
+
interface LoyaltyRule {
|
|
145
|
+
/**
|
|
146
|
+
* UUID of the association (converted to lowercase)
|
|
147
|
+
*/
|
|
148
|
+
id: string;
|
|
149
|
+
/**
|
|
150
|
+
* The name of the association
|
|
151
|
+
*/
|
|
152
|
+
name: string;
|
|
153
|
+
}
|
|
154
|
+
interface LoyaltyRuleGroup {
|
|
155
|
+
/**
|
|
156
|
+
* UUID of the association (converted to lowercase)
|
|
157
|
+
*/
|
|
158
|
+
id: string;
|
|
159
|
+
/**
|
|
160
|
+
* The name of the association
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
interface LoyaltyBadgeUser {
|
|
167
|
+
/**
|
|
168
|
+
* UUID of the user badge (converted to lowercase)
|
|
169
|
+
*/
|
|
170
|
+
id: string;
|
|
171
|
+
/**
|
|
172
|
+
* UUID of the badge (converted to lowercase)
|
|
173
|
+
*/
|
|
174
|
+
loyaltyBadgeId: string;
|
|
175
|
+
/**
|
|
176
|
+
* UUID of the organization (converted to lowercase)
|
|
177
|
+
*/
|
|
178
|
+
organizationId: string;
|
|
179
|
+
/**
|
|
180
|
+
* The status of the badge
|
|
181
|
+
*/
|
|
182
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
183
|
+
/**
|
|
184
|
+
* UUID of the user (converted to lowercase)
|
|
185
|
+
*/
|
|
186
|
+
userId: string;
|
|
187
|
+
/**
|
|
188
|
+
* UUID of the website (converted to lowercase)
|
|
189
|
+
*/
|
|
190
|
+
websiteId: string;
|
|
191
|
+
/**
|
|
192
|
+
* Array of progress for the badge
|
|
193
|
+
*/
|
|
194
|
+
progress?: unknown;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Response returned upon successful update of the badge.
|
|
199
|
+
*/
|
|
200
|
+
export interface BadgeUpdateResponse {
|
|
201
|
+
/**
|
|
202
|
+
* UUID of the badge (converted to lowercase)
|
|
203
|
+
*/
|
|
204
|
+
id: string;
|
|
205
|
+
/**
|
|
206
|
+
* The description of the badge
|
|
207
|
+
*/
|
|
208
|
+
description: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* The URL of the badge image
|
|
211
|
+
*/
|
|
212
|
+
imageUrl: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Array of conditions of the badge
|
|
215
|
+
*/
|
|
216
|
+
loyaltyConditions: Array<BadgeUpdateResponse.LoyaltyCondition>;
|
|
217
|
+
/**
|
|
218
|
+
* The name of the badge
|
|
219
|
+
*/
|
|
220
|
+
name: string;
|
|
221
|
+
/**
|
|
222
|
+
* Array of user badges
|
|
223
|
+
*/
|
|
224
|
+
LoyaltyBadgeUser?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
225
|
+
}
|
|
226
|
+
export declare namespace BadgeUpdateResponse {
|
|
227
|
+
/**
|
|
228
|
+
* Schema for a loyalty condition rule.
|
|
229
|
+
*/
|
|
230
|
+
interface LoyaltyCondition {
|
|
231
|
+
/**
|
|
232
|
+
* UUID of the condition (converted to lowercase)
|
|
233
|
+
*/
|
|
234
|
+
id: string;
|
|
235
|
+
/**
|
|
236
|
+
* The amount of the condition
|
|
237
|
+
*/
|
|
238
|
+
amount: number | null;
|
|
239
|
+
association: Array<LoyaltyCondition.Association>;
|
|
240
|
+
/**
|
|
241
|
+
* The URL of the CSV file
|
|
242
|
+
*/
|
|
243
|
+
csvUrl: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* The description of the condition
|
|
246
|
+
*/
|
|
247
|
+
description: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* UUID of the currency (converted to lowercase)
|
|
250
|
+
*/
|
|
251
|
+
loyaltyCurrencyId: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* UUID of the rule group (converted to lowercase)
|
|
254
|
+
*/
|
|
255
|
+
loyaltyRuleGroupId: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* The repeat count of the condition
|
|
258
|
+
*/
|
|
259
|
+
repeatCount: number | null;
|
|
260
|
+
/**
|
|
261
|
+
* The required count of the condition
|
|
262
|
+
*/
|
|
263
|
+
requiredCount: number | null;
|
|
264
|
+
/**
|
|
265
|
+
* The type of the condition
|
|
266
|
+
*/
|
|
267
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
268
|
+
}
|
|
269
|
+
namespace LoyaltyCondition {
|
|
270
|
+
interface Association {
|
|
271
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
272
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
273
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
274
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
275
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
276
|
+
}
|
|
277
|
+
namespace Association {
|
|
278
|
+
interface LoyaltyBadge {
|
|
279
|
+
/**
|
|
280
|
+
* UUID of the association (converted to lowercase)
|
|
281
|
+
*/
|
|
282
|
+
id: string;
|
|
283
|
+
/**
|
|
284
|
+
* The name of the association
|
|
285
|
+
*/
|
|
286
|
+
name: string;
|
|
287
|
+
}
|
|
288
|
+
interface LoyaltyCurrency {
|
|
289
|
+
/**
|
|
290
|
+
* UUID of the association (converted to lowercase)
|
|
291
|
+
*/
|
|
292
|
+
id: string;
|
|
293
|
+
/**
|
|
294
|
+
* The name of the association
|
|
295
|
+
*/
|
|
296
|
+
name: string;
|
|
297
|
+
}
|
|
298
|
+
interface LoyaltyLeaderboardView {
|
|
299
|
+
/**
|
|
300
|
+
* UUID of the association (converted to lowercase)
|
|
301
|
+
*/
|
|
302
|
+
id: string;
|
|
303
|
+
/**
|
|
304
|
+
* The name of the association
|
|
305
|
+
*/
|
|
306
|
+
name: string;
|
|
307
|
+
}
|
|
308
|
+
interface LoyaltyRule {
|
|
309
|
+
/**
|
|
310
|
+
* UUID of the association (converted to lowercase)
|
|
311
|
+
*/
|
|
312
|
+
id: string;
|
|
313
|
+
/**
|
|
314
|
+
* The name of the association
|
|
315
|
+
*/
|
|
316
|
+
name: string;
|
|
317
|
+
}
|
|
318
|
+
interface LoyaltyRuleGroup {
|
|
319
|
+
/**
|
|
320
|
+
* UUID of the association (converted to lowercase)
|
|
321
|
+
*/
|
|
322
|
+
id: string;
|
|
323
|
+
/**
|
|
324
|
+
* The name of the association
|
|
325
|
+
*/
|
|
326
|
+
name: string;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
interface LoyaltyBadgeUser {
|
|
331
|
+
/**
|
|
332
|
+
* UUID of the user badge (converted to lowercase)
|
|
333
|
+
*/
|
|
334
|
+
id: string;
|
|
335
|
+
/**
|
|
336
|
+
* UUID of the badge (converted to lowercase)
|
|
337
|
+
*/
|
|
338
|
+
loyaltyBadgeId: string;
|
|
339
|
+
/**
|
|
340
|
+
* UUID of the organization (converted to lowercase)
|
|
341
|
+
*/
|
|
342
|
+
organizationId: string;
|
|
343
|
+
/**
|
|
344
|
+
* The status of the badge
|
|
345
|
+
*/
|
|
346
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
347
|
+
/**
|
|
348
|
+
* UUID of the user (converted to lowercase)
|
|
349
|
+
*/
|
|
350
|
+
userId: string;
|
|
351
|
+
/**
|
|
352
|
+
* UUID of the website (converted to lowercase)
|
|
353
|
+
*/
|
|
354
|
+
websiteId: string;
|
|
355
|
+
/**
|
|
356
|
+
* Array of progress for the badge
|
|
357
|
+
*/
|
|
358
|
+
progress?: unknown;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Response returned upon successful fetching of the badges.
|
|
363
|
+
*/
|
|
364
|
+
export interface BadgeListResponse {
|
|
365
|
+
/**
|
|
366
|
+
* UUID of the badge (converted to lowercase)
|
|
367
|
+
*/
|
|
368
|
+
id: string;
|
|
369
|
+
/**
|
|
370
|
+
* The description of the badge
|
|
371
|
+
*/
|
|
372
|
+
description: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* The URL of the badge image
|
|
375
|
+
*/
|
|
376
|
+
imageUrl: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* Array of conditions of the badge
|
|
379
|
+
*/
|
|
380
|
+
loyaltyConditions: Array<BadgeListResponse.LoyaltyCondition>;
|
|
381
|
+
/**
|
|
382
|
+
* The name of the badge
|
|
383
|
+
*/
|
|
384
|
+
name: string;
|
|
385
|
+
/**
|
|
386
|
+
* Array of user badges
|
|
387
|
+
*/
|
|
388
|
+
LoyaltyBadgeUser?: Array<BadgeListResponse.LoyaltyBadgeUser>;
|
|
389
|
+
}
|
|
390
|
+
export declare namespace BadgeListResponse {
|
|
391
|
+
/**
|
|
392
|
+
* Schema for a loyalty condition rule.
|
|
393
|
+
*/
|
|
394
|
+
interface LoyaltyCondition {
|
|
395
|
+
/**
|
|
396
|
+
* UUID of the condition (converted to lowercase)
|
|
397
|
+
*/
|
|
398
|
+
id: string;
|
|
399
|
+
/**
|
|
400
|
+
* The amount of the condition
|
|
401
|
+
*/
|
|
402
|
+
amount: number | null;
|
|
403
|
+
association: Array<LoyaltyCondition.Association>;
|
|
404
|
+
/**
|
|
405
|
+
* The URL of the CSV file
|
|
406
|
+
*/
|
|
407
|
+
csvUrl: string | null;
|
|
408
|
+
/**
|
|
409
|
+
* The description of the condition
|
|
410
|
+
*/
|
|
411
|
+
description: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* UUID of the currency (converted to lowercase)
|
|
414
|
+
*/
|
|
415
|
+
loyaltyCurrencyId: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* UUID of the rule group (converted to lowercase)
|
|
418
|
+
*/
|
|
419
|
+
loyaltyRuleGroupId: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* The repeat count of the condition
|
|
422
|
+
*/
|
|
423
|
+
repeatCount: number | null;
|
|
424
|
+
/**
|
|
425
|
+
* The required count of the condition
|
|
426
|
+
*/
|
|
427
|
+
requiredCount: number | null;
|
|
428
|
+
/**
|
|
429
|
+
* The type of the condition
|
|
430
|
+
*/
|
|
431
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
432
|
+
}
|
|
433
|
+
namespace LoyaltyCondition {
|
|
434
|
+
interface Association {
|
|
435
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
436
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
437
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
438
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
439
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
440
|
+
}
|
|
441
|
+
namespace Association {
|
|
442
|
+
interface LoyaltyBadge {
|
|
443
|
+
/**
|
|
444
|
+
* UUID of the association (converted to lowercase)
|
|
445
|
+
*/
|
|
446
|
+
id: string;
|
|
447
|
+
/**
|
|
448
|
+
* The name of the association
|
|
449
|
+
*/
|
|
450
|
+
name: string;
|
|
451
|
+
}
|
|
452
|
+
interface LoyaltyCurrency {
|
|
453
|
+
/**
|
|
454
|
+
* UUID of the association (converted to lowercase)
|
|
455
|
+
*/
|
|
456
|
+
id: string;
|
|
457
|
+
/**
|
|
458
|
+
* The name of the association
|
|
459
|
+
*/
|
|
460
|
+
name: string;
|
|
461
|
+
}
|
|
462
|
+
interface LoyaltyLeaderboardView {
|
|
463
|
+
/**
|
|
464
|
+
* UUID of the association (converted to lowercase)
|
|
465
|
+
*/
|
|
466
|
+
id: string;
|
|
467
|
+
/**
|
|
468
|
+
* The name of the association
|
|
469
|
+
*/
|
|
470
|
+
name: string;
|
|
471
|
+
}
|
|
472
|
+
interface LoyaltyRule {
|
|
473
|
+
/**
|
|
474
|
+
* UUID of the association (converted to lowercase)
|
|
475
|
+
*/
|
|
476
|
+
id: string;
|
|
477
|
+
/**
|
|
478
|
+
* The name of the association
|
|
479
|
+
*/
|
|
480
|
+
name: string;
|
|
481
|
+
}
|
|
482
|
+
interface LoyaltyRuleGroup {
|
|
483
|
+
/**
|
|
484
|
+
* UUID of the association (converted to lowercase)
|
|
485
|
+
*/
|
|
486
|
+
id: string;
|
|
487
|
+
/**
|
|
488
|
+
* The name of the association
|
|
489
|
+
*/
|
|
490
|
+
name: string;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
interface LoyaltyBadgeUser {
|
|
495
|
+
/**
|
|
496
|
+
* UUID of the user badge (converted to lowercase)
|
|
497
|
+
*/
|
|
498
|
+
id: string;
|
|
499
|
+
/**
|
|
500
|
+
* UUID of the badge (converted to lowercase)
|
|
501
|
+
*/
|
|
502
|
+
loyaltyBadgeId: string;
|
|
503
|
+
/**
|
|
504
|
+
* UUID of the organization (converted to lowercase)
|
|
505
|
+
*/
|
|
506
|
+
organizationId: string;
|
|
507
|
+
/**
|
|
508
|
+
* The status of the badge
|
|
509
|
+
*/
|
|
510
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
511
|
+
/**
|
|
512
|
+
* UUID of the user (converted to lowercase)
|
|
513
|
+
*/
|
|
514
|
+
userId: string;
|
|
515
|
+
/**
|
|
516
|
+
* UUID of the website (converted to lowercase)
|
|
517
|
+
*/
|
|
518
|
+
websiteId: string;
|
|
519
|
+
/**
|
|
520
|
+
* Array of progress for the badge
|
|
521
|
+
*/
|
|
522
|
+
progress?: unknown;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Response returned upon successful deletion of the badge.
|
|
527
|
+
*/
|
|
528
|
+
export interface BadgeDeleteResponse {
|
|
529
|
+
/**
|
|
530
|
+
* UUID of the badge (converted to lowercase)
|
|
531
|
+
*/
|
|
532
|
+
id: string;
|
|
533
|
+
/**
|
|
534
|
+
* The description of the badge
|
|
535
|
+
*/
|
|
536
|
+
description: string | null;
|
|
537
|
+
/**
|
|
538
|
+
* The URL of the badge image
|
|
539
|
+
*/
|
|
540
|
+
imageUrl: string | null;
|
|
541
|
+
/**
|
|
542
|
+
* Array of conditions of the badge
|
|
543
|
+
*/
|
|
544
|
+
loyaltyConditions: Array<BadgeDeleteResponse.LoyaltyCondition>;
|
|
545
|
+
/**
|
|
546
|
+
* The name of the badge
|
|
547
|
+
*/
|
|
548
|
+
name: string;
|
|
549
|
+
/**
|
|
550
|
+
* Array of user badges
|
|
551
|
+
*/
|
|
552
|
+
LoyaltyBadgeUser?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
553
|
+
}
|
|
554
|
+
export declare namespace BadgeDeleteResponse {
|
|
555
|
+
/**
|
|
556
|
+
* Schema for a loyalty condition rule.
|
|
557
|
+
*/
|
|
558
|
+
interface LoyaltyCondition {
|
|
559
|
+
/**
|
|
560
|
+
* UUID of the condition (converted to lowercase)
|
|
561
|
+
*/
|
|
562
|
+
id: string;
|
|
563
|
+
/**
|
|
564
|
+
* The amount of the condition
|
|
565
|
+
*/
|
|
566
|
+
amount: number | null;
|
|
567
|
+
association: Array<LoyaltyCondition.Association>;
|
|
568
|
+
/**
|
|
569
|
+
* The URL of the CSV file
|
|
570
|
+
*/
|
|
571
|
+
csvUrl: string | null;
|
|
572
|
+
/**
|
|
573
|
+
* The description of the condition
|
|
574
|
+
*/
|
|
575
|
+
description: string | null;
|
|
576
|
+
/**
|
|
577
|
+
* UUID of the currency (converted to lowercase)
|
|
578
|
+
*/
|
|
579
|
+
loyaltyCurrencyId: string | null;
|
|
580
|
+
/**
|
|
581
|
+
* UUID of the rule group (converted to lowercase)
|
|
582
|
+
*/
|
|
583
|
+
loyaltyRuleGroupId: string | null;
|
|
584
|
+
/**
|
|
585
|
+
* The repeat count of the condition
|
|
586
|
+
*/
|
|
587
|
+
repeatCount: number | null;
|
|
588
|
+
/**
|
|
589
|
+
* The required count of the condition
|
|
590
|
+
*/
|
|
591
|
+
requiredCount: number | null;
|
|
592
|
+
/**
|
|
593
|
+
* The type of the condition
|
|
594
|
+
*/
|
|
595
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
596
|
+
}
|
|
597
|
+
namespace LoyaltyCondition {
|
|
598
|
+
interface Association {
|
|
599
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
600
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
601
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
602
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
603
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
604
|
+
}
|
|
605
|
+
namespace Association {
|
|
606
|
+
interface LoyaltyBadge {
|
|
607
|
+
/**
|
|
608
|
+
* UUID of the association (converted to lowercase)
|
|
609
|
+
*/
|
|
610
|
+
id: string;
|
|
611
|
+
/**
|
|
612
|
+
* The name of the association
|
|
613
|
+
*/
|
|
614
|
+
name: string;
|
|
615
|
+
}
|
|
616
|
+
interface LoyaltyCurrency {
|
|
617
|
+
/**
|
|
618
|
+
* UUID of the association (converted to lowercase)
|
|
619
|
+
*/
|
|
620
|
+
id: string;
|
|
621
|
+
/**
|
|
622
|
+
* The name of the association
|
|
623
|
+
*/
|
|
624
|
+
name: string;
|
|
625
|
+
}
|
|
626
|
+
interface LoyaltyLeaderboardView {
|
|
627
|
+
/**
|
|
628
|
+
* UUID of the association (converted to lowercase)
|
|
629
|
+
*/
|
|
630
|
+
id: string;
|
|
631
|
+
/**
|
|
632
|
+
* The name of the association
|
|
633
|
+
*/
|
|
634
|
+
name: string;
|
|
635
|
+
}
|
|
636
|
+
interface LoyaltyRule {
|
|
637
|
+
/**
|
|
638
|
+
* UUID of the association (converted to lowercase)
|
|
639
|
+
*/
|
|
640
|
+
id: string;
|
|
641
|
+
/**
|
|
642
|
+
* The name of the association
|
|
643
|
+
*/
|
|
644
|
+
name: string;
|
|
645
|
+
}
|
|
646
|
+
interface LoyaltyRuleGroup {
|
|
647
|
+
/**
|
|
648
|
+
* UUID of the association (converted to lowercase)
|
|
649
|
+
*/
|
|
650
|
+
id: string;
|
|
651
|
+
/**
|
|
652
|
+
* The name of the association
|
|
653
|
+
*/
|
|
654
|
+
name: string;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
interface LoyaltyBadgeUser {
|
|
659
|
+
/**
|
|
660
|
+
* UUID of the user badge (converted to lowercase)
|
|
661
|
+
*/
|
|
662
|
+
id: string;
|
|
663
|
+
/**
|
|
664
|
+
* UUID of the badge (converted to lowercase)
|
|
665
|
+
*/
|
|
666
|
+
loyaltyBadgeId: string;
|
|
667
|
+
/**
|
|
668
|
+
* UUID of the organization (converted to lowercase)
|
|
669
|
+
*/
|
|
670
|
+
organizationId: string;
|
|
671
|
+
/**
|
|
672
|
+
* The status of the badge
|
|
673
|
+
*/
|
|
674
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
675
|
+
/**
|
|
676
|
+
* UUID of the user (converted to lowercase)
|
|
677
|
+
*/
|
|
678
|
+
userId: string;
|
|
679
|
+
/**
|
|
680
|
+
* UUID of the website (converted to lowercase)
|
|
681
|
+
*/
|
|
682
|
+
websiteId: string;
|
|
683
|
+
/**
|
|
684
|
+
* Array of progress for the badge
|
|
685
|
+
*/
|
|
686
|
+
progress?: unknown;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Response returned upon successful update of the user badge
|
|
691
|
+
*/
|
|
692
|
+
export interface BadgeRevokeResponse {
|
|
693
|
+
data: BadgeRevokeResponse.Data;
|
|
694
|
+
/**
|
|
695
|
+
* The message returned upon update of the badge
|
|
696
|
+
*/
|
|
697
|
+
message: string;
|
|
698
|
+
}
|
|
699
|
+
export declare namespace BadgeRevokeResponse {
|
|
700
|
+
interface Data {
|
|
701
|
+
id: string;
|
|
702
|
+
loyaltyBadgeId: string;
|
|
703
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
704
|
+
userId: string;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Response returned upon successful update of the user badge
|
|
709
|
+
*/
|
|
710
|
+
export interface BadgeRewardResponse {
|
|
711
|
+
data: BadgeRewardResponse.Data;
|
|
712
|
+
/**
|
|
713
|
+
* The message returned upon update of the badge
|
|
714
|
+
*/
|
|
715
|
+
message: string;
|
|
716
|
+
}
|
|
717
|
+
export declare namespace BadgeRewardResponse {
|
|
718
|
+
interface Data {
|
|
719
|
+
id: string;
|
|
720
|
+
loyaltyBadgeId: string;
|
|
721
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
722
|
+
userId: string;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
export interface BadgeCreateParams {
|
|
726
|
+
/**
|
|
727
|
+
* The URL of the badge image
|
|
728
|
+
*/
|
|
729
|
+
imageUrl: string;
|
|
730
|
+
/**
|
|
731
|
+
* The name of the badge
|
|
732
|
+
*/
|
|
733
|
+
name: string;
|
|
734
|
+
/**
|
|
735
|
+
* UUID of the organization (optional, converted to lowercase)
|
|
736
|
+
*/
|
|
737
|
+
organizationId: string;
|
|
738
|
+
/**
|
|
739
|
+
* Array of rules for the badge
|
|
740
|
+
*/
|
|
741
|
+
rules: Array<BadgeCreateParams.Rule>;
|
|
742
|
+
/**
|
|
743
|
+
* UUID of the website (optional, converted to lowercase)
|
|
744
|
+
*/
|
|
745
|
+
websiteId: string;
|
|
746
|
+
/**
|
|
747
|
+
* The description of the badge
|
|
748
|
+
*/
|
|
749
|
+
description?: string;
|
|
750
|
+
}
|
|
751
|
+
export declare namespace BadgeCreateParams {
|
|
752
|
+
interface Rule {
|
|
753
|
+
/**
|
|
754
|
+
* The type of rule
|
|
755
|
+
*/
|
|
756
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
757
|
+
/**
|
|
758
|
+
* The amount of the rule
|
|
759
|
+
*/
|
|
760
|
+
amount?: number | null;
|
|
761
|
+
/**
|
|
762
|
+
* URL of the CSV file (optional)
|
|
763
|
+
*/
|
|
764
|
+
csvUrl?: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* The description of the rule
|
|
767
|
+
*/
|
|
768
|
+
description?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
* Array of UUIDs of the badge (optional, converted to lowercase)
|
|
771
|
+
*/
|
|
772
|
+
loyaltyBadgeIds?: Array<string>;
|
|
773
|
+
/**
|
|
774
|
+
* Array of UUIDs of the currency (optional, converted to lowercase)
|
|
775
|
+
*/
|
|
776
|
+
loyaltyCurrencyIds?: Array<string>;
|
|
777
|
+
/**
|
|
778
|
+
* Array of UUIDs of the Loyalty Leaderboard (optional, converted to lowercase)
|
|
779
|
+
*/
|
|
780
|
+
loyaltyLeaderboardViewIds?: Array<string>;
|
|
781
|
+
/**
|
|
782
|
+
* UUID of the loyalty rule chain (optional, converted to lowercase)
|
|
783
|
+
*/
|
|
784
|
+
loyaltyRuleChainId?: string;
|
|
785
|
+
/**
|
|
786
|
+
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
787
|
+
*/
|
|
788
|
+
loyaltyRuleGroupIds?: Array<string>;
|
|
789
|
+
/**
|
|
790
|
+
* Array of UUIDs of the rules (optional, converted to lowercase)
|
|
791
|
+
*/
|
|
792
|
+
loyaltyRuleIds?: Array<string>;
|
|
793
|
+
/**
|
|
794
|
+
* The number of times the rule should be repeated to fulfill the condition
|
|
795
|
+
*/
|
|
796
|
+
repeatCount?: number | null;
|
|
797
|
+
/**
|
|
798
|
+
* The number of rules that need to be fulfilled to satisfy the condition
|
|
799
|
+
*/
|
|
800
|
+
requiredCount?: number | null;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
export interface BadgeUpdateParams {
|
|
804
|
+
/**
|
|
805
|
+
* The description of the badge
|
|
806
|
+
*/
|
|
807
|
+
description?: string;
|
|
808
|
+
/**
|
|
809
|
+
* The URL of the badge image
|
|
810
|
+
*/
|
|
811
|
+
imageUrl?: string;
|
|
812
|
+
/**
|
|
813
|
+
* The name of the badge
|
|
814
|
+
*/
|
|
815
|
+
name?: string;
|
|
816
|
+
}
|
|
817
|
+
export interface BadgeListParams {
|
|
818
|
+
/**
|
|
819
|
+
* Array of badge IDs (converted to lowercase) to fetch
|
|
820
|
+
*/
|
|
821
|
+
badgeIds?: Array<string>;
|
|
822
|
+
/**
|
|
823
|
+
* Include deleted badges in the response
|
|
824
|
+
*/
|
|
825
|
+
includeDeleted?: boolean | null;
|
|
826
|
+
/**
|
|
827
|
+
* Number of badges to fetch
|
|
828
|
+
*/
|
|
829
|
+
limit?: number;
|
|
830
|
+
/**
|
|
831
|
+
* UUID of the organization (optional, converted to lowercase)
|
|
832
|
+
*/
|
|
833
|
+
organizationId?: string;
|
|
834
|
+
/**
|
|
835
|
+
* UUID of the badge to start after (converted to lowercase)
|
|
836
|
+
*/
|
|
837
|
+
startingAfter?: string;
|
|
838
|
+
/**
|
|
839
|
+
* UUID of the user (optional, converted to lowercase)
|
|
840
|
+
*/
|
|
841
|
+
userId?: string;
|
|
842
|
+
/**
|
|
843
|
+
* UUID of the website (optional, converted to lowercase)
|
|
844
|
+
*/
|
|
845
|
+
websiteId?: string;
|
|
846
|
+
}
|
|
847
|
+
export interface BadgeRevokeParams {
|
|
848
|
+
/**
|
|
849
|
+
* UUID of the user (converted to lowercase)
|
|
850
|
+
*/
|
|
851
|
+
userId?: string;
|
|
852
|
+
/**
|
|
853
|
+
* Validated and formatted wallet address
|
|
854
|
+
*/
|
|
855
|
+
walletAddress?: string;
|
|
856
|
+
}
|
|
857
|
+
export interface BadgeRewardParams {
|
|
858
|
+
/**
|
|
859
|
+
* UUID of the user (converted to lowercase)
|
|
860
|
+
*/
|
|
861
|
+
userId?: string;
|
|
862
|
+
/**
|
|
863
|
+
* Validated and formatted wallet address
|
|
864
|
+
*/
|
|
865
|
+
walletAddress?: string;
|
|
866
|
+
}
|
|
867
|
+
export declare namespace Badges {
|
|
868
|
+
export { type BadgeCreateResponse as BadgeCreateResponse, type BadgeUpdateResponse as BadgeUpdateResponse, type BadgeListResponse as BadgeListResponse, type BadgeDeleteResponse as BadgeDeleteResponse, type BadgeRevokeResponse as BadgeRevokeResponse, type BadgeRewardResponse as BadgeRewardResponse, type BadgeCreateParams as BadgeCreateParams, type BadgeUpdateParams as BadgeUpdateParams, type BadgeListParams as BadgeListParams, type BadgeRevokeParams as BadgeRevokeParams, type BadgeRewardParams as BadgeRewardParams, };
|
|
869
|
+
}
|
|
870
|
+
//# sourceMappingURL=badges.d.ts.map
|