@snagsolutions/sdk 0.1.0-alpha.19 → 0.1.0-alpha.191

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.
Files changed (272) hide show
  1. package/CHANGELOG.md +1552 -0
  2. package/README.md +13 -23
  3. package/core.d.ts +19 -5
  4. package/core.d.ts.map +1 -1
  5. package/core.js +24 -17
  6. package/core.js.map +1 -1
  7. package/core.mjs +24 -17
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +7 -4
  10. package/index.d.ts +7 -4
  11. package/index.d.ts.map +1 -1
  12. package/index.js +8 -4
  13. package/index.js.map +1 -1
  14. package/index.mjs +8 -4
  15. package/index.mjs.map +1 -1
  16. package/package.json +4 -5
  17. package/resource.d.ts +1 -1
  18. package/resource.d.ts.map +1 -1
  19. package/resource.js.map +1 -1
  20. package/resource.mjs.map +1 -1
  21. package/resources/assets.d.ts +16 -2
  22. package/resources/assets.d.ts.map +1 -1
  23. package/resources/assets.js +8 -0
  24. package/resources/assets.js.map +1 -1
  25. package/resources/assets.mjs +8 -0
  26. package/resources/assets.mjs.map +1 -1
  27. package/resources/auctions/auctions.d.ts +343 -0
  28. package/resources/auctions/auctions.d.ts.map +1 -0
  29. package/resources/auctions/auctions.js +72 -0
  30. package/resources/auctions/auctions.js.map +1 -0
  31. package/resources/auctions/auctions.mjs +45 -0
  32. package/resources/auctions/auctions.mjs.map +1 -0
  33. package/resources/auctions/index.d.ts +3 -0
  34. package/resources/auctions/index.d.ts.map +1 -0
  35. package/resources/auctions/index.js +9 -0
  36. package/resources/auctions/index.js.map +1 -0
  37. package/resources/auctions/index.mjs +4 -0
  38. package/resources/auctions/index.mjs.map +1 -0
  39. package/resources/auctions/website-user-attributes/index.d.ts +3 -0
  40. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
  41. package/resources/auctions/website-user-attributes/index.js +9 -0
  42. package/resources/auctions/website-user-attributes/index.js.map +1 -0
  43. package/resources/auctions/website-user-attributes/index.mjs +4 -0
  44. package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
  45. package/resources/auctions/website-user-attributes/values.d.ts +126 -0
  46. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
  47. package/resources/auctions/website-user-attributes/values.js +49 -0
  48. package/resources/auctions/website-user-attributes/values.js.map +1 -0
  49. package/resources/auctions/website-user-attributes/values.mjs +45 -0
  50. package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
  51. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
  52. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
  53. package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
  54. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
  55. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
  56. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
  57. package/resources/auctions/website-user-attributes.d.ts +2 -0
  58. package/resources/auctions/website-user-attributes.d.ts.map +1 -0
  59. package/resources/auctions/website-user-attributes.js +19 -0
  60. package/resources/auctions/website-user-attributes.js.map +1 -0
  61. package/resources/auctions/website-user-attributes.mjs +3 -0
  62. package/resources/auctions/website-user-attributes.mjs.map +1 -0
  63. package/resources/auctions.d.ts +1 -133
  64. package/resources/auctions.d.ts.map +1 -1
  65. package/resources/auctions.js +15 -22
  66. package/resources/auctions.js.map +1 -1
  67. package/resources/auctions.mjs +1 -20
  68. package/resources/auctions.mjs.map +1 -1
  69. package/resources/auth.d.ts +17 -4
  70. package/resources/auth.d.ts.map +1 -1
  71. package/resources/auth.js.map +1 -1
  72. package/resources/auth.mjs.map +1 -1
  73. package/resources/index.d.ts +2 -2
  74. package/resources/index.d.ts.map +1 -1
  75. package/resources/index.js +1 -1
  76. package/resources/index.js.map +1 -1
  77. package/resources/index.mjs +1 -1
  78. package/resources/index.mjs.map +1 -1
  79. package/resources/loyalty/account-streaks.d.ts +81 -0
  80. package/resources/loyalty/account-streaks.d.ts.map +1 -0
  81. package/resources/loyalty/account-streaks.js +24 -0
  82. package/resources/loyalty/account-streaks.js.map +1 -0
  83. package/resources/loyalty/account-streaks.mjs +20 -0
  84. package/resources/loyalty/account-streaks.mjs.map +1 -0
  85. package/resources/loyalty/accounts.d.ts +60 -16
  86. package/resources/loyalty/accounts.d.ts.map +1 -1
  87. package/resources/loyalty/accounts.js +14 -0
  88. package/resources/loyalty/accounts.js.map +1 -1
  89. package/resources/loyalty/accounts.mjs +14 -0
  90. package/resources/loyalty/accounts.mjs.map +1 -1
  91. package/resources/loyalty/badges.d.ts +666 -135
  92. package/resources/loyalty/badges.d.ts.map +1 -1
  93. package/resources/loyalty/badges.js +19 -1
  94. package/resources/loyalty/badges.js.map +1 -1
  95. package/resources/loyalty/badges.mjs +19 -1
  96. package/resources/loyalty/badges.mjs.map +1 -1
  97. package/resources/loyalty/currencies.d.ts +19 -0
  98. package/resources/loyalty/currencies.d.ts.map +1 -1
  99. package/resources/loyalty/currencies.js +19 -0
  100. package/resources/loyalty/currencies.js.map +1 -1
  101. package/resources/loyalty/currencies.mjs +19 -0
  102. package/resources/loyalty/currencies.mjs.map +1 -1
  103. package/resources/loyalty/index.d.ts +4 -4
  104. package/resources/loyalty/index.d.ts.map +1 -1
  105. package/resources/loyalty/index.js +5 -5
  106. package/resources/loyalty/index.js.map +1 -1
  107. package/resources/loyalty/index.mjs +3 -3
  108. package/resources/loyalty/index.mjs.map +1 -1
  109. package/resources/loyalty/loyalty.d.ts +11 -11
  110. package/resources/loyalty/loyalty.d.ts.map +1 -1
  111. package/resources/loyalty/loyalty.js +6 -6
  112. package/resources/loyalty/loyalty.js.map +1 -1
  113. package/resources/loyalty/loyalty.mjs +7 -7
  114. package/resources/loyalty/loyalty.mjs.map +1 -1
  115. package/resources/loyalty/multipliers.d.ts +39 -2
  116. package/resources/loyalty/multipliers.d.ts.map +1 -1
  117. package/resources/loyalty/multipliers.js +23 -0
  118. package/resources/loyalty/multipliers.js.map +1 -1
  119. package/resources/loyalty/multipliers.mjs +23 -0
  120. package/resources/loyalty/multipliers.mjs.map +1 -1
  121. package/resources/loyalty/questions-responses.d.ts +55 -4
  122. package/resources/loyalty/questions-responses.d.ts.map +1 -1
  123. package/resources/loyalty/questions-responses.js +9 -0
  124. package/resources/loyalty/questions-responses.js.map +1 -1
  125. package/resources/loyalty/questions-responses.mjs +9 -0
  126. package/resources/loyalty/questions-responses.mjs.map +1 -1
  127. package/resources/loyalty/questions.d.ts +52 -6
  128. package/resources/loyalty/questions.d.ts.map +1 -1
  129. package/resources/loyalty/questions.js +31 -0
  130. package/resources/loyalty/questions.js.map +1 -1
  131. package/resources/loyalty/questions.mjs +31 -0
  132. package/resources/loyalty/questions.mjs.map +1 -1
  133. package/resources/loyalty/rule-edits.d.ts +2630 -8
  134. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  135. package/resources/loyalty/rule-edits.js +14 -0
  136. package/resources/loyalty/rule-edits.js.map +1 -1
  137. package/resources/loyalty/rule-edits.mjs +14 -0
  138. package/resources/loyalty/rule-edits.mjs.map +1 -1
  139. package/resources/loyalty/rule-groups.d.ts +279 -64
  140. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  141. package/resources/loyalty/rule-groups.js +38 -2
  142. package/resources/loyalty/rule-groups.js.map +1 -1
  143. package/resources/loyalty/rule-groups.mjs +38 -2
  144. package/resources/loyalty/rule-groups.mjs.map +1 -1
  145. package/resources/loyalty/rules.d.ts +1902 -269
  146. package/resources/loyalty/rules.d.ts.map +1 -1
  147. package/resources/loyalty/rules.js +40 -9
  148. package/resources/loyalty/rules.js.map +1 -1
  149. package/resources/loyalty/rules.mjs +40 -9
  150. package/resources/loyalty/rules.mjs.map +1 -1
  151. package/resources/loyalty/transactions/index.d.ts +3 -0
  152. package/resources/loyalty/transactions/index.d.ts.map +1 -0
  153. package/resources/loyalty/transactions/index.js +9 -0
  154. package/resources/loyalty/transactions/index.js.map +1 -0
  155. package/resources/loyalty/transactions/index.mjs +4 -0
  156. package/resources/loyalty/transactions/index.mjs.map +1 -0
  157. package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
  158. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
  159. package/resources/loyalty/transactions/rule-statuses.js +30 -0
  160. package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
  161. package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
  162. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
  163. package/resources/loyalty/transactions/transactions.d.ts +410 -0
  164. package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
  165. package/resources/loyalty/transactions/transactions.js +76 -0
  166. package/resources/loyalty/transactions/transactions.js.map +1 -0
  167. package/resources/loyalty/transactions/transactions.mjs +49 -0
  168. package/resources/loyalty/transactions/transactions.mjs.map +1 -0
  169. package/resources/loyalty/transactions.d.ts +1 -248
  170. package/resources/loyalty/transactions.d.ts.map +1 -1
  171. package/resources/loyalty/transactions.js +15 -18
  172. package/resources/loyalty/transactions.js.map +1 -1
  173. package/resources/loyalty/transactions.mjs +1 -16
  174. package/resources/loyalty/transactions.mjs.map +1 -1
  175. package/resources/minting.d.ts +5 -5
  176. package/resources/minting.d.ts.map +1 -1
  177. package/resources/referral/referral.d.ts +11 -3
  178. package/resources/referral/referral.d.ts.map +1 -1
  179. package/resources/referral/referral.js +11 -5
  180. package/resources/referral/referral.js.map +1 -1
  181. package/resources/referral/referral.mjs +11 -5
  182. package/resources/referral/referral.mjs.map +1 -1
  183. package/resources/referral/users.d.ts +29 -3
  184. package/resources/referral/users.d.ts.map +1 -1
  185. package/resources/referral/users.js +12 -4
  186. package/resources/referral/users.js.map +1 -1
  187. package/resources/referral/users.mjs +12 -4
  188. package/resources/referral/users.mjs.map +1 -1
  189. package/resources/users/index.d.ts +1 -1
  190. package/resources/users/index.d.ts.map +1 -1
  191. package/resources/users/index.js.map +1 -1
  192. package/resources/users/index.mjs.map +1 -1
  193. package/resources/users/metadatas.d.ts +34 -3
  194. package/resources/users/metadatas.d.ts.map +1 -1
  195. package/resources/users/metadatas.js.map +1 -1
  196. package/resources/users/metadatas.mjs.map +1 -1
  197. package/resources/users/users.d.ts +184 -35
  198. package/resources/users/users.d.ts.map +1 -1
  199. package/resources/users/users.js +58 -1
  200. package/resources/users/users.js.map +1 -1
  201. package/resources/users/users.mjs +58 -1
  202. package/resources/users/users.mjs.map +1 -1
  203. package/resources/websites/website-collections.d.ts +22 -1
  204. package/resources/websites/website-collections.d.ts.map +1 -1
  205. package/resources/websites/website-collections.js +21 -0
  206. package/resources/websites/website-collections.js.map +1 -1
  207. package/resources/websites/website-collections.mjs +21 -0
  208. package/resources/websites/website-collections.mjs.map +1 -1
  209. package/resources/websites/website-user-roles.d.ts +24 -1
  210. package/resources/websites/website-user-roles.d.ts.map +1 -1
  211. package/resources/websites/website-user-roles.js +23 -0
  212. package/resources/websites/website-user-roles.js.map +1 -1
  213. package/resources/websites/website-user-roles.mjs +23 -0
  214. package/resources/websites/website-user-roles.mjs.map +1 -1
  215. package/resources/websites/websites.d.ts +12 -0
  216. package/resources/websites/websites.d.ts.map +1 -1
  217. package/resources/websites/websites.js +7 -0
  218. package/resources/websites/websites.js.map +1 -1
  219. package/resources/websites/websites.mjs +7 -0
  220. package/resources/websites/websites.mjs.map +1 -1
  221. package/src/core.ts +39 -16
  222. package/src/index.ts +31 -2
  223. package/src/resource.ts +1 -1
  224. package/src/resources/assets.ts +18 -3
  225. package/src/resources/auctions/auctions.ts +528 -0
  226. package/src/resources/auctions/index.ts +19 -0
  227. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  228. package/src/resources/auctions/website-user-attributes/values.ts +170 -0
  229. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
  230. package/src/resources/auctions/website-user-attributes.ts +3 -0
  231. package/src/resources/auctions.ts +1 -207
  232. package/src/resources/auth.ts +21 -5
  233. package/src/resources/index.ts +12 -1
  234. package/src/resources/loyalty/account-streaks.ts +110 -0
  235. package/src/resources/loyalty/accounts.ts +65 -18
  236. package/src/resources/loyalty/badges.ts +790 -146
  237. package/src/resources/loyalty/currencies.ts +19 -0
  238. package/src/resources/loyalty/index.ts +19 -3
  239. package/src/resources/loyalty/loyalty.ts +39 -15
  240. package/src/resources/loyalty/multipliers.ts +43 -4
  241. package/src/resources/loyalty/questions-responses.ts +64 -4
  242. package/src/resources/loyalty/questions.ts +56 -6
  243. package/src/resources/loyalty/rule-edits.ts +3830 -100
  244. package/src/resources/loyalty/rule-groups.ts +491 -76
  245. package/src/resources/loyalty/rules.ts +2986 -310
  246. package/src/resources/loyalty/transactions/index.ts +18 -0
  247. package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
  248. package/src/resources/loyalty/transactions/transactions.ts +683 -0
  249. package/src/resources/loyalty/transactions.ts +1 -440
  250. package/src/resources/minting.ts +25 -5
  251. package/src/resources/referral/referral.ts +13 -11
  252. package/src/resources/referral/users.ts +43 -5
  253. package/src/resources/users/index.ts +4 -0
  254. package/src/resources/users/metadatas.ts +57 -3
  255. package/src/resources/users/users.ts +249 -38
  256. package/src/resources/websites/website-collections.ts +42 -1
  257. package/src/resources/websites/website-user-roles.ts +25 -1
  258. package/src/resources/websites/websites.ts +12 -0
  259. package/src/version.ts +1 -1
  260. package/version.d.ts +1 -1
  261. package/version.d.ts.map +1 -1
  262. package/version.js +1 -1
  263. package/version.js.map +1 -1
  264. package/version.mjs +1 -1
  265. package/version.mjs.map +1 -1
  266. package/resources/loyalty/rule-chains.d.ts +0 -34
  267. package/resources/loyalty/rule-chains.d.ts.map +0 -1
  268. package/resources/loyalty/rule-chains.js +0 -15
  269. package/resources/loyalty/rule-chains.js.map +0 -1
  270. package/resources/loyalty/rule-chains.mjs +0 -11
  271. package/resources/loyalty/rule-chains.mjs.map +0 -1
  272. package/src/resources/loyalty/rule-chains.ts +0 -45
@@ -1,17 +1,75 @@
1
1
  import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
3
  export declare class RuleGroups extends APIResource {
4
+ /**
5
+ * Create a new loyalty rule groups
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const response =
10
+ * await client.loyalty.ruleGroups.createRuleGroup({
11
+ * name: 'name',
12
+ * organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
13
+ * websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
14
+ * });
15
+ * ```
16
+ */
17
+ createRuleGroup(body: RuleGroupCreateRuleGroupParams, options?: Core.RequestOptions): Core.APIPromise<RuleGroupCreateRuleGroupResponse>;
18
+ /**
19
+ * Delete loyalty rule group by ID
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response =
24
+ * await client.loyalty.ruleGroups.deleteRuleGroup(
25
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
26
+ * );
27
+ * ```
28
+ */
29
+ deleteRuleGroup(id: string, options?: Core.RequestOptions): Core.APIPromise<unknown>;
4
30
  /**
5
31
  * Retrieve configured loyalty rule groups
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const response =
36
+ * await client.loyalty.ruleGroups.getRuleGroups();
37
+ * ```
6
38
  */
7
- get(query?: RuleGroupGetParams, options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetResponse>;
8
- get(options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetResponse>;
39
+ getRuleGroups(query?: RuleGroupGetRuleGroupsParams, options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
40
+ getRuleGroups(options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
41
+ /**
42
+ * Update loyalty rule group by ID
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const response =
47
+ * await client.loyalty.ruleGroups.updateRuleGroup(
48
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
49
+ * );
50
+ * ```
51
+ */
52
+ updateRuleGroup(id: string, body?: RuleGroupUpdateRuleGroupParams, options?: Core.RequestOptions): Core.APIPromise<RuleGroupUpdateRuleGroupResponse>;
53
+ updateRuleGroup(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleGroupUpdateRuleGroupResponse>;
9
54
  }
10
- export interface RuleGroupGetResponse {
11
- data: Array<RuleGroupGetResponse.Data>;
55
+ export interface RuleGroupCreateRuleGroupResponse {
56
+ id: string;
57
+ createdAt: string;
58
+ isCollapsible: boolean;
59
+ isRequired: boolean;
60
+ name: string;
61
+ organizationId: string;
62
+ sortId: number;
63
+ subTitle: string | null;
64
+ updatedAt: string;
65
+ websiteId: string;
66
+ }
67
+ export type RuleGroupDeleteRuleGroupResponse = unknown;
68
+ export interface RuleGroupGetRuleGroupsResponse {
69
+ data: Array<RuleGroupGetRuleGroupsResponse.Data>;
12
70
  hasNextPage: boolean;
13
71
  }
14
- export declare namespace RuleGroupGetResponse {
72
+ export declare namespace RuleGroupGetRuleGroupsResponse {
15
73
  /**
16
74
  * Schema for a get loyalty rule groups response
17
75
  */
@@ -40,16 +98,27 @@ export declare namespace RuleGroupGetResponse {
40
98
  frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
41
99
  hideInUi: boolean;
42
100
  isRequired: boolean;
101
+ loyaltyBadge: LoyaltyRule.LoyaltyBadge;
43
102
  loyaltyCurrencyId: string;
44
103
  mediaUrl: string | null;
45
104
  metadata: LoyaltyRule.Metadata;
46
105
  name: string;
47
- rewardType: 'points' | 'multiplier';
106
+ rewardType: 'points' | 'multiplier' | 'badge';
48
107
  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';
108
+ 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' | 'steam_wishlist' | 'liquidity_uniswap_v2' | 'liquidity_uniswap_v3' | 'points_airdrop' | 'youtube_subscribers' | 'youtube_comment' | 'shopify_spend' | 'swap' | 'tiktok_post' | 'post_impressions' | 'discord_join' | 'connected_youtube' | 'stratus_function' | 'connected_tiktok' | 'tiktok_follow';
50
109
  }
51
110
  namespace LoyaltyRule {
111
+ interface LoyaltyBadge {
112
+ id: string;
113
+ description: string | null;
114
+ imageUrl: string | null;
115
+ name: string;
116
+ }
52
117
  interface Metadata {
118
+ /**
119
+ * Number of tokens per batch.
120
+ */
121
+ batchSize?: number | null;
53
122
  /**
54
123
  * Text displayed on the action button.
55
124
  */
@@ -69,7 +138,7 @@ export declare namespace RuleGroupGetResponse {
69
138
  /**
70
139
  * Text to check in the Twitter post, username, or bio.
71
140
  */
72
- checkText?: string | null;
141
+ checkText?: string | Array<string> | null;
73
142
  /**
74
143
  * Array of collections associated with the rule.
75
144
  */
@@ -77,7 +146,13 @@ export declare namespace RuleGroupGetResponse {
77
146
  /**
78
147
  * Conditions for completing the profile.
79
148
  */
80
- completeProfileConditions?: Record<string, boolean> | null;
149
+ completeProfileConditions?: {
150
+ [key: string]: boolean;
151
+ } | null;
152
+ /**
153
+ * Description of the external rule condition (only for external rules)
154
+ */
155
+ conditionDescription?: string;
81
156
  /**
82
157
  * Object containing details for the call-to-action.
83
158
  */
@@ -86,6 +161,10 @@ export declare namespace RuleGroupGetResponse {
86
161
  * API key for custom rewards integration.
87
162
  */
88
163
  customRewardsApiKey?: string;
164
+ /**
165
+ * Flag indicating if the rule should use direct RPC to get the balance of tokens.
166
+ */
167
+ directRpc?: boolean;
89
168
  /**
90
169
  * Array of Discord servers, channels, and roles to join.
91
170
  */
@@ -106,6 +185,10 @@ export declare namespace RuleGroupGetResponse {
106
185
  * Flag indicating whether the verified multiplier is enabled.
107
186
  */
108
187
  enableVerifiedMultiplier?: boolean;
188
+ /**
189
+ * Type of ERC20 token for the loyalty rule.
190
+ */
191
+ erc20Type?: 'erc20' | 'native';
109
192
  /**
110
193
  * Fill source of the order for the token sale
111
194
  */
@@ -122,10 +205,6 @@ export declare namespace RuleGroupGetResponse {
122
205
  * Indicates if the item has never been sold.
123
206
  */
124
207
  hasNeverSold?: boolean;
125
- /**
126
- * Flag indicating whether the order source is included.
127
- */
128
- hasOrderSource?: boolean;
129
208
  /**
130
209
  * Indicates if the full royalty has been paid for items.
131
210
  */
@@ -142,10 +221,18 @@ export declare namespace RuleGroupGetResponse {
142
221
  * URL of the image associated with the rule.
143
222
  */
144
223
  imageUrl?: string | null;
224
+ /**
225
+ * If enabled, the first transaction done on the platform will complete this rule
226
+ */
227
+ isCheckInOnEveryTxn?: boolean;
145
228
  /**
146
229
  * Indicates if the multiplier has been applied to rewards.
147
230
  */
148
231
  isMultiplierApplied?: boolean;
232
+ /**
233
+ * Flag indicating if the rule is restricted to new users.
234
+ */
235
+ isRestrictedToNewUsers?: boolean;
149
236
  /**
150
237
  * Flag indicating if rewards are applied retroactively.
151
238
  */
@@ -158,6 +245,10 @@ export declare namespace RuleGroupGetResponse {
158
245
  * Optional link associated with the metadata.
159
246
  */
160
247
  link?: string | null;
248
+ /**
249
+ * Liquidity pool details.
250
+ */
251
+ liquidity?: Metadata.Liquidity;
161
252
  /**
162
253
  * Maximum quantity constraint for token holding.
163
254
  */
@@ -190,14 +281,22 @@ export declare namespace RuleGroupGetResponse {
190
281
  * give points for only one token ownership per contract
191
282
  */
192
283
  onlyRewardSingleTokenOwnership?: boolean | null;
193
- /**
194
- * Order source of the order for the token sale
195
- */
196
- orderSource?: string;
197
284
  /**
198
285
  * Promotional code associated with the rule.
199
286
  */
200
287
  promoCode?: string;
288
+ /**
289
+ * URL of the CSV file containing promo codes.
290
+ */
291
+ promoCodeCsvUrl?: string;
292
+ /**
293
+ * Numbers of the promotional code to be generated.
294
+ */
295
+ promoCodeLength?: number | null;
296
+ /**
297
+ * Type of the promotional code.
298
+ */
299
+ promoCodeType?: 'code' | 'csv' | 'generate';
201
300
  /**
202
301
  * Array defining ranges and corresponding rewards.
203
302
  */
@@ -210,10 +309,51 @@ export declare namespace RuleGroupGetResponse {
210
309
  * Lump sum reward given to a referrer.
211
310
  */
212
311
  referrerReward?: number | null;
312
+ /**
313
+ * Loyalty currency ID of the referrer reward.
314
+ */
315
+ referrerRewardLoyaltyCurrencyId?: string | null;
316
+ /**
317
+ * Flag indicating if the post link is required.
318
+ */
319
+ requirePostLink?: boolean | null;
320
+ /**
321
+ * Flag indicating if media metadata is required.
322
+ */
323
+ requirePostMediaLink?: boolean | null;
324
+ /**
325
+ * Flag indicating if the rule can also reward badges per range.
326
+ */
327
+ rewardBadgePerRange?: boolean;
328
+ /**
329
+ * Flag indicating if the reward is rewarded by batch.
330
+ */
331
+ rewardByBatch?: boolean | null;
332
+ /**
333
+ * Criteria to evaluate the reward.
334
+ */
335
+ rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
336
+ /**
337
+ * Flag indicating if the reward is rewarded per action.
338
+ */
339
+ rewardPerAction?: boolean | null;
213
340
  /**
214
341
  * Flag indicating if rewards are given per impression.
215
342
  */
216
343
  rewardPerImpression?: boolean | null;
344
+ /**
345
+ * Flag indicating if the rule should reward based on value of traded tokens
346
+ * instead of count.
347
+ */
348
+ rewardPerValue?: boolean;
349
+ /**
350
+ * Wallet address of the user can only be used if userId is not provided
351
+ */
352
+ royaltyAddress?: string;
353
+ /**
354
+ * Royalty percentage of the item.
355
+ */
356
+ royaltyPercentage?: number;
217
357
  /**
218
358
  * Currency associated with sales.
219
359
  */
@@ -237,7 +377,7 @@ export declare namespace RuleGroupGetResponse {
237
377
  /**
238
378
  * Social media platform associated with the rule.
239
379
  */
240
- socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | null;
380
+ socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
241
381
  /**
242
382
  * URL of the social platform's logo.
243
383
  */
@@ -246,10 +386,18 @@ export declare namespace RuleGroupGetResponse {
246
386
  * Name of the social platform.
247
387
  */
248
388
  socialPlatformName?: string | null;
389
+ /**
390
+ * ID of the Steam app.
391
+ */
392
+ steamAppId?: string | null;
249
393
  /**
250
394
  * Array of streak milestones and corresponding rewards.
251
395
  */
252
396
  streakArray?: Array<Metadata.StreakArray> | null;
397
+ /**
398
+ * Metadata for swap loyalty rules
399
+ */
400
+ swap?: Metadata.Swap;
253
401
  /**
254
402
  * ID of the Telegram channel.
255
403
  */
@@ -262,6 +410,11 @@ export declare namespace RuleGroupGetResponse {
262
410
  * Flag indicating if all contracts are tracked.
263
411
  */
264
412
  trackAllContracts?: boolean | null;
413
+ /**
414
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
415
+ * completed once the progress is 100%.
416
+ */
417
+ trackProgress?: boolean | null;
265
418
  /**
266
419
  * URL of the associated Twitter account.
267
420
  */
@@ -297,7 +450,15 @@ export declare namespace RuleGroupGetResponse {
297
450
  /**
298
451
  * Type of wallet associated with the rule.
299
452
  */
300
- walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
453
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | 'agw' | 'flow_cadence' | 'substrate' | null;
454
+ /**
455
+ * ID of the Youtube channel.
456
+ */
457
+ youtubeChannelId?: string | null;
458
+ /**
459
+ * ID of the Youtube video.
460
+ */
461
+ youtubeVideoId?: string | null;
301
462
  }
302
463
  namespace Metadata {
303
464
  interface Collection {
@@ -312,7 +473,7 @@ export declare namespace RuleGroupGetResponse {
312
473
  /**
313
474
  * Blockchain network of the collection.
314
475
  */
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';
476
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
316
477
  }
317
478
  /**
318
479
  * Object containing details for the call-to-action.
@@ -377,6 +538,49 @@ export declare namespace RuleGroupGetResponse {
377
538
  */
378
539
  id: string;
379
540
  }
541
+ /**
542
+ * Liquidity pool details.
543
+ */
544
+ interface Liquidity {
545
+ /**
546
+ * Calculation type of the liquidity pool.
547
+ */
548
+ calculationType?: 'fixed' | 'custom';
549
+ /**
550
+ * Custom function to calculate the the reward amount based on the liquidity
551
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
552
+ * USD.
553
+ */
554
+ customFunction?: string;
555
+ /**
556
+ * Liquidity provided per day in USD
557
+ */
558
+ liquidityPerDay?: number;
559
+ /**
560
+ * Blockchain network of the liquidity pool.
561
+ */
562
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
563
+ /**
564
+ * Indicates if only in-range liquidity is rewarded.
565
+ */
566
+ onlyRewardInRangeLiquidity?: boolean;
567
+ /**
568
+ * Array of liquidity pools associated with the rule.
569
+ */
570
+ pools?: Array<Liquidity.Pool>;
571
+ /**
572
+ * Protocol of the liquidity pool.
573
+ */
574
+ protocol?: string;
575
+ }
576
+ namespace Liquidity {
577
+ interface Pool {
578
+ /**
579
+ * Unique identifier of the liquidity pool.
580
+ */
581
+ id: string;
582
+ }
583
+ }
380
584
  interface Range {
381
585
  /**
382
586
  * Reward amount for this range.
@@ -390,6 +594,14 @@ export declare namespace RuleGroupGetResponse {
390
594
  * Start value of the range.
391
595
  */
392
596
  startRange: number;
597
+ /**
598
+ * ID of the loyalty badge for this range.
599
+ */
600
+ loyaltyBadgeId?: string;
601
+ /**
602
+ * Amount of the loyalty multiplier for this range.
603
+ */
604
+ loyaltyMultiplierAmount?: number;
393
605
  }
394
606
  /**
395
607
  * Object defining referral requirements.
@@ -433,18 +645,14 @@ export declare namespace RuleGroupGetResponse {
433
645
  * Object containing details of the associated smart contract.
434
646
  */
435
647
  interface SmartContract {
436
- /**
437
- * ABI of the smart contract.
438
- */
439
- abi?: string | null;
440
648
  /**
441
649
  * Mapping of addresses for the smart contract.
442
650
  */
443
651
  addressMapping?: string | null;
444
652
  /**
445
- * Array of bonus details applied to the rule.
653
+ * Object containing details of the amount multiplier from the event.
446
654
  */
447
- bonus?: Array<SmartContract.Bonus> | null;
655
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
448
656
  /**
449
657
  * ID of the smart contract.
450
658
  */
@@ -453,58 +661,28 @@ export declare namespace RuleGroupGetResponse {
453
661
  * Criteria to evaluate the smart contract event.
454
662
  */
455
663
  criteria?: 'everyEvent' | 'byParameter' | null;
456
- /**
457
- * Time range applied to the rule.
458
- */
459
- customRange?: SmartContract.CustomRange | null;
460
664
  /**
461
665
  * Event emitted by the smart contract.
462
666
  */
463
667
  event?: string | null;
464
- /**
465
- * Maximum value allowed for the parameter.
466
- */
467
- max?: number | null;
468
668
  /**
469
669
  * Array of parameters for the smart contract.
470
670
  */
471
671
  params?: Array<SmartContract.Param> | null;
472
672
  /**
473
- * Flag indicating if a bonus is applied.
474
- */
475
- withBonus?: boolean | null;
476
- /**
477
- * Flag indicating if a custom range is applied.
673
+ * Type of the smart contract interaction.
478
674
  */
479
- withCustomRange?: boolean | null;
480
- /**
481
- * Flag indicating if a maximum limit is applied.
482
- */
483
- withMax?: boolean | null;
675
+ type?: 'function' | 'event' | null;
484
676
  }
485
677
  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
678
  /**
497
- * Time range applied to the rule.
679
+ * Object containing details of the amount multiplier from the event.
498
680
  */
499
- interface CustomRange {
681
+ interface AmountMultiplier {
500
682
  /**
501
- * End time of the custom range.
683
+ * Mapping of the value for the smart contract.
502
684
  */
503
- endsAt?: string | null;
504
- /**
505
- * Start time of the custom range.
506
- */
507
- startsAt?: string | null;
685
+ valueMapping?: string | null;
508
686
  }
509
687
  interface Param {
510
688
  /**
@@ -541,19 +719,56 @@ export declare namespace RuleGroupGetResponse {
541
719
  */
542
720
  streakMilestone: number;
543
721
  }
722
+ /**
723
+ * Metadata for swap loyalty rules
724
+ */
725
+ interface Swap {
726
+ provider?: 'any' | 'relay' | 'lifi';
727
+ relayReferrerId?: string;
728
+ requireCrossChainSwap?: boolean;
729
+ swappedToChain?: 'any' | number | string;
730
+ swappedToTokens?: Array<Swap.SwappedToToken>;
731
+ tokenMode?: 'any' | 'specific';
732
+ trackTokenAmount?: boolean;
733
+ }
734
+ namespace Swap {
735
+ interface SwappedToToken {
736
+ address: string;
737
+ chainId: string;
738
+ }
739
+ }
544
740
  }
545
741
  }
546
742
  }
547
743
  }
548
744
  }
549
- export interface RuleGroupGetParams {
745
+ export interface RuleGroupUpdateRuleGroupResponse {
746
+ isCollapsible?: boolean;
747
+ name?: string;
748
+ subTitle?: string;
749
+ }
750
+ export interface RuleGroupCreateRuleGroupParams {
751
+ name: string;
752
+ organizationId: string;
753
+ websiteId: string;
754
+ isCollapsible?: boolean;
755
+ isRequired?: boolean;
756
+ sortId?: number;
757
+ subTitle?: string;
758
+ }
759
+ export interface RuleGroupGetRuleGroupsParams {
550
760
  excludeHidden?: string;
551
761
  limit?: number;
552
762
  organizationId?: string;
553
763
  startingAfter?: string;
554
764
  websiteId?: string;
555
765
  }
766
+ export interface RuleGroupUpdateRuleGroupParams {
767
+ isCollapsible?: boolean;
768
+ name?: string | null;
769
+ subtitle?: string | null;
770
+ }
556
771
  export declare namespace RuleGroups {
557
- export { type RuleGroupGetResponse as RuleGroupGetResponse, type RuleGroupGetParams as RuleGroupGetParams };
772
+ export { type RuleGroupCreateRuleGroupResponse as RuleGroupCreateRuleGroupResponse, type RuleGroupDeleteRuleGroupResponse as RuleGroupDeleteRuleGroupResponse, type RuleGroupGetRuleGroupsResponse as RuleGroupGetRuleGroupsResponse, type RuleGroupUpdateRuleGroupResponse as RuleGroupUpdateRuleGroupResponse, type RuleGroupCreateRuleGroupParams as RuleGroupCreateRuleGroupParams, type RuleGroupGetRuleGroupsParams as RuleGroupGetRuleGroupsParams, type RuleGroupUpdateRuleGroupParams as RuleGroupUpdateRuleGroupParams, };
558
773
  }
559
774
  //# source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MAAM,WAAW,8BAA8B;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -5,12 +5,48 @@ exports.RuleGroups = void 0;
5
5
  const resource_1 = require("../../resource.js");
6
6
  const core_1 = require("../../core.js");
7
7
  class RuleGroups extends resource_1.APIResource {
8
- get(query = {}, options) {
8
+ /**
9
+ * Create a new loyalty rule groups
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const response =
14
+ * await client.loyalty.ruleGroups.createRuleGroup({
15
+ * name: 'name',
16
+ * organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
17
+ * websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
18
+ * });
19
+ * ```
20
+ */
21
+ createRuleGroup(body, options) {
22
+ return this._client.post('/api/loyalty/rule_groups/create', { body, ...options });
23
+ }
24
+ /**
25
+ * Delete loyalty rule group by ID
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const response =
30
+ * await client.loyalty.ruleGroups.deleteRuleGroup(
31
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
32
+ * );
33
+ * ```
34
+ */
35
+ deleteRuleGroup(id, options) {
36
+ return this._client.delete(`/api/loyalty/rule_groups/${id}`, options);
37
+ }
38
+ getRuleGroups(query = {}, options) {
9
39
  if ((0, core_1.isRequestOptions)(query)) {
10
- return this.get({}, query);
40
+ return this.getRuleGroups({}, query);
11
41
  }
12
42
  return this._client.get('/api/loyalty/rule_groups', { query, ...options });
13
43
  }
44
+ updateRuleGroup(id, body = {}, options) {
45
+ if ((0, core_1.isRequestOptions)(body)) {
46
+ return this.updateRuleGroup(id, {}, body);
47
+ }
48
+ return this._client.post(`/api/loyalty/rule_groups/${id}`, { body, ...options });
49
+ }
14
50
  }
15
51
  exports.RuleGroups = RuleGroups;
16
52
  //# sourceMappingURL=rule-groups.js.map