@the-inkwell/shared 0.2.259 → 0.2.260

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.
@@ -23,8 +23,8 @@ export * from './positions';
23
23
  export * from './positionsToSkills';
24
24
  export * from './positionsToTags';
25
25
  export * from './referrals';
26
+ export * from './referralsPayouts';
26
27
  export * from './referralsToMessages';
27
- export * from './referralPayouts';
28
28
  export * from './senders';
29
29
  export * from './sendgrid';
30
30
  export * from './settings';
@@ -39,8 +39,8 @@ __exportStar(require("./positions"), exports);
39
39
  __exportStar(require("./positionsToSkills"), exports);
40
40
  __exportStar(require("./positionsToTags"), exports);
41
41
  __exportStar(require("./referrals"), exports);
42
+ __exportStar(require("./referralsPayouts"), exports);
42
43
  __exportStar(require("./referralsToMessages"), exports);
43
- __exportStar(require("./referralPayouts"), exports);
44
44
  __exportStar(require("./senders"), exports);
45
45
  __exportStar(require("./sendgrid"), exports);
46
46
  __exportStar(require("./settings"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,8CAA2B;AAC3B,gDAA6B;AAC7B,4CAAyB;AACzB,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB;AACvB,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,sDAAmC;AACnC,gEAA6C;AAC7C,oDAAiC;AACjC,kDAA+B;AAC/B,8CAA2B;AAC3B,sDAAmC;AACnC,oDAAiC;AACjC,8CAA2B;AAC3B,wDAAqC;AACrC,oDAAiC;AACjC,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,2CAAwB;AACxB,yCAAsB;AACtB,wDAAqC;AACrC,uDAAoC;AACpC,4CAAyB","sourcesContent":["export * from './actions'\nexport * from './campaigns'\nexport * from './candidacies'\nexport * from './clients'\nexport * from './dashboard'\nexport * from './educations'\nexport * from './embeddings'\nexport * from './experiences'\nexport * from './files'\nexport * from './jobFunctions'\nexport * from './locations'\nexport * from './matches'\nexport * from './messages'\nexport * from './notes'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToNetworks'\nexport * from './personsToProfessionalEvents'\nexport * from './personsToSkills'\nexport * from './personsToTags'\nexport * from './positions'\nexport * from './positionsToSkills'\nexport * from './positionsToTags'\nexport * from './referrals'\nexport * from './referralsToMessages'\nexport * from './referralPayouts'\nexport * from './senders'\nexport * from './sendgrid'\nexport * from './settings'\nexport * from './skills'\nexport * from './tags'\nexport * from './websiteLandingPages'\nexport * from './websiteStaticPages'\nexport * from './flodesk'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,8CAA2B;AAC3B,gDAA6B;AAC7B,4CAAyB;AACzB,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB;AACvB,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,sDAAmC;AACnC,gEAA6C;AAC7C,oDAAiC;AACjC,kDAA+B;AAC/B,8CAA2B;AAC3B,sDAAmC;AACnC,oDAAiC;AACjC,8CAA2B;AAC3B,qDAAkC;AAClC,wDAAqC;AACrC,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,2CAAwB;AACxB,yCAAsB;AACtB,wDAAqC;AACrC,uDAAoC;AACpC,4CAAyB","sourcesContent":["export * from './actions'\nexport * from './campaigns'\nexport * from './candidacies'\nexport * from './clients'\nexport * from './dashboard'\nexport * from './educations'\nexport * from './embeddings'\nexport * from './experiences'\nexport * from './files'\nexport * from './jobFunctions'\nexport * from './locations'\nexport * from './matches'\nexport * from './messages'\nexport * from './notes'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToNetworks'\nexport * from './personsToProfessionalEvents'\nexport * from './personsToSkills'\nexport * from './personsToTags'\nexport * from './positions'\nexport * from './positionsToSkills'\nexport * from './positionsToTags'\nexport * from './referrals'\nexport * from './referralsPayouts'\nexport * from './referralsToMessages'\nexport * from './senders'\nexport * from './sendgrid'\nexport * from './settings'\nexport * from './skills'\nexport * from './tags'\nexport * from './websiteLandingPages'\nexport * from './websiteStaticPages'\nexport * from './flodesk'\n"]}
@@ -0,0 +1,291 @@
1
+ import { type ListResponse } from '../../../utils';
2
+ import { z } from 'zod/v4';
3
+ export declare const AdminReferralPayoutCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
4
+ id: import("drizzle-orm/pg-core").PgColumn<{
5
+ name: "id";
6
+ tableName: "referral_payouts";
7
+ dataType: "string";
8
+ columnType: "PgUUID";
9
+ data: string;
10
+ driverParam: string;
11
+ notNull: true;
12
+ hasDefault: true;
13
+ isPrimaryKey: true;
14
+ isAutoincrement: false;
15
+ hasRuntimeDefault: false;
16
+ enumValues: undefined;
17
+ baseColumn: never;
18
+ identity: undefined;
19
+ generated: undefined;
20
+ }, {}, {}>;
21
+ referralId: import("drizzle-orm/pg-core").PgColumn<{
22
+ name: "referralId";
23
+ tableName: "referral_payouts";
24
+ dataType: "string";
25
+ columnType: "PgUUID";
26
+ data: string;
27
+ driverParam: string;
28
+ notNull: false;
29
+ hasDefault: false;
30
+ isPrimaryKey: false;
31
+ isAutoincrement: false;
32
+ hasRuntimeDefault: false;
33
+ enumValues: undefined;
34
+ baseColumn: never;
35
+ identity: undefined;
36
+ generated: undefined;
37
+ }, {}, {}>;
38
+ paidAt: import("drizzle-orm/pg-core").PgColumn<{
39
+ name: "paidAt";
40
+ tableName: "referral_payouts";
41
+ dataType: "date";
42
+ columnType: "PgTimestamp";
43
+ data: Date;
44
+ driverParam: string;
45
+ notNull: false;
46
+ hasDefault: false;
47
+ isPrimaryKey: false;
48
+ isAutoincrement: false;
49
+ hasRuntimeDefault: false;
50
+ enumValues: undefined;
51
+ baseColumn: never;
52
+ identity: undefined;
53
+ generated: undefined;
54
+ }, {}, {}>;
55
+ amount: import("drizzle-orm/pg-core").PgColumn<{
56
+ name: "amount";
57
+ tableName: "referral_payouts";
58
+ dataType: "number";
59
+ columnType: "PgInteger";
60
+ data: number;
61
+ driverParam: string | number;
62
+ notNull: false;
63
+ hasDefault: false;
64
+ isPrimaryKey: false;
65
+ isAutoincrement: false;
66
+ hasRuntimeDefault: false;
67
+ enumValues: undefined;
68
+ baseColumn: never;
69
+ identity: undefined;
70
+ generated: undefined;
71
+ }, {}, {}>;
72
+ reason: import("drizzle-orm/pg-core").PgColumn<{
73
+ name: "reason";
74
+ tableName: "referral_payouts";
75
+ dataType: "string";
76
+ columnType: "PgEnumColumn";
77
+ data: "INTERVIEW" | "PLACEMENT";
78
+ driverParam: string;
79
+ notNull: false;
80
+ hasDefault: false;
81
+ isPrimaryKey: false;
82
+ isAutoincrement: false;
83
+ hasRuntimeDefault: false;
84
+ enumValues: ["INTERVIEW" | "PLACEMENT"];
85
+ baseColumn: never;
86
+ identity: undefined;
87
+ generated: undefined;
88
+ }, {}, {}>;
89
+ }, {
90
+ paidAt: z.ZodCoercedDate<unknown>;
91
+ }, undefined>;
92
+ export declare const AdminReferralPayoutSelectSchema: import("drizzle-zod").BuildSchema<"select", {
93
+ id: import("drizzle-orm/pg-core").PgColumn<{
94
+ name: "id";
95
+ tableName: "referral_payouts";
96
+ dataType: "string";
97
+ columnType: "PgUUID";
98
+ data: string;
99
+ driverParam: string;
100
+ notNull: true;
101
+ hasDefault: true;
102
+ isPrimaryKey: true;
103
+ isAutoincrement: false;
104
+ hasRuntimeDefault: false;
105
+ enumValues: undefined;
106
+ baseColumn: never;
107
+ identity: undefined;
108
+ generated: undefined;
109
+ }, {}, {}>;
110
+ referralId: import("drizzle-orm/pg-core").PgColumn<{
111
+ name: "referralId";
112
+ tableName: "referral_payouts";
113
+ dataType: "string";
114
+ columnType: "PgUUID";
115
+ data: string;
116
+ driverParam: string;
117
+ notNull: false;
118
+ hasDefault: false;
119
+ isPrimaryKey: false;
120
+ isAutoincrement: false;
121
+ hasRuntimeDefault: false;
122
+ enumValues: undefined;
123
+ baseColumn: never;
124
+ identity: undefined;
125
+ generated: undefined;
126
+ }, {}, {}>;
127
+ paidAt: import("drizzle-orm/pg-core").PgColumn<{
128
+ name: "paidAt";
129
+ tableName: "referral_payouts";
130
+ dataType: "date";
131
+ columnType: "PgTimestamp";
132
+ data: Date;
133
+ driverParam: string;
134
+ notNull: false;
135
+ hasDefault: false;
136
+ isPrimaryKey: false;
137
+ isAutoincrement: false;
138
+ hasRuntimeDefault: false;
139
+ enumValues: undefined;
140
+ baseColumn: never;
141
+ identity: undefined;
142
+ generated: undefined;
143
+ }, {}, {}>;
144
+ amount: import("drizzle-orm/pg-core").PgColumn<{
145
+ name: "amount";
146
+ tableName: "referral_payouts";
147
+ dataType: "number";
148
+ columnType: "PgInteger";
149
+ data: number;
150
+ driverParam: string | number;
151
+ notNull: false;
152
+ hasDefault: false;
153
+ isPrimaryKey: false;
154
+ isAutoincrement: false;
155
+ hasRuntimeDefault: false;
156
+ enumValues: undefined;
157
+ baseColumn: never;
158
+ identity: undefined;
159
+ generated: undefined;
160
+ }, {}, {}>;
161
+ reason: import("drizzle-orm/pg-core").PgColumn<{
162
+ name: "reason";
163
+ tableName: "referral_payouts";
164
+ dataType: "string";
165
+ columnType: "PgEnumColumn";
166
+ data: "INTERVIEW" | "PLACEMENT";
167
+ driverParam: string;
168
+ notNull: false;
169
+ hasDefault: false;
170
+ isPrimaryKey: false;
171
+ isAutoincrement: false;
172
+ hasRuntimeDefault: false;
173
+ enumValues: ["INTERVIEW" | "PLACEMENT"];
174
+ baseColumn: never;
175
+ identity: undefined;
176
+ generated: undefined;
177
+ }, {}, {}>;
178
+ }, undefined, undefined>;
179
+ export declare const AdminReferralPayoutParamsSchema: import("drizzle-zod").BuildSchema<"select", {
180
+ id: import("drizzle-orm/pg-core").PgColumn<{
181
+ name: "id";
182
+ tableName: "referral_payouts";
183
+ dataType: "string";
184
+ columnType: "PgUUID";
185
+ data: string;
186
+ driverParam: string;
187
+ notNull: true;
188
+ hasDefault: true;
189
+ isPrimaryKey: true;
190
+ isAutoincrement: false;
191
+ hasRuntimeDefault: false;
192
+ enumValues: undefined;
193
+ baseColumn: never;
194
+ identity: undefined;
195
+ generated: undefined;
196
+ }, {}, {}>;
197
+ referralId: import("drizzle-orm/pg-core").PgColumn<{
198
+ name: "referralId";
199
+ tableName: "referral_payouts";
200
+ dataType: "string";
201
+ columnType: "PgUUID";
202
+ data: string;
203
+ driverParam: string;
204
+ notNull: false;
205
+ hasDefault: false;
206
+ isPrimaryKey: false;
207
+ isAutoincrement: false;
208
+ hasRuntimeDefault: false;
209
+ enumValues: undefined;
210
+ baseColumn: never;
211
+ identity: undefined;
212
+ generated: undefined;
213
+ }, {}, {}>;
214
+ paidAt: import("drizzle-orm/pg-core").PgColumn<{
215
+ name: "paidAt";
216
+ tableName: "referral_payouts";
217
+ dataType: "date";
218
+ columnType: "PgTimestamp";
219
+ data: Date;
220
+ driverParam: string;
221
+ notNull: false;
222
+ hasDefault: false;
223
+ isPrimaryKey: false;
224
+ isAutoincrement: false;
225
+ hasRuntimeDefault: false;
226
+ enumValues: undefined;
227
+ baseColumn: never;
228
+ identity: undefined;
229
+ generated: undefined;
230
+ }, {}, {}>;
231
+ amount: import("drizzle-orm/pg-core").PgColumn<{
232
+ name: "amount";
233
+ tableName: "referral_payouts";
234
+ dataType: "number";
235
+ columnType: "PgInteger";
236
+ data: number;
237
+ driverParam: string | number;
238
+ notNull: false;
239
+ hasDefault: false;
240
+ isPrimaryKey: false;
241
+ isAutoincrement: false;
242
+ hasRuntimeDefault: false;
243
+ enumValues: undefined;
244
+ baseColumn: never;
245
+ identity: undefined;
246
+ generated: undefined;
247
+ }, {}, {}>;
248
+ reason: import("drizzle-orm/pg-core").PgColumn<{
249
+ name: "reason";
250
+ tableName: "referral_payouts";
251
+ dataType: "string";
252
+ columnType: "PgEnumColumn";
253
+ data: "INTERVIEW" | "PLACEMENT";
254
+ driverParam: string;
255
+ notNull: false;
256
+ hasDefault: false;
257
+ isPrimaryKey: false;
258
+ isAutoincrement: false;
259
+ hasRuntimeDefault: false;
260
+ enumValues: ["INTERVIEW" | "PLACEMENT"];
261
+ baseColumn: never;
262
+ identity: undefined;
263
+ generated: undefined;
264
+ }, {}, {}>;
265
+ }, undefined, undefined>;
266
+ export declare const AdminReferralPayoutListQuerySchema: z.ZodObject<{
267
+ limit: z.ZodOptional<z.ZodNumber>;
268
+ offset: z.ZodOptional<z.ZodNumber>;
269
+ sort: z.ZodOptional<z.ZodObject<{
270
+ field: z.ZodString;
271
+ direction: z.ZodEnum<{
272
+ asc: "asc";
273
+ desc: "desc";
274
+ }>;
275
+ }, z.core.$strip>>;
276
+ filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
277
+ }, z.core.$strip>;
278
+ export declare const AdminReferralPayoutDeleteParamsSchema: z.ZodObject<{
279
+ id: z.ZodUUID;
280
+ }, {
281
+ out: {};
282
+ in: {};
283
+ }>;
284
+ type AdminReferralPayout = z.infer<typeof AdminReferralPayoutSelectSchema>;
285
+ export type AdminReferralPayoutParams = z.infer<typeof AdminReferralPayoutParamsSchema>;
286
+ export type AdminReferralPayoutResult = AdminReferralPayout;
287
+ export type AdminReferralPayoutListQuery = z.infer<typeof AdminReferralPayoutListQuerySchema>;
288
+ export type AdminReferralPayoutListResult = ListResponse<z.infer<typeof AdminReferralPayoutSelectSchema>>;
289
+ export type AdminReferralPayoutCreateInput = z.infer<typeof AdminReferralPayoutCreateSchema>;
290
+ export type AdminReferralPayoutDeleteParams = z.infer<typeof AdminReferralPayoutDeleteParamsSchema>;
291
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminReferralPayoutDeleteParamsSchema = exports.AdminReferralPayoutListQuerySchema = exports.AdminReferralPayoutParamsSchema = exports.AdminReferralPayoutSelectSchema = exports.AdminReferralPayoutCreateSchema = void 0;
4
+ const drizzle_zod_1 = require("drizzle-zod");
5
+ const core_1 = require("../../core");
6
+ const utils_1 = require("../../../utils");
7
+ const v4_1 = require("zod/v4");
8
+ //// validators
9
+ exports.AdminReferralPayoutCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.referralPayout, {
10
+ paidAt: v4_1.z.coerce.date()
11
+ });
12
+ exports.AdminReferralPayoutSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.referralPayout);
13
+ exports.AdminReferralPayoutParamsSchema = exports.AdminReferralPayoutSelectSchema;
14
+ exports.AdminReferralPayoutListQuerySchema = utils_1.ListQuerySchema;
15
+ exports.AdminReferralPayoutDeleteParamsSchema = exports.AdminReferralPayoutParamsSchema.pick({
16
+ id: true
17
+ });
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/referralsPayouts/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAA2C;AAC3C,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,+BAA+B,GAAG,IAAA,gCAAkB,EAC/D,qBAAc,EACd;IACE,MAAM,EAAE,MAAC,CAAC,MAAM,CAAC,IAAI,EAAE;CACxB,CACF,CAAA;AACY,QAAA,+BAA+B,GAC1C,IAAA,gCAAkB,EAAC,qBAAc,CAAC,CAAA;AAEvB,QAAA,+BAA+B,GAAG,uCAA+B,CAAA;AACjE,QAAA,kCAAkC,GAAG,uBAAe,CAAA;AACpD,QAAA,qCAAqC,GAChD,uCAA+B,CAAC,IAAI,CAAC;IACnC,EAAE,EAAE,IAAI;CACT,CAAC,CAAA","sourcesContent":["import { createInsertSchema, createSelectSchema } from 'drizzle-zod'\nimport { referralPayout } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminReferralPayoutCreateSchema = createInsertSchema(\n referralPayout,\n {\n paidAt: z.coerce.date()\n }\n)\nexport const AdminReferralPayoutSelectSchema =\n createSelectSchema(referralPayout)\n\nexport const AdminReferralPayoutParamsSchema = AdminReferralPayoutSelectSchema\nexport const AdminReferralPayoutListQuerySchema = ListQuerySchema\nexport const AdminReferralPayoutDeleteParamsSchema =\n AdminReferralPayoutParamsSchema.pick({\n id: true\n })\n\n//// types\n\ntype AdminReferralPayout = z.infer<typeof AdminReferralPayoutSelectSchema>\n\n// detail\nexport type AdminReferralPayoutParams = z.infer<\n typeof AdminReferralPayoutParamsSchema\n>\nexport type AdminReferralPayoutResult = AdminReferralPayout\n\n// list\nexport type AdminReferralPayoutListQuery = z.infer<\n typeof AdminReferralPayoutListQuerySchema\n>\nexport type AdminReferralPayoutListResult = ListResponse<\n z.infer<typeof AdminReferralPayoutSelectSchema>\n>\n\n// create\nexport type AdminReferralPayoutCreateInput = z.infer<\n typeof AdminReferralPayoutCreateSchema\n>\n\n// delete\nexport type AdminReferralPayoutDeleteParams = z.infer<\n typeof AdminReferralPayoutDeleteParamsSchema\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.259",
3
+ "version": "0.2.260",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",