@partium/js-sdk 14.15.2 → 14.17.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.
- package/LICENSE.txt +1 -1
- package/catalog/index.d.ts +1 -1
- package/catalog/index.js +1 -1
- package/catalog/models/catalog-image-info.d.ts +1 -1
- package/catalog/models/catalog-image-info.js +1 -1
- package/catalog/models/catalog-image.d.ts +1 -1
- package/catalog/models/catalog-image.js +1 -1
- package/catalog/models/upsert-catalog-images-dto.d.ts +1 -1
- package/catalog/models/upsert-catalog-images-dto.js +1 -1
- package/catalog/models/upsert-images-result.d.ts +1 -1
- package/catalog/models/upsert-images-result.js +1 -1
- package/catalog/services/images.service.d.ts +1 -1
- package/catalog/services/images.service.js +1 -1
- package/core/constants/constants.d.ts +1 -1
- package/core/constants/constants.js +1 -1
- package/core/decorators/injection-identifier.d.ts +1 -1
- package/core/decorators/injection-identifier.js +1 -1
- package/core/factories/paginated-request-service.factory.d.ts +1 -1
- package/core/factories/paginated-request-service.factory.js +1 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/integration-defaults/http/fetch-api-http-error-helper.d.ts +1 -1
- package/core/integration-defaults/http/fetch-api-http-error-helper.js +1 -1
- package/core/integration-defaults/http/file-transfer/axios-file-transfer.service.d.ts +1 -1
- package/core/integration-defaults/http/file-transfer/axios-file-transfer.service.js +1 -1
- package/core/integration-defaults/http/file-transfer/fetch-api-file-transfer.service.d.ts +1 -1
- package/core/integration-defaults/http/file-transfer/fetch-api-file-transfer.service.js +1 -1
- package/core/integration-defaults/http/handle-axios-error-helper.d.ts +1 -1
- package/core/integration-defaults/http/handle-axios-error-helper.js +1 -1
- package/core/integration-defaults/http/https-client/axios-https-client.service.d.ts +1 -1
- package/core/integration-defaults/http/https-client/axios-https-client.service.js +1 -1
- package/core/integration-defaults/http/https-client/fetch-api-https-client.service.d.ts +1 -1
- package/core/integration-defaults/http/https-client/fetch-api-https-client.service.js +1 -1
- package/core/integration-defaults/http/js-oauth-keycloak-https.service.d.ts +1 -1
- package/core/integration-defaults/http/js-oauth-keycloak-https.service.js +1 -1
- package/core/integration-defaults/js-p-file.d.ts +1 -1
- package/core/integration-defaults/js-p-file.js +1 -1
- package/core/integration-defaults/session/js-oauth-api-key-session.service.d.ts +1 -1
- package/core/integration-defaults/session/js-oauth-api-key-session.service.js +1 -1
- package/core/integration-defaults/session/js-oauth-keycloak-auth-config.d.ts +1 -1
- package/core/integration-defaults/session/js-oauth-keycloak-auth-config.js +1 -1
- package/core/integration-defaults/session/js-oauth-keycloak-session.service.d.ts +1 -1
- package/core/integration-defaults/session/js-oauth-keycloak-session.service.js +1 -1
- package/core/integration-defaults/web-device-status.service.d.ts +1 -1
- package/core/integration-defaults/web-device-status.service.js +1 -1
- package/core/integration-defaults/web-file.service.d.ts +1 -1
- package/core/integration-defaults/web-file.service.js +1 -1
- package/core/integration-defaults/web-indexeddb.service.d.ts +1 -1
- package/core/integration-defaults/web-indexeddb.service.js +1 -1
- package/core/integration-defaults/web-local-storage.service.d.ts +1 -1
- package/core/integration-defaults/web-local-storage.service.js +1 -1
- package/core/models/api-object.d.ts +1 -1
- package/core/models/api-object.js +1 -1
- package/core/models/auth-config.d.ts +1 -1
- package/core/models/auth-config.js +1 -1
- package/core/models/base-paginated-request.d.ts +1 -1
- package/core/models/base-paginated-request.js +1 -1
- package/core/models/base-paginated-response.d.ts +1 -1
- package/core/models/base-paginated-response.js +1 -1
- package/core/models/base-response.d.ts +1 -1
- package/core/models/base-response.js +1 -1
- package/core/models/default-get-paginated-request-pagination-context.d.ts +1 -1
- package/core/models/default-get-paginated-request-pagination-context.js +1 -1
- package/core/models/device-info.d.ts +1 -1
- package/core/models/device-info.js +1 -1
- package/core/models/error.d.ts +1 -1
- package/core/models/error.js +1 -1
- package/core/models/formatted-string.d.ts +1 -1
- package/core/models/formatted-string.js +1 -1
- package/core/models/i18n-map.d.ts +1 -1
- package/core/models/i18n-map.js +1 -1
- package/core/models/i18n-string.d.ts +1 -1
- package/core/models/i18n-string.js +1 -1
- package/core/models/log.d.ts +1 -1
- package/core/models/log.js +1 -1
- package/core/models/organization.d.ts +3 -1
- package/core/models/organization.js +2 -2
- package/core/models/p-file.d.ts +1 -1
- package/core/models/p-file.js +1 -1
- package/core/models/paginated-list.d.ts +1 -1
- package/core/models/paginated-list.js +1 -1
- package/core/models/partium-config.d.ts +1 -1
- package/core/models/partium-config.js +1 -1
- package/core/models/user-token.d.ts +1 -1
- package/core/models/user-token.js +1 -1
- package/core/models/user.d.ts +1 -1
- package/core/models/user.js +1 -1
- package/core/services/backend-status.service.d.ts +1 -1
- package/core/services/backend-status.service.js +1 -1
- package/core/services/base-login-init.service.d.ts +1 -1
- package/core/services/base-login-init.service.js +1 -1
- package/core/services/base.service.d.ts +1 -1
- package/core/services/base.service.js +1 -1
- package/core/services/device-status.service.interface.d.ts +1 -1
- package/core/services/device-status.service.interface.js +1 -1
- package/core/services/file.service.interface.d.ts +1 -1
- package/core/services/file.service.interface.js +1 -1
- package/core/services/http/file-transfer/file-transfer.service.interface.d.ts +1 -1
- package/core/services/http/file-transfer/file-transfer.service.interface.js +1 -1
- package/core/services/http/https-client/https-client.service.interface.d.ts +1 -1
- package/core/services/http/https-client/https-client.service.interface.js +1 -1
- package/core/services/http/https.service.interface.d.ts +1 -1
- package/core/services/http/https.service.interface.js +1 -1
- package/core/services/http/oauth-https.service.d.ts +1 -1
- package/core/services/http/oauth-https.service.js +1 -1
- package/core/services/local-storage.service.interface.d.ts +1 -1
- package/core/services/local-storage.service.interface.js +1 -1
- package/core/services/log.service.d.ts +1 -1
- package/core/services/log.service.js +1 -1
- package/core/services/organization.service.d.ts +1 -1
- package/core/services/organization.service.js +1 -1
- package/core/services/paginated-request.service.d.ts +1 -1
- package/core/services/paginated-request.service.js +1 -1
- package/core/services/recent-parts.service.d.ts +1 -1
- package/core/services/recent-parts.service.js +1 -1
- package/core/services/service-provider.d.ts +1 -1
- package/core/services/service-provider.js +1 -1
- package/core/services/session/oauth-session.service.d.ts +1 -1
- package/core/services/session/oauth-session.service.js +1 -1
- package/core/services/session/session.service.interface.d.ts +1 -1
- package/core/services/session/session.service.interface.js +1 -1
- package/core/utils/general-helper.d.ts +1 -1
- package/core/utils/general-helper.js +1 -1
- package/data/index.d.ts +1 -1
- package/data/index.js +1 -1
- package/data/models/announcement.d.ts +1 -1
- package/data/models/announcement.js +1 -1
- package/data/models/assembly-hierarchy-node-breadcrumb.d.ts +1 -1
- package/data/models/assembly-hierarchy-node-breadcrumb.js +1 -1
- package/data/models/assembly-hierarchy-node.d.ts +1 -1
- package/data/models/assembly-hierarchy-node.js +1 -1
- package/data/models/attribute.d.ts +1 -1
- package/data/models/attribute.js +1 -1
- package/data/models/csa-request-search.d.ts +1 -1
- package/data/models/csa-request-search.js +1 -1
- package/data/models/csa-request-status.d.ts +1 -1
- package/data/models/csa-request-status.js +1 -1
- package/data/models/csa-request.d.ts +1 -1
- package/data/models/csa-request.js +1 -1
- package/data/models/document.d.ts +1 -1
- package/data/models/document.js +1 -1
- package/data/models/filter-key.d.ts +1 -1
- package/data/models/filter-key.js +1 -1
- package/data/models/filter-option-value.d.ts +1 -1
- package/data/models/filter-option-value.js +1 -1
- package/data/models/get-part-data-request.d.ts +1 -1
- package/data/models/get-part-data-request.js +1 -1
- package/data/models/get-part-data-response.d.ts +1 -1
- package/data/models/get-part-data-response.js +1 -1
- package/data/models/image.d.ts +1 -1
- package/data/models/image.js +1 -1
- package/data/models/inquiry.d.ts +1 -1
- package/data/models/inquiry.js +1 -1
- package/data/models/mounting-location.d.ts +1 -1
- package/data/models/mounting-location.js +1 -1
- package/data/models/multiple-expert-searches.d.ts +1 -1
- package/data/models/multiple-expert-searches.js +1 -1
- package/data/models/part-data.d.ts +1 -1
- package/data/models/part-data.js +1 -1
- package/data/models/part-enrichment-data.d.ts +1 -1
- package/data/models/part-enrichment-data.js +1 -1
- package/data/models/part.d.ts +1 -1
- package/data/models/part.js +1 -1
- package/data/models/shopping-cart.d.ts +1 -1
- package/data/models/shopping-cart.js +1 -1
- package/data/services/announcement.service.d.ts +1 -1
- package/data/services/announcement.service.js +1 -1
- package/data/services/assembly-hierarchy-nodes.service.d.ts +1 -1
- package/data/services/assembly-hierarchy-nodes.service.js +1 -1
- package/data/services/csa-helper.service.d.ts +1 -1
- package/data/services/csa-helper.service.js +1 -1
- package/data/services/customer-service-assistance.service.d.ts +1 -1
- package/data/services/customer-service-assistance.service.js +1 -1
- package/data/services/data.service.d.ts +1 -1
- package/data/services/data.service.js +1 -1
- package/data/services/filter.service.d.ts +1 -1
- package/data/services/filter.service.js +1 -1
- package/data/services/inquiry.service.d.ts +1 -1
- package/data/services/inquiry.service.js +1 -1
- package/data/services/part-attribute.service.d.ts +1 -1
- package/data/services/part-attribute.service.js +1 -1
- package/data/services/part-enrichment.service.d.ts +1 -1
- package/data/services/part-enrichment.service.js +1 -1
- package/data/services/part.service.d.ts +1 -1
- package/data/services/part.service.js +1 -1
- package/data/services/related-parts.service.d.ts +1 -1
- package/data/services/related-parts.service.js +1 -1
- package/data/services/shopping-cart.service.d.ts +1 -1
- package/data/services/shopping-cart.service.js +1 -1
- package/datacuration/index.d.ts +1 -1
- package/datacuration/index.js +1 -1
- package/datacuration/models/approve-image-submission-request.d.ts +1 -1
- package/datacuration/models/approve-image-submission-request.js +1 -1
- package/datacuration/models/approve-image-submission-response.d.ts +1 -1
- package/datacuration/models/approve-image-submission-response.js +1 -1
- package/datacuration/models/base-submission-response.d.ts +1 -1
- package/datacuration/models/base-submission-response.js +1 -1
- package/datacuration/models/get-image-submissions-request.d.ts +1 -1
- package/datacuration/models/get-image-submissions-request.js +1 -1
- package/datacuration/models/get-image-submissions-response.d.ts +1 -1
- package/datacuration/models/get-image-submissions-response.js +1 -1
- package/datacuration/models/image-submission-content-type.d.ts +1 -1
- package/datacuration/models/image-submission-content-type.js +1 -1
- package/datacuration/models/image-submission-status.d.ts +1 -1
- package/datacuration/models/image-submission-status.js +1 -1
- package/datacuration/models/image-submission.d.ts +1 -1
- package/datacuration/models/image-submission.js +1 -1
- package/datacuration/models/reject-image-submission-request.d.ts +1 -1
- package/datacuration/models/reject-image-submission-request.js +1 -1
- package/datacuration/models/reject-image-submission-response.d.ts +1 -1
- package/datacuration/models/reject-image-submission-response.js +1 -1
- package/datacuration/models/submit-images-request.d.ts +1 -1
- package/datacuration/models/submit-images-request.js +1 -1
- package/datacuration/models/submit-images-response.d.ts +1 -1
- package/datacuration/models/submit-images-response.js +1 -1
- package/datacuration/models/update-image-submission-request.d.ts +1 -1
- package/datacuration/models/update-image-submission-request.js +1 -1
- package/datacuration/models/update-image-submission-response.d.ts +1 -1
- package/datacuration/models/update-image-submission-response.js +1 -1
- package/datacuration/services/image-submission.service.d.ts +1 -1
- package/datacuration/services/image-submission.service.js +1 -1
- package/enrichment/index.d.ts +1 -1
- package/enrichment/index.js +1 -1
- package/enrichment/models/create-enrichment-job-request.d.ts +1 -1
- package/enrichment/models/create-enrichment-job-request.js +1 -1
- package/enrichment/models/create-enrichment-job-response.d.ts +1 -1
- package/enrichment/models/create-enrichment-job-response.js +1 -1
- package/enrichment/models/enrichment-job-part.d.ts +1 -1
- package/enrichment/models/enrichment-job-part.js +1 -1
- package/enrichment/models/enrichment-job.d.ts +1 -1
- package/enrichment/models/enrichment-job.js +1 -1
- package/enrichment/models/get-enrichment-job-parts-request.d.ts +1 -1
- package/enrichment/models/get-enrichment-job-parts-request.js +1 -1
- package/enrichment/models/get-enrichment-job-request.d.ts +1 -1
- package/enrichment/models/get-enrichment-job-request.js +1 -1
- package/enrichment/models/submit-enrichment-job-request.d.ts +1 -1
- package/enrichment/models/submit-enrichment-job-request.js +1 -1
- package/enrichment/services/data-enrichment.service.d.ts +1 -1
- package/enrichment/services/data-enrichment.service.js +1 -1
- package/find/index.d.ts +1 -1
- package/find/index.js +1 -1
- package/find/models/assets/asset.d.ts +1 -1
- package/find/models/assets/asset.js +1 -1
- package/find/models/search-filter.d.ts +1 -1
- package/find/models/search-filter.js +1 -1
- package/find/models/search-input.d.ts +1 -1
- package/find/models/search-input.js +1 -1
- package/find/models/search-output.d.ts +1 -1
- package/find/models/search-output.js +1 -1
- package/find/models/search-result-status.d.ts +1 -1
- package/find/models/search-result-status.js +1 -1
- package/find/models/search-session-log-object.d.ts +1 -1
- package/find/models/search-session-log-object.js +1 -1
- package/find/models/search-status/cv-search-status.d.ts +1 -1
- package/find/models/search-status/cv-search-status.js +1 -1
- package/find/models/search-status/search-filter-status.d.ts +1 -1
- package/find/models/search-status/search-filter-status.js +1 -1
- package/find/models/search-status/search-status.d.ts +1 -1
- package/find/models/search-status/search-status.js +1 -1
- package/find/models/search-status/tag-search-status.d.ts +1 -1
- package/find/models/search-status/tag-search-status.js +1 -1
- package/find/models/search-status/text-search-status.d.ts +1 -1
- package/find/models/search-status/text-search-status.js +1 -1
- package/find/models/search-tag.d.ts +1 -1
- package/find/models/search-tag.js +1 -1
- package/find/models/smart-filter.d.ts +1 -1
- package/find/models/smart-filter.js +1 -1
- package/find/models/tagable/i18n-tagable.d.ts +1 -1
- package/find/models/tagable/i18n-tagable.js +1 -1
- package/find/models/tagable/tagable-base.d.ts +1 -1
- package/find/models/tagable/tagable-base.js +1 -1
- package/find/models/tagable/tagable.d.ts +1 -1
- package/find/models/tagable/tagable.js +1 -1
- package/find/models/text-search-config.d.ts +1 -1
- package/find/models/text-search-config.js +1 -1
- package/find/models/text-search-manipulator.d.ts +1 -1
- package/find/models/text-search-manipulator.js +1 -1
- package/find/models/text-search-result-item/text-search-error.d.ts +1 -1
- package/find/models/text-search-result-item/text-search-error.js +1 -1
- package/find/models/text-search-result-item/text-search-result-item-document.d.ts +1 -1
- package/find/models/text-search-result-item/text-search-result-item-document.js +1 -1
- package/find/models/text-search-result-item/text-search-result-item-part.d.ts +1 -1
- package/find/models/text-search-result-item/text-search-result-item-part.js +1 -1
- package/find/models/text-search-result-item/text-search-result-item-recent-query.d.ts +1 -1
- package/find/models/text-search-result-item/text-search-result-item-recent-query.js +1 -1
- package/find/models/text-search-result-item/text-search-result-item-unknown.d.ts +1 -1
- package/find/models/text-search-result-item/text-search-result-item-unknown.js +1 -1
- package/find/models/text-search-result-item/text-search-result-item.d.ts +1 -1
- package/find/models/text-search-result-item/text-search-result-item.js +1 -1
- package/find/services/asset.service.d.ts +1 -1
- package/find/services/asset.service.js +1 -1
- package/find/services/filter-uploaders/filter-uploader.d.ts +1 -1
- package/find/services/filter-uploaders/filter-uploader.js +1 -1
- package/find/services/filter-uploaders/update-filters-uploader.d.ts +1 -1
- package/find/services/filter-uploaders/update-filters-uploader.js +1 -1
- package/find/services/filter-uploaders/update-filters.model.d.ts +1 -1
- package/find/services/filter-uploaders/update-filters.model.js +1 -1
- package/find/services/search/cv-search.service.d.ts +1 -1
- package/find/services/search/cv-search.service.js +1 -1
- package/find/services/search/recent-text-search-queries.service.d.ts +1 -1
- package/find/services/search/recent-text-search-queries.service.js +1 -1
- package/find/services/search/search-result.service.d.ts +1 -1
- package/find/services/search/search-result.service.js +1 -1
- package/find/services/search/search.service.d.ts +1 -1
- package/find/services/search/search.service.js +1 -1
- package/find/services/search/tag-search.service.d.ts +1 -1
- package/find/services/search/tag-search.service.js +1 -1
- package/find/services/search/text-search.service.d.ts +1 -1
- package/find/services/search/text-search.service.js +1 -1
- package/find/services/search-filter.service.d.ts +1 -1
- package/find/services/search-filter.service.js +1 -1
- package/find/utils/search-helper.d.ts +1 -1
- package/find/utils/search-helper.js +1 -1
- package/gen/sdk-version.d.ts +2 -2
- package/gen/sdk-version.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/management/index.d.ts +1 -1
- package/management/index.js +1 -1
- package/management/models/api-key-list-response.d.ts +1 -1
- package/management/models/api-key-list-response.js +1 -1
- package/management/models/api-key-type.d.ts +1 -1
- package/management/models/api-key-type.js +1 -1
- package/management/models/api-key.d.ts +1 -1
- package/management/models/api-key.js +1 -1
- package/management/services/api-key.service.d.ts +1 -1
- package/management/services/api-key.service.js +1 -1
- package/ocr/index.d.ts +1 -1
- package/ocr/index.js +1 -1
- package/ocr/models/detect-response.d.ts +1 -1
- package/ocr/models/detect-response.js +1 -1
- package/ocr/models/detected-text-entry.d.ts +1 -1
- package/ocr/models/detected-text-entry.js +1 -1
- package/ocr/services/ocr.service.d.ts +1 -1
- package/ocr/services/ocr.service.js +1 -1
- package/package.json +1 -1
- package/user-data/index.d.ts +1 -1
- package/user-data/index.js +1 -1
- package/user-data/models/part-with-nullable.d.ts +1 -1
- package/user-data/models/part-with-nullable.js +1 -1
- package/user-data/models/request-list/request-list.d.ts +1 -1
- package/user-data/models/request-list/request-list.js +1 -1
- package/user-data/services/favorite/favorite.service.d.ts +1 -1
- package/user-data/services/favorite/favorite.service.js +1 -1
- package/user-data/services/request-list/request-list.service.d.ts +1 -1
- package/user-data/services/request-list/request-list.service.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
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 i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__decorate=this&&this.__decorate||function(t,e,r,i){var o,n=arguments.length,c=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(c=(n<3?o(c):n>3?o(e,r,c):o(e,r))||c);return n>3&&c&&Object.defineProperty(e,r,c),c};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShoppingCartServiceImpl=void 0;var rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),log_1=require("../../core/models/log"),injection_identifier_1=require("../../core/decorators/injection-identifier"),https_service_interface_1=require("../../core/services/http/https.service.interface"),base_service_1=require("../../core/services/base.service"),log_service_1=require("../../core/services/log.service"),shopping_cart_1=require("../models/shopping-cart"),core_1=require("../../core"),csa_request_1=require("../models/csa-request"),ShoppingCartServiceImpl=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(https_service_interface_1.HttpsService),this.logService=this.serviceProvider.getService(log_service_1.LogServiceImpl)},e.prototype.getShoppingCarts=function(t){return void 0===t&&(t=[]),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(shopping_cart_1.ShoppingCart.fromAPIResponse,this.httpsService,"carts",https_service_interface_1.BACKEND_SERVICE.CSA,t)},e.prototype.createEmptyShoppingCart=function(t){return this.httpsService.post("carts",t,[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(t){return shopping_cart_1.ShoppingCart.fromAPIResponse(t)})))},e.prototype.getShoppingCart=function(t){return this.httpsService.get("carts/".concat(t),[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(t){return shopping_cart_1.ShoppingCart.fromAPIResponse(t)})))},e.prototype.getShoppingCartParts=function(t,e){return void 0===e&&(e=[]),core_1.PaginatedRequestServiceFactory.generatePaginatedRequestService(shopping_cart_1.ShoppingCart.fromPartAPIResponse,this.httpsService,"carts/".concat(t,"/parts"),https_service_interface_1.BACKEND_SERVICE.CSA,e)},e.prototype.updateShoppingCartPart=function(t,e,r){var i=this;return this.httpsService.put("carts/".concat(t,"/parts/").concat(e.item_id),e,[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.tap)((function(){i.dispatchLogService(log_1.EVENT.SHOPPING_CART_ADD_PART,{partium_id:e.item_id,quantity:e.quantity,shopping_cart_id:t,searchSessionId:null==r?void 0:r.searchSessionId},r)})))},e.prototype.requestShoppingCartOffer=function(t,e){return this.httpsService.post("carts/".concat(t,"/actions/request-offer"),{language_ui:e},[],https_service_interface_1.BACKEND_SERVICE.CSA)},e.prototype.saveShoppingCartEcrs=function(t,e){var r=this,i=[];return t.forEach((function(t){i.push(r.httpsService.put("requests/".concat(t.item_id,"/quantity/"),{quantity:t.quantity},[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.map)((function(t){return csa_request_1.CSARequest.fromAPIResponse(t)}))))})),(0,rxjs_1.forkJoin)(i)},e.prototype.saveShoppingCartParts=function(t,e,r){var i=e.map((function(t){return{item_id:t.item_id,quantity:t.quantity,bom_context:t.bom_context}}));return this.httpsService.put("carts/".concat(t,"/parts"),i,[],https_service_interface_1.BACKEND_SERVICE.CSA)},e.prototype.addPart=function(t,e,r){var i=this,o={item_id:e.item_id,quantity:e.quantity,bom_context:null==e?void 0:e.bom_context};return this.httpsService.post("carts/".concat(t,"/parts"),o,[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.tap)((function(){return i.dispatchLogService(log_1.EVENT.SHOPPING_CART_ADD_PART,{partiumId:e.item_id,quantity:e.quantity,searchSessionId:null==r?void 0:r.searchSessionId,shopping_cart_id:t},r)})))},e.prototype.resetShoppingCart=function(t,e){var r=this;return this.httpsService.put("carts/".concat(t,"/parts"),[],[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.tap)((function(){r.dispatchLogService(log_1.EVENT.SHOPPING_CART_REMOVE_ALL_PARTS,{shopping_cart_id:t},e)})),(0,operators_1.catchError)((function(t){})))},e.prototype.deletePart=function(t,e,r){var i=this;return this.httpsService.delete("carts/".concat(t,"/parts/").concat(e),{},[],https_service_interface_1.BACKEND_SERVICE.CSA).pipe((0,operators_1.tap)((function(){return i.dispatchLogService(log_1.EVENT.SHOPPING_CART_REMOVE_PART,{partiumId:e,shopping_cart_id:t},r)})),(0,operators_1.map)((function(){return!0})))},e.prototype.exportShoppingCartAsEmail=function(t,e,r,i){return this.httpsService.post("carts/".concat(t,"/actions/email"),{recipients:e,subject:r,message:i},[],https_service_interface_1.BACKEND_SERVICE.CSA)},e.prototype.dispatchLogService=function(t,e,r){this.logService.logEvent(new log_1.EventLog({version:log_1.EVENTLOG_VERSIONS.V_2_0_0,organizationId:null==r?void 0:r.organizationId,interface:(null==r?void 0:r.eventInterface)||log_1.INTERFACE.API_ACCESS,event:t,data:e})).subscribe((function(){}),(function(t){console.log("Error while sending log event: ",t)}))},e=__decorate([(0,injection_identifier_1.InjectionIdentifier)("ShoppingCartService")],e)}(base_service_1.BaseService);exports.ShoppingCartServiceImpl=ShoppingCartServiceImpl;
|
package/datacuration/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
export * from './models/approve-image-submission-request';
|
|
3
3
|
export * from './models/approve-image-submission-response';
|
|
4
4
|
export * from './models/base-submission-response';
|
package/datacuration/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,s,t){void 0===t&&(t=s);var o=Object.getOwnPropertyDescriptor(r,s);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(e,t,o)}:function(e,r,s,t){void 0===t&&(t=s),e[t]=r[s]}),__exportStar=this&&this.__exportStar||function(e,r){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(r,s)||__createBinding(r,e,s)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./models/approve-image-submission-request"),exports),__exportStar(require("./models/approve-image-submission-response"),exports),__exportStar(require("./models/base-submission-response"),exports),__exportStar(require("./models/get-image-submissions-request"),exports),__exportStar(require("./models/get-image-submissions-response"),exports),__exportStar(require("./models/image-submission-content-type"),exports),__exportStar(require("./models/image-submission-status"),exports),__exportStar(require("./models/image-submission"),exports),__exportStar(require("./models/reject-image-submission-request"),exports),__exportStar(require("./models/reject-image-submission-response"),exports),__exportStar(require("./models/submit-images-request"),exports),__exportStar(require("./models/submit-images-response"),exports),__exportStar(require("./models/update-image-submission-request"),exports),__exportStar(require("./models/update-image-submission-response"),exports),__exportStar(require("./services/image-submission.service"),exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var ImageSubmissionContentType;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImageSubmissionContentType=void 0,function(e){e.PART="part",e.SPECIFICATIONS="specifications",e.OTHER="other"}(ImageSubmissionContentType||(exports.ImageSubmissionContentType=ImageSubmissionContentType={}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var ImageSubmissionStatus;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImageSubmissionStatus=void 0,function(e){e.PENDING="pending",e.APPROVED="approved",e.REJECTED="rejected"}(ImageSubmissionStatus||(exports.ImageSubmissionStatus=ImageSubmissionStatus={}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
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-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BaseService, DefaultGetPaginatedRequestPaginationContext } from '../../core';
|
|
4
4
|
import { SubmitImagesRequest } from '../models/submit-images-request';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var __extends=this&&this.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])},r(e,t)};return function(e,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=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},__assign.apply(this,arguments)},__decorate=this&&this.__decorate||function(r,e,t,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(o=r[a])&&(s=(i<3?o(s):i>3?o(e,t,s):o(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImageSubmissionServiceImpl=void 0;var rxjs_1=require("rxjs"),core_1=require("../../core"),ImageSubmissionServiceImpl=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return __extends(e,r),e.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},e.prototype.submit=function(r){var e=new FormData;return r.organization?r.images.length?r.files.length?(e.append("images",JSON.stringify({organization:r.organization,images:r.images})),r.files.forEach((function(r){e.append("files",r,r.name)})),this.httpsService.post("submissions/images/upload",e,void 0,core_1.BACKEND_SERVICE.DATACURATION,{"Content-Type":"multipart/form-data"})):(0,rxjs_1.throwError)((function(){return new Error("Files are required")})):(0,rxjs_1.throwError)((function(){return new Error("Images are required")})):(0,rxjs_1.throwError)((function(){return new Error("Organization is required")}))},e.prototype.loadInitialSubmissions=function(r){var e=this;return this.fetchSubmissionsPage(r).pipe((0,rxjs_1.map)((function(t){return{response:t,paginationContext:{initialRequest:__assign({},r),nextCursor:e.extractNextCursor(t)}}})))},e.prototype.loadMoreSubmissions=function(r){var e=this;if(!r.nextCursor)return(0,rxjs_1.throwError)((function(){return new Error("No more pages available")}));var t=__assign(__assign({},r.initialRequest),{cursor:r.nextCursor});return this.fetchSubmissionsPage(t).pipe((0,rxjs_1.map)((function(t){return{response:t,paginationContext:__assign(__assign({},r),{nextCursor:e.extractNextCursor(t)})}})))},e.prototype.approve=function(r){return r.organization?r.imageIds.length?this.httpsService.post("submissions/images/approve",r,void 0,core_1.BACKEND_SERVICE.DATACURATION):(0,rxjs_1.throwError)((function(){return new Error("Image IDs are required")})):(0,rxjs_1.throwError)((function(){return new Error("Organization is required")}))},e.prototype.reject=function(r){return r.organization?r.imageIds.length?this.httpsService.post("submissions/images/reject",r,void 0,core_1.BACKEND_SERVICE.DATACURATION):(0,rxjs_1.throwError)((function(){return new Error("Image IDs are required")})):(0,rxjs_1.throwError)((function(){return new Error("Organization is required")}))},e.prototype.update=function(r){return r.organization?r.images.length?this.httpsService.patch("submissions/images/update",r,void 0,core_1.BACKEND_SERVICE.DATACURATION):(0,rxjs_1.throwError)((function(){return new Error("Images are required")})):(0,rxjs_1.throwError)((function(){return new Error("Organization is required")}))},e.prototype.hasMoreResultsAvailable=function(r){return!!r.nextCursor},e.prototype.fetchSubmissionsPage=function(r){if(!r.language)return(0,rxjs_1.throwError)((function(){return new Error("Language is required")}));var e=Object.entries(r).map((function(r){var e,t=r[0],n=r[1];return(e={})[t]=n,e}));return this.httpsService.get("submissions/images",e,core_1.BACKEND_SERVICE.DATACURATION)},e.prototype.extractNextCursor=function(r){if(r.next)return new URL(r.next).searchParams.get("cursor")||void 0},e=__decorate([(0,core_1.InjectionIdentifier)("ImageSubmissionService")],e)}(core_1.BaseService);exports.ImageSubmissionServiceImpl=ImageSubmissionServiceImpl;
|
package/enrichment/index.d.ts
CHANGED
package/enrichment/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var i=Object.getOwnPropertyDescriptor(r,t);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,i)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=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/enrichment-job"),exports),__exportStar(require("./models/get-enrichment-job-parts-request"),exports),__exportStar(require("./models/enrichment-job-part"),exports),__exportStar(require("./services/data-enrichment.service"),exports),__exportStar(require("./models/create-enrichment-job-request"),exports),__exportStar(require("./models/create-enrichment-job-response"),exports),__exportStar(require("./models/submit-enrichment-job-request"),exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.enrichmentJobPartFromAPIResponse=exports.ENRICHMENT_JOB_PART_STATUS=void 0;var ENRICHMENT_JOB_PART_STATUS,core_1=require("../../core"),data_1=require("../../data");!function(e){e.VALID="valid",e.INVALID="invalid"}(ENRICHMENT_JOB_PART_STATUS||(exports.ENRICHMENT_JOB_PART_STATUS=ENRICHMENT_JOB_PART_STATUS={}));var enrichmentJobPartFromAPIResponse=function(e){return{partiumId:e.partiumId,externalId:e.id,name:e.name,image:e.image?data_1.Image.fromFindAPIResponse(e.image,core_1.BACKEND_SERVICE.DATA):null,status:e.status}};exports.enrichmentJobPartFromAPIResponse=enrichmentJobPartFromAPIResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.enrichmentJobFromAPIResponse=exports.EnrichmentJobStatus=void 0;var EnrichmentJobStatus,core_1=require("../../core"),image_1=require("../../data/models/image");!function(e){e.SUBMITTED="submitted",e.IN_PROGRESS="in_progress",e.COMPLETED="completed",e.CANCELED="canceled"}(EnrichmentJobStatus||(exports.EnrichmentJobStatus=EnrichmentJobStatus={}));var enrichmentJobFromAPIResponse=function(e){return{id:e.jobId,title:e.title,description:e.description,partImages:e.thumbnails?e.thumbnails.map((function(e){return e?image_1.Image.fromFindAPIResponse(e,core_1.BACKEND_SERVICE.DATA):null})):[],status:e.status,requestDate:e.requestDate,partCount:e.partCount}};exports.enrichmentJobFromAPIResponse=enrichmentJobFromAPIResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
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)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},__assign.apply(this,arguments)},__decorate=this&&this.__decorate||function(t,r,e,n){var o,i=arguments.length,s=i<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(r,e,s):o(r,e))||s);return i>3&&s&&Object.defineProperty(r,e,s),s};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DataEnrichmentServiceImpl=void 0;var rxjs_1=require("rxjs"),core_1=require("../../core"),enrichment_job_1=require("../models/enrichment-job"),enrichment_job_part_1=require("../models/enrichment-job-part"),DataEnrichmentServiceImpl=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return __extends(r,t),r.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},r.prototype.loadEnrichmentJobs=function(t){return this.fetchEnrichmentJobsPage(t).pipe((0,rxjs_1.map)((function(r){var e=r.jobs,n=r.nextCursor;return{jobs:e,paginationContext:{initialRequest:t,nextCursor:n}}})))},r.prototype.loadMoreEnrichmentJobs=function(t){if(!t.nextCursor)return(0,rxjs_1.throwError)((function(){return new core_1.SdkError(core_1.SDK_ERROR_CODES.NO_PAGINATION_CURSOR_AVAILABLE,null,"No cursor available")}));var r=__assign(__assign({},t.initialRequest),{cursor:t.nextCursor});return this.fetchEnrichmentJobsPage(r).pipe((0,rxjs_1.map)((function(r){var e=r.jobs,n=r.nextCursor;return{jobs:e,paginationContext:__assign(__assign({},t),{nextCursor:n})}})))},r.prototype.hasMoreEnrichmentJobsAvailable=function(t){return!!t.nextCursor},r.prototype.getEnrichmentJob=function(t){return this.httpsService.get("jobs/".concat(t.jobId),[],core_1.BACKEND_SERVICE.DATA_ENRICHMENT).pipe((0,rxjs_1.map)((function(t){return(0,enrichment_job_1.enrichmentJobFromAPIResponse)(t)})))},r.prototype.loadEnrichmentJobParts=function(t){return this.fetchEnrichmentJobPartsPage(t).pipe((0,rxjs_1.map)((function(r){var e=r.parts,n=r.nextCursor;return{parts:e,paginationContext:{initialRequest:t,nextCursor:n}}})))},r.prototype.loadMoreEnrichmentJobParts=function(t){if(!t.nextCursor)return(0,rxjs_1.throwError)((function(){return new core_1.SdkError(core_1.SDK_ERROR_CODES.NO_PAGINATION_CURSOR_AVAILABLE,null,"No cursor available")}));var r=__assign(__assign({},t.initialRequest),{cursor:t.nextCursor});return this.fetchEnrichmentJobPartsPage(r).pipe((0,rxjs_1.map)((function(r){var e=r.parts,n=r.nextCursor;return{parts:e,paginationContext:__assign(__assign({},t),{nextCursor:n})}})))},r.prototype.hasMoreEnrichmentJobPartsAvailable=function(t){return!!t.nextCursor},r.prototype.createEnrichmentJob=function(t){var r=new FormData;return r.append("file",t.csvFile),this.httpsService.post("jobs/upload",r,[],core_1.BACKEND_SERVICE.DATA_ENRICHMENT,{"Content-Type":"multipart/form-data"})},r.prototype.submitEnrichmentJob=function(t){return this.httpsService.post("jobs/".concat(t.jobId,"/submit"),t,[],core_1.BACKEND_SERVICE.DATA_ENRICHMENT)},r.prototype.fetchEnrichmentJobsPage=function(t){var r=this,e=Object.entries(t).map((function(t){var r,e=t[0],n=t[1];return(r={})[e]=n,r}));return this.httpsService.get("jobs",e,core_1.BACKEND_SERVICE.DATA_ENRICHMENT).pipe((0,rxjs_1.map)((function(t){var e;return{jobs:null===(e=t.results)||void 0===e?void 0:e.map((function(t){return(0,enrichment_job_1.enrichmentJobFromAPIResponse)(t)})),nextCursor:r.extractNextCursor(t)}})))},r.prototype.fetchEnrichmentJobPartsPage=function(t){var r=this,e=Object.entries(t).map((function(t){var r,e=t[0],n=t[1];return(r={})[e]=n,r}));return this.httpsService.get("jobs/".concat(t.jobId,"/parts"),e,core_1.BACKEND_SERVICE.DATA_ENRICHMENT).pipe((0,rxjs_1.map)((function(t){var e;return{parts:null===(e=t.results)||void 0===e?void 0:e.map((function(t){return(0,enrichment_job_part_1.enrichmentJobPartFromAPIResponse)(t)})),nextCursor:r.extractNextCursor(t)}})))},r.prototype.extractNextCursor=function(t){if(t.next)return new URL(t.next).searchParams.get("cursor")||void 0},r=__decorate([(0,core_1.InjectionIdentifier)("DataEnrichmentService")],r)}(core_1.BaseService);exports.DataEnrichmentServiceImpl=DataEnrichmentServiceImpl;
|
package/find/index.d.ts
CHANGED
package/find/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
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 a=Object.getOwnPropertyDescriptor(r,t);a&&!("get"in a?!r.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,s,a)}: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/tagable/i18n-tagable"),exports),__exportStar(require("./models/tagable/tagable-base"),exports),__exportStar(require("./models/tagable/tagable"),exports),__exportStar(require("./models/text-search-result-item/text-search-result-item-unknown"),exports),__exportStar(require("./models/text-search-result-item/text-search-result-item-part"),exports),__exportStar(require("./models/text-search-result-item/text-search-result-item-document"),exports),__exportStar(require("./models/text-search-result-item/text-search-result-item-recent-query"),exports),__exportStar(require("./models/text-search-result-item/text-search-error"),exports),__exportStar(require("./models/text-search-result-item/text-search-result-item"),exports),__exportStar(require("./models/smart-filter"),exports),__exportStar(require("./models/search-status/text-search-status"),exports),__exportStar(require("./models/search-status/cv-search-status"),exports),__exportStar(require("./models/search-status/search-filter-status"),exports),__exportStar(require("./models/search-status/search-status"),exports),__exportStar(require("./models/search-status/tag-search-status"),exports),__exportStar(require("./models/search-filter"),exports),__exportStar(require("./models/text-search-manipulator"),exports),__exportStar(require("./models/assets/asset"),exports),__exportStar(require("./models/text-search-config"),exports),__exportStar(require("./models/search-session-log-object"),exports),__exportStar(require("./models/search-tag"),exports),__exportStar(require("./models/search-result-status"),exports),__exportStar(require("./models/search-input"),exports),__exportStar(require("./models/search-output"),exports),__exportStar(require("./services/search-filter.service"),exports),__exportStar(require("./services/search/search.service"),exports),__exportStar(require("./services/search/search-result.service"),exports),__exportStar(require("./services/search/text-search.service"),exports),__exportStar(require("./services/search/cv-search.service"),exports),__exportStar(require("./services/filter-uploaders/filter-uploader"),exports),__exportStar(require("./services/filter-uploaders/update-filters-uploader"),exports),__exportStar(require("./services/asset.service"),exports),__exportStar(require("./services/search/tag-search.service"),exports),__exportStar(require("./services/search/recent-text-search-queries.service"),exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var ASSET_STATUS;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Asset=exports.ASSET_STATUS=void 0,function(t){t[t.NEW=0]="NEW",t[t.PREPARING=1]="PREPARING",t[t.PREPARED=2]="PREPARED",t[t.UPLOADING=3]="UPLOADING",t[t.UPLOADED=4]="UPLOADED",t[t.VERIFYING=5]="VERIFYING",t[t.VERIFIED=6]="VERIFIED",t[t.ERROR=7]="ERROR"}(ASSET_STATUS||(exports.ASSET_STATUS=ASSET_STATUS={}));var Asset=function(){function t(t){this.file=t,this.status=ASSET_STATUS.NEW}return t.prototype.setStatus=function(t){this.status=t},t.prototype.getStatus=function(){return this.status},t}();exports.Asset=Asset;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var SearchFilterType,__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)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.KvpHardFilter=exports.HierarchyPartiumIdFilter=exports.HierarchyFilter=exports.ExternalPayloadFilter=exports.IncludeExcludeFilter=exports.CategoryFilter=exports.SearchFilter=exports.SearchFilterType=void 0,function(e){e.CategoryFilter="category",e.IncludeExcludeFilter="includeExclude",e.KvpHardFilter="kvpHardFilter"}(SearchFilterType||(exports.SearchFilterType=SearchFilterType={}));var SearchFilter=function(){function e(e,t){this.key=e,this.type=t}return e.prototype.equals=function(e){return this.key===e.key},e.prototype.isEmpty=function(){return!0},e}();exports.SearchFilter=SearchFilter;var CategoryFilter=function(e){function t(t,r,i){var n=e.call(this,t,SearchFilterType.CategoryFilter)||this;return n.value=r,n.label=i,n}return __extends(t,e),t.prototype.equals=function(e){return e instanceof t&&(this.key==e.key&&this.value==e.value)},t}(SearchFilter);exports.CategoryFilter=CategoryFilter;var IncludeExcludeFilter=function(e){function t(t,r,i,n){var l=e.call(this,t,SearchFilterType.IncludeExcludeFilter)||this;return l.include=r,l.exclude=i,l.label=n,l}return __extends(t,e),t.prototype.equals=function(e){if(!(e instanceof t))return!1;if(this.key!==e.key)return!1;if(this.include.length!==e.include.length)return!1;for(var r=0,i=this.include;r<i.length;r++){var n=i[r];if(!e.include.includes(n))return!1}if(this.exclude.length!==e.exclude.length)return!1;for(var l=0,u=this.exclude;l<u.length;l++){n=u[l];if(!e.exclude.includes(n))return!1}return!0},t.prototype.isEmpty=function(){var e;return!((null===(e=this.include)||void 0===e?void 0:e.length)>0)},t}(SearchFilter);exports.IncludeExcludeFilter=IncludeExcludeFilter;var ExternalPayloadFilter=function(e){function t(t,r,i){return e.call(this,"external_payload."+t,r,i)||this}return __extends(t,e),t}(CategoryFilter);exports.ExternalPayloadFilter=ExternalPayloadFilter;var HierarchyFilter=function(e){function t(t,r){return e.call(this,"hierarchy-partium-id",t,r)||this}return __extends(t,e),t}(CategoryFilter);exports.HierarchyFilter=HierarchyFilter;var HierarchyPartiumIdFilter=function(e){function t(r,i,n){return void 0===i&&(i=[]),e.call(this,t.KEY,r,i,n)||this}return __extends(t,e),t.KEY="hierarchy-partium-id",t}(IncludeExcludeFilter);exports.HierarchyPartiumIdFilter=HierarchyPartiumIdFilter;var KvpHardFilter=function(e){function t(t,r,i){var n=e.call(this,t,SearchFilterType.KvpHardFilter)||this;return n.values=i,n.label=r,n}return __extends(t,e),t.prototype.equals=function(e){if(!(e instanceof t))return!1;if(this.key!==e.key)return!1;if(this.label!==e.label)return!1;if(this.values.length!==e.values.length)return!1;for(var r=0,i=this.values;r<i.length;r++){var n=i[r];if(!e.values.includes(n))return!1}return!0},t.prototype.isEmpty=function(){var e;return!((null===(e=this.values)||void 0===e?void 0:e.length)>0)},t}(SearchFilter);exports.KvpHardFilter=KvpHardFilter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
import { PFile } from '../../core';
|
|
3
3
|
import { TextSearchQueries } from '../services/search/text-search.service';
|
|
4
4
|
import { ImageCropArea } from './search-status/cv-search-status';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var SEARCH_RESULT_STATUS,ASYNC_TAG_STATUS,ASYNC_RESULT_STATUS,SMART_FILTERS_STATUS;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchResultStatus=exports.SMART_FILTERS_STATUS=exports.ASYNC_RESULT_STATUS=exports.ASYNC_TAG_STATUS=exports.SEARCH_RESULT_STATUS=void 0,function(S){S.CREATED="created",S.RUNNING="running",S.FINISHED="finished"}(SEARCH_RESULT_STATUS||(exports.SEARCH_RESULT_STATUS=SEARCH_RESULT_STATUS={})),function(S){S.PENDING="pending",S.RECEIVED="received",S.WILL_NOT_RECEIVE="will-not-receive"}(ASYNC_TAG_STATUS||(exports.ASYNC_TAG_STATUS=ASYNC_TAG_STATUS={})),function(S){S.PENDING="pending",S.RECEIVED="received",S.WILL_NOT_RECEIVE="will-not-receive"}(ASYNC_RESULT_STATUS||(exports.ASYNC_RESULT_STATUS=ASYNC_RESULT_STATUS={})),function(S){S.PENDING="pending",S.RECEIVED="received",S.WILL_NOT_RECEIVE="will-not-receive"}(SMART_FILTERS_STATUS||(exports.SMART_FILTERS_STATUS=SMART_FILTERS_STATUS={}));var SearchResultStatus=function(S){Object.assign(this,S)};exports.SearchResultStatus=SearchResultStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";var SEARCH_SESSION_LOG_OBJECT_TYPE;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchSessionLogObject=exports.SEARCH_SESSION_LOG_OBJECT_TYPE=void 0,function(e){e.QUESTION="question",e.CODE="code",e.FEEDBACK="feedback"}(SEARCH_SESSION_LOG_OBJECT_TYPE||(exports.SEARCH_SESSION_LOG_OBJECT_TYPE=SEARCH_SESSION_LOG_OBJECT_TYPE={}));var SearchSessionLogObject=function(e){Object.assign(this,e)};exports.SearchSessionLogObject=SearchSessionLogObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CVSearchStatus=void 0;var CVSearchStatus=function(){function t(){}return t.prototype.wasStarted=function(){return!!this.assetId},t.prototype.setImage=function(t){this.cvImage=t,this.assetId=null==t?void 0:t.referenceId},t}();exports.CVSearchStatus=CVSearchStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchFilterStatus=void 0;var SearchFilterStatus=function(){function t(){this.filters=[],this.filtersMap={},this.excludedHierarchyNodes={}}return t.prototype.wasStarted=function(){return!(0===Object.keys(this.excludedHierarchyNodes).length&&0===this.filters.length)},t}();exports.SearchFilterStatus=SearchFilterStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchStatus=void 0;var text_search_status_1=require("./text-search-status"),cv_search_status_1=require("./cv-search-status"),search_filter_status_1=require("./search-filter-status"),tag_search_status_1=require("./tag-search-status"),search_result_status_1=require("../search-result-status"),SearchStatus=function(){function t(t){this.searchDomainId=t,this.searchLanguage=null,this.textSearchStatus=new text_search_status_1.TextSearchStatus,this.cvSearchStatus=new cv_search_status_1.CVSearchStatus,this.filterStatus=new search_filter_status_1.SearchFilterStatus,this.tagSearchStatus=new tag_search_status_1.TagSearchStatus,this.curResultList=[],this.searchResultStatus=new search_result_status_1.SearchResultStatus({status:search_result_status_1.SEARCH_RESULT_STATUS.CREATED})}return t.prototype.wasStarted=function(t){var s=this;return(t||["text","cv","filter","tag"]).some((function(t){switch(t){case"text":return s.textSearchStatus.wasStarted();case"cv":return s.cvSearchStatus.wasStarted();case"filter":return s.filterStatus.wasStarted();case"tag":return s.tagSearchStatus.wasStarted()}return!1}))},t}();exports.SearchStatus=SearchStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TagSearchStatus=void 0;var TagSearchStatus=function(){function t(){}return t.prototype.wasStarted=function(){return this.proposedSearchTags&&this.proposedSearchTags.length>0},t}();exports.TagSearchStatus=TagSearchStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchStatus=void 0;var TextSearchStatus=function(){function t(){}return t.prototype.wasStarted=function(){return!!this.searchQuery||Object.values(this.searchQueries).some((function(t){return t}))},t}();exports.TextSearchStatus=TextSearchStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Copyright © 2022-
|
|
1
|
+
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SearchTag=void 0;var SearchTag=function(e){this.isAsync=!1,Object.assign(this,e)};exports.SearchTag=SearchTag;
|