@the-inkwell/shared 0.2.8 → 0.2.10

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.
@@ -22,6 +22,7 @@ export * from './positionsToTags';
22
22
  export * from './referrals';
23
23
  export * from './referralsToMessages';
24
24
  export * from './senders';
25
+ export * from './sendgrid';
25
26
  export * from './settings';
26
27
  export * from './skills';
27
28
  export * from './tags';
@@ -38,6 +38,7 @@ __exportStar(require("./positionsToTags"), exports);
38
38
  __exportStar(require("./referrals"), exports);
39
39
  __exportStar(require("./referralsToMessages"), exports);
40
40
  __exportStar(require("./senders"), exports);
41
+ __exportStar(require("./sendgrid"), exports);
41
42
  __exportStar(require("./settings"), exports);
42
43
  __exportStar(require("./skills"), exports);
43
44
  __exportStar(require("./tags"), 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,gDAA6B;AAC7B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,8CAA2B;AAC3B,6CAA0B;AAC1B,0CAAuB;AACvB,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,oDAAiC;AACjC,kDAA+B;AAC/B,8CAA2B;AAC3B,sDAAmC;AACnC,oDAAiC;AACjC,8CAA2B;AAC3B,wDAAqC;AACrC,4CAAyB;AACzB,6CAA0B;AAC1B,2CAAwB;AACxB,yCAAsB;AACtB,wDAAqC;AACrC,uDAAoC","sourcesContent":["export * from './actions'\nexport * from './campaigns'\nexport * from './candidacies'\nexport * from './clients'\nexport * from './dashboard'\nexport * from './educations'\nexport * from './experiences'\nexport * from './files'\nexport * from './jobFunctions'\nexport * from './listViews'\nexport * from './locations'\nexport * from './messages'\nexport * from './notes'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToSkills'\nexport * from './personsToTags'\nexport * from './positions'\nexport * from './positionsToSkills'\nexport * from './positionsToTags'\nexport * from './referrals'\nexport * from './referralsToMessages'\nexport * from './senders'\nexport * from './settings'\nexport * from './skills'\nexport * from './tags'\nexport * from './websiteLandingPages'\nexport * from './websiteStaticPages'\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,gDAA6B;AAC7B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,8CAA2B;AAC3B,6CAA0B;AAC1B,0CAAuB;AACvB,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,oDAAiC;AACjC,kDAA+B;AAC/B,8CAA2B;AAC3B,sDAAmC;AACnC,oDAAiC;AACjC,8CAA2B;AAC3B,wDAAqC;AACrC,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,2CAAwB;AACxB,yCAAsB;AACtB,wDAAqC;AACrC,uDAAoC","sourcesContent":["export * from './actions'\nexport * from './campaigns'\nexport * from './candidacies'\nexport * from './clients'\nexport * from './dashboard'\nexport * from './educations'\nexport * from './experiences'\nexport * from './files'\nexport * from './jobFunctions'\nexport * from './listViews'\nexport * from './locations'\nexport * from './messages'\nexport * from './notes'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToSkills'\nexport * from './personsToTags'\nexport * from './positions'\nexport * from './positionsToSkills'\nexport * from './positionsToTags'\nexport * from './referrals'\nexport * from './referralsToMessages'\nexport * from './senders'\nexport * from './sendgrid'\nexport * from './settings'\nexport * from './skills'\nexport * from './tags'\nexport * from './websiteLandingPages'\nexport * from './websiteStaticPages'\n"]}
@@ -334,7 +334,9 @@ export declare const AdminSkillListQuerySchema: z.ZodObject<{
334
334
  limit: z.ZodOptional<z.ZodNumber>;
335
335
  offset: z.ZodOptional<z.ZodNumber>;
336
336
  sort: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
337
- filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
337
+ filter: z.ZodOptional<z.ZodObject<{
338
+ name: z.ZodOptional<z.ZodString>;
339
+ }, z.core.$strip>>;
338
340
  }, z.core.$strip>;
339
341
  export declare const AdminSkillUpdateParamsSchema: z.ZodObject<{
340
342
  id: z.ZodUUID;
@@ -27,7 +27,14 @@ exports.AdminSkillParamsSchema = exports.AdminSelectSkillSchema.pick({
27
27
  exports.AdminSkillSlugParamsSchema = exports.AdminSelectSkillSchema.pick({
28
28
  slug: true
29
29
  });
30
- exports.AdminSkillListQuerySchema = utils_1.ListQuerySchema;
30
+ exports.AdminSkillListQuerySchema = utils_1.ListQuerySchema.extend({
31
+ filter: v4_1.z
32
+ .object({
33
+ name: v4_1.z.string()
34
+ })
35
+ .partial()
36
+ .optional()
37
+ });
31
38
  exports.AdminSkillUpdateParamsSchema = exports.AdminSkillParamsSchema;
32
39
  exports.AdminSkillDeleteParamsSchema = exports.AdminSkillParamsSchema;
33
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/skills/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAIoB;AACpB,qCAAkC;AAClC,0CAAmE;AACnE,+BAA0B;AAC1B,sDAA6B;AAE7B,MAAM,cAAc,GAAG;IACrB,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACnC,CAAC,CAAC;IACF,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,OAAO,IAAA,iBAAO,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IACxC,CAAC,CAAC;CACH,CAAA;AAED,eAAe;AAEF,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,EAAE,cAAc,CAAC,CAAA;AAClE,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,CAAC,CAAA;AAClD,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,EAAE,cAAc,CAAC,CAAA;AAElE,QAAA,sBAAsB,GAAG,8BAAsB,CAAC,IAAI,CAAC;IAChE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,0BAA0B,GAAG,8BAAsB,CAAC,IAAI,CAAC;IACpE,IAAI,EAAE,IAAI;CACX,CAAC,CAAA;AACW,QAAA,yBAAyB,GAAG,uBAAe,CAAA;AAC3C,QAAA,4BAA4B,GAAG,8BAAsB,CAAA;AACrD,QAAA,4BAA4B,GAAG,8BAAsB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { skill } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\nimport slugify from 'slugify'\n\nconst upsertExtended = {\n name: z.string().transform((value) => {\n return value.trim().toLowerCase()\n }),\n slug: z.string().transform((value) => {\n return slugify(value, { lower: true })\n })\n}\n\n//// validators\n\nexport const AdminSkillCreateSchema = createInsertSchema(skill, upsertExtended)\nexport const AdminSelectSkillSchema = createSelectSchema(skill)\nexport const AdminSkillUpdateSchema = createUpdateSchema(skill, upsertExtended)\n\nexport const AdminSkillParamsSchema = AdminSelectSkillSchema.pick({\n id: true\n})\nexport const AdminSkillSlugParamsSchema = AdminSelectSkillSchema.pick({\n slug: true\n})\nexport const AdminSkillListQuerySchema = ListQuerySchema\nexport const AdminSkillUpdateParamsSchema = AdminSkillParamsSchema\nexport const AdminSkillDeleteParamsSchema = AdminSkillParamsSchema\n\n//// types\n\ntype AdminSkill = z.infer<typeof AdminSelectSkillSchema>\n\n// detail\nexport type AdminSkillParams = z.infer<typeof AdminSkillParamsSchema>\nexport type AdminSkillSlugParams = z.infer<typeof AdminSkillSlugParamsSchema>\nexport type AdminSkillResult = AdminSkill\n\n// list\nexport type AdminSkillListQuery = z.infer<typeof AdminSkillListQuerySchema>\nexport type AdminSkillListResult = ListResponse<\n z.infer<typeof AdminSelectSkillSchema>\n>\n\n// create\nexport type AdminSkillCreateInput = z.infer<typeof AdminSkillCreateSchema>\nexport type AdminSkillCreateResult = Pick<AdminSkill, 'id'>\n\n// update\nexport type AdminSkillUpdateParams = z.infer<\n typeof AdminSkillUpdateParamsSchema\n>\nexport type AdminSkillUpdateInput = Partial<AdminSkill>\n\n// delete\nexport type AdminSkillDeleteParams = z.infer<\n typeof AdminSkillDeleteParamsSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/skills/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAIoB;AACpB,qCAAkC;AAClC,0CAAmE;AACnE,+BAA0B;AAC1B,sDAA6B;AAE7B,MAAM,cAAc,GAAG;IACrB,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACnC,CAAC,CAAC;IACF,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,OAAO,IAAA,iBAAO,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IACxC,CAAC,CAAC;CACH,CAAA;AAED,eAAe;AAEF,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,EAAE,cAAc,CAAC,CAAA;AAClE,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,CAAC,CAAA;AAClD,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,EAAE,cAAc,CAAC,CAAA;AAElE,QAAA,sBAAsB,GAAG,8BAAsB,CAAC,IAAI,CAAC;IAChE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,0BAA0B,GAAG,8BAAsB,CAAC,IAAI,CAAC;IACpE,IAAI,EAAE,IAAI;CACX,CAAC,CAAA;AACW,QAAA,yBAAyB,GAAG,uBAAe,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;KACjB,CAAC;SACD,OAAO,EAAE;SACT,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,4BAA4B,GAAG,8BAAsB,CAAA;AACrD,QAAA,4BAA4B,GAAG,8BAAsB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { skill } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\nimport slugify from 'slugify'\n\nconst upsertExtended = {\n name: z.string().transform((value) => {\n return value.trim().toLowerCase()\n }),\n slug: z.string().transform((value) => {\n return slugify(value, { lower: true })\n })\n}\n\n//// validators\n\nexport const AdminSkillCreateSchema = createInsertSchema(skill, upsertExtended)\nexport const AdminSelectSkillSchema = createSelectSchema(skill)\nexport const AdminSkillUpdateSchema = createUpdateSchema(skill, upsertExtended)\n\nexport const AdminSkillParamsSchema = AdminSelectSkillSchema.pick({\n id: true\n})\nexport const AdminSkillSlugParamsSchema = AdminSelectSkillSchema.pick({\n slug: true\n})\nexport const AdminSkillListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n name: z.string()\n })\n .partial()\n .optional()\n})\nexport const AdminSkillUpdateParamsSchema = AdminSkillParamsSchema\nexport const AdminSkillDeleteParamsSchema = AdminSkillParamsSchema\n\n//// types\n\ntype AdminSkill = z.infer<typeof AdminSelectSkillSchema>\n\n// detail\nexport type AdminSkillParams = z.infer<typeof AdminSkillParamsSchema>\nexport type AdminSkillSlugParams = z.infer<typeof AdminSkillSlugParamsSchema>\nexport type AdminSkillResult = AdminSkill\n\n// list\nexport type AdminSkillListQuery = z.infer<typeof AdminSkillListQuerySchema>\nexport type AdminSkillListResult = ListResponse<\n z.infer<typeof AdminSelectSkillSchema>\n>\n\n// create\nexport type AdminSkillCreateInput = z.infer<typeof AdminSkillCreateSchema>\nexport type AdminSkillCreateResult = Pick<AdminSkill, 'id'>\n\n// update\nexport type AdminSkillUpdateParams = z.infer<\n typeof AdminSkillUpdateParamsSchema\n>\nexport type AdminSkillUpdateInput = Partial<AdminSkill>\n\n// delete\nexport type AdminSkillDeleteParams = z.infer<\n typeof AdminSkillDeleteParamsSchema\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",