jamespot-front-business 1.2.59 → 1.2.60

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/README.md CHANGED
@@ -21,3 +21,4 @@ const component = () => {
21
21
  return <></>;
22
22
  };
23
23
  ```
24
+
package/dist/types.d.ts CHANGED
@@ -2004,25 +2004,25 @@ declare const Comment: {
2004
2004
  max: z.ZodNumber;
2005
2005
  start: z.ZodNumber;
2006
2006
  }, "strip", z.ZodTypeAny, {
2007
- max: number;
2008
2007
  start: number;
2009
- }, {
2010
2008
  max: number;
2009
+ }, {
2011
2010
  start: number;
2011
+ max: number;
2012
2012
  }>>;
2013
2013
  }, "strip", z.ZodTypeAny, {
2014
2014
  idArticle: number;
2015
2015
  attachment?: boolean | undefined;
2016
2016
  limits?: {
2017
- max: number;
2018
2017
  start: number;
2018
+ max: number;
2019
2019
  } | undefined;
2020
2020
  }, {
2021
2021
  idArticle: number;
2022
2022
  attachment?: boolean | undefined;
2023
2023
  limits?: {
2024
- max: number;
2025
2024
  start: number;
2025
+ max: number;
2026
2026
  } | undefined;
2027
2027
  }>>, {
2028
2028
  dispatch: AppDispatch;
@@ -4704,9 +4704,9 @@ declare const WedocApp: {
4704
4704
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
4705
4705
  type: z.ZodType<string, z.ZodTypeDef, string>;
4706
4706
  uri: z.ZodType<string, z.ZodTypeDef, string>;
4707
- } & {
4708
4707
  title: z.ZodString;
4709
4708
  _url: z.ZodString;
4709
+ } & {
4710
4710
  level: z.ZodNativeEnum<{
4711
4711
  readonly ADMIN: 9;
4712
4712
  readonly USER: 5;
@@ -4718,7 +4718,17 @@ declare const WedocApp: {
4718
4718
  }>>;
4719
4719
  dateCreation: z.ZodString;
4720
4720
  dateModified: z.ZodString;
4721
- }, "strip", z.ZodTypeAny, jamespot_user_api.jUserLittle, jamespot_user_api.jUserLittle>;
4721
+ }, "strip", z.ZodTypeAny, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4722
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4723
+ dateCreation: string;
4724
+ dateModified: string;
4725
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
4726
+ }, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4727
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4728
+ dateCreation: string;
4729
+ dateModified: string;
4730
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
4731
+ }>;
4722
4732
  _audience: z.ZodArray<z.ZodObject<{
4723
4733
  id: z.ZodType<number, z.ZodTypeDef, number>;
4724
4734
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
@@ -4736,11 +4746,7 @@ declare const WedocApp: {
4736
4746
  uri: string;
4737
4747
  mainType: string;
4738
4748
  title: string;
4739
- _user: jamespot_user_api.jObjectBase & {
4740
- title: string;
4741
- _url: string;
4742
- } & {
4743
- [key: string]: string | number | null | undefined;
4749
+ _user: Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4744
4750
  level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4745
4751
  dateCreation: string;
4746
4752
  dateModified: string;
@@ -4774,11 +4780,7 @@ declare const WedocApp: {
4774
4780
  uri: string;
4775
4781
  mainType: string;
4776
4782
  title: string;
4777
- _user: jamespot_user_api.jObjectBase & {
4778
- title: string;
4779
- _url: string;
4780
- } & {
4781
- [key: string]: string | number | null | undefined;
4783
+ _user: Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4782
4784
  level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4783
4785
  dateCreation: string;
4784
4786
  dateModified: string;
@@ -4908,9 +4910,9 @@ declare const WedocApp: {
4908
4910
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
4909
4911
  type: z.ZodType<string, z.ZodTypeDef, string>;
4910
4912
  uri: z.ZodType<string, z.ZodTypeDef, string>;
4911
- } & {
4912
4913
  title: z.ZodString;
4913
4914
  _url: z.ZodString;
4915
+ } & {
4914
4916
  level: z.ZodNativeEnum<{
4915
4917
  readonly ADMIN: 9;
4916
4918
  readonly USER: 5;
@@ -4922,7 +4924,17 @@ declare const WedocApp: {
4922
4924
  }>>;
4923
4925
  dateCreation: z.ZodString;
4924
4926
  dateModified: z.ZodString;
4925
- }, "strip", z.ZodTypeAny, jamespot_user_api.jUserLittle, jamespot_user_api.jUserLittle>;
4927
+ }, "strip", z.ZodTypeAny, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4928
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4929
+ dateCreation: string;
4930
+ dateModified: string;
4931
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
4932
+ }, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4933
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4934
+ dateCreation: string;
4935
+ dateModified: string;
4936
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
4937
+ }>;
4926
4938
  _audience: z.ZodArray<z.ZodObject<{
4927
4939
  id: z.ZodType<number, z.ZodTypeDef, number>;
4928
4940
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
@@ -4940,11 +4952,7 @@ declare const WedocApp: {
4940
4952
  uri: string;
4941
4953
  mainType: string;
4942
4954
  title: string;
4943
- _user: jamespot_user_api.jObjectBase & {
4944
- title: string;
4945
- _url: string;
4946
- } & {
4947
- [key: string]: string | number | null | undefined;
4955
+ _user: Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4948
4956
  level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4949
4957
  dateCreation: string;
4950
4958
  dateModified: string;
@@ -4978,11 +4986,7 @@ declare const WedocApp: {
4978
4986
  uri: string;
4979
4987
  mainType: string;
4980
4988
  title: string;
4981
- _user: jamespot_user_api.jObjectBase & {
4982
- title: string;
4983
- _url: string;
4984
- } & {
4985
- [key: string]: string | number | null | undefined;
4989
+ _user: Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
4986
4990
  level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
4987
4991
  dateCreation: string;
4988
4992
  dateModified: string;
@@ -5115,9 +5119,9 @@ declare const TVDisplay: {
5115
5119
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
5116
5120
  type: z.ZodType<string, z.ZodTypeDef, string>;
5117
5121
  uri: z.ZodType<string, z.ZodTypeDef, string>;
5118
- } & {
5119
5122
  title: z.ZodString;
5120
5123
  _url: z.ZodString;
5124
+ } & {
5121
5125
  level: z.ZodNativeEnum<{
5122
5126
  readonly ADMIN: 9;
5123
5127
  readonly USER: 5;
@@ -5129,7 +5133,17 @@ declare const TVDisplay: {
5129
5133
  }>>;
5130
5134
  dateCreation: z.ZodString;
5131
5135
  dateModified: z.ZodString;
5132
- }, "strip", z.ZodTypeAny, jamespot_user_api.jUserLittle, jamespot_user_api.jUserLittle>;
5136
+ }, "strip", z.ZodTypeAny, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5137
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5138
+ dateCreation: string;
5139
+ dateModified: string;
5140
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5141
+ }, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5142
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5143
+ dateCreation: string;
5144
+ dateModified: string;
5145
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5146
+ }>;
5133
5147
  _right: z.ZodObject<{
5134
5148
  create: z.ZodType<boolean, z.ZodTypeDef, boolean>;
5135
5149
  read: z.ZodType<boolean, z.ZodTypeDef, boolean>;
@@ -5145,9 +5159,9 @@ declare const TVDisplay: {
5145
5159
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
5146
5160
  type: z.ZodType<string, z.ZodTypeDef, string>;
5147
5161
  uri: z.ZodType<string, z.ZodTypeDef, string>;
5148
- } & {
5149
5162
  title: z.ZodString;
5150
5163
  _url: z.ZodString;
5164
+ } & {
5151
5165
  level: z.ZodNativeEnum<{
5152
5166
  readonly ADMIN: 9;
5153
5167
  readonly USER: 5;
@@ -5159,7 +5173,17 @@ declare const TVDisplay: {
5159
5173
  }>>;
5160
5174
  dateCreation: z.ZodString;
5161
5175
  dateModified: z.ZodString;
5162
- }, "strip", z.ZodTypeAny, jamespot_user_api.jUserLittle, jamespot_user_api.jUserLittle>, z.ZodObject<{
5176
+ }, "strip", z.ZodTypeAny, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5177
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5178
+ dateCreation: string;
5179
+ dateModified: string;
5180
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5181
+ }, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5182
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5183
+ dateCreation: string;
5184
+ dateModified: string;
5185
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5186
+ }>, z.ZodObject<{
5163
5187
  id: z.ZodType<number, z.ZodTypeDef, number>;
5164
5188
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
5165
5189
  type: z.ZodType<string, z.ZodTypeDef, string>;
@@ -5596,9 +5620,9 @@ declare const TVDisplay: {
5596
5620
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
5597
5621
  type: z.ZodType<string, z.ZodTypeDef, string>;
5598
5622
  uri: z.ZodType<string, z.ZodTypeDef, string>;
5599
- } & {
5600
5623
  title: z.ZodString;
5601
5624
  _url: z.ZodString;
5625
+ } & {
5602
5626
  level: z.ZodNativeEnum<{
5603
5627
  readonly ADMIN: 9;
5604
5628
  readonly USER: 5;
@@ -5610,7 +5634,17 @@ declare const TVDisplay: {
5610
5634
  }>>;
5611
5635
  dateCreation: z.ZodString;
5612
5636
  dateModified: z.ZodString;
5613
- }, "strip", z.ZodTypeAny, jamespot_user_api.jUserLittle, jamespot_user_api.jUserLittle>;
5637
+ }, "strip", z.ZodTypeAny, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5638
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5639
+ dateCreation: string;
5640
+ dateModified: string;
5641
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5642
+ }, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5643
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5644
+ dateCreation: string;
5645
+ dateModified: string;
5646
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5647
+ }>;
5614
5648
  _right: z.ZodObject<{
5615
5649
  create: z.ZodType<boolean, z.ZodTypeDef, boolean>;
5616
5650
  read: z.ZodType<boolean, z.ZodTypeDef, boolean>;
@@ -5626,9 +5660,9 @@ declare const TVDisplay: {
5626
5660
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
5627
5661
  type: z.ZodType<string, z.ZodTypeDef, string>;
5628
5662
  uri: z.ZodType<string, z.ZodTypeDef, string>;
5629
- } & {
5630
5663
  title: z.ZodString;
5631
5664
  _url: z.ZodString;
5665
+ } & {
5632
5666
  level: z.ZodNativeEnum<{
5633
5667
  readonly ADMIN: 9;
5634
5668
  readonly USER: 5;
@@ -5640,7 +5674,17 @@ declare const TVDisplay: {
5640
5674
  }>>;
5641
5675
  dateCreation: z.ZodString;
5642
5676
  dateModified: z.ZodString;
5643
- }, "strip", z.ZodTypeAny, jamespot_user_api.jUserLittle, jamespot_user_api.jUserLittle>, z.ZodObject<{
5677
+ }, "strip", z.ZodTypeAny, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5678
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5679
+ dateCreation: string;
5680
+ dateModified: string;
5681
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5682
+ }, Omit<jamespot_user_api.jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
5683
+ level: typeof jamespot_user_api.UserLevel[keyof typeof jamespot_user_api.UserLevel];
5684
+ dateCreation: string;
5685
+ dateModified: string;
5686
+ variant?: typeof jamespot_user_api.UserVariant[keyof typeof jamespot_user_api.UserVariant] | undefined;
5687
+ }>, z.ZodObject<{
5644
5688
  id: z.ZodType<number, z.ZodTypeDef, number>;
5645
5689
  mainType: z.ZodType<string, z.ZodTypeDef, string>;
5646
5690
  type: z.ZodType<string, z.ZodTypeDef, string>;
@@ -7145,7 +7189,7 @@ declare const Widget: {
7145
7189
  dateModified?: string | undefined;
7146
7190
  title?: string | undefined;
7147
7191
  _url?: string | undefined;
7148
- level?: 0 | 9 | 3 | 5 | undefined;
7192
+ level?: 0 | 3 | 5 | 9 | undefined;
7149
7193
  variant?: "extraBot" | undefined;
7150
7194
  }, {
7151
7195
  id?: number | undefined;
@@ -7156,7 +7200,7 @@ declare const Widget: {
7156
7200
  dateModified?: string | undefined;
7157
7201
  title?: string | undefined;
7158
7202
  _url?: string | undefined;
7159
- level?: 0 | 9 | 3 | 5 | undefined;
7203
+ level?: 0 | 3 | 5 | 9 | undefined;
7160
7204
  variant?: "extraBot" | undefined;
7161
7205
  }>>;
7162
7206
  flushedWidgets: z.ZodArray<z.ZodString, "many">;
@@ -7175,14 +7219,14 @@ declare const Widget: {
7175
7219
  _url: z.ZodString;
7176
7220
  }, "strip", z.ZodTypeAny, jamespot_user_api.jObjectLittle, jamespot_user_api.jObjectLittle>;
7177
7221
  }, "strip", z.ZodTypeAny, {
7178
- object: jamespot_user_api.jObjectBase & {
7222
+ object: Omit<jamespot_user_api.jObjectBase, "title" | "_url"> & {
7179
7223
  title: string;
7180
7224
  _url: string;
7181
7225
  };
7182
7226
  uniqid: string;
7183
7227
  fn: "widget-presence-response" | "check-list-response" | "widget-update" | "widget-quick-survey-response";
7184
7228
  }, {
7185
- object: jamespot_user_api.jObjectBase & {
7229
+ object: Omit<jamespot_user_api.jObjectBase, "title" | "_url"> & {
7186
7230
  title: string;
7187
7231
  _url: string;
7188
7232
  };
@@ -7400,12 +7444,12 @@ declare const Widget: {
7400
7444
  dateModified?: string | undefined;
7401
7445
  title?: string | undefined;
7402
7446
  _url?: string | undefined;
7403
- level?: 0 | 9 | 3 | 5 | undefined;
7447
+ level?: 0 | 3 | 5 | 9 | undefined;
7404
7448
  variant?: "extraBot" | undefined;
7405
7449
  }>;
7406
7450
  flushedWidgets: string[];
7407
7451
  rtObjectStack: {
7408
- object: jamespot_user_api.jObjectBase & {
7452
+ object: Omit<jamespot_user_api.jObjectBase, "title" | "_url"> & {
7409
7453
  title: string;
7410
7454
  _url: string;
7411
7455
  };
@@ -7629,12 +7673,12 @@ declare const Widget: {
7629
7673
  dateModified?: string | undefined;
7630
7674
  title?: string | undefined;
7631
7675
  _url?: string | undefined;
7632
- level?: 0 | 9 | 3 | 5 | undefined;
7676
+ level?: 0 | 3 | 5 | 9 | undefined;
7633
7677
  variant?: "extraBot" | undefined;
7634
7678
  }>;
7635
7679
  flushedWidgets: string[];
7636
7680
  rtObjectStack: {
7637
- object: jamespot_user_api.jObjectBase & {
7681
+ object: Omit<jamespot_user_api.jObjectBase, "title" | "_url"> & {
7638
7682
  title: string;
7639
7683
  _url: string;
7640
7684
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-front-business",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "description": "typescript utils",
5
5
  "main": "dist/cjs.js",
6
6
  "module": "dist/esm.js",
@@ -31,7 +31,7 @@
31
31
  "eslint-config-prettier": "^8.10.2",
32
32
  "eslint-import-resolver-typescript": "^4.4.4",
33
33
  "eslint-plugin-import": "^2.32.0",
34
- "jamespot-user-api": "^1.2.59",
34
+ "jamespot-user-api": "^1.2.60",
35
35
  "jest": "^30.2.0",
36
36
  "jest-environment-jsdom": "^30.2.0",
37
37
  "knip": "^5.66.2",