@plyaz/types 1.15.16 → 1.15.18

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.
@@ -0,0 +1,29 @@
1
+ declare const Role: {
2
+ Club: string;
3
+ Admin: string;
4
+ Fan: string;
5
+ Athlete: string;
6
+ Agent: string;
7
+ Developer: string;
8
+ Publisher: string;
9
+ Scout: string;
10
+ };
11
+ export interface DBUser {
12
+ email: string;
13
+ password_hash: string;
14
+ clerk_user_id: string;
15
+ auth_provider: 'google' | 'email' | 'facebook' | 'metamask' | 'coinbase';
16
+ display_name: string;
17
+ avatar_url?: string | null;
18
+ bio?: string | null;
19
+ country?: string | null;
20
+ date_of_birth?: string | null;
21
+ phone_number?: string | null;
22
+ tiktok_url?: string | null;
23
+ instagram_url?: string | null;
24
+ is_onboarding_complete: boolean;
25
+ created_at: string;
26
+ updated_at: string;
27
+ role: keyof typeof Role;
28
+ }
29
+ export {};
@@ -5,3 +5,5 @@
5
5
  * @module core
6
6
  */
7
7
  export type { ApiEnvironmentConfig, ApiProviderProps } from './services';
8
+ export * from './tables/enum';
9
+ export type * from './auth/types';
@@ -0,0 +1,3 @@
1
+ export declare enum TABLES {
2
+ User = "users"
3
+ }
package/dist/index.cjs CHANGED
@@ -57,6 +57,12 @@ var SignupFormSchema = zod.z.object({
57
57
  password: zod.z.string({ error: "errors.form.missingField" }).min(DEFAULT_PASSWORD, "errors.form.passwordTooShort")
58
58
  });
59
59
 
60
+ // src/core/tables/enum.ts
61
+ var TABLES = /* @__PURE__ */ ((TABLES2) => {
62
+ TABLES2["User"] = "users";
63
+ return TABLES2;
64
+ })(TABLES || {});
65
+
60
66
  // src/errors/enums.ts
61
67
  var ERROR_TYPE = {
62
68
  /** A general validation error (e.g., form or input errors). */
@@ -5391,6 +5397,7 @@ exports.STORAGE_TYPES = COMMON_STORAGE_TYPES;
5391
5397
  exports.SendGridEventSchema = SendGridEventSchema;
5392
5398
  exports.SendGridWebhookSchema = SendGridWebhookSchema;
5393
5399
  exports.SignupFormSchema = SignupFormSchema;
5400
+ exports.TABLES = TABLES;
5394
5401
  exports.TRACKING_PHASES = TRACKING_PHASES;
5395
5402
  exports.TRANSACTION_TYPE = TRANSACTION_TYPE;
5396
5403
  exports.TemplateDataSchema = TemplateDataSchema;