jamespot-user-api 1.0.93 → 1.0.95

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.
Files changed (69) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminStoreApi.html +1 -1
  3. package/documentation/classes/JApplicationApi.html +8 -8
  4. package/documentation/classes/JArticleApi.html +1 -1
  5. package/documentation/classes/JAssetReservation.html +1 -1
  6. package/documentation/classes/JAudienceApi.html +1 -1
  7. package/documentation/classes/JBaseApi.html +1 -1
  8. package/documentation/classes/JBookmarkApi.html +1 -1
  9. package/documentation/classes/JCommunityApi.html +1 -1
  10. package/documentation/classes/JConceptApi.html +2 -2
  11. package/documentation/classes/JDiapazoneApi.html +1 -1
  12. package/documentation/classes/JFileApi.html +1 -1
  13. package/documentation/classes/JFilebankApi.html +1 -1
  14. package/documentation/classes/JGroupApi.html +1 -1
  15. package/documentation/classes/JLandApi.html +1 -1
  16. package/documentation/classes/JLicenseApi.html +4 -4
  17. package/documentation/classes/JMessengerApi.html +1 -1
  18. package/documentation/classes/JSearchApi.html +6 -6
  19. package/documentation/classes/JShareApi.html +1 -1
  20. package/documentation/classes/JUserApi.html +4 -4
  21. package/documentation/classes/JWedocApi.html +1 -1
  22. package/documentation/classes/JamespotUserApi.html +1 -1
  23. package/documentation/classes/Network.html +1 -1
  24. package/documentation/classes/WindowBrowser.html +1 -1
  25. package/documentation/classes/WindowMock.html +2 -2
  26. package/documentation/enums/StudioApplicationStatus.html +1 -1
  27. package/documentation/index.html +1 -1
  28. package/documentation/interfaces/ApiError.html +1 -1
  29. package/documentation/interfaces/ApiWrapper.html +1 -1
  30. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  31. package/documentation/interfaces/BaseMessage.html +1 -1
  32. package/documentation/interfaces/Category.html +1 -1
  33. package/documentation/interfaces/CreateGroup.html +1 -1
  34. package/documentation/interfaces/FileBankProps.html +1 -1
  35. package/documentation/interfaces/FolderProps.html +1 -1
  36. package/documentation/interfaces/ListFilterSpec.html +1 -1
  37. package/documentation/interfaces/OF.html +1 -1
  38. package/documentation/interfaces/ObjectListProps.html +1 -0
  39. package/documentation/interfaces/PagingResults.html +1 -1
  40. package/documentation/interfaces/Result.html +1 -1
  41. package/documentation/interfaces/RootFolderProps.html +1 -1
  42. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  43. package/documentation/interfaces/SearchConfig.html +1 -1
  44. package/documentation/interfaces/SearchFacetModel.html +1 -1
  45. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  46. package/documentation/interfaces/SearchQuery.html +1 -1
  47. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  48. package/documentation/interfaces/SearchQueryOption.html +1 -1
  49. package/documentation/interfaces/SearchQueryResult.html +1 -1
  50. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  51. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  52. package/documentation/interfaces/SearchResultProps.html +1 -1
  53. package/documentation/interfaces/SpotProps.html +1 -1
  54. package/documentation/interfaces/Taxonomy.html +1 -1
  55. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  56. package/documentation/interfaces/WindowInterface.html +1 -1
  57. package/documentation/modules.html +1 -1
  58. package/lib/jamespot-user-api.js +1 -1
  59. package/lib/jamespot-user-api.js.map +1 -1
  60. package/lib/src/apis/article.d.ts +1 -1
  61. package/lib/src/apis/concept.d.ts +3 -0
  62. package/lib/src/apis/user.d.ts +63 -1
  63. package/lib/src/types/concept.d.ts +29 -0
  64. package/lib/src/types/listWrapper.d.ts +2 -0
  65. package/lib/src/types/model.d.ts +7 -1
  66. package/lib/src/types/taxonomy.d.ts +14 -14
  67. package/lib/src/types/user.d.ts +10 -0
  68. package/lib/src/types/utils.d.ts +18 -2
  69. package/package.json +1 -1
@@ -18,6 +18,12 @@ export declare type WidgetDate = {
18
18
  export declare type WidgetDatetime = {
19
19
  type: 'datetime';
20
20
  };
21
+ export declare type WidgetMultiattribute = {
22
+ type: 'multiattribute';
23
+ };
24
+ export declare type WidgetFile = {
25
+ type: 'file';
26
+ };
21
27
  export declare type WidgetSelect<U extends string = string> = {
22
28
  type: 'select';
23
29
  options: Record<U, string>;
@@ -72,7 +78,7 @@ export declare type WidgetUri = {
72
78
  type: string;
73
79
  };
74
80
  };
75
- export declare type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient;
81
+ export declare type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetFile;
76
82
  export declare type FieldConfiguration<T extends string = string> = {
77
83
  label: string;
78
84
  description?: string;
@@ -2,18 +2,18 @@ export interface Taxonomy {
2
2
  id: number;
3
3
  type: string;
4
4
  title: string;
5
- dateCreation: string;
6
- mainTypes: never[];
7
- types: null;
8
- mandatory: null;
9
- public: null;
10
- wallFilter: null;
11
- jamespot: string;
5
+ dateCreation?: string;
6
+ mainTypes?: never[];
7
+ types?: null;
8
+ mandatory?: null;
9
+ public?: null;
10
+ wallFilter?: null;
11
+ jamespot?: string;
12
12
  uri: string;
13
- mainType: string;
14
- _cssColor: string;
15
- _cssClass: string;
16
- _right: {
13
+ mainType?: string;
14
+ _cssColor?: string;
15
+ _cssClass?: string;
16
+ _right?: {
17
17
  create: boolean;
18
18
  read: boolean;
19
19
  publish: boolean;
@@ -23,7 +23,7 @@ export interface Taxonomy {
23
23
  comment: boolean;
24
24
  member: boolean;
25
25
  };
26
- _values: {
26
+ _values?: {
27
27
  type: string;
28
28
  title: string;
29
29
  dateCreation: string;
@@ -34,10 +34,10 @@ export interface Taxonomy {
34
34
  wallFilter: null;
35
35
  jamespot: string;
36
36
  };
37
- _timezone: {
37
+ _timezone?: {
38
38
  dateCreation: string;
39
39
  };
40
- _url: string;
40
+ _url?: string;
41
41
  }
42
42
  export interface TaxonomyCreate {
43
43
  type: 'taxonomyClose' | 'taxonomyOpen';
@@ -1,4 +1,14 @@
1
1
  import { jObjectLittle } from './utils';
2
+ export declare type UserModel = jObjectLittle & {
3
+ firstname: string;
4
+ lastname: string;
5
+ mail?: string;
6
+ };
7
+ export declare type UserMapModel = {
8
+ idInType: number;
9
+ lat: number;
10
+ lng: number;
11
+ };
2
12
  export declare const UserLevel: {
3
13
  readonly ADMIN: 9;
4
14
  readonly USER: 5;
@@ -36,6 +36,21 @@ export declare type Rights = {
36
36
  comment: boolean;
37
37
  member: boolean;
38
38
  };
39
+ export declare type Little = {
40
+ id: number;
41
+ mainType: string;
42
+ type: string;
43
+ uri: string;
44
+ title: string;
45
+ _url: string;
46
+ dateCreation: string;
47
+ dateModified: string;
48
+ };
49
+ export declare type List = Little & {
50
+ description?: string;
51
+ _user: Little;
52
+ _right: Rights;
53
+ };
39
54
  export declare type jObjectLittle = {
40
55
  id: number;
41
56
  mainType: string;
@@ -57,7 +72,7 @@ export declare type Order = {
57
72
  sort: 'ASC' | 'DESC';
58
73
  };
59
74
  export declare type Orders = Array<Order>;
60
- export declare type FilterValue = string | {
75
+ export declare type FilterValue = boolean | string | string[] | {
61
76
  srcId: number | string;
62
77
  srcType: string;
63
78
  } | {
@@ -67,7 +82,8 @@ export declare type FilterValue = string | {
67
82
  export declare type Filter = {
68
83
  name: string;
69
84
  value: FilterValue;
70
- operator?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match';
85
+ operator?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match' | 'equal';
86
+ method?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | '+' | '-' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match' | 'equal';
71
87
  };
72
88
  export declare type Filters = Array<Filter>;
73
89
  export declare type MaybeWithCsrf<T> = T & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "scripts": {
5
5
  "build": "npx webpack --env NODE_ENV=production",
6
6
  "build-dev-vm": "npx webpack --env NODE_ENV=development --env NODE_BUILD=VM",