@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.130
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 +1125 -0
- package/README.md +24 -28
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +35 -19
- package/core.js.map +1 -1
- package/core.mjs +36 -20
- package/core.mjs.map +1 -1
- package/index.d.mts +25 -16
- package/index.d.ts +25 -16
- package/index.d.ts.map +1 -1
- package/index.js +20 -10
- package/index.js.map +1 -1
- package/index.mjs +21 -11
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +23 -9
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +12 -4
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +12 -4
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +285 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +76 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +49 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +122 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +132 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +2 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/auctions.js +19 -0
- package/resources/auctions.js.map +1 -0
- package/resources/auctions.mjs +3 -0
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +44 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +16 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +12 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/index.d.ts +7 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -4
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +62 -15
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +22 -1
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +22 -1
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +980 -77
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +20 -1
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +9 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +11 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +6 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +33 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +28 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +29 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +97 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +29 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +29 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +112 -0
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/questions-responses.js +31 -0
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/questions-responses.mjs +27 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/questions.d.ts +183 -0
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/questions.js +60 -0
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/questions.mjs +56 -0
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +2585 -11
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +16 -2
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +16 -2
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +762 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +52 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +48 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +1871 -296
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +410 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +76 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +2 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +19 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +3 -0
- package/resources/loyalty/transactions.mjs.map +1 -0
- package/resources/loyalty.d.ts +2 -0
- package/resources/loyalty.d.ts.map +1 -0
- package/resources/loyalty.js +19 -0
- package/resources/loyalty.js.map +1 -0
- package/resources/loyalty.mjs +3 -0
- package/resources/loyalty.mjs.map +1 -0
- package/resources/minting.d.ts +95 -0
- package/resources/minting.d.ts.map +1 -0
- package/resources/minting.js +15 -0
- package/resources/minting.js.map +1 -0
- package/resources/minting.mjs +11 -0
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts +3 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js +9 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/referral/index.mjs +4 -0
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +39 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → referral/referral.js} +21 -12
- package/resources/referral/referral.js.map +1 -0
- package/resources/referral/referral.mjs +25 -0
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/referral/users.d.ts +83 -0
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/referral/users.js +35 -0
- package/resources/referral/users.js.map +1 -0
- package/resources/referral/users.mjs +31 -0
- package/resources/referral/users.mjs.map +1 -0
- package/resources/referral.d.ts +2 -0
- package/resources/referral.d.ts.map +1 -0
- package/resources/referral.js +19 -0
- package/resources/referral.js.map +1 -0
- package/resources/referral.mjs +3 -0
- package/resources/referral.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -3
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js +1 -3
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -3
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +112 -9
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +414 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +77 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +78 -5
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +19 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/websites/index.d.ts +4 -0
- package/resources/websites/index.d.ts.map +1 -0
- package/resources/websites/index.js +11 -0
- package/resources/websites/index.js.map +1 -0
- package/resources/websites/index.mjs +5 -0
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +94 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/websites/website-collections.js +46 -0
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/websites/website-collections.mjs +42 -0
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/websites/website-user-roles.d.ts +96 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/websites/website-user-roles.js +45 -0
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/websites/website-user-roles.mjs +41 -0
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +223 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/websites/websites.js +63 -0
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +36 -0
- package/resources/websites/websites.mjs.map +1 -0
- package/resources/websites.d.ts +1 -202
- package/resources/websites.d.ts.map +1 -1
- package/resources/websites.js +15 -18
- package/resources/websites.js.map +1 -1
- package/resources/websites.mjs +1 -16
- package/resources/websites.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/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +56 -20
- package/src/index.ts +97 -24
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +31 -9
- package/src/resources/auctions/auctions.ts +436 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +165 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +3 -0
- package/src/resources/auth.ts +74 -0
- package/src/resources/index.ts +31 -5
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +79 -16
- package/src/resources/loyalty/badges.ts +1192 -92
- package/src/resources/loyalty/currencies.ts +20 -1
- package/src/resources/loyalty/index.ts +53 -9
- package/src/resources/loyalty/loyalty.ts +160 -60
- package/src/resources/loyalty/multipliers.ts +124 -4
- package/src/resources/loyalty/questions-responses.ts +161 -0
- package/src/resources/loyalty/questions.ts +241 -0
- package/src/resources/loyalty/rule-edits.ts +3622 -63
- package/src/resources/loyalty/rule-groups.ts +1181 -0
- package/src/resources/loyalty/rules.ts +3068 -579
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +675 -0
- package/src/resources/loyalty/transactions.ts +3 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/minting.ts +170 -0
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +72 -0
- package/src/resources/referral/users.ts +122 -0
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +21 -9
- package/src/resources/users/metadatas.ts +167 -8
- package/src/resources/users/users.ts +581 -17
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/websites/website-collections.ts +182 -0
- package/src/resources/websites/website-user-roles.ts +130 -0
- package/src/resources/websites/websites.ts +311 -0
- package/src/resources/websites.ts +1 -257
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -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/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/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/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/transaction-entries.ts +0 -229
- package/src/resources/users/wallets.ts +0 -271
|
@@ -2,30 +2,74 @@ import { APIResource } from "../../resource.js";
|
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
export declare class Badges extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* This endpoint allows you to configure a new badge
|
|
5
|
+
* This endpoint allows you to configure a new badge
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const badge = await client.loyalty.badges.create({
|
|
10
|
+
* conditions: [{}],
|
|
11
|
+
* imageUrl: 'https://example.com/image.png',
|
|
12
|
+
* name: 'Example Badge',
|
|
13
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174222',
|
|
14
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174111',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
6
17
|
*/
|
|
7
18
|
create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse>;
|
|
8
19
|
/**
|
|
9
20
|
* This endpoint allows you to update an existing badge.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const badge = await client.loyalty.badges.update(
|
|
25
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
10
28
|
*/
|
|
11
29
|
update(id: string, body?: BadgeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
12
30
|
update(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
13
31
|
/**
|
|
14
32
|
* This endpoint allows you to fetch badge(s) data.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const badges = await client.loyalty.badges.list();
|
|
37
|
+
* ```
|
|
15
38
|
*/
|
|
16
39
|
list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
17
40
|
list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
18
41
|
/**
|
|
19
42
|
* This endpoint allows you to delete a badge.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const badge = await client.loyalty.badges.delete(
|
|
47
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
20
50
|
*/
|
|
21
51
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse>;
|
|
22
52
|
/**
|
|
23
53
|
* This endpoint allows you to revoke a badge from an account
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response = await client.loyalty.badges.revoke(
|
|
58
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
24
61
|
*/
|
|
25
62
|
revoke(id: string, body?: BadgeRevokeParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
26
63
|
revoke(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
27
64
|
/**
|
|
28
65
|
* This endpoint allows you to reward a badge for an account
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const response = await client.loyalty.badges.reward(
|
|
70
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
29
73
|
*/
|
|
30
74
|
reward(id: string, body?: BadgeRewardParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
31
75
|
reward(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
@@ -34,99 +78,925 @@ export declare class Badges extends APIResource {
|
|
|
34
78
|
* Response returned upon successful creation of the badge.
|
|
35
79
|
*/
|
|
36
80
|
export interface BadgeCreateResponse {
|
|
81
|
+
/**
|
|
82
|
+
* UUID of the badge (converted to lowercase)
|
|
83
|
+
*/
|
|
37
84
|
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* The description of the badge
|
|
87
|
+
*/
|
|
88
|
+
description: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* The URL of the badge image
|
|
91
|
+
*/
|
|
92
|
+
imageUrl: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Array of conditions of the badge
|
|
95
|
+
*/
|
|
96
|
+
loyaltyConditions: Array<BadgeCreateResponse.LoyaltyCondition>;
|
|
97
|
+
/**
|
|
98
|
+
* The name of the badge
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Array of data jobs associated with the badge
|
|
103
|
+
*/
|
|
104
|
+
dataJobs?: Array<BadgeCreateResponse.DataJob>;
|
|
105
|
+
/**
|
|
106
|
+
* Array of user badges
|
|
107
|
+
*/
|
|
108
|
+
loyaltyBadgeUsers?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
109
|
+
/**
|
|
110
|
+
* Array of loyalty rules associated with the badge
|
|
111
|
+
*/
|
|
112
|
+
loyaltyRules?: Array<BadgeCreateResponse.LoyaltyRule>;
|
|
113
|
+
}
|
|
114
|
+
export declare namespace BadgeCreateResponse {
|
|
115
|
+
/**
|
|
116
|
+
* Schema for a loyalty condition rule.
|
|
117
|
+
*/
|
|
118
|
+
interface LoyaltyCondition {
|
|
119
|
+
/**
|
|
120
|
+
* UUID of the condition (converted to lowercase)
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* The amount of the condition
|
|
125
|
+
*/
|
|
126
|
+
amount: number | null;
|
|
127
|
+
association: Array<LoyaltyCondition.Association>;
|
|
128
|
+
/**
|
|
129
|
+
* The URL of the CSV file
|
|
130
|
+
*/
|
|
131
|
+
csvUrl: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* The description of the condition
|
|
134
|
+
*/
|
|
135
|
+
description: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* UUID of the currency (converted to lowercase)
|
|
138
|
+
*/
|
|
139
|
+
loyaltyCurrencyId: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* UUID of the rule group (converted to lowercase)
|
|
142
|
+
*/
|
|
143
|
+
loyaltyRuleGroupId: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* The repeat count of the condition
|
|
146
|
+
*/
|
|
147
|
+
repeatCount: number | null;
|
|
148
|
+
/**
|
|
149
|
+
* The required count of the condition
|
|
150
|
+
*/
|
|
151
|
+
requiredCount: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* The type of the condition
|
|
154
|
+
*/
|
|
155
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
156
|
+
}
|
|
157
|
+
namespace LoyaltyCondition {
|
|
158
|
+
interface Association {
|
|
159
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
160
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
161
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
162
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
163
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
164
|
+
}
|
|
165
|
+
namespace Association {
|
|
166
|
+
interface LoyaltyBadge {
|
|
167
|
+
/**
|
|
168
|
+
* UUID of the association (converted to lowercase)
|
|
169
|
+
*/
|
|
170
|
+
id: string;
|
|
171
|
+
/**
|
|
172
|
+
* The name of the association
|
|
173
|
+
*/
|
|
174
|
+
name: string;
|
|
175
|
+
}
|
|
176
|
+
interface LoyaltyCurrency {
|
|
177
|
+
/**
|
|
178
|
+
* UUID of the association (converted to lowercase)
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
/**
|
|
182
|
+
* The name of the association
|
|
183
|
+
*/
|
|
184
|
+
name: string;
|
|
185
|
+
}
|
|
186
|
+
interface LoyaltyLeaderboardView {
|
|
187
|
+
/**
|
|
188
|
+
* UUID of the association (converted to lowercase)
|
|
189
|
+
*/
|
|
190
|
+
id: string;
|
|
191
|
+
/**
|
|
192
|
+
* The name of the association
|
|
193
|
+
*/
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
interface LoyaltyRule {
|
|
197
|
+
/**
|
|
198
|
+
* UUID of the association (converted to lowercase)
|
|
199
|
+
*/
|
|
200
|
+
id: string;
|
|
201
|
+
/**
|
|
202
|
+
* The name of the association
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
}
|
|
206
|
+
interface LoyaltyRuleGroup {
|
|
207
|
+
/**
|
|
208
|
+
* UUID of the association (converted to lowercase)
|
|
209
|
+
*/
|
|
210
|
+
id: string;
|
|
211
|
+
/**
|
|
212
|
+
* The name of the association
|
|
213
|
+
*/
|
|
214
|
+
name: string;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
interface DataJob {
|
|
219
|
+
/**
|
|
220
|
+
* UUID of the data job (converted to lowercase)
|
|
221
|
+
*/
|
|
222
|
+
id: string;
|
|
223
|
+
/**
|
|
224
|
+
* The date and time the data job was created
|
|
225
|
+
*/
|
|
226
|
+
createdAt: string;
|
|
227
|
+
/**
|
|
228
|
+
* The status of the data job
|
|
229
|
+
*/
|
|
230
|
+
status: 'pending' | 'complete' | 'failed';
|
|
231
|
+
/**
|
|
232
|
+
* The date and time the data job was updated
|
|
233
|
+
*/
|
|
234
|
+
updatedAt: string;
|
|
235
|
+
/**
|
|
236
|
+
* The message associated with the data job
|
|
237
|
+
*/
|
|
238
|
+
message?: string | null;
|
|
239
|
+
}
|
|
240
|
+
interface LoyaltyBadgeUser {
|
|
241
|
+
/**
|
|
242
|
+
* UUID of the user badge (converted to lowercase)
|
|
243
|
+
*/
|
|
244
|
+
id: string;
|
|
245
|
+
/**
|
|
246
|
+
* The date and time the user badge was created
|
|
247
|
+
*/
|
|
248
|
+
createdAt: string;
|
|
249
|
+
/**
|
|
250
|
+
* UUID of the badge (converted to lowercase)
|
|
251
|
+
*/
|
|
252
|
+
loyaltyBadgeId: string;
|
|
253
|
+
/**
|
|
254
|
+
* UUID of the organization (converted to lowercase)
|
|
255
|
+
*/
|
|
256
|
+
organizationId: string;
|
|
257
|
+
/**
|
|
258
|
+
* The status of the badge
|
|
259
|
+
*/
|
|
260
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
261
|
+
/**
|
|
262
|
+
* The date and time the user badge was updated
|
|
263
|
+
*/
|
|
264
|
+
updatedAt: string;
|
|
265
|
+
/**
|
|
266
|
+
* UUID of the user (converted to lowercase)
|
|
267
|
+
*/
|
|
268
|
+
userId: string;
|
|
269
|
+
/**
|
|
270
|
+
* UUID of the website (converted to lowercase)
|
|
271
|
+
*/
|
|
272
|
+
websiteId: string;
|
|
273
|
+
/**
|
|
274
|
+
* Array of progress for the badge
|
|
275
|
+
*/
|
|
276
|
+
progress?: unknown;
|
|
277
|
+
/**
|
|
278
|
+
* User associated with the user badge
|
|
279
|
+
*/
|
|
280
|
+
user?: LoyaltyBadgeUser.User;
|
|
281
|
+
}
|
|
282
|
+
namespace LoyaltyBadgeUser {
|
|
283
|
+
/**
|
|
284
|
+
* User associated with the user badge
|
|
285
|
+
*/
|
|
286
|
+
interface User {
|
|
287
|
+
/**
|
|
288
|
+
* UUID of the user (converted to lowercase)
|
|
289
|
+
*/
|
|
290
|
+
id: string;
|
|
291
|
+
/**
|
|
292
|
+
* Wallet address of the user
|
|
293
|
+
*/
|
|
294
|
+
walletAddress: string;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
interface LoyaltyRule {
|
|
298
|
+
/**
|
|
299
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
300
|
+
*/
|
|
301
|
+
id: string;
|
|
302
|
+
/**
|
|
303
|
+
* The name of the loyalty rule
|
|
304
|
+
*/
|
|
305
|
+
name: string;
|
|
306
|
+
}
|
|
38
307
|
}
|
|
39
308
|
/**
|
|
40
309
|
* Response returned upon successful update of the badge.
|
|
41
310
|
*/
|
|
42
311
|
export interface BadgeUpdateResponse {
|
|
312
|
+
/**
|
|
313
|
+
* UUID of the badge (converted to lowercase)
|
|
314
|
+
*/
|
|
43
315
|
id: string;
|
|
316
|
+
/**
|
|
317
|
+
* The description of the badge
|
|
318
|
+
*/
|
|
319
|
+
description: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* The URL of the badge image
|
|
322
|
+
*/
|
|
323
|
+
imageUrl: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Array of conditions of the badge
|
|
326
|
+
*/
|
|
327
|
+
loyaltyConditions: Array<BadgeUpdateResponse.LoyaltyCondition>;
|
|
328
|
+
/**
|
|
329
|
+
* The name of the badge
|
|
330
|
+
*/
|
|
331
|
+
name: string;
|
|
332
|
+
/**
|
|
333
|
+
* Array of data jobs associated with the badge
|
|
334
|
+
*/
|
|
335
|
+
dataJobs?: Array<BadgeUpdateResponse.DataJob>;
|
|
336
|
+
/**
|
|
337
|
+
* Array of user badges
|
|
338
|
+
*/
|
|
339
|
+
loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
340
|
+
/**
|
|
341
|
+
* Array of loyalty rules associated with the badge
|
|
342
|
+
*/
|
|
343
|
+
loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
|
|
344
|
+
}
|
|
345
|
+
export declare namespace BadgeUpdateResponse {
|
|
346
|
+
/**
|
|
347
|
+
* Schema for a loyalty condition rule.
|
|
348
|
+
*/
|
|
349
|
+
interface LoyaltyCondition {
|
|
350
|
+
/**
|
|
351
|
+
* UUID of the condition (converted to lowercase)
|
|
352
|
+
*/
|
|
353
|
+
id: string;
|
|
354
|
+
/**
|
|
355
|
+
* The amount of the condition
|
|
356
|
+
*/
|
|
357
|
+
amount: number | null;
|
|
358
|
+
association: Array<LoyaltyCondition.Association>;
|
|
359
|
+
/**
|
|
360
|
+
* The URL of the CSV file
|
|
361
|
+
*/
|
|
362
|
+
csvUrl: string | null;
|
|
363
|
+
/**
|
|
364
|
+
* The description of the condition
|
|
365
|
+
*/
|
|
366
|
+
description: string | null;
|
|
367
|
+
/**
|
|
368
|
+
* UUID of the currency (converted to lowercase)
|
|
369
|
+
*/
|
|
370
|
+
loyaltyCurrencyId: string | null;
|
|
371
|
+
/**
|
|
372
|
+
* UUID of the rule group (converted to lowercase)
|
|
373
|
+
*/
|
|
374
|
+
loyaltyRuleGroupId: string | null;
|
|
375
|
+
/**
|
|
376
|
+
* The repeat count of the condition
|
|
377
|
+
*/
|
|
378
|
+
repeatCount: number | null;
|
|
379
|
+
/**
|
|
380
|
+
* The required count of the condition
|
|
381
|
+
*/
|
|
382
|
+
requiredCount: number | null;
|
|
383
|
+
/**
|
|
384
|
+
* The type of the condition
|
|
385
|
+
*/
|
|
386
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
387
|
+
}
|
|
388
|
+
namespace LoyaltyCondition {
|
|
389
|
+
interface Association {
|
|
390
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
391
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
392
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
393
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
394
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
395
|
+
}
|
|
396
|
+
namespace Association {
|
|
397
|
+
interface LoyaltyBadge {
|
|
398
|
+
/**
|
|
399
|
+
* UUID of the association (converted to lowercase)
|
|
400
|
+
*/
|
|
401
|
+
id: string;
|
|
402
|
+
/**
|
|
403
|
+
* The name of the association
|
|
404
|
+
*/
|
|
405
|
+
name: string;
|
|
406
|
+
}
|
|
407
|
+
interface LoyaltyCurrency {
|
|
408
|
+
/**
|
|
409
|
+
* UUID of the association (converted to lowercase)
|
|
410
|
+
*/
|
|
411
|
+
id: string;
|
|
412
|
+
/**
|
|
413
|
+
* The name of the association
|
|
414
|
+
*/
|
|
415
|
+
name: string;
|
|
416
|
+
}
|
|
417
|
+
interface LoyaltyLeaderboardView {
|
|
418
|
+
/**
|
|
419
|
+
* UUID of the association (converted to lowercase)
|
|
420
|
+
*/
|
|
421
|
+
id: string;
|
|
422
|
+
/**
|
|
423
|
+
* The name of the association
|
|
424
|
+
*/
|
|
425
|
+
name: string;
|
|
426
|
+
}
|
|
427
|
+
interface LoyaltyRule {
|
|
428
|
+
/**
|
|
429
|
+
* UUID of the association (converted to lowercase)
|
|
430
|
+
*/
|
|
431
|
+
id: string;
|
|
432
|
+
/**
|
|
433
|
+
* The name of the association
|
|
434
|
+
*/
|
|
435
|
+
name: string;
|
|
436
|
+
}
|
|
437
|
+
interface LoyaltyRuleGroup {
|
|
438
|
+
/**
|
|
439
|
+
* UUID of the association (converted to lowercase)
|
|
440
|
+
*/
|
|
441
|
+
id: string;
|
|
442
|
+
/**
|
|
443
|
+
* The name of the association
|
|
444
|
+
*/
|
|
445
|
+
name: string;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
interface DataJob {
|
|
450
|
+
/**
|
|
451
|
+
* UUID of the data job (converted to lowercase)
|
|
452
|
+
*/
|
|
453
|
+
id: string;
|
|
454
|
+
/**
|
|
455
|
+
* The date and time the data job was created
|
|
456
|
+
*/
|
|
457
|
+
createdAt: string;
|
|
458
|
+
/**
|
|
459
|
+
* The status of the data job
|
|
460
|
+
*/
|
|
461
|
+
status: 'pending' | 'complete' | 'failed';
|
|
462
|
+
/**
|
|
463
|
+
* The date and time the data job was updated
|
|
464
|
+
*/
|
|
465
|
+
updatedAt: string;
|
|
466
|
+
/**
|
|
467
|
+
* The message associated with the data job
|
|
468
|
+
*/
|
|
469
|
+
message?: string | null;
|
|
470
|
+
}
|
|
471
|
+
interface LoyaltyBadgeUser {
|
|
472
|
+
/**
|
|
473
|
+
* UUID of the user badge (converted to lowercase)
|
|
474
|
+
*/
|
|
475
|
+
id: string;
|
|
476
|
+
/**
|
|
477
|
+
* The date and time the user badge was created
|
|
478
|
+
*/
|
|
479
|
+
createdAt: string;
|
|
480
|
+
/**
|
|
481
|
+
* UUID of the badge (converted to lowercase)
|
|
482
|
+
*/
|
|
483
|
+
loyaltyBadgeId: string;
|
|
484
|
+
/**
|
|
485
|
+
* UUID of the organization (converted to lowercase)
|
|
486
|
+
*/
|
|
487
|
+
organizationId: string;
|
|
488
|
+
/**
|
|
489
|
+
* The status of the badge
|
|
490
|
+
*/
|
|
491
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
492
|
+
/**
|
|
493
|
+
* The date and time the user badge was updated
|
|
494
|
+
*/
|
|
495
|
+
updatedAt: string;
|
|
496
|
+
/**
|
|
497
|
+
* UUID of the user (converted to lowercase)
|
|
498
|
+
*/
|
|
499
|
+
userId: string;
|
|
500
|
+
/**
|
|
501
|
+
* UUID of the website (converted to lowercase)
|
|
502
|
+
*/
|
|
503
|
+
websiteId: string;
|
|
504
|
+
/**
|
|
505
|
+
* Array of progress for the badge
|
|
506
|
+
*/
|
|
507
|
+
progress?: unknown;
|
|
508
|
+
/**
|
|
509
|
+
* User associated with the user badge
|
|
510
|
+
*/
|
|
511
|
+
user?: LoyaltyBadgeUser.User;
|
|
512
|
+
}
|
|
513
|
+
namespace LoyaltyBadgeUser {
|
|
514
|
+
/**
|
|
515
|
+
* User associated with the user badge
|
|
516
|
+
*/
|
|
517
|
+
interface User {
|
|
518
|
+
/**
|
|
519
|
+
* UUID of the user (converted to lowercase)
|
|
520
|
+
*/
|
|
521
|
+
id: string;
|
|
522
|
+
/**
|
|
523
|
+
* Wallet address of the user
|
|
524
|
+
*/
|
|
525
|
+
walletAddress: string;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
interface LoyaltyRule {
|
|
529
|
+
/**
|
|
530
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
531
|
+
*/
|
|
532
|
+
id: string;
|
|
533
|
+
/**
|
|
534
|
+
* The name of the loyalty rule
|
|
535
|
+
*/
|
|
536
|
+
name: string;
|
|
537
|
+
}
|
|
44
538
|
}
|
|
45
539
|
/**
|
|
46
540
|
* Response returned upon successful fetching of the badges.
|
|
47
541
|
*/
|
|
48
542
|
export interface BadgeListResponse {
|
|
49
|
-
|
|
543
|
+
/**
|
|
544
|
+
* UUID of the badge (converted to lowercase)
|
|
545
|
+
*/
|
|
546
|
+
id: string;
|
|
547
|
+
/**
|
|
548
|
+
* The description of the badge
|
|
549
|
+
*/
|
|
550
|
+
description: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* The URL of the badge image
|
|
553
|
+
*/
|
|
554
|
+
imageUrl: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* Array of conditions of the badge
|
|
557
|
+
*/
|
|
558
|
+
loyaltyConditions: Array<BadgeListResponse.LoyaltyCondition>;
|
|
559
|
+
/**
|
|
560
|
+
* The name of the badge
|
|
561
|
+
*/
|
|
562
|
+
name: string;
|
|
563
|
+
/**
|
|
564
|
+
* Array of data jobs associated with the badge
|
|
565
|
+
*/
|
|
566
|
+
dataJobs?: Array<BadgeListResponse.DataJob>;
|
|
567
|
+
/**
|
|
568
|
+
* Array of user badges
|
|
569
|
+
*/
|
|
570
|
+
loyaltyBadgeUsers?: Array<BadgeListResponse.LoyaltyBadgeUser>;
|
|
571
|
+
/**
|
|
572
|
+
* Array of loyalty rules associated with the badge
|
|
573
|
+
*/
|
|
574
|
+
loyaltyRules?: Array<BadgeListResponse.LoyaltyRule>;
|
|
50
575
|
}
|
|
51
576
|
export declare namespace BadgeListResponse {
|
|
52
|
-
|
|
577
|
+
/**
|
|
578
|
+
* Schema for a loyalty condition rule.
|
|
579
|
+
*/
|
|
580
|
+
interface LoyaltyCondition {
|
|
53
581
|
/**
|
|
54
|
-
* UUID of the
|
|
582
|
+
* UUID of the condition (converted to lowercase)
|
|
55
583
|
*/
|
|
56
584
|
id: string;
|
|
57
585
|
/**
|
|
58
|
-
*
|
|
586
|
+
* The amount of the condition
|
|
59
587
|
*/
|
|
60
|
-
|
|
588
|
+
amount: number | null;
|
|
589
|
+
association: Array<LoyaltyCondition.Association>;
|
|
61
590
|
/**
|
|
62
|
-
* The URL of the
|
|
591
|
+
* The URL of the CSV file
|
|
63
592
|
*/
|
|
64
|
-
|
|
593
|
+
csvUrl: string | null;
|
|
65
594
|
/**
|
|
66
|
-
*
|
|
595
|
+
* The description of the condition
|
|
67
596
|
*/
|
|
68
|
-
|
|
597
|
+
description: string | null;
|
|
69
598
|
/**
|
|
70
|
-
*
|
|
599
|
+
* UUID of the currency (converted to lowercase)
|
|
71
600
|
*/
|
|
72
|
-
|
|
601
|
+
loyaltyCurrencyId: string | null;
|
|
73
602
|
/**
|
|
74
|
-
*
|
|
603
|
+
* UUID of the rule group (converted to lowercase)
|
|
75
604
|
*/
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
namespace Badge {
|
|
605
|
+
loyaltyRuleGroupId: string | null;
|
|
79
606
|
/**
|
|
80
|
-
*
|
|
607
|
+
* The repeat count of the condition
|
|
81
608
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
609
|
+
repeatCount: number | null;
|
|
610
|
+
/**
|
|
611
|
+
* The required count of the condition
|
|
612
|
+
*/
|
|
613
|
+
requiredCount: number | null;
|
|
614
|
+
/**
|
|
615
|
+
* The type of the condition
|
|
616
|
+
*/
|
|
617
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
618
|
+
}
|
|
619
|
+
namespace LoyaltyCondition {
|
|
620
|
+
interface Association {
|
|
621
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
622
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
623
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
624
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
625
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
626
|
+
}
|
|
627
|
+
namespace Association {
|
|
628
|
+
interface LoyaltyBadge {
|
|
629
|
+
/**
|
|
630
|
+
* UUID of the association (converted to lowercase)
|
|
631
|
+
*/
|
|
632
|
+
id: string;
|
|
633
|
+
/**
|
|
634
|
+
* The name of the association
|
|
635
|
+
*/
|
|
636
|
+
name: string;
|
|
637
|
+
}
|
|
638
|
+
interface LoyaltyCurrency {
|
|
639
|
+
/**
|
|
640
|
+
* UUID of the association (converted to lowercase)
|
|
641
|
+
*/
|
|
642
|
+
id: string;
|
|
643
|
+
/**
|
|
644
|
+
* The name of the association
|
|
645
|
+
*/
|
|
646
|
+
name: string;
|
|
647
|
+
}
|
|
648
|
+
interface LoyaltyLeaderboardView {
|
|
649
|
+
/**
|
|
650
|
+
* UUID of the association (converted to lowercase)
|
|
651
|
+
*/
|
|
652
|
+
id: string;
|
|
653
|
+
/**
|
|
654
|
+
* The name of the association
|
|
655
|
+
*/
|
|
656
|
+
name: string;
|
|
657
|
+
}
|
|
658
|
+
interface LoyaltyRule {
|
|
659
|
+
/**
|
|
660
|
+
* UUID of the association (converted to lowercase)
|
|
661
|
+
*/
|
|
662
|
+
id: string;
|
|
663
|
+
/**
|
|
664
|
+
* The name of the association
|
|
665
|
+
*/
|
|
666
|
+
name: string;
|
|
667
|
+
}
|
|
668
|
+
interface LoyaltyRuleGroup {
|
|
669
|
+
/**
|
|
670
|
+
* UUID of the association (converted to lowercase)
|
|
671
|
+
*/
|
|
672
|
+
id: string;
|
|
673
|
+
/**
|
|
674
|
+
* The name of the association
|
|
675
|
+
*/
|
|
676
|
+
name: string;
|
|
677
|
+
}
|
|
91
678
|
}
|
|
92
|
-
|
|
679
|
+
}
|
|
680
|
+
interface DataJob {
|
|
681
|
+
/**
|
|
682
|
+
* UUID of the data job (converted to lowercase)
|
|
683
|
+
*/
|
|
684
|
+
id: string;
|
|
685
|
+
/**
|
|
686
|
+
* The date and time the data job was created
|
|
687
|
+
*/
|
|
688
|
+
createdAt: string;
|
|
689
|
+
/**
|
|
690
|
+
* The status of the data job
|
|
691
|
+
*/
|
|
692
|
+
status: 'pending' | 'complete' | 'failed';
|
|
693
|
+
/**
|
|
694
|
+
* The date and time the data job was updated
|
|
695
|
+
*/
|
|
696
|
+
updatedAt: string;
|
|
697
|
+
/**
|
|
698
|
+
* The message associated with the data job
|
|
699
|
+
*/
|
|
700
|
+
message?: string | null;
|
|
701
|
+
}
|
|
702
|
+
interface LoyaltyBadgeUser {
|
|
703
|
+
/**
|
|
704
|
+
* UUID of the user badge (converted to lowercase)
|
|
705
|
+
*/
|
|
706
|
+
id: string;
|
|
707
|
+
/**
|
|
708
|
+
* The date and time the user badge was created
|
|
709
|
+
*/
|
|
710
|
+
createdAt: string;
|
|
711
|
+
/**
|
|
712
|
+
* UUID of the badge (converted to lowercase)
|
|
713
|
+
*/
|
|
714
|
+
loyaltyBadgeId: string;
|
|
715
|
+
/**
|
|
716
|
+
* UUID of the organization (converted to lowercase)
|
|
717
|
+
*/
|
|
718
|
+
organizationId: string;
|
|
719
|
+
/**
|
|
720
|
+
* The status of the badge
|
|
721
|
+
*/
|
|
722
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
723
|
+
/**
|
|
724
|
+
* The date and time the user badge was updated
|
|
725
|
+
*/
|
|
726
|
+
updatedAt: string;
|
|
727
|
+
/**
|
|
728
|
+
* UUID of the user (converted to lowercase)
|
|
729
|
+
*/
|
|
730
|
+
userId: string;
|
|
731
|
+
/**
|
|
732
|
+
* UUID of the website (converted to lowercase)
|
|
733
|
+
*/
|
|
734
|
+
websiteId: string;
|
|
735
|
+
/**
|
|
736
|
+
* Array of progress for the badge
|
|
737
|
+
*/
|
|
738
|
+
progress?: unknown;
|
|
739
|
+
/**
|
|
740
|
+
* User associated with the user badge
|
|
741
|
+
*/
|
|
742
|
+
user?: LoyaltyBadgeUser.User;
|
|
743
|
+
}
|
|
744
|
+
namespace LoyaltyBadgeUser {
|
|
745
|
+
/**
|
|
746
|
+
* User associated with the user badge
|
|
747
|
+
*/
|
|
748
|
+
interface User {
|
|
93
749
|
/**
|
|
94
|
-
* UUID of the
|
|
750
|
+
* UUID of the user (converted to lowercase)
|
|
95
751
|
*/
|
|
96
752
|
id: string;
|
|
97
753
|
/**
|
|
98
|
-
*
|
|
754
|
+
* Wallet address of the user
|
|
99
755
|
*/
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The amount of the rule
|
|
103
|
-
*/
|
|
104
|
-
amount?: number;
|
|
105
|
-
/**
|
|
106
|
-
* The description of the rule
|
|
107
|
-
*/
|
|
108
|
-
description?: string;
|
|
109
|
-
/**
|
|
110
|
-
* UUID of the currency (optional, converted to lowercase)
|
|
111
|
-
*/
|
|
112
|
-
loyaltyCurrencyId?: string;
|
|
113
|
-
/**
|
|
114
|
-
* UUID of the rule group (optional, converted to lowercase)
|
|
115
|
-
*/
|
|
116
|
-
loyaltyRuleGroupId?: string;
|
|
117
|
-
/**
|
|
118
|
-
* UUID of the rule (optional, converted to lowercase)
|
|
119
|
-
*/
|
|
120
|
-
loyaltyRuleId?: string;
|
|
756
|
+
walletAddress: string;
|
|
121
757
|
}
|
|
122
758
|
}
|
|
759
|
+
interface LoyaltyRule {
|
|
760
|
+
/**
|
|
761
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
762
|
+
*/
|
|
763
|
+
id: string;
|
|
764
|
+
/**
|
|
765
|
+
* The name of the loyalty rule
|
|
766
|
+
*/
|
|
767
|
+
name: string;
|
|
768
|
+
}
|
|
123
769
|
}
|
|
124
770
|
/**
|
|
125
771
|
* Response returned upon successful deletion of the badge.
|
|
126
772
|
*/
|
|
127
773
|
export interface BadgeDeleteResponse {
|
|
774
|
+
/**
|
|
775
|
+
* UUID of the badge (converted to lowercase)
|
|
776
|
+
*/
|
|
128
777
|
id: string;
|
|
129
|
-
|
|
778
|
+
/**
|
|
779
|
+
* The description of the badge
|
|
780
|
+
*/
|
|
781
|
+
description: string | null;
|
|
782
|
+
/**
|
|
783
|
+
* The URL of the badge image
|
|
784
|
+
*/
|
|
785
|
+
imageUrl: string | null;
|
|
786
|
+
/**
|
|
787
|
+
* Array of conditions of the badge
|
|
788
|
+
*/
|
|
789
|
+
loyaltyConditions: Array<BadgeDeleteResponse.LoyaltyCondition>;
|
|
790
|
+
/**
|
|
791
|
+
* The name of the badge
|
|
792
|
+
*/
|
|
793
|
+
name: string;
|
|
794
|
+
/**
|
|
795
|
+
* Array of data jobs associated with the badge
|
|
796
|
+
*/
|
|
797
|
+
dataJobs?: Array<BadgeDeleteResponse.DataJob>;
|
|
798
|
+
/**
|
|
799
|
+
* Array of user badges
|
|
800
|
+
*/
|
|
801
|
+
loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
802
|
+
/**
|
|
803
|
+
* Array of loyalty rules associated with the badge
|
|
804
|
+
*/
|
|
805
|
+
loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
|
|
806
|
+
}
|
|
807
|
+
export declare namespace BadgeDeleteResponse {
|
|
808
|
+
/**
|
|
809
|
+
* Schema for a loyalty condition rule.
|
|
810
|
+
*/
|
|
811
|
+
interface LoyaltyCondition {
|
|
812
|
+
/**
|
|
813
|
+
* UUID of the condition (converted to lowercase)
|
|
814
|
+
*/
|
|
815
|
+
id: string;
|
|
816
|
+
/**
|
|
817
|
+
* The amount of the condition
|
|
818
|
+
*/
|
|
819
|
+
amount: number | null;
|
|
820
|
+
association: Array<LoyaltyCondition.Association>;
|
|
821
|
+
/**
|
|
822
|
+
* The URL of the CSV file
|
|
823
|
+
*/
|
|
824
|
+
csvUrl: string | null;
|
|
825
|
+
/**
|
|
826
|
+
* The description of the condition
|
|
827
|
+
*/
|
|
828
|
+
description: string | null;
|
|
829
|
+
/**
|
|
830
|
+
* UUID of the currency (converted to lowercase)
|
|
831
|
+
*/
|
|
832
|
+
loyaltyCurrencyId: string | null;
|
|
833
|
+
/**
|
|
834
|
+
* UUID of the rule group (converted to lowercase)
|
|
835
|
+
*/
|
|
836
|
+
loyaltyRuleGroupId: string | null;
|
|
837
|
+
/**
|
|
838
|
+
* The repeat count of the condition
|
|
839
|
+
*/
|
|
840
|
+
repeatCount: number | null;
|
|
841
|
+
/**
|
|
842
|
+
* The required count of the condition
|
|
843
|
+
*/
|
|
844
|
+
requiredCount: number | null;
|
|
845
|
+
/**
|
|
846
|
+
* The type of the condition
|
|
847
|
+
*/
|
|
848
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
849
|
+
}
|
|
850
|
+
namespace LoyaltyCondition {
|
|
851
|
+
interface Association {
|
|
852
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
853
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
854
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
855
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
856
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
857
|
+
}
|
|
858
|
+
namespace Association {
|
|
859
|
+
interface LoyaltyBadge {
|
|
860
|
+
/**
|
|
861
|
+
* UUID of the association (converted to lowercase)
|
|
862
|
+
*/
|
|
863
|
+
id: string;
|
|
864
|
+
/**
|
|
865
|
+
* The name of the association
|
|
866
|
+
*/
|
|
867
|
+
name: string;
|
|
868
|
+
}
|
|
869
|
+
interface LoyaltyCurrency {
|
|
870
|
+
/**
|
|
871
|
+
* UUID of the association (converted to lowercase)
|
|
872
|
+
*/
|
|
873
|
+
id: string;
|
|
874
|
+
/**
|
|
875
|
+
* The name of the association
|
|
876
|
+
*/
|
|
877
|
+
name: string;
|
|
878
|
+
}
|
|
879
|
+
interface LoyaltyLeaderboardView {
|
|
880
|
+
/**
|
|
881
|
+
* UUID of the association (converted to lowercase)
|
|
882
|
+
*/
|
|
883
|
+
id: string;
|
|
884
|
+
/**
|
|
885
|
+
* The name of the association
|
|
886
|
+
*/
|
|
887
|
+
name: string;
|
|
888
|
+
}
|
|
889
|
+
interface LoyaltyRule {
|
|
890
|
+
/**
|
|
891
|
+
* UUID of the association (converted to lowercase)
|
|
892
|
+
*/
|
|
893
|
+
id: string;
|
|
894
|
+
/**
|
|
895
|
+
* The name of the association
|
|
896
|
+
*/
|
|
897
|
+
name: string;
|
|
898
|
+
}
|
|
899
|
+
interface LoyaltyRuleGroup {
|
|
900
|
+
/**
|
|
901
|
+
* UUID of the association (converted to lowercase)
|
|
902
|
+
*/
|
|
903
|
+
id: string;
|
|
904
|
+
/**
|
|
905
|
+
* The name of the association
|
|
906
|
+
*/
|
|
907
|
+
name: string;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
interface DataJob {
|
|
912
|
+
/**
|
|
913
|
+
* UUID of the data job (converted to lowercase)
|
|
914
|
+
*/
|
|
915
|
+
id: string;
|
|
916
|
+
/**
|
|
917
|
+
* The date and time the data job was created
|
|
918
|
+
*/
|
|
919
|
+
createdAt: string;
|
|
920
|
+
/**
|
|
921
|
+
* The status of the data job
|
|
922
|
+
*/
|
|
923
|
+
status: 'pending' | 'complete' | 'failed';
|
|
924
|
+
/**
|
|
925
|
+
* The date and time the data job was updated
|
|
926
|
+
*/
|
|
927
|
+
updatedAt: string;
|
|
928
|
+
/**
|
|
929
|
+
* The message associated with the data job
|
|
930
|
+
*/
|
|
931
|
+
message?: string | null;
|
|
932
|
+
}
|
|
933
|
+
interface LoyaltyBadgeUser {
|
|
934
|
+
/**
|
|
935
|
+
* UUID of the user badge (converted to lowercase)
|
|
936
|
+
*/
|
|
937
|
+
id: string;
|
|
938
|
+
/**
|
|
939
|
+
* The date and time the user badge was created
|
|
940
|
+
*/
|
|
941
|
+
createdAt: string;
|
|
942
|
+
/**
|
|
943
|
+
* UUID of the badge (converted to lowercase)
|
|
944
|
+
*/
|
|
945
|
+
loyaltyBadgeId: string;
|
|
946
|
+
/**
|
|
947
|
+
* UUID of the organization (converted to lowercase)
|
|
948
|
+
*/
|
|
949
|
+
organizationId: string;
|
|
950
|
+
/**
|
|
951
|
+
* The status of the badge
|
|
952
|
+
*/
|
|
953
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
954
|
+
/**
|
|
955
|
+
* The date and time the user badge was updated
|
|
956
|
+
*/
|
|
957
|
+
updatedAt: string;
|
|
958
|
+
/**
|
|
959
|
+
* UUID of the user (converted to lowercase)
|
|
960
|
+
*/
|
|
961
|
+
userId: string;
|
|
962
|
+
/**
|
|
963
|
+
* UUID of the website (converted to lowercase)
|
|
964
|
+
*/
|
|
965
|
+
websiteId: string;
|
|
966
|
+
/**
|
|
967
|
+
* Array of progress for the badge
|
|
968
|
+
*/
|
|
969
|
+
progress?: unknown;
|
|
970
|
+
/**
|
|
971
|
+
* User associated with the user badge
|
|
972
|
+
*/
|
|
973
|
+
user?: LoyaltyBadgeUser.User;
|
|
974
|
+
}
|
|
975
|
+
namespace LoyaltyBadgeUser {
|
|
976
|
+
/**
|
|
977
|
+
* User associated with the user badge
|
|
978
|
+
*/
|
|
979
|
+
interface User {
|
|
980
|
+
/**
|
|
981
|
+
* UUID of the user (converted to lowercase)
|
|
982
|
+
*/
|
|
983
|
+
id: string;
|
|
984
|
+
/**
|
|
985
|
+
* Wallet address of the user
|
|
986
|
+
*/
|
|
987
|
+
walletAddress: string;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
interface LoyaltyRule {
|
|
991
|
+
/**
|
|
992
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
993
|
+
*/
|
|
994
|
+
id: string;
|
|
995
|
+
/**
|
|
996
|
+
* The name of the loyalty rule
|
|
997
|
+
*/
|
|
998
|
+
name: string;
|
|
999
|
+
}
|
|
130
1000
|
}
|
|
131
1001
|
/**
|
|
132
1002
|
* Response returned upon successful update of the user badge
|
|
@@ -165,6 +1035,10 @@ export declare namespace BadgeRewardResponse {
|
|
|
165
1035
|
}
|
|
166
1036
|
}
|
|
167
1037
|
export interface BadgeCreateParams {
|
|
1038
|
+
/**
|
|
1039
|
+
* Array of conditions for the badge
|
|
1040
|
+
*/
|
|
1041
|
+
conditions: Array<BadgeCreateParams.Condition>;
|
|
168
1042
|
/**
|
|
169
1043
|
* The URL of the badge image
|
|
170
1044
|
*/
|
|
@@ -177,10 +1051,6 @@ export interface BadgeCreateParams {
|
|
|
177
1051
|
* UUID of the organization (optional, converted to lowercase)
|
|
178
1052
|
*/
|
|
179
1053
|
organizationId: string;
|
|
180
|
-
/**
|
|
181
|
-
* Array of rules for the badge
|
|
182
|
-
*/
|
|
183
|
-
rules: Array<BadgeCreateParams.Rule>;
|
|
184
1054
|
/**
|
|
185
1055
|
* UUID of the website (optional, converted to lowercase)
|
|
186
1056
|
*/
|
|
@@ -191,42 +1061,55 @@ export interface BadgeCreateParams {
|
|
|
191
1061
|
description?: string;
|
|
192
1062
|
}
|
|
193
1063
|
export declare namespace BadgeCreateParams {
|
|
194
|
-
|
|
195
|
-
* Schema for a loyalty condition rule.
|
|
196
|
-
*/
|
|
197
|
-
interface Rule {
|
|
198
|
-
/**
|
|
199
|
-
* The type of rule
|
|
200
|
-
*/
|
|
201
|
-
type: 'rule' | 'section' | 'level' | 'points' | 'api' | 'badge';
|
|
1064
|
+
interface Condition {
|
|
202
1065
|
/**
|
|
203
1066
|
* The amount of the rule
|
|
204
1067
|
*/
|
|
205
1068
|
amount?: number | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* URL of the CSV file (optional)
|
|
1071
|
+
*/
|
|
1072
|
+
csvUrl?: string | null;
|
|
206
1073
|
/**
|
|
207
1074
|
* The description of the rule
|
|
208
1075
|
*/
|
|
209
|
-
description?: string;
|
|
1076
|
+
description?: string | null;
|
|
1077
|
+
/**
|
|
1078
|
+
* Array of UUIDs of the badge (optional, converted to lowercase)
|
|
1079
|
+
*/
|
|
1080
|
+
loyaltyBadgeIds?: Array<string>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Array of UUIDs of the currency (optional, converted to lowercase)
|
|
1083
|
+
*/
|
|
1084
|
+
loyaltyCurrencyIds?: Array<string>;
|
|
1085
|
+
/**
|
|
1086
|
+
* Array of UUIDs of the Loyalty Leaderboard (optional, converted to lowercase)
|
|
1087
|
+
*/
|
|
1088
|
+
loyaltyLeaderboardViewIds?: Array<string>;
|
|
1089
|
+
/**
|
|
1090
|
+
* UUID of the loyalty rule chain (optional, converted to lowercase)
|
|
1091
|
+
*/
|
|
1092
|
+
loyaltyRuleChainId?: string;
|
|
210
1093
|
/**
|
|
211
|
-
*
|
|
1094
|
+
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
212
1095
|
*/
|
|
213
|
-
|
|
1096
|
+
loyaltyRuleGroupIds?: Array<string>;
|
|
214
1097
|
/**
|
|
215
|
-
*
|
|
1098
|
+
* Array of UUIDs of the rules (optional, converted to lowercase)
|
|
216
1099
|
*/
|
|
217
|
-
|
|
1100
|
+
loyaltyRuleIds?: Array<string>;
|
|
218
1101
|
/**
|
|
219
|
-
*
|
|
1102
|
+
* The number of times the rule should be repeated to fulfill the condition
|
|
220
1103
|
*/
|
|
221
|
-
|
|
1104
|
+
repeatCount?: number | null;
|
|
222
1105
|
/**
|
|
223
|
-
*
|
|
1106
|
+
* The number of rules that need to be fulfilled to satisfy the condition
|
|
224
1107
|
*/
|
|
225
|
-
|
|
1108
|
+
requiredCount?: number | null;
|
|
226
1109
|
/**
|
|
227
|
-
*
|
|
1110
|
+
* The type of rule
|
|
228
1111
|
*/
|
|
229
|
-
|
|
1112
|
+
type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
230
1113
|
}
|
|
231
1114
|
}
|
|
232
1115
|
export interface BadgeUpdateParams {
|
|
@@ -255,7 +1138,7 @@ export interface BadgeListParams {
|
|
|
255
1138
|
/**
|
|
256
1139
|
* Number of badges to fetch
|
|
257
1140
|
*/
|
|
258
|
-
limit?: number
|
|
1141
|
+
limit?: number;
|
|
259
1142
|
/**
|
|
260
1143
|
* UUID of the organization (optional, converted to lowercase)
|
|
261
1144
|
*/
|
|
@@ -265,15 +1148,31 @@ export interface BadgeListParams {
|
|
|
265
1148
|
*/
|
|
266
1149
|
startingAfter?: string;
|
|
267
1150
|
/**
|
|
268
|
-
*
|
|
1151
|
+
* External identifier of the user group
|
|
269
1152
|
*/
|
|
270
|
-
|
|
1153
|
+
userGroupExternalIdentifier?: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* UUID of the user group
|
|
1156
|
+
*/
|
|
1157
|
+
userGroupId?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* UUID of the user, or array of UUID.
|
|
1160
|
+
*/
|
|
1161
|
+
userId?: string | Array<string>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Wallet Address of the user, or array of wallet addresses.
|
|
1164
|
+
*/
|
|
1165
|
+
walletAddress?: string | Array<string>;
|
|
271
1166
|
/**
|
|
272
1167
|
* UUID of the website (optional, converted to lowercase)
|
|
273
1168
|
*/
|
|
274
1169
|
websiteId?: string;
|
|
275
1170
|
}
|
|
276
1171
|
export interface BadgeRevokeParams {
|
|
1172
|
+
/**
|
|
1173
|
+
* Status of the badge
|
|
1174
|
+
*/
|
|
1175
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
277
1176
|
/**
|
|
278
1177
|
* UUID of the user (converted to lowercase)
|
|
279
1178
|
*/
|
|
@@ -284,6 +1183,10 @@ export interface BadgeRevokeParams {
|
|
|
284
1183
|
walletAddress?: string;
|
|
285
1184
|
}
|
|
286
1185
|
export interface BadgeRewardParams {
|
|
1186
|
+
/**
|
|
1187
|
+
* Status of the badge
|
|
1188
|
+
*/
|
|
1189
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
287
1190
|
/**
|
|
288
1191
|
* UUID of the user (converted to lowercase)
|
|
289
1192
|
*/
|