@partium/js-sdk 14.1.0 → 14.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.
@@ -15,7 +15,8 @@ export declare enum Role {
15
15
  developer = "developer",
16
16
  catalogAdmin = "catalogAdmin",
17
17
  dataManipulator = "dataManipulator",
18
- dataContributor = "dataContributor"
18
+ dataContributor = "dataContributor",
19
+ dataValidator = "dataValidator"
19
20
  }
20
21
  /**
21
22
  * The user-object of the user that is logged in into the SDK.
@@ -21,6 +21,7 @@ var Role;
21
21
  Role["catalogAdmin"] = "catalogAdmin";
22
22
  Role["dataManipulator"] = "dataManipulator";
23
23
  Role["dataContributor"] = "dataContributor";
24
+ Role["dataValidator"] = "dataValidator";
24
25
  })(Role || (exports.Role = Role = {}));
25
26
  /**
26
27
  * The user-object of the user that is logged in into the SDK.
@@ -78,20 +78,6 @@ var PaginatedRequestServiceImpl = /** @class */ (function () {
78
78
  return this.paginatedList && this.paginatedList.moreResultsAvailable();
79
79
  };
80
80
  PaginatedRequestServiceImpl.prototype.loadMore = function () {
81
- if (this.cursorPaginationEnabled) {
82
- /* this.paginatedList.nextPage (the BE value) returns :
83
- http://api.beta.partium.io/v3/assemblies?cursor=cj0xJnA9MzY2OTE2&max_depth=1&page_size=5&paginator=cursor&root_nodes=true
84
- it does not work because we need:
85
- https://api.beta.partium.io/1/_data/assemblies?cursor=cj0xJnA9MzY2OTE2&max_depth=1&page_size=5&paginator=cursor&root_nodes=true
86
- we only need to append the cursor to the current url and not to fetch the whole url returned by the BE
87
- TODO fix in FND-2382
88
- */
89
- var nextPageParams = this.paginatedList.nextPage.split('?');
90
- var urlParams = new URLSearchParams(nextPageParams[1]);
91
- this.urlParams = this.removeUrlParam(this.urlParams, 'cursor');
92
- this.urlParams = __spreadArray(__spreadArray([], this.urlParams, true), [{ cursor: urlParams.get('cursor') }], false);
93
- return this.loadPage(null);
94
- }
95
81
  if (!this.isInitialPageLoaded()) {
96
82
  // no search active/initial result not yet returned
97
83
  return (0, rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INITIAL_ITEMS_NOT_YET_LOADED, null));
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- export declare const SDK_VERSION_NUMBER = "14.1.0";
2
+ export declare const SDK_VERSION_NUMBER = "14.3.0";
@@ -2,5 +2,5 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SDK_VERSION_NUMBER = void 0;
5
- exports.SDK_VERSION_NUMBER = '14.1.0';
5
+ exports.SDK_VERSION_NUMBER = '14.3.0';
6
6
  //# sourceMappingURL=sdk-version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partium/js-sdk",
3
- "version": "14.1.0",
3
+ "version": "14.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.",