@snagsolutions/sdk 0.1.0-alpha.42 → 0.1.0-alpha.44

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.
@@ -594,6 +594,12 @@ export namespace RuleCreateResponse {
594
594
  */
595
595
  trackAllContracts?: boolean | null;
596
596
 
597
+ /**
598
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
599
+ * completed once the progress is 100%.
600
+ */
601
+ trackProgress?: boolean | null;
602
+
597
603
  /**
598
604
  * URL of the associated Twitter account.
599
605
  */
@@ -1496,6 +1502,12 @@ export namespace RuleUpdateResponse {
1496
1502
  */
1497
1503
  trackAllContracts?: boolean | null;
1498
1504
 
1505
+ /**
1506
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
1507
+ * completed once the progress is 100%.
1508
+ */
1509
+ trackProgress?: boolean | null;
1510
+
1499
1511
  /**
1500
1512
  * URL of the associated Twitter account.
1501
1513
  */
@@ -1955,10 +1967,677 @@ export namespace RuleListResponse {
1955
1967
  */
1956
1968
  collectionAddress?: string;
1957
1969
 
1970
+ /**
1971
+ * URL of the media associated with the loyalty rule
1972
+ */
1973
+ mediaUrl?: string | null;
1974
+
1958
1975
  /**
1959
1976
  * Optional metadata for the loyalty rule
1960
1977
  */
1961
- metadata?: Record<string, unknown>;
1978
+ metadata?: Record<string, Data.Metadata>;
1979
+ }
1980
+
1981
+ export namespace Data {
1982
+ export interface Metadata {
1983
+ /**
1984
+ * Text displayed on the action button.
1985
+ */
1986
+ buttonText?: string | null;
1987
+
1988
+ /**
1989
+ * Flag indicating if commenting is required.
1990
+ */
1991
+ checkComment?: boolean | null;
1992
+
1993
+ /**
1994
+ * Flag indicating if liking the post is required.
1995
+ */
1996
+ checkLike?: boolean | null;
1997
+
1998
+ /**
1999
+ * Flag indicating if reposting is required.
2000
+ */
2001
+ checkRepost?: boolean | null;
2002
+
2003
+ /**
2004
+ * Text to check in the Twitter post, username, or bio.
2005
+ */
2006
+ checkText?: string | null;
2007
+
2008
+ /**
2009
+ * Array of collections associated with the rule.
2010
+ */
2011
+ collection?: Array<Metadata.Collection>;
2012
+
2013
+ /**
2014
+ * Conditions for completing the profile.
2015
+ */
2016
+ completeProfileConditions?: Record<string, boolean> | null;
2017
+
2018
+ /**
2019
+ * Object containing details for the call-to-action.
2020
+ */
2021
+ cta?: Metadata.Cta | null;
2022
+
2023
+ /**
2024
+ * API key for custom rewards integration.
2025
+ */
2026
+ customRewardsApiKey?: string;
2027
+
2028
+ /**
2029
+ * Array of Discord servers, channels, and roles to join.
2030
+ */
2031
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
2032
+
2033
+ /**
2034
+ * Array of drip quests required to complete the rule.
2035
+ */
2036
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
2037
+
2038
+ /**
2039
+ * Flag indicating whether joining Discord servers is required.
2040
+ */
2041
+ enableJoinDiscordServers?: boolean | null;
2042
+
2043
+ /**
2044
+ * Flag indicating whether streaks are enabled.
2045
+ */
2046
+ enableStreaks?: boolean | null;
2047
+
2048
+ /**
2049
+ * Flag indicating whether the verified multiplier is enabled.
2050
+ */
2051
+ enableVerifiedMultiplier?: boolean;
2052
+
2053
+ /**
2054
+ * Fill source of the order for the token sale
2055
+ */
2056
+ fillSource?: string;
2057
+
2058
+ /**
2059
+ * Percentage reward given to a user for their first referral.
2060
+ */
2061
+ firstReferralReward?: number | null;
2062
+
2063
+ /**
2064
+ * Flag indicating whether the fill source is included.
2065
+ */
2066
+ hasFillSource?: boolean;
2067
+
2068
+ /**
2069
+ * Indicates if the item has never been sold.
2070
+ */
2071
+ hasNeverSold?: boolean;
2072
+
2073
+ /**
2074
+ * Flag indicating whether the order source is included.
2075
+ */
2076
+ hasOrderSource?: boolean;
2077
+
2078
+ /**
2079
+ * Indicates if the full royalty has been paid for items.
2080
+ */
2081
+ hasPaidFullRoyalty?: boolean;
2082
+
2083
+ /**
2084
+ * Flag indicating if the sale currency is included.
2085
+ */
2086
+ hasSaleCurrency?: boolean;
2087
+
2088
+ /**
2089
+ * Indicates if the user has a verified Twitter account.
2090
+ */
2091
+ hasVerifiedTwitter?: boolean;
2092
+
2093
+ /**
2094
+ * URL of the image associated with the rule.
2095
+ */
2096
+ imageUrl?: string | null;
2097
+
2098
+ /**
2099
+ * Indicates if the multiplier has been applied to rewards.
2100
+ */
2101
+ isMultiplierApplied?: boolean;
2102
+
2103
+ /**
2104
+ * Flag indicating if rewards are applied retroactively.
2105
+ */
2106
+ isRetroactive?: boolean | null;
2107
+
2108
+ /**
2109
+ * Flag indicating if the token hold multiplier is applied.
2110
+ */
2111
+ isTokenHoldMultiplier?: boolean;
2112
+
2113
+ /**
2114
+ * Optional link associated with the metadata.
2115
+ */
2116
+ link?: string | null;
2117
+
2118
+ /**
2119
+ * Maximum quantity constraint for token holding.
2120
+ */
2121
+ maxQty?: number | null;
2122
+
2123
+ /**
2124
+ * Minimum quantity constraint for token holding.
2125
+ */
2126
+ minQty?: number | null;
2127
+
2128
+ /**
2129
+ * Array of loyalty currency IDs used for multipliers.
2130
+ */
2131
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
2132
+
2133
+ /**
2134
+ * Flag indicating whether to include only known users.
2135
+ */
2136
+ onlyKnownUsers?: boolean;
2137
+
2138
+ /**
2139
+ * Flag indicating whether to include only native tokens.
2140
+ */
2141
+ onlyNative?: boolean;
2142
+
2143
+ /**
2144
+ * Flag indicating whether to include only non-listed items.
2145
+ */
2146
+ onlyNonListed?: boolean;
2147
+
2148
+ /**
2149
+ * Indicates if only existing users are rewarded.
2150
+ */
2151
+ onlyRewardExistingUser?: boolean;
2152
+
2153
+ /**
2154
+ * give points for only one token ownership per contract
2155
+ */
2156
+ onlyRewardSingleTokenOwnership?: boolean | null;
2157
+
2158
+ /**
2159
+ * Order source of the order for the token sale
2160
+ */
2161
+ orderSource?: string;
2162
+
2163
+ /**
2164
+ * Promotional code associated with the rule.
2165
+ */
2166
+ promoCode?: string;
2167
+
2168
+ /**
2169
+ * Array defining ranges and corresponding rewards.
2170
+ */
2171
+ range?: Array<Metadata.Range>;
2172
+
2173
+ /**
2174
+ * Object defining referral requirements.
2175
+ */
2176
+ referralRequirements?: Metadata.ReferralRequirements | null;
2177
+
2178
+ /**
2179
+ * Lump sum reward given to a referrer.
2180
+ */
2181
+ referrerReward?: number | null;
2182
+
2183
+ /**
2184
+ * Flag indicating if rewards are given per impression.
2185
+ */
2186
+ rewardPerImpression?: boolean | null;
2187
+
2188
+ /**
2189
+ * Currency associated with sales.
2190
+ */
2191
+ saleCurrency?: string;
2192
+
2193
+ /**
2194
+ * Percentage reward given for a second-level referral.
2195
+ */
2196
+ secondReferralReward?: number | null;
2197
+
2198
+ /**
2199
+ * Flag indicating if the multiplier is skipped.
2200
+ */
2201
+ skipMultiplier?: boolean | null;
2202
+
2203
+ /**
2204
+ * Object containing details of the associated smart contract.
2205
+ */
2206
+ smartContract?: Metadata.SmartContract;
2207
+
2208
+ /**
2209
+ * Array of snapshot proposals for the rule.
2210
+ */
2211
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
2212
+
2213
+ /**
2214
+ * Social media platform associated with the rule.
2215
+ */
2216
+ socialPlatform?:
2217
+ | 'Custom'
2218
+ | 'Discord'
2219
+ | 'EpicGames'
2220
+ | 'Instagram'
2221
+ | 'Steam'
2222
+ | 'Telegram'
2223
+ | 'TikTok'
2224
+ | 'Twitch'
2225
+ | 'X(Twitter)'
2226
+ | 'YouTube'
2227
+ | null;
2228
+
2229
+ /**
2230
+ * URL of the social platform's logo.
2231
+ */
2232
+ socialPlatformLogo?: string | null;
2233
+
2234
+ /**
2235
+ * Name of the social platform.
2236
+ */
2237
+ socialPlatformName?: string | null;
2238
+
2239
+ /**
2240
+ * ID of the Steam app.
2241
+ */
2242
+ steamAppId?: string | null;
2243
+
2244
+ /**
2245
+ * Array of streak milestones and corresponding rewards.
2246
+ */
2247
+ streakArray?: Array<Metadata.StreakArray> | null;
2248
+
2249
+ /**
2250
+ * ID of the Telegram channel.
2251
+ */
2252
+ telegramChannelId?: string | null;
2253
+
2254
+ /**
2255
+ * Time delay in seconds to verify actions.
2256
+ */
2257
+ timeDelayToVerifySeconds?: string | number | null;
2258
+
2259
+ /**
2260
+ * Flag indicating if all contracts are tracked.
2261
+ */
2262
+ trackAllContracts?: boolean | null;
2263
+
2264
+ /**
2265
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
2266
+ * completed once the progress is 100%.
2267
+ */
2268
+ trackProgress?: boolean | null;
2269
+
2270
+ /**
2271
+ * URL of the associated Twitter account.
2272
+ */
2273
+ twitterAccountUrl?: string;
2274
+
2275
+ /**
2276
+ * Hashtag associated with the Twitter post.
2277
+ */
2278
+ twitterHashtag?: string;
2279
+
2280
+ /**
2281
+ * URL of the associated Twitter post.
2282
+ */
2283
+ twitterPostUrl?: string;
2284
+
2285
+ /**
2286
+ * Unique identifier of the Twitter user.
2287
+ */
2288
+ twitterUserId?: string;
2289
+
2290
+ /**
2291
+ * Twitter username of the user.
2292
+ */
2293
+ twitterUsername?: string;
2294
+
2295
+ /**
2296
+ * Minimum length of the verification text.
2297
+ */
2298
+ verificationTextMinimumLength?: number | null;
2299
+
2300
+ /**
2301
+ * Multiplier applied to rewards for verified users.
2302
+ */
2303
+ verifiedMultiplier?: number | null;
2304
+
2305
+ /**
2306
+ * Placeholder text for verification input fields.
2307
+ */
2308
+ verifyPlaceHolderText?: string | null;
2309
+
2310
+ /**
2311
+ * Type of wallet associated with the rule.
2312
+ */
2313
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
2314
+ }
2315
+
2316
+ export namespace Metadata {
2317
+ export interface Collection {
2318
+ /**
2319
+ * Blockchain address of the collection.
2320
+ */
2321
+ address?: string;
2322
+
2323
+ /**
2324
+ * Multiplier applied to the rewards for this collection.
2325
+ */
2326
+ multiplier?: number;
2327
+
2328
+ /**
2329
+ * Blockchain network of the collection.
2330
+ */
2331
+ network?:
2332
+ | 'abstract'
2333
+ | 'abstractTestnet'
2334
+ | 'apechain'
2335
+ | 'arbitrum'
2336
+ | 'avalanche'
2337
+ | 'avalancheFuji'
2338
+ | 'base'
2339
+ | 'baseSepolia'
2340
+ | 'berachainArtio'
2341
+ | 'binance'
2342
+ | 'bscTestnet'
2343
+ | 'campTestnet'
2344
+ | 'fantom'
2345
+ | 'fantomTestnet'
2346
+ | 'flowMainnet'
2347
+ | 'mainnet'
2348
+ | 'optimism'
2349
+ | 'polygon'
2350
+ | 'polygon_mumbai'
2351
+ | 'skaleNebula'
2352
+ | 'solana'
2353
+ | 'sophon'
2354
+ | 'sui'
2355
+ | 'superseed'
2356
+ | 'superseedSepolia'
2357
+ | 'vanar'
2358
+ | 'xai'
2359
+ | 'zksync'
2360
+ | 'sepolia'
2361
+ | 'optimism_sepolia'
2362
+ | 'arbitrumSepolia'
2363
+ | 'goerli'
2364
+ | 'optimism_goerli'
2365
+ | 'arbitrumGoerli'
2366
+ | 'basecamp';
2367
+ }
2368
+
2369
+ /**
2370
+ * Object containing details for the call-to-action.
2371
+ */
2372
+ export interface Cta {
2373
+ /**
2374
+ * Link for the call-to-action.
2375
+ */
2376
+ href?: string | null;
2377
+
2378
+ /**
2379
+ * Label for the call-to-action.
2380
+ */
2381
+ label?: string | null;
2382
+ }
2383
+
2384
+ export interface DiscordServersToJoin {
2385
+ /**
2386
+ * ID of the Discord server to join.
2387
+ */
2388
+ id?: string;
2389
+
2390
+ /**
2391
+ * Array of Discord channels to join.
2392
+ */
2393
+ channels?: Array<DiscordServersToJoin.Channel>;
2394
+
2395
+ /**
2396
+ * Array of roles to assign in the Discord server.
2397
+ */
2398
+ roles?: Array<DiscordServersToJoin.Role>;
2399
+ }
2400
+
2401
+ export namespace DiscordServersToJoin {
2402
+ export interface Channel {
2403
+ /**
2404
+ * ID of the Discord channel.
2405
+ */
2406
+ id?: string;
2407
+
2408
+ /**
2409
+ * Array of emojis used in the channel.
2410
+ */
2411
+ emojis?: Array<Channel.Emoji>;
2412
+
2413
+ /**
2414
+ * Phrase of text to be present in the discord message
2415
+ */
2416
+ text?: string;
2417
+ }
2418
+
2419
+ export namespace Channel {
2420
+ export interface Emoji {
2421
+ /**
2422
+ * ID of the emoji used in the channel.
2423
+ */
2424
+ id?: string;
2425
+ }
2426
+ }
2427
+
2428
+ export interface Role {
2429
+ /**
2430
+ * ID of the role in the Discord server.
2431
+ */
2432
+ id: string;
2433
+ }
2434
+ }
2435
+
2436
+ export interface DripQuestsToComplete {
2437
+ /**
2438
+ * ID of the drip quest to complete.
2439
+ */
2440
+ id: string;
2441
+ }
2442
+
2443
+ export interface Range {
2444
+ /**
2445
+ * Reward amount for this range.
2446
+ */
2447
+ amount: number;
2448
+
2449
+ /**
2450
+ * End value of the range.
2451
+ */
2452
+ endRange: number;
2453
+
2454
+ /**
2455
+ * Start value of the range.
2456
+ */
2457
+ startRange: number;
2458
+ }
2459
+
2460
+ /**
2461
+ * Object defining referral requirements.
2462
+ */
2463
+ export interface ReferralRequirements {
2464
+ /**
2465
+ * Flag indicating if achieving points is required.
2466
+ */
2467
+ achievePoints?: boolean | null;
2468
+
2469
+ /**
2470
+ * Flag indicating if completing the profile is required.
2471
+ */
2472
+ completeProfile?: boolean | null;
2473
+
2474
+ /**
2475
+ * Flag indicating if connecting Discord is required.
2476
+ */
2477
+ connectDiscord?: boolean | null;
2478
+
2479
+ /**
2480
+ * Flag indicating if connecting email is required.
2481
+ */
2482
+ connectEmail?: boolean | null;
2483
+
2484
+ /**
2485
+ * Flag indicating if connecting Twitter is required.
2486
+ */
2487
+ connectTwitter?: boolean | null;
2488
+
2489
+ points?: ReferralRequirements.Points | null;
2490
+ }
2491
+
2492
+ export namespace ReferralRequirements {
2493
+ export interface Points {
2494
+ /**
2495
+ * Points required for referral.
2496
+ */
2497
+ amount?: number | null;
2498
+
2499
+ /**
2500
+ * ID of the loyalty currency for referral.
2501
+ */
2502
+ loyaltyCurrecyId?: string | null;
2503
+ }
2504
+ }
2505
+
2506
+ /**
2507
+ * Object containing details of the associated smart contract.
2508
+ */
2509
+ export interface SmartContract {
2510
+ /**
2511
+ * ABI of the smart contract.
2512
+ */
2513
+ abi?: string | null;
2514
+
2515
+ /**
2516
+ * Mapping of addresses for the smart contract.
2517
+ */
2518
+ addressMapping?: string | null;
2519
+
2520
+ /**
2521
+ * Array of bonus details applied to the rule.
2522
+ */
2523
+ bonus?: Array<SmartContract.Bonus> | null;
2524
+
2525
+ /**
2526
+ * ID of the smart contract.
2527
+ */
2528
+ contractId?: string | null;
2529
+
2530
+ /**
2531
+ * Criteria to evaluate the smart contract event.
2532
+ */
2533
+ criteria?: 'everyEvent' | 'byParameter' | null;
2534
+
2535
+ /**
2536
+ * Time range applied to the rule.
2537
+ */
2538
+ customRange?: SmartContract.CustomRange | null;
2539
+
2540
+ /**
2541
+ * Event emitted by the smart contract.
2542
+ */
2543
+ event?: string | null;
2544
+
2545
+ /**
2546
+ * Maximum value allowed for the parameter.
2547
+ */
2548
+ max?: number | null;
2549
+
2550
+ /**
2551
+ * Array of parameters for the smart contract.
2552
+ */
2553
+ params?: Array<SmartContract.Param> | null;
2554
+
2555
+ /**
2556
+ * Flag indicating if a bonus is applied.
2557
+ */
2558
+ withBonus?: boolean | null;
2559
+
2560
+ /**
2561
+ * Flag indicating if a custom range is applied.
2562
+ */
2563
+ withCustomRange?: boolean | null;
2564
+
2565
+ /**
2566
+ * Flag indicating if a maximum limit is applied.
2567
+ */
2568
+ withMax?: boolean | null;
2569
+ }
2570
+
2571
+ export namespace SmartContract {
2572
+ export interface Bonus {
2573
+ /**
2574
+ * Amount of the bonus.
2575
+ */
2576
+ amount?: number | null;
2577
+
2578
+ /**
2579
+ * Number of times the bonus is applied.
2580
+ */
2581
+ count?: number | null;
2582
+ }
2583
+
2584
+ /**
2585
+ * Time range applied to the rule.
2586
+ */
2587
+ export interface CustomRange {
2588
+ /**
2589
+ * End time of the custom range.
2590
+ */
2591
+ endsAt?: string | null;
2592
+
2593
+ /**
2594
+ * Start time of the custom range.
2595
+ */
2596
+ startsAt?: string | null;
2597
+ }
2598
+
2599
+ export interface Param {
2600
+ /**
2601
+ * Condition to check for the parameter.
2602
+ */
2603
+ condition?: string | null;
2604
+
2605
+ /**
2606
+ * Name of the smart contract parameter.
2607
+ */
2608
+ name?: string | null;
2609
+
2610
+ /**
2611
+ * Value of the parameter.
2612
+ */
2613
+ value?: string | null;
2614
+ }
2615
+ }
2616
+
2617
+ export interface SnapshotProposal {
2618
+ /**
2619
+ * ID of the snapshot proposal.
2620
+ */
2621
+ id: string;
2622
+
2623
+ /**
2624
+ * Space associated with the snapshot proposal.
2625
+ */
2626
+ space: string;
2627
+ }
2628
+
2629
+ export interface StreakArray {
2630
+ /**
2631
+ * Reward amount for achieving the streak milestone.
2632
+ */
2633
+ streakAmount: number;
2634
+
2635
+ /**
2636
+ * Milestone required to achieve the streak.
2637
+ */
2638
+ streakMilestone: number;
2639
+ }
2640
+ }
1962
2641
  }
1963
2642
  }
1964
2643
 
@@ -2500,6 +3179,12 @@ export namespace RuleCreateParams {
2500
3179
  */
2501
3180
  trackAllContracts?: boolean | null;
2502
3181
 
3182
+ /**
3183
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
3184
+ * completed once the progress is 100%.
3185
+ */
3186
+ trackProgress?: boolean | null;
3187
+
2503
3188
  /**
2504
3189
  * URL of the associated Twitter account.
2505
3190
  */
@@ -3400,6 +4085,12 @@ export namespace RuleUpdateParams {
3400
4085
  */
3401
4086
  trackAllContracts?: boolean | null;
3402
4087
 
4088
+ /**
4089
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
4090
+ * completed once the progress is 100%.
4091
+ */
4092
+ trackProgress?: boolean | null;
4093
+
3403
4094
  /**
3404
4095
  * URL of the associated Twitter account.
3405
4096
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.42'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.44'; // x-release-please-version