jamespot-user-api 1.0.31 → 1.0.44

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 (115) hide show
  1. package/documentation/.nojekyll +1 -0
  2. package/documentation/assets/highlight.css +50 -0
  3. package/documentation/assets/icons.css +1043 -0
  4. package/documentation/assets/icons.png +0 -0
  5. package/documentation/assets/icons@2x.png +0 -0
  6. package/documentation/assets/main.js +52 -0
  7. package/documentation/assets/search.js +1 -0
  8. package/documentation/assets/style.css +1413 -0
  9. package/documentation/assets/widgets.png +0 -0
  10. package/documentation/assets/widgets@2x.png +0 -0
  11. package/documentation/classes/JApplication.html +1 -0
  12. package/documentation/classes/JApplicationApi.html +30 -0
  13. package/documentation/classes/JArticleApi.html +1 -0
  14. package/documentation/classes/JAudienceApi.html +4 -0
  15. package/documentation/classes/JBaseApi.html +1 -0
  16. package/documentation/classes/JBaseObject.html +4 -0
  17. package/documentation/classes/JBookmark.html +1 -0
  18. package/documentation/classes/JBookmarkApi.html +1 -0
  19. package/documentation/classes/JCommunityApi.html +1 -0
  20. package/documentation/classes/JConcept.html +1 -0
  21. package/documentation/classes/JConceptApi.html +7 -0
  22. package/documentation/classes/JDiapazoneApi.html +1 -0
  23. package/documentation/classes/JFileApi.html +1 -0
  24. package/documentation/classes/JFilebankApi.html +1 -0
  25. package/documentation/classes/JGroupApi.html +12 -0
  26. package/documentation/classes/JLandApi.html +1 -0
  27. package/documentation/classes/JMessengerApi.html +1 -0
  28. package/documentation/classes/JSearchApi.html +18 -0
  29. package/documentation/classes/JUser.html +1 -0
  30. package/documentation/classes/JUserApi.html +17 -0
  31. package/documentation/classes/JWedocApi.html +1 -0
  32. package/documentation/classes/JamespotUserApi.html +6 -0
  33. package/documentation/classes/Network.html +1 -0
  34. package/documentation/enums/JApplicationStatus.html +1 -0
  35. package/documentation/index.html +79 -0
  36. package/documentation/interfaces/ApiError.html +1 -0
  37. package/documentation/interfaces/ApiWrapper.html +1 -0
  38. package/documentation/interfaces/AseiGroups.html +1 -0
  39. package/documentation/interfaces/AseiInstitution.html +1 -0
  40. package/documentation/interfaces/AseiRights.html +1 -0
  41. package/documentation/interfaces/AseiTicket.html +1 -0
  42. package/documentation/interfaces/BaseAutocomplete.html +1 -0
  43. package/documentation/interfaces/BaseMessage.html +1 -0
  44. package/documentation/interfaces/Category.html +1 -0
  45. package/documentation/interfaces/CreateGroup.html +1 -0
  46. package/documentation/interfaces/FileBankProps.html +1 -0
  47. package/documentation/interfaces/FileOption.html +1 -0
  48. package/documentation/interfaces/FolderProps.html +1 -0
  49. package/documentation/interfaces/ListFilterSpec.html +1 -0
  50. package/documentation/interfaces/OF.html +1 -0
  51. package/documentation/interfaces/PagingResults.html +1 -0
  52. package/documentation/interfaces/Result.html +1 -0
  53. package/documentation/interfaces/RootFolderProps.html +1 -0
  54. package/documentation/interfaces/SearchCategoryModel.html +1 -0
  55. package/documentation/interfaces/SearchConfig.html +1 -0
  56. package/documentation/interfaces/SearchFacetModel.html +1 -0
  57. package/documentation/interfaces/SearchFacetValueModel.html +1 -0
  58. package/documentation/interfaces/SearchQuery.html +1 -0
  59. package/documentation/interfaces/SearchQueryFilterModel.html +6 -0
  60. package/documentation/interfaces/SearchQueryOption.html +4 -0
  61. package/documentation/interfaces/SearchQueryResult.html +1 -0
  62. package/documentation/interfaces/SearchQuerySortModel.html +5 -0
  63. package/documentation/interfaces/SearchResultCatProps.html +1 -0
  64. package/documentation/interfaces/SearchResultProps.html +1 -0
  65. package/documentation/interfaces/SpotProps.html +1 -0
  66. package/documentation/interfaces/Taxonomy.html +1 -0
  67. package/documentation/interfaces/TaxonomyCreate.html +1 -0
  68. package/documentation/interfaces/TmpApplication.html +1 -0
  69. package/documentation/interfaces/TmpUser.html +1 -0
  70. package/documentation/interfaces/UserModel.html +1 -0
  71. package/documentation/modules.html +1 -0
  72. package/lib/jamespot-user-api.js +1 -1
  73. package/lib/jamespot-user-api.js.map +1 -1
  74. package/lib/src/apis/application.d.ts +60 -0
  75. package/lib/src/apis/article.d.ts +38 -0
  76. package/lib/src/apis/asei.d.ts +25 -0
  77. package/lib/src/apis/audience.d.ts +9 -0
  78. package/lib/src/apis/base.d.ts +5 -0
  79. package/lib/src/apis/bookmark.d.ts +21 -0
  80. package/lib/src/apis/community.d.ts +9 -0
  81. package/lib/src/apis/concept.d.ts +10 -0
  82. package/lib/src/apis/diapazone.d.ts +8 -0
  83. package/lib/src/apis/file.d.ts +5 -0
  84. package/lib/src/apis/filebank.d.ts +34 -0
  85. package/lib/src/apis/group.d.ts +16 -0
  86. package/lib/src/apis/index.d.ts +17 -0
  87. package/lib/src/apis/jamespotUserApi.d.ts +47 -0
  88. package/lib/src/apis/jland.d.ts +24 -0
  89. package/lib/src/apis/messenger.d.ts +6 -0
  90. package/lib/src/apis/search.d.ts +47 -0
  91. package/lib/src/apis/taxonomy.d.ts +9 -0
  92. package/lib/src/apis/user.d.ts +27 -0
  93. package/lib/src/apis/wedoc.d.ts +32 -0
  94. package/lib/src/classes/JApplication.d.ts +16 -0
  95. package/lib/src/classes/JBaseObject.d.ts +15 -0
  96. package/lib/src/classes/JBookmark.d.ts +16 -0
  97. package/lib/src/classes/JConcept.d.ts +3 -0
  98. package/lib/src/classes/JDiapazone.d.ts +16 -0
  99. package/lib/src/classes/JFile.d.ts +13 -0
  100. package/lib/src/classes/JUser.d.ts +4 -0
  101. package/lib/src/classes/index.d.ts +5 -0
  102. package/lib/src/index.d.ts +13 -0
  103. package/lib/src/indexMock.d.ts +9 -0
  104. package/lib/src/mock/windowMock.d.ts +9 -0
  105. package/lib/src/types/asei.d.ts +28 -0
  106. package/lib/src/types/autocomplete.d.ts +16 -0
  107. package/lib/src/types/group.d.ts +22 -0
  108. package/lib/src/types/index.d.ts +7 -0
  109. package/lib/src/types/listWrapper.d.ts +6 -0
  110. package/lib/src/types/search.d.ts +96 -0
  111. package/lib/src/types/taxonomy.d.ts +46 -0
  112. package/lib/src/types/user.d.ts +14 -0
  113. package/lib/src/types/utils.d.ts +56 -0
  114. package/lib/src/util/network.d.ts +23 -0
  115. package/package.json +1 -5
@@ -0,0 +1,23 @@
1
+ import { ApiWrapper } from '../types';
2
+ export interface FileOption {
3
+ makeImage: boolean;
4
+ size: string;
5
+ }
6
+ export interface OF {
7
+ o: string;
8
+ f: string;
9
+ }
10
+ export declare class Network {
11
+ private readonly backUrl;
12
+ private readonly apiUrl;
13
+ private readonly window;
14
+ constructor(window: Window, suffix?: string);
15
+ static _formatPostOptions(body: object): RequestInit;
16
+ static _formatQueryOptions(options: Record<string, string | boolean | number>): string;
17
+ fetch(body: OF, signal?: AbortSignal): Promise<Response>;
18
+ post<T, U = string[]>(body: OF, signal?: AbortSignal): Promise<ApiWrapper<T, U>>;
19
+ postFile(body: FormData, options: FileOption): Promise<any>;
20
+ postCSRF<T, U = string[]>(body: OF): Promise<ApiWrapper<T, U>>;
21
+ token(): Promise<ApiWrapper<string>>;
22
+ tokenCSRF(): Promise<ApiWrapper<string>>;
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.31",
3
+ "version": "1.0.44",
4
4
  "scripts": {
5
5
  "build": "npx webpack --env NODE_ENV=production",
6
6
  "build-mock": "npx webpack --env NODE_ENV=production --env MOCK_MODE=true",
@@ -71,9 +71,5 @@
71
71
  "*.{json,md}": [
72
72
  "npm run prettier"
73
73
  ]
74
- },
75
- "dependencies": {
76
- "jamespot-react-components": "^1.0.16",
77
- "jamespot-user-api": "^1.0.13"
78
74
  }
79
75
  }