@pitcher/js-api 1.22.0-alpha.5 → 1.22.0-beta.0

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 (187) hide show
  1. package/js-api.esm.js +693 -184
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +10 -10
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/api/canvases/canvases.queries.d.ts +5 -5
  6. package/lib/apps/browser/stores/api.d.ts +215 -84
  7. package/lib/apps/browser/stores/app.d.ts +7 -26
  8. package/lib/apps/browser/stores/upload.d.ts +34 -24
  9. package/lib/apps/browser/util/file.d.ts +2 -2
  10. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +550 -460
  11. package/lib/apps/canvas-builder/composables/useCanvasExit.d.ts +3 -0
  12. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
  13. package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +4 -4
  14. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +3 -3
  15. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +3 -3
  16. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +24 -17
  17. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
  18. package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +3 -3
  19. package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +2 -2
  20. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +6 -4
  21. package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +15 -0
  22. package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +6 -5
  23. package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +2 -2
  24. package/lib/apps/canvas-builder/types/canvas.d.ts +19 -18
  25. package/lib/apps/canvas-builder/types/recommendations.types.d.ts +3 -3
  26. package/lib/apps/canvas-builder/util/canvas.util.d.ts +5 -4
  27. package/lib/apps/canvas-selector/appTypes.d.ts +9 -0
  28. package/lib/apps/content-selector/appTypes.d.ts +1 -0
  29. package/lib/apps/content-selector/stores/app.d.ts +8 -1
  30. package/lib/components/CFileViewer/CFileViewer.use.d.ts +2 -4
  31. package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +1 -1
  32. package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +5 -5
  33. package/lib/components/filters/filter.util.d.ts +1 -1
  34. package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +5 -3
  35. package/lib/composables/instanceTagsActions.use.d.ts +14 -0
  36. package/lib/composables/recentFiles.use.d.ts +1 -1
  37. package/lib/composables/suggestedTags.use.d.ts +3 -0
  38. package/lib/composables/tableColumnsSettings.use.d.ts +25 -0
  39. package/lib/composables/useCanvasOverlay.d.ts +20 -0
  40. package/lib/composables/useCanvasTablesPagination.d.ts +13 -0
  41. package/lib/composables/useConfirmation.d.ts +1 -0
  42. package/lib/composables/useElementHeightResize.d.ts +5 -0
  43. package/lib/composables/useFiles.d.ts +11 -0
  44. package/lib/composables/useWindowEvents.d.ts +1 -1
  45. package/lib/constants/pitcherSettings.const.d.ts +4 -0
  46. package/lib/main.lib.d.ts +31 -21
  47. package/lib/sdk/api/HighLevelApi.d.ts +112 -14
  48. package/lib/sdk/api/modules/admin/canvas.admin.d.ts +53 -15
  49. package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
  50. package/lib/sdk/api/modules/admin/files.admin.d.ts +43 -4
  51. package/lib/sdk/api/modules/admin/index.d.ts +53 -5
  52. package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
  53. package/lib/sdk/api/modules/admin/types.admin.d.ts +132 -3
  54. package/lib/sdk/api/modules/canvas.d.ts +12 -14
  55. package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
  56. package/lib/sdk/api/modules/dsr/index.d.ts +14 -3
  57. package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +7 -1
  58. package/lib/sdk/api/modules/env.d.ts +16 -0
  59. package/lib/sdk/api/modules/favorites.d.ts +9 -0
  60. package/lib/sdk/api/modules/feedback.d.ts +3 -0
  61. package/lib/sdk/api/modules/files.d.ts +7 -4
  62. package/lib/sdk/api/modules/folders.d.ts +29 -0
  63. package/lib/sdk/api/modules/open.d.ts +6 -0
  64. package/lib/sdk/api/modules/sync.d.ts +1 -2
  65. package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +13 -1
  66. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +102 -8
  67. package/lib/sdk/api/modules/ui/content.ui.d.ts +52 -2
  68. package/lib/sdk/api/modules/ui/index.d.ts +150 -13
  69. package/lib/sdk/api/modules/ui/loading.ui.d.ts +9 -1
  70. package/lib/sdk/api/modules/ui/location.ui.d.ts +18 -1
  71. package/lib/sdk/api/modules/ui/post-call.ui.d.ts +35 -4
  72. package/lib/sdk/api/modules/ui/types.ui.d.ts +86 -8
  73. package/lib/sdk/api/modules/users.d.ts +6 -1
  74. package/lib/sdk/api/onlineRestApiHandlers.d.ts +4 -0
  75. package/lib/sdk/interfaces.d.ts +124 -3
  76. package/lib/sdk/main.d.ts +297 -151
  77. package/lib/sdk/payload.types.d.ts +134 -2
  78. package/lib/sdk/utils/httpFetch.d.ts +15 -0
  79. package/lib/sdk/utils/object.d.ts +1 -0
  80. package/lib/sdk/utils/object.spec.d.ts +1 -0
  81. package/lib/theme/light.d.ts +12 -0
  82. package/lib/types/app.d.ts +11 -0
  83. package/lib/types/call.d.ts +4 -3
  84. package/lib/types/files.d.ts +27 -1
  85. package/lib/types/filter.d.ts +5 -0
  86. package/lib/types/instance.types.d.ts +18 -0
  87. package/lib/types/{instanceSettings.d.ts → instanceSettings.types.d.ts} +10 -2
  88. package/lib/types/launchDarkly.types.d.ts +4 -4
  89. package/lib/types/organization.types.d.ts +2 -2
  90. package/lib/types/organizationSettings.types.d.ts +4 -0
  91. package/lib/types/recentFiles.types.d.ts +4 -1
  92. package/lib/types/users.d.ts +13 -0
  93. package/lib/util/fullscreen.util.d.ts +1 -1
  94. package/lib/util/string.d.ts +1 -0
  95. package/package.json +1 -1
  96. package/types/openapi/index.d.ts +23 -17
  97. package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
  98. package/types/openapi/models/App.d.ts +1 -0
  99. package/types/openapi/models/AppRelease.d.ts +1 -0
  100. package/types/openapi/models/AppsDBEntry.d.ts +4 -0
  101. package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
  102. package/types/openapi/models/Canvas.d.ts +10 -15
  103. package/types/openapi/models/CanvasCreate.d.ts +14 -12
  104. package/types/openapi/models/CanvasCreateRequest.d.ts +6 -5
  105. package/types/openapi/models/CanvasRecommendedFile.d.ts +6 -0
  106. package/types/openapi/models/CanvasRetrieve.d.ts +15 -13
  107. package/types/openapi/models/CanvasSection.d.ts +5 -2
  108. package/types/openapi/models/CanvasUpdate.d.ts +14 -12
  109. package/types/openapi/models/CanvasUpdateRequest.d.ts +5 -4
  110. package/types/openapi/models/CollaborationRoleEnum.d.ts +0 -4
  111. package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
  112. package/types/openapi/models/DeletedApp.d.ts +1 -0
  113. package/types/openapi/models/{CanvasList.d.ts → DeletedCanvas.d.ts} +13 -9
  114. package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
  115. package/types/openapi/models/DeletedEnvironment.d.ts +1 -0
  116. package/types/openapi/models/DeletedFavorite.d.ts +1 -0
  117. package/types/openapi/models/DeletedFile.d.ts +6 -0
  118. package/types/openapi/models/DeletedFolder.d.ts +4 -3
  119. package/types/openapi/models/DeletedInstance.d.ts +1 -0
  120. package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +1 -0
  121. package/types/openapi/models/DeletedMetadataTemplate.d.ts +1 -0
  122. package/types/openapi/models/DeletedRegion.d.ts +1 -0
  123. package/types/openapi/models/Environment.d.ts +1 -0
  124. package/types/openapi/models/Favorite.d.ts +1 -0
  125. package/types/openapi/models/File.d.ts +6 -0
  126. package/types/openapi/models/FileCreate.d.ts +8 -0
  127. package/types/openapi/models/FileCreateRequest.d.ts +3 -0
  128. package/types/openapi/models/FilePermission.d.ts +4 -0
  129. package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
  130. package/types/openapi/models/FileRetrieve.d.ts +8 -0
  131. package/types/openapi/models/FileRevision.d.ts +8 -0
  132. package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
  133. package/types/openapi/models/FileUpdate.d.ts +8 -0
  134. package/types/openapi/models/FileUpdateRequest.d.ts +3 -0
  135. package/types/openapi/models/FileVersion.d.ts +5 -0
  136. package/types/openapi/models/Folder.d.ts +4 -3
  137. package/types/openapi/models/FolderCanvas.d.ts +11 -0
  138. package/types/openapi/models/FolderCreate.d.ts +8 -7
  139. package/types/openapi/models/FolderCreateRequest.d.ts +4 -2
  140. package/types/openapi/models/FolderFile.d.ts +3 -0
  141. package/types/openapi/models/FolderFolder.d.ts +5 -1
  142. package/types/openapi/models/FolderRetrieve.d.ts +8 -8
  143. package/types/openapi/models/FolderRule.d.ts +7 -0
  144. package/types/openapi/models/FolderRuleRequest.d.ts +7 -0
  145. package/types/openapi/models/FolderUpdate.d.ts +8 -8
  146. package/types/openapi/models/FolderUpdateRequest.d.ts +3 -0
  147. package/types/openapi/models/Instance.d.ts +1 -0
  148. package/types/openapi/models/InstanceUpdate.d.ts +1 -0
  149. package/types/openapi/models/MetadataTemplate.d.ts +1 -0
  150. package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
  151. package/types/openapi/models/OperatorEnum.d.ts +64 -0
  152. package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
  153. package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
  154. package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
  155. package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +5 -4
  156. package/types/openapi/models/PatchedFileRequest.d.ts +3 -0
  157. package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
  158. package/types/openapi/models/PatchedFileUpdateRequest.d.ts +3 -0
  159. package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +3 -0
  160. package/types/openapi/models/Region.d.ts +1 -0
  161. package/types/openapi/models/SearchFile.d.ts +3 -0
  162. package/types/openapi/models/SharedLink.d.ts +6 -5
  163. package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
  164. package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
  165. package/types/openapi/models/SharedLinkCreate.d.ts +6 -5
  166. package/types/openapi/models/{SharedLinkInstanceSerialzier.d.ts → SharedLinkInstance.d.ts} +1 -1
  167. package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
  168. package/types/openapi/models/{SharedLinkOrganizationSerialzier.d.ts → SharedLinkOrganization.d.ts} +1 -1
  169. package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
  170. package/lib/apps/canvas-builder/util/tsUtils.d.ts +0 -3
  171. package/lib/composables/useDetailsView.d.ts +0 -19
  172. package/lib/types/templateActions.d.ts +0 -10
  173. package/lib/util/gesture.util.d.ts +0 -6
  174. package/types/openapi/models/AppsDBGlobalEntry.d.ts +0 -8
  175. package/types/openapi/models/AppsDBGlobalEntryRequest.d.ts +0 -3
  176. package/types/openapi/models/AppsDBUserEntry.d.ts +0 -9
  177. package/types/openapi/models/AppsDBUserEntryRequest.d.ts +0 -3
  178. package/types/openapi/models/CanvasSectionRetrieve.d.ts +0 -7
  179. package/types/openapi/models/CanvasSectionRetrieveRequest.d.ts +0 -5
  180. package/types/openapi/models/FileRequest.d.ts +0 -13
  181. package/types/openapi/models/InstanceStorageCredentials.d.ts +0 -6
  182. package/types/openapi/models/MiniAccount.d.ts +0 -4
  183. package/types/openapi/models/PSPDFKitAuthPayload.d.ts +0 -3
  184. package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +0 -3
  185. package/types/openapi/models/PSPDFKitToken.d.ts +0 -7
  186. package/types/openapi/models/PSPDFKitTokenRequest.d.ts +0 -3
  187. package/types/openapi/models/PaginatedCanvasListList.d.ts +0 -8
@@ -1,56 +1,188 @@
1
- import { MiniPage, File, Canvas } from '../../types/openapi';
1
+ import { MiniPage, File, CanvasRetrieve } from '../../types/openapi';
2
2
 
3
+ /**
4
+ * Payload for getting instance metadata templates.
5
+ */
3
6
  export interface GetInstanceMetadataTemplatesPayload {
7
+ /**
8
+ * Ordering of the metadata templates. String containing field name to order by.
9
+ */
4
10
  ordering?: string;
11
+ /**
12
+ * Page number for pagination.
13
+ */
5
14
  page?: number;
15
+ /**
16
+ * Number of items per page.
17
+ */
6
18
  page_size?: number;
19
+ /**
20
+ * Search query for filtering metadata templates.
21
+ */
7
22
  search?: string;
8
23
  }
24
+ /**
25
+ * Payload for listing files with optional filters.
26
+ */
9
27
  export type ListFilesPayload = Partial<Omit<File, 'type'>> & {
28
+ /**
29
+ * Range filter for creation date.
30
+ */
10
31
  created_at__range?: string;
32
+ /**
33
+ * Range filter for expiration date.
34
+ */
11
35
  expires_at__range?: string;
36
+ /**
37
+ * Range filter for update date.
38
+ */
12
39
  updated_at__range?: string;
40
+ /**
41
+ * Filter for file IDs.
42
+ */
13
43
  id__in?: string;
44
+ /**
45
+ * Filter for file types.
46
+ */
14
47
  type?: File['type'] | File['type'][];
48
+ /**
49
+ * Filter for content types.
50
+ */
15
51
  content_type?: File['content_type'] | File['content_type'][];
16
52
  };
53
+ /**
54
+ * Payload for getting recent files.
55
+ */
17
56
  export type GetRecentFilesPayload = {
57
+ /**
58
+ * Number of recent files to retrieve.
59
+ */
18
60
  size?: number;
19
61
  };
62
+ /**
63
+ * Payload for sending a notification.
64
+ */
20
65
  export interface NotificationPayload {
66
+ /**
67
+ * Content of the notification.
68
+ */
21
69
  content: string;
70
+ /**
71
+ * Type of the notification.
72
+ */
22
73
  type?: 'native' | 'alert';
23
74
  }
75
+ /**
76
+ * Payload for executing a query.
77
+ */
24
78
  export interface QueryPayload {
79
+ /**
80
+ * The query string to execute.
81
+ */
25
82
  query: string;
83
+ /**
84
+ * Optional arguments for the query.
85
+ */
26
86
  args?: string[][];
27
87
  }
88
+ /**
89
+ * Payload for submitting user feedback.
90
+ */
28
91
  export interface SubmitUserFeedbackPayload {
92
+ /**
93
+ * Type of feedback being submitted.
94
+ */
29
95
  type: 'bug' | 'feedback';
96
+ /**
97
+ * Data associated with the feedback.
98
+ */
30
99
  data: Record<string, any>;
31
100
  }
101
+ /**
102
+ * Payload object for opening a file.
103
+ */
32
104
  export interface OpenRequestPayload {
105
+ /**
106
+ * Id of the file to open.
107
+ */
33
108
  fileId?: File['id'];
34
- fromCanvasId?: Canvas['id'];
109
+ /**
110
+ * Id of the canvas from which the file is opened.
111
+ */
112
+ fromCanvasId?: CanvasRetrieve['id'];
113
+ /**
114
+ * Optional, page index to open. Default is `null`.
115
+ */
35
116
  pageIndex?: MiniPage['page_index'];
117
+ /**
118
+ * URL of the file content.
119
+ */
36
120
  url?: File['content_url'];
121
+ /**
122
+ * Indicates if the canvas is in view.
123
+ */
37
124
  canvasInView?: boolean;
125
+ /**
126
+ * Indicates if the user is in a call.
127
+ */
38
128
  isInCall?: boolean;
129
+ /**
130
+ * Optional, overrides over the context of the current canvas, useful for injecting file annotation data. Default is {}.
131
+ */
39
132
  context?: Record<string, any>;
133
+ /**
134
+ * Search query string within the file.
135
+ */
40
136
  search?: string;
137
+ /**
138
+ * Indicates if the file should be opened in a new tab.
139
+ */
41
140
  newTab?: boolean;
42
141
  }
142
+ /**
143
+ * Payload object for opening an external URL.
144
+ */
43
145
  export interface OpenExternalUrlRequestPayload {
146
+ /**
147
+ * The URL to open.
148
+ */
44
149
  url: string;
150
+ /**
151
+ * The target where the URL should be opened. Defaults to '_blank'.
152
+ */
45
153
  target?: '_self' | '_blank';
154
+ /**
155
+ * Additional options for opening the URL.
156
+ */
46
157
  options?: string;
47
158
  }
159
+ /**
160
+ * Payload object for opening a web view that is always on top.
161
+ */
48
162
  export interface OpenWebViewAlwaysOnTop {
163
+ /**
164
+ * The URL to open in the web view.
165
+ */
49
166
  url: string;
167
+ /**
168
+ * Settings for the modal window.
169
+ */
50
170
  modal_settings: {
171
+ /**
172
+ * The width of the modal window.
173
+ */
51
174
  width: number;
175
+ /**
176
+ * The height of the modal window.
177
+ */
52
178
  height: number;
179
+ /**
180
+ * The y-coordinate of the modal window.
181
+ */
53
182
  y: number;
183
+ /**
184
+ * The x-coordinate of the modal window.
185
+ */
54
186
  x: number;
55
187
  };
56
188
  }
@@ -0,0 +1,15 @@
1
+ type FetchOptions = {
2
+ method?: string;
3
+ headers?: Record<string, string>;
4
+ body?: string;
5
+ credentials?: RequestCredentials;
6
+ params?: Record<string, any>;
7
+ };
8
+ export declare function createHttpClient(origin: string, token: string): {
9
+ get: (endpoint: string, options?: FetchOptions) => Promise<any>;
10
+ post: (endpoint: string, body?: object, options?: FetchOptions) => Promise<any>;
11
+ put: (endpoint: string, body: object, options?: FetchOptions) => Promise<any>;
12
+ delete: (endpoint: string, options?: FetchOptions) => Promise<any>;
13
+ patch: (endpoint: string, body: object, options?: FetchOptions) => Promise<any>;
14
+ };
15
+ export {};
@@ -0,0 +1 @@
1
+ export declare function truncateObject(obj: any, currentDepth?: number, lengthTrigger?: number): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -969,9 +969,11 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
969
969
  fontSizeLarge: string;
970
970
  borderColor: string;
971
971
  tdColorHover: string;
972
+ tdColorSorting: string;
972
973
  tdColorStriped: string;
973
974
  thColor: string;
974
975
  thColorHover: string;
976
+ thColorSorting: string;
975
977
  tdColor: string;
976
978
  tdTextColor: string;
977
979
  thTextColor: string;
@@ -981,15 +983,19 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
981
983
  thIconColorActive: string;
982
984
  borderColorModal: string;
983
985
  tdColorHoverModal: string;
986
+ tdColorSortingModal: string;
984
987
  tdColorStripedModal: string;
985
988
  thColorModal: string;
986
989
  thColorHoverModal: string;
990
+ thColorSortingModal: string;
987
991
  tdColorModal: string;
988
992
  borderColorPopover: string;
989
993
  tdColorHoverPopover: string;
994
+ tdColorSortingPopover: string;
990
995
  tdColorStripedPopover: string;
991
996
  thColorPopover: string;
992
997
  thColorHoverPopover: string;
998
+ thColorSortingPopover: string;
993
999
  tdColorPopover: string;
994
1000
  boxShadowBefore: string;
995
1001
  boxShadowAfter: string;
@@ -1019,9 +1025,11 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1019
1025
  fontSizeLarge: string;
1020
1026
  borderColor: string;
1021
1027
  tdColorHover: string;
1028
+ tdColorSorting: string;
1022
1029
  tdColorStriped: string;
1023
1030
  thColor: string;
1024
1031
  thColorHover: string;
1032
+ thColorSorting: string;
1025
1033
  tdColor: string;
1026
1034
  tdTextColor: string;
1027
1035
  thTextColor: string;
@@ -1031,15 +1039,19 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1031
1039
  thIconColorActive: string;
1032
1040
  borderColorModal: string;
1033
1041
  tdColorHoverModal: string;
1042
+ tdColorSortingModal: string;
1034
1043
  tdColorStripedModal: string;
1035
1044
  thColorModal: string;
1036
1045
  thColorHoverModal: string;
1046
+ thColorSortingModal: string;
1037
1047
  tdColorModal: string;
1038
1048
  borderColorPopover: string;
1039
1049
  tdColorHoverPopover: string;
1050
+ tdColorSortingPopover: string;
1040
1051
  tdColorStripedPopover: string;
1041
1052
  thColorPopover: string;
1042
1053
  thColorHoverPopover: string;
1054
+ thColorSortingPopover: string;
1043
1055
  tdColorPopover: string;
1044
1056
  boxShadowBefore: string;
1045
1057
  boxShadowAfter: string;
@@ -23,6 +23,16 @@ export type ModuleSettings = {
23
23
  export type EmbeddedLocationProperties = {
24
24
  start_in_loading_mode?: boolean;
25
25
  };
26
+ export type EmbeddedAppShortcut = {
27
+ id: string;
28
+ order_override?: number;
29
+ icon?: string;
30
+ };
31
+ export type EmbeddedAppShortcutsDict = {
32
+ fullscreen: EmbeddedAppShortcut[];
33
+ presentation: EmbeddedAppShortcut[];
34
+ edit: EmbeddedAppShortcut[];
35
+ };
26
36
  export type Module = {
27
37
  enabled: boolean;
28
38
  headless?: boolean;
@@ -36,6 +46,7 @@ export type Module = {
36
46
  };
37
47
  settings?: Record<string, unknown>;
38
48
  };
49
+ shortcuts: EmbeddedAppShortcutsDict;
39
50
  } & EmbeddedLocationProperties;
40
51
  export type AppJson = {
41
52
  name: string;
@@ -1,6 +1,6 @@
1
1
  import { RouteLocation } from 'vue-router';
2
- import { SfEventExtended, SfAccountMini, SfUser, SfContactBasic } from './sfdc';
3
- import { Canvas } from '../../types/openapi';
2
+ import { SfEventExtended, SfAccountMini, SfAccount, SfUser, SfContactBasic } from './sfdc';
3
+ import { CanvasRetrieve } from '../../types/openapi';
4
4
 
5
5
  export declare const CALL_STORAGE_KEY = "call";
6
6
  export interface EventDate {
@@ -31,12 +31,13 @@ export interface Call {
31
31
  selectedContacts: SfContactBasic[];
32
32
  selectedUsers: SfUser[];
33
33
  accountPreselected: boolean;
34
- selectedCanvas: Canvas | null;
34
+ selectedCanvas: CanvasRetrieve | null;
35
35
  callState: CallState;
36
36
  callStoppedAt: RouteLocation | null;
37
37
  eventDate: EventDate;
38
38
  postAction?: string | null;
39
39
  postActionPath?: string | null;
40
40
  presentationHistory?: CallPresentationHistory;
41
+ recentAccounts?: SfAccount[];
41
42
  }
42
43
  export declare const INITIAL_CALL_STATE: Call;
@@ -1,12 +1,38 @@
1
- import { FileCreateRequest } from '../../types/openapi';
1
+ import { Favorite, FileCreateRequest } from '../../types/openapi';
2
+ import { RecentFile } from './recentFiles.types';
3
+ import { CompactFile, CompactFolder } from '@browser/stores/api';
2
4
 
3
5
  export interface DeviceFileCreateRequest extends Omit<FileCreateRequest, 'content'> {
4
6
  path: string;
5
7
  }
6
8
  export type AllFileCreateRequest = FileCreateRequest | DeviceFileCreateRequest;
9
+ export declare enum ViewCompactItemType {
10
+ File = "file",
11
+ Folder = "folder"
12
+ }
13
+ export type ViewCompactFile = Omit<CompactFile, 'created_by'> & {
14
+ type: ViewCompactItemType.File;
15
+ favoriteId?: Favorite['id'];
16
+ createdBy: string;
17
+ content_type?: string;
18
+ };
19
+ export type ViewCompactFolder = Omit<CompactFolder, 'created_by'> & {
20
+ type: ViewCompactItemType.Folder;
21
+ favoriteId?: Favorite['id'];
22
+ content_type?: null;
23
+ thubmnail_url?: null;
24
+ file_thumbnail_urls?: string[];
25
+ folders_count?: number;
26
+ files_count?: number;
27
+ };
7
28
  export interface DeviceFile {
8
29
  name: string;
9
30
  type: string;
10
31
  path: string;
11
32
  size: number;
12
33
  }
34
+ export type ViewCompactFileFolder = ViewCompactFolder | ViewCompactFile;
35
+ export type RenderableFile = (Favorite & {
36
+ thumbnail_url?: string;
37
+ file_thumbnail_urls?: string[];
38
+ }) | RecentFile | ViewCompactFileFolder;
@@ -0,0 +1,5 @@
1
+ import { MetadataTemplateField } from '../../types/openapi';
2
+
3
+ export type MetadataTemplateFieldWithComponentName = MetadataTemplateField & {
4
+ componentName: string;
5
+ };
@@ -0,0 +1,18 @@
1
+ import { Instance, InstanceUpdate, InstanceUpdateRequest, InstanceRequest, PatchedInstanceUpdateRequest } from '../../types/openapi';
2
+ import { InstanceSettings } from './instanceSettings.types';
3
+
4
+ export interface PitcherInstance extends Omit<Instance, 'settings'> {
5
+ readonly settings?: InstanceSettings;
6
+ }
7
+ export interface PitcherInstanceUpdate extends Omit<InstanceUpdate, 'settings'> {
8
+ settings?: InstanceSettings | null;
9
+ }
10
+ export interface PitcherInstanceUpdateRequest extends Omit<InstanceUpdateRequest, 'settings'> {
11
+ settings?: InstanceSettings | null;
12
+ }
13
+ export interface PitcherPatchedInstanceUpdateRequest extends Omit<PatchedInstanceUpdateRequest, 'settings'> {
14
+ settings?: InstanceSettings | null;
15
+ }
16
+ export interface PitcherInstanceRequest extends Omit<InstanceRequest, 'settings'> {
17
+ settings?: InstanceSettings | null;
18
+ }
@@ -1,4 +1,5 @@
1
1
  import { ComponentTypes } from '../apps/canvas-builder/types/canvas';
2
+ import { OrganizationSettings } from './organizationSettings.types';
2
3
 
3
4
  export declare enum CanvasExcludedComponentTypesEnum {
4
5
  Root = "Root",
@@ -11,11 +12,18 @@ export type CanvasComponentTypes = Exclude<keyof typeof ComponentTypes, CanvasEx
11
12
  export type CanvasComponentAvailability = {
12
13
  [component in CanvasComponentTypes]: boolean;
13
14
  };
14
- export type InstanceSettings = {
15
+ export type AutohideSectionOnCreated = {
16
+ autohide_in_shared_link?: string;
17
+ start_date?: Date;
18
+ };
19
+ export type InstanceSettings = OrganizationSettings & {
15
20
  canvas?: {
21
+ autohide_section_on_created?: AutohideSectionOnCreated;
16
22
  component_availability?: CanvasComponentAvailability & {
17
23
  apps?: Record<string, boolean>;
18
24
  };
19
- autofill_metadata_mismatch_properties?: string[];
25
+ content_grid_autofill_files_filter_iteratee?: string;
26
+ section_content_grid_autofill_files_filter_iteratee?: string;
27
+ show_extra_exit_button_in_fullscreen_mode?: boolean;
20
28
  };
21
29
  };
@@ -1,11 +1,9 @@
1
- import { TranslationOverrides } from './translations';
2
-
3
- export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_canvas_node_debugging' | 'enable_experimental_canvas_builder_dnd' | 'hide_asset_uploader' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_popularity_icons' | 'show_system_filters';
1
+ export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_canvas_node_debugging' | 'enable_experimental_canvas_builder_dnd' | 'enable_knock_notifications' | 'hide_asset_uploader' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_content_selector_list_view' | 'show_popularity_icons' | 'show_system_filters' | 'allow_canvases_tables_columns_settings' | 'prefer_online_handlers' | 'use_short_url_for_shared_link' | 'enable_suggested_tags' | 'enable_folder_details_edit' | 'enable_file_revisions';
2
+ export type LaunchDarklyNumberFlagKey = 'canvas_section_selector_page_size' | 'canvas_section_selector_selected_items_with_thumbnail_size';
4
3
  type LaunchDarklyObjectFlags = {
5
4
  canvas_table_pagination: CanvasTablePagination;
6
5
  canvas_manager_table_columns: CanvasManagerTableColumns;
7
6
  context_crm_shape: Record<string, any>;
8
- translation_overrides: TranslationOverrides;
9
7
  };
10
8
  export type LaunchDarklyObjectFlagKey = keyof LaunchDarklyObjectFlags;
11
9
  export type LaunchDarklyStringFlagKey = keyof typeof LaunchDarklyStringFlags;
@@ -32,6 +30,8 @@ export type LaunchDarklyEnv = {
32
30
  [K in LaunchDarklyBooleanFlagKey]?: boolean;
33
31
  } & {
34
32
  [K in LaunchDarklyStringFlagKey]?: LaunchDarklyStringFlagValue<K>;
33
+ } & {
34
+ [K in LaunchDarklyNumberFlagKey]?: number;
35
35
  } & {
36
36
  [K in keyof LaunchDarklyObjectFlags]?: LaunchDarklyObjectFlags[K];
37
37
  } & {
@@ -6,9 +6,9 @@ export interface PitcherOrg extends Omit<Organization, 'metadata' | 'settings'>
6
6
  readonly metadata: OrganizationMetadata;
7
7
  readonly settings: OrganizationSettings;
8
8
  }
9
- export interface OrganizationUpdateExtended extends Omit<OrganizationUpdate, 'settings'> {
9
+ export interface PitcherOrganizationUpdate extends Omit<OrganizationUpdate, 'settings'> {
10
10
  settings?: OrganizationSettings | null;
11
11
  }
12
- export interface OrganizationUpdateRequestExtended extends Omit<OrganizationUpdateRequest, 'settings'> {
12
+ export interface PitcherOrganizationUpdateRequest extends Omit<OrganizationUpdateRequest, 'settings'> {
13
13
  settings?: OrganizationSettings | null;
14
14
  }
@@ -1,3 +1,7 @@
1
+ import { TranslationOverrides } from './translations';
2
+
1
3
  export type OrganizationSettings = {
2
4
  impact_show_only_saved_canvases_in_canvas_manager?: boolean;
5
+ translation_overrides?: TranslationOverrides;
6
+ file_annotations?: 'admin' | 'personal';
3
7
  };
@@ -1,4 +1,7 @@
1
1
  import { Instance, File } from '../../types/openapi';
2
2
 
3
- export type RecentFile = Pick<File, 'id' | 'name' | 'content_type' | 'thumbnail_url' | 'instance_id'>;
3
+ export type RecentFile = Pick<File, 'id' | 'name' | 'content_type' | 'instance_id'> & {
4
+ tags?: Readonly<File['tags']>;
5
+ thumbnail_url?: string | null;
6
+ };
4
7
  export type InstanceRecentFilesMap = Record<Instance['id'], RecentFile[]>;
@@ -1,12 +1,25 @@
1
1
  import { Ref } from 'vue';
2
2
 
3
+ /**
4
+ * Parameters for getting users
5
+ */
3
6
  export interface GetUsersParams {
7
+ /** Search term, can be a string or a Vue ref to a string */
4
8
  search?: Ref<string> | string;
9
+ /** Filters for the user query, can be any type of Vue ref */
5
10
  filters?: Ref<any>;
6
11
  }
12
+ /**
13
+ * Request parameters for refreshing a service token
14
+ */
7
15
  export interface RefreshServiceTokenRequest {
16
+ /** Optional provider for the service token */
8
17
  provider?: string;
9
18
  }
19
+ /**
20
+ * Response from refreshing a service token
21
+ */
10
22
  export interface RefreshServiceTokenResponse {
23
+ /** The new access token */
11
24
  access_token: string;
12
25
  }
@@ -11,6 +11,6 @@ export type DocumentWithFullscreen = Document & {
11
11
  msExitFullscreen?: () => Promise<void>;
12
12
  };
13
13
  export declare function requestFullscreen(el?: FullscreenElement | null): Promise<void>;
14
- export declare function exitFullscreen(): void;
14
+ export declare function exitFullscreen(): Promise<void>;
15
15
  export declare function toggleFullscreen(element: FullscreenElement): void;
16
16
  export declare function isFullscreen(): boolean;
@@ -1,4 +1,5 @@
1
1
  export declare function highlight(input: string, search: string): string;
2
2
  export declare function prefixHttps(url: string): string;
3
3
  export declare function stripHtmlTags(htmlString: string | undefined): string;
4
+ export declare function stripHtmlPreservingLineBreaks(htmlString: string | undefined): string;
4
5
  export declare function stripHtmlTagsAndTrim(htmlString: string | undefined): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitcher/js-api",
3
- "version": "1.22.0-alpha.5",
3
+ "version": "1.22.0-beta.0",
4
4
  "type": "module",
5
5
  "main": "js-api.umd.min.js",
6
6
  "module": "js-api.esm.js",