@droz-js/sdk 0.8.3-alpha.3 → 0.8.3-alpha.5

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.3-alpha.3",
4
+ "version": "0.8.3-alpha.5",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -674,7 +674,7 @@ declare const DrozBaseWs_base: new () => {
674
674
  searchForFacetValues(variables: import("./sdks/drozbase").Exact<{
675
675
  name: import("./sdks/drozbase").Scalars["String"]["input"];
676
676
  query?: import("./sdks/drozbase").InputMaybe<import("./sdks/drozbase").Scalars["String"]["input"]>;
677
- filters?: import("./sdks/drozbase").InputMaybe<Array<import("./sdks/drozbase").Scalars["String"]["input"]> | import("./sdks/drozbase").Scalars["String"]["input"]>;
677
+ filters?: import("./sdks/drozbase").InputMaybe<Array<import("./sdks/drozbase").ContentSearchFilterInput> | import("./sdks/drozbase").ContentSearchFilterInput>;
678
678
  }>, options?: unknown): Promise<import("./sdks/drozbase").SearchForFacetValuesQuery>;
679
679
  searchForRelated(variables: import("./sdks/drozbase").Exact<{
680
680
  resourceId: import("./sdks/drozbase").Scalars["ID"]["input"];
package/src/drozbase.d.ts CHANGED
@@ -677,7 +677,7 @@ declare const DrozBase_base: new (options?: import("./client/http").HttpClientOp
677
677
  searchForFacetValues(variables: import("./sdks/drozbase").Exact<{
678
678
  name: import("./sdks/drozbase").Scalars["String"]["input"];
679
679
  query?: import("./sdks/drozbase").InputMaybe<import("./sdks/drozbase").Scalars["String"]["input"]>;
680
- filters?: import("./sdks/drozbase").InputMaybe<Array<import("./sdks/drozbase").Scalars["String"]["input"]> | import("./sdks/drozbase").Scalars["String"]["input"]>;
680
+ filters?: import("./sdks/drozbase").InputMaybe<Array<import("./sdks/drozbase").ContentSearchFilterInput> | import("./sdks/drozbase").ContentSearchFilterInput>;
681
681
  }>, options?: unknown): Promise<import("./sdks/drozbase").SearchForFacetValuesQuery>;
682
682
  searchForRelated(variables: import("./sdks/drozbase").Exact<{
683
683
  resourceId: import("./sdks/drozbase").Scalars["ID"]["input"];
@@ -248,6 +248,7 @@ export type AuthorSearchResultsFacet = {
248
248
  export type AuthorSearchResultsFacetValue = {
249
249
  agent?: Maybe<UserInfo>;
250
250
  count: Scalars['Float']['output'];
251
+ value: Scalars['String']['output'];
251
252
  };
252
253
  export type BatchEnrollCourseInput = {
253
254
  id: Scalars['ID']['input'];
@@ -2193,7 +2194,7 @@ export type QuerySearchArgs = {
2193
2194
  typename?: InputMaybe<Scalars['String']['input']>;
2194
2195
  };
2195
2196
  export type QuerySearchForFacetValuesArgs = {
2196
- filters?: InputMaybe<Array<Scalars['String']['input']>>;
2197
+ filters?: InputMaybe<Array<ContentSearchFilterInput>>;
2197
2198
  name: Scalars['String']['input'];
2198
2199
  query?: InputMaybe<Scalars['String']['input']>;
2199
2200
  };
@@ -2407,6 +2408,7 @@ export type RecordSearchResultsFacet = {
2407
2408
  export type RecordSearchResultsFacetValue = {
2408
2409
  count: Scalars['Float']['output'];
2409
2410
  record?: Maybe<RecordInfo>;
2411
+ value: Scalars['String']['output'];
2410
2412
  };
2411
2413
  export type RecordsConnection = {
2412
2414
  nodes?: Maybe<Array<Maybe<Record>>>;
@@ -2553,7 +2555,10 @@ export type SearchResultsStats = {
2553
2555
  totalPages: Scalars['Float']['output'];
2554
2556
  };
2555
2557
  export declare enum SearchSorting {
2558
+ ByCreatedAtAsc = "by_createdAt_asc",
2559
+ ByCreatedAtDesc = "by_createdAt_desc",
2556
2560
  ByTitleAsc = "by_title_asc",
2561
+ ByTitleDesc = "by_title_desc",
2557
2562
  Default = "default"
2558
2563
  }
2559
2564
  export type SecuritySettings = {
@@ -4666,13 +4671,13 @@ type SearchHit_Space_Fragment = SpaceFragment;
4666
4671
  type SearchHit_Storage_Fragment = StorageFragment;
4667
4672
  export type SearchHitFragment = SearchHit_Course_Fragment | SearchHit_Doc_Fragment | SearchHit_Form_Fragment | SearchHit_Space_Fragment | SearchHit_Storage_Fragment;
4668
4673
  type Facets_AuthorSearchResultsFacet_Fragment = (Pick<AuthorSearchResultsFacet, 'name'> & {
4669
- values?: Maybe<Array<(Pick<AuthorSearchResultsFacetValue, 'count'> & {
4674
+ values?: Maybe<Array<(Pick<AuthorSearchResultsFacetValue, 'value' | 'count'> & {
4670
4675
  agent?: Maybe<Pick<UserInfo, 'username' | 'name' | 'picture'>>;
4671
4676
  })>>;
4672
4677
  stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
4673
4678
  });
4674
4679
  type Facets_RecordSearchResultsFacet_Fragment = (Pick<RecordSearchResultsFacet, 'name'> & {
4675
- values?: Maybe<Array<(Pick<RecordSearchResultsFacetValue, 'count'> & {
4680
+ values?: Maybe<Array<(Pick<RecordSearchResultsFacetValue, 'value' | 'count'> & {
4676
4681
  record?: Maybe<Pick<RecordInfo, 'id' | 'title' | 'slug' | 'typename'>>;
4677
4682
  })>>;
4678
4683
  stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
@@ -4702,7 +4707,7 @@ export type SearchQuery = (Pick<Query, 'systemTime'> & {
4702
4707
  export type SearchForFacetValuesQueryVariables = Exact<{
4703
4708
  name: Scalars['String']['input'];
4704
4709
  query?: InputMaybe<Scalars['String']['input']>;
4705
- filters?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
4710
+ filters?: InputMaybe<Array<ContentSearchFilterInput> | ContentSearchFilterInput>;
4706
4711
  }>;
4707
4712
  export type SearchForFacetValuesQuery = {
4708
4713
  searchForFacetValues?: Maybe<Array<Maybe<(Pick<SearchResultsFacet, 'name'> & {
@@ -5161,7 +5166,7 @@ export declare const CourseWithoutContentFragmentDoc = "\n fragment courseWit
5161
5166
  export declare const CourseFragmentDoc = "\n fragment course on Course {\n ...courseWithoutContent\n content\n}\n ";
5162
5167
  export declare const FormFragmentDoc = "\n fragment form on Form {\n ...formWithoutContent\n content\n}\n ";
5163
5168
  export declare const SearchHitFragmentDoc = "\n fragment searchHit on ContentSearchHit {\n ...space\n ...storage\n ...doc\n ...course\n ...form\n}\n ";
5164
- export declare const FacetsFragmentDoc = "\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 ";
5169
+ export declare const FacetsFragmentDoc = "\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 value\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 value\n record {\n id\n title\n slug\n typename\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
5165
5170
  export declare const SecuritySettingsFragmentDoc = "\n fragment securitySettings on SecuritySettings {\n resetPermissionsInheritance\n}\n ";
5166
5171
  export declare const SpaceContentSettingsFragmentDoc = "\n fragment spaceContentSettings on SpaceContentSettings {\n disableNewTags\n defaultSorting\n childSpacesOrder\n allowedContentTypes\n showParentOnlyChildren\n daysAfterPublishToRequireReview\n prefixCodes\n}\n ";
5167
5172
  export declare const SpaceApprovalSettingsFragmentDoc = "\n fragment spaceApprovalSettings on SpaceApprovalSettings {\n approvalFlowsByTypename {\n Docs\n Courses\n Forms\n }\n}\n ";
@@ -5375,8 +5380,8 @@ export declare const SetPermissionDocument = "\n mutation setPermission($inpu
5375
5380
  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 ";
5376
5381
  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 ";
5377
5382
  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 ";
5378
- export declare const SearchDocument = "\n query search($query: String, $typename: String, $parent: String, $filters: [ContentSearchFilterInput!], $after: String, $highlight: Boolean, $sorting: SearchSorting) {\n systemTime\n search(\n query: $query\n typename: $typename\n parent: $parent\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 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 ";
5379
- 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 ";
5383
+ export declare const SearchDocument = "\n query search($query: String, $typename: String, $parent: String, $filters: [ContentSearchFilterInput!], $after: String, $highlight: Boolean, $sorting: SearchSorting) {\n systemTime\n search(\n query: $query\n typename: $typename\n parent: $parent\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 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 value\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 value\n record {\n id\n title\n slug\n typename\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
5384
+ export declare const SearchForFacetValuesDocument = "\n query searchForFacetValues($name: String!, $query: String, $filters: [ContentSearchFilterInput!]) {\n searchForFacetValues(name: $name, query: $query, filters: $filters) {\n name\n values {\n count\n value\n }\n }\n}\n ";
5380
5385
  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 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 ";
5381
5386
  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 ";
5382
5387
  export declare const ListSynonymsDocument = "\n query listSynonyms {\n listSynonyms {\n id\n synonyms\n }\n}\n ";
@@ -114,7 +114,10 @@ var ReactionTypes;
114
114
  })(ReactionTypes || (exports.ReactionTypes = ReactionTypes = {}));
115
115
  var SearchSorting;
116
116
  (function (SearchSorting) {
117
+ SearchSorting["ByCreatedAtAsc"] = "by_createdAt_asc";
118
+ SearchSorting["ByCreatedAtDesc"] = "by_createdAt_desc";
117
119
  SearchSorting["ByTitleAsc"] = "by_title_asc";
120
+ SearchSorting["ByTitleDesc"] = "by_title_desc";
118
121
  SearchSorting["Default"] = "default";
119
122
  })(SearchSorting || (exports.SearchSorting = SearchSorting = {}));
120
123
  var SubscriptionAction;
@@ -1166,6 +1169,7 @@ exports.FacetsFragmentDoc = `
1166
1169
  ... on AuthorSearchResultsFacet {
1167
1170
  name
1168
1171
  values {
1172
+ value
1169
1173
  agent {
1170
1174
  username
1171
1175
  name
@@ -1181,6 +1185,7 @@ exports.FacetsFragmentDoc = `
1181
1185
  ... on RecordSearchResultsFacet {
1182
1186
  name
1183
1187
  values {
1188
+ value
1184
1189
  record {
1185
1190
  id
1186
1191
  title
@@ -3652,7 +3657,7 @@ ${exports.FormWithoutContentFragmentDoc}
3652
3657
  ${exports.PageInfoFragmentDoc}
3653
3658
  ${exports.FacetsFragmentDoc}`;
3654
3659
  exports.SearchForFacetValuesDocument = `
3655
- query searchForFacetValues($name: String!, $query: String, $filters: [String!]) {
3660
+ query searchForFacetValues($name: String!, $query: String, $filters: [ContentSearchFilterInput!]) {
3656
3661
  searchForFacetValues(name: $name, query: $query, filters: $filters) {
3657
3662
  name
3658
3663
  values {
@@ -143,6 +143,7 @@ export type AgentSearchResultsFacet = {
143
143
  export type AgentSearchResultsFacetValue = {
144
144
  agent?: Maybe<DrozChatAgent>;
145
145
  count: Scalars['Float']['output'];
146
+ value: Scalars['String']['output'];
146
147
  };
147
148
  export declare enum AppInstanceStatus {
148
149
  Active = "Active",
@@ -170,6 +171,7 @@ export type ChannelSearchResultsFacet = {
170
171
  export type ChannelSearchResultsFacetValue = {
171
172
  channel?: Maybe<DrozChatChannel>;
172
173
  count: Scalars['Float']['output'];
174
+ value: Scalars['String']['output'];
173
175
  };
174
176
  export type CloseTicketInput = {
175
177
  ticketId: Scalars['ID']['input'];
@@ -748,13 +750,13 @@ export type TicketWithSessionFragment = ({
748
750
  export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename' | 'size' | 'createdAt' | 'updatedAt'>;
749
751
  export type SessionAttributesFragment = Pick<TicketSessionAttributes, 'organization' | 'source' | 'order' | 'products' | 'review' | 'tags'>;
750
752
  type Facets_AgentSearchResultsFacet_Fragment = (Pick<AgentSearchResultsFacet, 'name'> & {
751
- values?: Maybe<Array<(Pick<AgentSearchResultsFacetValue, 'count'> & {
753
+ values?: Maybe<Array<(Pick<AgentSearchResultsFacetValue, 'value' | 'count'> & {
752
754
  agent?: Maybe<Pick<DrozChatAgent, 'id' | 'name'>>;
753
755
  })>>;
754
756
  stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
755
757
  });
756
758
  type Facets_ChannelSearchResultsFacet_Fragment = (Pick<ChannelSearchResultsFacet, 'name'> & {
757
- values?: Maybe<Array<(Pick<ChannelSearchResultsFacetValue, 'count'> & {
759
+ values?: Maybe<Array<(Pick<ChannelSearchResultsFacetValue, 'value' | 'count'> & {
758
760
  channel?: Maybe<Pick<DrozChatChannel, 'id' | 'name'>>;
759
761
  })>>;
760
762
  stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
@@ -919,7 +921,7 @@ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n c
919
921
  export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
920
922
  export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n ";
921
923
  export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
922
- export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
924
+ export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
923
925
  export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
924
926
  export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
925
927
  export declare const ListDrozChatAgentChannelsDocument = "\n query listDrozChatAgentChannels($agentId: ID!) {\n listDrozChatAgentChannels(agentId: $agentId) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
@@ -936,7 +938,7 @@ export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n g
936
938
  export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
937
939
  export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
938
940
  export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
939
- export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
941
+ export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
940
942
  export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
941
943
  export declare const UpdateTicketDocument = "\n mutation updateTicket($input: UpdateTicketInput!) {\n updateTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
942
944
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
@@ -220,6 +220,7 @@ exports.FacetsFragmentDoc = `
220
220
  ... on AgentSearchResultsFacet {
221
221
  name
222
222
  values {
223
+ value
223
224
  agent {
224
225
  id
225
226
  name
@@ -234,6 +235,7 @@ exports.FacetsFragmentDoc = `
234
235
  ... on ChannelSearchResultsFacet {
235
236
  name
236
237
  values {
238
+ value
237
239
  channel {
238
240
  id
239
241
  name