@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.16
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 +33 -0
- package/README.md +19 -13
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts.map +1 -1
- package/core.js +4 -1
- package/core.js.map +1 -1
- package/core.mjs +5 -2
- package/core.mjs.map +1 -1
- package/index.d.mts +17 -11
- package/index.d.ts +17 -11
- package/index.d.ts.map +1 -1
- package/index.js +14 -8
- package/index.js.map +1 -1
- package/index.mjs +15 -9
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/resources/assets.d.ts +50 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +17 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +13 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/auctions.d.ts +134 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/{auction-bids.js → auctions.js} +12 -6
- package/resources/auctions.js.map +1 -0
- package/resources/{auction-bids.mjs → auctions.mjs} +10 -4
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +40 -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 +11 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -5
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +190 -0
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +15 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +15 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +4 -0
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +6 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +8 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +9 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +5 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +29 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +24 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +25 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +37 -6
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +7 -1
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +7 -1
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts} +2 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js} +2 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs} +2 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.d.ts → questions.d.ts} +2 -2
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.js → questions.js} +1 -1
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.mjs → questions.mjs} +1 -1
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +6 -6
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +559 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +16 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +12 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +144 -23
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +1 -1
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +1 -1
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions.d.ts +248 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +22 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +18 -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/{assets/minting.d.ts → minting.d.ts} +10 -10
- package/resources/minting.d.ts.map +1 -0
- package/resources/{assets/minting.js → minting.js} +2 -2
- package/resources/minting.js.map +1 -0
- package/resources/{assets/minting.mjs → minting.mjs} +2 -2
- 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.map +1 -0
- package/resources/{assets/referral → referral}/index.mjs +1 -1
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +31 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/referral.js +4 -4
- package/resources/referral/referral.js.map +1 -0
- package/resources/{assets/referral → referral}/referral.mjs +5 -5
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/{assets/referral → referral}/users.d.ts +11 -11
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/users.js +3 -3
- package/resources/referral/users.js.map +1 -0
- package/resources/{assets/referral → referral}/users.mjs +3 -3
- 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 +1 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +17 -7
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +2 -2
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +2 -2
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +296 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +25 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +25 -4
- 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/{assets → websites}/index.mjs +1 -4
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +73 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/{assets → websites}/website-collections.js +2 -2
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/{assets → websites}/website-collections.mjs +2 -2
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/{assets → websites}/website-user-roles.d.ts +28 -28
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/{assets → websites}/website-user-roles.js +7 -7
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/{assets → websites}/website-user-roles.mjs +7 -7
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +211 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/{assets/assets.js → websites/websites.js} +14 -27
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +29 -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 +8 -3
- package/src/index.ts +66 -22
- package/src/resources/assets.ts +77 -0
- package/src/resources/auctions.ts +209 -0
- package/src/resources/auth.ts +69 -0
- package/src/resources/index.ts +21 -10
- package/src/resources/loyalty/accounts.ts +250 -1
- package/src/resources/loyalty/badges.ts +5 -0
- package/src/resources/loyalty/currencies.ts +6 -0
- package/src/resources/loyalty/index.ts +40 -14
- package/src/resources/loyalty/loyalty.ts +129 -69
- package/src/resources/loyalty/multipliers.ts +44 -8
- package/src/resources/loyalty/{transaction-entries/questions-responses.ts → questions-responses.ts} +3 -3
- package/src/resources/loyalty/{transaction-entries/questions.ts → questions.ts} +2 -2
- package/src/resources/loyalty/rule-edits.ts +7 -10
- package/src/resources/loyalty/rule-groups.ts +818 -0
- package/src/resources/loyalty/rules.ts +406 -192
- package/src/resources/loyalty/transactions.ts +332 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/{assets/minting.ts → minting.ts} +32 -27
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +70 -0
- package/src/resources/{assets/referral → referral}/users.ts +14 -20
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +13 -4
- package/src/resources/users/metadatas.ts +26 -15
- package/src/resources/users/users.ts +423 -9
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{assets → websites}/website-collections.ts +32 -30
- package/src/resources/{assets → websites}/website-user-roles.ts +40 -40
- package/src/resources/websites/websites.ts +299 -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.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets/assets.d.ts +0 -153
- package/resources/assets/assets.d.ts.map +0 -1
- package/resources/assets/assets.js.map +0 -1
- package/resources/assets/assets.mjs +0 -42
- package/resources/assets/assets.mjs.map +0 -1
- package/resources/assets/index.d.ts +0 -7
- package/resources/assets/index.d.ts.map +0 -1
- package/resources/assets/index.js +0 -17
- package/resources/assets/index.js.map +0 -1
- package/resources/assets/index.mjs.map +0 -1
- package/resources/assets/minting.d.ts.map +0 -1
- package/resources/assets/minting.js.map +0 -1
- package/resources/assets/minting.mjs.map +0 -1
- package/resources/assets/referral/index.d.ts +0 -3
- package/resources/assets/referral/index.d.ts.map +0 -1
- package/resources/assets/referral/index.js.map +0 -1
- package/resources/assets/referral/index.mjs.map +0 -1
- package/resources/assets/referral/referral.d.ts +0 -30
- package/resources/assets/referral/referral.d.ts.map +0 -1
- package/resources/assets/referral/referral.js.map +0 -1
- package/resources/assets/referral/referral.mjs.map +0 -1
- package/resources/assets/referral/users.d.ts.map +0 -1
- package/resources/assets/referral/users.js.map +0 -1
- package/resources/assets/referral/users.mjs.map +0 -1
- package/resources/assets/users.d.ts +0 -285
- package/resources/assets/users.d.ts.map +0 -1
- package/resources/assets/users.js +0 -34
- package/resources/assets/users.js.map +0 -1
- package/resources/assets/users.mjs +0 -30
- package/resources/assets/users.mjs.map +0 -1
- package/resources/assets/website-collections.d.ts +0 -73
- package/resources/assets/website-collections.d.ts.map +0 -1
- package/resources/assets/website-collections.js.map +0 -1
- package/resources/assets/website-collections.mjs.map +0 -1
- package/resources/assets/website-user-roles.d.ts.map +0 -1
- package/resources/assets/website-user-roles.js.map +0 -1
- package/resources/assets/website-user-roles.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -51
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js.map +0 -1
- 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 +0 -43
- 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 -4
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -9
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -5
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -4
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -9
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -5
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +0 -191
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.js +0 -24
- package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.mjs +0 -20
- package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/index.d.ts +0 -5
- package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/index.js +0 -13
- package/resources/loyalty/transaction-entries/index.js.map +0 -1
- package/resources/loyalty/transaction-entries/index.mjs +0 -6
- package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.js +0 -66
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -4
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -9
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -5
- package/resources/users/wallets.mjs.map +0 -1
- package/src/resources/assets/assets.ts +0 -294
- package/src/resources/assets/index.ts +0 -38
- package/src/resources/assets/referral/index.ts +0 -14
- package/src/resources/assets/referral/referral.ts +0 -74
- package/src/resources/assets/users.ts +0 -415
- package/src/resources/auction-bids.ts +0 -77
- package/src/resources/drip/drip.ts +0 -21
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -5
- package/src/resources/drip/status.ts +0 -5
- package/src/resources/loyalty/transaction-entries/accounts.ts +0 -251
- package/src/resources/loyalty/transaction-entries/index.ts +0 -34
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
- package/src/resources/users/wallets.ts +0 -5
- /package/resources/{assets/referral → referral}/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-edits.js","sourceRoot":"","sources":["../../src/resources/loyalty/rule-edits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"rule-edits.js","sourceRoot":"","sources":["../../src/resources/loyalty/rule-edits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,IAAI,CAAC,KAAyB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,OAAO,CACL,EAAU,EACV,IAA+C,EAC/C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF;AAlBD,8BAkBC"}
|
|
@@ -4,7 +4,7 @@ export class RuleEdits extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve configured loyalty rule edits with optional pagination and filters
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
list(query, options) {
|
|
8
8
|
return this._client.get('/api/loyalty/rule_edits', { query, ...options });
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-edits.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/rule-edits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"rule-edits.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/rule-edits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CAAC,KAAyB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,OAAO,CACL,EAAU,EACV,IAA+C,EAC/C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF"}
|
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class RuleGroups extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve configured loyalty rule groups
|
|
6
|
+
*/
|
|
7
|
+
getRuleGroups(query?: RuleGroupGetRuleGroupsParams, options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
|
|
8
|
+
getRuleGroups(options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface RuleGroupGetRuleGroupsResponse {
|
|
11
|
+
data: Array<RuleGroupGetRuleGroupsResponse.Data>;
|
|
12
|
+
hasNextPage: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace RuleGroupGetRuleGroupsResponse {
|
|
15
|
+
/**
|
|
16
|
+
* Schema for a get loyalty rule groups response
|
|
17
|
+
*/
|
|
18
|
+
interface Data {
|
|
19
|
+
id: string;
|
|
20
|
+
isCollapsible: boolean;
|
|
21
|
+
isRequired: boolean;
|
|
22
|
+
loyaltyGroupItems: Array<Data.LoyaltyGroupItem>;
|
|
23
|
+
name: string;
|
|
24
|
+
sortId: number;
|
|
25
|
+
subTitle: string | null;
|
|
26
|
+
}
|
|
27
|
+
namespace Data {
|
|
28
|
+
interface LoyaltyGroupItem {
|
|
29
|
+
id: string;
|
|
30
|
+
loyaltyRule: LoyaltyGroupItem.LoyaltyRule;
|
|
31
|
+
sortId: number;
|
|
32
|
+
}
|
|
33
|
+
namespace LoyaltyGroupItem {
|
|
34
|
+
interface LoyaltyRule {
|
|
35
|
+
id: string;
|
|
36
|
+
amount: number | null;
|
|
37
|
+
deletedAt: string | null;
|
|
38
|
+
description: string | null;
|
|
39
|
+
endTime: string | null;
|
|
40
|
+
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
|
|
41
|
+
hideInUi: boolean;
|
|
42
|
+
isRequired: boolean;
|
|
43
|
+
loyaltyCurrencyId: string;
|
|
44
|
+
mediaUrl: string | null;
|
|
45
|
+
metadata: LoyaltyRule.Metadata;
|
|
46
|
+
name: string;
|
|
47
|
+
rewardType: 'points' | 'multiplier';
|
|
48
|
+
startTime: string | null;
|
|
49
|
+
type: 'Bonus' | 'BoughtOn' | 'BoughtWithRoyalties' | 'DiscordMessages' | 'Listing' | 'Lodging' | 'MintOn' | 'PoapClaim' | 'SnagSocialsConnected' | 'SnapshotFullset' | 'SnapshotHold' | 'SoldOn' | 'SoldWithRoyalties' | 'TokenHold' | 'TwitterBio' | 'TwitterHashTagPost' | 'Retweet' | 'check_in' | 'code_entry' | 'connect_wallet' | 'connected_discord' | 'connected_email' | 'connected_epic' | 'connected_steam' | 'connected_telegram' | 'connected_twitter' | 'create_partner_account' | 'discord_member' | 'drip_x_follow' | 'drip_x_new_tweet' | 'drip_x_text_in_bio' | 'drip_x_text_in_comment' | 'drip_x_text_in_name' | 'drip_x_tweet' | 'external_rule' | 'link_click' | 'manual_upload' | 'profile_completed' | 'referred_user' | 'smart_contract_event' | 'snapshot_governance' | 'telegram_join' | 'telegram_messages' | 'text_input' | 'token_hold_erc20' | 'tweet_liked_by_project' | 'twitter_comment' | 'twitter_follow' | 'twitter_followers' | 'twitter_like' | 'twitter_post_hashtag' | 'quiz' | 'poll';
|
|
50
|
+
}
|
|
51
|
+
namespace LoyaltyRule {
|
|
52
|
+
interface Metadata {
|
|
53
|
+
/**
|
|
54
|
+
* Text displayed on the action button.
|
|
55
|
+
*/
|
|
56
|
+
buttonText?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Flag indicating if commenting is required.
|
|
59
|
+
*/
|
|
60
|
+
checkComment?: boolean | null;
|
|
61
|
+
/**
|
|
62
|
+
* Flag indicating if liking the post is required.
|
|
63
|
+
*/
|
|
64
|
+
checkLike?: boolean | null;
|
|
65
|
+
/**
|
|
66
|
+
* Flag indicating if reposting is required.
|
|
67
|
+
*/
|
|
68
|
+
checkRepost?: boolean | null;
|
|
69
|
+
/**
|
|
70
|
+
* Text to check in the Twitter post, username, or bio.
|
|
71
|
+
*/
|
|
72
|
+
checkText?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Array of collections associated with the rule.
|
|
75
|
+
*/
|
|
76
|
+
collection?: Array<Metadata.Collection>;
|
|
77
|
+
/**
|
|
78
|
+
* Conditions for completing the profile.
|
|
79
|
+
*/
|
|
80
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
81
|
+
/**
|
|
82
|
+
* Object containing details for the call-to-action.
|
|
83
|
+
*/
|
|
84
|
+
cta?: Metadata.Cta | null;
|
|
85
|
+
/**
|
|
86
|
+
* API key for custom rewards integration.
|
|
87
|
+
*/
|
|
88
|
+
customRewardsApiKey?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Array of Discord servers, channels, and roles to join.
|
|
91
|
+
*/
|
|
92
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
93
|
+
/**
|
|
94
|
+
* Array of drip quests required to complete the rule.
|
|
95
|
+
*/
|
|
96
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
97
|
+
/**
|
|
98
|
+
* Flag indicating whether joining Discord servers is required.
|
|
99
|
+
*/
|
|
100
|
+
enableJoinDiscordServers?: boolean | null;
|
|
101
|
+
/**
|
|
102
|
+
* Flag indicating whether streaks are enabled.
|
|
103
|
+
*/
|
|
104
|
+
enableStreaks?: boolean | null;
|
|
105
|
+
/**
|
|
106
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
107
|
+
*/
|
|
108
|
+
enableVerifiedMultiplier?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Fill source of the order for the token sale
|
|
111
|
+
*/
|
|
112
|
+
fillSource?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Percentage reward given to a user for their first referral.
|
|
115
|
+
*/
|
|
116
|
+
firstReferralReward?: number | null;
|
|
117
|
+
/**
|
|
118
|
+
* Flag indicating whether the fill source is included.
|
|
119
|
+
*/
|
|
120
|
+
hasFillSource?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Indicates if the item has never been sold.
|
|
123
|
+
*/
|
|
124
|
+
hasNeverSold?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Flag indicating whether the order source is included.
|
|
127
|
+
*/
|
|
128
|
+
hasOrderSource?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Indicates if the full royalty has been paid for items.
|
|
131
|
+
*/
|
|
132
|
+
hasPaidFullRoyalty?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Flag indicating if the sale currency is included.
|
|
135
|
+
*/
|
|
136
|
+
hasSaleCurrency?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Indicates if the user has a verified Twitter account.
|
|
139
|
+
*/
|
|
140
|
+
hasVerifiedTwitter?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* URL of the image associated with the rule.
|
|
143
|
+
*/
|
|
144
|
+
imageUrl?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
147
|
+
*/
|
|
148
|
+
isMultiplierApplied?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Flag indicating if rewards are applied retroactively.
|
|
151
|
+
*/
|
|
152
|
+
isRetroactive?: boolean | null;
|
|
153
|
+
/**
|
|
154
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
155
|
+
*/
|
|
156
|
+
isTokenHoldMultiplier?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Optional link associated with the metadata.
|
|
159
|
+
*/
|
|
160
|
+
link?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Maximum quantity constraint for token holding.
|
|
163
|
+
*/
|
|
164
|
+
maxQty?: number | null;
|
|
165
|
+
/**
|
|
166
|
+
* Minimum quantity constraint for token holding.
|
|
167
|
+
*/
|
|
168
|
+
minQty?: number | null;
|
|
169
|
+
/**
|
|
170
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
171
|
+
*/
|
|
172
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
173
|
+
/**
|
|
174
|
+
* Flag indicating whether to include only known users.
|
|
175
|
+
*/
|
|
176
|
+
onlyKnownUsers?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Flag indicating whether to include only native tokens.
|
|
179
|
+
*/
|
|
180
|
+
onlyNative?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Flag indicating whether to include only non-listed items.
|
|
183
|
+
*/
|
|
184
|
+
onlyNonListed?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Indicates if only existing users are rewarded.
|
|
187
|
+
*/
|
|
188
|
+
onlyRewardExistingUser?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* give points for only one token ownership per contract
|
|
191
|
+
*/
|
|
192
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
193
|
+
/**
|
|
194
|
+
* Order source of the order for the token sale
|
|
195
|
+
*/
|
|
196
|
+
orderSource?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Promotional code associated with the rule.
|
|
199
|
+
*/
|
|
200
|
+
promoCode?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Array defining ranges and corresponding rewards.
|
|
203
|
+
*/
|
|
204
|
+
range?: Array<Metadata.Range>;
|
|
205
|
+
/**
|
|
206
|
+
* Object defining referral requirements.
|
|
207
|
+
*/
|
|
208
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
209
|
+
/**
|
|
210
|
+
* Lump sum reward given to a referrer.
|
|
211
|
+
*/
|
|
212
|
+
referrerReward?: number | null;
|
|
213
|
+
/**
|
|
214
|
+
* Flag indicating if rewards are given per impression.
|
|
215
|
+
*/
|
|
216
|
+
rewardPerImpression?: boolean | null;
|
|
217
|
+
/**
|
|
218
|
+
* Currency associated with sales.
|
|
219
|
+
*/
|
|
220
|
+
saleCurrency?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Percentage reward given for a second-level referral.
|
|
223
|
+
*/
|
|
224
|
+
secondReferralReward?: number | null;
|
|
225
|
+
/**
|
|
226
|
+
* Flag indicating if the multiplier is skipped.
|
|
227
|
+
*/
|
|
228
|
+
skipMultiplier?: boolean | null;
|
|
229
|
+
/**
|
|
230
|
+
* Object containing details of the associated smart contract.
|
|
231
|
+
*/
|
|
232
|
+
smartContract?: Metadata.SmartContract;
|
|
233
|
+
/**
|
|
234
|
+
* Array of snapshot proposals for the rule.
|
|
235
|
+
*/
|
|
236
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
237
|
+
/**
|
|
238
|
+
* Social media platform associated with the rule.
|
|
239
|
+
*/
|
|
240
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | null;
|
|
241
|
+
/**
|
|
242
|
+
* URL of the social platform's logo.
|
|
243
|
+
*/
|
|
244
|
+
socialPlatformLogo?: string | null;
|
|
245
|
+
/**
|
|
246
|
+
* Name of the social platform.
|
|
247
|
+
*/
|
|
248
|
+
socialPlatformName?: string | null;
|
|
249
|
+
/**
|
|
250
|
+
* Array of streak milestones and corresponding rewards.
|
|
251
|
+
*/
|
|
252
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
253
|
+
/**
|
|
254
|
+
* ID of the Telegram channel.
|
|
255
|
+
*/
|
|
256
|
+
telegramChannelId?: string | null;
|
|
257
|
+
/**
|
|
258
|
+
* Time delay in seconds to verify actions.
|
|
259
|
+
*/
|
|
260
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
261
|
+
/**
|
|
262
|
+
* Flag indicating if all contracts are tracked.
|
|
263
|
+
*/
|
|
264
|
+
trackAllContracts?: boolean | null;
|
|
265
|
+
/**
|
|
266
|
+
* URL of the associated Twitter account.
|
|
267
|
+
*/
|
|
268
|
+
twitterAccountUrl?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Hashtag associated with the Twitter post.
|
|
271
|
+
*/
|
|
272
|
+
twitterHashtag?: string;
|
|
273
|
+
/**
|
|
274
|
+
* URL of the associated Twitter post.
|
|
275
|
+
*/
|
|
276
|
+
twitterPostUrl?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Unique identifier of the Twitter user.
|
|
279
|
+
*/
|
|
280
|
+
twitterUserId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Twitter username of the user.
|
|
283
|
+
*/
|
|
284
|
+
twitterUsername?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Minimum length of the verification text.
|
|
287
|
+
*/
|
|
288
|
+
verificationTextMinimumLength?: number | null;
|
|
289
|
+
/**
|
|
290
|
+
* Multiplier applied to rewards for verified users.
|
|
291
|
+
*/
|
|
292
|
+
verifiedMultiplier?: number | null;
|
|
293
|
+
/**
|
|
294
|
+
* Placeholder text for verification input fields.
|
|
295
|
+
*/
|
|
296
|
+
verifyPlaceHolderText?: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* Type of wallet associated with the rule.
|
|
299
|
+
*/
|
|
300
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
301
|
+
}
|
|
302
|
+
namespace Metadata {
|
|
303
|
+
interface Collection {
|
|
304
|
+
/**
|
|
305
|
+
* Blockchain address of the collection.
|
|
306
|
+
*/
|
|
307
|
+
address?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Multiplier applied to the rewards for this collection.
|
|
310
|
+
*/
|
|
311
|
+
multiplier?: number;
|
|
312
|
+
/**
|
|
313
|
+
* Blockchain network of the collection.
|
|
314
|
+
*/
|
|
315
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Object containing details for the call-to-action.
|
|
319
|
+
*/
|
|
320
|
+
interface Cta {
|
|
321
|
+
/**
|
|
322
|
+
* Link for the call-to-action.
|
|
323
|
+
*/
|
|
324
|
+
href?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* Label for the call-to-action.
|
|
327
|
+
*/
|
|
328
|
+
label?: string | null;
|
|
329
|
+
}
|
|
330
|
+
interface DiscordServersToJoin {
|
|
331
|
+
/**
|
|
332
|
+
* ID of the Discord server to join.
|
|
333
|
+
*/
|
|
334
|
+
id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Array of Discord channels to join.
|
|
337
|
+
*/
|
|
338
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
339
|
+
/**
|
|
340
|
+
* Array of roles to assign in the Discord server.
|
|
341
|
+
*/
|
|
342
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
343
|
+
}
|
|
344
|
+
namespace DiscordServersToJoin {
|
|
345
|
+
interface Channel {
|
|
346
|
+
/**
|
|
347
|
+
* ID of the Discord channel.
|
|
348
|
+
*/
|
|
349
|
+
id?: string;
|
|
350
|
+
/**
|
|
351
|
+
* Array of emojis used in the channel.
|
|
352
|
+
*/
|
|
353
|
+
emojis?: Array<Channel.Emoji>;
|
|
354
|
+
/**
|
|
355
|
+
* Phrase of text to be present in the discord message
|
|
356
|
+
*/
|
|
357
|
+
text?: string;
|
|
358
|
+
}
|
|
359
|
+
namespace Channel {
|
|
360
|
+
interface Emoji {
|
|
361
|
+
/**
|
|
362
|
+
* ID of the emoji used in the channel.
|
|
363
|
+
*/
|
|
364
|
+
id?: string;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
interface Role {
|
|
368
|
+
/**
|
|
369
|
+
* ID of the role in the Discord server.
|
|
370
|
+
*/
|
|
371
|
+
id: string;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
interface DripQuestsToComplete {
|
|
375
|
+
/**
|
|
376
|
+
* ID of the drip quest to complete.
|
|
377
|
+
*/
|
|
378
|
+
id: string;
|
|
379
|
+
}
|
|
380
|
+
interface Range {
|
|
381
|
+
/**
|
|
382
|
+
* Reward amount for this range.
|
|
383
|
+
*/
|
|
384
|
+
amount: number;
|
|
385
|
+
/**
|
|
386
|
+
* End value of the range.
|
|
387
|
+
*/
|
|
388
|
+
endRange: number;
|
|
389
|
+
/**
|
|
390
|
+
* Start value of the range.
|
|
391
|
+
*/
|
|
392
|
+
startRange: number;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Object defining referral requirements.
|
|
396
|
+
*/
|
|
397
|
+
interface ReferralRequirements {
|
|
398
|
+
/**
|
|
399
|
+
* Flag indicating if achieving points is required.
|
|
400
|
+
*/
|
|
401
|
+
achievePoints?: boolean | null;
|
|
402
|
+
/**
|
|
403
|
+
* Flag indicating if completing the profile is required.
|
|
404
|
+
*/
|
|
405
|
+
completeProfile?: boolean | null;
|
|
406
|
+
/**
|
|
407
|
+
* Flag indicating if connecting Discord is required.
|
|
408
|
+
*/
|
|
409
|
+
connectDiscord?: boolean | null;
|
|
410
|
+
/**
|
|
411
|
+
* Flag indicating if connecting email is required.
|
|
412
|
+
*/
|
|
413
|
+
connectEmail?: boolean | null;
|
|
414
|
+
/**
|
|
415
|
+
* Flag indicating if connecting Twitter is required.
|
|
416
|
+
*/
|
|
417
|
+
connectTwitter?: boolean | null;
|
|
418
|
+
points?: ReferralRequirements.Points | null;
|
|
419
|
+
}
|
|
420
|
+
namespace ReferralRequirements {
|
|
421
|
+
interface Points {
|
|
422
|
+
/**
|
|
423
|
+
* Points required for referral.
|
|
424
|
+
*/
|
|
425
|
+
amount?: number | null;
|
|
426
|
+
/**
|
|
427
|
+
* ID of the loyalty currency for referral.
|
|
428
|
+
*/
|
|
429
|
+
loyaltyCurrecyId?: string | null;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Object containing details of the associated smart contract.
|
|
434
|
+
*/
|
|
435
|
+
interface SmartContract {
|
|
436
|
+
/**
|
|
437
|
+
* ABI of the smart contract.
|
|
438
|
+
*/
|
|
439
|
+
abi?: string | null;
|
|
440
|
+
/**
|
|
441
|
+
* Mapping of addresses for the smart contract.
|
|
442
|
+
*/
|
|
443
|
+
addressMapping?: string | null;
|
|
444
|
+
/**
|
|
445
|
+
* Array of bonus details applied to the rule.
|
|
446
|
+
*/
|
|
447
|
+
bonus?: Array<SmartContract.Bonus> | null;
|
|
448
|
+
/**
|
|
449
|
+
* ID of the smart contract.
|
|
450
|
+
*/
|
|
451
|
+
contractId?: string | null;
|
|
452
|
+
/**
|
|
453
|
+
* Criteria to evaluate the smart contract event.
|
|
454
|
+
*/
|
|
455
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
456
|
+
/**
|
|
457
|
+
* Time range applied to the rule.
|
|
458
|
+
*/
|
|
459
|
+
customRange?: SmartContract.CustomRange | null;
|
|
460
|
+
/**
|
|
461
|
+
* Event emitted by the smart contract.
|
|
462
|
+
*/
|
|
463
|
+
event?: string | null;
|
|
464
|
+
/**
|
|
465
|
+
* Maximum value allowed for the parameter.
|
|
466
|
+
*/
|
|
467
|
+
max?: number | null;
|
|
468
|
+
/**
|
|
469
|
+
* Array of parameters for the smart contract.
|
|
470
|
+
*/
|
|
471
|
+
params?: Array<SmartContract.Param> | null;
|
|
472
|
+
/**
|
|
473
|
+
* Flag indicating if a bonus is applied.
|
|
474
|
+
*/
|
|
475
|
+
withBonus?: boolean | null;
|
|
476
|
+
/**
|
|
477
|
+
* Flag indicating if a custom range is applied.
|
|
478
|
+
*/
|
|
479
|
+
withCustomRange?: boolean | null;
|
|
480
|
+
/**
|
|
481
|
+
* Flag indicating if a maximum limit is applied.
|
|
482
|
+
*/
|
|
483
|
+
withMax?: boolean | null;
|
|
484
|
+
}
|
|
485
|
+
namespace SmartContract {
|
|
486
|
+
interface Bonus {
|
|
487
|
+
/**
|
|
488
|
+
* Amount of the bonus.
|
|
489
|
+
*/
|
|
490
|
+
amount?: number | null;
|
|
491
|
+
/**
|
|
492
|
+
* Number of times the bonus is applied.
|
|
493
|
+
*/
|
|
494
|
+
count?: number | null;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Time range applied to the rule.
|
|
498
|
+
*/
|
|
499
|
+
interface CustomRange {
|
|
500
|
+
/**
|
|
501
|
+
* End time of the custom range.
|
|
502
|
+
*/
|
|
503
|
+
endsAt?: string | null;
|
|
504
|
+
/**
|
|
505
|
+
* Start time of the custom range.
|
|
506
|
+
*/
|
|
507
|
+
startsAt?: string | null;
|
|
508
|
+
}
|
|
509
|
+
interface Param {
|
|
510
|
+
/**
|
|
511
|
+
* Condition to check for the parameter.
|
|
512
|
+
*/
|
|
513
|
+
condition?: string | null;
|
|
514
|
+
/**
|
|
515
|
+
* Name of the smart contract parameter.
|
|
516
|
+
*/
|
|
517
|
+
name?: string | null;
|
|
518
|
+
/**
|
|
519
|
+
* Value of the parameter.
|
|
520
|
+
*/
|
|
521
|
+
value?: string | null;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
interface SnapshotProposal {
|
|
525
|
+
/**
|
|
526
|
+
* ID of the snapshot proposal.
|
|
527
|
+
*/
|
|
528
|
+
id: string;
|
|
529
|
+
/**
|
|
530
|
+
* Space associated with the snapshot proposal.
|
|
531
|
+
*/
|
|
532
|
+
space: string;
|
|
533
|
+
}
|
|
534
|
+
interface StreakArray {
|
|
535
|
+
/**
|
|
536
|
+
* Reward amount for achieving the streak milestone.
|
|
537
|
+
*/
|
|
538
|
+
streakAmount: number;
|
|
539
|
+
/**
|
|
540
|
+
* Milestone required to achieve the streak.
|
|
541
|
+
*/
|
|
542
|
+
streakMilestone: number;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
export interface RuleGroupGetRuleGroupsParams {
|
|
550
|
+
excludeHidden?: string;
|
|
551
|
+
limit?: number;
|
|
552
|
+
organizationId?: string;
|
|
553
|
+
startingAfter?: string;
|
|
554
|
+
websiteId?: string;
|
|
555
|
+
}
|
|
556
|
+
export declare namespace RuleGroups {
|
|
557
|
+
export { type RuleGroupGetRuleGroupsResponse as RuleGroupGetRuleGroupsResponse, type RuleGroupGetRuleGroupsParams as RuleGroupGetRuleGroupsParams, };
|
|
558
|
+
}
|
|
559
|
+
//# sourceMappingURL=rule-groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/rule-groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,C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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RuleGroups = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
class RuleGroups extends resource_1.APIResource {
|
|
8
|
+
getRuleGroups(query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.getRuleGroups({}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get('/api/loyalty/rule_groups', { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.RuleGroups = RuleGroups;
|
|
16
|
+
//# sourceMappingURL=rule-groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.js","sourceRoot":"","sources":["../../src/resources/loyalty/rule-groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,UAAW,SAAQ,sBAAW;IASzC,aAAa,CACX,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAlBD,gCAkBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
export class RuleGroups extends APIResource {
|
|
5
|
+
getRuleGroups(query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.getRuleGroups({}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get('/api/loyalty/rule_groups', { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=rule-groups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/rule-groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,UAAW,SAAQ,WAAW;IASzC,aAAa,CACX,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|