@the-inkwell/shared 0.2.121 → 0.2.122

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.
@@ -11,7 +11,6 @@ export declare const PublicReferClientSignedInSchema: z.ZodObject<{
11
11
  name: z.ZodString;
12
12
  websiteUrl: z.ZodURL;
13
13
  }, z.core.$strict>;
14
- affiliateIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
15
14
  campaignIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
16
15
  }, z.core.$strict>;
17
16
  export declare const PublicReferClientSignedOutSchema: z.ZodObject<{
@@ -44,7 +43,6 @@ export declare const PublicReferCandidacySignedInSchema: z.ZodObject<{
44
43
  linkedInUrl: z.ZodURL;
45
44
  phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
46
45
  }, z.core.$strict>;
47
- affiliateIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
48
46
  campaignIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
49
47
  }, z.core.$strict>;
50
48
  export declare const PublicReferCandidacySignedOutSchema: z.ZodObject<{
@@ -74,7 +72,6 @@ export declare const PublicReferCandidacyPositionSignedInSchema: z.ZodObject<{
74
72
  linkedInUrl: z.ZodURL;
75
73
  phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
76
74
  }, z.core.$strict>;
77
- affiliateIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
78
75
  campaignIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
79
76
  }, z.core.$strict>;
80
77
  export declare const PublicReferCandidacyPositionSignedOutSchema: z.ZodObject<{
@@ -33,7 +33,6 @@ const ClientSchema = v4_1.z.strictObject({
33
33
  exports.PublicReferClientSignedInSchema = v4_1.z.strictObject({
34
34
  contact: PersonSchema,
35
35
  company: ClientSchema,
36
- affiliateIdNano: utils_1.OptionalStringSchema,
37
36
  campaignIdNano: utils_1.OptionalStringSchema
38
37
  });
39
38
  exports.PublicReferClientSignedOutSchema = v4_1.z.strictObject({
@@ -45,7 +44,6 @@ exports.PublicReferClientSignedOutSchema = v4_1.z.strictObject({
45
44
  });
46
45
  exports.PublicReferCandidacySignedInSchema = v4_1.z.strictObject({
47
46
  referred: PersonSchema,
48
- affiliateIdNano: utils_1.OptionalStringSchema,
49
47
  campaignIdNano: utils_1.OptionalStringSchema
50
48
  });
51
49
  exports.PublicReferCandidacySignedOutSchema = v4_1.z.strictObject({
@@ -57,7 +55,6 @@ exports.PublicReferCandidacySignedOutSchema = v4_1.z.strictObject({
57
55
  exports.PublicReferCandidacyPositionSignedInSchema = v4_1.z.strictObject({
58
56
  positionIdNano: v4_1.z.string(),
59
57
  referred: PersonSchema,
60
- affiliateIdNano: utils_1.OptionalStringSchema,
61
58
  campaignIdNano: utils_1.OptionalStringSchema
62
59
  });
63
60
  exports.PublicReferCandidacyPositionSignedOutSchema = v4_1.z.strictObject({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/refer/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,+BAA0B;AAC1B,qCAAqD;AACrD,0CAOuB;AAEvB,eAAe;AAEf,MAAM,YAAY,GAAG,MAAC,CAAC,YAAY,CAAC;IAClC,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,2BAAmB;QAC1B,KAAK,EAAE,mBAAW;QAClB,WAAW,EAAE,yBAAiB;KAC/B,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;Q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EAAE,4BAAoB;IACrC,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,2CAA2C,GAAG,MAAC,CAAC,YAAY,CAAC;IACxE,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,eAAe,EAAE,4BAAoB;IACrC,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,uBAAuB,GAAG,MAAC,CAAC,YAAY,CAAC;IACpD,UAAU,EAAE,MAAC,CAAC,IAAI,EAAE;CACrB,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC7D,UAAU,EAAE,MAAC,CAAC,IAAI,EAAE;IACpB,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,qBAAqB,CAAC;CAClD,CAAC,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { z } from 'zod/v4'\nimport { campaign, client, person } from '../../core'\nimport {\n EmailSchema,\n LinkedInUrlSchema,\n OptionalPhoneSchema,\n OptionalStringSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nconst PersonSchema = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n }).shape\n})\n\nconst ClientSchema = z.strictObject({\n ...createInsertSchema(client, {\n name: z.string().min(1, 'Company name is required'),\n websiteUrl: z.url('Invalid URL')\n }).pick({\n name: true,\n websiteUrl: true\n }).shape\n})\n\nexport const PublicReferClientSignedInSchema = z.strictObject({\n contact: PersonSchema,\n company: ClientSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferClientSignedOutSchema = z.strictObject({\n referrer: PersonSchema,\n contact: PersonSchema,\n company: ClientSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacySignedInSchema = z.strictObject({\n referred: PersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacySignedOutSchema = z.strictObject({\n referrer: PersonSchema,\n referred: PersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacyPositionSignedInSchema = z.strictObject({\n positionIdNano: z.string(),\n referred: PersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacyPositionSignedOutSchema = z.strictObject({\n positionIdNano: z.string(),\n referrer: PersonSchema,\n referred: PersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferResultSchema = z.strictObject({\n referralId: z.uuid()\n})\n\nexport const PublicReferWarmIntroCreateSchema = z.strictObject({\n referralId: z.uuid(),\n message: z.string().min(1, 'Message is required')\n})\n\n//// types\n\n// referral\n\nexport type PublicReferClientSignedInInput = z.infer<\n typeof PublicReferClientSignedInSchema\n>\nexport type PublicReferClientSignedOutInput = z.infer<\n typeof PublicReferClientSignedOutSchema\n>\nexport type PublicReferCandidacySignedInInput = z.infer<\n typeof PublicReferCandidacySignedInSchema\n>\nexport type PublicReferCandidacySignedOutInput = z.infer<\n typeof PublicReferCandidacySignedOutSchema\n>\nexport type PublicReferCandidacyPositionSignedInInput = z.infer<\n typeof PublicReferCandidacyPositionSignedInSchema\n>\nexport type PublicReferCandidacyPositionSignedOutInput = z.infer<\n typeof PublicReferCandidacyPositionSignedOutSchema\n>\n\nexport type PublicReferResult = z.infer<typeof PublicReferResultSchema>\n\n// warm intro\n\nexport type PublicReferWarmIntroCreateInput = z.infer<\n typeof PublicReferWarmIntroCreateSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/refer/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,+BAA0B;AAC1B,qCAAqD;AACrD,0CAOuB;AAEvB,eAAe;AAEf,MAAM,YAAY,GAAG,MAAC,CAAC,YAAY,CAAC;IAClC,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,2BAAmB;QAC1B,KAAK,EAAE,mBAAW;QAClB,WAAW,EAAE,yBAAiB;KAC/B,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,MAAC,CAAC,YAAY,CAAC;IAClC,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;QACnD,UAAU,EAAE,MAAC,CAAC,GAAG,CAAC,aAAa,CAAC;KACjC,CAAC,CAAC,IAAI,CAAC;QACN,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEW,QAAA,+BAA+B,GAAG,MAAC,CAAC,YAAY,CAAC;IAC5D,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,YAAY;IACrB,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC7D,QAAQ,EAAE,YAAY;IACtB,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,YAAY;IACrB,eAAe,EAAE,4BAAoB;IACrC,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,kCAAkC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC/D,QAAQ,EAAE,YAAY;IACtB,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,mCAAmC,GAAG,MAAC,CAAC,YAAY,CAAC;IAChE,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,eAAe,EAAE,4BAAoB;IACrC,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,0CAA0C,GAAG,MAAC,CAAC,YAAY,CAAC;IACvE,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,YAAY;IACtB,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,2CAA2C,GAAG,MAAC,CAAC,YAAY,CAAC;IACxE,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,eAAe,EAAE,4BAAoB;IACrC,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,uBAAuB,GAAG,MAAC,CAAC,YAAY,CAAC;IACpD,UAAU,EAAE,MAAC,CAAC,IAAI,EAAE;CACrB,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC7D,UAAU,EAAE,MAAC,CAAC,IAAI,EAAE;IACpB,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,qBAAqB,CAAC;CAClD,CAAC,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { z } from 'zod/v4'\nimport { campaign, client, person } from '../../core'\nimport {\n EmailSchema,\n LinkedInUrlSchema,\n OptionalPhoneSchema,\n OptionalStringSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nconst PersonSchema = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n }).shape\n})\n\nconst ClientSchema = z.strictObject({\n ...createInsertSchema(client, {\n name: z.string().min(1, 'Company name is required'),\n websiteUrl: z.url('Invalid URL')\n }).pick({\n name: true,\n websiteUrl: true\n }).shape\n})\n\nexport const PublicReferClientSignedInSchema = z.strictObject({\n contact: PersonSchema,\n company: ClientSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferClientSignedOutSchema = z.strictObject({\n referrer: PersonSchema,\n contact: PersonSchema,\n company: ClientSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacySignedInSchema = z.strictObject({\n referred: PersonSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacySignedOutSchema = z.strictObject({\n referrer: PersonSchema,\n referred: PersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacyPositionSignedInSchema = z.strictObject({\n positionIdNano: z.string(),\n referred: PersonSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacyPositionSignedOutSchema = z.strictObject({\n positionIdNano: z.string(),\n referrer: PersonSchema,\n referred: PersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferResultSchema = z.strictObject({\n referralId: z.uuid()\n})\n\nexport const PublicReferWarmIntroCreateSchema = z.strictObject({\n referralId: z.uuid(),\n message: z.string().min(1, 'Message is required')\n})\n\n//// types\n\n// referral\n\nexport type PublicReferClientSignedInInput = z.infer<\n typeof PublicReferClientSignedInSchema\n>\nexport type PublicReferClientSignedOutInput = z.infer<\n typeof PublicReferClientSignedOutSchema\n>\nexport type PublicReferCandidacySignedInInput = z.infer<\n typeof PublicReferCandidacySignedInSchema\n>\nexport type PublicReferCandidacySignedOutInput = z.infer<\n typeof PublicReferCandidacySignedOutSchema\n>\nexport type PublicReferCandidacyPositionSignedInInput = z.infer<\n typeof PublicReferCandidacyPositionSignedInSchema\n>\nexport type PublicReferCandidacyPositionSignedOutInput = z.infer<\n typeof PublicReferCandidacyPositionSignedOutSchema\n>\n\nexport type PublicReferResult = z.infer<typeof PublicReferResultSchema>\n\n// warm intro\n\nexport type PublicReferWarmIntroCreateInput = z.infer<\n typeof PublicReferWarmIntroCreateSchema\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.121",
3
+ "version": "0.2.122",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",