@thejob/schema 2.1.8 → 2.1.9

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/index.cjs CHANGED
@@ -2895,6 +2895,13 @@ var UserGeneralDetailSchema = (0, import_yup33.object)({
2895
2895
  }).required().label("Name"),
2896
2896
  headline: (0, import_yup33.string)().trim().max(200).optional().label("Headline"),
2897
2897
  image: (0, import_yup33.string)().optional().label("Image"),
2898
+ // The DISPLAYED avatar (`image`) is a flattened export with any status frame
2899
+ // ("#OpenToWork", …) already burned into the pixels. `imageOriginal` keeps the
2900
+ // un-framed source the user uploaded, so the image builder can reopen it and
2901
+ // apply a DIFFERENT frame instead of stacking a second one on top of the first.
2902
+ // Optional and absent on every pre-existing user: treat a missing value as
2903
+ // "only the flattened image is available".
2904
+ imageOriginal: (0, import_yup33.string)().optional().label("Original Image"),
2898
2905
  aboutMe: (0, import_yup33.string)().trim().max(3e3).optional().label("About Me"),
2899
2906
  email: (0, import_yup33.string)().required().label("Email"),
2900
2907
  mobile: (0, import_yup33.string)().nullable().optional().label("Mobile"),
package/dist/index.d.cts CHANGED
@@ -2766,6 +2766,7 @@ declare const UserSchema: yup.ObjectSchema<{
2766
2766
  };
2767
2767
  headline: string | undefined;
2768
2768
  image: string | undefined;
2769
+ imageOriginal: string | undefined;
2769
2770
  aboutMe: string | undefined;
2770
2771
  email: string;
2771
2772
  mobile: string | null | undefined;
@@ -2974,6 +2975,7 @@ declare const UserSchema: yup.ObjectSchema<{
2974
2975
  };
2975
2976
  headline: undefined;
2976
2977
  image: undefined;
2978
+ imageOriginal: undefined;
2977
2979
  aboutMe: undefined;
2978
2980
  email: undefined;
2979
2981
  mobile: undefined;
@@ -3027,6 +3029,7 @@ declare const UserGeneralDetailSchema: yup.ObjectSchema<{
3027
3029
  };
3028
3030
  headline: string | undefined;
3029
3031
  image: string | undefined;
3032
+ imageOriginal: string | undefined;
3030
3033
  aboutMe: string | undefined;
3031
3034
  email: string;
3032
3035
  mobile: string | null | undefined;
@@ -3062,6 +3065,7 @@ declare const UserGeneralDetailSchema: yup.ObjectSchema<{
3062
3065
  };
3063
3066
  headline: undefined;
3064
3067
  image: undefined;
3068
+ imageOriginal: undefined;
3065
3069
  aboutMe: undefined;
3066
3070
  email: undefined;
3067
3071
  mobile: undefined;
package/dist/index.d.ts CHANGED
@@ -2766,6 +2766,7 @@ declare const UserSchema: yup.ObjectSchema<{
2766
2766
  };
2767
2767
  headline: string | undefined;
2768
2768
  image: string | undefined;
2769
+ imageOriginal: string | undefined;
2769
2770
  aboutMe: string | undefined;
2770
2771
  email: string;
2771
2772
  mobile: string | null | undefined;
@@ -2974,6 +2975,7 @@ declare const UserSchema: yup.ObjectSchema<{
2974
2975
  };
2975
2976
  headline: undefined;
2976
2977
  image: undefined;
2978
+ imageOriginal: undefined;
2977
2979
  aboutMe: undefined;
2978
2980
  email: undefined;
2979
2981
  mobile: undefined;
@@ -3027,6 +3029,7 @@ declare const UserGeneralDetailSchema: yup.ObjectSchema<{
3027
3029
  };
3028
3030
  headline: string | undefined;
3029
3031
  image: string | undefined;
3032
+ imageOriginal: string | undefined;
3030
3033
  aboutMe: string | undefined;
3031
3034
  email: string;
3032
3035
  mobile: string | null | undefined;
@@ -3062,6 +3065,7 @@ declare const UserGeneralDetailSchema: yup.ObjectSchema<{
3062
3065
  };
3063
3066
  headline: undefined;
3064
3067
  image: undefined;
3068
+ imageOriginal: undefined;
3065
3069
  aboutMe: undefined;
3066
3070
  email: undefined;
3067
3071
  mobile: undefined;
package/dist/index.js CHANGED
@@ -2701,6 +2701,13 @@ var UserGeneralDetailSchema = object30({
2701
2701
  }).required().label("Name"),
2702
2702
  headline: string28().trim().max(200).optional().label("Headline"),
2703
2703
  image: string28().optional().label("Image"),
2704
+ // The DISPLAYED avatar (`image`) is a flattened export with any status frame
2705
+ // ("#OpenToWork", …) already burned into the pixels. `imageOriginal` keeps the
2706
+ // un-framed source the user uploaded, so the image builder can reopen it and
2707
+ // apply a DIFFERENT frame instead of stacking a second one on top of the first.
2708
+ // Optional and absent on every pre-existing user: treat a missing value as
2709
+ // "only the flattened image is available".
2710
+ imageOriginal: string28().optional().label("Original Image"),
2704
2711
  aboutMe: string28().trim().max(3e3).optional().label("About Me"),
2705
2712
  email: string28().required().label("Email"),
2706
2713
  mobile: string28().nullable().optional().label("Mobile"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -21,6 +21,13 @@ export const UserGeneralDetailSchema = object({
21
21
  .label("Name"),
22
22
  headline: string().trim().max(200).optional().label("Headline"),
23
23
  image: string().optional().label("Image"),
24
+ // The DISPLAYED avatar (`image`) is a flattened export with any status frame
25
+ // ("#OpenToWork", …) already burned into the pixels. `imageOriginal` keeps the
26
+ // un-framed source the user uploaded, so the image builder can reopen it and
27
+ // apply a DIFFERENT frame instead of stacking a second one on top of the first.
28
+ // Optional and absent on every pre-existing user: treat a missing value as
29
+ // "only the flattened image is available".
30
+ imageOriginal: string().optional().label("Original Image"),
24
31
  aboutMe: string().trim().max(3000).optional().label("About Me"),
25
32
  email: string()
26
33
  // .emailStrict() // TODO: Enable strict email validation.