@the-inkwell/shared 0.2.186 → 0.2.188
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.
- package/dist/constants.d.ts +0 -18
- package/dist/constants.js +1 -7
- package/dist/constants.js.map +1 -1
- package/dist/schema/admin/campaigns/index.d.ts +88 -97
- package/dist/schema/admin/campaigns/index.js +2 -33
- package/dist/schema/admin/campaigns/index.js.map +1 -1
- package/dist/schema/admin/index.d.ts +1 -1
- package/dist/schema/admin/index.js +1 -1
- package/dist/schema/admin/index.js.map +1 -1
- package/dist/schema/admin/matches/index.d.ts +383 -0
- package/dist/schema/admin/matches/index.js +26 -0
- package/dist/schema/admin/matches/index.js.map +1 -0
- package/dist/schema/admin/persons/index.d.ts +70 -0
- package/dist/schema/admin/persons/index.js +61 -1
- package/dist/schema/admin/persons/index.js.map +1 -1
- package/dist/schema/admin/referrals/index.d.ts +5 -5
- package/dist/schema/admin/referralsToMessages/index.d.ts +1 -1
- package/dist/schema/core.d.ts +67 -150
- package/dist/schema/core.js +39 -29
- package/dist/schema/core.js.map +1 -1
- package/dist/utils.d.ts +25 -0
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/schema/public/account/index.d.ts +0 -72
- package/dist/schema/public/account/index.js +0 -88
- package/dist/schema/public/account/index.js.map +0 -1
|
@@ -40,14 +40,14 @@ export declare const AdminReferralCreateSchema: import("drizzle-zod").BuildSchem
|
|
|
40
40
|
tableName: "referrals";
|
|
41
41
|
dataType: "string";
|
|
42
42
|
columnType: "PgEnumColumn";
|
|
43
|
-
data: "CLIENT" | "
|
|
43
|
+
data: "CLIENT" | "CANDIDACY" | "PERSON";
|
|
44
44
|
driverParam: string;
|
|
45
45
|
notNull: false;
|
|
46
46
|
hasDefault: false;
|
|
47
47
|
isPrimaryKey: false;
|
|
48
48
|
isAutoincrement: false;
|
|
49
49
|
hasRuntimeDefault: false;
|
|
50
|
-
enumValues: ["CLIENT" | "
|
|
50
|
+
enumValues: ["CLIENT" | "CANDIDACY" | "PERSON"];
|
|
51
51
|
baseColumn: never;
|
|
52
52
|
identity: undefined;
|
|
53
53
|
generated: undefined;
|
|
@@ -244,8 +244,8 @@ export declare const AdminReferralSelectSchema: z.ZodObject<{
|
|
|
244
244
|
}>>;
|
|
245
245
|
referralType: z.ZodNullable<z.ZodEnum<{
|
|
246
246
|
CLIENT: "CLIENT";
|
|
247
|
-
PERSON: "PERSON";
|
|
248
247
|
CANDIDACY: "CANDIDACY";
|
|
248
|
+
PERSON: "PERSON";
|
|
249
249
|
}>>;
|
|
250
250
|
networkId: z.ZodNullable<z.ZodUUID>;
|
|
251
251
|
referrerId: z.ZodUUID;
|
|
@@ -381,14 +381,14 @@ export declare const AdminReferralUpdateSchema: import("drizzle-zod").BuildSchem
|
|
|
381
381
|
tableName: "referrals";
|
|
382
382
|
dataType: "string";
|
|
383
383
|
columnType: "PgEnumColumn";
|
|
384
|
-
data: "CLIENT" | "
|
|
384
|
+
data: "CLIENT" | "CANDIDACY" | "PERSON";
|
|
385
385
|
driverParam: string;
|
|
386
386
|
notNull: false;
|
|
387
387
|
hasDefault: false;
|
|
388
388
|
isPrimaryKey: false;
|
|
389
389
|
isAutoincrement: false;
|
|
390
390
|
hasRuntimeDefault: false;
|
|
391
|
-
enumValues: ["CLIENT" | "
|
|
391
|
+
enumValues: ["CLIENT" | "CANDIDACY" | "PERSON"];
|
|
392
392
|
baseColumn: never;
|
|
393
393
|
identity: undefined;
|
|
394
394
|
generated: undefined;
|
|
@@ -125,8 +125,8 @@ export declare const AdminReferralToMessageSelectSchema: z.ZodObject<{
|
|
|
125
125
|
id: z.ZodUUID;
|
|
126
126
|
referralType: z.ZodNullable<z.ZodEnum<{
|
|
127
127
|
CLIENT: "CLIENT";
|
|
128
|
-
PERSON: "PERSON";
|
|
129
128
|
CANDIDACY: "CANDIDACY";
|
|
129
|
+
PERSON: "PERSON";
|
|
130
130
|
}>>;
|
|
131
131
|
}, z.core.$strip>;
|
|
132
132
|
}, {
|
package/dist/schema/core.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CampaignMessageContentEmail, CampaignMessageContentSms, MatchCriteria } from '../utils';
|
|
1
2
|
export declare const Actions: import("drizzle-orm/pg-core").PgEnum<["CAMPAIGN_SENT" | "CANDIDACY_CREATED" | "CANDIDACY_EVALUATING" | "CANDIDACY_PENDING" | "CANDIDACY_SUBMITTED" | "CANDIDACY_SCREENING" | "CANDIDACY_INTERVIEWING" | "CANDIDACY_OFFERED" | "CANDIDACY_ON_HOLD" | "CANDIDACY_HIRED" | "CANDIDACY_REJECTED" | "CANDIDACY_WITHDRAWN" | "LEAD_CREATED" | "LEAD_CONVERTED" | "CLIENT_CREATED" | "MESSAGE_CLICKED" | "MESSAGE_OPENED" | "MESSAGE_RECEIVED" | "MESSAGE_SENT" | "NOTE_CREATED" | "PERSON_CREATED" | "PERSON_SIGNED_UP" | "POSITION_CLOSED" | "POSITION_OPENED" | "REFERRAL_CREATED" | "USER_SIGN_IN" | "USER_UPDATE"]>;
|
|
2
3
|
export declare const CandidacyAssessmentCategories: import("drizzle-orm/pg-core").PgEnum<["EXPERIENCE" | "INDUSTRY" | "SKILL" | "CULTURE" | "COMPENSATION" | "LOCATION" | "MOTIVATION"]>;
|
|
3
4
|
export declare const CandidacyRejectors: import("drizzle-orm/pg-core").PgEnum<["INKWELL" | "CLIENT"]>;
|
|
@@ -12,7 +13,6 @@ export declare const EmploymentLocationTypes: import("drizzle-orm/pg-core").PgEn
|
|
|
12
13
|
export declare const EnrichmentSources: import("drizzle-orm/pg-core").PgEnum<["PDL"]>;
|
|
13
14
|
export declare const Genders: import("drizzle-orm/pg-core").PgEnum<["MAN" | "WOMAN" | "NON_BINARY" | "UNDISCLOSED"]>;
|
|
14
15
|
export declare const JobLevels: import("drizzle-orm/pg-core").PgEnum<["EXPERIENCED" | "MANAGER" | "DIRECTOR" | "VICE_PRESIDENT" | "VICE_PRESIDENT_SENIOR" | "VICE_PRESIDENT_EXECUTIVE" | "CHIEF_SUITE"]>;
|
|
15
|
-
export declare const ListViewModels: import("drizzle-orm/pg-core").PgEnum<["PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL"]>;
|
|
16
16
|
export declare const MessageChannels: import("drizzle-orm/pg-core").PgEnum<["SMS" | "EMAIL"]>;
|
|
17
17
|
export declare const MessageStatuses: import("drizzle-orm/pg-core").PgEnum<["PENDING" | "DELIVERED" | "FAILED" | "BOUNCED" | "UNSUBSCRIBED" | "REPORTED" | "DROPPED" | "DEFERRED"]>;
|
|
18
18
|
export declare const PersonSources: import("drizzle-orm/pg-core").PgEnum<["NETWORK" | "WEBSITE" | "SOCIAL_MEDIA" | "SOURCED"]>;
|
|
@@ -20,7 +20,7 @@ export declare const MemberReasons: import("drizzle-orm/pg-core").PgEnum<["REFER
|
|
|
20
20
|
export declare const PayoutReasons: import("drizzle-orm/pg-core").PgEnum<["INTERVIEW" | "PLACEMENT"]>;
|
|
21
21
|
export declare const PositionClosedReasons: import("drizzle-orm/pg-core").PgEnum<["PLACED" | "CLIENT_FILLED" | "CLIENT_CANCELED" | "INKWELL_CANCELED"]>;
|
|
22
22
|
export declare const ReferralSources: import("drizzle-orm/pg-core").PgEnum<["CAMPAIGN" | "NETWORK" | "WEBSITE" | "SOCIAL_MEDIA"]>;
|
|
23
|
-
export declare const ReferralTypes: import("drizzle-orm/pg-core").PgEnum<["CLIENT" | "
|
|
23
|
+
export declare const ReferralTypes: import("drizzle-orm/pg-core").PgEnum<["CLIENT" | "CANDIDACY" | "PERSON"]>;
|
|
24
24
|
export declare const ClientSources: import("drizzle-orm/pg-core").PgEnum<["NETWORK" | "WEBSITE" | "SOCIAL_MEDIA" | "SOURCED"]>;
|
|
25
25
|
export declare const States: import("drizzle-orm/pg-core").PgEnum<["AL" | "AK" | "AS" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "DC" | "FM" | "FL" | "GA" | "GU" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MH" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "MP" | "OH" | "OK" | "OR" | "PW" | "PA" | "PR" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VI" | "VA" | "WA" | "WV" | "WI" | "WY" | "AB" | "BC" | "MB" | "NB" | "NL" | "NS" | "NT" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT"]>;
|
|
26
26
|
export declare const action: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
@@ -1077,29 +1077,12 @@ export declare const campaign: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
1077
1077
|
identity: undefined;
|
|
1078
1078
|
generated: undefined;
|
|
1079
1079
|
}, {}, {}>;
|
|
1080
|
-
|
|
1081
|
-
name: "
|
|
1082
|
-
tableName: "campaigns";
|
|
1083
|
-
dataType: "string";
|
|
1084
|
-
columnType: "PgEnumColumn";
|
|
1085
|
-
data: "SMS" | "EMAIL";
|
|
1086
|
-
driverParam: string;
|
|
1087
|
-
notNull: true;
|
|
1088
|
-
hasDefault: false;
|
|
1089
|
-
isPrimaryKey: false;
|
|
1090
|
-
isAutoincrement: false;
|
|
1091
|
-
hasRuntimeDefault: false;
|
|
1092
|
-
enumValues: ["SMS" | "EMAIL"];
|
|
1093
|
-
baseColumn: never;
|
|
1094
|
-
identity: undefined;
|
|
1095
|
-
generated: undefined;
|
|
1096
|
-
}, {}, {}>;
|
|
1097
|
-
content: import("drizzle-orm/pg-core").PgColumn<{
|
|
1098
|
-
name: "content";
|
|
1080
|
+
matchFilters: import("drizzle-orm/pg-core").PgColumn<{
|
|
1081
|
+
name: "matchFilters";
|
|
1099
1082
|
tableName: "campaigns";
|
|
1100
1083
|
dataType: "json";
|
|
1101
1084
|
columnType: "PgJsonb";
|
|
1102
|
-
data:
|
|
1085
|
+
data: MatchCriteria;
|
|
1103
1086
|
driverParam: unknown;
|
|
1104
1087
|
notNull: false;
|
|
1105
1088
|
hasDefault: false;
|
|
@@ -1111,15 +1094,18 @@ export declare const campaign: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
1111
1094
|
identity: undefined;
|
|
1112
1095
|
generated: undefined;
|
|
1113
1096
|
}, {}, {
|
|
1114
|
-
$type:
|
|
1097
|
+
$type: MatchCriteria;
|
|
1115
1098
|
}>;
|
|
1116
|
-
|
|
1117
|
-
name: "
|
|
1099
|
+
messageContent: import("drizzle-orm/pg-core").PgColumn<{
|
|
1100
|
+
name: "messageContent";
|
|
1118
1101
|
tableName: "campaigns";
|
|
1119
|
-
dataType: "
|
|
1120
|
-
columnType: "
|
|
1121
|
-
data:
|
|
1122
|
-
|
|
1102
|
+
dataType: "json";
|
|
1103
|
+
columnType: "PgJsonb";
|
|
1104
|
+
data: {
|
|
1105
|
+
email: CampaignMessageContentEmail | null;
|
|
1106
|
+
sms: CampaignMessageContentSms | null;
|
|
1107
|
+
} | null;
|
|
1108
|
+
driverParam: unknown;
|
|
1123
1109
|
notNull: false;
|
|
1124
1110
|
hasDefault: false;
|
|
1125
1111
|
isPrimaryKey: false;
|
|
@@ -1129,7 +1115,12 @@ export declare const campaign: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
1129
1115
|
baseColumn: never;
|
|
1130
1116
|
identity: undefined;
|
|
1131
1117
|
generated: undefined;
|
|
1132
|
-
}, {}, {
|
|
1118
|
+
}, {}, {
|
|
1119
|
+
$type: {
|
|
1120
|
+
email: CampaignMessageContentEmail | null;
|
|
1121
|
+
sms: CampaignMessageContentSms | null;
|
|
1122
|
+
} | null;
|
|
1123
|
+
}>;
|
|
1133
1124
|
externalId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1134
1125
|
name: "externalId";
|
|
1135
1126
|
tableName: "campaigns";
|
|
@@ -1181,23 +1172,6 @@ export declare const campaign: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
1181
1172
|
identity: undefined;
|
|
1182
1173
|
generated: undefined;
|
|
1183
1174
|
}, {}, {}>;
|
|
1184
|
-
sentOptOutCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
1185
|
-
name: "sentOptOutCount";
|
|
1186
|
-
tableName: "campaigns";
|
|
1187
|
-
dataType: "number";
|
|
1188
|
-
columnType: "PgInteger";
|
|
1189
|
-
data: number;
|
|
1190
|
-
driverParam: string | number;
|
|
1191
|
-
notNull: false;
|
|
1192
|
-
hasDefault: false;
|
|
1193
|
-
isPrimaryKey: false;
|
|
1194
|
-
isAutoincrement: false;
|
|
1195
|
-
hasRuntimeDefault: false;
|
|
1196
|
-
enumValues: undefined;
|
|
1197
|
-
baseColumn: never;
|
|
1198
|
-
identity: undefined;
|
|
1199
|
-
generated: undefined;
|
|
1200
|
-
}, {}, {}>;
|
|
1201
1175
|
sentAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1202
1176
|
name: "sentAt";
|
|
1203
1177
|
tableName: "campaigns";
|
|
@@ -2638,13 +2612,13 @@ export declare const jwt: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
2638
2612
|
};
|
|
2639
2613
|
dialect: "pg";
|
|
2640
2614
|
}>;
|
|
2641
|
-
export declare const
|
|
2642
|
-
name: "
|
|
2615
|
+
export declare const match: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2616
|
+
name: "matches";
|
|
2643
2617
|
schema: undefined;
|
|
2644
2618
|
columns: {
|
|
2645
2619
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2646
2620
|
name: "id";
|
|
2647
|
-
tableName: "
|
|
2621
|
+
tableName: "matches";
|
|
2648
2622
|
dataType: "string";
|
|
2649
2623
|
columnType: "PgUUID";
|
|
2650
2624
|
data: string;
|
|
@@ -2659,66 +2633,30 @@ export declare const listView: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
2659
2633
|
identity: undefined;
|
|
2660
2634
|
generated: undefined;
|
|
2661
2635
|
}, {}, {}>;
|
|
2662
|
-
|
|
2663
|
-
name: "
|
|
2664
|
-
tableName: "
|
|
2636
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2637
|
+
name: "personId";
|
|
2638
|
+
tableName: "matches";
|
|
2665
2639
|
dataType: "string";
|
|
2666
|
-
columnType: "
|
|
2667
|
-
data:
|
|
2640
|
+
columnType: "PgUUID";
|
|
2641
|
+
data: string;
|
|
2668
2642
|
driverParam: string;
|
|
2669
2643
|
notNull: true;
|
|
2670
2644
|
hasDefault: false;
|
|
2671
2645
|
isPrimaryKey: false;
|
|
2672
2646
|
isAutoincrement: false;
|
|
2673
2647
|
hasRuntimeDefault: false;
|
|
2674
|
-
enumValues:
|
|
2648
|
+
enumValues: undefined;
|
|
2675
2649
|
baseColumn: never;
|
|
2676
2650
|
identity: undefined;
|
|
2677
2651
|
generated: undefined;
|
|
2678
2652
|
}, {}, {}>;
|
|
2679
|
-
|
|
2680
|
-
name: "
|
|
2681
|
-
tableName: "
|
|
2653
|
+
positionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2654
|
+
name: "positionId";
|
|
2655
|
+
tableName: "matches";
|
|
2682
2656
|
dataType: "string";
|
|
2683
|
-
columnType: "
|
|
2657
|
+
columnType: "PgUUID";
|
|
2684
2658
|
data: string;
|
|
2685
2659
|
driverParam: string;
|
|
2686
|
-
notNull: false;
|
|
2687
|
-
hasDefault: false;
|
|
2688
|
-
isPrimaryKey: false;
|
|
2689
|
-
isAutoincrement: false;
|
|
2690
|
-
hasRuntimeDefault: false;
|
|
2691
|
-
enumValues: [string, ...string[]];
|
|
2692
|
-
baseColumn: never;
|
|
2693
|
-
identity: undefined;
|
|
2694
|
-
generated: undefined;
|
|
2695
|
-
}, {}, {}>;
|
|
2696
|
-
form: import("drizzle-orm/pg-core").PgColumn<{
|
|
2697
|
-
name: "form";
|
|
2698
|
-
tableName: "list_views";
|
|
2699
|
-
dataType: "json";
|
|
2700
|
-
columnType: "PgJsonb";
|
|
2701
|
-
data: Record<any, any>;
|
|
2702
|
-
driverParam: unknown;
|
|
2703
|
-
notNull: true;
|
|
2704
|
-
hasDefault: false;
|
|
2705
|
-
isPrimaryKey: false;
|
|
2706
|
-
isAutoincrement: false;
|
|
2707
|
-
hasRuntimeDefault: false;
|
|
2708
|
-
enumValues: undefined;
|
|
2709
|
-
baseColumn: never;
|
|
2710
|
-
identity: undefined;
|
|
2711
|
-
generated: undefined;
|
|
2712
|
-
}, {}, {
|
|
2713
|
-
$type: Record<any, any>;
|
|
2714
|
-
}>;
|
|
2715
|
-
query: import("drizzle-orm/pg-core").PgColumn<{
|
|
2716
|
-
name: "query";
|
|
2717
|
-
tableName: "list_views";
|
|
2718
|
-
dataType: "json";
|
|
2719
|
-
columnType: "PgJsonb";
|
|
2720
|
-
data: Record<any, any>;
|
|
2721
|
-
driverParam: unknown;
|
|
2722
2660
|
notNull: true;
|
|
2723
2661
|
hasDefault: false;
|
|
2724
2662
|
isPrimaryKey: false;
|
|
@@ -2728,32 +2666,13 @@ export declare const listView: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
2728
2666
|
baseColumn: never;
|
|
2729
2667
|
identity: undefined;
|
|
2730
2668
|
generated: undefined;
|
|
2731
|
-
}, {}, {
|
|
2732
|
-
$type: Record<any, any>;
|
|
2733
|
-
}>;
|
|
2734
|
-
isGeneric: import("drizzle-orm/pg-core").PgColumn<{
|
|
2735
|
-
name: "isGeneric";
|
|
2736
|
-
tableName: "list_views";
|
|
2737
|
-
dataType: "boolean";
|
|
2738
|
-
columnType: "PgBoolean";
|
|
2739
|
-
data: boolean;
|
|
2740
|
-
driverParam: boolean;
|
|
2741
|
-
notNull: false;
|
|
2742
|
-
hasDefault: true;
|
|
2743
|
-
isPrimaryKey: false;
|
|
2744
|
-
isAutoincrement: false;
|
|
2745
|
-
hasRuntimeDefault: false;
|
|
2746
|
-
enumValues: undefined;
|
|
2747
|
-
baseColumn: never;
|
|
2748
|
-
identity: undefined;
|
|
2749
|
-
generated: undefined;
|
|
2750
2669
|
}, {}, {}>;
|
|
2751
|
-
|
|
2752
|
-
name: "
|
|
2753
|
-
tableName: "
|
|
2754
|
-
dataType: "
|
|
2755
|
-
columnType: "
|
|
2756
|
-
data:
|
|
2670
|
+
campaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2671
|
+
name: "campaignId";
|
|
2672
|
+
tableName: "matches";
|
|
2673
|
+
dataType: "string";
|
|
2674
|
+
columnType: "PgUUID";
|
|
2675
|
+
data: string;
|
|
2757
2676
|
driverParam: string;
|
|
2758
2677
|
notNull: false;
|
|
2759
2678
|
hasDefault: false;
|
|
@@ -2765,13 +2684,16 @@ export declare const listView: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
2765
2684
|
identity: undefined;
|
|
2766
2685
|
generated: undefined;
|
|
2767
2686
|
}, {}, {}>;
|
|
2768
|
-
|
|
2769
|
-
name: "
|
|
2770
|
-
tableName: "
|
|
2771
|
-
dataType: "
|
|
2772
|
-
columnType: "
|
|
2773
|
-
data:
|
|
2774
|
-
|
|
2687
|
+
criteria: import("drizzle-orm/pg-core").PgColumn<{
|
|
2688
|
+
name: "criteria";
|
|
2689
|
+
tableName: "matches";
|
|
2690
|
+
dataType: "json";
|
|
2691
|
+
columnType: "PgJsonb";
|
|
2692
|
+
data: {
|
|
2693
|
+
person: MatchCriteria;
|
|
2694
|
+
referrer: MatchCriteria;
|
|
2695
|
+
};
|
|
2696
|
+
driverParam: unknown;
|
|
2775
2697
|
notNull: false;
|
|
2776
2698
|
hasDefault: false;
|
|
2777
2699
|
isPrimaryKey: false;
|
|
@@ -2781,27 +2703,15 @@ export declare const listView: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
2781
2703
|
baseColumn: never;
|
|
2782
2704
|
identity: undefined;
|
|
2783
2705
|
generated: undefined;
|
|
2784
|
-
}, {}, {
|
|
2706
|
+
}, {}, {
|
|
2707
|
+
$type: {
|
|
2708
|
+
person: MatchCriteria;
|
|
2709
|
+
referrer: MatchCriteria;
|
|
2710
|
+
};
|
|
2711
|
+
}>;
|
|
2785
2712
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2786
2713
|
name: "createdAt";
|
|
2787
|
-
tableName: "
|
|
2788
|
-
dataType: "date";
|
|
2789
|
-
columnType: "PgTimestamp";
|
|
2790
|
-
data: Date;
|
|
2791
|
-
driverParam: string;
|
|
2792
|
-
notNull: true;
|
|
2793
|
-
hasDefault: true;
|
|
2794
|
-
isPrimaryKey: false;
|
|
2795
|
-
isAutoincrement: false;
|
|
2796
|
-
hasRuntimeDefault: false;
|
|
2797
|
-
enumValues: undefined;
|
|
2798
|
-
baseColumn: never;
|
|
2799
|
-
identity: undefined;
|
|
2800
|
-
generated: undefined;
|
|
2801
|
-
}, {}, {}>;
|
|
2802
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2803
|
-
name: "updatedAt";
|
|
2804
|
-
tableName: "list_views";
|
|
2714
|
+
tableName: "matches";
|
|
2805
2715
|
dataType: "date";
|
|
2806
2716
|
columnType: "PgTimestamp";
|
|
2807
2717
|
data: Date;
|
|
@@ -6036,14 +5946,14 @@ export declare const referral: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6036
5946
|
tableName: "referrals";
|
|
6037
5947
|
dataType: "string";
|
|
6038
5948
|
columnType: "PgEnumColumn";
|
|
6039
|
-
data: "CLIENT" | "
|
|
5949
|
+
data: "CLIENT" | "CANDIDACY" | "PERSON";
|
|
6040
5950
|
driverParam: string;
|
|
6041
5951
|
notNull: false;
|
|
6042
5952
|
hasDefault: false;
|
|
6043
5953
|
isPrimaryKey: false;
|
|
6044
5954
|
isAutoincrement: false;
|
|
6045
5955
|
hasRuntimeDefault: false;
|
|
6046
|
-
enumValues: ["CLIENT" | "
|
|
5956
|
+
enumValues: ["CLIENT" | "CANDIDACY" | "PERSON"];
|
|
6047
5957
|
baseColumn: never;
|
|
6048
5958
|
identity: undefined;
|
|
6049
5959
|
generated: undefined;
|
|
@@ -7160,9 +7070,9 @@ export declare const campaignRelations: import("drizzle-orm").Relations<"campaig
|
|
|
7160
7070
|
candidacies: import("drizzle-orm").Many<"candidacies">;
|
|
7161
7071
|
persons: import("drizzle-orm").Many<"persons">;
|
|
7162
7072
|
clients: import("drizzle-orm").Many<"clients">;
|
|
7073
|
+
matches: import("drizzle-orm").Many<"matches">;
|
|
7163
7074
|
messages: import("drizzle-orm").Many<"messages">;
|
|
7164
7075
|
position: import("drizzle-orm").One<"positions", false>;
|
|
7165
|
-
listView: import("drizzle-orm").One<"list_views", false>;
|
|
7166
7076
|
}>;
|
|
7167
7077
|
export declare const candidacyFeedbackRelations: import("drizzle-orm").Relations<"candidacy_feedback", {
|
|
7168
7078
|
candidacy: import("drizzle-orm").One<"candidacies", true>;
|
|
@@ -7218,6 +7128,11 @@ export declare const jobFunctionRelations: import("drizzle-orm").Relations<"job_
|
|
|
7218
7128
|
export declare const jwtRelations: import("drizzle-orm").Relations<"jwts", {
|
|
7219
7129
|
person: import("drizzle-orm").One<"persons", true>;
|
|
7220
7130
|
}>;
|
|
7131
|
+
export declare const matchRelations: import("drizzle-orm").Relations<"matches", {
|
|
7132
|
+
person: import("drizzle-orm").One<"persons", true>;
|
|
7133
|
+
campaign: import("drizzle-orm").One<"campaigns", false>;
|
|
7134
|
+
position: import("drizzle-orm").One<"positions", true>;
|
|
7135
|
+
}>;
|
|
7221
7136
|
export declare const messageRelations: import("drizzle-orm").Relations<"messages", {
|
|
7222
7137
|
actions: import("drizzle-orm").Many<"actions">;
|
|
7223
7138
|
outboundSender: import("drizzle-orm").One<"senders", false>;
|
|
@@ -7252,6 +7167,7 @@ export declare const personRelations: import("drizzle-orm").Relations<"persons",
|
|
|
7252
7167
|
candidacies: import("drizzle-orm").Many<"candidacies">;
|
|
7253
7168
|
educations: import("drizzle-orm").Many<"educations">;
|
|
7254
7169
|
certifications: import("drizzle-orm").Many<"persons_to_certifications">;
|
|
7170
|
+
matches: import("drizzle-orm").Many<"matches">;
|
|
7255
7171
|
messages: import("drizzle-orm").Many<"messages">;
|
|
7256
7172
|
notes: import("drizzle-orm").Many<"notes">;
|
|
7257
7173
|
referrals: import("drizzle-orm").Many<"referrals">;
|
|
@@ -7297,6 +7213,7 @@ export declare const positionRelations: import("drizzle-orm").Relations<"positio
|
|
|
7297
7213
|
jobFunction: import("drizzle-orm").One<"job_functions", false>;
|
|
7298
7214
|
industry: import("drizzle-orm").One<"industries", false>;
|
|
7299
7215
|
candidacies: import("drizzle-orm").Many<"candidacies">;
|
|
7216
|
+
matches: import("drizzle-orm").Many<"matches">;
|
|
7300
7217
|
notes: import("drizzle-orm").Many<"notes">;
|
|
7301
7218
|
referrals: import("drizzle-orm").Many<"referrals">;
|
|
7302
7219
|
contracts: import("drizzle-orm").Many<"contracts">;
|
package/dist/schema/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.personToProfessionalEvent = exports.personToNetwork = exports.personToCertification = exports.personToBestPerson = exports.person = exports.partner = exports.otp = exports.note = exports.network = exports.message = exports.
|
|
4
|
-
exports.tagRelations = exports.skillRelations = exports.senderRelations = exports.referralToMessageRelations = exports.referralRelations = exports.referralPayoutRelations = exports.professionalEventRelations = exports.positionToSkillRelations = exports.positionRelations = exports.personToTagRelations = exports.personToSkillRelations = exports.personToProfessionalEventRelations = exports.personToNetworkRelations = exports.personToBestPersonRelations = exports.personRelations = exports.partnerRelations = exports.otpRelations = exports.noteRelations = exports.networkRelations = exports.messageRelations = exports.jwtRelations = exports.jobFunctionRelations = exports.industryRelations = exports.experienceRelations = exports.enrichmentRelations = exports.educationRelations = exports.contractRelations = exports.clientRelations = exports.certificationRelations = exports.candidacyRelations = exports.candidacyFeedbackRelations = exports.campaignRelations = exports.adminRelations = exports.actionRelations = exports.websiteStaticPage = exports.websiteLandingPage = exports.websiteBlock = exports.tag = exports.skill = exports.sender = exports.referralPayout = exports.referralToMessage = exports.referral = exports.professionalEvent = exports.positionToTag = exports.positionToSkill = exports.position = exports.personToTag =
|
|
3
|
+
exports.personToSkill = exports.personToProfessionalEvent = exports.personToNetwork = exports.personToCertification = exports.personToBestPerson = exports.person = exports.partner = exports.otp = exports.note = exports.network = exports.message = exports.match = exports.jwt = exports.jobFunction = exports.industry = exports.experience = exports.enrichment = exports.education = exports.contract = exports.candidacyFeedback = exports.candidacy = exports.campaign = exports.client = exports.certification = exports.admin = exports.action = exports.States = exports.ClientSources = exports.ReferralTypes = exports.ReferralSources = exports.PositionClosedReasons = exports.PayoutReasons = exports.MemberReasons = exports.PersonSources = exports.MessageStatuses = exports.MessageChannels = exports.JobLevels = exports.Genders = exports.EnrichmentSources = exports.EmploymentLocationTypes = exports.EmploymentTypes = exports.EducationFields = exports.EducationDegrees = exports.Countries = exports.ClientStatuses = exports.CandidacyStages = exports.CandidacySources = exports.CandidacyRejectors = exports.CandidacyAssessmentCategories = exports.Actions = void 0;
|
|
4
|
+
exports.tagRelations = exports.skillRelations = exports.senderRelations = exports.referralToMessageRelations = exports.referralRelations = exports.referralPayoutRelations = exports.professionalEventRelations = exports.positionToSkillRelations = exports.positionRelations = exports.personToTagRelations = exports.personToSkillRelations = exports.personToProfessionalEventRelations = exports.personToNetworkRelations = exports.personToBestPersonRelations = exports.personRelations = exports.partnerRelations = exports.otpRelations = exports.noteRelations = exports.networkRelations = exports.messageRelations = exports.matchRelations = exports.jwtRelations = exports.jobFunctionRelations = exports.industryRelations = exports.experienceRelations = exports.enrichmentRelations = exports.educationRelations = exports.contractRelations = exports.clientRelations = exports.certificationRelations = exports.candidacyRelations = exports.candidacyFeedbackRelations = exports.campaignRelations = exports.adminRelations = exports.actionRelations = exports.websiteStaticPage = exports.websiteLandingPage = exports.websiteBlock = exports.tag = exports.skill = exports.sender = exports.referralPayout = exports.referralToMessage = exports.referral = exports.professionalEvent = exports.positionToTag = exports.positionToSkill = exports.position = exports.personToTag = void 0;
|
|
5
5
|
const pg_core_1 = require("drizzle-orm/pg-core");
|
|
6
6
|
const drizzle_orm_1 = require("drizzle-orm");
|
|
7
7
|
const utils_1 = require("../utils");
|
|
@@ -21,7 +21,6 @@ exports.EmploymentLocationTypes = (0, pg_core_1.pgEnum)('employment_location_typ
|
|
|
21
21
|
exports.EnrichmentSources = (0, pg_core_1.pgEnum)('enrichment_source', (0, utils_1.makeEnumFromObj)(constants_1.ENRICHMENT_SOURCES));
|
|
22
22
|
exports.Genders = (0, pg_core_1.pgEnum)('gender', (0, utils_1.makeEnumFromObj)(constants_1.GENDERS));
|
|
23
23
|
exports.JobLevels = (0, pg_core_1.pgEnum)('job_level', (0, utils_1.makeEnumFromObj)(constants_1.JOB_LEVELS));
|
|
24
|
-
exports.ListViewModels = (0, pg_core_1.pgEnum)('list_view_model', (0, utils_1.makeEnumFromObj)(constants_1.LIST_VIEW_MODELS));
|
|
25
24
|
exports.MessageChannels = (0, pg_core_1.pgEnum)('message_channel', (0, utils_1.makeEnumFromObj)(constants_1.MESSAGE_CHANNELS));
|
|
26
25
|
exports.MessageStatuses = (0, pg_core_1.pgEnum)('message_status', (0, utils_1.makeEnumFromObj)(constants_1.MESSAGE_STATUSES));
|
|
27
26
|
exports.PersonSources = (0, pg_core_1.pgEnum)('person_source', (0, utils_1.makeEnumFromObj)(constants_1.PERSON_SOURCES));
|
|
@@ -211,13 +210,11 @@ exports.campaign = (0, pg_core_1.pgTable)('campaigns', {
|
|
|
211
210
|
idNano: (0, pg_core_1.text)().notNull(),
|
|
212
211
|
name: (0, pg_core_1.text)().notNull(),
|
|
213
212
|
senderId: (0, pg_core_1.uuid)(),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
listViewId: (0, pg_core_1.uuid)(),
|
|
213
|
+
matchFilters: (0, pg_core_1.jsonb)().$type(),
|
|
214
|
+
messageContent: (0, pg_core_1.jsonb)().$type(),
|
|
217
215
|
externalId: (0, pg_core_1.text)(),
|
|
218
216
|
positionId: (0, pg_core_1.uuid)(),
|
|
219
217
|
sentRecipientCount: (0, pg_core_1.integer)(),
|
|
220
|
-
sentOptOutCount: (0, pg_core_1.integer)(),
|
|
221
218
|
sentAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true }),
|
|
222
219
|
deletedAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true }),
|
|
223
220
|
createdAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true })
|
|
@@ -235,13 +232,6 @@ exports.campaign = (0, pg_core_1.pgTable)('campaigns', {
|
|
|
235
232
|
})
|
|
236
233
|
.onUpdate('cascade')
|
|
237
234
|
.onDelete('set null'),
|
|
238
|
-
(0, pg_core_1.foreignKey)({
|
|
239
|
-
columns: [table.listViewId],
|
|
240
|
-
foreignColumns: [exports.listView.id],
|
|
241
|
-
name: 'Campaign_listViewId_fkey'
|
|
242
|
-
})
|
|
243
|
-
.onUpdate('cascade')
|
|
244
|
-
.onDelete('set null'),
|
|
245
235
|
(0, pg_core_1.foreignKey)({
|
|
246
236
|
columns: [table.positionId],
|
|
247
237
|
foreignColumns: [exports.position.id],
|
|
@@ -486,19 +476,26 @@ exports.jwt = (0, pg_core_1.pgTable)('jwts', {
|
|
|
486
476
|
.onUpdate('cascade')
|
|
487
477
|
.onDelete('restrict')
|
|
488
478
|
]);
|
|
489
|
-
exports.
|
|
479
|
+
exports.match = (0, pg_core_1.pgTable)('matches', {
|
|
490
480
|
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
archivedAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true }),
|
|
497
|
-
deletedAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true }),
|
|
498
|
-
createdAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true })
|
|
499
|
-
.defaultNow()
|
|
481
|
+
personId: (0, pg_core_1.uuid)()
|
|
482
|
+
.references(() => exports.person.id, {
|
|
483
|
+
onUpdate: 'cascade',
|
|
484
|
+
onDelete: 'set null'
|
|
485
|
+
})
|
|
500
486
|
.notNull(),
|
|
501
|
-
|
|
487
|
+
positionId: (0, pg_core_1.uuid)()
|
|
488
|
+
.references(() => exports.position.id, {
|
|
489
|
+
onUpdate: 'cascade',
|
|
490
|
+
onDelete: 'set null'
|
|
491
|
+
})
|
|
492
|
+
.notNull(),
|
|
493
|
+
campaignId: (0, pg_core_1.uuid)().references(() => exports.campaign.id, {
|
|
494
|
+
onUpdate: 'cascade',
|
|
495
|
+
onDelete: 'set null'
|
|
496
|
+
}),
|
|
497
|
+
criteria: (0, pg_core_1.jsonb)().$type(),
|
|
498
|
+
createdAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true })
|
|
502
499
|
.defaultNow()
|
|
503
500
|
.notNull()
|
|
504
501
|
});
|
|
@@ -1317,14 +1314,11 @@ exports.campaignRelations = (0, drizzle_orm_1.relations)(exports.campaign, ({ on
|
|
|
1317
1314
|
candidacies: many(exports.candidacy),
|
|
1318
1315
|
persons: many(exports.person),
|
|
1319
1316
|
clients: many(exports.client),
|
|
1317
|
+
matches: many(exports.match),
|
|
1320
1318
|
messages: many(exports.message),
|
|
1321
1319
|
position: one(exports.position, {
|
|
1322
1320
|
fields: [exports.campaign.positionId],
|
|
1323
1321
|
references: [exports.position.id]
|
|
1324
|
-
}),
|
|
1325
|
-
listView: one(exports.listView, {
|
|
1326
|
-
fields: [exports.campaign.listViewId],
|
|
1327
|
-
references: [exports.listView.id]
|
|
1328
1322
|
})
|
|
1329
1323
|
}));
|
|
1330
1324
|
exports.candidacyFeedbackRelations = (0, drizzle_orm_1.relations)(exports.candidacyFeedback, ({ one }) => ({
|
|
@@ -1430,6 +1424,20 @@ exports.jwtRelations = (0, drizzle_orm_1.relations)(exports.jwt, ({ one }) => ({
|
|
|
1430
1424
|
references: [exports.person.id]
|
|
1431
1425
|
})
|
|
1432
1426
|
}));
|
|
1427
|
+
exports.matchRelations = (0, drizzle_orm_1.relations)(exports.match, ({ one }) => ({
|
|
1428
|
+
person: one(exports.person, {
|
|
1429
|
+
fields: [exports.match.personId],
|
|
1430
|
+
references: [exports.person.id]
|
|
1431
|
+
}),
|
|
1432
|
+
campaign: one(exports.campaign, {
|
|
1433
|
+
fields: [exports.match.campaignId],
|
|
1434
|
+
references: [exports.campaign.id]
|
|
1435
|
+
}),
|
|
1436
|
+
position: one(exports.position, {
|
|
1437
|
+
fields: [exports.match.positionId],
|
|
1438
|
+
references: [exports.position.id]
|
|
1439
|
+
})
|
|
1440
|
+
}));
|
|
1433
1441
|
exports.messageRelations = (0, drizzle_orm_1.relations)(exports.message, ({ one, many }) => ({
|
|
1434
1442
|
actions: many(exports.action),
|
|
1435
1443
|
outboundSender: one(exports.sender, {
|
|
@@ -1494,6 +1502,7 @@ exports.personRelations = (0, drizzle_orm_1.relations)(exports.person, ({ one, m
|
|
|
1494
1502
|
candidacies: many(exports.candidacy),
|
|
1495
1503
|
educations: many(exports.education),
|
|
1496
1504
|
certifications: many(exports.personToCertification),
|
|
1505
|
+
matches: many(exports.match),
|
|
1497
1506
|
messages: many(exports.message),
|
|
1498
1507
|
notes: many(exports.note),
|
|
1499
1508
|
referrals: many(exports.referral, {
|
|
@@ -1600,6 +1609,7 @@ exports.positionRelations = (0, drizzle_orm_1.relations)(exports.position, ({ on
|
|
|
1600
1609
|
references: [exports.industry.id]
|
|
1601
1610
|
}),
|
|
1602
1611
|
candidacies: many(exports.candidacy),
|
|
1612
|
+
matches: many(exports.match),
|
|
1603
1613
|
notes: many(exports.note),
|
|
1604
1614
|
referrals: many(exports.referral),
|
|
1605
1615
|
contracts: many(exports.contract),
|