@partium/js-sdk 15.2.0 → 15.4.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.
@@ -47,7 +47,9 @@ export interface PartDataSupplierDiscoveryResponse {
47
47
  */
48
48
  export declare enum PartDataIdentifiersStatus {
49
49
  NOT_REQUESTED = "not_requested",
50
- SUCCESS = "success"
50
+ IN_PROGRESS = "in_progress",
51
+ SUCCESS = "success",
52
+ ERROR = "error"
51
53
  }
52
54
  /**
53
55
  * The identifiers label of a part.
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";var PartDataSupplierDiscoveryStatus,PartDataIdentifiersStatus,PartDataIdentifierLabel,PartDataIdentifierOrigin;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartDataIdentifierOrigin=exports.PartDataIdentifierLabel=exports.PartDataIdentifiersStatus=exports.PartDataSupplierDiscoveryStatus=void 0,function(t){t.NOT_REQUESTED="not_requested",t.IN_PROGRESS="in_progress",t.SUCCESS="success",t.ERROR="error"}(PartDataSupplierDiscoveryStatus||(exports.PartDataSupplierDiscoveryStatus=PartDataSupplierDiscoveryStatus={})),function(t){t.NOT_REQUESTED="not_requested",t.SUCCESS="success"}(PartDataIdentifiersStatus||(exports.PartDataIdentifiersStatus=PartDataIdentifiersStatus={})),function(t){t.UPC="upc",t.SUPPLIER_NAME="supplier_name",t.SUPPLIER_ID="supplier_id",t.STANDARD="standard",t.SKU="sku",t.SERIAL_NUMBER="serial_number",t.OPM_NAME="opm_name",t.OPM_ID="opm_id",t.OEM_NAME="oem_name",t.OEM_ID="oem_id",t.MANUFACTURER_PART_NUMBER="manufacturer_part_number",t.MANUFACTURER_NAME="manufacturer_name",t.IDENTIFIER="identifier",t.EAN="ean",t.ARTICLE_BRAND="article_brand",t.ARTICLE_NUMBER="article_number"}(PartDataIdentifierLabel||(exports.PartDataIdentifierLabel=PartDataIdentifierLabel={})),function(t){t.INGESTED="ingested",t.EXTRACTED_FROM_PART_DATA="extracted_from_part_data",t.EXTRACTED_FROM_ENRICHMENT="extracted_from_enrichment"}(PartDataIdentifierOrigin||(exports.PartDataIdentifierOrigin=PartDataIdentifierOrigin={}));
2
+ "use strict";var PartDataSupplierDiscoveryStatus,PartDataIdentifiersStatus,PartDataIdentifierLabel,PartDataIdentifierOrigin;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartDataIdentifierOrigin=exports.PartDataIdentifierLabel=exports.PartDataIdentifiersStatus=exports.PartDataSupplierDiscoveryStatus=void 0,function(t){t.NOT_REQUESTED="not_requested",t.IN_PROGRESS="in_progress",t.SUCCESS="success",t.ERROR="error"}(PartDataSupplierDiscoveryStatus||(exports.PartDataSupplierDiscoveryStatus=PartDataSupplierDiscoveryStatus={})),function(t){t.NOT_REQUESTED="not_requested",t.IN_PROGRESS="in_progress",t.SUCCESS="success",t.ERROR="error"}(PartDataIdentifiersStatus||(exports.PartDataIdentifiersStatus=PartDataIdentifiersStatus={})),function(t){t.UPC="upc",t.SUPPLIER_NAME="supplier_name",t.SUPPLIER_ID="supplier_id",t.STANDARD="standard",t.SKU="sku",t.SERIAL_NUMBER="serial_number",t.OPM_NAME="opm_name",t.OPM_ID="opm_id",t.OEM_NAME="oem_name",t.OEM_ID="oem_id",t.MANUFACTURER_PART_NUMBER="manufacturer_part_number",t.MANUFACTURER_NAME="manufacturer_name",t.IDENTIFIER="identifier",t.EAN="ean",t.ARTICLE_BRAND="article_brand",t.ARTICLE_NUMBER="article_number"}(PartDataIdentifierLabel||(exports.PartDataIdentifierLabel=PartDataIdentifierLabel={})),function(t){t.INGESTED="ingested",t.EXTRACTED_FROM_PART_DATA="extracted_from_part_data",t.EXTRACTED_FROM_ENRICHMENT="extracted_from_enrichment"}(PartDataIdentifierOrigin||(exports.PartDataIdentifierOrigin=PartDataIdentifierOrigin={}));
@@ -1,4 +1,5 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
+ import { EnrichmentJobType } from './enrichment-job';
2
3
  /**
3
4
  * Request to add metadata to an enrichment job and set it's status from "draft" to "submitted"
4
5
  */
@@ -13,6 +14,13 @@ export interface SubmitEnrichmentJobRequest {
13
14
  title: string;
14
15
  /**
15
16
  * The description of the enrichment job.
17
+ * Required for `custom_enrichment` jobs.
18
+ * Optional for predefined jobs (`general_part_attributes`, `supplier_discovery`).
16
19
  */
17
- description: string;
20
+ description?: string;
21
+ /**
22
+ * Optional type of the enrichment job.
23
+ * When provided, it overrides the type set during upload.
24
+ */
25
+ jobType?: EnrichmentJobType;
18
26
  }
@@ -72,7 +72,9 @@ export interface DataEnrichmentService {
72
72
  createEnrichmentJob(request: CreateEnrichmentJobRequest): Observable<CreateEnrichmentJobResponse>;
73
73
  /**
74
74
  * Submit the "draft" enrichment job and cause it's status to change to "submitted"
75
- * @param request - The request containing the id of the enrichment job to submit.
75
+ * @param request - The request containing the id and metadata of the enrichment job to submit.
76
+ * `jobType` is optional and overrides the type set during upload when provided.
77
+ * `description` requirement depends on the effective type (request `jobType` override or uploaded job type).
76
78
  * @returns An Observable that emits the response
77
79
  */
78
80
  submitEnrichmentJob(request: SubmitEnrichmentJobRequest): Observable<void>;
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- export declare const SDK_VERSION_NUMBER = "15.2.0";
2
+ export declare const SDK_VERSION_NUMBER = "15.4.0";
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SDK_VERSION_NUMBER=void 0,exports.SDK_VERSION_NUMBER="15.2.0";
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SDK_VERSION_NUMBER=void 0,exports.SDK_VERSION_NUMBER="15.4.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partium/js-sdk",
3
- "version": "15.2.0",
3
+ "version": "15.4.0",
4
4
  "author": "Partium Inc.",
5
5
  "license": "See LICENSE.txt",
6
6
  "description": "The Partium Find SDK enables integration of Partium’s parts and materials search capabilities into JavaScript-based applications.",