@openora/core 0.4.1-canary.39 → 0.4.1-canary.41

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 (248) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/admin-console/contract/index.d.ts +2 -0
  3. package/dist/admin-console/contract/index.d.ts.map +1 -1
  4. package/dist/admin-console/router/index.d.ts +1 -0
  5. package/dist/admin-console/router/index.d.ts.map +1 -1
  6. package/dist/admin-console/service/backoffice.service.d.ts +1 -1
  7. package/dist/audit/plugin.d.ts.map +1 -1
  8. package/dist/audit/plugin.js +48 -1
  9. package/dist/audit/plugin.js.map +1 -1
  10. package/dist/common/errors/errors.classes.js +3 -3
  11. package/dist/common/errors/errors.classes.js.map +1 -1
  12. package/dist/common/errors/errors.mapper.js +1 -1
  13. package/dist/common/errors/errors.mapper.js.map +1 -1
  14. package/dist/compliance/__tests__/hmac-kyc-webhook-verifier.test.js +66 -12
  15. package/dist/compliance/__tests__/hmac-kyc-webhook-verifier.test.js.map +1 -1
  16. package/dist/compliance/__tests__/kyc-admin.router.test.d.ts +2 -0
  17. package/dist/compliance/__tests__/kyc-admin.router.test.d.ts.map +1 -0
  18. package/dist/compliance/__tests__/kyc-admin.router.test.js +191 -0
  19. package/dist/compliance/__tests__/kyc-admin.router.test.js.map +1 -0
  20. package/dist/compliance/__tests__/kyc-webhook.router.test.d.ts +2 -0
  21. package/dist/compliance/__tests__/kyc-webhook.router.test.d.ts.map +1 -0
  22. package/dist/compliance/__tests__/kyc-webhook.router.test.js +148 -0
  23. package/dist/compliance/__tests__/kyc-webhook.router.test.js.map +1 -0
  24. package/dist/compliance/__tests__/kyc.service.test.js +16 -10
  25. package/dist/compliance/__tests__/kyc.service.test.js.map +1 -1
  26. package/dist/compliance/__tests__/rg.router.test.js +5 -1
  27. package/dist/compliance/__tests__/rg.router.test.js.map +1 -1
  28. package/dist/compliance/adapters/hmac-kyc-webhook-verifier.d.ts +16 -3
  29. package/dist/compliance/adapters/hmac-kyc-webhook-verifier.d.ts.map +1 -1
  30. package/dist/compliance/adapters/hmac-kyc-webhook-verifier.js +47 -5
  31. package/dist/compliance/adapters/hmac-kyc-webhook-verifier.js.map +1 -1
  32. package/dist/compliance/contract/index.d.ts +312 -0
  33. package/dist/compliance/contract/index.d.ts.map +1 -1
  34. package/dist/compliance/contract/index.js +50 -1
  35. package/dist/compliance/contract/index.js.map +1 -1
  36. package/dist/compliance/drizzle/migrations/0002_condemned_monster_badoon.sql +3 -0
  37. package/dist/compliance/drizzle/migrations/0003_public_spirit.sql +1 -0
  38. package/dist/compliance/drizzle/migrations/meta/0002_snapshot.json +673 -0
  39. package/dist/compliance/drizzle/migrations/meta/0003_snapshot.json +679 -0
  40. package/dist/compliance/drizzle/migrations/meta/_journal.json +14 -0
  41. package/dist/compliance/plugin.d.ts.map +1 -1
  42. package/dist/compliance/plugin.js +23 -3
  43. package/dist/compliance/plugin.js.map +1 -1
  44. package/dist/compliance/router/index.d.ts +186 -2
  45. package/dist/compliance/router/index.d.ts.map +1 -1
  46. package/dist/compliance/router/index.js +52 -3
  47. package/dist/compliance/router/index.js.map +1 -1
  48. package/dist/compliance/schema/index.d.ts +65 -3
  49. package/dist/compliance/schema/index.d.ts.map +1 -1
  50. package/dist/compliance/schema/index.js +8 -0
  51. package/dist/compliance/schema/index.js.map +1 -1
  52. package/dist/compliance/service/kyc.service.d.ts +153 -8
  53. package/dist/compliance/service/kyc.service.d.ts.map +1 -1
  54. package/dist/compliance/service/kyc.service.js +264 -32
  55. package/dist/compliance/service/kyc.service.js.map +1 -1
  56. package/dist/contracts/adapters/audit.d.ts +1 -1
  57. package/dist/contracts/adapters/audit.d.ts.map +1 -1
  58. package/dist/contracts/adapters/audit.js.map +1 -1
  59. package/dist/contracts/adapters/identity-reader.d.ts +9 -3
  60. package/dist/contracts/adapters/identity-reader.d.ts.map +1 -1
  61. package/dist/contracts/adapters/identity-reader.js.map +1 -1
  62. package/dist/contracts/adapters/index.d.ts +4 -2
  63. package/dist/contracts/adapters/index.d.ts.map +1 -1
  64. package/dist/contracts/adapters/index.js +2 -1
  65. package/dist/contracts/adapters/index.js.map +1 -1
  66. package/dist/contracts/adapters/kyc.d.ts +90 -5
  67. package/dist/contracts/adapters/kyc.d.ts.map +1 -1
  68. package/dist/contracts/adapters/kyc.js +23 -0
  69. package/dist/contracts/adapters/kyc.js.map +1 -1
  70. package/dist/contracts/adapters/tag-evaluation-commands.d.ts +10 -0
  71. package/dist/contracts/adapters/tag-evaluation-commands.d.ts.map +1 -0
  72. package/dist/contracts/adapters/tag-evaluation-commands.js +11 -0
  73. package/dist/contracts/adapters/tag-evaluation-commands.js.map +1 -0
  74. package/dist/contracts/adapters/wallet-reader.d.ts +8 -0
  75. package/dist/contracts/adapters/wallet-reader.d.ts.map +1 -1
  76. package/dist/contracts/adapters/wallet-reader.js.map +1 -1
  77. package/dist/contracts/schemas/__tests__/events.test.js +1 -1
  78. package/dist/contracts/schemas/__tests__/player-schemas.test.d.ts +2 -0
  79. package/dist/contracts/schemas/__tests__/player-schemas.test.d.ts.map +1 -0
  80. package/dist/contracts/schemas/__tests__/player-schemas.test.js +30 -0
  81. package/dist/contracts/schemas/__tests__/player-schemas.test.js.map +1 -0
  82. package/dist/contracts/schemas/events.d.ts +84 -0
  83. package/dist/contracts/schemas/events.d.ts.map +1 -1
  84. package/dist/contracts/schemas/events.js +24 -2
  85. package/dist/contracts/schemas/events.js.map +1 -1
  86. package/dist/contracts/schemas/platform-config.d.ts +13 -1
  87. package/dist/contracts/schemas/platform-config.d.ts.map +1 -1
  88. package/dist/contracts/schemas/player.d.ts +36 -3
  89. package/dist/contracts/schemas/player.d.ts.map +1 -1
  90. package/dist/contracts/schemas/player.js +14 -0
  91. package/dist/contracts/schemas/player.js.map +1 -1
  92. package/dist/contracts/schemas/tag.d.ts +85 -1
  93. package/dist/contracts/schemas/tag.d.ts.map +1 -1
  94. package/dist/contracts/schemas/tag.js +12 -0
  95. package/dist/contracts/schemas/tag.js.map +1 -1
  96. package/dist/engagement/notifications/contract/index.d.ts +5 -1
  97. package/dist/engagement/notifications/contract/index.d.ts.map +1 -1
  98. package/dist/engagement/notifications/contract/index.js +5 -1
  99. package/dist/engagement/notifications/contract/index.js.map +1 -1
  100. package/dist/engagement/notifications/plugin.d.ts.map +1 -1
  101. package/dist/engagement/notifications/plugin.js +43 -3
  102. package/dist/engagement/notifications/plugin.js.map +1 -1
  103. package/dist/engagement/notifications/router/index.d.ts +1 -0
  104. package/dist/engagement/notifications/router/index.d.ts.map +1 -1
  105. package/dist/iam/service/iam.service.d.ts +1 -1
  106. package/dist/pam/identity/__tests__/admin-user-directory.test.js +1 -1
  107. package/dist/pam/identity/adapters/identity-reader.service.d.ts +6 -4
  108. package/dist/pam/identity/adapters/identity-reader.service.d.ts.map +1 -1
  109. package/dist/pam/identity/adapters/identity-reader.service.js +19 -1
  110. package/dist/pam/identity/adapters/identity-reader.service.js.map +1 -1
  111. package/dist/pam/identity/admin-user-directory.d.ts +1 -1
  112. package/dist/pam/identity/admin-user-directory.d.ts.map +1 -1
  113. package/dist/pam/identity/admin-user-directory.js +6 -3
  114. package/dist/pam/identity/admin-user-directory.js.map +1 -1
  115. package/dist/pam/identity/service/identity.service.d.ts.map +1 -1
  116. package/dist/pam/identity/service/identity.service.js +4 -0
  117. package/dist/pam/identity/service/identity.service.js.map +1 -1
  118. package/dist/pam/player-management/__tests__/kyc-status-writer.test.js +5 -2
  119. package/dist/pam/player-management/__tests__/kyc-status-writer.test.js.map +1 -1
  120. package/dist/pam/player-management/__tests__/player.router.test.js +27 -20
  121. package/dist/pam/player-management/__tests__/player.router.test.js.map +1 -1
  122. package/dist/pam/player-management/__tests__/player.service.test.js +30 -31
  123. package/dist/pam/player-management/__tests__/player.service.test.js.map +1 -1
  124. package/dist/pam/player-management/contract/index.d.ts +37 -9
  125. package/dist/pam/player-management/contract/index.d.ts.map +1 -1
  126. package/dist/pam/player-management/contract/index.js +0 -1
  127. package/dist/pam/player-management/contract/index.js.map +1 -1
  128. package/dist/pam/player-management/plugin.d.ts.map +1 -1
  129. package/dist/pam/player-management/plugin.js +3 -2
  130. package/dist/pam/player-management/plugin.js.map +1 -1
  131. package/dist/pam/player-management/router/index.d.ts +32 -10
  132. package/dist/pam/player-management/router/index.d.ts.map +1 -1
  133. package/dist/pam/player-management/router/index.js +48 -16
  134. package/dist/pam/player-management/router/index.js.map +1 -1
  135. package/dist/pam/player-management/service/kyc-status-writer.d.ts +3 -2
  136. package/dist/pam/player-management/service/kyc-status-writer.d.ts.map +1 -1
  137. package/dist/pam/player-management/service/kyc-status-writer.js +24 -10
  138. package/dist/pam/player-management/service/kyc-status-writer.js.map +1 -1
  139. package/dist/pam/player-management/service/player.service.d.ts +10 -9
  140. package/dist/pam/player-management/service/player.service.d.ts.map +1 -1
  141. package/dist/pam/player-management/service/player.service.js +24 -12
  142. package/dist/pam/player-management/service/player.service.js.map +1 -1
  143. package/dist/pam/profile/contract/index.d.ts +2 -0
  144. package/dist/pam/profile/contract/index.d.ts.map +1 -1
  145. package/dist/pam/profile/drizzle/migrations/0001_powerful_tiger_shark.sql +1 -0
  146. package/dist/pam/profile/drizzle/migrations/meta/0001_snapshot.json +191 -0
  147. package/dist/pam/profile/drizzle/migrations/meta/_journal.json +7 -0
  148. package/dist/pam/profile/react/profile.d.ts +2 -2
  149. package/dist/pam/profile/router/index.d.ts +2 -0
  150. package/dist/pam/profile/router/index.d.ts.map +1 -1
  151. package/dist/pam/profile/schema/index.d.ts +3 -3
  152. package/dist/pam/profile/schema/index.d.ts.map +1 -1
  153. package/dist/pam/profile/service/profile.service.d.ts +2 -2
  154. package/dist/pam/shared/player-mapper.d.ts +1 -1
  155. package/dist/pam/tag/__tests__/tag-evaluation.service.test.js +619 -19
  156. package/dist/pam/tag/__tests__/tag-evaluation.service.test.js.map +1 -1
  157. package/dist/pam/tag/__tests__/tag-mappers.test.js +25 -0
  158. package/dist/pam/tag/__tests__/tag-mappers.test.js.map +1 -1
  159. package/dist/pam/tag/__tests__/tag.router.test.js +71 -1
  160. package/dist/pam/tag/__tests__/tag.router.test.js.map +1 -1
  161. package/dist/pam/tag/__tests__/tag.service.test.js +342 -15
  162. package/dist/pam/tag/__tests__/tag.service.test.js.map +1 -1
  163. package/dist/pam/tag/contract/index.d.ts +123 -0
  164. package/dist/pam/tag/contract/index.d.ts.map +1 -1
  165. package/dist/pam/tag/contract/index.js +3 -0
  166. package/dist/pam/tag/contract/index.js.map +1 -1
  167. package/dist/pam/tag/contract/player-tag-assign-metadata.d.ts +37 -0
  168. package/dist/pam/tag/contract/player-tag-assign-metadata.d.ts.map +1 -0
  169. package/dist/pam/tag/contract/player-tag-assign-metadata.js +20 -0
  170. package/dist/pam/tag/contract/player-tag-assign-metadata.js.map +1 -0
  171. package/dist/pam/tag/drizzle/migrations/0002_silent_skaar.sql +4 -0
  172. package/dist/pam/tag/drizzle/migrations/0003_overconfident_guardian.sql +3 -0
  173. package/dist/pam/tag/drizzle/migrations/0004_curvy_wither.sql +2 -0
  174. package/dist/pam/tag/drizzle/migrations/meta/0002_snapshot.json +335 -0
  175. package/dist/pam/tag/drizzle/migrations/meta/0003_snapshot.json +343 -0
  176. package/dist/pam/tag/drizzle/migrations/meta/0004_snapshot.json +345 -0
  177. package/dist/pam/tag/drizzle/migrations/meta/_journal.json +21 -0
  178. package/dist/pam/tag/migrate.d.ts.map +1 -1
  179. package/dist/pam/tag/migrate.js +34 -0
  180. package/dist/pam/tag/migrate.js.map +1 -1
  181. package/dist/pam/tag/plugin.d.ts.map +1 -1
  182. package/dist/pam/tag/plugin.js +43 -16
  183. package/dist/pam/tag/plugin.js.map +1 -1
  184. package/dist/pam/tag/router/index.d.ts +105 -0
  185. package/dist/pam/tag/router/index.d.ts.map +1 -1
  186. package/dist/pam/tag/router/index.js +34 -18
  187. package/dist/pam/tag/router/index.js.map +1 -1
  188. package/dist/pam/tag/schema/index.d.ts +42 -3
  189. package/dist/pam/tag/schema/index.d.ts.map +1 -1
  190. package/dist/pam/tag/schema/index.js +13 -2
  191. package/dist/pam/tag/schema/index.js.map +1 -1
  192. package/dist/pam/tag/seed/data/default-tag-rules.d.ts.map +1 -1
  193. package/dist/pam/tag/seed/data/default-tag-rules.js +42 -0
  194. package/dist/pam/tag/seed/data/default-tag-rules.js.map +1 -1
  195. package/dist/pam/tag/seed/data/default-tags.d.ts.map +1 -1
  196. package/dist/pam/tag/seed/data/default-tags.js +6 -0
  197. package/dist/pam/tag/seed/data/default-tags.js.map +1 -1
  198. package/dist/pam/tag/service/tag-evaluation.service.d.ts +141 -16
  199. package/dist/pam/tag/service/tag-evaluation.service.d.ts.map +1 -1
  200. package/dist/pam/tag/service/tag-evaluation.service.js +472 -47
  201. package/dist/pam/tag/service/tag-evaluation.service.js.map +1 -1
  202. package/dist/pam/tag/service/tag-mappers.d.ts +1 -1
  203. package/dist/pam/tag/service/tag-mappers.d.ts.map +1 -1
  204. package/dist/pam/tag/service/tag-mappers.js +1 -0
  205. package/dist/pam/tag/service/tag-mappers.js.map +1 -1
  206. package/dist/pam/tag/service/tag-rule.service.d.ts +3 -3
  207. package/dist/pam/tag/service/tag.service.d.ts +141 -11
  208. package/dist/pam/tag/service/tag.service.d.ts.map +1 -1
  209. package/dist/pam/tag/service/tag.service.js +242 -23
  210. package/dist/pam/tag/service/tag.service.js.map +1 -1
  211. package/dist/server/auth/permissions.d.ts +12 -0
  212. package/dist/server/auth/permissions.d.ts.map +1 -1
  213. package/dist/server/auth/permissions.js +2 -0
  214. package/dist/server/auth/permissions.js.map +1 -1
  215. package/dist/server/db/__tests__/migrate.test.js +79 -2
  216. package/dist/server/db/__tests__/migrate.test.js.map +1 -1
  217. package/dist/server/db/migrate.d.ts +11 -0
  218. package/dist/server/db/migrate.d.ts.map +1 -1
  219. package/dist/server/db/migrate.js +3 -0
  220. package/dist/server/db/migrate.js.map +1 -1
  221. package/dist/server/kernel/bullmq-job-queue.d.ts.map +1 -1
  222. package/dist/server/kernel/bullmq-job-queue.js +17 -0
  223. package/dist/server/kernel/bullmq-job-queue.js.map +1 -1
  224. package/dist/server/plugin-host/__tests__/core-plugins.test.js +1 -1
  225. package/dist/server/plugin-host/__tests__/core-plugins.test.js.map +1 -1
  226. package/dist/server/plugin-host/define-plugin.d.ts +2 -2
  227. package/dist/server/plugin-host/define-plugin.d.ts.map +1 -1
  228. package/dist/server/plugin-host/define-plugin.js.map +1 -1
  229. package/dist/wallet/__tests__/wallet-auto-withdrawal.test.js +60 -0
  230. package/dist/wallet/__tests__/wallet-auto-withdrawal.test.js.map +1 -1
  231. package/dist/wallet/__tests__/wallet.service.test.js +59 -0
  232. package/dist/wallet/__tests__/wallet.service.test.js.map +1 -1
  233. package/dist/wallet/adapters/wallet-reader.service.d.ts +1 -0
  234. package/dist/wallet/adapters/wallet-reader.service.d.ts.map +1 -1
  235. package/dist/wallet/adapters/wallet-reader.service.js +18 -1
  236. package/dist/wallet/adapters/wallet-reader.service.js.map +1 -1
  237. package/dist/wallet/contract/index.d.ts +4 -0
  238. package/dist/wallet/contract/index.d.ts.map +1 -1
  239. package/dist/wallet/plugin.d.ts.map +1 -1
  240. package/dist/wallet/plugin.js +7 -4
  241. package/dist/wallet/plugin.js.map +1 -1
  242. package/dist/wallet/router/index.d.ts +2 -0
  243. package/dist/wallet/router/index.d.ts.map +1 -1
  244. package/dist/wallet/service/wallet.service.d.ts +5 -4
  245. package/dist/wallet/service/wallet.service.d.ts.map +1 -1
  246. package/dist/wallet/service/wallet.service.js +28 -8
  247. package/dist/wallet/service/wallet.service.js.map +1 -1
  248. package/package.json +1 -1
@@ -13,7 +13,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
13
13
  self_excluded: "self_excluded";
14
14
  kyc_pending: "kyc_pending";
15
15
  kyc_rejected: "kyc_rejected";
16
+ basic_kyc_needed: "basic_kyc_needed";
17
+ advanced_kyc_needed: "advanced_kyc_needed";
16
18
  test_account: "test_account";
19
+ dormant_high_roller: "dormant_high_roller";
20
+ withdrawal_review: "withdrawal_review";
21
+ multi_account: "multi_account";
22
+ level: "level";
17
23
  }>;
18
24
  isSticky: import("zod").ZodDefault<import("zod").ZodBoolean>;
19
25
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -28,7 +34,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
28
34
  self_excluded: "self_excluded";
29
35
  kyc_pending: "kyc_pending";
30
36
  kyc_rejected: "kyc_rejected";
37
+ basic_kyc_needed: "basic_kyc_needed";
38
+ advanced_kyc_needed: "advanced_kyc_needed";
31
39
  test_account: "test_account";
40
+ dormant_high_roller: "dormant_high_roller";
41
+ withdrawal_review: "withdrawal_review";
42
+ multi_account: "multi_account";
43
+ level: "level";
32
44
  }>;
33
45
  isSticky: import("zod").ZodDefault<import("zod").ZodBoolean>;
34
46
  createdAt: import("zod").ZodISODateTime;
@@ -45,7 +57,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
45
57
  self_excluded: "self_excluded";
46
58
  kyc_pending: "kyc_pending";
47
59
  kyc_rejected: "kyc_rejected";
60
+ basic_kyc_needed: "basic_kyc_needed";
61
+ advanced_kyc_needed: "advanced_kyc_needed";
48
62
  test_account: "test_account";
63
+ dormant_high_roller: "dormant_high_roller";
64
+ withdrawal_review: "withdrawal_review";
65
+ multi_account: "multi_account";
66
+ level: "level";
49
67
  }>;
50
68
  }, import("zod/v4/core").$strip>, import("zod").ZodBoolean, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
51
69
  listPlayerTags: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
@@ -91,9 +109,26 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
91
109
  self_excluded: "self_excluded";
92
110
  kyc_pending: "kyc_pending";
93
111
  kyc_rejected: "kyc_rejected";
112
+ basic_kyc_needed: "basic_kyc_needed";
113
+ advanced_kyc_needed: "advanced_kyc_needed";
94
114
  test_account: "test_account";
115
+ dormant_high_roller: "dormant_high_roller";
116
+ withdrawal_review: "withdrawal_review";
117
+ multi_account: "multi_account";
118
+ level: "level";
95
119
  }>;
96
120
  }, import("zod/v4/core").$strip>;
121
+ assignMetadata: import("zod").ZodNullable<import("zod").ZodObject<{
122
+ amountBreach: import("zod").ZodNullable<import("zod").ZodObject<{
123
+ amount: import("zod").ZodString;
124
+ threshold: import("zod").ZodString;
125
+ }, import("zod/v4/core").$strip>>;
126
+ countBreach: import("zod").ZodNullable<import("zod").ZodObject<{
127
+ count: import("zod").ZodNumber;
128
+ thresholdCount: import("zod").ZodNumber;
129
+ thresholdDays: import("zod").ZodNumber;
130
+ }, import("zod/v4/core").$strip>>;
131
+ }, import("zod/v4/core").$strip>>;
97
132
  }, import("zod/v4/core").$strip>>;
98
133
  total: import("zod").ZodNumber;
99
134
  page: import("zod").ZodNumber;
@@ -116,7 +151,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
116
151
  self_excluded: "self_excluded";
117
152
  kyc_pending: "kyc_pending";
118
153
  kyc_rejected: "kyc_rejected";
154
+ basic_kyc_needed: "basic_kyc_needed";
155
+ advanced_kyc_needed: "advanced_kyc_needed";
119
156
  test_account: "test_account";
157
+ dormant_high_roller: "dormant_high_roller";
158
+ withdrawal_review: "withdrawal_review";
159
+ multi_account: "multi_account";
160
+ level: "level";
120
161
  }>;
121
162
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
122
163
  id: import("zod").ZodUUID;
@@ -148,9 +189,26 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
148
189
  self_excluded: "self_excluded";
149
190
  kyc_pending: "kyc_pending";
150
191
  kyc_rejected: "kyc_rejected";
192
+ basic_kyc_needed: "basic_kyc_needed";
193
+ advanced_kyc_needed: "advanced_kyc_needed";
151
194
  test_account: "test_account";
195
+ dormant_high_roller: "dormant_high_roller";
196
+ withdrawal_review: "withdrawal_review";
197
+ multi_account: "multi_account";
198
+ level: "level";
152
199
  }>;
153
200
  }, import("zod/v4/core").$strip>;
201
+ assignMetadata: import("zod").ZodNullable<import("zod").ZodObject<{
202
+ amountBreach: import("zod").ZodNullable<import("zod").ZodObject<{
203
+ amount: import("zod").ZodString;
204
+ threshold: import("zod").ZodString;
205
+ }, import("zod/v4/core").$strip>>;
206
+ countBreach: import("zod").ZodNullable<import("zod").ZodObject<{
207
+ count: import("zod").ZodNumber;
208
+ thresholdCount: import("zod").ZodNumber;
209
+ thresholdDays: import("zod").ZodNumber;
210
+ }, import("zod/v4/core").$strip>>;
211
+ }, import("zod/v4/core").$strip>>;
154
212
  }, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
155
213
  removePlayerTag: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
156
214
  playerId: import("zod").ZodUUID;
@@ -169,7 +227,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
169
227
  self_excluded: "self_excluded";
170
228
  kyc_pending: "kyc_pending";
171
229
  kyc_rejected: "kyc_rejected";
230
+ basic_kyc_needed: "basic_kyc_needed";
231
+ advanced_kyc_needed: "advanced_kyc_needed";
172
232
  test_account: "test_account";
233
+ dormant_high_roller: "dormant_high_roller";
234
+ withdrawal_review: "withdrawal_review";
235
+ multi_account: "multi_account";
236
+ level: "level";
173
237
  }>;
174
238
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
175
239
  id: import("zod").ZodUUID;
@@ -201,9 +265,26 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
201
265
  self_excluded: "self_excluded";
202
266
  kyc_pending: "kyc_pending";
203
267
  kyc_rejected: "kyc_rejected";
268
+ basic_kyc_needed: "basic_kyc_needed";
269
+ advanced_kyc_needed: "advanced_kyc_needed";
204
270
  test_account: "test_account";
271
+ dormant_high_roller: "dormant_high_roller";
272
+ withdrawal_review: "withdrawal_review";
273
+ multi_account: "multi_account";
274
+ level: "level";
205
275
  }>;
206
276
  }, import("zod/v4/core").$strip>;
277
+ assignMetadata: import("zod").ZodNullable<import("zod").ZodObject<{
278
+ amountBreach: import("zod").ZodNullable<import("zod").ZodObject<{
279
+ amount: import("zod").ZodString;
280
+ threshold: import("zod").ZodString;
281
+ }, import("zod/v4/core").$strip>>;
282
+ countBreach: import("zod").ZodNullable<import("zod").ZodObject<{
283
+ count: import("zod").ZodNumber;
284
+ thresholdCount: import("zod").ZodNumber;
285
+ thresholdDays: import("zod").ZodNumber;
286
+ }, import("zod/v4/core").$strip>>;
287
+ }, import("zod/v4/core").$strip>>;
207
288
  }, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
208
289
  listAssignableTags: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
209
290
  playerId: import("zod").ZodUUID;
@@ -219,7 +300,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
219
300
  self_excluded: "self_excluded";
220
301
  kyc_pending: "kyc_pending";
221
302
  kyc_rejected: "kyc_rejected";
303
+ basic_kyc_needed: "basic_kyc_needed";
304
+ advanced_kyc_needed: "advanced_kyc_needed";
222
305
  test_account: "test_account";
306
+ dormant_high_roller: "dormant_high_roller";
307
+ withdrawal_review: "withdrawal_review";
308
+ multi_account: "multi_account";
309
+ level: "level";
223
310
  }>;
224
311
  isSticky: import("zod").ZodDefault<import("zod").ZodBoolean>;
225
312
  createdAt: import("zod").ZodISODateTime;
@@ -238,7 +325,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
238
325
  self_excluded: "self_excluded";
239
326
  kyc_pending: "kyc_pending";
240
327
  kyc_rejected: "kyc_rejected";
328
+ basic_kyc_needed: "basic_kyc_needed";
329
+ advanced_kyc_needed: "advanced_kyc_needed";
241
330
  test_account: "test_account";
331
+ dormant_high_roller: "dormant_high_roller";
332
+ withdrawal_review: "withdrawal_review";
333
+ multi_account: "multi_account";
334
+ level: "level";
242
335
  }>;
243
336
  isEnabled: import("zod").ZodBoolean;
244
337
  threshold: import("zod").ZodNullable<import("zod").ZodString>;
@@ -258,7 +351,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
258
351
  self_excluded: "self_excluded";
259
352
  kyc_pending: "kyc_pending";
260
353
  kyc_rejected: "kyc_rejected";
354
+ basic_kyc_needed: "basic_kyc_needed";
355
+ advanced_kyc_needed: "advanced_kyc_needed";
261
356
  test_account: "test_account";
357
+ dormant_high_roller: "dormant_high_roller";
358
+ withdrawal_review: "withdrawal_review";
359
+ multi_account: "multi_account";
360
+ level: "level";
262
361
  }>;
263
362
  isEnabled: import("zod").ZodBoolean;
264
363
  threshold: import("zod").ZodNullable<import("zod").ZodString>;
@@ -277,7 +376,13 @@ export declare function createTagRouter(tag: TagService, rule: TagRuleService, a
277
376
  self_excluded: "self_excluded";
278
377
  kyc_pending: "kyc_pending";
279
378
  kyc_rejected: "kyc_rejected";
379
+ basic_kyc_needed: "basic_kyc_needed";
380
+ advanced_kyc_needed: "advanced_kyc_needed";
280
381
  test_account: "test_account";
382
+ dormant_high_roller: "dormant_high_roller";
383
+ withdrawal_review: "withdrawal_review";
384
+ multi_account: "multi_account";
385
+ level: "level";
281
386
  }>;
282
387
  isEnabled: import("zod").ZodBoolean;
283
388
  threshold: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pam/tag/router/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,wBAAg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;;;;;;;;;;;;;;;EAkE5F"}
@@ -1,32 +1,48 @@
1
1
  import { implement } from '@orpc/server';
2
- import { getUserId } from '@openora/core/server';
2
+ import { getUserId, mapErrors } from '@openora/core/server';
3
3
  import { tagContract } from '../contract/index.js';
4
+ import { TagNotFoundError, TagAlreadyInUseError, TagAssignmentNotFoundError, TagKeyConflictError, TagInUseError, } from '../service/tag.service.js';
5
+ import { TagRuleNotFoundError } from '../service/tag-rule.service.js';
4
6
  export function createTagRouter(tag, rule, adminGuard) {
5
7
  const os = implement(tagContract).$context();
6
8
  return os.router({
7
- createTag: os.createTag.handler(({ input }) => tag.createTag(input)),
8
- deleteTag: os.deleteTag.handler(({ input }) => tag.deleteTag(input)),
9
- listPlayerTags: os.listPlayerTags.handler(({ input }) => tag.listPlayerTags({
10
- playerId: input.playerId,
11
- page: input.page,
12
- limit: input.limit,
13
- sortBy: input.sortBy,
14
- sortOrder: input.sortOrder,
15
- })),
16
- assignPlayerTag: os.assignPlayerTag.handler(({ context, input }) => {
17
- return tag.assignPlayerTag({ ...input, assignActorUserId: getUserId(context) }, context.clientMeta);
18
- }),
19
- removePlayerTag: os.removePlayerTag.handler(({ context, input }) => {
20
- return tag.removePlayerTag({ ...input, removalActorUserId: getUserId(context) }, context.clientMeta);
21
- }),
22
- listAssignableTags: os.listAssignableTags.handler(({ input }) => tag.listAssignableTags(input.playerId)),
9
+ createTag: os.createTag.handler(async ({ context, input }) => {
10
+ await adminGuard.assert(context, 'tag', 'create');
11
+ return mapErrors({ CONFLICT: TagKeyConflictError }, () => tag.createTag(input, getUserId(context)));
12
+ }),
13
+ deleteTag: os.deleteTag.handler(async ({ context, input }) => {
14
+ await adminGuard.assert(context, 'tag', 'delete');
15
+ return mapErrors({ NOT_FOUND: TagNotFoundError, CONFLICT: TagInUseError }, () => tag.deleteTag(input, getUserId(context)));
16
+ }),
17
+ listPlayerTags: os.listPlayerTags.handler(async ({ context, input }) => {
18
+ await adminGuard.assert(context, 'tag', 'view');
19
+ return tag.listPlayerTags({
20
+ playerId: input.playerId,
21
+ page: input.page,
22
+ limit: input.limit,
23
+ sortBy: input.sortBy,
24
+ sortOrder: input.sortOrder,
25
+ });
26
+ }),
27
+ assignPlayerTag: os.assignPlayerTag.handler(async ({ context, input }) => {
28
+ await adminGuard.assert(context, 'tag', 'create');
29
+ return mapErrors({ NOT_FOUND: TagNotFoundError, CONFLICT: TagAlreadyInUseError }, () => tag.assignPlayerTag({ ...input, assignActorUserId: getUserId(context) }, context.clientMeta));
30
+ }),
31
+ removePlayerTag: os.removePlayerTag.handler(async ({ context, input }) => {
32
+ await adminGuard.assert(context, 'tag', 'delete');
33
+ return mapErrors({ NOT_FOUND: [TagNotFoundError, TagAssignmentNotFoundError] }, () => tag.removePlayerTag({ ...input, removalActorUserId: getUserId(context) }, context.clientMeta));
34
+ }),
35
+ listAssignableTags: os.listAssignableTags.handler(async ({ context, input }) => {
36
+ await adminGuard.assert(context, 'tag', 'view');
37
+ return tag.listAssignableTags(input.playerId);
38
+ }),
23
39
  listTagRules: os.listTagRules.handler(async ({ context }) => {
24
40
  await adminGuard.assert(context, 'tag-rule', 'view');
25
41
  return rule.listTagRules();
26
42
  }),
27
43
  upsertTagRule: os.upsertTagRule.handler(async ({ context, input }) => {
28
44
  const { userId, ip, userAgent } = await adminGuard.assert(context, 'tag-rule', 'update');
29
- return rule.upsertTagRule(input, userId, { ip, userAgent });
45
+ return mapErrors({ NOT_FOUND: TagRuleNotFoundError }, () => rule.upsertTagRule(input, userId, { ip, userAgent }));
30
46
  }),
31
47
  });
32
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pam/tag/router/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAoC,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,MAAM,UAAU,eAAe,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YAChD,OAAO,GAAG,CAAC,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC,CAAC;QAEF,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YAC1D,MAAM,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;YACrD,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;QAC7B,CAAC,CAAC;QAEF,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;YACnE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YACzF,OAAO,SAAS,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,EAAE,GAAG,EAAE,CACzD,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CACrD,CAAC;QACJ,CAAC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const tagAssignRemoveSourceEnum: import("drizzle-orm/pg-core").PgEnum<["scheduled", "manual"]>;
2
- export declare const tagKeyEnum: import("drizzle-orm/pg-core").PgEnum<["high_roller", "vip", "bonus_abuser", "high_risk", "inactive", "large_depositor", "self_excluded", "kyc_pending", "kyc_rejected", "test_account"]>;
2
+ export declare const tagKeyEnum: import("drizzle-orm/pg-core").PgEnum<["high_roller", "vip", "bonus_abuser", "high_risk", "inactive", "large_depositor", "self_excluded", "kyc_pending", "kyc_rejected", "basic_kyc_needed", "advanced_kyc_needed", "test_account", "dormant_high_roller", "withdrawal_review", "multi_account", "level"]>;
3
3
  export declare const tag: import("drizzle-orm/pg-core").PgTableWithColumns<{
4
4
  name: "tag";
5
5
  schema: undefined;
@@ -26,14 +26,14 @@ export declare const tag: import("drizzle-orm/pg-core").PgTableWithColumns<{
26
26
  tableName: "tag";
27
27
  dataType: "string";
28
28
  columnType: "PgEnumColumn";
29
- data: "high_roller" | "vip" | "bonus_abuser" | "high_risk" | "inactive" | "large_depositor" | "self_excluded" | "kyc_pending" | "kyc_rejected" | "test_account";
29
+ data: "high_roller" | "vip" | "bonus_abuser" | "high_risk" | "inactive" | "large_depositor" | "self_excluded" | "kyc_pending" | "kyc_rejected" | "basic_kyc_needed" | "advanced_kyc_needed" | "test_account" | "dormant_high_roller" | "withdrawal_review" | "multi_account" | "level";
30
30
  driverParam: string;
31
31
  notNull: true;
32
32
  hasDefault: false;
33
33
  isPrimaryKey: false;
34
34
  isAutoincrement: false;
35
35
  hasRuntimeDefault: false;
36
- enumValues: ["high_roller", "vip", "bonus_abuser", "high_risk", "inactive", "large_depositor", "self_excluded", "kyc_pending", "kyc_rejected", "test_account"];
36
+ enumValues: ["high_roller", "vip", "bonus_abuser", "high_risk", "inactive", "large_depositor", "self_excluded", "kyc_pending", "kyc_rejected", "basic_kyc_needed", "advanced_kyc_needed", "test_account", "dormant_high_roller", "withdrawal_review", "multi_account", "level"];
37
37
  baseColumn: never;
38
38
  identity: undefined;
39
39
  generated: undefined;
@@ -198,6 +198,45 @@ export declare const playerTag: import("drizzle-orm/pg-core").PgTableWithColumns
198
198
  identity: undefined;
199
199
  generated: undefined;
200
200
  }, {}, {}>;
201
+ assignMetadata: import("drizzle-orm/pg-core").PgColumn<{
202
+ name: "assignMetadata";
203
+ tableName: "player_tag";
204
+ dataType: "json";
205
+ columnType: "PgJsonb";
206
+ data: {
207
+ amountBreach: {
208
+ amount: string;
209
+ threshold: string;
210
+ } | null;
211
+ countBreach: {
212
+ count: number;
213
+ thresholdCount: number;
214
+ thresholdDays: number;
215
+ } | null;
216
+ };
217
+ driverParam: unknown;
218
+ notNull: false;
219
+ hasDefault: false;
220
+ isPrimaryKey: false;
221
+ isAutoincrement: false;
222
+ hasRuntimeDefault: false;
223
+ enumValues: undefined;
224
+ baseColumn: never;
225
+ identity: undefined;
226
+ generated: undefined;
227
+ }, {}, {
228
+ $type: {
229
+ amountBreach: {
230
+ amount: string;
231
+ threshold: string;
232
+ } | null;
233
+ countBreach: {
234
+ count: number;
235
+ thresholdCount: number;
236
+ thresholdDays: number;
237
+ } | null;
238
+ };
239
+ }>;
201
240
  removedAt: import("drizzle-orm/pg-core").PgColumn<{
202
241
  name: "removedAt";
203
242
  tableName: "player_tag";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pam/tag/schema/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,yBAAyB,+DAA4D,CAAC;AACnG,eAAO,MAAM,UAAU,0LAA6B,CAAC;AAErD,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQd,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BrB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC,YAAY,CAAC;AAC1C,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,YAAY,CAAC;AAEtD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pam/tag/schema/index.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,yBAAyB,+DAA4D,CAAC;AACnG,eAAO,MAAM,UAAU,2SAA6B,CAAC;AAErD,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQd,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCrB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC,YAAY,CAAC;AAC1C,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,YAAY,CAAC;AAEtD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,YAAY,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { tagAssignRemoveSource, tagKeys } from '@openora/core/contracts';
2
- import { pgTable, uuid, text, timestamp, index, boolean, pgEnum, integer, decimal, } from 'drizzle-orm/pg-core';
2
+ import { isNull } from 'drizzle-orm';
3
+ import { pgTable, uuid, text, timestamp, index, uniqueIndex, boolean, pgEnum, integer, decimal, jsonb, } from 'drizzle-orm/pg-core';
3
4
  export const tagAssignRemoveSourceEnum = pgEnum('tag_assign_remove_source', tagAssignRemoveSource);
4
5
  export const tagKeyEnum = pgEnum('tag_key', tagKeys);
5
6
  export const tag = pgTable('tag', {
@@ -23,6 +24,7 @@ export const playerTag = pgTable('player_tag', {
23
24
  assignReason: text().notNull(),
24
25
  assignActor: tagAssignRemoveSourceEnum().notNull(),
25
26
  assignActorUserId: uuid() /* Potential FKey - user; null = system actor */,
27
+ assignMetadata: jsonb().$type(),
26
28
  /* Removal data */
27
29
  removedAt: timestamp({ withTimezone: true }),
28
30
  removalReason: text(),
@@ -33,7 +35,16 @@ export const playerTag = pgTable('player_tag', {
33
35
  .notNull()
34
36
  .$onUpdateFn(() => new Date()),
35
37
  createdAt: timestamp({ withTimezone: true }).notNull().defaultNow(),
36
- }, (table) => [index('player_tag_player_tag_idx').on(table.playerId, table.tagId)]);
38
+ }, (table) => [
39
+ index('player_tag_player_tag_idx').on(table.playerId, table.tagId),
40
+ index('player_tag_tag_id_idx').on(table.tagId).where(isNull(table.removedAt)),
41
+ // DB-level source of truth for "at most one active assignment per (tag, player)" -
42
+ // the service pre-check is a friendly fast path only; this index is what actually
43
+ // closes the concurrent-insert / at-least-once-redelivery race.
44
+ uniqueIndex('player_tag_active_key')
45
+ .on(table.tagId, table.playerId)
46
+ .where(isNull(table.removedAt)),
47
+ ]);
37
48
  export const tagRule = pgTable('tag_rule', {
38
49
  id: uuid().primaryKey().defaultRandom(),
39
50
  tagId: uuid()
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pam/tag/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,M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AC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default-tag-rules.d.ts","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tag-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,EA2CjD,CAAC"}
1
+ {"version":3,"file":"default-tag-rules.d.ts","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tag-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,EAqFjD,CAAC"}
@@ -13,6 +13,13 @@ export const DEFAULT_TAG_RULES = [
13
13
  thresholdDays: null,
14
14
  thresholdCount: null,
15
15
  },
16
+ {
17
+ tagKey: 'bonus_abuser',
18
+ isEnabled: true,
19
+ threshold: null,
20
+ thresholdDays: null,
21
+ thresholdCount: null,
22
+ },
16
23
  {
17
24
  tagKey: 'high_risk',
18
25
  isEnabled: false,
@@ -41,5 +48,40 @@ export const DEFAULT_TAG_RULES = [
41
48
  thresholdDays: null,
42
49
  thresholdCount: null,
43
50
  },
51
+ {
52
+ tagKey: 'multi_account',
53
+ isEnabled: true,
54
+ threshold: null,
55
+ thresholdDays: null,
56
+ thresholdCount: null,
57
+ },
58
+ {
59
+ tagKey: 'dormant_high_roller',
60
+ isEnabled: false,
61
+ threshold: null,
62
+ thresholdDays: null,
63
+ thresholdCount: null,
64
+ },
65
+ {
66
+ tagKey: 'withdrawal_review',
67
+ isEnabled: false,
68
+ threshold: null,
69
+ thresholdDays: null,
70
+ thresholdCount: null,
71
+ },
72
+ {
73
+ tagKey: 'basic_kyc_needed',
74
+ isEnabled: true,
75
+ threshold: null,
76
+ thresholdDays: null,
77
+ thresholdCount: null,
78
+ },
79
+ {
80
+ tagKey: 'advanced_kyc_needed',
81
+ isEnabled: true,
82
+ threshold: null,
83
+ thresholdDays: null,
84
+ thresholdCount: null,
85
+ },
44
86
  ];
45
87
  //# sourceMappingURL=default-tag-rules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-tag-rules.js","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tag-rules.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAyB;IACrD;QACE,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;IACD;QACE,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;IACD;QACE,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;IACD;QACE,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;IACD;QACE,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;IACD;QACE,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;CACF,CAAC"}
1
+ {"version":3,"file":"default-tag-rules.js","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tag-rules.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAyB;IACrD;QACE,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI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,EAAE,kBAAkB;QAC1B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;KACrB;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default-tags.d.ts","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAO,MAAM,YAAY,EAAE,cAAc,EAWxC,CAAC"}
1
+ {"version":3,"file":"default-tags.d.ts","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAO,MAAM,YAAY,EAAE,cAAc,EAiBxC,CAAC"}
@@ -8,6 +8,12 @@ export const DEFAULT_TAGS = [
8
8
  { key: 'self_excluded', isSticky: true },
9
9
  { key: 'kyc_pending', isSticky: false },
10
10
  { key: 'kyc_rejected', isSticky: true },
11
+ { key: 'basic_kyc_needed', isSticky: false },
12
+ { key: 'advanced_kyc_needed', isSticky: true },
11
13
  { key: 'test_account', isSticky: true },
14
+ { key: 'dormant_high_roller', isSticky: false },
15
+ { key: 'withdrawal_review', isSticky: true },
16
+ { key: 'multi_account', isSticky: true },
17
+ { key: 'level', isSticky: false },
12
18
  ];
13
19
  //# sourceMappingURL=default-tags.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-tags.js","sourceRoot":"","sources":["../../../../../src/pam/tag/seed/data/default-tags.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAqB;IAC5C,EAAE,GAAG,EAAE,aAAa,EAAE,QAAQ,EAA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