@abyss-project/main 20.0.0 → 21.0.0

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 (181) hide show
  1. package/dist/api/activity.admin.api.d.ts +2 -1
  2. package/dist/api/activity.admin.api.js +3 -1
  3. package/dist/api/activity.admin.api.js.map +1 -1
  4. package/dist/api/analytics-snapshot.admin.api.d.ts +2 -1
  5. package/dist/api/analytics-snapshot.admin.api.js +3 -1
  6. package/dist/api/analytics-snapshot.admin.api.js.map +1 -1
  7. package/dist/api/billing-account.admin.api.d.ts +12 -2
  8. package/dist/api/billing-account.admin.api.js +25 -1
  9. package/dist/api/billing-account.admin.api.js.map +1 -1
  10. package/dist/api/index.d.ts +2 -1
  11. package/dist/api/index.js +2 -1
  12. package/dist/api/index.js.map +1 -1
  13. package/dist/api/organization-billing.api.d.ts +15 -2
  14. package/dist/api/organization-billing.api.js +38 -1
  15. package/dist/api/organization-billing.api.js.map +1 -1
  16. package/dist/api/short-link-protection.admin.api.d.ts +3 -0
  17. package/dist/api/short-link-protection.admin.api.js +9 -0
  18. package/dist/api/short-link-protection.admin.api.js.map +1 -0
  19. package/dist/api/user-billing.api.d.ts +15 -2
  20. package/dist/api/user-billing.api.js +45 -1
  21. package/dist/api/user-billing.api.js.map +1 -1
  22. package/dist/constants/index.d.ts +2 -0
  23. package/dist/constants/index.js +2 -0
  24. package/dist/constants/index.js.map +1 -1
  25. package/dist/constants/key-action-catalog.constants.d.ts +19 -0
  26. package/dist/constants/key-action-catalog.constants.js +171 -0
  27. package/dist/constants/key-action-catalog.constants.js.map +1 -0
  28. package/dist/constants/public-plans.constants.js +8 -0
  29. package/dist/constants/public-plans.constants.js.map +1 -1
  30. package/dist/constants/tests/key-action-catalog.constants.spec.d.ts +1 -0
  31. package/dist/constants/tests/key-action-catalog.constants.spec.js +52 -0
  32. package/dist/constants/tests/key-action-catalog.constants.spec.js.map +1 -0
  33. package/dist/constants/unpaid-invoice.constants.d.ts +1 -0
  34. package/dist/constants/unpaid-invoice.constants.js +5 -0
  35. package/dist/constants/unpaid-invoice.constants.js.map +1 -0
  36. package/dist/index.d.ts +34 -1
  37. package/dist/index.js +34 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/translate/en.translate.d.ts +24 -0
  40. package/dist/translate/en.translate.js +24 -0
  41. package/dist/translate/en.translate.js.map +1 -1
  42. package/dist/translate/fr.translate.d.ts +24 -0
  43. package/dist/translate/fr.translate.js +24 -0
  44. package/dist/translate/fr.translate.js.map +1 -1
  45. package/dist/types/enum/abyss-application-event.enum.d.ts +2 -0
  46. package/dist/types/enum/abyss-application-event.enum.js +2 -0
  47. package/dist/types/enum/abyss-application-event.enum.js.map +1 -1
  48. package/dist/types/enum/admin-audit-target-type.enum.d.ts +2 -1
  49. package/dist/types/enum/admin-audit-target-type.enum.js +1 -0
  50. package/dist/types/enum/admin-audit-target-type.enum.js.map +1 -1
  51. package/dist/types/enum/api-error.enum.d.ts +3 -0
  52. package/dist/types/enum/api-error.enum.js +3 -0
  53. package/dist/types/enum/api-error.enum.js.map +1 -1
  54. package/dist/types/enum/billing-interval.enum.d.ts +8 -0
  55. package/dist/types/enum/billing-interval.enum.js +14 -0
  56. package/dist/types/enum/billing-interval.enum.js.map +1 -0
  57. package/dist/types/enum/billing-subscription-event.enum.d.ts +27 -0
  58. package/dist/types/enum/billing-subscription-event.enum.js +34 -0
  59. package/dist/types/enum/billing-subscription-event.enum.js.map +1 -0
  60. package/dist/types/enum/email-type.enum.d.ts +6 -0
  61. package/dist/types/enum/email-type.enum.js +6 -0
  62. package/dist/types/enum/email-type.enum.js.map +1 -1
  63. package/dist/types/enum/index.d.ts +9 -0
  64. package/dist/types/enum/index.js +9 -0
  65. package/dist/types/enum/index.js.map +1 -1
  66. package/dist/types/enum/key-action-event.enum.d.ts +20 -0
  67. package/dist/types/enum/key-action-event.enum.js +25 -0
  68. package/dist/types/enum/key-action-event.enum.js.map +1 -0
  69. package/dist/types/enum/key-action-property-type.enum.d.ts +5 -0
  70. package/dist/types/enum/key-action-property-type.enum.js +10 -0
  71. package/dist/types/enum/key-action-property-type.enum.js.map +1 -0
  72. package/dist/types/enum/loyalty-grant-mode.enum.d.ts +4 -0
  73. package/dist/types/enum/loyalty-grant-mode.enum.js +9 -0
  74. package/dist/types/enum/loyalty-grant-mode.enum.js.map +1 -0
  75. package/dist/types/enum/paid-purchase-reason.enum.d.ts +5 -0
  76. package/dist/types/enum/paid-purchase-reason.enum.js +10 -0
  77. package/dist/types/enum/paid-purchase-reason.enum.js.map +1 -0
  78. package/dist/types/enum/referred-traffic-medium.enum.d.ts +4 -0
  79. package/dist/types/enum/referred-traffic-medium.enum.js +9 -0
  80. package/dist/types/enum/referred-traffic-medium.enum.js.map +1 -0
  81. package/dist/types/enum/service-activation.enum.d.ts +10 -0
  82. package/dist/types/enum/service-activation.enum.js +16 -0
  83. package/dist/types/enum/service-activation.enum.js.map +1 -0
  84. package/dist/types/enum/subscription-pause.enum.d.ts +6 -0
  85. package/dist/types/enum/subscription-pause.enum.js +11 -0
  86. package/dist/types/enum/subscription-pause.enum.js.map +1 -0
  87. package/dist/types/enum/user-notification-category.enum.js +6 -0
  88. package/dist/types/enum/user-notification-category.enum.js.map +1 -1
  89. package/dist/types/enum/user-notification-content-type.enum.d.ts +30 -0
  90. package/dist/types/enum/user-notification-content-type.enum.js +7 -1
  91. package/dist/types/enum/user-notification-content-type.enum.js.map +1 -1
  92. package/dist/types/interface/api/index.d.ts +13 -1
  93. package/dist/types/interface/api/index.js +13 -1
  94. package/dist/types/interface/api/index.js.map +1 -1
  95. package/dist/types/interface/api/requests/activity.admin.request.d.ts +5 -0
  96. package/dist/types/interface/api/requests/billing-account.admin.request.d.ts +3 -0
  97. package/dist/types/interface/api/requests/index.d.ts +2 -0
  98. package/dist/types/interface/api/requests/index.js +2 -0
  99. package/dist/types/interface/api/requests/index.js.map +1 -1
  100. package/dist/types/interface/api/requests/loyalty-rule.admin.request.d.ts +16 -0
  101. package/dist/types/interface/api/requests/loyalty-rule.admin.request.js +3 -0
  102. package/dist/types/interface/api/requests/loyalty-rule.admin.request.js.map +1 -0
  103. package/dist/types/interface/api/requests/organization-billing.request.d.ts +15 -1
  104. package/dist/types/interface/api/requests/referred-traffic.admin.request.d.ts +4 -0
  105. package/dist/types/interface/api/requests/referred-traffic.admin.request.js +3 -0
  106. package/dist/types/interface/api/requests/referred-traffic.admin.request.js.map +1 -0
  107. package/dist/types/interface/api/requests/retention-metrics.admin.request.d.ts +4 -0
  108. package/dist/types/interface/api/requests/retention-metrics.admin.request.js +3 -0
  109. package/dist/types/interface/api/requests/retention-metrics.admin.request.js.map +1 -0
  110. package/dist/types/interface/api/requests/short-link-protection.admin.request.d.ts +6 -0
  111. package/dist/types/interface/api/requests/short-link-protection.admin.request.js +3 -0
  112. package/dist/types/interface/api/requests/short-link-protection.admin.request.js.map +1 -0
  113. package/dist/types/interface/api/requests/subscription-retention.request.d.ts +34 -0
  114. package/dist/types/interface/api/requests/subscription-retention.request.js +3 -0
  115. package/dist/types/interface/api/requests/subscription-retention.request.js.map +1 -0
  116. package/dist/types/interface/api/requests/user-billing.request.d.ts +12 -1
  117. package/dist/types/interface/api/responses/activity.admin.response.d.ts +5 -0
  118. package/dist/types/interface/api/responses/billing-account.admin.response.d.ts +6 -1
  119. package/dist/types/interface/api/responses/billing-module.response.d.ts +1 -0
  120. package/dist/types/interface/api/responses/billing-plan.response.d.ts +1 -0
  121. package/dist/types/interface/api/responses/index.d.ts +3 -1
  122. package/dist/types/interface/api/responses/index.js +3 -1
  123. package/dist/types/interface/api/responses/index.js.map +1 -1
  124. package/dist/types/interface/api/responses/loyalty-bonus.response.d.ts +16 -0
  125. package/dist/types/interface/api/responses/loyalty-bonus.response.js +3 -0
  126. package/dist/types/interface/api/responses/loyalty-bonus.response.js.map +1 -0
  127. package/dist/types/interface/api/responses/loyalty-rule.admin.response.d.ts +12 -0
  128. package/dist/types/interface/api/responses/loyalty-rule.admin.response.js +3 -0
  129. package/dist/types/interface/api/responses/loyalty-rule.admin.response.js.map +1 -0
  130. package/dist/types/interface/api/responses/organization-billing.response.d.ts +3 -1
  131. package/dist/types/interface/api/responses/referred-traffic.admin.response.d.ts +19 -0
  132. package/dist/types/interface/api/responses/referred-traffic.admin.response.js +3 -0
  133. package/dist/types/interface/api/responses/referred-traffic.admin.response.js.map +1 -0
  134. package/dist/types/interface/api/responses/retention-metrics.admin.response.d.ts +29 -0
  135. package/dist/types/interface/api/responses/retention-metrics.admin.response.js +3 -0
  136. package/dist/types/interface/api/responses/retention-metrics.admin.response.js.map +1 -0
  137. package/dist/types/interface/api/responses/short-link-protection.admin.response.d.ts +17 -0
  138. package/dist/types/interface/api/responses/short-link-protection.admin.response.js +3 -0
  139. package/dist/types/interface/api/responses/short-link-protection.admin.response.js.map +1 -0
  140. package/dist/types/interface/api/responses/subscription-retention.response.d.ts +11 -0
  141. package/dist/types/interface/api/responses/subscription-retention.response.js +3 -0
  142. package/dist/types/interface/api/responses/subscription-retention.response.js.map +1 -0
  143. package/dist/types/interface/api/responses/unpaid-amount.response.d.ts +9 -0
  144. package/dist/types/interface/api/responses/unpaid-amount.response.js +3 -0
  145. package/dist/types/interface/api/responses/unpaid-amount.response.js.map +1 -0
  146. package/dist/types/interface/api/responses/user-billing.response.d.ts +14 -1
  147. package/dist/types/interface/index.d.ts +4 -1
  148. package/dist/types/interface/index.js +4 -1
  149. package/dist/types/interface/index.js.map +1 -1
  150. package/dist/types/interface/models/billing-account.model.d.ts +22 -1
  151. package/dist/types/interface/models/billing-subscription-event.model.d.ts +17 -0
  152. package/dist/types/interface/models/billing-subscription-event.model.js +3 -0
  153. package/dist/types/interface/models/billing-subscription-event.model.js.map +1 -0
  154. package/dist/types/interface/models/index.d.ts +4 -1
  155. package/dist/types/interface/models/index.js +4 -1
  156. package/dist/types/interface/models/index.js.map +1 -1
  157. package/dist/types/interface/models/loyalty-rule.model.d.ts +12 -0
  158. package/dist/types/interface/models/loyalty-rule.model.js +3 -0
  159. package/dist/types/interface/models/loyalty-rule.model.js.map +1 -0
  160. package/dist/types/interface/models/plan-template.model.d.ts +1 -0
  161. package/dist/types/interface/models/service-activation.model.d.ts +13 -0
  162. package/dist/types/interface/models/service-activation.model.js +3 -0
  163. package/dist/types/interface/models/service-activation.model.js.map +1 -0
  164. package/dist/utils/index.d.ts +1 -0
  165. package/dist/utils/index.js +1 -0
  166. package/dist/utils/index.js.map +1 -1
  167. package/dist/utils/pricing.utils.d.ts +11 -1
  168. package/dist/utils/pricing.utils.js +55 -8
  169. package/dist/utils/pricing.utils.js.map +1 -1
  170. package/dist/utils/subscription-retention.utils.d.ts +12 -0
  171. package/dist/utils/subscription-retention.utils.js +40 -0
  172. package/dist/utils/subscription-retention.utils.js.map +1 -0
  173. package/dist/utils/tests/annual-price.utils.spec.d.ts +1 -0
  174. package/dist/utils/tests/annual-price.utils.spec.js +50 -0
  175. package/dist/utils/tests/annual-price.utils.spec.js.map +1 -0
  176. package/dist/utils/tests/pricing-calculator.utils.spec.js +1 -0
  177. package/dist/utils/tests/pricing-calculator.utils.spec.js.map +1 -1
  178. package/dist/utils/tests/subscription-retention.utils.spec.d.ts +1 -0
  179. package/dist/utils/tests/subscription-retention.utils.spec.js +80 -0
  180. package/dist/utils/tests/subscription-retention.utils.spec.js.map +1 -0
  181. package/package.json +1 -1
@@ -91,6 +91,12 @@ __exportStar(require("./requests/billing-module.request"), exports);
91
91
  __exportStar(require("./responses/billing-module.response"), exports);
92
92
  __exportStar(require("./requests/billing-snapshot-admin.request"), exports);
93
93
  __exportStar(require("./responses/billing-snapshot-admin.response"), exports);
94
+ __exportStar(require("./requests/retention-metrics.admin.request"), exports);
95
+ __exportStar(require("./responses/retention-metrics.admin.response"), exports);
96
+ __exportStar(require("./requests/loyalty-rule.admin.request"), exports);
97
+ __exportStar(require("./responses/loyalty-rule.admin.response"), exports);
98
+ __exportStar(require("./responses/loyalty-bonus.response"), exports);
99
+ __exportStar(require("./responses/unpaid-amount.response"), exports);
94
100
  __exportStar(require("./requests/billing-plan.request"), exports);
95
101
  __exportStar(require("./responses/billing-plan.response"), exports);
96
102
  __exportStar(require("./requests/billing-account.admin.request"), exports);
@@ -109,6 +115,8 @@ __exportStar(require("./requests/personal-api-key.request"), exports);
109
115
  __exportStar(require("./responses/personal-api-key.response"), exports);
110
116
  __exportStar(require("./requests/user-billing.request"), exports);
111
117
  __exportStar(require("./responses/user-billing.response"), exports);
118
+ __exportStar(require("./requests/subscription-retention.request"), exports);
119
+ __exportStar(require("./responses/subscription-retention.response"), exports);
112
120
  __exportStar(require("./requests/content-share.request"), exports);
113
121
  __exportStar(require("./responses/content-share.response"), exports);
114
122
  __exportStar(require("./requests/crash-report.public.request"), exports);
@@ -123,7 +131,6 @@ __exportStar(require("./requests/user-sidebar-pin.request"), exports);
123
131
  __exportStar(require("./responses/user-sidebar-pin.response"), exports);
124
132
  __exportStar(require("./requests/user-cookie-consent.request"), exports);
125
133
  __exportStar(require("./responses/user-cookie-consent.response"), exports);
126
- __exportStar(require("./responses/user-feedback-state.response"), exports);
127
134
  __exportStar(require("./requests/admin-audit-log.admin.request"), exports);
128
135
  __exportStar(require("./responses/admin-audit-log.admin.response"), exports);
129
136
  __exportStar(require("./requests/session.request"), exports);
@@ -144,6 +151,11 @@ __exportStar(require("./responses/mcp-connection.response"), exports);
144
151
  __exportStar(require("./responses/oauth-authorization-request.response"), exports);
145
152
  __exportStar(require("./requests/activity.admin.request"), exports);
146
153
  __exportStar(require("./responses/activity.admin.response"), exports);
154
+ __exportStar(require("./requests/referred-traffic.admin.request"), exports);
155
+ __exportStar(require("./responses/referred-traffic.admin.response"), exports);
156
+ __exportStar(require("./requests/short-link-protection.admin.request"), exports);
157
+ __exportStar(require("./responses/short-link-protection.admin.response"), exports);
158
+ __exportStar(require("./responses/user-feedback-state.response"), exports);
147
159
  __exportStar(require("./requests/service-nudge.request"), exports);
148
160
  __exportStar(require("./requests/service-nudge.admin.request"), exports);
149
161
  __exportStar(require("./responses/service-nudge.response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAE7C,0DAAwC;AACxC,0DAAwC;AACxC,gEAA8C;AAC9C,uEAAqD;AACrD,6EAA2D;AAC3D,6EAA2D;AAC3D,+DAA6C;AAC7C,qEAAmD;AACnD,iEAA+C;AAC/C,uEAAqD;AACrD,mEAAiD;AACjD,6DAA2C;AAC3C,0EAAwD;AACxD,oEAAkD;AAClD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,yEAAuD;AACvD,2DAAyC;AACzC,oEAAkD;AAClD,kEAAgD;AAChD,wEAAsD;AACtD,kFAAgE;AAChE,sFAAoE;AAEpE,4DAA0C;AAC1C,4DAA0C;AAC1C,kEAAgD;AAChD,yEAAuD;AACvD,+EAA6D;AAC7D,+EAA6D;AAC7D,iEAA+C;AAC/C,uEAAqD;AACrD,qEAAmD;AACnD,+DAA6C;AAC7C,mEAAiD;AACjD,yEAAuD;AACvD,qEAAmD;AACnD,+DAA6C;AAC7C,4EAA0D;AAC1D,sEAAoD;AACpD,+DAA6C;AAC7C,wEAAsD;AACtD,qEAAmD;AACnD,2EAAyD;AACzD,6DAA2C;AAC3C,sEAAoD;AACpD,oEAAkD;AAClD,0EAAwD;AACxD,oFAAkE;AAClE,wFAAsE;AAEtE,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,oEAAkD;AAClD,4EAA0D;AAC1D,sFAAoE;AACpE,yEAAuD;AACvD,oFAAkE;AAClE,0FAAwE;AACxE,2EAAyD;AACzD,sFAAoE;AACpE,4FAA0E;AAC1E,sFAAoE;AACpE,0EAAwD;AACxD,4EAA0D;AAC1D,iEAA+C;AAC/C,mEAAiD;AACjD,wEAAsD;AACtD,uEAAqD;AACrD,oEAAkD;AAClD,sEAAoD;AACpD,4EAA0D;AAC1D,8EAA4D;AAC5D,kEAAgD;AAChD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,yEAAuD;AACvD,2EAAyD;AACzD,gFAA8D;AAC9D,kFAAgE;AAChE,mEAAiD;AACjD,qEAAmD;AACnD,0DAAwC;AACxC,4DAA0C;AAC1C,qEAAmD;AACnD,uEAAqD;AAGrD,sEAAoD;AACpD,wEAAsD;AAEtD,kEAAgD;AAChD,oEAAkD;AAElD,mEAAiD;AACjD,qEAAmD;AAEnD,yEAAuD;AACvD,2EAAyD;AAEzD,oEAAkD;AAClD,wEAAsD;AACtD,0EAAwD;AACxD,sEAAoD;AAEpD,gEAA8C;AAC9C,kEAAgD;AAEhD,sEAAoD;AACpD,wEAAsD;AAEtD,yEAAuD;AACvD,2EAAyD;AAEzD,2EAAyD;AAGzD,2EAAyD;AACzD,6EAA2D;AAG3D,6DAA2C;AAC3C,+DAA6C;AAG7C,qEAAmD;AACnD,uEAAqD;AAGrD,6DAA2C;AAC3C,+DAA6C;AAG7C,yDAAuC;AACvC,2DAAyC;AAGzC,8DAA4C;AAC5C,gEAA8C;AAG9C,2EAAyD;AACzD,6EAA2D;AAG3D,oEAAkD;AAClD,iFAA+D;AAC/D,sEAAoD;AACpD,mFAAiE;AAGjE,oEAAkD;AAClD,sEAAoD;AAGpD,mEAAiD;AACjD,yEAAuD;AACvD,qEAAmD;AACnD,2EAAyD;AAGzD,6DAA2C;AAC3C,mEAAiD;AACjD,+DAA6C;AAC7C,qEAAmD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAE7C,0DAAwC;AACxC,0DAAwC;AACxC,gEAA8C;AAC9C,uEAAqD;AACrD,6EAA2D;AAC3D,6EAA2D;AAC3D,+DAA6C;AAC7C,qEAAmD;AACnD,iEAA+C;AAC/C,uEAAqD;AACrD,mEAAiD;AACjD,6DAA2C;AAC3C,0EAAwD;AACxD,oEAAkD;AAClD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,yEAAuD;AACvD,2DAAyC;AACzC,oEAAkD;AAClD,kEAAgD;AAChD,wEAAsD;AACtD,kFAAgE;AAChE,sFAAoE;AAEpE,4DAA0C;AAC1C,4DAA0C;AAC1C,kEAAgD;AAChD,yEAAuD;AACvD,+EAA6D;AAC7D,+EAA6D;AAC7D,iEAA+C;AAC/C,uEAAqD;AACrD,qEAAmD;AACnD,+DAA6C;AAC7C,mEAAiD;AACjD,yEAAuD;AACvD,qEAAmD;AACnD,+DAA6C;AAC7C,4EAA0D;AAC1D,sEAAoD;AACpD,+DAA6C;AAC7C,wEAAsD;AACtD,qEAAmD;AACnD,2EAAyD;AACzD,6DAA2C;AAC3C,sEAAoD;AACpD,oEAAkD;AAClD,0EAAwD;AACxD,oFAAkE;AAClE,wFAAsE;AAEtE,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,oEAAkD;AAClD,4EAA0D;AAC1D,sFAAoE;AACpE,yEAAuD;AACvD,oFAAkE;AAClE,0FAAwE;AACxE,2EAAyD;AACzD,sFAAoE;AACpE,4FAA0E;AAC1E,sFAAoE;AACpE,0EAAwD;AACxD,4EAA0D;AAC1D,iEAA+C;AAC/C,mEAAiD;AACjD,wEAAsD;AACtD,uEAAqD;AACrD,oEAAkD;AAClD,sEAAoD;AACpD,4EAA0D;AAC1D,8EAA4D;AAC5D,6EAA2D;AAC3D,+EAA6D;AAC7D,wEAAsD;AACtD,0EAAwD;AACxD,qEAAmD;AACnD,qEAAmD;AACnD,kEAAgD;AAChD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,yEAAuD;AACvD,2EAAyD;AACzD,gFAA8D;AAC9D,kFAAgE;AAChE,mEAAiD;AACjD,qEAAmD;AACnD,0DAAwC;AACxC,4DAA0C;AAC1C,qEAAmD;AACnD,uEAAqD;AAGrD,sEAAoD;AACpD,wEAAsD;AAEtD,kEAAgD;AAChD,oEAAkD;AAClD,4EAA0D;AAC1D,8EAA4D;AAE5D,mEAAiD;AACjD,qEAAmD;AAEnD,yEAAuD;AACvD,2EAAyD;AAEzD,oEAAkD;AAClD,wEAAsD;AACtD,0EAAwD;AACxD,sEAAoD;AAEpD,gEAA8C;AAC9C,kEAAgD;AAEhD,sEAAoD;AACpD,wEAAsD;AAEtD,yEAAuD;AACvD,2EAAyD;AAGzD,2EAAyD;AACzD,6EAA2D;AAG3D,6DAA2C;AAC3C,+DAA6C;AAG7C,qEAAmD;AACnD,uEAAqD;AAGrD,6DAA2C;AAC3C,+DAA6C;AAG7C,yDAAuC;AACvC,2DAAyC;AAGzC,8DAA4C;AAC5C,gEAA8C;AAG9C,2EAAyD;AACzD,6EAA2D;AAG3D,oEAAkD;AAClD,iFAA+D;AAC/D,sEAAoD;AACpD,mFAAiE;AAGjE,oEAAkD;AAClD,sEAAoD;AACpD,4EAA0D;AAC1D,8EAA4D;AAC5D,iFAA+D;AAC/D,mFAAiE;AACjE,2EAAyD;AAGzD,mEAAiD;AACjD,yEAAuD;AACvD,qEAAmD;AACnD,2EAAyD;AAGzD,6DAA2C;AAC3C,mEAAiD;AACjD,+DAA6C;AAC7C,qEAAmD"}
@@ -1,5 +1,6 @@
1
1
  import { AbyssService } from '../../../enum/abyss-service.enum';
2
2
  import { ActivityOrderBy, ActivityStatus } from '../../../enum/activity.enum';
3
+ import { ServiceActivationSubjectType } from '../../../enum/service-activation.enum';
3
4
  import { QueryPaginate } from '../type-message/base-paginate';
4
5
  export interface IRecordPresenceActivityAdminBody {
5
6
  userId: string;
@@ -23,3 +24,7 @@ export interface IGetUserActivityAdminParams {
23
24
  export interface IGetOrganizationActivityAdminParams {
24
25
  organizationId: string;
25
26
  }
27
+ export interface IListServiceActivationsActivityAdminQuery {
28
+ subjectType: ServiceActivationSubjectType;
29
+ subjectId: string;
30
+ }
@@ -169,3 +169,6 @@ export interface IRetryCommercialGestureAdminBillingParams {
169
169
  billingAccountId: string;
170
170
  gestureId: string;
171
171
  }
172
+ export interface IGetPaidPurchaseAdminBillingParams {
173
+ projectId: string;
174
+ }
@@ -49,6 +49,8 @@ export * from './session.request';
49
49
  export * from './mcp-connection.request';
50
50
  export * from './oauth-authorization-request.request';
51
51
  export * from './activity.admin.request';
52
+ export * from './referred-traffic.admin.request';
53
+ export * from './short-link-protection.admin.request';
52
54
  export * from './service-nudge.request';
53
55
  export * from './service-nudge.admin.request';
54
56
  export * from './funding.request';
@@ -65,6 +65,8 @@ __exportStar(require("./session.request"), exports);
65
65
  __exportStar(require("./mcp-connection.request"), exports);
66
66
  __exportStar(require("./oauth-authorization-request.request"), exports);
67
67
  __exportStar(require("./activity.admin.request"), exports);
68
+ __exportStar(require("./referred-traffic.admin.request"), exports);
69
+ __exportStar(require("./short-link-protection.admin.request"), exports);
68
70
  __exportStar(require("./service-nudge.request"), exports);
69
71
  __exportStar(require("./service-nudge.admin.request"), exports);
70
72
  __exportStar(require("./funding.request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C;AAC5C,wDAAsC;AACtC,kDAAgC;AAChC,iDAA+B;AAC/B,4DAA0C;AAC1C,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,gEAA8C;AAC9C,0DAAwC;AACxC,oDAAkC;AAClC,0DAAwC;AACxC,gEAA8C;AAC9C,4DAA0C;AAC1C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,6DAA2C;AAC3C,oDAAkC;AAClC,iEAA+C;AAC/C,6EAA2D;AAC3D,iFAA+D;AAC/D,gEAA8C;AAC9C,+DAA6C;AAC7C,yDAAuC;AACvC,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,iEAA+C;AAC/C,+DAA6C;AAC7C,2DAAyC;AACzC,iDAA+B;AAC/B,gEAA8C;AAC9C,yDAAuC;AACvC,oEAAkD;AAClD,8DAA4C;AAC5C,uDAAqC;AACrC,iDAA+B;AAC/B,6DAA2C;AAC3C,gEAA8C;AAC9C,oDAAkC;AAClC,2DAAyC;AACzC,wEAAsD;AACtD,2DAAyC;AACzC,0DAAwC;AACxC,gEAA8C;AAC9C,oDAAkC;AAClC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C;AAC5C,wDAAsC;AACtC,kDAAgC;AAChC,iDAA+B;AAC/B,4DAA0C;AAC1C,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,gEAA8C;AAC9C,0DAAwC;AACxC,oDAAkC;AAClC,0DAAwC;AACxC,gEAA8C;AAC9C,4DAA0C;AAC1C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,6DAA2C;AAC3C,oDAAkC;AAClC,iEAA+C;AAC/C,6EAA2D;AAC3D,iFAA+D;AAC/D,gEAA8C;AAC9C,+DAA6C;AAC7C,yDAAuC;AACvC,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,iEAA+C;AAC/C,+DAA6C;AAC7C,2DAAyC;AACzC,iDAA+B;AAC/B,gEAA8C;AAC9C,yDAAuC;AACvC,oEAAkD;AAClD,8DAA4C;AAC5C,uDAAqC;AACrC,iDAA+B;AAC/B,6DAA2C;AAC3C,gEAA8C;AAC9C,oDAAkC;AAClC,2DAAyC;AACzC,wEAAsD;AACtD,2DAAyC;AACzC,mEAAiD;AACjD,wEAAsD;AACtD,0DAAwC;AACxC,gEAA8C;AAC9C,oDAAkC;AAClC,0DAAwC"}
@@ -0,0 +1,16 @@
1
+ import { BillingMetric, LoyaltyGrantMode, PlanAccountType } from '../../../enum';
2
+ export interface ICreateLoyaltyRuleAdminBillingBody {
3
+ metric: BillingMetric;
4
+ minTenureMonths: number;
5
+ mode: LoyaltyGrantMode;
6
+ value: number;
7
+ scopes: PlanAccountType[];
8
+ active: boolean;
9
+ }
10
+ export interface IUpdateLoyaltyRuleAdminBillingParams {
11
+ loyaltyRuleId: string;
12
+ }
13
+ export type IUpdateLoyaltyRuleAdminBillingBody = Partial<ICreateLoyaltyRuleAdminBillingBody>;
14
+ export interface IDeleteLoyaltyRuleAdminBillingParams {
15
+ loyaltyRuleId: string;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=loyalty-rule.admin.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyalty-rule.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/loyalty-rule.admin.request.ts"],"names":[],"mappings":""}
@@ -1,5 +1,7 @@
1
- import { BillingMetric, BillingQuotaCapAction, BillingQuotaCapMode, BillingService, QuotaCeilingMode, QuotaGrantScope, StorageSubtotalSource } from '../../../enum';
1
+ import { BillingInterval, BillingMetric, BillingQuotaCapAction, BillingQuotaCapMode, BillingService, QuotaCeilingMode, QuotaGrantScope, StorageSubtotalSource } from '../../../enum';
2
2
  import { IBillingAddress } from '../../models/billing-account.model';
3
+ import { BillingModuleId } from '../../../../constants/module-catalog.constants';
4
+ import type { ICancellationFlowContext } from './subscription-retention.request';
3
5
  export interface IGetBillingOrganizationParams {
4
6
  organizationId: string;
5
7
  }
@@ -25,6 +27,16 @@ export interface IPreviewPlanChangeOrganizationParams {
25
27
  }
26
28
  export interface IPreviewPlanChangeOrganizationQuery {
27
29
  planTemplateId: string;
30
+ interval?: BillingInterval;
31
+ moduleId?: BillingModuleId;
32
+ moduleQuantity?: number;
33
+ }
34
+ export interface ISetBillingIntervalOrganizationParams {
35
+ organizationId: string;
36
+ }
37
+ export interface ISetBillingIntervalOrganizationBody {
38
+ interval: BillingInterval;
39
+ cancellationFlow?: ICancellationFlowContext;
28
40
  }
29
41
  export interface ICreatePlanRequestOrganizationParams {
30
42
  organizationId: string;
@@ -40,6 +52,8 @@ export interface ICancelScheduledDowngradeOrganizationParams {
40
52
  }
41
53
  export interface ISubscribePlanOrganizationBody {
42
54
  planTemplateId: string;
55
+ interval?: BillingInterval;
56
+ cancellationFlow?: ICancellationFlowContext;
43
57
  }
44
58
  export interface IListInvoicesOrganizationParams {
45
59
  organizationId: string;
@@ -0,0 +1,4 @@
1
+ export interface IGetReferredTrafficAnalyticsAdminQuery {
2
+ from: string;
3
+ to: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=referred-traffic.admin.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referred-traffic.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/referred-traffic.admin.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface IGetRetentionMetricsAdminBillingQuery {
2
+ from: string;
3
+ to: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=retention-metrics.admin.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retention-metrics.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/retention-metrics.admin.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ISetShortLinkProtectionAdminParams {
2
+ shortLinkId: string;
3
+ }
4
+ export interface ISetShortLinkProtectionAdminBody {
5
+ isProtected: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=short-link-protection.admin.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"short-link-protection.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/short-link-protection.admin.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ import { CancellationReason } from '../../../enum';
2
+ export interface ICancellationFlowContext {
3
+ reason?: CancellationReason | null;
4
+ reasonText?: string | null;
5
+ }
6
+ export interface ICancelSubscriptionBody {
7
+ reason?: CancellationReason | null;
8
+ reasonText?: string | null;
9
+ }
10
+ export interface IPauseSubscriptionBody {
11
+ months: 1 | 2 | 3;
12
+ cancellationFlow?: ICancellationFlowContext;
13
+ }
14
+ export interface IListRetentionOffersQuery {
15
+ reason?: CancellationReason;
16
+ }
17
+ export interface ICancelSubscriptionOrganizationParams {
18
+ organizationId: string;
19
+ }
20
+ export interface IRevokeCancellationOrganizationParams {
21
+ organizationId: string;
22
+ }
23
+ export interface IPauseSubscriptionOrganizationParams {
24
+ organizationId: string;
25
+ }
26
+ export interface ICancelPauseOrganizationParams {
27
+ organizationId: string;
28
+ }
29
+ export interface IResumeSubscriptionOrganizationParams {
30
+ organizationId: string;
31
+ }
32
+ export interface IListRetentionOffersOrganizationParams {
33
+ organizationId: string;
34
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=subscription-retention.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-retention.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/subscription-retention.request.ts"],"names":[],"mappings":""}
@@ -1,4 +1,6 @@
1
- import { BillingMetric, BillingQuotaCapAction, BillingQuotaCapMode, BillingService, QuotaCeilingMode, StorageSubtotalSource } from '../../../enum';
1
+ import { BillingMetric, BillingQuotaCapAction, BillingQuotaCapMode, BillingService, BillingInterval, QuotaCeilingMode, StorageSubtotalSource } from '../../../enum';
2
+ import { BillingModuleId } from '../../../../constants/module-catalog.constants';
3
+ import type { ICancellationFlowContext } from './subscription-retention.request';
2
4
  import { IBillingAddress } from '../../models/billing-account.model';
3
5
  import { QueryPaginate } from '../type-message/base-paginate';
4
6
  import { BaseOrder } from '../type-message/base-order';
@@ -32,9 +34,18 @@ export interface ISubscribeUserPlanBody {
32
34
  planTemplateId: string;
33
35
  creditAmount?: number;
34
36
  eurAmount?: number;
37
+ interval?: BillingInterval;
38
+ cancellationFlow?: ICancellationFlowContext;
35
39
  }
36
40
  export interface IPreviewUserPlanChangeQuery {
37
41
  planTemplateId: string;
42
+ interval?: BillingInterval;
43
+ moduleId?: BillingModuleId;
44
+ moduleQuantity?: number;
45
+ }
46
+ export interface ISetUserBillingIntervalBody {
47
+ interval: BillingInterval;
48
+ cancellationFlow?: ICancellationFlowContext;
38
49
  }
39
50
  export interface ICheckUserQuotaBody {
40
51
  service: BillingService;
@@ -2,6 +2,7 @@ import { AbyssService } from '../../../enum/abyss-service.enum';
2
2
  import { ActivityStatus } from '../../../enum/activity.enum';
3
3
  import { OrganizationKind } from '../../../enum/organization-kind.enum';
4
4
  import { IActivityScore } from '../../models/activity.model';
5
+ import { IServiceActivation } from '../../models/service-activation.model';
5
6
  import { BasePaginate } from '../type-message/base-paginate';
6
7
  import { IResponse } from '../type-message/response';
7
8
  export interface IActivityOverviewAdminData {
@@ -89,3 +90,7 @@ export type IGetUserActivityAdminResponse = IResponse<IGetUserActivityAdminData>
89
90
  export type IPaginateOrganizationsActivityAdminResponse = IResponse<BasePaginate<IActivityOrganizationRowAdmin>>;
90
91
  export type IGetOrganizationActivityAdminResponse = IResponse<IGetOrganizationActivityAdminData>;
91
92
  export type IGetServicesActivityAdminResponse = IResponse<IGetServicesActivityAdminData>;
93
+ export interface IListServiceActivationsActivityAdminData {
94
+ activations: IServiceActivation[];
95
+ }
96
+ export type IListServiceActivationsActivityAdminResponse = IResponse<IListServiceActivationsActivityAdminData>;
@@ -1,5 +1,5 @@
1
1
  import { OverageRateSource } from '../../../../utils/pricing.utils';
2
- import { BillingMetric, BillingService, CommercialGestureDestination, CommercialGestureLineIneligibility, InvoiceLineType, PlanTier, QuotaCeilingMode } from '../../../enum';
2
+ import { BillingMetric, BillingService, CommercialGestureDestination, CommercialGestureLineIneligibility, InvoiceLineType, PaidPurchaseReason, PlanTier, QuotaCeilingMode } from '../../../enum';
3
3
  import { IBillingAccount } from '../../models/billing-account.model';
4
4
  import { IBillingQuotaCap } from '../../models/billing-quota-cap.model';
5
5
  import { ICommercialGesture } from '../../models/commercial-gesture.model';
@@ -160,3 +160,8 @@ export type IRetryCommercialGestureAdminBillingResponse = IResponse<IRetryCommer
160
160
  export interface ICommercialGestureExceedsRemainingErrorParams {
161
161
  remainingEurCents: number;
162
162
  }
163
+ export interface IGetPaidPurchaseAdminBillingData {
164
+ hasPaidPurchase: boolean;
165
+ reason: PaidPurchaseReason | null;
166
+ }
167
+ export type IGetPaidPurchaseAdminBillingResponse = IResponse<IGetPaidPurchaseAdminBillingData>;
@@ -8,6 +8,7 @@ export interface IOwnedBillingModule {
8
8
  quantity: number;
9
9
  status: BillingAddonStatus;
10
10
  monthlyPriceCents: number;
11
+ yearlyPriceCents: number;
11
12
  pendingQuantity: number | null;
12
13
  pendingEffectiveAt: string | null;
13
14
  }
@@ -10,6 +10,7 @@ export interface IPublicPlan {
10
10
  accountType: PlanAccountType;
11
11
  name: string;
12
12
  monthlyPriceEur: number;
13
+ yearlyPriceCents: number;
13
14
  quotas: IPlanServiceQuota[];
14
15
  overagePricing: IPlanOveragePricing[];
15
16
  }
@@ -42,7 +42,6 @@ export * from './team.response';
42
42
  export * from './token-history.admin.response';
43
43
  export * from './user-billing.response';
44
44
  export * from './user-cookie-consent.response';
45
- export * from './user-feedback-state.response';
46
45
  export * from './user-notification.admin.response';
47
46
  export * from './user-notification.response';
48
47
  export * from './user.admin.response';
@@ -52,6 +51,9 @@ export * from './session.response';
52
51
  export * from './mcp-connection.response';
53
52
  export * from './oauth-authorization-request.response';
54
53
  export * from './activity.admin.response';
54
+ export * from './referred-traffic.admin.response';
55
+ export * from './short-link-protection.admin.response';
56
+ export * from './user-feedback-state.response';
55
57
  export * from './service-nudge.response';
56
58
  export * from './service-nudge.admin.response';
57
59
  export * from './funding.response';
@@ -58,7 +58,6 @@ __exportStar(require("./team.response"), exports);
58
58
  __exportStar(require("./token-history.admin.response"), exports);
59
59
  __exportStar(require("./user-billing.response"), exports);
60
60
  __exportStar(require("./user-cookie-consent.response"), exports);
61
- __exportStar(require("./user-feedback-state.response"), exports);
62
61
  __exportStar(require("./user-notification.admin.response"), exports);
63
62
  __exportStar(require("./user-notification.response"), exports);
64
63
  __exportStar(require("./user.admin.response"), exports);
@@ -68,6 +67,9 @@ __exportStar(require("./session.response"), exports);
68
67
  __exportStar(require("./mcp-connection.response"), exports);
69
68
  __exportStar(require("./oauth-authorization-request.response"), exports);
70
69
  __exportStar(require("./activity.admin.response"), exports);
70
+ __exportStar(require("./referred-traffic.admin.response"), exports);
71
+ __exportStar(require("./short-link-protection.admin.response"), exports);
72
+ __exportStar(require("./user-feedback-state.response"), exports);
71
73
  __exportStar(require("./service-nudge.response"), exports);
72
74
  __exportStar(require("./service-nudge.admin.response"), exports);
73
75
  __exportStar(require("./funding.response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,+DAA6C;AAC7C,yDAAuC;AACvC,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,iEAA+C;AAC/C,gEAA8C;AAC9C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,8DAA4C;AAC5C,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C;AAC7C,wDAAsC;AACtC,kDAAgC;AAChC,8DAA4C;AAC5C,qDAAmC;AACnC,4DAA0C;AAC1C,yEAAuD;AACvD,4DAA0C;AAC1C,2DAAyC;AACzC,iEAA+C;AAC/C,qDAAmC;AACnC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,+DAA6C;AAC7C,yDAAuC;AACvC,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,iEAA+C;AAC/C,gEAA8C;AAC9C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,8DAA4C;AAC5C,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C;AAC7C,wDAAsC;AACtC,kDAAgC;AAChC,8DAA4C;AAC5C,qDAAmC;AACnC,4DAA0C;AAC1C,yEAAuD;AACvD,4DAA0C;AAC1C,oEAAkD;AAClD,yEAAuD;AACvD,iEAA+C;AAC/C,2DAAyC;AACzC,iEAA+C;AAC/C,qDAAmC;AACnC,2DAAyC"}
@@ -0,0 +1,16 @@
1
+ import { BillingMetric } from '../../../enum';
2
+ import { IResponse } from '../type-message/response';
3
+ export interface ILoyaltyBonusEntry {
4
+ metric: BillingMetric;
5
+ bonus: number;
6
+ nextTierAt: string | null;
7
+ nextTierBonus: number | null;
8
+ }
9
+ export interface IGetLoyaltyBonusData {
10
+ bonuses: ILoyaltyBonusEntry[];
11
+ }
12
+ export type IGetLoyaltyBonusUserResponse = IResponse<IGetLoyaltyBonusData>;
13
+ export interface IGetLoyaltyBonusOrganizationParams {
14
+ organizationId: string;
15
+ }
16
+ export type IGetLoyaltyBonusOrganizationResponse = IResponse<IGetLoyaltyBonusData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=loyalty-bonus.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyalty-bonus.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/loyalty-bonus.response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { ILoyaltyRule } from '../../models';
2
+ import { IResponse } from '../type-message/response';
3
+ export interface IListLoyaltyRulesAdminBillingData {
4
+ rules: ILoyaltyRule[];
5
+ }
6
+ export type IListLoyaltyRulesAdminBillingResponse = IResponse<IListLoyaltyRulesAdminBillingData>;
7
+ export interface ILoyaltyRuleAdminBillingData {
8
+ rule: ILoyaltyRule;
9
+ }
10
+ export type ICreateLoyaltyRuleAdminBillingResponse = IResponse<ILoyaltyRuleAdminBillingData>;
11
+ export type IUpdateLoyaltyRuleAdminBillingResponse = IResponse<ILoyaltyRuleAdminBillingData>;
12
+ export type IDeleteLoyaltyRuleAdminBillingResponse = IResponse<Record<string, never>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=loyalty-rule.admin.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyalty-rule.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/loyalty-rule.admin.response.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { IBillingAccount } from '../../models/billing-account.model';
2
- import { IPlanChangeOverMetric } from './user-billing.response';
2
+ import { IPlanChangeOverMetric, IPlanChangePricing, ISetBillingIntervalData } from './user-billing.response';
3
3
  import { IBillingQuotaCap } from '../../models/billing-quota-cap.model';
4
4
  import { ICreditTransaction } from '../../models/credit-transaction.model';
5
5
  import { IInvoice, IInvoiceCommercialGestureRequest } from '../../models/invoice.model';
@@ -41,8 +41,10 @@ export interface IPreviewOrganizationPlanChangeData {
41
41
  hasCard: boolean;
42
42
  effectiveDate: string;
43
43
  overMetrics: IPlanChangeOverMetric[];
44
+ pricing: IPlanChangePricing;
44
45
  }
45
46
  export type IPreviewOrganizationPlanChangeResponse = IResponse<IPreviewOrganizationPlanChangeData>;
47
+ export type ISetBillingIntervalOrganizationResponse = IResponse<ISetBillingIntervalData>;
46
48
  export type ICustomerCommercialGesture = Omit<ICommercialGesture, 'reason' | 'internalComment' | 'grantedByAdminId' | 'idempotencyKey' | 'failureReason' | 'failureCode' | 'requestedPercent'>;
47
49
  export interface ICustomerInvoice extends Omit<IInvoice, 'lines' | 'commercialGestures' | 'creditNotes' | 'commercialGestureRequest'> {
48
50
  lines: IInvoiceLine[];
@@ -0,0 +1,19 @@
1
+ import { ReferredTrafficMedium } from '../../../enum/referred-traffic-medium.enum';
2
+ import { IResponse } from '../type-message/response';
3
+ export interface IReferredTrafficRowAdmin {
4
+ organizationId: string;
5
+ organizationName: string;
6
+ projectId: string;
7
+ projectName: string;
8
+ medium: ReferredTrafficMedium;
9
+ clicks: number;
10
+ uniqueClicks: number | null;
11
+ }
12
+ export interface IReferredTrafficTotalsAdmin {
13
+ clicks: number;
14
+ }
15
+ export interface IGetReferredTrafficAnalyticsAdminData {
16
+ rows: IReferredTrafficRowAdmin[];
17
+ totals: IReferredTrafficTotalsAdmin;
18
+ }
19
+ export type IGetReferredTrafficAnalyticsAdminResponse = IResponse<IGetReferredTrafficAnalyticsAdminData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=referred-traffic.admin.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referred-traffic.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/referred-traffic.admin.response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import { BillingInterval, CancellationReason, RetentionOffer } from '../../../enum';
2
+ import { IResponse } from '../type-message/response';
3
+ export type RetentionCohortMonth = 'm1' | 'm2' | 'm3' | 'm6' | 'm12';
4
+ export interface IRetentionCohort {
5
+ month: string;
6
+ size: number;
7
+ retained: Record<RetentionCohortMonth, number | null>;
8
+ }
9
+ export interface IRetentionOfferAcceptance {
10
+ shown: number;
11
+ accepted: number;
12
+ }
13
+ export interface IRetentionMetrics {
14
+ cohorts: IRetentionCohort[];
15
+ mrrCents: number;
16
+ payingAccounts: number;
17
+ intervalSplit: Record<BillingInterval, number>;
18
+ churnVoluntary: number;
19
+ churnInvoluntary: number;
20
+ cancellationReasons: Record<CancellationReason | 'NONE', number>;
21
+ offerAcceptance: Record<RetentionOffer, IRetentionOfferAcceptance>;
22
+ pauses: {
23
+ active: number;
24
+ resumed: number;
25
+ failed: number;
26
+ };
27
+ }
28
+ export type IGetRetentionMetricsAdminBillingData = IRetentionMetrics;
29
+ export type IGetRetentionMetricsAdminBillingResponse = IResponse<IGetRetentionMetricsAdminBillingData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=retention-metrics.admin.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retention-metrics.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/retention-metrics.admin.response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { IResponse } from '../type-message/response';
2
+ export interface IShortLinkProtectionAdmin {
3
+ shortLinkId: string;
4
+ slug: string;
5
+ originalUrl: string;
6
+ isProtected: boolean;
7
+ protectedAt: Date | null;
8
+ protectedByAdminId: string | null;
9
+ }
10
+ export interface ISetShortLinkProtectionAdminData {
11
+ shortLink: IShortLinkProtectionAdmin;
12
+ }
13
+ export type ISetShortLinkProtectionAdminResponse = IResponse<ISetShortLinkProtectionAdminData>;
14
+ export interface IGetBrandingShortLinkAdminData {
15
+ shortLinkId: string;
16
+ }
17
+ export type IGetBrandingShortLinkAdminResponse = IResponse<IGetBrandingShortLinkAdminData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=short-link-protection.admin.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"short-link-protection.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/short-link-protection.admin.response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { RetentionOffer } from '../../../enum';
2
+ import { IBillingAccount } from '../../models/billing-account.model';
3
+ import { IResponse } from '../type-message/response';
4
+ export interface ISubscriptionRetentionData {
5
+ billingAccount: IBillingAccount;
6
+ }
7
+ export type ISubscriptionRetentionResponse = IResponse<ISubscriptionRetentionData>;
8
+ export interface IListRetentionOffersData {
9
+ offers: RetentionOffer[];
10
+ }
11
+ export type IListRetentionOffersResponse = IResponse<IListRetentionOffersData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=subscription-retention.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-retention.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/subscription-retention.response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { IResponse } from '../type-message/response';
2
+ export interface IGetUnpaidAmountData {
3
+ amountDueCents: number;
4
+ }
5
+ export type IGetUnpaidAmountUserResponse = IResponse<IGetUnpaidAmountData>;
6
+ export interface IGetUnpaidAmountOrganizationParams {
7
+ organizationId: string;
8
+ }
9
+ export type IGetUnpaidAmountOrganizationResponse = IResponse<IGetUnpaidAmountData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=unpaid-amount.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unpaid-amount.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/unpaid-amount.response.ts"],"names":[],"mappings":""}