@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/data/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 o=Object.getOwnPropertyDescriptor(r,t);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,s,o)}: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("./models/part"),exports),__exportStar(require("./models/document"),exports),__exportStar(require("./models/assembly-hierarchy-node"),exports),__exportStar(require("./models/assembly-hierarchy-node-breadcrumb"),exports),__exportStar(require("./models/image"),exports),__exportStar(require("./models/attribute"),exports),__exportStar(require("./models/csa-request"),exports),__exportStar(require("./models/csa-request-status"),exports),__exportStar(require("./models/filter-key"),exports),__exportStar(require("./models/filter-option-value"),exports),__exportStar(require("./models/shopping-cart"),exports),__exportStar(require("./models/multiple-expert-searches"),exports),__exportStar(require("./models/csa-request-search"),exports),__exportStar(require("./models/announcement"),exports),__exportStar(require("./models/inquiry"),exports),__exportStar(require("./models/mounting-location"),exports),__exportStar(require("./models/part-enrichment-data"),exports),__exportStar(require("./services/part.service"),exports),__exportStar(require("./services/part-enrichment.service"),exports),__exportStar(require("./services/related-parts.service"),exports),__exportStar(require("./services/assembly-hierarchy-nodes.service"),exports),__exportStar(require("./services/part-attribute.service"),exports),__exportStar(require("./services/customer-service-assistance.service"),exports),__exportStar(require("./services/filter.service"),exports),__exportStar(require("./services/shopping-cart.service"),exports),__exportStar(require("./services/inquiry.service"),exports),__exportStar(require("./services/announcement.service"),exports),__exportStar(require("./services/data.service"),exports);
@@ -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
  export declare enum ANNOUNCEMENTS_STATUS {
4
4
  PUBLISHED = "PUBLISHED",
@@ -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 n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])},n(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.Announcement=exports.AnnouncementRecipient=exports.ANNOUNCEMENT_TYPE=exports.ANNOUNCEMENTS_STATUS=void 0;var ANNOUNCEMENTS_STATUS,ANNOUNCEMENT_TYPE,core_1=require("../../core");!function(n){n.PUBLISHED="PUBLISHED",n.UNPUBLISHED="UNPUBLISHED",n.UNPUBLISHED_CHANGES="UNPUBLISHED CHANGES"}(ANNOUNCEMENTS_STATUS||(exports.ANNOUNCEMENTS_STATUS=ANNOUNCEMENTS_STATUS={})),function(n){n.APP="app",n.COMPANY="company"}(ANNOUNCEMENT_TYPE||(exports.ANNOUNCEMENT_TYPE=ANNOUNCEMENT_TYPE={}));var AnnouncementRecipient=function(n){function t(t){var e=n.call(this)||this;return Object.assign(e,t),e}return __extends(t,n),t.fromAPIResponse=function(n){return new t({partiumId:n.uuid,name:n.name})},t}(core_1.APIObject);exports.AnnouncementRecipient=AnnouncementRecipient;var Announcement=function(n){function t(t){var e=n.call(this)||this;return Object.assign(e,t),e}return __extends(t,n),t.fromAPIResponse=function(n){return new t({status:n.status,title:n.title,contents:n.contents,timestamp:n.timestamp,terminatesAt:n.terminatesAt,announcementType:n.type,recipients:n.recipients,includeSubOrgs:n.includeSubOrgs,sendEmails:n.sendEmails})},t}(core_1.APIObject);exports.Announcement=Announcement;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { i18nString, APIObject } from "../../core";
3
3
  export declare class AssemblyHierarchyNodeBreadcrumb extends APIObject {
4
4
  partiumId: string;
@@ -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)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssemblyHierarchyNodeBreadcrumb=void 0;var core_1=require("../../core"),AssemblyHierarchyNodeBreadcrumb=function(e){function r(r){var t=e.call(this)||this;return Object.assign(t,r),t}return __extends(r,e),r.serialize=function(e){var r={};return r.partiumId=e.partiumId,e.name&&(r.name=e.name.getAsObject()),JSON.stringify(r)},r.deserialize=function(e){var t={},n=JSON.parse(e);return t.partiumId=n.partiumId,t.name=new core_1.i18nString(n.name),new r(t)},r.fromAPIResponse=function(e){return new r({partiumId:e.uuid,name:new core_1.i18nString(e.name)})},r}(core_1.APIObject);exports.AssemblyHierarchyNodeBreadcrumb=AssemblyHierarchyNodeBreadcrumb;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { i18nString, APIObject } from "../../core";
3
3
  import { AssemblyHierarchyNodeBreadcrumb } from "./assembly-hierarchy-node-breadcrumb";
4
4
  export declare class AssemblyHierarchyNode extends APIObject {
@@ -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)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssemblyHierarchyNode=void 0;var core_1=require("../../core"),assembly_hierarchy_node_breadcrumb_1=require("./assembly-hierarchy-node-breadcrumb"),AssemblyHierarchyNode=function(e){function r(r){var t=e.call(this)||this;return Object.assign(t,r),t}return __extends(r,e),r.prototype.updateNode=function(e){Object.assign(this,e)},r.fromAPIResponse=function(e){return new r({partiumId:e.uuid,externalId:e.external_id,externalPayload:e.metadata,name:new core_1.i18nString(e.name),partTypeCount:e.part_type_count,parentId:e.parent&&e.parent.uuid,breadcrumbs:e.tree?e.tree.map((function(e){return assembly_hierarchy_node_breadcrumb_1.AssemblyHierarchyNodeBreadcrumb.fromAPIResponse(e)})):[],childCount:e.children?e.children.length:0})},r}(core_1.APIObject);exports.AssemblyHierarchyNode=AssemblyHierarchyNode;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { i18nString, Organization, APIObject } from '../../core';
3
3
  import { DATA_ORIGIN } from './part';
4
4
  export interface AttributeFromDataAPI {
@@ -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(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Attribute=exports.AttributeType=void 0;var AttributeType,core_1=require("../../core"),part_1=require("./part");!function(t){t.KVP="kvp",t.PER_ORG="per_org"}(AttributeType||(exports.AttributeType=AttributeType={}));var Attribute=function(t){function n(n){var e=t.call(this)||this;return Object.assign(e,n),e}return __extends(n,t),n.prototype.updateAttribute=function(t){Object.assign(this,t)},n.prototype.getAttributeWithValue=function(t){return __assign(__assign({},this),{value:t})},n.fromAPIResponse=function(t,e){var r;if(void 0===e&&(e=part_1.DATA_ORIGIN.DATA_API),e===part_1.DATA_ORIGIN.DATA_API){var i=t,a=i.uuid,o=i.metadata,s=i.value,u=i.external_id,_=i.organization,p=i.type,c=i.options;return new n(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({},a&&{partiumId:a}),o&&{metadata:o}),{name:new core_1.i18nString(i.name)}),u&&{externalId:u}),s&&{value:s instanceof Object?new core_1.i18nString(s):s.toString()}),_&&{organization:new core_1.Organization({partiumId:_.uuid,name:_.name,displayName:_.name})}),p&&{type:p}),{options:c?c.map((function(t){return{organization:new core_1.Organization({partiumId:t.organization?t.organization.uuid:null,name:t.organization?t.organization.name:null,displayName:t.organization?t.organization.name:null}),value:new core_1.i18nString(t.value),expansion:new core_1.i18nString(t.expansion)}})):[]}))}var g=t;return new n({name:new core_1.i18nString((r={},r[g.language]=g.label,r)),options:g.values.map((function(t){var n;return{value:new core_1.i18nString((n={},n[g.language]=t,n))}}))})},n}(core_1.APIObject);exports.Attribute=Attribute;
@@ -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
  export interface ICSARequestSearch {
4
4
  searchSessionId: string;
@@ -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)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CSARequestSearch=void 0;var core_1=require("../../core"),general_helper_1=require("../../core/utils/general-helper"),CSARequestSearch=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return __extends(t,e),t.fromAPIResponse=function(e){var r=(0,general_helper_1.snakeToCamelCase)(e);return new t(__assign({},r))},t}(core_1.APIObject);exports.CSARequestSearch=CSARequestSearch;
@@ -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
  export declare enum CSA_REQUEST_STATUS {
4
4
  NEW = "new",
@@ -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)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.CSARequestStatus=exports.CSA_REQUEST_STATUS=void 0;var CSA_REQUEST_STATUS,core_1=require("../../core");!function(t){t.NEW="new",t.OPENED="opened",t.RESOLVED="resolved",t.NOT_RESOLVED="not_resolved"}(CSA_REQUEST_STATUS||(exports.CSA_REQUEST_STATUS=CSA_REQUEST_STATUS={}));var CSARequestStatus=function(t){function e(e){var r=t.call(this)||this;return Object.assign(r,e),r}return __extends(e,t),e.serialize=function(t){var e={};return e.timestamp=t.timestamp,e.confirmedPart=t.confirmedPart,e.status=t.status,JSON.stringify(e)},e.fromAPIResponse=function(t){return new e({timestamp:t.timestamp,status:t.status,confirmedPart:t.confirmed_part?t.confirmed_part:null})},e}(core_1.APIObject);exports.CSARequestStatus=CSARequestStatus;
@@ -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/models/api-object';
3
3
  import { KvpHardFilter } from '../../find/models/search-filter';
4
4
  import { TextSearchQueries } from '../../find/services/search/text-search.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 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 a(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CSARequest=exports.RequestType=void 0;var RequestType,api_object_1=require("../../core/models/api-object"),i18n_string_1=require("../../core/models/i18n-string"),search_filter_1=require("../../find/models/search-filter"),text_search_service_1=require("../../find/services/search/text-search.service"),assembly_hierarchy_node_1=require("./assembly-hierarchy-node"),assembly_hierarchy_node_breadcrumb_1=require("./assembly-hierarchy-node-breadcrumb"),part_1=require("./part");!function(e){e.CONFIRMATION="confirmation",e.HELP="help"}(RequestType||(exports.RequestType=RequestType={}));var CSARequest=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return __extends(t,e),t.fromAPIResponse=function(e){var r,a,s,n,i=e.request_data&&e.request_data.text_query;return!i&&(null===(s=e.request_data)||void 0===s?void 0:s.text_search)&&(i="".concat(e.request_data.text_search.semantic_text||""," ").concat(e.request_data.text_search.exact_text||"").trim()),new t(__assign(__assign({partiumId:e.request_id,cartId:e.cart_uuid,inquiryId:e.inquiry_id,requestType:e.request_data.part?RequestType.CONFIRMATION:RequestType.HELP,organizationId:e.organization_id,created:e.created,contactEmail:e.contact_email,language:e.language,status:e.status,statusTimestamp:e.status_timestamp,confirmedPart:e.confirmed_part,part:e.request_data&&e.request_data.part&&e.request_data.part.part_id?new part_1.Part({partiumId:e.request_data.part.part_id,externalId:e.request_data.part.part_external_id,name:new i18n_string_1.i18nString((r={},r[e.language]=e.request_data.part.part_name,r)),dataOrigin:part_1.DATA_ORIGIN.PARTIAL}):null,message:e.request_data&&e.request_data.user_input,quantity:e.quantity,additionalAssetIds:e.request_data&&e.request_data.media_assets,searchSessionId:e.session_id,textQuery:i},(null===(n=e.request_data)||void 0===n?void 0:n.text_search)?{textQueries:(a={},a[text_search_service_1.TEXT_SEARCH_TYPE.SEMANTIC]=e.request_data.text_search.semantic_text||"",a[text_search_service_1.TEXT_SEARCH_TYPE.EXACT]=e.request_data.text_search.exact_text||"",a)}:{}),{queryImageAssetId:e.request_data&&e.request_data.query_image_asset,resultParts:e.request_data&&e.request_data.result_list?e.request_data.result_list.map((function(t){var r;return new part_1.Part({partiumId:t.part_id,externalId:t.part_external_id,name:new i18n_string_1.i18nString((r={},r[e.language]=t.part_name,r)),dataOrigin:part_1.DATA_ORIGIN.PARTIAL})})):null,assemblies:e.request_data&&e.request_data.assemblies?e.request_data.assemblies.map((function(t){var r;return new assembly_hierarchy_node_1.AssemblyHierarchyNode({partiumId:t.assembly_id,externalId:t.assembly_external_id,name:new i18n_string_1.i18nString((r={},r[e.language]=t.assembly_name,r)),breadcrumbs:t.breadcrumbs.map((function(t){var r;return new assembly_hierarchy_node_breadcrumb_1.AssemblyHierarchyNodeBreadcrumb({partiumId:null,name:new i18n_string_1.i18nString((r={},r[e.language]=t,r))})}))})})):null,confirmedBomContext:!0==!!e.confirmed_part&&e.request_data&&e.request_data.assemblies?e.request_data.assemblies.map((function(e){return e.assembly_id})):[],kvpHardFilters:e.request_data&&e.request_data.hard_filters?e.request_data.hard_filters.map((function(e){return new search_filter_1.KvpHardFilter(e.label,e.label,e.values)})):null}))},t}(api_object_1.APIObject);exports.CSARequest=CSARequest;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  export declare class Document {
3
3
  partiumId: string;
4
4
  externalId: string;
@@ -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.Document=void 0;var Document=function(){function t(t){Object.assign(this,t)}return t.prototype.updateDocument=function(t){Object.assign(this,t)},t.prototype.updateName=function(t){this.name=t},t}();exports.Document=Document;
@@ -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
  export interface FilterKeyFromAPI {
4
4
  uuid: string;
@@ -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)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.FilterKey=void 0;var core_1=require("../../core"),FilterKey=function(t){function e(e){var r=t.call(this)||this;return Object.assign(r,e),r}return __extends(e,t),e.fromAPIResponse=function(t){return new e({partiumId:t.uuid,name:t.name})},e}(core_1.APIObject);exports.FilterKey=FilterKey;
@@ -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
  export interface FilterOptionValueFromAPI {
4
4
  uuid: string;
@@ -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.FilterOptionValue=void 0;var core_1=require("../../core"),FilterOptionValue=function(t){function e(e){var r=t.call(this)||this;return Object.assign(r,e),r}return __extends(e,t),e.fromAPIResponse=function(t){return new e({partiumId:t.uuid,value:t.value,partCount:t.part_count})},e}(core_1.APIObject);exports.FilterOptionValue=FilterOptionValue;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * The projection of the part 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 '../../core';
3
3
  import { PartData } from './part-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 { APIObject, BACKEND_SERVICE } from '../../core';
3
3
  export interface ImageFromFindAPI {
4
4
  partiumId: string;
@@ -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.Image=void 0;var core_1=require("../../core"),Image=function(e){function r(r){var t=e.call(this)||this;return Object.assign(t,r),t}return __extends(r,e),r.fromDataAPIResponse=function(e,t){void 0===t&&(t=core_1.BACKEND_SERVICE.DATA);var o=e;return new r({assetId:o.uuid,origin:t,availableSizes:Object.keys(o.urls),downloadUrls:o.urls,expireAt:o.expireAt||o.expire_at,name:o.name})},r.fromFindAPIResponse=function(e,t){void 0===t&&(t=core_1.BACKEND_SERVICE.FIND);var o=e;return new r({assetId:o.partiumId,origin:t,availableSizes:Object.keys(o.urls),downloadUrls:o.urls,expireAt:o.expireAt||o.expire_at})},r.fromAPIResponse=function(e,t){var o;return void 0===t&&(t=core_1.BACKEND_SERVICE.DATA),t===core_1.BACKEND_SERVICE.FIND?new r({assetId:(o=e).partiumId,origin:t,availableSizes:Object.keys(o.urls),downloadUrls:o.urls,expireAt:o.expireAt||o.expire_at}):new r({assetId:(o=e).uuid,origin:t,availableSizes:Object.keys(o.urls),downloadUrls:o.urls,expireAt:o.expireAt||o.expire_at})},r}(core_1.APIObject);exports.Image=Image;
@@ -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
  export declare enum INQUIRY_STATUS {
4
4
  NEW = "new",
@@ -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)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.Inquiry=exports.InquiryStatusResponse=exports.INQUIRY_STATUS=void 0;var INQUIRY_STATUS,core_1=require("../../core");!function(t){t.NEW="new",t.IN_PROGRESS="in_progress",t.PENDING_RESPONSE="pending_response",t.SENT_TO_SALES="sent_to_sales",t.CANCELED="canceled"}(INQUIRY_STATUS||(exports.INQUIRY_STATUS=INQUIRY_STATUS={}));var InquiryStatusResponse=function(t){function e(e){var r=t.call(this)||this;return Object.assign(r,e),r}return __extends(e,t),e.fromAPIResponse=function(t){return new e({status:t.status,timestamp:t.timestamp})},e}(core_1.APIObject);exports.InquiryStatusResponse=InquiryStatusResponse;var Inquiry=function(t){function e(e){var r=t.call(this)||this;return Object.assign(r,e),r}return __extends(e,t),e.fromAPIResponse=function(t){return new e({inquiryId:t.inquiry_id,contact:t.contact,organizationName:t.organization_name,created:t.created,updated:t.updated,cart:t.cart,offerRequested:t.offer_requested,offerRequestDate:t.offer_request_date,status:t.status,languageUi:t.language_ui,ecrsCompleted:t.ecrs_completed,ecrsTotal:t.ecrs_total,statusTimestamp:t.status_timestamp})},e}(core_1.APIObject);exports.Inquiry=Inquiry;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { i18nString, APIObject } from '../../core';
3
3
  export interface PartMountingLocationInfoFromDataAPI {
4
4
  total_count: number;
@@ -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(n,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},t(n,o)};return function(n,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=n}t(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartMountingLocation=exports.PartMountingLocationInfo=void 0;var core_1=require("../../core"),PartMountingLocationInfo=function(t){function n(n){var o=t.call(this)||this;return Object.assign(o,n),o}return __extends(n,t),n.fromAPIResponse=function(t){var o;return new n({totalCount:t.total_count,mountingLocations:(null===(o=t.mounting_locations)||void 0===o?void 0:o.map((function(t){return PartMountingLocation.fromAPIResponse(t)})))||[]})},n}(core_1.APIObject);exports.PartMountingLocationInfo=PartMountingLocationInfo;var PartMountingLocation=function(t){function n(n){var o=t.call(this)||this;return Object.assign(o,n),o}return __extends(n,t),n.fromAPIResponse=function(t){var o;return new n({uuid:t.uuid,partiumId:t.uuid,externalId:t.external_id,name:new core_1.i18nString(t.name),quantity:t.quantity,children:(null===(o=t.children)||void 0===o?void 0:o.map((function(t){return n.fromAPIResponse(t)})))||[]})},n}(core_1.APIObject);exports.PartMountingLocation=PartMountingLocation;
@@ -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/models/api-object';
3
3
  import { CSARequestSearch } from './csa-request-search';
4
4
  export declare class MultipleExpertSearches extends APIObject {
@@ -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 o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.MultipleExpertSearches=void 0;var api_object_1=require("../../core/models/api-object"),csa_request_search_1=require("./csa-request-search"),MultipleExpertSearches=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return __extends(t,e),t.fromAPIResponse=function(e){var r=e.searches.map((function(e){return csa_request_search_1.CSARequestSearch.fromAPIResponse(e)}));return new t({searchLimitReached:e.search_limit_reached,searches:r})},t}(api_object_1.APIObject);exports.MultipleExpertSearches=MultipleExpertSearches;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  /**
3
3
  * The image of the part 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 { APIObject } from '../../core';
3
3
  import { PartEnrichmentSummary, PartEnrichmentSummaryFromDataAPI } from './part';
4
4
  export declare enum PART_ENRICHMENT_STATUS {
@@ -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(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},t(r,e)};return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartEnrichmentData=exports.PART_ENRICHMENT_STATUS=void 0;var PART_ENRICHMENT_STATUS,core_1=require("../../core");!function(t){t.ENRICHMENT_NOT_REQUESTED="ENRICHMENT_NOT_REQUESTED",t.ENRICHMENT_IN_PROGRESS="ENRICHMENT_IN_PROGRESS",t.ENRICHMENT_FINISHED="ENRICHMENT_FINISHED",t.ENRICHMENT_ERROR="ENRICHMENT_ERROR",t.ENRICHMENT_IMPORTED="ENRICHMENT_IMPORTED"}(PART_ENRICHMENT_STATUS||(exports.PART_ENRICHMENT_STATUS=PART_ENRICHMENT_STATUS={}));var PartEnrichmentData=function(t){function r(r){var e=t.call(this)||this;return Object.assign(e,r),e}return __extends(r,t),r.fromAPIResponse=function(t){var e,n;return new r({status:t.status,summary:null!==(n=null===(e=t.summary)||void 0===e?void 0:e.map((function(t){return{key:new core_1.i18nString(t.key),values:t.values.map((function(t){return new core_1.i18nString(t)}))}})))&&void 0!==n?n:[],upis:t.UPIs,lastErrorTimestamp:new Date(t.last_error_timestamp)})},r}(core_1.APIObject);exports.PartEnrichmentData=PartEnrichmentData;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { i18nString, Organization, APIObject } from '../../core';
3
3
  import { Attribute, AttributeFromDataAPI, AttributeFromFindAPI } from './attribute';
4
4
  import { Image, ImageFromDataAPI, ImageFromFindAPI } from './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";var __extends=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Part=exports.DATA_ORIGIN=exports.DUPLICATE_DATA_AREA=exports.SUBSTITUTE_ROLE=exports.RELATION_TYPE=exports.PartMountingLocation=void 0;var RELATION_TYPE,SUBSTITUTE_ROLE,DUPLICATE_DATA_AREA,DATA_ORIGIN,core_1=require("../../core"),attribute_1=require("./attribute"),image_1=require("./image"),mounting_location_1=require("./mounting-location"),part_enrichment_data_1=require("./part-enrichment-data"),mounting_location_2=require("./mounting-location");Object.defineProperty(exports,"PartMountingLocation",{enumerable:!0,get:function(){return mounting_location_2.PartMountingLocation}}),function(t){t.DUPLICATE="duplicate",t.SUBSTITUTE="substitute",t.EQUIVALENT="equivalent",t.NOT_RELATED="not_related"}(RELATION_TYPE||(exports.RELATION_TYPE=RELATION_TYPE={})),function(t){t.SUCCESSOR="successor",t.PREDECESSOR="predecessor"}(SUBSTITUTE_ROLE||(exports.SUBSTITUTE_ROLE=SUBSTITUTE_ROLE={})),function(t){t.IMAGE="IMAGE",t.NAME="NAME",t.DATA="DATA"}(DUPLICATE_DATA_AREA||(exports.DUPLICATE_DATA_AREA=DUPLICATE_DATA_AREA={})),function(t){t[t.SEARCH_RESULT=0]="SEARCH_RESULT",t[t.PARTIAL=0]="PARTIAL",t[t.SERVER=2]="SERVER",t[t.DATA_API=2]="DATA_API",t[t.FIND_API=3]="FIND_API"}(DATA_ORIGIN||(exports.DATA_ORIGIN=DATA_ORIGIN={}));var Part=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return __extends(e,t),e.prototype.updatePart=function(t){Object.assign(this,t)},e.prototype.updateName=function(t){this.name=t},e.prototype.updateDescription=function(t){this.description=t},e.fromAPIResponse=function(t,n,r){var a;if(void 0===n&&(n=DATA_ORIGIN.DATA_API),n===DATA_ORIGIN.FIND_API){var i=(u=t).mountingLocationsCount,o=u.nameLanguage||r,A=u.attributes;return new e(__assign(__assign(__assign(__assign({partiumId:u.partiumId,externalId:u.id,name:new core_1.i18nString((a={},a[o]=u.name,a)),images:u.images?u.images.map((function(t){return image_1.Image.fromFindAPIResponse(t,core_1.BACKEND_SERVICE.DATA)})):[],dataOrigin:DATA_ORIGIN.FIND_API},A&&{attributes:u.attributes.map((function(t){return attribute_1.Attribute.fromAPIResponse(t,n)}))}),{mountingLocationsCount:i||null,mountingLocations:null}),u.duplicateType&&{duplicateType:this.getDuplicateType(u.duplicateType)}),{highlights:u.highlights?u.highlights:null,relatedPartsSummary:u.relatedPartsSummary?u.relatedPartsSummary:null}))}var u,_=(u=t).organization,s=(A=u.attributes,u.mounting_locations);return new e(__assign(__assign(__assign({partiumId:u.uuid,externalId:u.external_id,externalPayload:u.metadata,name:new core_1.i18nString(u.name),images:u.images?u.images.filter((function(t){return"display"===t.type})).map((function(t){return image_1.Image.fromDataAPIResponse(t,core_1.BACKEND_SERVICE.DATA)})):[],dataOrigin:DATA_ORIGIN.DATA_API},_&&{organization:new core_1.Organization({partiumId:_.uuid,name:_.name,displayName:_.name})}),A&&{attributes:u.attributes.map((function(t){return attribute_1.Attribute.fromAPIResponse(t,n)}))}),{mountingLocationsCount:u.total_mounting_locations_count||0,mountingLocations:(null==s?void 0:s.map((function(t){return mounting_location_1.PartMountingLocation.fromAPIResponse(t)})))||[],summary:u.summary?{summaryId:u.summary.summary_id,summary:u.summary.summary.map((function(t){return{key:new core_1.i18nString(t.key),values:t.values.map((function(t){return new core_1.i18nString(t)}))}}))}:null,enrichment:u.enrichment?part_enrichment_data_1.PartEnrichmentData.fromAPIResponse(u.enrichment):null,highlights:null}))},e.fromRelatedPartsAPIResponse=function(t){var n=e.fromAPIResponse(null==t?void 0:t.part,DATA_ORIGIN.DATA_API);return n.relationType=t.type,t.created&&(n.relationCreatedAt=new Date(t.created)),"anchor_part"===t.part_role?n.partRole=SUBSTITUTE_ROLE.PREDECESSOR:"related_part"===t.part_role&&(n.partRole=SUBSTITUTE_ROLE.SUCCESSOR),n},e.getDuplicateType=function(t){switch(t){case"IMAGE_NAME_AND_DATA":return[DUPLICATE_DATA_AREA.IMAGE,DUPLICATE_DATA_AREA.NAME,DUPLICATE_DATA_AREA.DATA];case"NAME_AND_DATA":return[DUPLICATE_DATA_AREA.NAME,DUPLICATE_DATA_AREA.DATA];case"IMAGE":return[DUPLICATE_DATA_AREA.IMAGE]}},e}(core_1.APIObject);exports.Part=Part;
@@ -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/models/api-object';
3
3
  import { PartWithNullable } from '../../user-data/models/part-with-nullable';
4
4
  export declare enum SHOPPING_CART_STATUS {
@@ -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.ShoppingCart=exports.SHOPPING_CART_STATUS=void 0;var SHOPPING_CART_STATUS,api_object_1=require("../../core/models/api-object");!function(t){t.OFFER_REQUESTED="offer_requested",t.OPEN="open"}(SHOPPING_CART_STATUS||(exports.SHOPPING_CART_STATUS=SHOPPING_CART_STATUS={}));var ShoppingCart=function(t){function e(e){var r=t.call(this)||this;return Object.assign(r,e),r}return __extends(e,t),e.fromAPIResponse=function(t){var r=t.status_timestamp,o=t.organization_id,n=t.organization_name,i=t.user_id,a=t.uuid;return new e({created:t.created,statusTimestamp:r,organizationId:o,organizationName:n,owner:t.owner,status:t.status,userId:i,partiumId:a})},e.fromPartAPIResponse=function(t){return{partiumId:t.item_id,quantity:t.quantity,created:t.created,bomContext:t.bom_context}},e}(api_object_1.APIObject);exports.ShoppingCart=ShoppingCart;
@@ -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, ServiceProvider } from '../../core';
4
4
  import { Announcement, AnnouncementRecipient } from '../models/announcement';
@@ -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)}}(),__decorate=this&&this.__decorate||function(e,n,t,r){var o,c=arguments.length,i=c<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,n,t,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(c<3?o(i):c>3?o(n,t,i):o(n,t))||i);return c>3&&i&&Object.defineProperty(n,t,i),i};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AnnouncementServiceImpl=void 0;var rxjs_1=require("rxjs"),core_1=require("../../core"),announcement_1=require("../models/announcement"),AnnouncementServiceImpl=function(e){function n(n){var t=e.call(this,n)||this;return t.PAGINATION_PAGE_SIZE=500,t}return __extends(n,e),n.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},n.prototype.publish=function(){return this.httpsService.post("announcements/publish",{},[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(e){return announcement_1.Announcement.fromAPIResponse(e)})))},n.prototype.unpublish=function(){return this.httpsService.post("announcements/unpublish",{},[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(e){return announcement_1.Announcement.fromAPIResponse(e)})))},n.prototype.getRecipients=function(e){var n=this,t="announcements/recipients";return this.httpsService.get(t,[{page_size:e}],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.expand)((function(r){var o=!(!r.pagination||!r.pagination.next),c=r.pagination.next&&r.pagination.next.split("?"),i=c&&new URLSearchParams(c[1]).get("cursor");return o&&i?n.httpsService.get(t,[{paginator:"cursor",page_size:e||n.PAGINATION_PAGE_SIZE,cursor:i}],core_1.BACKEND_SERVICE.DATA):rxjs_1.EMPTY})),(0,rxjs_1.reduce)((function(e,n){return e.concat(n.results)}),[]),(0,rxjs_1.takeWhile)((function(e){return null!==e}),!0),(0,rxjs_1.map)((function(e){return(e||[]).map((function(e){return announcement_1.AnnouncementRecipient.fromAPIResponse(e)}))})))},n.prototype.getDraft=function(){return this.httpsService.get("announcements/draft",[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(e){return announcement_1.Announcement.fromAPIResponse(e)})))},n.prototype.updateDraft=function(e,n,t,r,o,c){return void 0===r&&(r=[]),void 0===o&&(o=!1),void 0===c&&(c=!1),this.httpsService.put("announcements/draft",{title:e,contents:n,terminatesAt:t,recipients:r,includeSubOrgs:o,sendEmails:c},[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(e){return announcement_1.Announcement.fromAPIResponse(e)})))},n.prototype.getAnnouncement=function(){return this.httpsService.get("announcements/inbox",[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(e){return e.map((function(e){return announcement_1.Announcement.fromAPIResponse(e)}))})))},n=__decorate([(0,core_1.InjectionIdentifier)("AnnouncementService")],n)}(core_1.BaseService);exports.AnnouncementServiceImpl=AnnouncementServiceImpl;
@@ -1,4 +1,4 @@
1
- // Copyright © 2022-2025 Partium, Inc. DBA Partium
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  import { BaseService, ServiceProvider, PaginatedRequestService } from '../../core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { AssemblyHierarchyNode } from '../models/assembly-hierarchy-node';
@@ -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)}}(),__decorate=this&&this.__decorate||function(e,r,t,o){var s,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,t,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(i<3?s(n):i>3?s(r,t,n):s(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n},__spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||2===arguments.length)for(var o,s=0,i=r.length;s<i;s++)!o&&s in r||(o||(o=Array.prototype.slice.call(r,0,s)),o[s]=r[s]);return e.concat(o||Array.prototype.slice.call(r))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssemblyHierarchyNodesServiceImpl=void 0;var core_1=require("../../core"),rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),assembly_hierarchy_node_1=require("../models/assembly-hierarchy-node"),AssemblyHierarchyNodesServiceImpl=function(e){function r(r){var t=e.call(this,r)||this;return t.DOWNLOAD_PAGE_SIZE=250,t.PAGINATION_PAGE_SIZE=25,t}return __extends(r,e),r.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},r.prototype.getAssemblyHierarchyRootNodes=function(e,r){return void 0===r&&(r="root"),this.getAssemblyHierarchyNodesByParentId(null,e,r)},r.prototype.getAssemblyHierarchyNodesByParentId=function(e,r,t){void 0===t&&(t="root");var o=[];return o.push({max_depth:1}),o.push({tree_order:t}),e?o.push({assembly_uuid:e}):o.push({root_nodes:!0}),r&&o.push({paginator:"cursor"}),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(assembly_hierarchy_node_1.AssemblyHierarchyNode.fromAPIResponse,this.httpsService,"assemblies",core_1.BACKEND_SERVICE.DATA,o,this.PAGINATION_PAGE_SIZE,r)},r.prototype.searchAssemblyHierarchyNodesByText=function(e,r,t,o,s,i){void 0===i&&(i="root");var n=[];return n.push({search:e}),n.push({tree_order:i}),r&&n.push({assembly_uuid:r}),t&&n.push({lang:t}),void 0!==o&&n.push({max_depth:o}),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(assembly_hierarchy_node_1.AssemblyHierarchyNode.fromAPIResponse,this.httpsService,"assemblies",core_1.BACKEND_SERVICE.DATA,n,this.PAGINATION_PAGE_SIZE,s)},r.prototype.getAssemblyHierarchyNode=function(e,r){return void 0===r&&(r="root"),this.getAssemblyHierarchyNodes([e],r).pipe((0,operators_1.map)((function(e){return e[0]})))},r.prototype.getAssemblyHierarchyNodes=function(e,r){var t=this;return void 0===r&&(r="root"),this.loadAssemblyHierarchyNodesFromServer(e,r).pipe((0,operators_1.map)((function(r){return t.orderAssemblyHierarchyNodes(r,e)})),(0,operators_1.catchError)((function(e){return console.log("Error while loading assembly hierarchy node-information from server.",e),(0,rxjs_1.throwError)(e)})))},r.prototype.loadAssemblyHierarchyNodesFromServer=function(e,r){var t=this;void 0===r&&(r="root");var o,s=1,i=new rxjs_1.Subject;return(0,rxjs_1.defer)((function(){return t.requestPaginatedAssemblyHierarchyNodes(e,s,o,!0,r)})).pipe((0,operators_1.map)((function(e){if(!e.pagination.page_size||e.pagination.items_count){var r=e.pagination.next&&e.pagination.next.split("?");r?(o=new URLSearchParams(r[1]).get("cursor"),i.next()):i.complete()}else{var t=e.pagination.page_size,n=e.pagination.items_count,a=Math.ceil(n/t);s>=a?i.complete():s++<a&&setTimeout((function(){i.next()}))}return e.results})),(0,operators_1.repeatWhen)((function(){return i.asObservable()})),(0,operators_1.reduce)((function(e,r){return __spreadArray(__spreadArray([],e,!0),r,!0)})),(0,operators_1.map)((function(e){return e.map((function(e){return assembly_hierarchy_node_1.AssemblyHierarchyNode.fromAPIResponse(e)}))})))},r.prototype.requestPaginatedAssemblyHierarchyNodes=function(e,r,t,o,s){void 0===o&&(o=!0),void 0===s&&(s="root");var i=[];return i.push({page_size:this.DOWNLOAD_PAGE_SIZE}),i.push({tree_order:s}),r&&i.push({page:r}),o&&i.push({paginator:"cursor"}),t&&i.push({cursor:t}),this.httpsService.post("assemblies/many",{uuids:e},i,core_1.BACKEND_SERVICE.DATA)},r.prototype.orderAssemblyHierarchyNodes=function(e,r){for(var t=[],o=function(r){t.push(e.find((function(e){return e&&e.partiumId===r})))},s=0,i=r;s<i.length;s++){o(i[s])}return t},r=__decorate([(0,core_1.InjectionIdentifier)("AssemblyHierarchyNodesService")],r)}(core_1.BaseService);exports.AssemblyHierarchyNodesServiceImpl=AssemblyHierarchyNodesServiceImpl;
@@ -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(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 i(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}(),__decorate=this&&this.__decorate||function(e,r,t,i){var o,n=arguments.length,s=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,r,t,i);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(n<3?o(s):n>3?o(r,t,s):o(r,t))||s);return n>3&&s&&Object.defineProperty(r,t,s),s};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CSAHelperService=void 0;var lodash_1=require("lodash"),rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),injection_identifier_1=require("../../core/decorators/injection-identifier"),base_service_1=require("../../core/services/base.service"),search_filter_1=require("../../find/models/search-filter"),search_filter_service_1=require("../../find/services/search-filter.service"),assembly_hierarchy_nodes_service_1=require("./assembly-hierarchy-nodes.service"),CSAHelperService=function(e){function r(r){return e.call(this,r)||this}return __extends(r,e),r.prototype.onCreate=function(){this.searchFilterService=this.serviceProvider.getService(search_filter_service_1.SearchFilterServiceImpl),this.assemblyHierarchyNodesService=this.serviceProvider.getService(assembly_hierarchy_nodes_service_1.AssemblyHierarchyNodesServiceImpl)},r.prototype.getHierarchyFilterNodesForUI=function(){var e,r,t,i=this,o=this.searchFilterService.getSearchFilters().pipe((0,operators_1.first)()),n=this.searchFilterService.getExcludedHierarchyFilterNodes().pipe((0,operators_1.first)());return(0,rxjs_1.forkJoin)([o,n]).pipe((0,operators_1.mergeMap)((function(o){var n=o[0],s=o[1];e=[],r=[],t=s;var c=n.find((function(e){return e instanceof search_filter_1.HierarchyPartiumIdFilter}));c&&e.push.apply(e,c.include);for(var a=0,l=Object.values(t);a<l.length;a++)for(var u=function(t){r.filter((function(e){return e===t.partiumId})).length<1&&r.push(t.partiumId),e=e.filter((function(e){return e!==t.partiumId}))},p=0,f=l[a].breadcrumbs;p<f.length;p++){u(f[p])}for(var _=[],h=0,d=r;h<d.length;h++){var v=d[h];_.push(i.loadAllChildren(v))}return _.length>0?(0,rxjs_1.forkJoin)(_):(0,rxjs_1.of)([])})),(0,operators_1.mergeMap)((function(o){for(var n=0,s=o;n<s.length;n++)for(var c=0,a=s[n];c<a.length;c++){var l=a[c];Object.keys(t).includes(l.partiumId)||r.includes(l.partiumId)||e.includes(l.partiumId)||e.push(l.partiumId)}return i.assemblyHierarchyNodesService.getAssemblyHierarchyNodes(e).pipe((0,operators_1.map)((function(e){return e.filter((function(e){return null!=e}))})))})),(0,operators_1.map)((function(e){return(0,lodash_1.sortBy)(e,(function(e){return e.breadcrumbs.length}))})))},r.prototype.loadAllChildren=function(e){var r=new rxjs_1.Subject,t=this.assemblyHierarchyNodesService.getAssemblyHierarchyNodesByParentId(e);return t.loadInitialPage(!0).pipe((0,operators_1.first)(),(0,operators_1.mergeMap)((function(e){return e.moreResultsAvailable()?(0,rxjs_1.defer)((function(){return t.loadMore()})).pipe((0,operators_1.first)(),(0,operators_1.tap)((function(e){e.moreResultsAvailable()?setTimeout((function(){r.next()})):r.complete()})),(0,operators_1.repeatWhen)((function(){return r.asObservable()}))):(0,rxjs_1.of)(e)})),(0,operators_1.map)((function(e){return e.items})))},r=__decorate([(0,injection_identifier_1.InjectionIdentifier)("CSAHelperService")],r)}(base_service_1.BaseService);exports.CSAHelperService=CSAHelperService;
@@ -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 { PaginatedRequestService, EventContext, BaseLoginInitService, PartiumConfig } from '../../core';
4
4
  import { Organization } from '../../core/models/organization';
@@ -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)},__decorate=this&&this.__decorate||function(e,t,r,s){var i,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(n<3?i(o):n>3?i(t,r,o):i(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomerServiceAssistanceServiceImpl=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),core_1=require("../../core"),injection_identifier_1=require("../../core/decorators/injection-identifier"),https_service_interface_1=require("../../core/services/http/https.service.interface"),text_search_service_1=require("../../find/services/search/text-search.service"),csa_request_1=require("../models/csa-request"),csa_request_status_1=require("../models/csa-request-status"),multiple_expert_searches_1=require("../models/multiple-expert-searches"),general_helper_1=require("../../core/utils/general-helper"),assembly_hierarchy_nodes_service_1=require("./assembly-hierarchy-nodes.service"),csa_helper_service_1=require("./csa-helper.service"),CustomerServiceAssistanceServiceImpl=function(e){function t(t){var r=e.call(this,t)||this;return r.MAX_RESULT_LIST_LENGTH=10,r}return __extends(t,e),t.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(https_service_interface_1.HttpsService),this.csaHelperService=this.serviceProvider.getService(csa_helper_service_1.CSAHelperService),this.assemblyHierarchyNodeService=this.serviceProvider.getService(assembly_hierarchy_nodes_service_1.AssemblyHierarchyNodesServiceImpl),this.logService=this.serviceProvider.getService(core_1.LogServiceImpl)},t.prototype.init=function(t,r,s){return e.prototype.init.call(this,t,r,s),(0,rxjs_1.of)(void 0)},t.prototype.sendCSARequest=function(e,t,r,s,i,n){return void 0===i&&(i=[]),this.sendRequestInternal(t,s,e,i,r,n)},t.prototype.resolveCSARequest=function(e,t){return this.httpsService.post("requests/".concat(e,"/actions/resolve/"),{confirmed_part:t},null,https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return new csa_request_status_1.CSARequestStatus(__assign({confirmedPart:e.confirmed_part},e))})))},t.prototype.sendRequestInternal=function(e,t,r,s,i,n){var o,a,c=this,u=!!i,_=u&&(null===(o=i.searchInput)||void 0===o?void 0:o.hierarchyFilters)?this.assemblyHierarchyNodeService.getAssemblyHierarchyNodes(null===(a=i.searchInput)||void 0===a?void 0:a.hierarchyFilters):(0,rxjs_1.of)([]);return(0,rxjs_1.forkJoin)([this.currentOrganization$.pipe((0,operators_1.take)(1)),_]).pipe((0,operators_1.mergeMap)((function(o){var a,_,p,l,d=o[0],v=o[1];if(!(null===(a=d.featureFlags)||void 0===a?void 0:a.ecrEnabled))return(0,rxjs_1.throwError)(new core_1.SdkError(core_1.SDK_ERROR_CODES.USER_UNAUTHORIZED,null,"Customer Service Assistance is disabled for this organization."));var h=u?c.prepareSearchQueriesObj(i.searchInput.searchQueries):null,S=u?d.featureFlags.hybridTextSearchEnabled:null,f=u?__assign(__assign(__assign({searchSessionId:null===(_=null==i?void 0:i.searchInput)||void 0===_?void 0:_.searchSessionId},S&&{textQuery:null==h?void 0:h.semanticText}),!S&&{textQueries:h}),{queryImageAssetId:null===(p=null==i?void 0:i.searchInput)||void 0===p?void 0:p.searchImageAssetId,attributeFilters:null===(l=null==i?void 0:i.searchInput)||void 0===l?void 0:l.attributeFilters,resultList:null==i?void 0:i.searchResults}):{};return c.sendBackendRequest(__assign({language:e,part:t,additionalAssets:s,nodes:v,organizationId:d.partiumId,userInput:r},f)).pipe((0,operators_1.tap)((function(o){var a,u=s&&s.length>0?s.map((function(e){return e.referenceId})):s;c.logService.logEvent(new core_1.EventLog({version:core_1.EVENTLOG_VERSIONS.V_2_0_0,organizationId:d.partiumId,interface:(null==n?void 0:n.eventInterface)||core_1.INTERFACE.API_ACCESS,event:core_1.EVENT.ECR_FORM_SUBMIT,data:{partiumId:null==t?void 0:t.partiumId,searchSessionId:null===(a=null==i?void 0:i.searchInput)||void 0===a?void 0:a.searchSessionId,ecrType:t?core_1.ECR_TYPE.ASK_FOR_CONFIRMATION:core_1.ECR_TYPE.ASK_FOR_HELP,expertRequestId:o.request_id,userInput:r,languageUi:null==n?void 0:n.languageUi,languageSearch:e,mediaAssets:u}})).subscribe((function(){}),(function(e){console.log("Error while sending log event: ",e)}))})))})))},t.prototype.createLogEventRequestContent=function(e,t,r,s,i){return void 0===s&&(s=[]),{requestId:e,language:t,mediaAssets:s.map((function(e){return e.referenceId})),userInput:r,partPartiumId:i?i.partiumId:void 0}},t.prototype.sendBackendRequest=function(e){var t=e.organizationId,r=e.language,s=e.part,i=e.userInput,n=e.additionalAssets,o=void 0===n?[]:n,a=e.searchSessionId,c=void 0===a?null:a,u=e.nodes,_=void 0===u?[]:u,p=e.attributeFilters,l=void 0===p?{}:p,d=e.textQuery,v=void 0===d?null:d,h=e.textQueries,S=void 0===h?null:h,f=e.queryImageAssetId,E=void 0===f?null:f,g=e.resultList,m=void 0===g?[]:g;return this.httpsService.post("requests/",{session_id:c||null,organization_id:t,language:r,request_data:this.createRequestData(s,r,_,l,v,S,E,m,o,i)},null,https_service_interface_1.BACKEND_SERVICE.CSA)},t.prototype.createRequestData=function(e,t,r,s,i,n,o,a,c,u){var _,p=((_={})[text_search_service_1.TEXT_SEARCH_TYPE.SEMANTIC]="semantic_text",_[text_search_service_1.TEXT_SEARCH_TYPE.EXACT]="exact_text",_);return __assign(__assign(__assign(__assign(__assign(__assign({},e?{part:{part_id:e.partiumId,part_external_id:e.externalId,part_name:e.name.getText(t)||""}}:{}),{assemblies:r.map((function(e){return{assembly_id:e.partiumId,assembly_external_id:e.externalId,assembly_name:e.name.getText(t),breadcrumbs:e.breadcrumbs.map((function(e){return e.name.getText(t)}))}})),hard_filters:Object.keys(s).map((function(e){return{label:e,values:s[e]}}))}),i||""===i?{text_query:i}:{}),n?{text_search:Object.keys(text_search_service_1.TEXT_SEARCH_TYPE).reduce((function(e,t){var r;return __assign(__assign({},e),((r={})[p[text_search_service_1.TEXT_SEARCH_TYPE[t]]]=n[text_search_service_1.TEXT_SEARCH_TYPE[t]]||"",r))}),{})}:{}),o?{query_image_asset:o}:{}),{result_list:(a||[]).map((function(e){return{part_id:e.partiumId,part_external_id:e.externalId,part_name:e.name.getText(t)||""}})).slice(0,this.MAX_RESULT_LIST_LENGTH),media_assets:c.map((function(e){return e.referenceId})),user_input:u})},t.prototype.getHierarchyFilterNodesForUI=function(){return this.csaHelperService.getHierarchyFilterNodesForUI()},t.prototype.getCSARequests=function(e,t){return void 0===e&&(e=25),void 0===t&&(t=[]),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(csa_request_1.CSARequest.fromAPIResponse,this.httpsService,"requests",https_service_interface_1.BACKEND_SERVICE.CSA,t,e)},t.prototype.getMultipleExpertSearches=function(e){return this.httpsService.get("requests/".concat(e,"/expert-searches"),[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return multiple_expert_searches_1.MultipleExpertSearches.fromAPIResponse(e)})))},t.prototype.setExpertSearchAbandoned=function(e,t,r){return void 0===r&&(r=!0),this.httpsService.put("requests/".concat(e,"/expert-searches/").concat(t,"/abandoned"),{abandoned:r},null,https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return(0,general_helper_1.snakeToCamelCase)(e)})))},t.prototype.associateExpertSearchToCsaRequest=function(e,t){return this.httpsService.post("requests/".concat(e,"/expert-searches"),{search_session_id:t},null,https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return(0,general_helper_1.snakeToCamelCase)(e)})))},t.prototype.getCSARequest=function(e){return this.loadCSARequestFromServer(e).pipe((0,operators_1.catchError)((function(e){return console.log("Error while loading csa-request-information from server.",e),(0,rxjs_1.throwError)(e)})))},t.prototype.openCSARequest=function(e){return this.httpsService.post("requests/".concat(e,"/actions/open"),{},null,https_service_interface_1.BACKEND_SERVICE.CSA)},t.prototype.markNotResolvedCSARequest=function(e){return this.httpsService.post("requests/".concat(e,"/actions/not-resolve"),{},null,https_service_interface_1.BACKEND_SERVICE.CSA)},t.prototype.updateCSARequestQuantity=function(e,t){return this.httpsService.put("requests/".concat(e,"/quantity/"),{quantity:t},[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return csa_request_1.CSARequest.fromAPIResponse(e)})))},t.prototype.loadCSARequestFromServer=function(e){return this.httpsService.get("requests/".concat(e),[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return csa_request_1.CSARequest.fromAPIResponse(e)})))},t.prototype.prepareSearchQueriesObj=function(e){return e=e||{},Object.keys(text_search_service_1.TEXT_SEARCH_TYPE).reduce((function(t,r){var s;return __assign(__assign({},t),((s={})[text_search_service_1.TEXT_SEARCH_TYPE[r]]=e[text_search_service_1.TEXT_SEARCH_TYPE[r]]||"",s))}),{})},t=__decorate([(0,injection_identifier_1.InjectionIdentifier)("CustomerServiceAssistanceService")],t)}(core_1.BaseLoginInitService);exports.CustomerServiceAssistanceServiceImpl=CustomerServiceAssistanceServiceImpl;
@@ -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, ServiceProvider } from '../../core';
4
4
  import { GetPartDataRequest } from '../models/get-part-data-request';
@@ -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)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign.apply(this,arguments)},__decorate=this&&this.__decorate||function(t,e,r,o){var n,i=arguments.length,c=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(c=(i<3?n(c):i>3?n(e,r,c):n(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},__rest=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DataServiceImpl=void 0;var core_1=require("../../core"),DataServiceImpl=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},e.prototype.getPart=function(t){void 0===t&&(t={projection:["partiumId"]});var e=t.projection,r=__rest(t,["projection"]),o=Array.from(new Set(e)).join(","),n=Object.entries(__assign(__assign({},r),{projection:o})).map((function(t){var e,r=t[0],o=t[1];return(e={})[r]=o,e}));return this.httpsService.get("part",n,core_1.BACKEND_SERVICE.DATA_V2)},e=__decorate([(0,core_1.InjectionIdentifier)("DataService")],e)}(core_1.BaseService);exports.DataServiceImpl=DataServiceImpl;
@@ -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, PaginatedRequestService, ServiceProvider } from '../../core';
4
4
  import { FilterKey } from '../models/filter-key';
@@ -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 o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__decorate=this&&this.__decorate||function(e,t,r,o){var i,n=arguments.length,c=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(c=(n<3?i(c):n>3?i(t,r,c):i(t,r))||c);return n>3&&c&&Object.defineProperty(t,r,c),c},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var o,i=0,n=t.length;i<n;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FilterServiceImpl=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),core_1=require("../../core"),filter_key_1=require("../models/filter-key"),filter_option_value_1=require("../models/filter-option-value"),FilterServiceImpl=function(e){function t(t){var r=e.call(this,t)||this;return r.PAGINATION_PAGE_SIZE=25,r}return __extends(t,e),t.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},t.prototype.getFilterKey=function(e){return this.httpsService.get("filters/".concat(e),[],core_1.BACKEND_SERVICE.DATA).pipe((0,operators_1.map)((function(e){return filter_key_1.FilterKey.fromAPIResponse(e)})))},t.prototype.getFilterKeys=function(e,t,r){return void 0===t&&(t=this.PAGINATION_PAGE_SIZE),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(filter_key_1.FilterKey.fromAPIResponse,this.httpsService,"filters",core_1.BACKEND_SERVICE.DATA,__spreadArray([],e?[{lang:e}]:[],!0),t,r)},t.prototype.getFilterOptions=function(e,t){return core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(filter_option_value_1.FilterOptionValue.fromAPIResponse,this.httpsService,"filters/".concat(e,"/options"),core_1.BACKEND_SERVICE.DATA,[],this.PAGINATION_PAGE_SIZE,t)},t.prototype.searchFilterKeys=function(e,t,r,o){return core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(filter_key_1.FilterKey.fromAPIResponse,this.httpsService,"filters",core_1.BACKEND_SERVICE.DATA,__spreadArray([{search:e}],t?[{lang:t}]:[],!0),r||this.PAGINATION_PAGE_SIZE,o)},t.prototype.searchMultipleFilterKeys=function(e,t,r){var o=this;void 0===r&&(r=25);var i=[];for(var n in e)"hardFilters"===n&&i.push.apply(i,e[n].map((function(e){return e.label})));return 0===i.length?(0,rxjs_1.of)([]):(0,rxjs_1.from)(i).pipe((0,operators_1.mergeMap)((function(e){return o.searchFilterKeys(e,t,r,!0).loadInitialPage(!0).pipe((0,operators_1.map)((function(t){return t.items.find((function(t){return t.name===e}))})))})),(0,operators_1.scan)((function(e,t){return e.concat(t)}),[]))},t.prototype.searchFilterOptions=function(e,t,r){return core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(filter_option_value_1.FilterOptionValue.fromAPIResponse,this.httpsService,"filters/".concat(e,"/options"),core_1.BACKEND_SERVICE.DATA,[{search:t}],this.PAGINATION_PAGE_SIZE,r)},t=__decorate([(0,core_1.InjectionIdentifier)("FilterService")],t)}(core_1.BaseService);exports.FilterServiceImpl=FilterServiceImpl;
@@ -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 '../../core';
3
3
  import { BaseService } from '../../core/services/base.service';
4
4
  import { PaginatedRequestService } from '../../core/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";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,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InquiryServiceImpl=void 0;var operators_1=require("rxjs/operators"),core_1=require("../../core"),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"),inquiry_1=require("../models/inquiry"),InquiryServiceImpl=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.getInquiries=function(e,t){return void 0===e&&(e=25),void 0===t&&(t=[]),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(inquiry_1.Inquiry.fromAPIResponse,this.httpsService,"inquiries",https_service_interface_1.BACKEND_SERVICE.CSA,t,e)},t.prototype.getInquiry=function(e){return this.httpsService.get("inquiries/".concat(e),[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return inquiry_1.Inquiry.fromAPIResponse(e)})))},t.prototype.createInquiry=function(){return this.httpsService.post("inquiries/",{},[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return inquiry_1.Inquiry.fromAPIResponse(e)})))},t.prototype.updateInquiryStatus=function(e,t){return this.httpsService.put("inquiries/".concat(e,"/status"),{status:t},[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(e){return new inquiry_1.InquiryStatusResponse(e)})))},t.prototype.exportInquiryAsEmail=function(e,t,r,i){return this.httpsService.post("inquiries/".concat(e,"/actions/email"),{recipients:t,subject:r,message:i},[],https_service_interface_1.BACKEND_SERVICE.CSA)},t=__decorate([(0,injection_identifier_1.InjectionIdentifier)("InquiryService")],t)}(base_service_1.BaseService);exports.InquiryServiceImpl=InquiryServiceImpl;
@@ -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 { BaseLoginInitService, ServiceProvider } from "../../core";
4
4
  import { Attribute } from "../models/attribute";
@@ -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(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},t(r,e)};return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__decorate=this&&this.__decorate||function(t,r,e,o){var n,i=arguments.length,a=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,r,e,o);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(i<3?n(a):i>3?n(r,e,a):n(r,e))||a);return i>3&&a&&Object.defineProperty(r,e,a),a},__spreadArray=this&&this.__spreadArray||function(t,r,e){if(e||2===arguments.length)for(var o,n=0,i=r.length;n<i;n++)!o&&n in r||(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartAttributeServiceImpl=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),core_1=require("../../core"),attribute_1=require("../models/attribute"),part_1=require("../models/part"),PartAttributeServiceImpl=function(t){function r(r){var e=t.call(this,r)||this;return e.DOWNLOAD_PAGE_SIZE=250,e}return __extends(r,t),r.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},r.prototype.getAttributesForPart=function(t){return this.loadPartAttributesFromServer(t).pipe((0,operators_1.catchError)((function(t){return console.log("Error while loading part-information from server.",t),(0,rxjs_1.throwError)(t)})))},r.prototype.loadPartAttributesFromServer=function(t){var r=this,e=1,o=new rxjs_1.Subject;return(0,rxjs_1.defer)((function(){return r.requestPaginatedAttributes(t,e)})).pipe((0,operators_1.map)((function(t){var r=t.pagination.page_size,n=t.pagination.items_count,i=Math.ceil(n/r);return e>=i?o.complete():e++<i&&setTimeout((function(){o.next()})),t.results})),(0,operators_1.repeatWhen)((function(){return o.asObservable()})),(0,operators_1.reduce)((function(t,r){return __spreadArray(__spreadArray([],t,!0),r,!0)})),(0,operators_1.map)((function(t){return t.filter((function(t){var r=t.metadata&&t.metadata.source;return!r||!["__HITL_ANNOTATIONS__","__ENRICHED_METADATA__"].some((function(t){return t===r}))})).map((function(t){return attribute_1.Attribute.fromAPIResponse(t,part_1.DATA_ORIGIN.DATA_API)}))})))},r.prototype.requestPaginatedAttributes=function(t,r){return this.httpsService.get("/part_types/".concat(t,"/attributes"),[{page:r},{page_size:this.DOWNLOAD_PAGE_SIZE}],core_1.BACKEND_SERVICE.DATA)},r=__decorate([(0,core_1.InjectionIdentifier)("PartAttributeService")],r)}(core_1.BaseLoginInitService);exports.PartAttributeServiceImpl=PartAttributeServiceImpl;
@@ -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, ServiceProvider } from '../../core';
4
4
  import { PartEnrichmentData } from '../models/part-enrichment-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";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)}}(),__decorate=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartEnrichmentServiceImpl=void 0;var rxjs_1=require("rxjs"),core_1=require("../../core"),part_enrichment_data_1=require("../models/part-enrichment-data"),PartEnrichmentServiceImpl=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},t.prototype.enrichPart=function(e){return this.httpsService.post("part_types/".concat(e,"/enrich"),{},[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.catchError)((function(e){var t;if(404===(null===(t=e.detail)||void 0===t?void 0:t.status))throw new core_1.SdkError(core_1.SDK_ERROR_CODES.NO_UPIS_FOUND,e.detail);throw e})))},t.prototype.getEnrichedData=function(e){return this.httpsService.get("part_types/".concat(e,"/enrichment-status"),[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(e){return part_enrichment_data_1.PartEnrichmentData.fromAPIResponse(e)})))},t=__decorate([(0,core_1.InjectionIdentifier)("PartEnrichmentService")],t)}(core_1.BaseService);exports.PartEnrichmentServiceImpl=PartEnrichmentServiceImpl;
@@ -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, PaginatedRequestService, ServiceProvider } from '../../core';
4
4
  import { Part } from '../models/part';
@@ -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 r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])},r(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(r){for(var t,e=1,o=arguments.length;e<o;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},__assign.apply(this,arguments)},__decorate=this&&this.__decorate||function(r,t,e,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(r,t,e,o);else for(var s=r.length-1;s>=0;s--)(n=r[s])&&(a=(i<3?n(a):i>3?n(t,e,a):n(t,e))||a);return i>3&&a&&Object.defineProperty(t,e,a),a},__spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return r.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartServiceImpl=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),core_1=require("../../core"),part_1=require("../models/part"),mounting_location_1=require("../models/mounting-location"),PartServiceImpl=function(r){function t(t){var e=r.call(this,t)||this;return e.DOWNLOAD_PAGE_SIZE=250,e.PAGINATION_PAGE_SIZE=25,e}return __extends(t,r),t.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},t.prototype.getPart=function(r,t){return this.loadPartFromServer(r,t).pipe((0,operators_1.catchError)((function(r){return console.log("Error while loading part-information from server.",r),(0,rxjs_1.throwError)(r)})))},t.prototype.getParts=function(r){var t=this;return this.loadPartsFromServer(r).pipe((0,operators_1.map)((function(e){return t.orderParts(e,r)})),(0,operators_1.mergeMap)((function(r){return console.log("Warning: nonexistent partium ids will be ignored"),(0,rxjs_1.of)(r.filter((function(r){return!!r})))})),(0,operators_1.catchError)((function(r){return console.log("Error while loading part-information from server.",r),(0,rxjs_1.throwError)(r)})))},t.prototype.getPartsByAssemblyHierarchyNodeId=function(r){return core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(part_1.Part.fromAPIResponse,this.httpsService,"part_types",core_1.BACKEND_SERVICE.DATA,[{assembly_uuid:r}],this.PAGINATION_PAGE_SIZE)},t.prototype.getMountingLocationsForPart=function(r,t){return this.httpsService.post("part_types/".concat(r,"/mounting-locations"),__assign({},t&&{priority_locations:t}),[],core_1.BACKEND_SERVICE.DATA).pipe((0,operators_1.map)((function(r){return mounting_location_1.PartMountingLocationInfo.fromAPIResponse(r)})))},t.prototype.loadPartFromServer=function(r,t){var e=[];return(null==t?void 0:t.includeMountingLocations)&&e.push({include_mounting_locations:t.includeMountingLocations}),(null==t?void 0:t.includeSummary)&&e.push({include_summary:t.includeSummary}),(null==t?void 0:t.includeEnrichment)&&e.push({include_enrichment:t.includeEnrichment}),this.httpsService.get("part_types/".concat(r),e,core_1.BACKEND_SERVICE.DATA).pipe((0,operators_1.map)((function(r){return part_1.Part.fromAPIResponse(r)})))},t.prototype.loadPartsFromServer=function(r){var t=this,e=1,o=new rxjs_1.Subject;return(0,rxjs_1.defer)((function(){return t.requestPaginatedParts(r,e)})).pipe((0,operators_1.map)((function(r){var t=r.pagination.page_size,n=r.pagination.items_count,i=Math.ceil(n/t);return e>=i?o.complete():e++<i&&setTimeout((function(){o.next()})),r.results})),(0,operators_1.repeatWhen)((function(){return o.asObservable()})),(0,operators_1.reduce)((function(r,t){return __spreadArray(__spreadArray([],r,!0),t,!0)})),(0,operators_1.map)((function(r){return r.map((function(r){return part_1.Part.fromAPIResponse(r,part_1.DATA_ORIGIN.DATA_API)}))})))},t.prototype.requestPaginatedParts=function(r,t){return this.httpsService.post("part_types/many",{uuids:r},[{page:t},{page_size:this.DOWNLOAD_PAGE_SIZE}],core_1.BACKEND_SERVICE.DATA)},t.prototype.orderParts=function(r,t){for(var e=[],o=function(t){e.push(r.find((function(r){return r&&r.partiumId===t})))},n=0,i=t;n<i.length;n++){o(i[n])}return e},t=__decorate([(0,core_1.InjectionIdentifier)("PartService")],t)}(core_1.BaseService);exports.PartServiceImpl=PartServiceImpl;
@@ -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, PaginatedRequestService, ServiceProvider } from '../../core';
4
4
  import { Part, RELATION_TYPE } from '../models/part';
@@ -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)}}(),__decorate=this&&this.__decorate||function(t,e,r,o){var n,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,r,a):n(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(exports,"__esModule",{value:!0}),exports.RelatedPartsServiceImpl=void 0;var rxjs_1=require("rxjs"),core_1=require("../../core"),part_1=require("../models/part"),RelatedPartsServiceImpl=function(t){function e(e){var r=t.call(this,e)||this;return r.PAGINATION_PAGE_SIZE=25,r}return __extends(e,t),e.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},e.prototype.getSummary=function(t){return this.httpsService.get("part_types/".concat(t,"/relations-summary"),[],core_1.BACKEND_SERVICE.DATA).pipe((0,rxjs_1.map)((function(t){return{duplicatesCount:t.duplicates,substitutesCount:t.substitutes,equivalentsCount:t.equivalents,notRelatedCount:t.not_related}})))},e.prototype.getRelatedParts=function(t,e,r){var o,n=Array.isArray(e)?e:[e],i=((o={})[part_1.RELATION_TYPE.DUPLICATE]="duplicates",o[part_1.RELATION_TYPE.SUBSTITUTE]="substitutes",o[part_1.RELATION_TYPE.EQUIVALENT]="equivalents",o[part_1.RELATION_TYPE.NOT_RELATED]="not_related",o),a=[];return n.map((function(t){return i[t]})).map((function(t){return a.push({relation_types:t})})),(null==r?void 0:r.includeAttributes)&&a.push({include_attributes:r.includeAttributes}),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService((function(t){return part_1.Part.fromRelatedPartsAPIResponse(t)}),this.httpsService,"part_types/".concat(t,"/relations"),core_1.BACKEND_SERVICE.DATA,a,this.PAGINATION_PAGE_SIZE,!0)},e.prototype.createPartRelation=function(t,e,r){return this.httpsService.post("part_types/relations",[{anchor_part_uuid:t,related_part_uuid:e,type:r}],[],core_1.BACKEND_SERVICE.DATA)},e=__decorate([(0,core_1.InjectionIdentifier)("RelatedPartsService")],e)}(core_1.BaseService);exports.RelatedPartsServiceImpl=RelatedPartsServiceImpl;
@@ -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 { EventContext } from '../../core/models/log';
4
4
  import { BaseService } from '../../core/services/base.service';