@partium/js-sdk 16.2.1 → 16.3.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/gen/sdk-version.d.ts +1 -1
- package/gen/sdk-version.js +1 -1
- package/package.json +1 -1
- package/part-list/models/add-all-search-session-parts-to-part-list-response.d.ts +6 -2
- package/part-list/models/add-parts-to-part-list-response.d.ts +2 -2
- package/part-list/models/create-collection-from-file-response.d.ts +4 -0
- package/part-list/models/empty-part-list.response.d.ts +4 -0
- package/part-list/models/remove-all-search-session-parts-from-part-list-response.d.ts +7 -1
- package/part-list/models/remove-parts-from-part-list-response.d.ts +2 -6
- package/part-list/services/part-list.service.d.ts +4 -3
- package/part-list/services/part-list.service.js +1 -1
package/gen/sdk-version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
|
-
export declare const SDK_VERSION_NUMBER = "16.
|
|
2
|
+
export declare const SDK_VERSION_NUMBER = "16.3.0";
|
package/gen/sdk-version.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.SDK_VERSION_NUMBER=void 0,exports.SDK_VERSION_NUMBER="16.
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SDK_VERSION_NUMBER=void 0,exports.SDK_VERSION_NUMBER="16.3.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@partium/js-sdk",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.3.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.",
|
|
@@ -5,7 +5,11 @@ export interface AddAllSearchSessionPartsToPartListResponse {
|
|
|
5
5
|
*/
|
|
6
6
|
partsAdded: number;
|
|
7
7
|
/**
|
|
8
|
-
* The total number of parts in the part-list.
|
|
8
|
+
* The total number of unique parts in the part-list after the operation.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
totalInList: number;
|
|
11
|
+
/**
|
|
12
|
+
* The part identifiers that were invalid and not added to the part-list.
|
|
13
|
+
*/
|
|
14
|
+
invalidPartIds: string[];
|
|
11
15
|
}
|
|
@@ -5,9 +5,9 @@ export interface AddPartsToPartListResponse {
|
|
|
5
5
|
*/
|
|
6
6
|
partsAdded: number;
|
|
7
7
|
/**
|
|
8
|
-
* The total number of parts in the part-list.
|
|
8
|
+
* The total number of unique parts in the part-list after the operation.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
totalInList: number;
|
|
11
11
|
/**
|
|
12
12
|
* The part identifiers that were invalid and not added to the part-list.
|
|
13
13
|
*/
|
|
@@ -17,6 +17,10 @@ export interface CreateCollectionFromFileResponse {
|
|
|
17
17
|
* The amount of part-ids that were added to the collection
|
|
18
18
|
*/
|
|
19
19
|
partsAdded: number;
|
|
20
|
+
/**
|
|
21
|
+
* The total number of unique parts in the collection after the upload.
|
|
22
|
+
*/
|
|
23
|
+
totalInList: number;
|
|
20
24
|
/**
|
|
21
25
|
* The part identifiers that were invalid and not added to the part-list.
|
|
22
26
|
*/
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
2
2
|
export interface RemoveAllSearchSessionPartsFromPartListResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The number of parts removed from the part-list.
|
|
5
|
+
*/
|
|
3
6
|
partsRemoved: number;
|
|
4
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The total number of unique parts in the part-list after the operation.
|
|
9
|
+
*/
|
|
10
|
+
totalInList: number;
|
|
5
11
|
}
|
|
@@ -5,11 +5,7 @@ export interface RemovePartsFromPartListResponse {
|
|
|
5
5
|
*/
|
|
6
6
|
partsRemoved: number;
|
|
7
7
|
/**
|
|
8
|
-
* The total number of parts in the part-list.
|
|
8
|
+
* The total number of unique parts in the part-list after the operation.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The part identifiers that were invalid and not removed from the part-list.
|
|
13
|
-
*/
|
|
14
|
-
invalidPartIds: string[];
|
|
10
|
+
totalInList: number;
|
|
15
11
|
}
|
|
@@ -78,12 +78,13 @@ export interface PartListService {
|
|
|
78
78
|
*/
|
|
79
79
|
emptyPartList(partListId: string, request: EmptyPartListRequest): Observable<EmptyPartListResponse>;
|
|
80
80
|
/**
|
|
81
|
-
* Get the add and remove parts count for the given part-list.
|
|
81
|
+
* Get the add and remove parts count for the given part-list, relative to a search session.
|
|
82
82
|
*
|
|
83
83
|
* @param partListId - The part-list id.
|
|
84
|
+
* @param searchSessionId - The search session to compare the part-list against.
|
|
84
85
|
* @returns An Observable that emits the add and remove parts count.
|
|
85
86
|
*/
|
|
86
|
-
getSearchSummary(partListId: string): Observable<PartListSearchSummaryResponse>;
|
|
87
|
+
getSearchSummary(partListId: string, searchSessionId: string): Observable<PartListSearchSummaryResponse>;
|
|
87
88
|
/**
|
|
88
89
|
* Given part ids (e.g. from search), returns which of them are already in the part-list.
|
|
89
90
|
*
|
|
@@ -102,6 +103,6 @@ export declare class PartListServiceImpl extends BaseService implements PartList
|
|
|
102
103
|
addAllSearchSessionPartsToPartList(partListId: string, request: AddAllSearchSessionPartsToPartListRequest): Observable<AddAllSearchSessionPartsToPartListResponse>;
|
|
103
104
|
removeAllSearchSessionPartsFromPartList(partListId: string, request: RemoveAllSearchSessionPartsFromPartListRequest): Observable<RemoveAllSearchSessionPartsFromPartListResponse>;
|
|
104
105
|
emptyPartList(partListId: string, request: EmptyPartListRequest): Observable<EmptyPartListResponse>;
|
|
105
|
-
getSearchSummary(partListId: string): Observable<PartListSearchSummaryResponse>;
|
|
106
|
+
getSearchSummary(partListId: string, searchSessionId: string): Observable<PartListSearchSummaryResponse>;
|
|
106
107
|
checkWhichPartsInPartList(partListId: string, request: CheckWhichPartsInPartListRequest): Observable<CheckWhichPartsInPartListResponse>;
|
|
107
108
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Copyright © 2022-2026 Partium, Inc. DBA Partium
|
|
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 c,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(n=(i<3?c(n):i>3?c(e,r,n):c(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartListServiceImpl=void 0;var core_1=require("../../core"),PartListServiceImpl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},e.prototype.createSelection=function(t){return this.httpsService.post("selections",t,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.createCollectionFromFile=function(t){var e=this;return(0,core_1.guardMultipartUpload)(t.file,(function(){return(0,core_1.postPFileMultipartRequest)(e.httpsService,{url:"collections",file:t.file,fieldName:"file",backend:core_1.BACKEND_SERVICE.PART_LIST})}))},e.prototype.addPartsToPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/add"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.removePartsFromPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/remove"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.addAllSearchSessionPartsToPartList=function(t,e){return this.httpsService.post("".concat(t,"/search/add"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.removeAllSearchSessionPartsFromPartList=function(t,e){return this.httpsService.post("".concat(t,"/search/remove"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.emptyPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/empty"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.getSearchSummary=function(t){return this.httpsService.get("".concat(t,"/search/summary"),[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.checkWhichPartsInPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/check"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e=__decorate([(0,core_1.InjectionIdentifier)("PartListService")],e)}(core_1.BaseService);exports.PartListServiceImpl=PartListServiceImpl;
|
|
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 c,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(n=(i<3?c(n):i>3?c(e,r,n):c(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PartListServiceImpl=void 0;var core_1=require("../../core"),PartListServiceImpl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.onCreate=function(){this.httpsService=this.serviceProvider.getService(core_1.HttpsService)},e.prototype.createSelection=function(t){return this.httpsService.post("selections",t,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.createCollectionFromFile=function(t){var e=this;return(0,core_1.guardMultipartUpload)(t.file,(function(){return(0,core_1.postPFileMultipartRequest)(e.httpsService,{url:"collections/upload",file:t.file,fieldName:"file",backend:core_1.BACKEND_SERVICE.PART_LIST})}))},e.prototype.addPartsToPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/add"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.removePartsFromPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/remove"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.addAllSearchSessionPartsToPartList=function(t,e){return this.httpsService.post("".concat(t,"/search/add"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.removeAllSearchSessionPartsFromPartList=function(t,e){return this.httpsService.post("".concat(t,"/search/remove"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.emptyPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/empty"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.getSearchSummary=function(t,e){return this.httpsService.get("".concat(t,"/search/summary"),[{searchSessionId:e}],core_1.BACKEND_SERVICE.PART_LIST)},e.prototype.checkWhichPartsInPartList=function(t,e){return this.httpsService.post("".concat(t,"/parts/check"),e,[],core_1.BACKEND_SERVICE.PART_LIST)},e=__decorate([(0,core_1.InjectionIdentifier)("PartListService")],e)}(core_1.BaseService);exports.PartListServiceImpl=PartListServiceImpl;
|