@droz-js/sdk 0.8.1 → 0.8.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.8.1",
4
+ "version": "0.8.2",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -4686,6 +4686,7 @@ export type SearchQuery = (Pick<Query, 'systemTime'> & {
4686
4686
  nodes?: Maybe<Array<Maybe<SearchHit_Course_Fragment | SearchHit_Doc_Fragment | SearchHit_Form_Fragment | SearchHit_Space_Fragment | SearchHit_Storage_Fragment>>>;
4687
4687
  pageInfo?: Maybe<PageInfoFragment>;
4688
4688
  facets: Array<Facets_AuthorSearchResultsFacet_Fragment | Facets_RecordSearchResultsFacet_Fragment | Facets_SearchResultsFacet_Fragment>;
4689
+ stats: Pick<SearchResultsStats, 'searchTime' | 'found' | 'outOf' | 'page' | 'perPage' | 'totalPages'>;
4689
4690
  }>;
4690
4691
  });
4691
4692
  export type SearchForFacetValuesQueryVariables = Exact<{
@@ -5364,7 +5365,7 @@ export declare const SetPermissionDocument = "\n mutation setPermission($inpu
5364
5365
  export declare const RemovePermissionDocument = "\n mutation removePermission($input: RemovePermissionInput!) {\n removePermission(input: $input) {\n ...permission\n }\n}\n \n fragment permission on Permission {\n resource\n subject\n policies\n}\n ";
5365
5366
  export declare const GetReactionsDocument = "\n query getReactions($resource: ID!, $withUsers: Boolean = false) {\n reactions(resource: $resource) {\n ...reactions\n subjects @include(if: $withUsers) {\n reaction\n user {\n ...userInfo\n }\n }\n }\n}\n \n fragment reactions on ReactionsSummary {\n counts {\n positive1\n positive2\n positive3\n positive4\n positive5\n negative1\n negative2\n negative3\n negative4\n negative5\n total\n }\n mine\n}\n \n\n fragment userInfo on UserInfo {\n username\n name\n picture\n enabled\n bio\n department\n}\n ";
5366
5367
  export declare const ToggleReactionDocument = "\n mutation toggleReaction($input: ToggleReactionInput!) {\n toggleReaction(input: $input) {\n ...reactions\n }\n}\n \n fragment reactions on ReactionsSummary {\n counts {\n positive1\n positive2\n positive3\n positive4\n positive5\n negative1\n negative2\n negative3\n negative4\n negative5\n total\n }\n mine\n}\n ";
5367
- export declare const SearchDocument = "\n query search($query: String, $similarQuery: String, $parent: String, $typename: String, $filters: [String], $after: String, $highlight: Boolean, $sorting: SearchSorting) {\n systemTime\n search(\n query: $query\n similarQuery: $similarQuery\n parent: $parent\n typename: $typename\n filters: $filters\n after: $after\n highlight: $highlight\n sorting: $sorting\n ) {\n nodes {\n ...searchHit\n }\n pageInfo {\n ...pageInfo\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment searchHit on ContentSearchHit {\n ...space\n ...storage\n ...doc\n ...course\n ...form\n}\n \n\n fragment space on Space {\n ...spaceWithoutContent\n content\n tags\n parent {\n ...record\n }\n}\n \n\n fragment spaceWithoutContent on Space {\n id\n typename\n title\n slug\n thumbnailUrl\n color\n createdAt\n updatedAt\n ttl\n}\n \n\n fragment record on Record {\n id\n slug\n title\n trail\n typename\n color\n thumbnailUrl\n downloadUrl\n origin\n identifier\n createdAt\n updatedAt\n reindexedAt\n status\n}\n \n\n fragment storage on Storage {\n typename\n id\n version\n createdAt\n updatedAt\n title\n content\n slug\n downloadUrl\n thumbnailUrl\n contentType\n size\n downloads\n views\n imageProcessed\n imageOptimized\n imageAnalyzed\n videoStatus\n videoTranscodeError\n videoTranscodeProgress\n videoM3u8Url\n videoMpdUrl\n isPdfCompatible\n}\n \n\n fragment doc on Doc {\n ...docWithoutContent\n content\n}\n \n\n fragment docWithoutContent on Doc {\n id\n version\n typename\n origin\n identifier\n prefixCode\n title\n slug\n tags\n entities\n createdAt\n updatedAt\n ttl\n thumbnailUrl\n toc\n showToc\n features\n references\n views\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n}\n \n\n fragment userInfo on UserInfo {\n username\n name\n picture\n enabled\n bio\n department\n}\n \n\n fragment course on Course {\n ...courseWithoutContent\n content\n}\n \n\n fragment courseWithoutContent on Course {\n id\n version\n typename\n title\n slug\n tags\n duration\n progress\n points\n enrollmentDate\n createdAt\n updatedAt\n ttl\n versionId\n thumbnailUrl\n views\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n chapters {\n ...courseChapterWithoutContent\n }\n}\n \n\n fragment courseChapterWithoutContent on CourseChapter {\n typename\n id\n version\n title\n slug\n duration\n progress\n entries {\n ...courseLessonWithoutContent\n ...courseQuizWithoutContent\n }\n}\n \n\n fragment courseLessonWithoutContent on CourseLesson {\n typename\n id\n version\n title\n slug\n duration\n completedDate\n}\n \n\n fragment courseQuizWithoutContent on Quiz {\n ...quizWithoutContent\n completedDate\n}\n \n\n fragment quizWithoutContent on Quiz {\n id\n version\n typename\n slug\n title\n createdAt\n updatedAt\n duration\n points\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n}\n \n\n fragment form on Form {\n ...formWithoutContent\n content\n}\n \n\n fragment formWithoutContent on Form {\n id\n version\n typename\n slug\n title\n tags\n titleTemplate\n createdAt\n updatedAt\n ttl\n thumbnailUrl\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n sectionIds\n}\n \n\n fragment pageInfo on PageInfo {\n next\n hasNext\n}\n \n\n fragment facets on ContentSearchFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AuthorSearchResultsFacet {\n name\n values {\n agent {\n username\n name\n picture\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on RecordSearchResultsFacet {\n name\n values {\n record {\n id\n title\n slug\n typename\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
5368
+ export declare const SearchDocument = "\n query search($query: String, $similarQuery: String, $parent: String, $typename: String, $filters: [String], $after: String, $highlight: Boolean, $sorting: SearchSorting) {\n systemTime\n search(\n query: $query\n similarQuery: $similarQuery\n parent: $parent\n typename: $typename\n filters: $filters\n after: $after\n highlight: $highlight\n sorting: $sorting\n ) {\n nodes {\n ...searchHit\n }\n pageInfo {\n ...pageInfo\n }\n facets {\n ...facets\n }\n stats {\n searchTime\n found\n outOf\n page\n perPage\n totalPages\n }\n }\n}\n \n fragment searchHit on ContentSearchHit {\n ...space\n ...storage\n ...doc\n ...course\n ...form\n}\n \n\n fragment space on Space {\n ...spaceWithoutContent\n content\n tags\n parent {\n ...record\n }\n}\n \n\n fragment spaceWithoutContent on Space {\n id\n typename\n title\n slug\n thumbnailUrl\n color\n createdAt\n updatedAt\n ttl\n}\n \n\n fragment record on Record {\n id\n slug\n title\n trail\n typename\n color\n thumbnailUrl\n downloadUrl\n origin\n identifier\n createdAt\n updatedAt\n reindexedAt\n status\n}\n \n\n fragment storage on Storage {\n typename\n id\n version\n createdAt\n updatedAt\n title\n content\n slug\n downloadUrl\n thumbnailUrl\n contentType\n size\n downloads\n views\n imageProcessed\n imageOptimized\n imageAnalyzed\n videoStatus\n videoTranscodeError\n videoTranscodeProgress\n videoM3u8Url\n videoMpdUrl\n isPdfCompatible\n}\n \n\n fragment doc on Doc {\n ...docWithoutContent\n content\n}\n \n\n fragment docWithoutContent on Doc {\n id\n version\n typename\n origin\n identifier\n prefixCode\n title\n slug\n tags\n entities\n createdAt\n updatedAt\n ttl\n thumbnailUrl\n toc\n showToc\n features\n references\n views\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n}\n \n\n fragment userInfo on UserInfo {\n username\n name\n picture\n enabled\n bio\n department\n}\n \n\n fragment course on Course {\n ...courseWithoutContent\n content\n}\n \n\n fragment courseWithoutContent on Course {\n id\n version\n typename\n title\n slug\n tags\n duration\n progress\n points\n enrollmentDate\n createdAt\n updatedAt\n ttl\n versionId\n thumbnailUrl\n views\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n chapters {\n ...courseChapterWithoutContent\n }\n}\n \n\n fragment courseChapterWithoutContent on CourseChapter {\n typename\n id\n version\n title\n slug\n duration\n progress\n entries {\n ...courseLessonWithoutContent\n ...courseQuizWithoutContent\n }\n}\n \n\n fragment courseLessonWithoutContent on CourseLesson {\n typename\n id\n version\n title\n slug\n duration\n completedDate\n}\n \n\n fragment courseQuizWithoutContent on Quiz {\n ...quizWithoutContent\n completedDate\n}\n \n\n fragment quizWithoutContent on Quiz {\n id\n version\n typename\n slug\n title\n createdAt\n updatedAt\n duration\n points\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n}\n \n\n fragment form on Form {\n ...formWithoutContent\n content\n}\n \n\n fragment formWithoutContent on Form {\n id\n version\n typename\n slug\n title\n tags\n titleTemplate\n createdAt\n updatedAt\n ttl\n thumbnailUrl\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n sectionIds\n}\n \n\n fragment pageInfo on PageInfo {\n next\n hasNext\n}\n \n\n fragment facets on ContentSearchFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AuthorSearchResultsFacet {\n name\n values {\n agent {\n username\n name\n picture\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on RecordSearchResultsFacet {\n name\n values {\n record {\n id\n title\n slug\n typename\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
5368
5369
  export declare const SearchForFacetValuesDocument = "\n query searchForFacetValues($name: String!, $query: String, $filters: [String!]) {\n searchForFacetValues(name: $name, query: $query, filters: $filters) {\n name\n values {\n count\n value\n }\n }\n}\n ";
5369
5370
  export declare const SearchForRelatedDocument = "\n query searchForRelated($resourceId: ID!) {\n searchForRelated(resourceId: $resourceId) {\n ...searchHit\n }\n}\n \n fragment searchHit on ContentSearchHit {\n ...space\n ...storage\n ...doc\n ...course\n ...form\n}\n \n\n fragment space on Space {\n ...spaceWithoutContent\n content\n tags\n parent {\n ...record\n }\n}\n \n\n fragment spaceWithoutContent on Space {\n id\n typename\n title\n slug\n thumbnailUrl\n color\n createdAt\n updatedAt\n ttl\n}\n \n\n fragment record on Record {\n id\n slug\n title\n trail\n typename\n color\n thumbnailUrl\n downloadUrl\n origin\n identifier\n createdAt\n updatedAt\n reindexedAt\n status\n}\n \n\n fragment storage on Storage {\n typename\n id\n version\n createdAt\n updatedAt\n title\n content\n slug\n downloadUrl\n thumbnailUrl\n contentType\n size\n downloads\n views\n imageProcessed\n imageOptimized\n imageAnalyzed\n videoStatus\n videoTranscodeError\n videoTranscodeProgress\n videoM3u8Url\n videoMpdUrl\n isPdfCompatible\n}\n \n\n fragment doc on Doc {\n ...docWithoutContent\n content\n}\n \n\n fragment docWithoutContent on Doc {\n id\n version\n typename\n origin\n identifier\n prefixCode\n title\n slug\n tags\n entities\n createdAt\n updatedAt\n ttl\n thumbnailUrl\n toc\n showToc\n features\n references\n views\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n}\n \n\n fragment userInfo on UserInfo {\n username\n name\n picture\n enabled\n bio\n department\n}\n \n\n fragment course on Course {\n ...courseWithoutContent\n content\n}\n \n\n fragment courseWithoutContent on Course {\n id\n version\n typename\n title\n slug\n tags\n duration\n progress\n points\n enrollmentDate\n createdAt\n updatedAt\n ttl\n versionId\n thumbnailUrl\n views\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n chapters {\n ...courseChapterWithoutContent\n }\n}\n \n\n fragment courseChapterWithoutContent on CourseChapter {\n typename\n id\n version\n title\n slug\n duration\n progress\n entries {\n ...courseLessonWithoutContent\n ...courseQuizWithoutContent\n }\n}\n \n\n fragment courseLessonWithoutContent on CourseLesson {\n typename\n id\n version\n title\n slug\n duration\n completedDate\n}\n \n\n fragment courseQuizWithoutContent on Quiz {\n ...quizWithoutContent\n completedDate\n}\n \n\n fragment quizWithoutContent on Quiz {\n id\n version\n typename\n slug\n title\n createdAt\n updatedAt\n duration\n points\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n}\n \n\n fragment form on Form {\n ...formWithoutContent\n content\n}\n \n\n fragment formWithoutContent on Form {\n id\n version\n typename\n slug\n title\n tags\n titleTemplate\n createdAt\n updatedAt\n ttl\n thumbnailUrl\n parent {\n ...record\n }\n authors {\n ...userInfo\n }\n sectionIds\n}\n ";
5370
5371
  export declare const SearchTagsForResourceDocument = "\n query searchTagsForResource($resource: String!, $query: String) {\n searchTagsForResource(resource: $resource, query: $query) {\n disableNewTags\n tags {\n name\n stats {\n min\n max\n }\n values {\n value\n count\n }\n }\n }\n}\n ";
@@ -3625,6 +3625,14 @@ exports.SearchDocument = `
3625
3625
  facets {
3626
3626
  ...facets
3627
3627
  }
3628
+ stats {
3629
+ searchTime
3630
+ found
3631
+ outOf
3632
+ page
3633
+ perPage
3634
+ totalPages
3635
+ }
3628
3636
  }
3629
3637
  }
3630
3638
  ${exports.SearchHitFragmentDoc}