@m5kdev/backend 0.1.0 → 0.1.1

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 (199) hide show
  1. package/.cursor/rules/backend.mdc +70 -0
  2. package/.turbo/turbo-build.log +5 -0
  3. package/.turbo/turbo-check-types.log +5 -0
  4. package/.turbo/turbo-lint$colon$fix.log +255 -0
  5. package/CHANGELOG.md +10 -0
  6. package/dist/src/lib/posthog.d.ts +3 -0
  7. package/dist/src/lib/posthog.d.ts.map +1 -0
  8. package/dist/src/lib/sentry.d.ts +2 -0
  9. package/dist/src/lib/sentry.d.ts.map +1 -0
  10. package/dist/src/modules/access/access.repository.d.ts +2348 -0
  11. package/dist/src/modules/access/access.repository.d.ts.map +1 -0
  12. package/dist/src/modules/access/access.service.d.ts +22 -0
  13. package/dist/src/modules/access/access.service.d.ts.map +1 -0
  14. package/dist/src/modules/access/access.test.d.ts +2 -0
  15. package/dist/src/modules/access/access.test.d.ts.map +1 -0
  16. package/dist/src/modules/access/access.utils.d.ts +17 -0
  17. package/dist/src/modules/access/access.utils.d.ts.map +1 -0
  18. package/dist/src/modules/ai/ai.db.d.ts +396 -0
  19. package/dist/src/modules/ai/ai.db.d.ts.map +1 -0
  20. package/dist/src/modules/ai/ai.prompt.d.ts +28 -0
  21. package/dist/src/modules/ai/ai.prompt.d.ts.map +1 -0
  22. package/dist/src/modules/ai/ai.repository.d.ts +424 -0
  23. package/dist/src/modules/ai/ai.repository.d.ts.map +1 -0
  24. package/dist/src/modules/ai/ai.router.d.ts +2 -0
  25. package/dist/src/modules/ai/ai.router.d.ts.map +1 -0
  26. package/dist/src/modules/ai/ai.service.d.ts +115 -0
  27. package/dist/src/modules/ai/ai.service.d.ts.map +1 -0
  28. package/dist/src/modules/ai/ai.trpc.d.ts +59 -0
  29. package/dist/src/modules/ai/ai.trpc.d.ts.map +1 -0
  30. package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts +8 -0
  31. package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts.map +1 -0
  32. package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts +230 -0
  33. package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts.map +1 -0
  34. package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts +3 -0
  35. package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts.map +1 -0
  36. package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts +7 -0
  37. package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts.map +1 -0
  38. package/dist/src/modules/ai/ideogram/ideogram.service.d.ts +10 -0
  39. package/dist/src/modules/ai/ideogram/ideogram.service.d.ts.map +1 -0
  40. package/dist/src/modules/auth/auth.db.d.ts +2336 -0
  41. package/dist/src/modules/auth/auth.db.d.ts.map +1 -0
  42. package/dist/src/modules/auth/auth.dto.d.ts +66 -0
  43. package/dist/src/modules/auth/auth.dto.d.ts.map +1 -0
  44. package/dist/src/modules/auth/auth.lib.d.ts +4874 -0
  45. package/dist/src/modules/auth/auth.lib.d.ts.map +1 -0
  46. package/dist/src/modules/auth/auth.middleware.d.ts +615 -0
  47. package/dist/src/modules/auth/auth.middleware.d.ts.map +1 -0
  48. package/dist/src/modules/auth/auth.repository.d.ts +2417 -0
  49. package/dist/src/modules/auth/auth.repository.d.ts.map +1 -0
  50. package/dist/src/modules/auth/auth.service.d.ts +104 -0
  51. package/dist/src/modules/auth/auth.service.d.ts.map +1 -0
  52. package/dist/src/modules/auth/auth.trpc.d.ts +309 -0
  53. package/dist/src/modules/auth/auth.trpc.d.ts.map +1 -0
  54. package/dist/src/modules/auth/auth.utils.d.ts +2352 -0
  55. package/dist/src/modules/auth/auth.utils.d.ts.map +1 -0
  56. package/dist/src/modules/base/base.abstract.d.ts +19 -0
  57. package/dist/src/modules/base/base.abstract.d.ts.map +1 -0
  58. package/dist/src/modules/base/base.dto.d.ts +70 -0
  59. package/dist/src/modules/base/base.dto.d.ts.map +1 -0
  60. package/dist/src/modules/base/base.grants.d.ts +29 -0
  61. package/dist/src/modules/base/base.grants.d.ts.map +1 -0
  62. package/dist/src/modules/base/base.grants.test.d.ts +2 -0
  63. package/dist/src/modules/base/base.grants.test.d.ts.map +1 -0
  64. package/dist/src/modules/base/base.repository.d.ts +97 -0
  65. package/dist/src/modules/base/base.repository.d.ts.map +1 -0
  66. package/dist/src/modules/base/base.service.d.ts +42 -0
  67. package/dist/src/modules/base/base.service.d.ts.map +1 -0
  68. package/dist/src/modules/base/base.types.d.ts +2 -0
  69. package/dist/src/modules/base/base.types.d.ts.map +1 -0
  70. package/dist/src/modules/billing/billing.db.d.ts +366 -0
  71. package/dist/src/modules/billing/billing.db.d.ts.map +1 -0
  72. package/dist/src/modules/billing/billing.repository.d.ts +2764 -0
  73. package/dist/src/modules/billing/billing.repository.d.ts.map +1 -0
  74. package/dist/src/modules/billing/billing.router.d.ts +5 -0
  75. package/dist/src/modules/billing/billing.router.d.ts.map +1 -0
  76. package/dist/src/modules/billing/billing.service.d.ts +60 -0
  77. package/dist/src/modules/billing/billing.service.d.ts.map +1 -0
  78. package/dist/src/modules/billing/billing.trpc.d.ts +75 -0
  79. package/dist/src/modules/billing/billing.trpc.d.ts.map +1 -0
  80. package/dist/src/modules/clay/clay.repository.d.ts +6 -0
  81. package/dist/src/modules/clay/clay.repository.d.ts.map +1 -0
  82. package/dist/src/modules/clay/clay.service.d.ts +29 -0
  83. package/dist/src/modules/clay/clay.service.d.ts.map +1 -0
  84. package/dist/src/modules/connect/connect.db.d.ts +357 -0
  85. package/dist/src/modules/connect/connect.db.d.ts.map +1 -0
  86. package/dist/src/modules/connect/connect.dto.d.ts +75 -0
  87. package/dist/src/modules/connect/connect.dto.d.ts.map +1 -0
  88. package/dist/src/modules/connect/connect.linkedin.d.ts +3 -0
  89. package/dist/src/modules/connect/connect.linkedin.d.ts.map +1 -0
  90. package/dist/src/modules/connect/connect.oauth.d.ts +28 -0
  91. package/dist/src/modules/connect/connect.oauth.d.ts.map +1 -0
  92. package/dist/src/modules/connect/connect.repository.d.ts +414 -0
  93. package/dist/src/modules/connect/connect.repository.d.ts.map +1 -0
  94. package/dist/src/modules/connect/connect.router.d.ts +5 -0
  95. package/dist/src/modules/connect/connect.router.d.ts.map +1 -0
  96. package/dist/src/modules/connect/connect.service.d.ts +89 -0
  97. package/dist/src/modules/connect/connect.service.d.ts.map +1 -0
  98. package/dist/src/modules/connect/connect.trpc.d.ts +81 -0
  99. package/dist/src/modules/connect/connect.trpc.d.ts.map +1 -0
  100. package/dist/src/modules/connect/connect.types.d.ts +26 -0
  101. package/dist/src/modules/connect/connect.types.d.ts.map +1 -0
  102. package/dist/src/modules/crypto/crypto.db.d.ts +152 -0
  103. package/dist/src/modules/crypto/crypto.db.d.ts.map +1 -0
  104. package/dist/src/modules/crypto/crypto.repository.d.ts +160 -0
  105. package/dist/src/modules/crypto/crypto.repository.d.ts.map +1 -0
  106. package/dist/src/modules/crypto/crypto.service.d.ts +11 -0
  107. package/dist/src/modules/crypto/crypto.service.d.ts.map +1 -0
  108. package/dist/src/modules/email/email.service.d.ts +57 -0
  109. package/dist/src/modules/email/email.service.d.ts.map +1 -0
  110. package/dist/src/modules/file/file.repository.d.ts +13 -0
  111. package/dist/src/modules/file/file.repository.d.ts.map +1 -0
  112. package/dist/src/modules/file/file.router.d.ts +4 -0
  113. package/dist/src/modules/file/file.router.d.ts.map +1 -0
  114. package/dist/src/modules/file/file.service.d.ts +25 -0
  115. package/dist/src/modules/file/file.service.d.ts.map +1 -0
  116. package/dist/src/modules/recurrence/recurrence.db.d.ts +563 -0
  117. package/dist/src/modules/recurrence/recurrence.db.d.ts.map +1 -0
  118. package/dist/src/modules/recurrence/recurrence.repository.d.ts +585 -0
  119. package/dist/src/modules/recurrence/recurrence.repository.d.ts.map +1 -0
  120. package/dist/src/modules/recurrence/recurrence.service.d.ts +30 -0
  121. package/dist/src/modules/recurrence/recurrence.service.d.ts.map +1 -0
  122. package/dist/src/modules/recurrence/recurrence.trpc.d.ts +243 -0
  123. package/dist/src/modules/recurrence/recurrence.trpc.d.ts.map +1 -0
  124. package/dist/src/modules/social/social.dto.d.ts +35 -0
  125. package/dist/src/modules/social/social.dto.d.ts.map +1 -0
  126. package/dist/src/modules/social/social.linkedin.d.ts +11 -0
  127. package/dist/src/modules/social/social.linkedin.d.ts.map +1 -0
  128. package/dist/src/modules/social/social.linkedin.test.d.ts +2 -0
  129. package/dist/src/modules/social/social.linkedin.test.d.ts.map +1 -0
  130. package/dist/src/modules/social/social.service.d.ts +29 -0
  131. package/dist/src/modules/social/social.service.d.ts.map +1 -0
  132. package/dist/src/modules/social/social.types.d.ts +36 -0
  133. package/dist/src/modules/social/social.types.d.ts.map +1 -0
  134. package/dist/src/modules/tag/tag.db.d.ts +347 -0
  135. package/dist/src/modules/tag/tag.db.d.ts.map +1 -0
  136. package/dist/src/modules/tag/tag.dto.d.ts +1019 -0
  137. package/dist/src/modules/tag/tag.dto.d.ts.map +1 -0
  138. package/dist/src/modules/tag/tag.repository.d.ts +384 -0
  139. package/dist/src/modules/tag/tag.repository.d.ts.map +1 -0
  140. package/dist/src/modules/tag/tag.service.d.ts +36 -0
  141. package/dist/src/modules/tag/tag.service.d.ts.map +1 -0
  142. package/dist/src/modules/tag/tag.trpc.d.ts +191 -0
  143. package/dist/src/modules/tag/tag.trpc.d.ts.map +1 -0
  144. package/dist/src/modules/utils/applyPagination.d.ts +7 -0
  145. package/dist/src/modules/utils/applyPagination.d.ts.map +1 -0
  146. package/dist/src/modules/utils/applySorting.d.ts +9 -0
  147. package/dist/src/modules/utils/applySorting.d.ts.map +1 -0
  148. package/dist/src/modules/utils/getConditionsFromFilters.d.ts +5 -0
  149. package/dist/src/modules/utils/getConditionsFromFilters.d.ts.map +1 -0
  150. package/dist/src/modules/video/video.service.d.ts +8 -0
  151. package/dist/src/modules/video/video.service.d.ts.map +1 -0
  152. package/dist/src/modules/webhook/webhook.constants.d.ts +9 -0
  153. package/dist/src/modules/webhook/webhook.constants.d.ts.map +1 -0
  154. package/dist/src/modules/webhook/webhook.db.d.ts +137 -0
  155. package/dist/src/modules/webhook/webhook.db.d.ts.map +1 -0
  156. package/dist/src/modules/webhook/webhook.dto.d.ts +395 -0
  157. package/dist/src/modules/webhook/webhook.dto.d.ts.map +1 -0
  158. package/dist/src/modules/webhook/webhook.repository.d.ts +149 -0
  159. package/dist/src/modules/webhook/webhook.repository.d.ts.map +1 -0
  160. package/dist/src/modules/webhook/webhook.router.d.ts +4 -0
  161. package/dist/src/modules/webhook/webhook.router.d.ts.map +1 -0
  162. package/dist/src/modules/webhook/webhook.service.d.ts +10 -0
  163. package/dist/src/modules/webhook/webhook.service.d.ts.map +1 -0
  164. package/dist/src/modules/workflow/workflow.db.d.ts +297 -0
  165. package/dist/src/modules/workflow/workflow.db.d.ts.map +1 -0
  166. package/dist/src/modules/workflow/workflow.repository.d.ts +344 -0
  167. package/dist/src/modules/workflow/workflow.repository.d.ts.map +1 -0
  168. package/dist/src/modules/workflow/workflow.service.d.ts +22 -0
  169. package/dist/src/modules/workflow/workflow.service.d.ts.map +1 -0
  170. package/dist/src/modules/workflow/workflow.trpc.d.ts +93 -0
  171. package/dist/src/modules/workflow/workflow.trpc.d.ts.map +1 -0
  172. package/dist/src/modules/workflow/workflow.types.d.ts +21 -0
  173. package/dist/src/modules/workflow/workflow.types.d.ts.map +1 -0
  174. package/dist/src/modules/workflow/workflow.utils.d.ts +22 -0
  175. package/dist/src/modules/workflow/workflow.utils.d.ts.map +1 -0
  176. package/dist/src/test/stubs/utils.d.ts +3 -0
  177. package/dist/src/test/stubs/utils.d.ts.map +1 -0
  178. package/dist/src/trpc/context.d.ts +42 -0
  179. package/dist/src/trpc/context.d.ts.map +1 -0
  180. package/dist/src/trpc/index.d.ts +4 -0
  181. package/dist/src/trpc/index.d.ts.map +1 -0
  182. package/dist/src/trpc/procedures.d.ts +234 -0
  183. package/dist/src/trpc/procedures.d.ts.map +1 -0
  184. package/dist/src/trpc/utils.d.ts +5 -0
  185. package/dist/src/trpc/utils.d.ts.map +1 -0
  186. package/dist/src/types.d.ts +486 -0
  187. package/dist/src/types.d.ts.map +1 -0
  188. package/dist/src/utils/errors.d.ts +50 -0
  189. package/dist/src/utils/errors.d.ts.map +1 -0
  190. package/dist/src/utils/logger.d.ts +2 -0
  191. package/dist/src/utils/logger.d.ts.map +1 -0
  192. package/dist/src/utils/posthog.d.ts +14 -0
  193. package/dist/src/utils/posthog.d.ts.map +1 -0
  194. package/dist/src/utils/types.d.ts +5 -0
  195. package/dist/src/utils/types.d.ts.map +1 -0
  196. package/dist/tsconfig.tsbuildinfo +1 -0
  197. package/jest.config.ts +19 -0
  198. package/package.json +3 -6
  199. package/tsconfig.json +19 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.repository.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAiB,KAAK,gBAAgB,EAAW,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIpE,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;IASrE,qBAAqB,CAAC,EACpB,UAAU,EACV,OAAO,EACP,MAAM,GACP,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;IAmB9C,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;IAUzF,cAAc,CAAC,EACnB,UAAU,EACV,MAAM,GACP,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,iBAAiB,CAAC,OAAO,CAAC;IA6E9B,cAAc,CACZ,IAAI,EAAE,MAAM,GAAG,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC;CAM9B"}
@@ -0,0 +1,5 @@
1
+ import { Router } from "express";
2
+ import type { AuthMiddleware } from "#modules/auth/auth.middleware";
3
+ import type { BillingService } from "#modules/billing/billing.service";
4
+ export declare function createBillingRouter(authMiddleware: AuthMiddleware, service: BillingService): Router;
5
+ //# sourceMappingURL=billing.router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.router.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.router.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,cAAc,GACtB,MAAM,CAoER"}
@@ -0,0 +1,60 @@
1
+ import type Stripe from "stripe";
2
+ import type { User } from "#modules/auth/auth.lib";
3
+ import type { ServerResult, ServerResultAsync } from "#modules/base/base.dto";
4
+ import { BaseService } from "#modules/base/base.service";
5
+ import type { BillingRepository } from "#modules/billing/billing.repository";
6
+ export declare class BillingService extends BaseService<{
7
+ billing: BillingRepository;
8
+ }, never> {
9
+ createUserCustomer({ user, }: {
10
+ user: {
11
+ id: string;
12
+ email: string;
13
+ name?: string;
14
+ };
15
+ }): ServerResultAsync<Stripe.Customer>;
16
+ createUserHook({ user, }: {
17
+ user: {
18
+ id: string;
19
+ email: string;
20
+ name?: string;
21
+ };
22
+ }): ServerResultAsync<boolean>;
23
+ getActiveSubscription({ user }: {
24
+ user: User;
25
+ }): Promise<ServerResult<{
26
+ id: string;
27
+ plan: string;
28
+ referenceId: string;
29
+ status: string;
30
+ stripeCustomerId?: string | null | undefined;
31
+ stripeSubscriptionId?: string | null | undefined;
32
+ periodStart?: Date | null | undefined;
33
+ periodEnd?: Date | null | undefined;
34
+ cancelAtPeriodEnd?: boolean | null | undefined;
35
+ cancelAt?: Date | null | undefined;
36
+ canceledAt?: Date | null | undefined;
37
+ seats?: number | null | undefined;
38
+ trialStart?: Date | null | undefined;
39
+ trialEnd?: Date | null | undefined;
40
+ priceId?: string | null | undefined;
41
+ interval?: string | null | undefined;
42
+ unitAmount?: number | null | undefined;
43
+ discounts?: string[] | null | undefined;
44
+ } | null>>;
45
+ listInvoices({ user }: {
46
+ user: User;
47
+ }): ServerResultAsync<Stripe.Invoice[]>;
48
+ createCheckoutSession({ priceId }: {
49
+ priceId: string;
50
+ }, { user }: {
51
+ user: User;
52
+ }): ServerResultAsync<Stripe.Checkout.Session>;
53
+ createBillingPortalSession({ user, }: {
54
+ user: User;
55
+ }): ServerResultAsync<Stripe.BillingPortal.Session>;
56
+ constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe.Event>;
57
+ syncStripeData(customerId: string, eventType?: string): ServerResultAsync<boolean>;
58
+ processEvent(event: Stripe.Event): ServerResultAsync<boolean>;
59
+ }
60
+ //# sourceMappingURL=billing.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAyB7E,qBAAa,cAAe,SAAQ,WAAW,CAAC;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,EAAE,KAAK,CAAC;IAC9E,kBAAkB,CAAC,EACvB,IAAI,GACL,EAAE;QACD,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACpD,GAAG,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC;IAyBhC,cAAc,CAAC,EACnB,IAAI,GACL,EAAE;QACD,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACpD,GAAG,iBAAiB,CAAC,OAAO,CAAC;IAsBxB,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;IAI9C,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IAK3E,qBAAqB,CACzB,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,EAChC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,GACvB,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;IAcvC,0BAA0B,CAAC,EAC/B,IAAI,GACL,EAAE;QACD,IAAI,EAAE,IAAI,CAAC;KACZ,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;IAUnD,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC;IAU9E,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC,OAAO,CAAC;IAiBlF,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,iBAAiB,CAAC,OAAO,CAAC;CAuBpE"}
@@ -0,0 +1,75 @@
1
+ import type { BillingService } from "#modules/billing/billing.service";
2
+ export declare function createBillingTRPC(billingService: BillingService): import("@trpc/server").TRPCBuiltRouter<{
3
+ ctx: {
4
+ session: {
5
+ id: string;
6
+ userId: string;
7
+ expiresAt: Date;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ token: string;
11
+ ipAddress: string | null;
12
+ userAgent: string | null;
13
+ impersonatedBy: string | null;
14
+ activeOrganizationId: string | null;
15
+ activeOrganizationRole: string | null;
16
+ activeTeamId: string | null;
17
+ activeTeamRole: string | null;
18
+ };
19
+ user: {
20
+ name: string;
21
+ image: string | null;
22
+ id: string;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ email: string;
26
+ metadata: Record<string, unknown>;
27
+ emailVerified: boolean;
28
+ role: string | null;
29
+ banned: boolean | null;
30
+ banReason: string | null;
31
+ banExpires: Date | null;
32
+ stripeCustomerId: string | null;
33
+ paymentCustomerId: string | null;
34
+ paymentPlanTier: string | null;
35
+ paymentPlanExpiresAt: Date | null;
36
+ preferences: string | null;
37
+ onboarding: number | null;
38
+ flags: string | null;
39
+ };
40
+ };
41
+ meta: import("trpc-to-openapi").OpenApiMeta;
42
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
43
+ transformer: true;
44
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
45
+ getActiveSubscription: import("@trpc/server").TRPCQueryProcedure<{
46
+ input: void;
47
+ output: {
48
+ id: string;
49
+ plan: string;
50
+ referenceId: string;
51
+ status: string;
52
+ stripeCustomerId?: string | null | undefined;
53
+ stripeSubscriptionId?: string | null | undefined;
54
+ periodStart?: Date | null | undefined;
55
+ periodEnd?: Date | null | undefined;
56
+ cancelAtPeriodEnd?: boolean | null | undefined;
57
+ cancelAt?: Date | null | undefined;
58
+ canceledAt?: Date | null | undefined;
59
+ seats?: number | null | undefined;
60
+ trialStart?: Date | null | undefined;
61
+ trialEnd?: Date | null | undefined;
62
+ priceId?: string | null | undefined;
63
+ interval?: string | null | undefined;
64
+ unitAmount?: number | null | undefined;
65
+ discounts?: string[] | null | undefined;
66
+ } | null;
67
+ meta: import("trpc-to-openapi").OpenApiMeta;
68
+ }>;
69
+ listInvoices: import("@trpc/server").TRPCQueryProcedure<{
70
+ input: void;
71
+ output: import("stripe").Stripe.Invoice[];
72
+ meta: import("trpc-to-openapi").OpenApiMeta;
73
+ }>;
74
+ }>>;
75
+ //# sourceMappingURL=billing.trpc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.trpc.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.trpc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAY/D"}
@@ -0,0 +1,6 @@
1
+ import type { ServerResultAsync } from "#modules/base/base.dto";
2
+ import { BaseExternaRepository } from "#modules/base/base.repository";
3
+ export declare class ClayRepository extends BaseExternaRepository {
4
+ sendToWebhook(webhookUrl: string, row: Record<string, unknown>, callbackUrl: string): ServerResultAsync<void>;
5
+ }
6
+ //# sourceMappingURL=clay.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clay.repository.d.ts","sourceRoot":"","sources":["../../../../src/modules/clay/clay.repository.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAItE,qBAAa,cAAe,SAAQ,qBAAqB;IACjD,aAAa,CACjB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,WAAW,EAAE,MAAM,GAClB,iBAAiB,CAAC,IAAI,CAAC;CAiB3B"}
@@ -0,0 +1,29 @@
1
+ import type { z } from "zod";
2
+ import type { ServerResultAsync } from "#modules/base/base.dto";
3
+ import { BaseService } from "#modules/base/base.service";
4
+ import type { WebhookService } from "#modules/webhook/webhook.service";
5
+ import type { ClayRepository } from "./clay.repository";
6
+ type ClayTable = {
7
+ name?: string;
8
+ tableId?: string;
9
+ viewId?: string;
10
+ webhookUrl: string;
11
+ schema?: z.ZodAny;
12
+ timeoutInSeconds?: number;
13
+ };
14
+ export declare class ClayService<K extends string> extends BaseService<{
15
+ clay: ClayRepository;
16
+ }, {
17
+ webhook: WebhookService;
18
+ }> {
19
+ private tables;
20
+ constructor(repositories: {
21
+ clay: ClayRepository;
22
+ }, services: {
23
+ webhook: WebhookService;
24
+ }, tables: Record<K, ClayTable>);
25
+ waitForResponse<T>(webhookUrl: string, row: Record<string, unknown>, timeoutInSeconds?: number): ServerResultAsync<T>;
26
+ sendToTable(table: K, row: Record<string, unknown>, timeoutInSeconds?: number): ServerResultAsync<z.infer<(typeof this.tables)[K]["schema"] extends z.ZodAny ? z.infer<(typeof this.tables)[K]["schema"]> : unknown>>;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=clay.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clay.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/clay/clay.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,qBAAa,WAAW,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,WAAW,CAC5D;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,EACxB;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,CAC5B;IACC,OAAO,CAAC,MAAM,CAAuB;gBAEnC,YAAY,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,EACtC,QAAQ,EAAE;QAAE,OAAO,EAAE,cAAc,CAAA;KAAE,EACrC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC;IAMxB,eAAe,CAAC,CAAC,EACrB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,gBAAgB,CAAC,EAAE,MAAM,GACxB,iBAAiB,CAAC,CAAC,CAAC;IAMjB,WAAW,CACf,KAAK,EAAE,CAAC,EACR,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,gBAAgB,CAAC,EAAE,MAAM,GACxB,iBAAiB,CAClB,CAAC,CAAC,KAAK,CACL,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,MAAM,GAC9C,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC1C,OAAO,CACZ,CACF;CAWF"}
@@ -0,0 +1,357 @@
1
+ export declare const connect: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "connect";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: "id";
7
+ tableName: "connect";
8
+ dataType: "string";
9
+ columnType: "SQLiteText";
10
+ data: string;
11
+ driverParam: string;
12
+ notNull: true;
13
+ hasDefault: true;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: true;
17
+ enumValues: [string, ...string[]];
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {
22
+ length: number | undefined;
23
+ }>;
24
+ userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
25
+ name: "user_id";
26
+ tableName: "connect";
27
+ dataType: "string";
28
+ columnType: "SQLiteText";
29
+ data: string;
30
+ driverParam: string;
31
+ notNull: true;
32
+ hasDefault: false;
33
+ isPrimaryKey: false;
34
+ isAutoincrement: false;
35
+ hasRuntimeDefault: false;
36
+ enumValues: [string, ...string[]];
37
+ baseColumn: never;
38
+ identity: undefined;
39
+ generated: undefined;
40
+ }, {}, {
41
+ length: number | undefined;
42
+ }>;
43
+ provider: import("drizzle-orm/sqlite-core").SQLiteColumn<{
44
+ name: "provider";
45
+ tableName: "connect";
46
+ dataType: "string";
47
+ columnType: "SQLiteText";
48
+ data: string;
49
+ driverParam: string;
50
+ notNull: true;
51
+ hasDefault: false;
52
+ isPrimaryKey: false;
53
+ isAutoincrement: false;
54
+ hasRuntimeDefault: false;
55
+ enumValues: [string, ...string[]];
56
+ baseColumn: never;
57
+ identity: undefined;
58
+ generated: undefined;
59
+ }, {}, {
60
+ length: number | undefined;
61
+ }>;
62
+ accountType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
63
+ name: "account_type";
64
+ tableName: "connect";
65
+ dataType: "string";
66
+ columnType: "SQLiteText";
67
+ data: string;
68
+ driverParam: string;
69
+ notNull: true;
70
+ hasDefault: false;
71
+ isPrimaryKey: false;
72
+ isAutoincrement: false;
73
+ hasRuntimeDefault: false;
74
+ enumValues: [string, ...string[]];
75
+ baseColumn: never;
76
+ identity: undefined;
77
+ generated: undefined;
78
+ }, {}, {
79
+ length: number | undefined;
80
+ }>;
81
+ providerAccountId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
82
+ name: "provider_account_id";
83
+ tableName: "connect";
84
+ dataType: "string";
85
+ columnType: "SQLiteText";
86
+ data: string;
87
+ driverParam: string;
88
+ notNull: true;
89
+ hasDefault: false;
90
+ isPrimaryKey: false;
91
+ isAutoincrement: false;
92
+ hasRuntimeDefault: false;
93
+ enumValues: [string, ...string[]];
94
+ baseColumn: never;
95
+ identity: undefined;
96
+ generated: undefined;
97
+ }, {}, {
98
+ length: number | undefined;
99
+ }>;
100
+ handle: import("drizzle-orm/sqlite-core").SQLiteColumn<{
101
+ name: "handle";
102
+ tableName: "connect";
103
+ dataType: "string";
104
+ columnType: "SQLiteText";
105
+ data: string;
106
+ driverParam: string;
107
+ notNull: false;
108
+ hasDefault: false;
109
+ isPrimaryKey: false;
110
+ isAutoincrement: false;
111
+ hasRuntimeDefault: false;
112
+ enumValues: [string, ...string[]];
113
+ baseColumn: never;
114
+ identity: undefined;
115
+ generated: undefined;
116
+ }, {}, {
117
+ length: number | undefined;
118
+ }>;
119
+ displayName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
120
+ name: "display_name";
121
+ tableName: "connect";
122
+ dataType: "string";
123
+ columnType: "SQLiteText";
124
+ data: string;
125
+ driverParam: string;
126
+ notNull: false;
127
+ hasDefault: false;
128
+ isPrimaryKey: false;
129
+ isAutoincrement: false;
130
+ hasRuntimeDefault: false;
131
+ enumValues: [string, ...string[]];
132
+ baseColumn: never;
133
+ identity: undefined;
134
+ generated: undefined;
135
+ }, {}, {
136
+ length: number | undefined;
137
+ }>;
138
+ avatarUrl: import("drizzle-orm/sqlite-core").SQLiteColumn<{
139
+ name: "avatar_url";
140
+ tableName: "connect";
141
+ dataType: "string";
142
+ columnType: "SQLiteText";
143
+ data: string;
144
+ driverParam: string;
145
+ notNull: false;
146
+ hasDefault: false;
147
+ isPrimaryKey: false;
148
+ isAutoincrement: false;
149
+ hasRuntimeDefault: false;
150
+ enumValues: [string, ...string[]];
151
+ baseColumn: never;
152
+ identity: undefined;
153
+ generated: undefined;
154
+ }, {}, {
155
+ length: number | undefined;
156
+ }>;
157
+ accessToken: import("drizzle-orm/sqlite-core").SQLiteColumn<{
158
+ name: "access_token";
159
+ tableName: "connect";
160
+ dataType: "string";
161
+ columnType: "SQLiteText";
162
+ data: string;
163
+ driverParam: string;
164
+ notNull: true;
165
+ hasDefault: false;
166
+ isPrimaryKey: false;
167
+ isAutoincrement: false;
168
+ hasRuntimeDefault: false;
169
+ enumValues: [string, ...string[]];
170
+ baseColumn: never;
171
+ identity: undefined;
172
+ generated: undefined;
173
+ }, {}, {
174
+ length: number | undefined;
175
+ }>;
176
+ refreshToken: import("drizzle-orm/sqlite-core").SQLiteColumn<{
177
+ name: "refresh_token";
178
+ tableName: "connect";
179
+ dataType: "string";
180
+ columnType: "SQLiteText";
181
+ data: string;
182
+ driverParam: string;
183
+ notNull: false;
184
+ hasDefault: false;
185
+ isPrimaryKey: false;
186
+ isAutoincrement: false;
187
+ hasRuntimeDefault: false;
188
+ enumValues: [string, ...string[]];
189
+ baseColumn: never;
190
+ identity: undefined;
191
+ generated: undefined;
192
+ }, {}, {
193
+ length: number | undefined;
194
+ }>;
195
+ tokenType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
196
+ name: "token_type";
197
+ tableName: "connect";
198
+ dataType: "string";
199
+ columnType: "SQLiteText";
200
+ data: string;
201
+ driverParam: string;
202
+ notNull: false;
203
+ hasDefault: false;
204
+ isPrimaryKey: false;
205
+ isAutoincrement: false;
206
+ hasRuntimeDefault: false;
207
+ enumValues: [string, ...string[]];
208
+ baseColumn: never;
209
+ identity: undefined;
210
+ generated: undefined;
211
+ }, {}, {
212
+ length: number | undefined;
213
+ }>;
214
+ scope: import("drizzle-orm/sqlite-core").SQLiteColumn<{
215
+ name: "scope";
216
+ tableName: "connect";
217
+ dataType: "string";
218
+ columnType: "SQLiteText";
219
+ data: string;
220
+ driverParam: string;
221
+ notNull: false;
222
+ hasDefault: false;
223
+ isPrimaryKey: false;
224
+ isAutoincrement: false;
225
+ hasRuntimeDefault: false;
226
+ enumValues: [string, ...string[]];
227
+ baseColumn: never;
228
+ identity: undefined;
229
+ generated: undefined;
230
+ }, {}, {
231
+ length: number | undefined;
232
+ }>;
233
+ expiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
234
+ name: "expires_at";
235
+ tableName: "connect";
236
+ dataType: "date";
237
+ columnType: "SQLiteTimestamp";
238
+ data: Date;
239
+ driverParam: number;
240
+ notNull: false;
241
+ hasDefault: false;
242
+ isPrimaryKey: false;
243
+ isAutoincrement: false;
244
+ hasRuntimeDefault: false;
245
+ enumValues: undefined;
246
+ baseColumn: never;
247
+ identity: undefined;
248
+ generated: undefined;
249
+ }, {}, {}>;
250
+ parentId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
251
+ name: "parent_id";
252
+ tableName: "connect";
253
+ dataType: "string";
254
+ columnType: "SQLiteText";
255
+ data: string;
256
+ driverParam: string;
257
+ notNull: false;
258
+ hasDefault: false;
259
+ isPrimaryKey: false;
260
+ isAutoincrement: false;
261
+ hasRuntimeDefault: false;
262
+ enumValues: [string, ...string[]];
263
+ baseColumn: never;
264
+ identity: undefined;
265
+ generated: undefined;
266
+ }, {}, {
267
+ length: number | undefined;
268
+ }>;
269
+ metadataJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
270
+ name: "metadata_json";
271
+ tableName: "connect";
272
+ dataType: "json";
273
+ columnType: "SQLiteTextJson";
274
+ data: unknown;
275
+ driverParam: string;
276
+ notNull: false;
277
+ hasDefault: false;
278
+ isPrimaryKey: false;
279
+ isAutoincrement: false;
280
+ hasRuntimeDefault: false;
281
+ enumValues: undefined;
282
+ baseColumn: never;
283
+ identity: undefined;
284
+ generated: undefined;
285
+ }, {}, {}>;
286
+ revokedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
287
+ name: "revoked_at";
288
+ tableName: "connect";
289
+ dataType: "date";
290
+ columnType: "SQLiteTimestamp";
291
+ data: Date;
292
+ driverParam: number;
293
+ notNull: false;
294
+ hasDefault: false;
295
+ isPrimaryKey: false;
296
+ isAutoincrement: false;
297
+ hasRuntimeDefault: false;
298
+ enumValues: undefined;
299
+ baseColumn: never;
300
+ identity: undefined;
301
+ generated: undefined;
302
+ }, {}, {}>;
303
+ lastRefreshedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
304
+ name: "last_refreshed_at";
305
+ tableName: "connect";
306
+ dataType: "date";
307
+ columnType: "SQLiteTimestamp";
308
+ data: Date;
309
+ driverParam: number;
310
+ notNull: false;
311
+ hasDefault: false;
312
+ isPrimaryKey: false;
313
+ isAutoincrement: false;
314
+ hasRuntimeDefault: false;
315
+ enumValues: undefined;
316
+ baseColumn: never;
317
+ identity: undefined;
318
+ generated: undefined;
319
+ }, {}, {}>;
320
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
321
+ name: "created_at";
322
+ tableName: "connect";
323
+ dataType: "date";
324
+ columnType: "SQLiteTimestamp";
325
+ data: Date;
326
+ driverParam: number;
327
+ notNull: true;
328
+ hasDefault: true;
329
+ isPrimaryKey: false;
330
+ isAutoincrement: false;
331
+ hasRuntimeDefault: true;
332
+ enumValues: undefined;
333
+ baseColumn: never;
334
+ identity: undefined;
335
+ generated: undefined;
336
+ }, {}, {}>;
337
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
338
+ name: "updated_at";
339
+ tableName: "connect";
340
+ dataType: "date";
341
+ columnType: "SQLiteTimestamp";
342
+ data: Date;
343
+ driverParam: number;
344
+ notNull: false;
345
+ hasDefault: false;
346
+ isPrimaryKey: false;
347
+ isAutoincrement: false;
348
+ hasRuntimeDefault: false;
349
+ enumValues: undefined;
350
+ baseColumn: never;
351
+ identity: undefined;
352
+ generated: undefined;
353
+ }, {}, {}>;
354
+ };
355
+ dialect: "sqlite";
356
+ }>;
357
+ //# sourceMappingURL=connect.db.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.db.d.ts","sourceRoot":"","sources":["../../../../src/modules/connect/connect.db.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BlB,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { z } from "zod";
2
+ export declare const connectSelectSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ userId: z.ZodString;
5
+ provider: z.ZodString;
6
+ accountType: z.ZodString;
7
+ providerAccountId: z.ZodString;
8
+ handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ accessToken: z.ZodString;
12
+ refreshToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
16
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ metadataJson: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
18
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
19
+ lastRefreshedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
20
+ createdAt: z.ZodDate;
21
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
22
+ }, z.core.$strip>;
23
+ export type ConnectSelectSchema = z.infer<typeof connectSelectSchema>;
24
+ export declare const connectSelectOutputSchema: z.ZodObject<{
25
+ id: z.ZodString;
26
+ userId: z.ZodString;
27
+ provider: z.ZodString;
28
+ accountType: z.ZodString;
29
+ providerAccountId: z.ZodString;
30
+ handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
36
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ metadataJson: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
38
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
39
+ lastRefreshedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
40
+ createdAt: z.ZodDate;
41
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
42
+ }, z.core.$strip>;
43
+ export declare const connectListInputSchema: z.ZodObject<{
44
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ inactive: z.ZodOptional<z.ZodBoolean>;
46
+ }, z.core.$strip>;
47
+ export type ConnectListInputSchema = z.infer<typeof connectListInputSchema>;
48
+ export declare const connectListOutputSchema: z.ZodArray<z.ZodObject<{
49
+ id: z.ZodString;
50
+ userId: z.ZodString;
51
+ provider: z.ZodString;
52
+ accountType: z.ZodString;
53
+ providerAccountId: z.ZodString;
54
+ handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
60
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ metadataJson: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
62
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
63
+ lastRefreshedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
64
+ createdAt: z.ZodDate;
65
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
+ }, z.core.$strip>>;
67
+ export declare const connectDeleteInputSchema: z.ZodObject<{
68
+ id: z.ZodString;
69
+ }, z.core.$strip>;
70
+ export declare const connectDeleteOutputSchema: z.ZodObject<{
71
+ id: z.ZodString;
72
+ }, z.core.$strip>;
73
+ export type ConnectDeleteInputSchema = z.infer<typeof connectDeleteInputSchema>;
74
+ export type ConnectDeleteOutputSchema = z.infer<typeof connectDeleteOutputSchema>;
75
+ //# sourceMappingURL=connect.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/connect/connect.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;iBAoB9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAGpC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;kBAAqC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;iBAA+B,CAAC;AACrE,eAAO,MAAM,yBAAyB;;iBAA+B,CAAC;AACtE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ConnectProvider } from "./connect.types";
2
+ export declare function createLinkedInProvider(): ConnectProvider;
3
+ //# sourceMappingURL=connect.linkedin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.linkedin.d.ts","sourceRoot":"","sources":["../../../../src/modules/connect/connect.linkedin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAavE,wBAAgB,sBAAsB,IAAI,eAAe,CAwDxD"}