@partium/js-sdk 14.15.2 → 14.16.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 (346) hide show
  1. package/LICENSE.txt +1 -1
  2. package/catalog/index.d.ts +1 -1
  3. package/catalog/index.js +1 -1
  4. package/catalog/models/catalog-image-info.d.ts +1 -1
  5. package/catalog/models/catalog-image-info.js +1 -1
  6. package/catalog/models/catalog-image.d.ts +1 -1
  7. package/catalog/models/catalog-image.js +1 -1
  8. package/catalog/models/upsert-catalog-images-dto.d.ts +1 -1
  9. package/catalog/models/upsert-catalog-images-dto.js +1 -1
  10. package/catalog/models/upsert-images-result.d.ts +1 -1
  11. package/catalog/models/upsert-images-result.js +1 -1
  12. package/catalog/services/images.service.d.ts +1 -1
  13. package/catalog/services/images.service.js +1 -1
  14. package/core/constants/constants.d.ts +1 -1
  15. package/core/constants/constants.js +1 -1
  16. package/core/decorators/injection-identifier.d.ts +1 -1
  17. package/core/decorators/injection-identifier.js +1 -1
  18. package/core/factories/paginated-request-service.factory.d.ts +1 -1
  19. package/core/factories/paginated-request-service.factory.js +1 -1
  20. package/core/index.d.ts +1 -1
  21. package/core/index.js +1 -1
  22. package/core/integration-defaults/http/fetch-api-http-error-helper.d.ts +1 -1
  23. package/core/integration-defaults/http/fetch-api-http-error-helper.js +1 -1
  24. package/core/integration-defaults/http/file-transfer/axios-file-transfer.service.d.ts +1 -1
  25. package/core/integration-defaults/http/file-transfer/axios-file-transfer.service.js +1 -1
  26. package/core/integration-defaults/http/file-transfer/fetch-api-file-transfer.service.d.ts +1 -1
  27. package/core/integration-defaults/http/file-transfer/fetch-api-file-transfer.service.js +1 -1
  28. package/core/integration-defaults/http/handle-axios-error-helper.d.ts +1 -1
  29. package/core/integration-defaults/http/handle-axios-error-helper.js +1 -1
  30. package/core/integration-defaults/http/https-client/axios-https-client.service.d.ts +1 -1
  31. package/core/integration-defaults/http/https-client/axios-https-client.service.js +1 -1
  32. package/core/integration-defaults/http/https-client/fetch-api-https-client.service.d.ts +1 -1
  33. package/core/integration-defaults/http/https-client/fetch-api-https-client.service.js +1 -1
  34. package/core/integration-defaults/http/js-oauth-keycloak-https.service.d.ts +1 -1
  35. package/core/integration-defaults/http/js-oauth-keycloak-https.service.js +1 -1
  36. package/core/integration-defaults/js-p-file.d.ts +1 -1
  37. package/core/integration-defaults/js-p-file.js +1 -1
  38. package/core/integration-defaults/session/js-oauth-api-key-session.service.d.ts +1 -1
  39. package/core/integration-defaults/session/js-oauth-api-key-session.service.js +1 -1
  40. package/core/integration-defaults/session/js-oauth-keycloak-auth-config.d.ts +1 -1
  41. package/core/integration-defaults/session/js-oauth-keycloak-auth-config.js +1 -1
  42. package/core/integration-defaults/session/js-oauth-keycloak-session.service.d.ts +1 -1
  43. package/core/integration-defaults/session/js-oauth-keycloak-session.service.js +1 -1
  44. package/core/integration-defaults/web-device-status.service.d.ts +1 -1
  45. package/core/integration-defaults/web-device-status.service.js +1 -1
  46. package/core/integration-defaults/web-file.service.d.ts +1 -1
  47. package/core/integration-defaults/web-file.service.js +1 -1
  48. package/core/integration-defaults/web-indexeddb.service.d.ts +1 -1
  49. package/core/integration-defaults/web-indexeddb.service.js +1 -1
  50. package/core/integration-defaults/web-local-storage.service.d.ts +1 -1
  51. package/core/integration-defaults/web-local-storage.service.js +1 -1
  52. package/core/models/api-object.d.ts +1 -1
  53. package/core/models/api-object.js +1 -1
  54. package/core/models/auth-config.d.ts +1 -1
  55. package/core/models/auth-config.js +1 -1
  56. package/core/models/base-paginated-request.d.ts +1 -1
  57. package/core/models/base-paginated-request.js +1 -1
  58. package/core/models/base-paginated-response.d.ts +1 -1
  59. package/core/models/base-paginated-response.js +1 -1
  60. package/core/models/base-response.d.ts +1 -1
  61. package/core/models/base-response.js +1 -1
  62. package/core/models/default-get-paginated-request-pagination-context.d.ts +1 -1
  63. package/core/models/default-get-paginated-request-pagination-context.js +1 -1
  64. package/core/models/device-info.d.ts +1 -1
  65. package/core/models/device-info.js +1 -1
  66. package/core/models/error.d.ts +1 -1
  67. package/core/models/error.js +1 -1
  68. package/core/models/formatted-string.d.ts +1 -1
  69. package/core/models/formatted-string.js +1 -1
  70. package/core/models/i18n-map.d.ts +1 -1
  71. package/core/models/i18n-map.js +1 -1
  72. package/core/models/i18n-string.d.ts +1 -1
  73. package/core/models/i18n-string.js +1 -1
  74. package/core/models/log.d.ts +1 -1
  75. package/core/models/log.js +1 -1
  76. package/core/models/organization.d.ts +1 -1
  77. package/core/models/organization.js +1 -1
  78. package/core/models/p-file.d.ts +1 -1
  79. package/core/models/p-file.js +1 -1
  80. package/core/models/paginated-list.d.ts +1 -1
  81. package/core/models/paginated-list.js +1 -1
  82. package/core/models/partium-config.d.ts +1 -1
  83. package/core/models/partium-config.js +1 -1
  84. package/core/models/user-token.d.ts +1 -1
  85. package/core/models/user-token.js +1 -1
  86. package/core/models/user.d.ts +1 -1
  87. package/core/models/user.js +1 -1
  88. package/core/services/backend-status.service.d.ts +1 -1
  89. package/core/services/backend-status.service.js +1 -1
  90. package/core/services/base-login-init.service.d.ts +1 -1
  91. package/core/services/base-login-init.service.js +1 -1
  92. package/core/services/base.service.d.ts +1 -1
  93. package/core/services/base.service.js +1 -1
  94. package/core/services/device-status.service.interface.d.ts +1 -1
  95. package/core/services/device-status.service.interface.js +1 -1
  96. package/core/services/file.service.interface.d.ts +1 -1
  97. package/core/services/file.service.interface.js +1 -1
  98. package/core/services/http/file-transfer/file-transfer.service.interface.d.ts +1 -1
  99. package/core/services/http/file-transfer/file-transfer.service.interface.js +1 -1
  100. package/core/services/http/https-client/https-client.service.interface.d.ts +1 -1
  101. package/core/services/http/https-client/https-client.service.interface.js +1 -1
  102. package/core/services/http/https.service.interface.d.ts +1 -1
  103. package/core/services/http/https.service.interface.js +1 -1
  104. package/core/services/http/oauth-https.service.d.ts +1 -1
  105. package/core/services/http/oauth-https.service.js +1 -1
  106. package/core/services/local-storage.service.interface.d.ts +1 -1
  107. package/core/services/local-storage.service.interface.js +1 -1
  108. package/core/services/log.service.d.ts +1 -1
  109. package/core/services/log.service.js +1 -1
  110. package/core/services/organization.service.d.ts +1 -1
  111. package/core/services/organization.service.js +1 -1
  112. package/core/services/paginated-request.service.d.ts +1 -1
  113. package/core/services/paginated-request.service.js +1 -1
  114. package/core/services/recent-parts.service.d.ts +1 -1
  115. package/core/services/recent-parts.service.js +1 -1
  116. package/core/services/service-provider.d.ts +1 -1
  117. package/core/services/service-provider.js +1 -1
  118. package/core/services/session/oauth-session.service.d.ts +1 -1
  119. package/core/services/session/oauth-session.service.js +1 -1
  120. package/core/services/session/session.service.interface.d.ts +1 -1
  121. package/core/services/session/session.service.interface.js +1 -1
  122. package/core/utils/general-helper.d.ts +1 -1
  123. package/core/utils/general-helper.js +1 -1
  124. package/data/index.d.ts +1 -1
  125. package/data/index.js +1 -1
  126. package/data/models/announcement.d.ts +1 -1
  127. package/data/models/announcement.js +1 -1
  128. package/data/models/assembly-hierarchy-node-breadcrumb.d.ts +1 -1
  129. package/data/models/assembly-hierarchy-node-breadcrumb.js +1 -1
  130. package/data/models/assembly-hierarchy-node.d.ts +1 -1
  131. package/data/models/assembly-hierarchy-node.js +1 -1
  132. package/data/models/attribute.d.ts +1 -1
  133. package/data/models/attribute.js +1 -1
  134. package/data/models/csa-request-search.d.ts +1 -1
  135. package/data/models/csa-request-search.js +1 -1
  136. package/data/models/csa-request-status.d.ts +1 -1
  137. package/data/models/csa-request-status.js +1 -1
  138. package/data/models/csa-request.d.ts +1 -1
  139. package/data/models/csa-request.js +1 -1
  140. package/data/models/document.d.ts +1 -1
  141. package/data/models/document.js +1 -1
  142. package/data/models/filter-key.d.ts +1 -1
  143. package/data/models/filter-key.js +1 -1
  144. package/data/models/filter-option-value.d.ts +1 -1
  145. package/data/models/filter-option-value.js +1 -1
  146. package/data/models/get-part-data-request.d.ts +1 -1
  147. package/data/models/get-part-data-request.js +1 -1
  148. package/data/models/get-part-data-response.d.ts +1 -1
  149. package/data/models/get-part-data-response.js +1 -1
  150. package/data/models/image.d.ts +1 -1
  151. package/data/models/image.js +1 -1
  152. package/data/models/inquiry.d.ts +1 -1
  153. package/data/models/inquiry.js +1 -1
  154. package/data/models/mounting-location.d.ts +1 -1
  155. package/data/models/mounting-location.js +1 -1
  156. package/data/models/multiple-expert-searches.d.ts +1 -1
  157. package/data/models/multiple-expert-searches.js +1 -1
  158. package/data/models/part-data.d.ts +1 -1
  159. package/data/models/part-data.js +1 -1
  160. package/data/models/part-enrichment-data.d.ts +1 -1
  161. package/data/models/part-enrichment-data.js +1 -1
  162. package/data/models/part.d.ts +1 -1
  163. package/data/models/part.js +1 -1
  164. package/data/models/shopping-cart.d.ts +1 -1
  165. package/data/models/shopping-cart.js +1 -1
  166. package/data/services/announcement.service.d.ts +1 -1
  167. package/data/services/announcement.service.js +1 -1
  168. package/data/services/assembly-hierarchy-nodes.service.d.ts +1 -1
  169. package/data/services/assembly-hierarchy-nodes.service.js +1 -1
  170. package/data/services/csa-helper.service.d.ts +1 -1
  171. package/data/services/csa-helper.service.js +1 -1
  172. package/data/services/customer-service-assistance.service.d.ts +1 -1
  173. package/data/services/customer-service-assistance.service.js +1 -1
  174. package/data/services/data.service.d.ts +1 -1
  175. package/data/services/data.service.js +1 -1
  176. package/data/services/filter.service.d.ts +1 -1
  177. package/data/services/filter.service.js +1 -1
  178. package/data/services/inquiry.service.d.ts +1 -1
  179. package/data/services/inquiry.service.js +1 -1
  180. package/data/services/part-attribute.service.d.ts +1 -1
  181. package/data/services/part-attribute.service.js +1 -1
  182. package/data/services/part-enrichment.service.d.ts +1 -1
  183. package/data/services/part-enrichment.service.js +1 -1
  184. package/data/services/part.service.d.ts +1 -1
  185. package/data/services/part.service.js +1 -1
  186. package/data/services/related-parts.service.d.ts +1 -1
  187. package/data/services/related-parts.service.js +1 -1
  188. package/data/services/shopping-cart.service.d.ts +1 -1
  189. package/data/services/shopping-cart.service.js +1 -1
  190. package/datacuration/index.d.ts +1 -1
  191. package/datacuration/index.js +1 -1
  192. package/datacuration/models/approve-image-submission-request.d.ts +1 -1
  193. package/datacuration/models/approve-image-submission-request.js +1 -1
  194. package/datacuration/models/approve-image-submission-response.d.ts +1 -1
  195. package/datacuration/models/approve-image-submission-response.js +1 -1
  196. package/datacuration/models/base-submission-response.d.ts +1 -1
  197. package/datacuration/models/base-submission-response.js +1 -1
  198. package/datacuration/models/get-image-submissions-request.d.ts +1 -1
  199. package/datacuration/models/get-image-submissions-request.js +1 -1
  200. package/datacuration/models/get-image-submissions-response.d.ts +1 -1
  201. package/datacuration/models/get-image-submissions-response.js +1 -1
  202. package/datacuration/models/image-submission-content-type.d.ts +1 -1
  203. package/datacuration/models/image-submission-content-type.js +1 -1
  204. package/datacuration/models/image-submission-status.d.ts +1 -1
  205. package/datacuration/models/image-submission-status.js +1 -1
  206. package/datacuration/models/image-submission.d.ts +1 -1
  207. package/datacuration/models/image-submission.js +1 -1
  208. package/datacuration/models/reject-image-submission-request.d.ts +1 -1
  209. package/datacuration/models/reject-image-submission-request.js +1 -1
  210. package/datacuration/models/reject-image-submission-response.d.ts +1 -1
  211. package/datacuration/models/reject-image-submission-response.js +1 -1
  212. package/datacuration/models/submit-images-request.d.ts +1 -1
  213. package/datacuration/models/submit-images-request.js +1 -1
  214. package/datacuration/models/submit-images-response.d.ts +1 -1
  215. package/datacuration/models/submit-images-response.js +1 -1
  216. package/datacuration/models/update-image-submission-request.d.ts +1 -1
  217. package/datacuration/models/update-image-submission-request.js +1 -1
  218. package/datacuration/models/update-image-submission-response.d.ts +1 -1
  219. package/datacuration/models/update-image-submission-response.js +1 -1
  220. package/datacuration/services/image-submission.service.d.ts +1 -1
  221. package/datacuration/services/image-submission.service.js +1 -1
  222. package/enrichment/index.d.ts +1 -1
  223. package/enrichment/index.js +1 -1
  224. package/enrichment/models/create-enrichment-job-request.d.ts +1 -1
  225. package/enrichment/models/create-enrichment-job-request.js +1 -1
  226. package/enrichment/models/create-enrichment-job-response.d.ts +1 -1
  227. package/enrichment/models/create-enrichment-job-response.js +1 -1
  228. package/enrichment/models/enrichment-job-part.d.ts +1 -1
  229. package/enrichment/models/enrichment-job-part.js +1 -1
  230. package/enrichment/models/enrichment-job.d.ts +1 -1
  231. package/enrichment/models/enrichment-job.js +1 -1
  232. package/enrichment/models/get-enrichment-job-parts-request.d.ts +1 -1
  233. package/enrichment/models/get-enrichment-job-parts-request.js +1 -1
  234. package/enrichment/models/get-enrichment-job-request.d.ts +1 -1
  235. package/enrichment/models/get-enrichment-job-request.js +1 -1
  236. package/enrichment/models/submit-enrichment-job-request.d.ts +1 -1
  237. package/enrichment/models/submit-enrichment-job-request.js +1 -1
  238. package/enrichment/services/data-enrichment.service.d.ts +1 -1
  239. package/enrichment/services/data-enrichment.service.js +1 -1
  240. package/find/index.d.ts +1 -1
  241. package/find/index.js +1 -1
  242. package/find/models/assets/asset.d.ts +1 -1
  243. package/find/models/assets/asset.js +1 -1
  244. package/find/models/search-filter.d.ts +1 -1
  245. package/find/models/search-filter.js +1 -1
  246. package/find/models/search-input.d.ts +1 -1
  247. package/find/models/search-input.js +1 -1
  248. package/find/models/search-output.d.ts +1 -1
  249. package/find/models/search-output.js +1 -1
  250. package/find/models/search-result-status.d.ts +1 -1
  251. package/find/models/search-result-status.js +1 -1
  252. package/find/models/search-session-log-object.d.ts +1 -1
  253. package/find/models/search-session-log-object.js +1 -1
  254. package/find/models/search-status/cv-search-status.d.ts +1 -1
  255. package/find/models/search-status/cv-search-status.js +1 -1
  256. package/find/models/search-status/search-filter-status.d.ts +1 -1
  257. package/find/models/search-status/search-filter-status.js +1 -1
  258. package/find/models/search-status/search-status.d.ts +1 -1
  259. package/find/models/search-status/search-status.js +1 -1
  260. package/find/models/search-status/tag-search-status.d.ts +1 -1
  261. package/find/models/search-status/tag-search-status.js +1 -1
  262. package/find/models/search-status/text-search-status.d.ts +1 -1
  263. package/find/models/search-status/text-search-status.js +1 -1
  264. package/find/models/search-tag.d.ts +1 -1
  265. package/find/models/search-tag.js +1 -1
  266. package/find/models/smart-filter.d.ts +1 -1
  267. package/find/models/smart-filter.js +1 -1
  268. package/find/models/tagable/i18n-tagable.d.ts +1 -1
  269. package/find/models/tagable/i18n-tagable.js +1 -1
  270. package/find/models/tagable/tagable-base.d.ts +1 -1
  271. package/find/models/tagable/tagable-base.js +1 -1
  272. package/find/models/tagable/tagable.d.ts +1 -1
  273. package/find/models/tagable/tagable.js +1 -1
  274. package/find/models/text-search-config.d.ts +1 -1
  275. package/find/models/text-search-config.js +1 -1
  276. package/find/models/text-search-manipulator.d.ts +1 -1
  277. package/find/models/text-search-manipulator.js +1 -1
  278. package/find/models/text-search-result-item/text-search-error.d.ts +1 -1
  279. package/find/models/text-search-result-item/text-search-error.js +1 -1
  280. package/find/models/text-search-result-item/text-search-result-item-document.d.ts +1 -1
  281. package/find/models/text-search-result-item/text-search-result-item-document.js +1 -1
  282. package/find/models/text-search-result-item/text-search-result-item-part.d.ts +1 -1
  283. package/find/models/text-search-result-item/text-search-result-item-part.js +1 -1
  284. package/find/models/text-search-result-item/text-search-result-item-recent-query.d.ts +1 -1
  285. package/find/models/text-search-result-item/text-search-result-item-recent-query.js +1 -1
  286. package/find/models/text-search-result-item/text-search-result-item-unknown.d.ts +1 -1
  287. package/find/models/text-search-result-item/text-search-result-item-unknown.js +1 -1
  288. package/find/models/text-search-result-item/text-search-result-item.d.ts +1 -1
  289. package/find/models/text-search-result-item/text-search-result-item.js +1 -1
  290. package/find/services/asset.service.d.ts +1 -1
  291. package/find/services/asset.service.js +1 -1
  292. package/find/services/filter-uploaders/filter-uploader.d.ts +1 -1
  293. package/find/services/filter-uploaders/filter-uploader.js +1 -1
  294. package/find/services/filter-uploaders/update-filters-uploader.d.ts +1 -1
  295. package/find/services/filter-uploaders/update-filters-uploader.js +1 -1
  296. package/find/services/filter-uploaders/update-filters.model.d.ts +1 -1
  297. package/find/services/filter-uploaders/update-filters.model.js +1 -1
  298. package/find/services/search/cv-search.service.d.ts +1 -1
  299. package/find/services/search/cv-search.service.js +1 -1
  300. package/find/services/search/recent-text-search-queries.service.d.ts +1 -1
  301. package/find/services/search/recent-text-search-queries.service.js +1 -1
  302. package/find/services/search/search-result.service.d.ts +1 -1
  303. package/find/services/search/search-result.service.js +1 -1
  304. package/find/services/search/search.service.d.ts +1 -1
  305. package/find/services/search/search.service.js +1 -1
  306. package/find/services/search/tag-search.service.d.ts +1 -1
  307. package/find/services/search/tag-search.service.js +1 -1
  308. package/find/services/search/text-search.service.d.ts +1 -1
  309. package/find/services/search/text-search.service.js +1 -1
  310. package/find/services/search-filter.service.d.ts +1 -1
  311. package/find/services/search-filter.service.js +1 -1
  312. package/find/utils/search-helper.d.ts +1 -1
  313. package/find/utils/search-helper.js +1 -1
  314. package/gen/sdk-version.d.ts +2 -2
  315. package/gen/sdk-version.js +2 -2
  316. package/index.d.ts +1 -1
  317. package/index.js +1 -1
  318. package/management/index.d.ts +1 -1
  319. package/management/index.js +1 -1
  320. package/management/models/api-key-list-response.d.ts +1 -1
  321. package/management/models/api-key-list-response.js +1 -1
  322. package/management/models/api-key-type.d.ts +1 -1
  323. package/management/models/api-key-type.js +1 -1
  324. package/management/models/api-key.d.ts +1 -1
  325. package/management/models/api-key.js +1 -1
  326. package/management/services/api-key.service.d.ts +1 -1
  327. package/management/services/api-key.service.js +1 -1
  328. package/ocr/index.d.ts +1 -1
  329. package/ocr/index.js +1 -1
  330. package/ocr/models/detect-response.d.ts +1 -1
  331. package/ocr/models/detect-response.js +1 -1
  332. package/ocr/models/detected-text-entry.d.ts +1 -1
  333. package/ocr/models/detected-text-entry.js +1 -1
  334. package/ocr/services/ocr.service.d.ts +1 -1
  335. package/ocr/services/ocr.service.js +1 -1
  336. package/package.json +1 -1
  337. package/user-data/index.d.ts +1 -1
  338. package/user-data/index.js +1 -1
  339. package/user-data/models/part-with-nullable.d.ts +1 -1
  340. package/user-data/models/part-with-nullable.js +1 -1
  341. package/user-data/models/request-list/request-list.d.ts +1 -1
  342. package/user-data/models/request-list/request-list.js +1 -1
  343. package/user-data/services/favorite/favorite.service.d.ts +1 -1
  344. package/user-data/services/favorite/favorite.service.js +1 -1
  345. package/user-data/services/request-list/request-list.service.d.ts +1 -1
  346. package/user-data/services/request-list/request-list.service.js +1 -1
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
 
3
3
  Partium Source Code License, by Partium, Inc. DBA Partium ("Licensor")
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  export * from './models/catalog-image-info';
3
3
  export * from './models/upsert-catalog-images-dto';
4
4
  export * from './models/catalog-image';
package/catalog/index.js CHANGED
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./models/catalog-image-info"),exports),__exportStar(require("./models/upsert-catalog-images-dto"),exports),__exportStar(require("./models/catalog-image"),exports),__exportStar(require("./services/images.service"),exports);
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * Meta data information to define the purpose of an image
4
4
  */
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var CatalogImageInfo;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CatalogImageInfo=void 0,function(a){a.SEARCHABLE="searchable",a.DISPLAY="display",a.SEARCHABLE_AND_DISPLAY="searchable display"}(CatalogImageInfo||(exports.CatalogImageInfo=CatalogImageInfo={}));
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { APIObject } from '../../core';
3
3
  import { CatalogImageInfo } from './catalog-image-info';
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.CatalogImage=void 0;var core_1=require("../../core"),CatalogImage=function(t){function e(e){var o=t.call(this)||this;return Object.assign(o,e),o}return __extends(e,t),e.fromAPIResponse=function(t){return new e({imageId:t.image_id,externalPartId:t.part_id,info:t.info})},e}(core_1.APIObject);exports.CatalogImage=CatalogImage;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { CatalogImageInfo } from './catalog-image-info';
3
3
  /**
4
4
  * DTO for creating a new image
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * Result of the upsert images operation
4
4
  */
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { Observable } from 'rxjs';
3
3
  import { BaseService } from '../../core/services/base.service';
4
4
  import { ServiceProvider } from '../../core/services/service-provider';
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__decorate=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,c=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(c=(o<3?n(c):o>3?n(t,r,c):n(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImagesServiceImpl=void 0;var injection_identifier_1=require("../../core/decorators/injection-identifier"),base_service_1=require("../../core/services/base.service"),https_service_interface_1=require("../../core/services/http/https.service.interface"),ImagesServiceImpl=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(https_service_interface_1.HttpsService)},t.prototype.upsert=function(e){var t=new FormData;return e.files.forEach((function(e){t.append("files",e,e.name)})),t.append("images",JSON.stringify(e.images.map((function(e){return{image_id:e.imageId,part_id:e.externalPartId,info:e.info}})))),this.httpsService.post("images",t,null,https_service_interface_1.BACKEND_SERVICE.CATALOG,{"Content-Type":"multipart/form-data"})},t=__decorate([(0,injection_identifier_1.InjectionIdentifier)("ImagesService")],t)}(base_service_1.BaseService);exports.ImagesServiceImpl=ImagesServiceImpl;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  export declare const PARTIUM_API_VERSION = 1;
3
3
  export declare const REL_FIND_API_URL = "_find";
4
4
  export declare const REL_DATA_API_URL = "_data";
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BACKEND_STATUS_FALLBACK_URL=exports.REL_DATA_ENRICHMENT_API_URL=exports.REL_DATA_V2_API_URL=exports.REL_DATACURATION_API_URL=exports.REL_CATALOG_API_URL=exports.REL_MANAGEMENT_API_URL=exports.REL_STATUS_API_URL=exports.REL_AUTH_API_URL=exports.REL_OCR_API_URL=exports.REL_USER_DATA_API_URL=exports.REL_LOGS_API_URL=exports.REL_CSA_API_URL=exports.REL_DATA_API_URL=exports.REL_FIND_API_URL=exports.PARTIUM_API_VERSION=void 0,exports.PARTIUM_API_VERSION=1,exports.REL_FIND_API_URL="_find",exports.REL_DATA_API_URL="_data",exports.REL_CSA_API_URL="_csa",exports.REL_LOGS_API_URL="_logs",exports.REL_USER_DATA_API_URL="_ud",exports.REL_OCR_API_URL="_ocr",exports.REL_AUTH_API_URL="_auth",exports.REL_STATUS_API_URL="_status",exports.REL_MANAGEMENT_API_URL="management",exports.REL_CATALOG_API_URL="catalog",exports.REL_DATACURATION_API_URL="datacuration",exports.REL_DATA_V2_API_URL="data",exports.REL_DATA_ENRICHMENT_API_URL="enrichment",exports.BACKEND_STATUS_FALLBACK_URL="https://example.com";
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * Add a static function called getInjectionIdentifierName, that
4
4
  * returns the name, that was defined by InjectionIdentifier.
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InjectionIdentifier=void 0;var InjectionIdentifier=function(e){return function(n){n.getInjectionIdentifierName=function(){return e}}};exports.InjectionIdentifier=InjectionIdentifier;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { APIObject } from '..';
3
3
  import { BACKEND_SERVICE, HttpsService } from '../services/http/https.service.interface';
4
4
  import { PaginatedRequestService } from '../services/paginated-request.service';
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PaginatedRequestServiceFactory=void 0;var https_service_interface_1=require("../services/http/https.service.interface"),paginated_request_service_1=require("../services/paginated-request.service"),PaginatedRequestServiceFactory=function(){function e(){}return e.generatePaginatedRequestService=function(e,t,r,i,a,s,c){return void 0===i&&(i=https_service_interface_1.BACKEND_SERVICE.DATA),void 0===a&&(a=[]),void 0===s&&(s=25),new paginated_request_service_1.PaginatedRequestServiceImpl(e,t,r,i,a,s,c)},e}();exports.PaginatedRequestServiceFactory=PaginatedRequestServiceFactory;
package/core/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  export * from './decorators/injection-identifier';
3
3
  export * from './integration-defaults/js-p-file';
4
4
  export * from './integration-defaults/web-local-storage.service';
package/core/index.js CHANGED
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,s){void 0===s&&(s=t);var i=Object.getOwnPropertyDescriptor(r,t);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,s,i)}:function(e,r,t,s){void 0===s&&(s=t),e[s]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./decorators/injection-identifier"),exports),__exportStar(require("./integration-defaults/js-p-file"),exports),__exportStar(require("./integration-defaults/web-local-storage.service"),exports),__exportStar(require("./integration-defaults/web-device-status.service"),exports),__exportStar(require("./integration-defaults/web-indexeddb.service"),exports),__exportStar(require("./integration-defaults/web-file.service"),exports),__exportStar(require("./integration-defaults/http/js-oauth-keycloak-https.service"),exports),__exportStar(require("./integration-defaults/http/https-client/axios-https-client.service"),exports),__exportStar(require("./integration-defaults/http/https-client/fetch-api-https-client.service"),exports),__exportStar(require("./integration-defaults/http/file-transfer/axios-file-transfer.service"),exports),__exportStar(require("./integration-defaults/http/file-transfer/fetch-api-file-transfer.service"),exports),__exportStar(require("./integration-defaults/session/js-oauth-keycloak-session.service"),exports),__exportStar(require("./integration-defaults/session/js-oauth-keycloak-auth-config"),exports),__exportStar(require("./integration-defaults/session/js-oauth-api-key-session.service"),exports),__exportStar(require("./models/i18n-string"),exports),__exportStar(require("./models/partium-config"),exports),__exportStar(require("./models/auth-config"),exports),__exportStar(require("./models/p-file"),exports),__exportStar(require("./models/formatted-string"),exports),__exportStar(require("./models/i18n-map"),exports),__exportStar(require("./models/error"),exports),__exportStar(require("./models/organization"),exports),__exportStar(require("./models/api-object"),exports),__exportStar(require("./models/paginated-list"),exports),__exportStar(require("./models/log"),exports),__exportStar(require("./models/device-info"),exports),__exportStar(require("./models/user-token"),exports),__exportStar(require("./models/user"),exports),__exportStar(require("./models/base-response"),exports),__exportStar(require("./services/service-provider"),exports),__exportStar(require("./services/local-storage.service.interface"),exports),__exportStar(require("./services/backend-status.service"),exports),__exportStar(require("./services/http/https.service.interface"),exports),__exportStar(require("./services/http/https-client/https-client.service.interface"),exports),__exportStar(require("./services/http/file-transfer/file-transfer.service.interface"),exports),__exportStar(require("./services/http/oauth-https.service"),exports),__exportStar(require("./services/base.service"),exports),__exportStar(require("./services/base-login-init.service"),exports),__exportStar(require("./services/device-status.service.interface"),exports),__exportStar(require("./services/session/session.service.interface"),exports),__exportStar(require("./services/session/oauth-session.service"),exports),__exportStar(require("./services/organization.service"),exports),__exportStar(require("./services/paginated-request.service"),exports),__exportStar(require("./services/log.service"),exports),__exportStar(require("./factories/paginated-request-service.factory"),exports),__exportStar(require("./services/file.service.interface"),exports),__exportStar(require("./services/recent-parts.service"),exports),__exportStar(require("./models/base-paginated-request"),exports),__exportStar(require("./models/base-paginated-response"),exports),__exportStar(require("./models/default-get-paginated-request-pagination-context"),exports);
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { Observable } from "rxjs";
3
3
  import { SdkError, SDK_ERROR_CODES } from "../../models/error";
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __awaiter=this&&this.__awaiter||function(r,e,o,t){return new(o||(o=Promise))((function(n,_){function E(r){try{R(t.next(r))}catch(r){_(r)}}function s(r){try{R(t.throw(r))}catch(r){_(r)}}function R(r){var e;r.done?n(r.value):(e=r.value,e instanceof o?e:new o((function(r){r(e)}))).then(E,s)}R((t=t.apply(r,e||[])).next())}))},__generator=this&&this.__generator||function(r,e){var o,t,n,_,E={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return _={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(_[Symbol.iterator]=function(){return this}),_;function s(s){return function(R){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;_&&(_=0,s[0]&&(E=0)),E;)try{if(o=1,t&&(n=2&s[0]?t.return:s[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,s[1])).done)return n;switch(t=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return E.label++,{value:s[1],done:!1};case 5:E.label++,t=s[1],s=[0];continue;case 7:s=E.ops.pop(),E.trys.pop();continue;default:if(!(n=E.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){E=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){E.label=s[1];break}if(6===s[0]&&E.label<n[1]){E.label=n[1],n=s;break}if(n&&E.label<n[2]){E.label=n[2],E.ops.push(s);break}n[2]&&E.ops.pop(),E.trys.pop();continue}s=e.call(r,E)}catch(r){s=[6,r],t=0}finally{o=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,R])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FetchAPIHttpErrorHelper=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),error_1=require("../../models/error"),FetchAPIHttpErrorHelper=function(){function r(){}return r.processError=function(e){return e instanceof error_1.SdkError?(0,rxjs_1.throwError)(e):e instanceof Response?(0,rxjs_1.from)(r.getErrorCodeFromError(e)).pipe((0,operators_1.mergeMap)((function(r){switch(e.status){case 400:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.BAD_REQUEST,e));case 401:return-1!==[error_1.SDK_ERROR_CODES.INVALID_TOKEN,error_1.SDK_ERROR_CODES.TOKEN_EXPIRED].indexOf(r)?(0,rxjs_1.throwError)(new error_1.SdkError(r,e)):(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.USER_UNAUTHORIZED,e));case 403:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.FORBIDDEN,e));case 404:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.NOT_FOUND,e));case 422:return-1!==[error_1.SDK_ERROR_CODES.INVALID_MULTIPLE_IMAGE_SEARCHES,error_1.SDK_ERROR_CODES.INVALID_SEARCH_LANGUAGE,error_1.SDK_ERROR_CODES.INVALID_SEARCH_MODALITY_CONFIG].indexOf(r)?(0,rxjs_1.throwError)(new error_1.SdkError(r,e)):(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.UNPROCESSABLE_ENTITY,e));case 500:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INTERNAL_SERVER_ERROR,e));case 501:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.NOT_IMPLEMENTED,e));case 502:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.BAD_GATEWAY,e));case 503:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.SERVICE_UNAVAILABLE,e));case 504:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.GATEWAY_TIMEOUT,e))}}))):(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.UNKNOWN_ERROR,e))},r.getErrorCodeFromError=function(r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,r.clone().json()];case 1:return e=o.sent(),console.log("res"),(null==e?void 0:e.errorCode)?[2,e.errorCode]:[3,3];case 2:return o.sent(),[2,error_1.SDK_ERROR_CODES.UNKNOWN_ERROR];case 3:return[2,error_1.SDK_ERROR_CODES.UNKNOWN_ERROR]}}))}))},r}();exports.FetchAPIHttpErrorHelper=FetchAPIHttpErrorHelper;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { DownloadStatus, FileTransferService, UploadStatus } from "../../../services/http/file-transfer/file-transfer.service.interface";
3
3
  import { Observable } from "rxjs";
4
4
  import { JsPFile } from "../../js-p-file";
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.AxiosFileTransferService=void 0;var file_transfer_service_interface_1=require("../../../services/http/file-transfer/file-transfer.service.interface"),rxjs_1=require("rxjs"),axios_observable_1=require("axios-observable"),js_p_file_1=require("../../js-p-file"),operators_1=require("rxjs/operators"),handle_axios_error_helper_1=require("../handle-axios-error-helper"),device_status_service_interface_1=require("../../../services/device-status.service.interface"),error_1=require("../../../models/error"),AxiosFileTransferService=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.onCreate=function(){e.prototype.onCreate.call(this),this.deviceStatusService=this.serviceProvider.getService(device_status_service_interface_1.DeviceStatusService)},r.prototype.uploadFile=function(e,r){var t=this;return new rxjs_1.Observable((function(o){var i={method:"PUT",url:r,data:e.file,onUploadProgress:function(e){var r=Math.round(100*e.loaded/e.total);o.next({status:file_transfer_service_interface_1.TRANSFER_STATUS.TRANSFERRING,progress:r})}};t.validateIsKnownUrlOrCry(r),axios_observable_1.default.request(i).pipe((0,operators_1.catchError)((function(e){return t.checkInternetConnectivity(e)})),(0,operators_1.catchError)(handle_axios_error_helper_1.HandleAxiosErrorHelper.processError)).subscribe((function(e){o.next({status:file_transfer_service_interface_1.TRANSFER_STATUS.TRANSFER_FINISHED,progress:100}),o.complete()}),(function(e){console.log("Error while uploading file: ",e),o.error(e)}))}))},r.prototype.downloadFile=function(e){var r=this;return new rxjs_1.Observable((function(t){var o={method:"GET",url:e,responseType:"blob",onDownloadProgress:function(e){var r=Math.round(100*e.loaded/e.total);t.next({status:file_transfer_service_interface_1.TRANSFER_STATUS.TRANSFERRING,progress:r,file:null})}};r.validateIsKnownUrlOrCry(e),axios_observable_1.default.request(o).pipe((0,operators_1.catchError)(handle_axios_error_helper_1.HandleAxiosErrorHelper.processError)).subscribe((function(e){t.next({status:file_transfer_service_interface_1.TRANSFER_STATUS.TRANSFER_FINISHED,progress:100,file:new js_p_file_1.JsPFile(e.data)}),t.complete()}),(function(e){console.log("Error while downloading file: ",e),t.error(e)}))}))},r.prototype.checkInternetConnectivity=function(e){return(0,rxjs_1.from)(this.deviceStatusService.isConnectionAvailable()).pipe((0,operators_1.map)((function(r){throw r?e:new error_1.SdkError(error_1.SDK_ERROR_CODES.NO_INTERNET,e)})))},r}(file_transfer_service_interface_1.FileTransferService);exports.AxiosFileTransferService=AxiosFileTransferService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { DownloadStatus, FileTransferService, UploadStatus } from "../../../services/http/file-transfer/file-transfer.service.interface";
3
3
  import { Observable } from "rxjs";
4
4
  import { JsPFile } from "../../js-p-file";
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,r,t,n){return new(t||(t=Promise))((function(o,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function c(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(s,c)}a((n=n.apply(e,r||[])).next())}))},__generator=this&&this.__generator||function(e,r){var t,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(s=0)),s;)try{if(t=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){s=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){s.label=c[1];break}if(6===c[0]&&s.label<o[1]){s.label=o[1],o=c;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(c);break}o[2]&&s.ops.pop(),s.trys.pop();continue}c=r.call(e,s)}catch(e){c=[6,e],n=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FetchAPIFileTransferService=void 0;var file_transfer_service_interface_1=require("../../../services/http/file-transfer/file-transfer.service.interface"),rxjs_1=require("rxjs"),js_p_file_1=require("../../js-p-file"),operators_1=require("rxjs/operators"),device_status_service_interface_1=require("../../../services/device-status.service.interface"),error_1=require("../../../models/error"),fetch_api_http_error_helper_1=require("../fetch-api-http-error-helper"),FetchAPIFileTransferService=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.onCreate=function(){e.prototype.onCreate.call(this),this.deviceStatusService=this.serviceProvider.getService(device_status_service_interface_1.DeviceStatusService)},r.prototype.uploadFile=function(e,r){var t=this;return new rxjs_1.Observable((function(n){t.validateIsKnownUrlOrCry(r),fetch(r,{method:"PUT",body:e.file}).then((function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this.processResponse(e)];case 1:return r.sent(),n.next({status:file_transfer_service_interface_1.TRANSFER_STATUS.TRANSFER_FINISHED,progress:100}),n.complete(),[2]}}))}))})).catch((function(e){n.error(e)}))})).pipe((0,operators_1.catchError)((function(e){return t.checkInternetConnectivity(e)})),(0,operators_1.catchError)(fetch_api_http_error_helper_1.FetchAPIHttpErrorHelper.processError))},r.prototype.downloadFile=function(e){var r=this;return new rxjs_1.Observable((function(t){r.validateIsKnownUrlOrCry(e),fetch(e,{method:"GET"}).then((function(e){return __awaiter(r,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.processResponse(e)];case 1:return r=n.sent(),t.next({status:file_transfer_service_interface_1.TRANSFER_STATUS.TRANSFER_FINISHED,progress:100,file:new js_p_file_1.JsPFile(r)}),t.complete(),[2]}}))}))})).catch((function(e){t.error(e)}))})).pipe((0,operators_1.catchError)((function(e){return r.checkInternetConnectivity(e)})),(0,operators_1.catchError)(fetch_api_http_error_helper_1.FetchAPIHttpErrorHelper.processError))},r.prototype.checkInternetConnectivity=function(e){return(0,rxjs_1.from)(this.deviceStatusService.isConnectionAvailable()).pipe((0,operators_1.map)((function(r){throw r?e:new error_1.SdkError(error_1.SDK_ERROR_CODES.NO_INTERNET,e)})))},r.prototype.processResponse=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(e.status){if(e.status>=400&&e.status<500)throw console.log("HttpsService - Client Error"),e;if(e.status>=500&&e.status<600)throw console.log("HttpsService - Server Error"),e;return 204===e.status?[2,null]:[2,e.clone().blob()]}throw e}))}))},r}(file_transfer_service_interface_1.FileTransferService);exports.FetchAPIFileTransferService=FetchAPIFileTransferService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { AxiosError } from "axios";
3
3
  import { Observable } from "rxjs";
4
4
  import { SDK_ERROR_CODES } from "../../models/error";
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HandleAxiosErrorHelper=void 0;var rxjs_1=require("rxjs"),error_1=require("../../models/error"),HandleAxiosErrorHelper=function(){function r(){}return r.processError=function(e){if(e instanceof error_1.SdkError)return(0,rxjs_1.throwError)(e);var o=r.getErrorCodeFromError(e);if(e.isAxiosError)if(e.response)switch(e.response.status){case 400:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.BAD_REQUEST,e));case 401:return-1!==[error_1.SDK_ERROR_CODES.INVALID_TOKEN,error_1.SDK_ERROR_CODES.TOKEN_EXPIRED].indexOf(o)?(0,rxjs_1.throwError)(new error_1.SdkError(o,e)):(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.USER_UNAUTHORIZED,e));case 403:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.FORBIDDEN,e));case 404:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.NOT_FOUND,e));case 422:return-1!==[error_1.SDK_ERROR_CODES.INVALID_MULTIPLE_IMAGE_SEARCHES,error_1.SDK_ERROR_CODES.INVALID_SEARCH_LANGUAGE,error_1.SDK_ERROR_CODES.INVALID_SEARCH_MODALITY_CONFIG].indexOf(o)?(0,rxjs_1.throwError)(new error_1.SdkError(o,e)):(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.UNPROCESSABLE_ENTITY,e));case 500:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INTERNAL_SERVER_ERROR,e));case 501:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.NOT_IMPLEMENTED,e));case 502:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.BAD_GATEWAY,e));case 503:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.SERVICE_UNAVAILABLE,e));case 504:return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.GATEWAY_TIMEOUT,e))}else if(e.request)return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.COULD_NOT_REACH_SERVER,e));return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.UNKNOWN_ERROR,e))},r.getErrorCodeFromError=function(r){return r.response&&r.response.data?r.response.data.errorCode:error_1.SDK_ERROR_CODES.UNKNOWN_ERROR},r}();exports.HandleAxiosErrorHelper=HandleAxiosErrorHelper;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { Observable } from 'rxjs';
3
3
  import { HttpsClientService, RequestOptions } from '../../../services/http/https-client/https-client.service.interface';
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.AxiosHttpsClientService=void 0;var rxjs_1=require("rxjs"),axios_observable_1=require("axios-observable"),operators_1=require("rxjs/operators"),https_client_service_interface_1=require("../../../services/http/https-client/https-client.service.interface"),handle_axios_error_helper_1=require("../handle-axios-error-helper"),device_status_service_interface_1=require("../../../services/device-status.service.interface"),error_1=require("../../../models/error"),AxiosHttpsClientService=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.onCreate=function(){e.prototype.onCreate.call(this),this.deviceStatusService=this.serviceProvider.getService(device_status_service_interface_1.DeviceStatusService)},r.prototype.get=function(e,r,t,s){var o;return this.requestAsObservable({method:"GET",url:this.addUrlParameters(e,r),headers:t,withCredentials:null!==(o=null==s?void 0:s.withCredentials)&&void 0!==o&&o})},r.prototype.post=function(e,r,t,s,o){var i;return this.requestAsObservable({method:"POST",url:this.addUrlParameters(e,t),data:r,headers:s,withCredentials:null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i})},r.prototype.patch=function(e,r,t,s,o){var i;return this.requestAsObservable({method:"PATCH",url:this.addUrlParameters(e,t),data:r,headers:s,withCredentials:null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i})},r.prototype.delete=function(e,r,t,s,o){var i;return this.requestAsObservable({method:"DELETE",url:this.addUrlParameters(e,t),data:r,headers:s,withCredentials:null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i})},r.prototype.put=function(e,r,t,s,o){var i;return this.requestAsObservable({method:"PUT",url:this.addUrlParameters(e,t),data:r,headers:s,withCredentials:null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i})},r.prototype.requestAsObservable=function(e){var r=this;return(0,rxjs_1.defer)((function(){return r.validateIsKnownUrlOrCry(e.url),axios_observable_1.default.request(e)})).pipe((0,operators_1.map)((function(e){return r.processResponse(e)})),(0,operators_1.catchError)((function(e){return r.checkInternetConnectivity(e)})),(0,operators_1.catchError)(handle_axios_error_helper_1.HandleAxiosErrorHelper.processError))},r.prototype.processResponse=function(e){if(e.status){if(e.status>=400&&e.status<500)throw console.log("HttpsService - Client Error"),e;if(e.status>=500&&e.status<600)throw console.log("HttpsService - Server Error"),e;return e.data}throw e},r.prototype.checkInternetConnectivity=function(e){return(0,rxjs_1.from)(this.deviceStatusService.isConnectionAvailable()).pipe((0,operators_1.map)((function(r){throw r?e:new error_1.SdkError(error_1.SDK_ERROR_CODES.NO_INTERNET,e)})))},r}(https_client_service_interface_1.HttpsClientService);exports.AxiosHttpsClientService=AxiosHttpsClientService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { Observable } from 'rxjs';
3
3
  import { HttpsClientService, RequestOptions } from '../../../services/http/https-client/https-client.service.interface';
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FetchAPIHttpsClientService=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),fetch_api_http_error_helper_1=require("../fetch-api-http-error-helper"),https_client_service_interface_1=require("../../../services/http/https-client/https-client.service.interface"),device_status_service_interface_1=require("../../../services/device-status.service.interface"),error_1=require("../../../models/error"),FetchAPIHttpsClientService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.onCreate=function(){e.prototype.onCreate.call(this),this.deviceStatusService=this.serviceProvider.getService(device_status_service_interface_1.DeviceStatusService)},t.prototype.get=function(e,t,r,s){return this.requestAsObservable(this.addUrlParameters(e,t),__assign({method:"GET",credentials:(null==s?void 0:s.withCredentials)?"include":"same-origin"},r&&{headers:Object.entries(r)}))},t.prototype.post=function(e,t,r,s,i){return t instanceof FormData&&delete s["Content-Type"],this.requestAsObservable(this.addUrlParameters(e,r),__assign(__assign({method:"POST",credentials:(null==i?void 0:i.withCredentials)?"include":"same-origin"},t&&{body:this.createBody(t)}),s&&{headers:Object.entries(s)}))},t.prototype.patch=function(e,t,r,s,i){return this.requestAsObservable(this.addUrlParameters(e,r),__assign(__assign({method:"PATCH",credentials:(null==i?void 0:i.withCredentials)?"include":"same-origin"},t&&{body:this.createBody(t)}),s&&{headers:Object.entries(s)}))},t.prototype.delete=function(e,t,r,s,i){return this.requestAsObservable(this.addUrlParameters(e,r),__assign(__assign({method:"DELETE",credentials:(null==i?void 0:i.withCredentials)?"include":"same-origin"},t&&{body:this.createBody(t)}),s&&{headers:Object.entries(s)}))},t.prototype.put=function(e,t,r,s,i){return this.requestAsObservable(this.addUrlParameters(e,r),__assign(__assign({method:"PUT",credentials:(null==i?void 0:i.withCredentials)?"include":"same-origin"},t&&{body:this.createBody(t)}),s&&{headers:Object.entries(s)}))},t.prototype.requestAsObservable=function(e,t){var r=this;return new rxjs_1.Observable((function(s){r.validateIsKnownUrlOrCry(e),fetch(e,t).then((function(e){s.next(e),s.complete()})).catch((function(e){s.error(e)}))})).pipe((0,operators_1.mergeMap)((function(e){return r.processResponse(e)})),(0,operators_1.catchError)((function(e){return r.checkInternetConnectivity(e)})),(0,operators_1.catchError)(fetch_api_http_error_helper_1.FetchAPIHttpErrorHelper.processError))},t.prototype.processResponse=function(e){if(e.status){if(e.status>=400&&e.status<500)throw console.log("HttpsService - Client Error"),e;if(e.status>=500&&e.status<600)throw console.log("HttpsService - Server Error"),e;return 204===e.status?(0,rxjs_1.of)({}):(0,rxjs_1.from)(e.clone().json())}throw e},t.prototype.checkInternetConnectivity=function(e){return(0,rxjs_1.from)(this.deviceStatusService.isConnectionAvailable()).pipe((0,operators_1.map)((function(t){throw t?e:new error_1.SdkError(error_1.SDK_ERROR_CODES.NO_INTERNET,e)})))},t.prototype.createBody=function(e){return"string"==typeof e||e instanceof FormData?e:JSON.stringify(e)},t}(https_client_service_interface_1.HttpsClientService);exports.FetchAPIHttpsClientService=FetchAPIHttpsClientService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { OauthHttpsService } from "../../services/http/oauth-https.service";
3
3
  /**
4
4
  * Keycloak-specific implementation of the OauthHttpsService for
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.JSOauthKeycloakHttpsService=void 0;var oauth_https_service_1=require("../../services/http/oauth-https.service"),JSOauthKeycloakHttpsService=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(oauth_https_service_1.OauthHttpsService);exports.JSOauthKeycloakHttpsService=JSOauthKeycloakHttpsService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { PFile } from "../models/p-file";
3
3
  export declare class JsPFile extends PFile {
4
4
  file: Blob;
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.JsPFile=void 0;var p_file_1=require("../models/p-file"),JsPFile=function(t){function e(e){var o=t.call(this)||this;return o.file=e,o}return __extends(e,t),e.prototype.supportsMultipartUpload=function(){return!0},e.prototype.appendToFormData=function(t,e){e.append(t,this.file)},e}(p_file_1.PFile);exports.JsPFile=JsPFile;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { Observable } from 'rxjs';
3
3
  import { OauthSessionService, OauthStatus, OauthLoginConfig } from '../../services/session/oauth-session.service';
4
4
  import { ServiceProvider } from '../../services/service-provider';
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.JSOauthPublicApiSessionService=void 0;var rxjs_1=require("rxjs"),oauth_session_service_1=require("../../services/session/oauth-session.service"),operators_1=require("rxjs/operators"),https_client_service_interface_1=require("../../services/http/https-client/https-client.service.interface"),user_1=require("../../models/user"),error_1=require("../../models/error"),user_token_1=require("../../models/user-token"),JSOauthPublicApiSessionService=function(e){function t(t){var r=e.call(this,t)||this;return r._status={accessToken:void 0,accessTokenExpiration:void 0,accessTokenCreateDate:void 0,authenticated:!1,refreshToken:void 0},r.status$=new rxjs_1.BehaviorSubject(r._status),r}return __extends(t,e),t.prototype.onCreate=function(){e.prototype.onCreate.call(this),this.httpsClientService=this.serviceProvider.getService(https_client_service_interface_1.HttpsClientService)},t.prototype.getStatus=function(){return this.status$.asObservable()},t.prototype.login=function(e){var t=this;if(e.activeSession)return this.reuseActiveSession(e.activeSession),this.sessionSetup();if(e.apiKey){var r=this.authenticationConfig;return this.httpsClientService.post("".concat(r.partiumApiBaseUrl,"/auth/"),null,null,{Authorization:"Bearer ".concat(r.apiKey)}).pipe((0,operators_1.catchError)((function(e){return t.handleError(e)})),(0,operators_1.tap)((function(e){t.updateTokenFromResponse(e)})),(0,operators_1.mergeMap)((function(){return t.sessionSetup()})))}return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INVALID_LOGIN_CONFIG,null,"Neither an api key nor an active session was provided"))},t.prototype.refresh=function(){var e=this;if(this._status&&this._status.refreshToken){var t=this.authenticationConfig;return this.httpsClientService.post("".concat(t.partiumApiBaseUrl,"/auth/refresh"),{refresh_token:this._status.refreshToken},null).pipe((0,operators_1.catchError)((function(t){return e.handleError(t)})),(0,operators_1.map)((function(t){e.updateTokenFromResponse(t)})))}return this.resetToken(),this.sessionEnded(),(0,rxjs_1.throwError)(this.createSdkError(null,"Could not refresh because there was no refresh token"))},t.prototype.logout=function(){var e=this;if(this._status&&this._status.refreshToken){var t=this.authenticationConfig;return this.httpsClientService.post("".concat(t.partiumApiBaseUrl,"/auth/revoke"),{access_token:this._status.accessToken,refresh_token:this._status.refreshToken},null).pipe((0,operators_1.catchError)((function(t){return e.handleError(t)})),(0,operators_1.map)((function(){e.resetToken(),e.sessionEnded()})))}return this.resetToken(),this.sessionEnded(),(0,rxjs_1.of)(void 0)},t.prototype.reuseActiveSession=function(e){this.updateToken(e)},t.prototype.updateTokenFromResponse=function(e){var t=new Date(Date.now()+1e3*e.expires_in_secs);this.updateToken({accessToken:e.token,accessTokenExpiration:t,accessTokenCreateDate:new Date,authenticated:!0,refreshToken:e.refresh_token})},t.prototype.updateToken=function(e){this.tokenUpdated(e.accessToken,e.accessTokenExpiration);var t=(0,user_token_1.createUserToken)(e.accessToken),r=user_1.User.createFromToken(t);this.setUser(r),this._status=e,this.status$.next(this._status)},t.prototype.resetToken=function(){this.tokenUpdated(null,null),this.setUser(null),this._status={accessToken:void 0,accessTokenExpiration:void 0,accessTokenCreateDate:void 0,authenticated:!1,refreshToken:void 0},this.status$.next(this._status)},t.prototype.handleError=function(e){return e instanceof error_1.SdkError?e.code===error_1.SDK_ERROR_CODES.BAD_REQUEST&&e.detail&&e.detail.response&&e.detail.response.data&&"unauthorized_client"===e.detail.response.data.error?(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INVALID_AUTH_CONFIG,e.detail,"Unauthorized Keycloak client.")):(0,rxjs_1.throwError)(e):(0,rxjs_1.throwError)(this.createSdkError(e))},t.prototype.createSdkError=function(e,t){return new error_1.SdkError(error_1.SDK_ERROR_CODES.OAUTH_ERROR,e,t)},t}(oauth_session_service_1.OauthSessionService);exports.JSOauthPublicApiSessionService=JSOauthPublicApiSessionService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { OauthAuthenticationConfig } from "../../models/auth-config";
3
3
  /**
4
4
  * Authentication configuration for Javascript-Keycloak-OAuth authentication.
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)};return function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.JsOauthKeycloakAuthenticationConfig=void 0;var auth_config_1=require("../../models/auth-config"),JsOauthKeycloakAuthenticationConfig=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.getKeycloakLoginUrl=function(){return"".concat(this.baseUrl,"/auth/realms/").concat(this.realm,"/protocol/openid-connect/token")},o.prototype.getKeycloakLoginBody=function(){return{client_id:this.clientId,grant_type:"password",scope:"openid"}},o.prototype.getKeycloakLoginHeader=function(){return{"Content-type":"application/x-www-form-urlencoded"}},o}(auth_config_1.OauthAuthenticationConfig);exports.JsOauthKeycloakAuthenticationConfig=JsOauthKeycloakAuthenticationConfig;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { Observable } from 'rxjs';
3
3
  import { OauthSessionService, OauthStatus, OauthLoginConfig } from '../../services/session/oauth-session.service';
4
4
  import { ServiceProvider } from '../../services/service-provider';
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.JSOauthKeycloakSessionService=void 0;var rxjs_1=require("rxjs"),querystring=require("query-string"),oauth_session_service_1=require("../../services/session/oauth-session.service"),operators_1=require("rxjs/operators"),https_client_service_interface_1=require("../../services/http/https-client/https-client.service.interface"),user_1=require("../../models/user"),error_1=require("../../models/error"),base64=require("base-64"),user_token_1=require("../../models/user-token"),JSOauthKeycloakSessionService=function(e){function r(r){var t=e.call(this,r)||this;return t._status={accessToken:void 0,accessTokenExpiration:void 0,accessTokenCreateDate:void 0,authenticated:!1,refreshToken:void 0},t.status$=new rxjs_1.BehaviorSubject(t._status),t}return __extends(r,e),r.prototype.onCreate=function(){e.prototype.onCreate.call(this),this.httpsClientService=this.serviceProvider.getService(https_client_service_interface_1.HttpsClientService)},r.prototype.getStatus=function(){return this.status$.asObservable()},r.prototype.login=function(e){var r=this;if(e.activeSession)return this.reuseActiveSession(e.activeSession),this.sessionSetup();if(e.apiKey){var t=this.authenticationConfig,o=this.parseApiKey(e.apiKey),s=o.email,n=o.password,i=t.realm,a=t.clientId,c="".concat(t.baseUrl,"/auth/realms/").concat(i,"/protocol/openid-connect/token"),u=querystring.stringify({client_id:a,grant_type:"password",scope:"openid",username:s,password:n});return this.httpsClientService.post(c,u,null,{"Content-type":"application/x-www-form-urlencoded"}).pipe((0,operators_1.catchError)((function(e){return r.handleError(e)})),(0,operators_1.tap)((function(e){if(e.error)throw console.error(e.error,e.error_description),r.resetToken(),r.sessionEnded(),r.createSdkError(e);r.updateTokenFromResponse(e)})),(0,operators_1.mergeMap)((function(){return r.sessionSetup()})))}return(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INVALID_LOGIN_CONFIG,null,"Neither an api key nor an active session was provided"))},r.prototype.refresh=function(){var e=this;if(this._status&&this._status.refreshToken){var r=this.authenticationConfig,t=this.authenticationConfig,o=t.realm,s=t.clientId,n="".concat(r.baseUrl,"/auth/realms/").concat(o,"/protocol/openid-connect/token"),i=querystring.stringify({client_id:s,grant_type:"refresh_token",refresh_token:this._status.refreshToken});return this.httpsClientService.post(n,i,null,{"Content-type":"application/x-www-form-urlencoded"}).pipe((0,operators_1.catchError)((function(r){return e.handleError(r)})),(0,operators_1.map)((function(r){if(r.error)throw console.error(r.error,r.error_description),e.resetToken(),e.sessionEnded(),e.createSdkError(r);e.updateTokenFromResponse(r)})))}return this.resetToken(),this.sessionEnded(),(0,rxjs_1.throwError)(this.createSdkError(null,"Could not refresh because there was no refresh token"))},r.prototype.logout=function(){var e=this;if(this._status&&this._status.refreshToken){var r=this.authenticationConfig,t=this.authenticationConfig,o=t.realm,s=t.clientId,n="".concat(r.baseUrl,"/auth/realms/").concat(o,"/protocol/openid-connect/logout"),i=querystring.stringify({client_id:s,grant_type:"refresh_token",refresh_token:this._status.refreshToken});return this.httpsClientService.post(n,i,null,{"Content-type":"application/x-www-form-urlencoded"}).pipe((0,operators_1.catchError)((function(r){return e.handleError(r)})),(0,operators_1.map)((function(){e.resetToken(),e.sessionEnded()})))}return this.resetToken(),this.sessionEnded(),(0,rxjs_1.of)(void 0)},r.prototype.reuseActiveSession=function(e){this.updateToken(e)},r.prototype.updateTokenFromResponse=function(e){var r=new Date(Date.now()+1e3*e.expires_in);this.updateToken({accessToken:e.access_token,accessTokenExpiration:r,accessTokenCreateDate:new Date,authenticated:!0,refreshToken:e.refresh_token})},r.prototype.updateToken=function(e){this.tokenUpdated(e.accessToken,e.accessTokenExpiration);var r=(0,user_token_1.createUserToken)(e.accessToken),t=user_1.User.createFromToken(r);this.setUser(t),this._status=e,this.status$.next(this._status)},r.prototype.resetToken=function(){this.tokenUpdated(null,null),this.setUser(null),this._status={accessToken:void 0,accessTokenExpiration:void 0,accessTokenCreateDate:void 0,authenticated:!1,refreshToken:void 0},this.status$.next(this._status)},r.prototype.handleError=function(e){return e instanceof error_1.SdkError?e.code===error_1.SDK_ERROR_CODES.BAD_REQUEST&&e.detail&&e.detail.response&&e.detail.response.data&&"unauthorized_client"===e.detail.response.data.error?(0,rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INVALID_AUTH_CONFIG,e.detail,"Unauthorized Keycloak client.")):(0,rxjs_1.throwError)(e):(0,rxjs_1.throwError)(this.createSdkError(e))},r.prototype.createSdkError=function(e,r){return new error_1.SdkError(error_1.SDK_ERROR_CODES.OAUTH_ERROR,e,r)},r.prototype.parseApiKey=function(e){try{var r=JSON.parse(base64.decode(e));if(!r.email||!r.password)throw"Invalid API Key";return r}catch(e){throw new error_1.SdkError(error_1.SDK_ERROR_CODES.INVALID_API_KEY_FORMAT,null,"The provided api-key has an invalid format.")}},r}(oauth_session_service_1.OauthSessionService);exports.JSOauthKeycloakSessionService=JSOauthKeycloakSessionService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { DeviceInfo } from '../models/device-info';
3
3
  import { DeviceStatusService } from '../services/device-status.service.interface';
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function u(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(u,a)}c((r=r.apply(e,n||[])).next())}))},__generator=this&&this.__generator||function(e,n){var t,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=n.call(e,u)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebDeviceStatusService=void 0;var device_info_1=require("../models/device-info"),device_status_service_interface_1=require("../services/device-status.service.interface"),pro_enterprise_1=require("@ua-parser-js/pro-enterprise"),WebDeviceStatusService=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return __extends(n,e),n.prototype.isConnectionAvailable=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,window.navigator.onLine]}))}))},n.prototype.getDeviceInfo=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,t,r,i,o,u,a,c,l,s;return __generator(this,(function(v){return e=new pro_enterprise_1.UAParser,n=e.getResult(),[2,new device_info_1.DeviceInfo({manufacturer:null===(t=null==n?void 0:n.device)||void 0===t?void 0:t.vendor,model:null===(r=null==n?void 0:n.device)||void 0===r?void 0:r.model,os:null===(i=null==n?void 0:n.os)||void 0===i?void 0:i.name,osVersion:null===(o=null==n?void 0:n.os)||void 0===o?void 0:o.version,deviceType:this.getDeviceType(n),deviceLanguage:window.navigator.language,appVersionCode:window.appVersion,appVersionName:window.appVersion,browserName:null===(u=null==n?void 0:n.browser)||void 0===u?void 0:u.name,browserVersion:null===(a=null==n?void 0:n.browser)||void 0===a?void 0:a.version,cpuArchitecture:null===(c=null==n?void 0:n.cpu)||void 0===c?void 0:c.architecture,engineName:null===(l=null==n?void 0:n.engine)||void 0===l?void 0:l.name,engineVersion:null===(s=null==n?void 0:n.engine)||void 0===s?void 0:s.version})]}))}))},n.prototype.getDeviceType=function(e){var n;switch(null===(n=null==e?void 0:e.device)||void 0===n?void 0:n.type){case"mobile":return"mobile";case"tablet":return"tablet";default:return"desktop"}},n}(device_status_service_interface_1.DeviceStatusService);exports.WebDeviceStatusService=WebDeviceStatusService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { JsPFile } from './js-p-file';
3
3
  import { FileService } from '../services/file.service.interface';
4
4
  import { PFileType } from '../models/p-file';
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},e(r,t)};return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,r,t,n){return new(t||(t=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function c(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?i(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(a,c)}u((n=n.apply(e,r||[])).next())}))},__generator=this&&this.__generator||function(e,r){var t,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(t=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=r.call(e,a)}catch(e){c=[6,e],n=0}finally{t=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebFileService=void 0;var file_service_interface_1=require("../services/file.service.interface"),p_file_1=require("../models/p-file"),error_1=require("../models/error"),WebFileService=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getMIMEFromBlob=function(e){return __awaiter(this,void 0,void 0,(function(){var r,t,n,i;return __generator(this,(function(o){switch(o.label){case 0:return t=Uint8Array.bind,[4,e.arrayBuffer()];case 1:for(r=new(t.apply(Uint8Array,[void 0,o.sent(),0,4])),n="",i=0;i<r.length;i++)n+=r[i].toString(16);switch(n){case"89504e47":return[2,"image/png"];case"47494638":return[2,"image/gif"];case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":case"ffd8ffe3":case"ffd8ffe8":return[2,"image/jpeg"];default:return[2,e.type||"unknown"]}return[2]}}))}))},r.prototype.getFileType=function(e){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getMIMEFromBlob(e.file)];case 1:switch(r=t.sent(),r.replace(/\/.*/,"")){case"image":return[2,p_file_1.PFileType.IMAGE];case"text":return[2,p_file_1.PFileType.TEXT];default:return[2,p_file_1.PFileType.UNKNOWN]}return[2]}}))}))},r.prototype.getImageDimensions=function(e){var r=URL.createObjectURL(e.file);return new Promise((function(e,t){var n=new Image;n.onload=function(){e([n.width,n.height])},n.onerror=function(){t(new error_1.SdkError(error_1.SDK_ERROR_CODES.INVALID_FILE_TYPE,{},"Invalid file type"))},n.src=r}))},r}(file_service_interface_1.FileService);exports.WebFileService=WebFileService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { ServiceProvider } from "../services/service-provider";
3
3
  import { KeyPrefixParams, LocalStorageService } from "../services/local-storage.service.interface";
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function u(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebIndexedDBService=void 0;var local_storage_service_interface_1=require("../services/local-storage.service.interface"),idb_keyval_1=require("idb-keyval"),WebIndexedDBService=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.setItem=function(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){return void 0===r&&(r={userEmail:!0,organizationName:!0}),__generator(this,(function(n){return[2,(0,idb_keyval_1.set)(this.getPrefixedKey(e,r),t)]}))}))},t.prototype.setItems=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var r=this;return void 0===t&&(t={userEmail:!0,organizationName:!0}),__generator(this,(function(n){return[2,(0,idb_keyval_1.setMany)(e.map((function(e){return[r.getPrefixedKey(e[0],t),e[1]]})))]}))}))},t.prototype.getItem=function(e){return __awaiter(this,arguments,void 0,(function(e,t){return void 0===t&&(t={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,(0,idb_keyval_1.get)(this.getPrefixedKey(e,t))]}))}))},t.prototype.getItems=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var r=this;return void 0===t&&(t={userEmail:!0,organizationName:!0}),__generator(this,(function(n){return[2,(0,idb_keyval_1.getMany)(e.map((function(e){return r.getPrefixedKey(e,t)})))]}))}))},t.prototype.getAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,(0,idb_keyval_1.entries)()]}))}))},t.prototype.deleteItem=function(e){return __awaiter(this,arguments,void 0,(function(e,t){return void 0===t&&(t={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,(0,idb_keyval_1.del)(this.getPrefixedKey(e,t))]}))}))},t.prototype.deleteItems=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var r=this;return void 0===t&&(t={userEmail:!0,organizationName:!0}),__generator(this,(function(n){return[2,(0,idb_keyval_1.delMany)(e.map((function(e){return r.getPrefixedKey(e,t)})))]}))}))},t.prototype.hasItem=function(e){return __awaiter(this,arguments,void 0,(function(e,t){return void 0===t&&(t={userEmail:!0,organizationName:!0}),__generator(this,(function(r){switch(r.label){case 0:return[4,this.getItem(e,t)];case 1:return[2,null!==r.sent()]}}))}))},t}(local_storage_service_interface_1.LocalStorageService);exports.WebIndexedDBService=WebIndexedDBService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { ServiceProvider } from "../services/service-provider";
3
3
  import { KeyPrefixParams, LocalStorageService } from "../services/local-storage.service.interface";
4
4
  /**
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function u(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}c((n=n.apply(t,e||[])).next())}))},__generator=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebLocalStorageService=void 0;var local_storage_service_interface_1=require("../services/local-storage.service.interface"),WebLocalStorageService=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.setItem=function(t,e){return __awaiter(this,arguments,void 0,(function(t,e,r){return void 0===r&&(r={userEmail:!0,organizationName:!0}),__generator(this,(function(n){return this.setItemSync(t,e,r),[2]}))}))},e.prototype.setItemSync=function(t,e,r){void 0===r&&(r={userEmail:!0,organizationName:!0}),localStorage.setItem(this.getPrefixedKey(t,r),e)},e.prototype.setItems=function(t){return __awaiter(this,arguments,void 0,(function(t,e){var r,n=this;return void 0===e&&(e={userEmail:!0,organizationName:!0}),__generator(this,(function(o){switch(o.label){case 0:return r=t.map((function(t){return n.setItem(t[0],t[1],e)})),[4,Promise.all(r)];case 1:return o.sent(),[2]}}))}))},e.prototype.setItemsSync=function(t,e){void 0===e&&(e={userEmail:!0,organizationName:!0});for(var r=0,n=t;r<n.length;r++){var o=n[r];this.setItemSync(o[0],o[1],e)}},e.prototype.getItem=function(t){return __awaiter(this,arguments,void 0,(function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,this.getItemSync(t,e)]}))}))},e.prototype.getItemSync=function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),localStorage.getItem(this.getPrefixedKey(t,e))},e.prototype.getItems=function(t){return __awaiter(this,arguments,void 0,(function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,this.getItemsSync(t,e)]}))}))},e.prototype.getItemsSync=function(t,e){var r=this;return void 0===e&&(e={userEmail:!0,organizationName:!0}),t.map((function(t){return r.getItemSync(t,e)}))},e.prototype.getAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getAllSync()]}))}))},e.prototype.getAllSync=function(){return Object.entries(localStorage)},e.prototype.deleteItem=function(t){return __awaiter(this,arguments,void 0,(function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,this.deleteItemSync(t,e)]}))}))},e.prototype.deleteItemSync=function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),localStorage.removeItem(this.getPrefixedKey(t,e))},e.prototype.deleteItems=function(t){return __awaiter(this,arguments,void 0,(function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,this.deleteItemsSync(t,e)]}))}))},e.prototype.deleteItemsSync=function(t,e){void 0===e&&(e={userEmail:!0,organizationName:!0});for(var r=0,n=t;r<n.length;r++){var o=n[r];this.deleteItemSync(o,e)}},e.prototype.hasItem=function(t){return __awaiter(this,arguments,void 0,(function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),__generator(this,(function(r){return[2,this.hasItemSync(t,e)]}))}))},e.prototype.hasItemSync=function(t,e){return void 0===e&&(e={userEmail:!0,organizationName:!0}),!!this.getItemSync(t,e)},e}(local_storage_service_interface_1.LocalStorageService);exports.WebLocalStorageService=WebLocalStorageService;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * Objects that can be retrieved from a backend and transformed from API-response
4
4
  */
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.APIObject=void 0;var APIObject=function(){function e(){}return e.fromAPIResponse=function(e){throw new Error("from-api-response-function not implemented for deriving class.")},e}();exports.APIObject=APIObject;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { BaseServiceClass } from "../services/base.service";
3
3
  import { OauthHttpsService } from "../services/http/oauth-https.service";
4
4
  import { OauthSessionService } from "../services/session/oauth-session.service";
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";var __extends=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.OauthApiKeyAuthenticationConfig=exports.OauthAuthenticationConfig=exports.AuthenticationConfig=void 0;var js_oauth_keycloak_https_service_1=require("../integration-defaults/http/js-oauth-keycloak-https.service"),js_oauth_api_key_session_service_1=require("../integration-defaults/session/js-oauth-api-key-session.service"),js_oauth_keycloak_session_service_1=require("../integration-defaults/session/js-oauth-keycloak-session.service"),AuthenticationConfig=function(){};exports.AuthenticationConfig=AuthenticationConfig;var OauthAuthenticationConfig=function(t){function e(e){var i=t.call(this)||this;return i.oauthHttpsService=js_oauth_keycloak_https_service_1.JSOauthKeycloakHttpsService,i.oauthSessionService=js_oauth_keycloak_session_service_1.JSOauthKeycloakSessionService,i.clientId="partium-customer-integration",i.redirectUrl="",i.baseUrl="https://login.partium.io",i.realm="partium",Object.assign(i,e),i}return __extends(e,t),e}(AuthenticationConfig);exports.OauthAuthenticationConfig=OauthAuthenticationConfig;var OauthApiKeyAuthenticationConfig=function(t){function e(e){var i=t.call(this)||this;return i.oauthHttpsService=js_oauth_keycloak_https_service_1.JSOauthKeycloakHttpsService,i.oauthSessionService=js_oauth_api_key_session_service_1.JSOauthPublicApiSessionService,i.partiumApiBaseUrl="https://api.partium.io",Object.assign(i,e),i}return __extends(e,t),e}(AuthenticationConfig);exports.OauthApiKeyAuthenticationConfig=OauthApiKeyAuthenticationConfig;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * Base request data for getting paginated data.
4
4
  */
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { BaseResponse } from '..';
3
3
  /**
4
4
  * Base response for getting paginated data.
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * An error in a response.
4
4
  */
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { BasePaginatedRequest } from "./base-paginated-request";
3
3
  /**
4
4
  * Default pagination context for paginated requests.
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * Info about device and app installation.
4
4
  * Used to emit an event log when a new search session is started and the user logs in.
@@ -1,2 +1,2 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DeviceInfo=void 0;var DeviceInfo=function(e){var t=this;e&&Object.entries(e).forEach((function(e){var i=e[0],n=e[1],o=getSanitizedValue(n);t[i]="deviceType"===i?o||"unknown":o}))};exports.DeviceInfo=DeviceInfo;var getSanitizedValue=function(e){if("string"==typeof e)return e};
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  export declare enum SDK_ERROR_CODES {
3
3
  NO_INTERNET = "NO_INTERNET",// currently there is no internet connection available
4
4
  COULD_NOT_REACH_SERVER = "COULD_NOT_REACH_SERVER",// the server could not be reached