@partium/js-sdk 14.17.0 → 15.1.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.
@@ -26,6 +26,8 @@ export interface OrganizationFromAPI {
26
26
  partRelationsEnabled?: boolean;
27
27
  catalogOptimizationEnabled?: boolean;
28
28
  dataEnrichmentEnabled?: boolean;
29
+ shoppingCartEnabled?: boolean;
30
+ inquiriesEnabled?: boolean;
29
31
  };
30
32
  ci?: {
31
33
  format?: string;
@@ -84,6 +86,8 @@ export declare class OrganizationFeatureFlags {
84
86
  partRelationsEnabled?: boolean;
85
87
  catalogOptimizationEnabled?: boolean;
86
88
  dataEnrichmentEnabled?: boolean;
89
+ shoppingCartEnabled?: boolean;
90
+ inquiriesEnabled?: boolean;
87
91
  }
88
92
  export declare class OrganizationCI {
89
93
  format?: string;
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";var __extends=this&&this.__extends||function(){var a=function(n,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(a[e]=n[e])},a(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 i(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(a){for(var n,e=1,i=arguments.length;e<i;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(a[o]=n[o]);return a},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Organization=exports.OrganizationCI=exports.OrganizationFeatureFlags=exports.OrganizationConfig=exports.THEME=void 0;var THEME,api_object_1=require("./api-object"),lodash_1=require("lodash");!function(a){a.LIGHT="light",a.DARK="dark"}(THEME||(exports.THEME=THEME={}));var OrganizationConfig=function(){};exports.OrganizationConfig=OrganizationConfig;var OrganizationFeatureFlags=function(){};exports.OrganizationFeatureFlags=OrganizationFeatureFlags;var OrganizationCI=function(){};exports.OrganizationCI=OrganizationCI;var Organization=function(a){function n(n){var e=a.call(this)||this;return Object.assign(e,n),e}return __extends(n,a),n.fromAPIResponse=function(a){var e,i,o,t,r=new n({partiumId:a.partiumId,searchDomainId:a.partiumId,name:a.name,displayName:a.displayName||a.name,requiresAdditionalAuthentication:a.requiresAdditionalAuthentication,config:this.mapOrgConfig(a),featureFlags:this.mapFeatureFlags(a),ci:this.mapCI(a),csa:{emailAddress:null===(i=null===(e=a.config)||void 0===e?void 0:e.ecr)||void 0===i?void 0:i.email,contactPhone:null===(t=null===(o=a.config)||void 0===o?void 0:o.ecr)||void 0===t?void 0:t.contactPhoneNumber}}),l=this.mapSubOrgs(a);return l&&(r.subOrgs=l),r},n.mapOrgConfig=function(a){var n,e,i,o,t,r,l,u,s,d,g,c,v,f,b,p,h,m;return{defaultSearchLanguage:((null===(n=a.config)||void 0===n?void 0:n.defaultSearchLanguage)||"").toLowerCase(),defaultLanguage:((null===(e=a.config)||void 0===e?void 0:e.defaultSearchLanguage)||"").toLowerCase(),availableSearchLanguages:((null===(i=a.config)||void 0===i?void 0:i.availableSearchLanguages)||[]).map((function(a){return a.toLowerCase()})),availableLanguages:((null===(o=a.config)||void 0===o?void 0:o.availableSearchLanguages)||[]).map((function(a){return a.toLowerCase()})),availableUiLanguages:((null===(r=null===(t=a.config)||void 0===t?void 0:t.availableUiLanguages)||void 0===r?void 0:r.length)>0?null===(l=a.config)||void 0===l?void 0:l.availableUiLanguages:(null===(u=a.config)||void 0===u?void 0:u.availableSearchLanguages)||[]).map((function(a){return a.toLowerCase()})),smmsLanguages:((null===(s=a.config)||void 0===s?void 0:s.smmsLanguages)||[]).map((function(a){return a.toLowerCase()})),ecr:{email:null===(g=null===(d=a.config)||void 0===d?void 0:d.ecr)||void 0===g?void 0:g.email,contactPhoneNumber:null===(v=null===(c=a.config)||void 0===c?void 0:c.ecr)||void 0===v?void 0:v.contactPhoneNumber},csaEnabled:null===(f=a.featureFlags)||void 0===f?void 0:f.ecrEnabled,codeScannerEnabled:null===(b=a.featureFlags)||void 0===b?void 0:b.codeScannerEnabled,hybridTextSearchEnabled:null===(p=a.featureFlags)||void 0===p?void 0:p.hybridTextSearchEnabled,assemblyNavigationEnabled:null===(h=a.featureFlags)||void 0===h?void 0:h.assemblyNavigationEnabled,trackingEnabled:null===(m=a.featureFlags)||void 0===m?void 0:m.trackingEnabled}},n.mapFeatureFlags=function(a){var n,e,i,o,t,r,l,u,s,d;return{assemblyNavigationEnabled:null===(n=a.featureFlags)||void 0===n?void 0:n.assemblyNavigationEnabled,imageSearchEnabled:null===(e=a.featureFlags)||void 0===e?void 0:e.imageSearchEnabled,codeScannerEnabled:null===(i=a.featureFlags)||void 0===i?void 0:i.codeScannerEnabled,hybridTextSearchEnabled:null===(o=a.featureFlags)||void 0===o?void 0:o.hybridTextSearchEnabled,ecrEnabled:null===(t=a.featureFlags)||void 0===t?void 0:t.ecrEnabled,trackingEnabled:null===(r=a.featureFlags)||void 0===r?void 0:r.trackingEnabled,enrichedPartMetadataEnabled:null===(l=a.featureFlags)||void 0===l?void 0:l.enrichedPartMetadataEnabled,partRelationsEnabled:null===(u=a.featureFlags)||void 0===u?void 0:u.partRelationsEnabled,catalogOptimizationEnabled:null===(s=a.featureFlags)||void 0===s?void 0:s.catalogOptimizationEnabled,dataEnrichmentEnabled:null===(d=a.featureFlags)||void 0===d?void 0:d.dataEnrichmentEnabled}},n.mapCI=function(a){var n,e,i,o;return{format:null===(n=a.ci)||void 0===n?void 0:n.format,theme:null===(e=a.ci)||void 0===e?void 0:e.theme,colors:null===(i=a.ci)||void 0===i?void 0:i.colors,assets:null===(o=a.ci)||void 0===o?void 0:o.assets}},n.mapSubOrgs=function(a){var e,i=__assign(__assign({},a),{subOrgs:null});return null===(e=a.subOrgs)||void 0===e?void 0:e.map((function(a){return n.fromAPIResponse(__assign(__assign({},(0,lodash_1.mergeWith)({},i,a,(function(a,n){if(Array.isArray(a))return n}))),{subOrgs:null}))}))},n}(api_object_1.APIObject);exports.Organization=Organization;
2
+ "use strict";var __extends=this&&this.__extends||function(){var a=function(n,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(a[e]=n[e])},a(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 i(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(a){for(var n,e=1,i=arguments.length;e<i;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(a[o]=n[o]);return a},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Organization=exports.OrganizationCI=exports.OrganizationFeatureFlags=exports.OrganizationConfig=exports.THEME=void 0;var THEME,api_object_1=require("./api-object"),lodash_1=require("lodash");!function(a){a.LIGHT="light",a.DARK="dark"}(THEME||(exports.THEME=THEME={}));var OrganizationConfig=function(){};exports.OrganizationConfig=OrganizationConfig;var OrganizationFeatureFlags=function(){};exports.OrganizationFeatureFlags=OrganizationFeatureFlags;var OrganizationCI=function(){};exports.OrganizationCI=OrganizationCI;var Organization=function(a){function n(n){var e=a.call(this)||this;return Object.assign(e,n),e}return __extends(n,a),n.fromAPIResponse=function(a){var e,i,o,t,r=new n({partiumId:a.partiumId,searchDomainId:a.partiumId,name:a.name,displayName:a.displayName||a.name,requiresAdditionalAuthentication:a.requiresAdditionalAuthentication,config:this.mapOrgConfig(a),featureFlags:this.mapFeatureFlags(a),ci:this.mapCI(a),csa:{emailAddress:null===(i=null===(e=a.config)||void 0===e?void 0:e.ecr)||void 0===i?void 0:i.email,contactPhone:null===(t=null===(o=a.config)||void 0===o?void 0:o.ecr)||void 0===t?void 0:t.contactPhoneNumber}}),l=this.mapSubOrgs(a);return l&&(r.subOrgs=l),r},n.mapOrgConfig=function(a){var n,e,i,o,t,r,l,u,d,s,g,c,v,f,b,p,h,m;return{defaultSearchLanguage:((null===(n=a.config)||void 0===n?void 0:n.defaultSearchLanguage)||"").toLowerCase(),defaultLanguage:((null===(e=a.config)||void 0===e?void 0:e.defaultSearchLanguage)||"").toLowerCase(),availableSearchLanguages:((null===(i=a.config)||void 0===i?void 0:i.availableSearchLanguages)||[]).map((function(a){return a.toLowerCase()})),availableLanguages:((null===(o=a.config)||void 0===o?void 0:o.availableSearchLanguages)||[]).map((function(a){return a.toLowerCase()})),availableUiLanguages:((null===(r=null===(t=a.config)||void 0===t?void 0:t.availableUiLanguages)||void 0===r?void 0:r.length)>0?null===(l=a.config)||void 0===l?void 0:l.availableUiLanguages:(null===(u=a.config)||void 0===u?void 0:u.availableSearchLanguages)||[]).map((function(a){return a.toLowerCase()})),smmsLanguages:((null===(d=a.config)||void 0===d?void 0:d.smmsLanguages)||[]).map((function(a){return a.toLowerCase()})),ecr:{email:null===(g=null===(s=a.config)||void 0===s?void 0:s.ecr)||void 0===g?void 0:g.email,contactPhoneNumber:null===(v=null===(c=a.config)||void 0===c?void 0:c.ecr)||void 0===v?void 0:v.contactPhoneNumber},csaEnabled:null===(f=a.featureFlags)||void 0===f?void 0:f.ecrEnabled,codeScannerEnabled:null===(b=a.featureFlags)||void 0===b?void 0:b.codeScannerEnabled,hybridTextSearchEnabled:null===(p=a.featureFlags)||void 0===p?void 0:p.hybridTextSearchEnabled,assemblyNavigationEnabled:null===(h=a.featureFlags)||void 0===h?void 0:h.assemblyNavigationEnabled,trackingEnabled:null===(m=a.featureFlags)||void 0===m?void 0:m.trackingEnabled}},n.mapFeatureFlags=function(a){var n,e,i,o,t,r,l,u,d,s,g,c;return{assemblyNavigationEnabled:null===(n=a.featureFlags)||void 0===n?void 0:n.assemblyNavigationEnabled,imageSearchEnabled:null===(e=a.featureFlags)||void 0===e?void 0:e.imageSearchEnabled,codeScannerEnabled:null===(i=a.featureFlags)||void 0===i?void 0:i.codeScannerEnabled,hybridTextSearchEnabled:null===(o=a.featureFlags)||void 0===o?void 0:o.hybridTextSearchEnabled,ecrEnabled:null===(t=a.featureFlags)||void 0===t?void 0:t.ecrEnabled,trackingEnabled:null===(r=a.featureFlags)||void 0===r?void 0:r.trackingEnabled,enrichedPartMetadataEnabled:null===(l=a.featureFlags)||void 0===l?void 0:l.enrichedPartMetadataEnabled,partRelationsEnabled:null===(u=a.featureFlags)||void 0===u?void 0:u.partRelationsEnabled,catalogOptimizationEnabled:null===(d=a.featureFlags)||void 0===d?void 0:d.catalogOptimizationEnabled,dataEnrichmentEnabled:null===(s=a.featureFlags)||void 0===s?void 0:s.dataEnrichmentEnabled,shoppingCartEnabled:null===(g=a.featureFlags)||void 0===g?void 0:g.shoppingCartEnabled,inquiriesEnabled:null===(c=a.featureFlags)||void 0===c?void 0:c.inquiriesEnabled}},n.mapCI=function(a){var n,e,i,o;return{format:null===(n=a.ci)||void 0===n?void 0:n.format,theme:null===(e=a.ci)||void 0===e?void 0:e.theme,colors:null===(i=a.ci)||void 0===i?void 0:i.colors,assets:null===(o=a.ci)||void 0===o?void 0:o.assets}},n.mapSubOrgs=function(a){var e,i=__assign(__assign({},a),{subOrgs:null});return null===(e=a.subOrgs)||void 0===e?void 0:e.map((function(a){return n.fromAPIResponse(__assign(__assign({},(0,lodash_1.mergeWith)({},i,a,(function(a,n){if(Array.isArray(a))return n}))),{subOrgs:null}))}))},n}(api_object_1.APIObject);exports.Organization=Organization;
package/data/index.d.ts CHANGED
@@ -16,6 +16,9 @@ export * from './models/announcement';
16
16
  export * from './models/inquiry';
17
17
  export * from './models/mounting-location';
18
18
  export * from './models/part-enrichment-data';
19
+ export * from './models/get-part-data-request';
20
+ export * from './models/get-part-data-response';
21
+ export * from './models/part-data';
19
22
  export * from './services/part.service';
20
23
  export * from './services/part-enrichment.service';
21
24
  export * from './services/related-parts.service';
package/data/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
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);
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("./models/get-part-data-request"),exports),__exportStar(require("./models/get-part-data-response"),exports),__exportStar(require("./models/part-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);
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * The projection of the part data.
4
4
  */
5
- export type PartDataProjection = 'partiumId' | 'images';
5
+ export type PartDataProjection = 'partiumId' | 'images' | 'supplierDiscovery' | 'identifiers';
6
6
  /**
7
7
  * The request for the get part data request.
8
8
  */
@@ -20,6 +20,102 @@ export interface PartDataImage {
20
20
  */
21
21
  expireAt: string;
22
22
  }
23
+ /**
24
+ * The supplier discovery status of the part data.
25
+ */
26
+ export declare enum PartDataSupplierDiscoveryStatus {
27
+ NOT_REQUESTED = "not_requested",
28
+ IN_PROGRESS = "in_progress",
29
+ SUCCESS = "success",
30
+ ERROR = "error"
31
+ }
32
+ /**
33
+ * The supplier discovery data of a part.
34
+ */
35
+ export interface PartDataSupplierDiscoveryResponse {
36
+ /**
37
+ * The status of supplier discovery for the part.
38
+ */
39
+ supplierDiscoveryStatus: PartDataSupplierDiscoveryStatus;
40
+ /**
41
+ * The supplier discovery data for the part.
42
+ */
43
+ supplierDiscoveryData: string | null;
44
+ }
45
+ /**
46
+ * The identifiers status of the part data.
47
+ */
48
+ export declare enum PartDataIdentifiersStatus {
49
+ NOT_REQUESTED = "not_requested",
50
+ SUCCESS = "success"
51
+ }
52
+ /**
53
+ * The identifiers label of a part.
54
+ */
55
+ export declare enum PartDataIdentifierLabel {
56
+ UPC = "upc",
57
+ SUPPLIER_NAME = "supplier_name",
58
+ SUPPLIER_ID = "supplier_id",
59
+ STANDARD = "standard",
60
+ SKU = "sku",
61
+ SERIAL_NUMBER = "serial_number",
62
+ OPM_NAME = "opm_name",
63
+ OPM_ID = "opm_id",
64
+ OEM_NAME = "oem_name",
65
+ OEM_ID = "oem_id",
66
+ MANUFACTURER_PART_NUMBER = "manufacturer_part_number",
67
+ MANUFACTURER_NAME = "manufacturer_name",
68
+ IDENTIFIER = "identifier",
69
+ EAN = "ean",
70
+ ARTICLE_BRAND = "article_brand",
71
+ ARTICLE_NUMBER = "article_number"
72
+ }
73
+ /**
74
+ * The identifiers origin of a part.
75
+ */
76
+ export declare enum PartDataIdentifierOrigin {
77
+ INGESTED = "ingested",
78
+ EXTRACTED_FROM_PART_DATA = "extracted_from_part_data",
79
+ EXTRACTED_FROM_ENRICHMENT = "extracted_from_enrichment"
80
+ }
81
+ /**
82
+ * The identifier entry for a part.
83
+ */
84
+ export interface PartDataIdentifierEntry {
85
+ /**
86
+ * The unique part identifier.
87
+ */
88
+ upi: string;
89
+ /**
90
+ * The labels for the identifier.
91
+ */
92
+ labels: PartDataIdentifierLabel[];
93
+ /**
94
+ * The origin of the identifier.
95
+ */
96
+ origin: PartDataIdentifierOrigin;
97
+ /**
98
+ * The article brand for the identifier.
99
+ */
100
+ articleBrand?: string | null;
101
+ /**
102
+ * The article number for the identifier.
103
+ */
104
+ articleNumber?: string | null;
105
+ }
106
+ /**
107
+ * The identifiers data of a part.
108
+ */
109
+ export interface PartDataIdentifiersResponse {
110
+ /**
111
+ * The status of identifiers for the part.
112
+ */
113
+ identifiersStatus: PartDataIdentifiersStatus;
114
+ /**
115
+ * The identifiers for the part.
116
+ */
117
+ identifiers: PartDataIdentifierEntry[];
118
+ }
23
119
  /**
24
120
  * The data of a part.
25
121
  */
@@ -36,4 +132,12 @@ export interface PartData {
36
132
  * The images of the part.
37
133
  */
38
134
  images?: PartDataImage[];
135
+ /**
136
+ * The supplier discovery data of the part.
137
+ */
138
+ supplierDiscovery?: PartDataSupplierDiscoveryResponse;
139
+ /**
140
+ * The identifiers data of the part.
141
+ */
142
+ identifiers?: PartDataIdentifiersResponse;
39
143
  }
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
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={}));
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- export declare const SDK_VERSION_NUMBER = "14.17.0";
2
+ export declare const SDK_VERSION_NUMBER = "15.1.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="14.17.0";
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SDK_VERSION_NUMBER=void 0,exports.SDK_VERSION_NUMBER="15.1.0";
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Partium=exports.INITIALIZATION_STATUS=void 0;var INITIALIZATION_STATUS,rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),core_1=require("./core"),auth_config_1=require("./core/models/auth-config"),partium_config_1=require("./core/models/partium-config"),backend_status_service_1=require("./core/services/backend-status.service"),device_status_service_interface_1=require("./core/services/device-status.service.interface"),file_service_interface_1=require("./core/services/file.service.interface"),file_transfer_service_interface_1=require("./core/services/http/file-transfer/file-transfer.service.interface"),https_client_service_interface_1=require("./core/services/http/https-client/https-client.service.interface"),https_service_interface_1=require("./core/services/http/https.service.interface"),local_storage_service_interface_1=require("./core/services/local-storage.service.interface"),log_service_1=require("./core/services/log.service"),service_provider_1=require("./core/services/service-provider"),session_service_interface_1=require("./core/services/session/session.service.interface"),data_1=require("./data"),filter_service_1=require("./data/services/filter.service"),part_attribute_service_1=require("./data/services/part-attribute.service"),part_service_1=require("./data/services/part.service"),request_list_service_1=require("./user-data/services/request-list/request-list.service"),favorite_service_1=require("./user-data/services/favorite/favorite.service"),asset_service_1=require("./find/services/asset.service"),search_service_1=require("./find/services/search/search.service"),sdk_version_1=require("./gen/sdk-version"),recent_text_search_queries_service_1=require("./find/services/search/recent-text-search-queries.service"),ocr_1=require("./ocr"),shopping_cart_service_1=require("./data/services/shopping-cart.service"),inquiry_service_1=require("./data/services/inquiry.service"),announcement_service_1=require("./data/services/announcement.service"),related_parts_service_1=require("./data/services/related-parts.service"),constants_1=require("./core/constants/constants"),management_1=require("./management"),part_enrichment_service_1=require("./data/services/part-enrichment.service"),images_service_1=require("./catalog/services/images.service"),datacuration_1=require("./datacuration"),enrichment_1=require("./enrichment");!function(e){e[e.NOT_INITIALIZED=0]="NOT_INITIALIZED",e[e.INITIALIZING=1]="INITIALIZING",e[e.INITIALIZED=2]="INITIALIZED",e[e.INITIALIZATION_ERROR=3]="INITIALIZATION_ERROR"}(INITIALIZATION_STATUS||(exports.INITIALIZATION_STATUS=INITIALIZATION_STATUS={}));var Partium=function(){function e(){}return Object.defineProperty(e,"search",{get:function(){return e.getService(search_service_1.SearchServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"asset",{get:function(){return e.getService(asset_service_1.AssetServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"https",{get:function(){return e.getService(https_service_interface_1.HttpsService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"fileTransfer",{get:function(){return e.getService(file_transfer_service_interface_1.FileTransferService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"session",{get:function(){return e.getService(session_service_interface_1.SessionService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"assemblyHierarchyNode",{get:function(){return e.getService(data_1.AssemblyHierarchyNodesServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"part",{get:function(){return e.getService(part_service_1.PartServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"partEnrichment",{get:function(){return e.getService(part_enrichment_service_1.PartEnrichmentServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"relatedParts",{get:function(){return e.getService(related_parts_service_1.RelatedPartsServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"requestList",{get:function(){return e.getService(request_list_service_1.RequestListServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"shoppingCart",{get:function(){return e.getService(shopping_cart_service_1.ShoppingCartServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"partAttribute",{get:function(){return e.getService(part_attribute_service_1.PartAttributeServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"data",{get:function(){return e.getService(data_1.DataServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"inquiry",{get:function(){return e.getService(inquiry_service_1.InquiryServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"announcement",{get:function(){return e.getService(announcement_service_1.AnnouncementServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"customerServiceAssistance",{get:function(){return e.getService(data_1.CustomerServiceAssistanceServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"log",{get:function(){return e.getService(log_service_1.LogServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"file",{get:function(){return e.getService(file_service_interface_1.FileService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"recentParts",{get:function(){return e.getService(core_1.RecentPartsServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"favorites",{get:function(){return e.getService(favorite_service_1.FavoriteServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"filters",{get:function(){return e.getService(filter_service_1.FilterServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"organization",{get:function(){return e.getService(core_1.OrganizationService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ocr",{get:function(){return e.getService(ocr_1.OcrServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"apiKey",{get:function(){return e.getService(management_1.ApiKeyServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"localStorage",{get:function(){return e.getService(local_storage_service_interface_1.LocalStorageService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"images",{get:function(){return e.getService(images_service_1.ImagesServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"imageSubmission",{get:function(){return e.getService(datacuration_1.ImageSubmissionServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"dataEnrichment",{get:function(){return e.getService(enrichment_1.DataEnrichmentServiceImpl)},enumerable:!1,configurable:!0}),e.init=function(r){e._initializationStatus$.next(INITIALIZATION_STATUS.INITIALIZING),e._serviceProvider||(e._serviceProvider=new service_provider_1.ServiceProvider);var i=[r.partiumApiBaseUrl,r.partiumLoginUrl];switch(e._serviceProvider.useService(r.httpsClientService,https_client_service_interface_1.HttpsClientService,i),e._serviceProvider.useService(r.fileTransferService,file_transfer_service_interface_1.FileTransferService,i),e._serviceProvider.useService(r.localStorageService,local_storage_service_interface_1.LocalStorageService),e._serviceProvider.useService(r.deviceStatusService,device_status_service_interface_1.DeviceStatusService),e._serviceProvider.useService(r.fileService,file_service_interface_1.FileService),r.authenticationMethod){case partium_config_1.AUTHENTICATION_METHOD.OAUTH_API_KEY:case partium_config_1.AUTHENTICATION_METHOD.OAUTH:e._serviceProvider.useService(r.authenticationConfig.oauthHttpsService,https_service_interface_1.HttpsService),e._serviceProvider.useService(r.authenticationConfig.oauthSessionService,session_service_interface_1.SessionService)}e._serviceProvider.serviceSelectionFinished();var t=e.getService(session_service_interface_1.SessionService),c=e.getService(local_storage_service_interface_1.LocalStorageService);t.registerLoginInitService(c,1);var n=e.getService(asset_service_1.AssetServiceImpl);t.registerLoginInitService(n,2);var a=e.getService(core_1.RecentPartsServiceImpl);t.registerLoginInitService(a,2);var s=e.getService(recent_text_search_queries_service_1.RecentTextSearchQueriesServiceImpl);t.registerLoginInitService(s,2);var _=e.getService(favorite_service_1.FavoriteServiceImpl);t.registerLoginInitService(_,2);var o=e.getService(data_1.CustomerServiceAssistanceServiceImpl);t.registerLoginInitService(o,2);var u=e.getService(search_service_1.SearchServiceImpl);t.registerLoginInitService(u,2);var v=e.getService(log_service_1.LogServiceImpl);t.registerLoginInitService(v,2);var l=e.getService(https_service_interface_1.HttpsService),I=e.getService(backend_status_service_1.BackendStatusService);return I.init(sdk_version_1.SDK_VERSION_NUMBER,"en",e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_STATUS_API_URL]),constants_1.BACKEND_STATUS_FALLBACK_URL),I.checkCompatibility().pipe((0,operators_1.mergeMap)((function(){return I.checkAvailability()})),(0,operators_1.mergeMap)((function(){return t.init(r)})),(0,operators_1.mergeMap)((function(){return l.init({partiumApiBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION)]),findBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_FIND_API_URL]),dataBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATA_API_URL]),csaBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_CSA_API_URL]),logBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_LOGS_API_URL]),userDataBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_USER_DATA_API_URL]),ocrBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_OCR_API_URL]),managementBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_MANAGEMENT_API_URL]),catalogBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_CATALOG_API_URL]),datacurationBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATACURATION_API_URL]),dataV2BeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATA_V2_API_URL]),dataEnrichmentBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATA_ENRICHMENT_API_URL])},r.authenticationConfig)})),(0,operators_1.tap)((function(){l.setCurrentOrganization(t.getCurrentOrganization$())})),(0,operators_1.tap)((function(){e._initializationStatus$.next(INITIALIZATION_STATUS.INITIALIZED)})),(0,operators_1.catchError)((function(r){return e._initializationStatus$.next(INITIALIZATION_STATUS.INITIALIZATION_ERROR),e.reset(),(0,rxjs_1.throwError)(r)})))},e.initApiKey=function(r){return e.init(new partium_config_1.PartiumConfig({authenticationConfig:new auth_config_1.OauthApiKeyAuthenticationConfig({apiKey:r})}))},e.reset=function(){e._serviceProvider=null,e._initializationStatus$.next(INITIALIZATION_STATUS.NOT_INITIALIZED)},e.getInitializationStatus=function(){return e._initializationStatus$.asObservable()},e.getOrganizations=function(){return e.ensureInitialized(),e.getService(core_1.OrganizationService).getOrganizations()},e.useOrganization=function(r){return e.ensureInitialized(),e.session.useOrganization(r)},e.getService=function(r){return e._serviceProvider||(e._serviceProvider=new service_provider_1.ServiceProvider),e._serviceProvider.getService(r)},e.isInitialized=function(){return e._initializationStatus$.value===INITIALIZATION_STATUS.INITIALIZED},e.ensureInitialized=function(){if(!e.isInitialized())throw"Partium-JS-SDK not initialized. Make sure to initialize the Partium-JS-SDK before you try to use it's features!"},e.buildUrl=function(e){for(var r=[],i=0,t=e;i<t.length;i++){var c=t[i];r.push(c.replace(/^\/+/,"").replace(/\/+$/,""))}return r.join("/")},e._initializationStatus$=new rxjs_1.BehaviorSubject(INITIALIZATION_STATUS.NOT_INITIALIZED),e}();exports.Partium=Partium;
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Partium=exports.INITIALIZATION_STATUS=void 0;var INITIALIZATION_STATUS,rxjs_1=require("rxjs"),operators_1=require("rxjs/operators"),core_1=require("./core"),auth_config_1=require("./core/models/auth-config"),partium_config_1=require("./core/models/partium-config"),backend_status_service_1=require("./core/services/backend-status.service"),device_status_service_interface_1=require("./core/services/device-status.service.interface"),file_service_interface_1=require("./core/services/file.service.interface"),file_transfer_service_interface_1=require("./core/services/http/file-transfer/file-transfer.service.interface"),https_client_service_interface_1=require("./core/services/http/https-client/https-client.service.interface"),https_service_interface_1=require("./core/services/http/https.service.interface"),local_storage_service_interface_1=require("./core/services/local-storage.service.interface"),log_service_1=require("./core/services/log.service"),service_provider_1=require("./core/services/service-provider"),session_service_interface_1=require("./core/services/session/session.service.interface"),data_1=require("./data"),filter_service_1=require("./data/services/filter.service"),part_attribute_service_1=require("./data/services/part-attribute.service"),part_service_1=require("./data/services/part.service"),request_list_service_1=require("./user-data/services/request-list/request-list.service"),favorite_service_1=require("./user-data/services/favorite/favorite.service"),asset_service_1=require("./find/services/asset.service"),search_service_1=require("./find/services/search/search.service"),sdk_version_1=require("./gen/sdk-version"),recent_text_search_queries_service_1=require("./find/services/search/recent-text-search-queries.service"),ocr_1=require("./ocr"),shopping_cart_service_1=require("./data/services/shopping-cart.service"),inquiry_service_1=require("./data/services/inquiry.service"),announcement_service_1=require("./data/services/announcement.service"),related_parts_service_1=require("./data/services/related-parts.service"),constants_1=require("./core/constants/constants"),management_1=require("./management"),part_enrichment_service_1=require("./data/services/part-enrichment.service"),images_service_1=require("./catalog/services/images.service"),datacuration_1=require("./datacuration"),enrichment_1=require("./enrichment");!function(e){e[e.NOT_INITIALIZED=0]="NOT_INITIALIZED",e[e.INITIALIZING=1]="INITIALIZING",e[e.INITIALIZED=2]="INITIALIZED",e[e.INITIALIZATION_ERROR=3]="INITIALIZATION_ERROR"}(INITIALIZATION_STATUS||(exports.INITIALIZATION_STATUS=INITIALIZATION_STATUS={}));var Partium=function(){function e(){}return Object.defineProperty(e,"search",{get:function(){return e.getService(search_service_1.SearchServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"asset",{get:function(){return e.getService(asset_service_1.AssetServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"https",{get:function(){return e.getService(https_service_interface_1.HttpsService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"fileTransfer",{get:function(){return e.getService(file_transfer_service_interface_1.FileTransferService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"session",{get:function(){return e.getService(session_service_interface_1.SessionService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"assemblyHierarchyNode",{get:function(){return e.getService(data_1.AssemblyHierarchyNodesServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"part",{get:function(){return e.getService(part_service_1.PartServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"partEnrichment",{get:function(){return e.getService(part_enrichment_service_1.PartEnrichmentServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"relatedParts",{get:function(){return e.getService(related_parts_service_1.RelatedPartsServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"requestList",{get:function(){return e.getService(request_list_service_1.RequestListServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"shoppingCart",{get:function(){return e.getService(shopping_cart_service_1.ShoppingCartServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"partAttribute",{get:function(){return e.getService(part_attribute_service_1.PartAttributeServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"data",{get:function(){return e.getService(data_1.DataServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"inquiry",{get:function(){return e.getService(inquiry_service_1.InquiryServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"announcement",{get:function(){return e.getService(announcement_service_1.AnnouncementServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"customerServiceAssistance",{get:function(){return e.getService(data_1.CustomerServiceAssistanceServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"log",{get:function(){return e.getService(log_service_1.LogServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"file",{get:function(){return e.getService(file_service_interface_1.FileService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"recentParts",{get:function(){return e.getService(core_1.RecentPartsServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"favorites",{get:function(){return e.getService(favorite_service_1.FavoriteServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"filters",{get:function(){return e.getService(filter_service_1.FilterServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"organization",{get:function(){return e.getService(core_1.OrganizationService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ocr",{get:function(){return e.getService(ocr_1.OcrServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"apiKey",{get:function(){return e.getService(management_1.ApiKeyServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"localStorage",{get:function(){return e.getService(local_storage_service_interface_1.LocalStorageService)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"images",{get:function(){return e.getService(images_service_1.ImagesServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"imageSubmission",{get:function(){return e.getService(datacuration_1.ImageSubmissionServiceImpl)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"dataEnrichment",{get:function(){return e.getService(enrichment_1.DataEnrichmentServiceImpl)},enumerable:!1,configurable:!0}),e.init=function(r){console.log("Initializing Partium...",r),e._initializationStatus$.next(INITIALIZATION_STATUS.INITIALIZING),e._serviceProvider||(e._serviceProvider=new service_provider_1.ServiceProvider);var i=[r.partiumApiBaseUrl,r.partiumLoginUrl];switch(e._serviceProvider.useService(r.httpsClientService,https_client_service_interface_1.HttpsClientService,i),e._serviceProvider.useService(r.fileTransferService,file_transfer_service_interface_1.FileTransferService,i),e._serviceProvider.useService(r.localStorageService,local_storage_service_interface_1.LocalStorageService),e._serviceProvider.useService(r.deviceStatusService,device_status_service_interface_1.DeviceStatusService),e._serviceProvider.useService(r.fileService,file_service_interface_1.FileService),r.authenticationMethod){case partium_config_1.AUTHENTICATION_METHOD.OAUTH_API_KEY:case partium_config_1.AUTHENTICATION_METHOD.OAUTH:e._serviceProvider.useService(r.authenticationConfig.oauthHttpsService,https_service_interface_1.HttpsService),e._serviceProvider.useService(r.authenticationConfig.oauthSessionService,session_service_interface_1.SessionService)}e._serviceProvider.serviceSelectionFinished();var t=e.getService(session_service_interface_1.SessionService),c=e.getService(local_storage_service_interface_1.LocalStorageService);t.registerLoginInitService(c,1);var n=e.getService(asset_service_1.AssetServiceImpl);t.registerLoginInitService(n,2);var a=e.getService(core_1.RecentPartsServiceImpl);t.registerLoginInitService(a,2);var s=e.getService(recent_text_search_queries_service_1.RecentTextSearchQueriesServiceImpl);t.registerLoginInitService(s,2);var _=e.getService(favorite_service_1.FavoriteServiceImpl);t.registerLoginInitService(_,2);var o=e.getService(data_1.CustomerServiceAssistanceServiceImpl);t.registerLoginInitService(o,2);var u=e.getService(search_service_1.SearchServiceImpl);t.registerLoginInitService(u,2);var v=e.getService(log_service_1.LogServiceImpl);t.registerLoginInitService(v,2);var l=e.getService(https_service_interface_1.HttpsService),I=e.getService(backend_status_service_1.BackendStatusService);return I.init(sdk_version_1.SDK_VERSION_NUMBER,"en",e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_STATUS_API_URL]),constants_1.BACKEND_STATUS_FALLBACK_URL),I.checkCompatibility().pipe((0,operators_1.mergeMap)((function(){return I.checkAvailability()})),(0,operators_1.mergeMap)((function(){return t.init(r)})),(0,operators_1.mergeMap)((function(){return l.init({partiumApiBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION)]),findBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_FIND_API_URL]),dataBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATA_API_URL]),csaBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_CSA_API_URL]),logBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_LOGS_API_URL]),userDataBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_USER_DATA_API_URL]),ocrBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_OCR_API_URL]),managementBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_MANAGEMENT_API_URL]),catalogBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_CATALOG_API_URL]),datacurationBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATACURATION_API_URL]),dataV2BeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATA_V2_API_URL]),dataEnrichmentBeBaseUrl:e.buildUrl([r.partiumApiBaseUrl,"".concat(constants_1.PARTIUM_API_VERSION),constants_1.REL_DATA_ENRICHMENT_API_URL])},r.authenticationConfig)})),(0,operators_1.tap)((function(){l.setCurrentOrganization(t.getCurrentOrganization$())})),(0,operators_1.tap)((function(){e._initializationStatus$.next(INITIALIZATION_STATUS.INITIALIZED)})),(0,operators_1.catchError)((function(r){return e._initializationStatus$.next(INITIALIZATION_STATUS.INITIALIZATION_ERROR),e.reset(),(0,rxjs_1.throwError)(r)})))},e.initApiKey=function(r){return e.init(new partium_config_1.PartiumConfig({authenticationConfig:new auth_config_1.OauthApiKeyAuthenticationConfig({apiKey:r})}))},e.reset=function(){e._serviceProvider=null,e._initializationStatus$.next(INITIALIZATION_STATUS.NOT_INITIALIZED)},e.getInitializationStatus=function(){return e._initializationStatus$.asObservable()},e.getOrganizations=function(){return e.ensureInitialized(),e.getService(core_1.OrganizationService).getOrganizations()},e.useOrganization=function(r){return e.ensureInitialized(),e.session.useOrganization(r)},e.getService=function(r){return e._serviceProvider||(e._serviceProvider=new service_provider_1.ServiceProvider),e._serviceProvider.getService(r)},e.isInitialized=function(){return e._initializationStatus$.value===INITIALIZATION_STATUS.INITIALIZED},e.ensureInitialized=function(){if(!e.isInitialized())throw"Partium-JS-SDK not initialized. Make sure to initialize the Partium-JS-SDK before you try to use it's features!"},e.buildUrl=function(e){for(var r=[],i=0,t=e;i<t.length;i++){var c=t[i];r.push(c.replace(/^\/+/,"").replace(/\/+$/,""))}return r.join("/")},e._initializationStatus$=new rxjs_1.BehaviorSubject(INITIALIZATION_STATUS.NOT_INITIALIZED),e}();exports.Partium=Partium;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partium/js-sdk",
3
- "version": "14.17.0",
3
+ "version": "15.1.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.",