@partium/js-sdk 14.4.1 → 14.5.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.
Files changed (153) hide show
  1. package/catalog/index.js +1 -21
  2. package/catalog/models/catalog-image-info.js +1 -22
  3. package/catalog/models/catalog-image.js +1 -40
  4. package/catalog/models/upsert-catalog-images-dto.js +1 -3
  5. package/catalog/models/upsert-images-result.js +1 -3
  6. package/catalog/services/images.service.js +1 -62
  7. package/core/constants/constants.d.ts +1 -0
  8. package/core/constants/constants.js +1 -16
  9. package/core/decorators/injection-identifier.js +1 -19
  10. package/core/factories/paginated-request-service.factory.js +1 -33
  11. package/core/index.js +1 -63
  12. package/core/integration-defaults/http/fetch-api-http-error-helper.js +1 -129
  13. package/core/integration-defaults/http/file-transfer/axios-file-transfer.service.js +1 -138
  14. package/core/integration-defaults/http/file-transfer/fetch-api-file-transfer.service.js +1 -210
  15. package/core/integration-defaults/http/handle-axios-error-helper.js +1 -79
  16. package/core/integration-defaults/http/https-client/axios-https-client.service.js +1 -182
  17. package/core/integration-defaults/http/https-client/fetch-api-https-client.service.js +1 -198
  18. package/core/integration-defaults/http/js-oauth-keycloak-https.service.js +1 -32
  19. package/core/integration-defaults/js-p-file.js +1 -36
  20. package/core/integration-defaults/session/js-oauth-api-key-session.service.js +1 -206
  21. package/core/integration-defaults/session/js-oauth-keycloak-auth-config.js +1 -64
  22. package/core/integration-defaults/session/js-oauth-keycloak-session.service.js +1 -257
  23. package/core/integration-defaults/web-device-status.service.js +1 -125
  24. package/core/integration-defaults/web-file.service.js +1 -135
  25. package/core/integration-defaults/web-indexeddb.service.js +1 -142
  26. package/core/integration-defaults/web-local-storage.service.js +1 -310
  27. package/core/models/api-object.js +1 -16
  28. package/core/models/auth-config.js +1 -72
  29. package/core/models/device-info.js +1 -34
  30. package/core/models/error.js +1 -107
  31. package/core/models/formatted-string.js +1 -14
  32. package/core/models/i18n-map.js +1 -61
  33. package/core/models/i18n-string.js +1 -35
  34. package/core/models/log.js +1 -137
  35. package/core/models/organization.js +1 -159
  36. package/core/models/p-file.js +1 -23
  37. package/core/models/paginated-list.js +1 -41
  38. package/core/models/partium-config.js +1 -43
  39. package/core/models/user-token.js +1 -11
  40. package/core/models/user.js +1 -89
  41. package/core/services/backend-status.service.js +1 -147
  42. package/core/services/base-login-init.service.js +1 -57
  43. package/core/services/base.service.js +1 -37
  44. package/core/services/device-status.service.interface.js +1 -117
  45. package/core/services/file.service.interface.js +1 -61
  46. package/core/services/http/file-transfer/file-transfer.service.interface.js +1 -125
  47. package/core/services/http/https-client/https-client.service.interface.js +1 -152
  48. package/core/services/http/https.service.interface.d.ts +3 -1
  49. package/core/services/http/https.service.interface.js +1 -294
  50. package/core/services/http/oauth-https.service.js +1 -218
  51. package/core/services/local-storage.service.interface.js +1 -378
  52. package/core/services/log.service.js +1 -139
  53. package/core/services/organization.service.js +1 -202
  54. package/core/services/paginated-request.service.js +1 -154
  55. package/core/services/recent-parts.service.js +1 -194
  56. package/core/services/service-provider.js +1 -114
  57. package/core/services/session/oauth-session.service.js +1 -104
  58. package/core/services/session/session.service.interface.js +1 -367
  59. package/core/utils/general-helper.js +1 -110
  60. package/data/index.js +1 -44
  61. package/data/models/announcement.js +1 -70
  62. package/data/models/assembly-hierarchy-node-breadcrumb.js +1 -51
  63. package/data/models/assembly-hierarchy-node.js +1 -46
  64. package/data/models/attribute.js +1 -106
  65. package/data/models/csa-request-search.js +1 -46
  66. package/data/models/csa-request-status.js +1 -51
  67. package/data/models/csa-request.js +1 -112
  68. package/data/models/document.js +1 -17
  69. package/data/models/filter-key.js +1 -36
  70. package/data/models/filter-option-value.js +1 -41
  71. package/data/models/image.js +1 -77
  72. package/data/models/inquiry.js +1 -71
  73. package/data/models/mounting-location.js +1 -58
  74. package/data/models/multiple-expert-searches.js +1 -40
  75. package/data/models/part-enrichment-data.js +1 -50
  76. package/data/models/part.d.ts +1 -1
  77. package/data/models/part.js +1 -168
  78. package/data/models/shopping-cart.js +1 -60
  79. package/data/services/announcement.service.js +1 -89
  80. package/data/services/assembly-hierarchy-nodes.service.js +1 -193
  81. package/data/services/csa-helper.service.js +1 -158
  82. package/data/services/customer-service-assistance.service.js +1 -276
  83. package/data/services/filter.service.js +1 -97
  84. package/data/services/inquiry.service.js +1 -68
  85. package/data/services/part-attribute.service.js +1 -118
  86. package/data/services/part-enrichment.service.js +1 -56
  87. package/data/services/part.service.js +1 -182
  88. package/data/services/related-parts.service.js +1 -83
  89. package/data/services/shopping-cart.service.js +1 -152
  90. package/datacuration/index.d.ts +2 -0
  91. package/datacuration/index.js +2 -0
  92. package/datacuration/models/image-submission-request.d.ts +55 -0
  93. package/datacuration/models/image-submission-request.js +2 -0
  94. package/datacuration/models/submitted-image-response.d.ts +27 -0
  95. package/datacuration/models/submitted-image-response.js +2 -0
  96. package/datacuration/services/image-submission.service.d.ts +26 -0
  97. package/datacuration/services/image-submission.service.js +2 -0
  98. package/find/index.js +1 -51
  99. package/find/models/assets/asset.js +1 -32
  100. package/find/models/search-filter.js +1 -205
  101. package/find/models/search-input.js +1 -3
  102. package/find/models/search-output.js +1 -3
  103. package/find/models/search-result-status.js +1 -40
  104. package/find/models/search-session-log-object.js +1 -22
  105. package/find/models/search-status/cv-search-status.js +1 -22
  106. package/find/models/search-status/search-filter-status.js +1 -36
  107. package/find/models/search-status/search-status.js +1 -56
  108. package/find/models/search-status/tag-search-status.js +1 -23
  109. package/find/models/search-status/text-search-status.js +1 -18
  110. package/find/models/search-tag.js +1 -16
  111. package/find/models/smart-filter.js +1 -49
  112. package/find/models/tagable/i18n-tagable.js +1 -37
  113. package/find/models/tagable/tagable-base.js +1 -22
  114. package/find/models/tagable/tagable.js +1 -37
  115. package/find/models/text-search-config.js +1 -70
  116. package/find/models/text-search-manipulator.js +1 -90
  117. package/find/models/text-search-result-item/text-search-error.js +1 -12
  118. package/find/models/text-search-result-item/text-search-result-item-document.js +1 -34
  119. package/find/models/text-search-result-item/text-search-result-item-part.js +1 -36
  120. package/find/models/text-search-result-item/text-search-result-item-recent-query.js +1 -35
  121. package/find/models/text-search-result-item/text-search-result-item-unknown.js +1 -38
  122. package/find/models/text-search-result-item/text-search-result-item.js +1 -22
  123. package/find/services/asset.service.js +1 -348
  124. package/find/services/filter-uploaders/filter-uploader.js +1 -3
  125. package/find/services/filter-uploaders/update-filters-uploader.js +1 -77
  126. package/find/services/filter-uploaders/update-filters.model.js +1 -7
  127. package/find/services/search/cv-search.service.js +1 -214
  128. package/find/services/search/recent-text-search-queries.service.js +1 -260
  129. package/find/services/search/search-result.service.js +1 -539
  130. package/find/services/search/search.service.js +1 -514
  131. package/find/services/search/tag-search.service.js +1 -124
  132. package/find/services/search/text-search.service.js +1 -316
  133. package/find/services/search-filter.service.js +1 -292
  134. package/find/utils/search-helper.js +1 -75
  135. package/gen/sdk-version.d.ts +1 -1
  136. package/gen/sdk-version.js +1 -5
  137. package/index.d.ts +2 -0
  138. package/index.js +1 -392
  139. package/management/index.js +1 -21
  140. package/management/models/api-key-list-response.js +1 -3
  141. package/management/models/api-key-type.js +1 -9
  142. package/management/models/api-key.js +1 -3
  143. package/management/services/api-key.service.js +1 -53
  144. package/ocr/index.js +1 -20
  145. package/ocr/models/detect-response.js +1 -3
  146. package/ocr/models/detected-text-entry.js +1 -3
  147. package/ocr/services/ocr.service.js +1 -59
  148. package/package.json +1 -1
  149. package/user-data/index.js +1 -21
  150. package/user-data/models/part-with-nullable.js +1 -3
  151. package/user-data/models/request-list/request-list.js +1 -63
  152. package/user-data/services/favorite/favorite.service.js +1 -108
  153. package/user-data/services/request-list/request-list.service.js +1 -133
@@ -1,38 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.I18nTagable = void 0;
20
- var tagable_base_1 = require("./tagable-base");
21
- /**
22
- * Models that derive from this class can be displayed as tags
23
- */
24
- var I18nTagable = /** @class */ (function (_super) {
25
- __extends(I18nTagable, _super);
26
- function I18nTagable() {
27
- return _super !== null && _super.apply(this, arguments) || this;
28
- }
29
- I18nTagable.prototype.getTextFormattedStrings = function (languageCode) {
30
- if (!this.formattedStrings) {
31
- this.formattedStrings = this.getFormattedStrings(this.getText(languageCode));
32
- }
33
- return this.formattedStrings;
34
- };
35
- return I18nTagable;
36
- }(tagable_base_1.TagableBase));
37
- exports.I18nTagable = I18nTagable;
38
- //# sourceMappingURL=i18n-tagable.js.map
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 n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.I18nTagable=void 0;var tagable_base_1=require("./tagable-base"),I18nTagable=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getTextFormattedStrings=function(t){return this.formattedStrings||(this.formattedStrings=this.getFormattedStrings(this.getText(t))),this.formattedStrings},e}(tagable_base_1.TagableBase);exports.I18nTagable=I18nTagable;
@@ -1,23 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TagableBase = void 0;
5
- var core_1 = require("../../../core");
6
- /**
7
- * Models that derive from this class can be displayed as tags
8
- */
9
- var TagableBase = /** @class */ (function () {
10
- function TagableBase() {
11
- }
12
- TagableBase.prototype.getFormattedStrings = function (text) {
13
- return text.split('***').map(function (part, index) {
14
- var fs = new core_1.FormattedString();
15
- fs.text = part;
16
- fs.fontWeight = index % 2 === 1 ? 'bold' : 'normal';
17
- return fs;
18
- });
19
- };
20
- return TagableBase;
21
- }());
22
- exports.TagableBase = TagableBase;
23
- //# sourceMappingURL=tagable-base.js.map
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TagableBase=void 0;var core_1=require("../../../core"),TagableBase=function(){function e(){}return e.prototype.getFormattedStrings=function(e){return e.split("***").map((function(e,t){var r=new core_1.FormattedString;return r.text=e,r.fontWeight=t%2==1?"bold":"normal",r}))},e}();exports.TagableBase=TagableBase;
@@ -1,38 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.Tagable = void 0;
20
- var tagable_base_1 = require("./tagable-base");
21
- /**
22
- * Models that derive from this class can be displayed as tags
23
- */
24
- var Tagable = /** @class */ (function (_super) {
25
- __extends(Tagable, _super);
26
- function Tagable() {
27
- return _super !== null && _super.apply(this, arguments) || this;
28
- }
29
- Tagable.prototype.getTextFormattedStrings = function () {
30
- if (!this.formattedStrings) {
31
- this.formattedStrings = this.getFormattedStrings(this.getText());
32
- }
33
- return this.formattedStrings;
34
- };
35
- return Tagable;
36
- }(tagable_base_1.TagableBase));
37
- exports.Tagable = Tagable;
38
- //# sourceMappingURL=tagable.js.map
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 n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tagable=void 0;var tagable_base_1=require("./tagable-base"),Tagable=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getTextFormattedStrings=function(){return this.formattedStrings||(this.formattedStrings=this.getFormattedStrings(this.getText())),this.formattedStrings},e}(tagable_base_1.TagableBase);exports.Tagable=Tagable;
@@ -1,71 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TextSearchConfig = exports.TEMPORARY_SEARCH_TYPE = exports.SEARCH_TYPE = exports.SEARCH_DOMAINS = void 0;
5
- /**
6
- * @deprecated Since temporary-search is deprecated, this config is also not needed anymore.
7
- */
8
- var SEARCH_DOMAINS;
9
- (function (SEARCH_DOMAINS) {
10
- SEARCH_DOMAINS["PART"] = "entity";
11
- /** using SEARCH_DOMAINS.DOCUMENT will not lead to any results, because this feature was removed from the backend */
12
- SEARCH_DOMAINS["DOCUMENT"] = "document";
13
- })(SEARCH_DOMAINS || (exports.SEARCH_DOMAINS = SEARCH_DOMAINS = {}));
14
- /**
15
- * @deprecated Since temporary-search is deprecated, this config is also not needed anymore.
16
- */
17
- var SEARCH_TYPE;
18
- (function (SEARCH_TYPE) {
19
- SEARCH_TYPE["FUZZY"] = "fuzzy";
20
- SEARCH_TYPE["EXACT"] = "exact";
21
- })(SEARCH_TYPE || (exports.SEARCH_TYPE = SEARCH_TYPE = {}));
22
- /**
23
- * Types of possible temporary search results
24
- *
25
- * @deprecated Since temporary-search is deprecated, this config is also not needed anymore.
26
- */
27
- var TEMPORARY_SEARCH_TYPE;
28
- (function (TEMPORARY_SEARCH_TYPE) {
29
- TEMPORARY_SEARCH_TYPE[TEMPORARY_SEARCH_TYPE["RECENT_SEARCH_QUERIES"] = 0] = "RECENT_SEARCH_QUERIES";
30
- /** @deprecated quick text search is deprecated and will be replaced in the future */
31
- TEMPORARY_SEARCH_TYPE[TEMPORARY_SEARCH_TYPE["QUICK_TEXT_SEARCH"] = 1] = "QUICK_TEXT_SEARCH";
32
- })(TEMPORARY_SEARCH_TYPE || (exports.TEMPORARY_SEARCH_TYPE = TEMPORARY_SEARCH_TYPE = {}));
33
- /**
34
- * Search-configuration for a text search.
35
- * Allows overriding text search default behavior
36
- *
37
- * @deprecated Since temporary-search is deprecated, this config is also not needed anymore.
38
- */
39
- var TextSearchConfig = /** @class */ (function () {
40
- function TextSearchConfig(init) {
41
- /**
42
- * Quicktext search - domains to search in
43
- */
44
- this.domains = [SEARCH_DOMAINS.PART, SEARCH_DOMAINS.DOCUMENT];
45
- /**
46
- * Quicktext limit - how many items the result should max contain
47
- */
48
- this.limit = 200;
49
- /**
50
- * Quicktext search - search type to use
51
- */
52
- this.searchType = SEARCH_TYPE.FUZZY;
53
- /**
54
- * Quicktext fuzziness -
55
- * configuration-parameter only used for search-type FUZZY. Specify a number or AUTO:[low],[high] (<low = fuzziness 0, low..high = fuzziness 1, >=high = fuzziness 2)
56
- */
57
- this.fuzziness = "AUTO:5,9";
58
- /**
59
- * defines the temporary search types to use for the temporary text search.
60
- * this affects what kind of search is performed and the temporary text search results.
61
- */
62
- this.temporarySearch = [
63
- TEMPORARY_SEARCH_TYPE.QUICK_TEXT_SEARCH,
64
- TEMPORARY_SEARCH_TYPE.RECENT_SEARCH_QUERIES,
65
- ];
66
- Object.assign(this, init);
67
- }
68
- return TextSearchConfig;
69
- }());
70
- exports.TextSearchConfig = TextSearchConfig;
71
- //# sourceMappingURL=text-search-config.js.map
2
+ "use strict";var SEARCH_DOMAINS,SEARCH_TYPE,TEMPORARY_SEARCH_TYPE;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchConfig=exports.TEMPORARY_SEARCH_TYPE=exports.SEARCH_TYPE=exports.SEARCH_DOMAINS=void 0,function(E){E.PART="entity",E.DOCUMENT="document"}(SEARCH_DOMAINS||(exports.SEARCH_DOMAINS=SEARCH_DOMAINS={})),function(E){E.FUZZY="fuzzy",E.EXACT="exact"}(SEARCH_TYPE||(exports.SEARCH_TYPE=SEARCH_TYPE={})),function(E){E[E.RECENT_SEARCH_QUERIES=0]="RECENT_SEARCH_QUERIES",E[E.QUICK_TEXT_SEARCH=1]="QUICK_TEXT_SEARCH"}(TEMPORARY_SEARCH_TYPE||(exports.TEMPORARY_SEARCH_TYPE=TEMPORARY_SEARCH_TYPE={}));var TextSearchConfig=function(E){this.domains=[SEARCH_DOMAINS.PART,SEARCH_DOMAINS.DOCUMENT],this.limit=200,this.searchType=SEARCH_TYPE.FUZZY,this.fuzziness="AUTO:5,9",this.temporarySearch=[TEMPORARY_SEARCH_TYPE.QUICK_TEXT_SEARCH,TEMPORARY_SEARCH_TYPE.RECENT_SEARCH_QUERIES],Object.assign(this,E)};exports.TextSearchConfig=TextSearchConfig;
@@ -1,91 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20
- return new (P || (P = Promise))(function (resolve, reject) {
21
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
22
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
24
- step((generator = generator.apply(thisArg, _arguments || [])).next());
25
- });
26
- };
27
- var __generator = (this && this.__generator) || function (thisArg, body) {
28
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
29
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
30
- function verb(n) { return function (v) { return step([n, v]); }; }
31
- function step(op) {
32
- if (f) throw new TypeError("Generator is already executing.");
33
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
34
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
35
- if (y = 0, t) op = [op[0] & 2, t.value];
36
- switch (op[0]) {
37
- case 0: case 1: t = op; break;
38
- case 4: _.label++; return { value: op[1], done: false };
39
- case 5: _.label++; y = op[1]; op = [0]; continue;
40
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
41
- default:
42
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
43
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
44
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
45
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
46
- if (t[2]) _.ops.pop();
47
- _.trys.pop(); continue;
48
- }
49
- op = body.call(thisArg, _);
50
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
51
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
52
- }
53
- };
54
- Object.defineProperty(exports, "__esModule", { value: true });
55
- exports.TextSearchManipulatorDoNothing = exports.TextSearchManipulator = void 0;
56
- /**
57
- * The Text-Search can have different result-types, like parts or documents.
58
- * It is possible to also have results of a type that is unknown to the Partium SDK.
59
- * By default, these items will be of type TextSearchResultItemUnknown, when they are leaving the SDK.
60
- * It is possible to implement the tetSearchResultManipulatorFunction to intersect this action and
61
- * manipulate, replace or remove result-items. This allows the user of the SDK to add new types
62
- * and replace the Unknown-Objects with objects of these new types.
63
- *
64
- * @deprecated this feature will not be supported anymore in the future.
65
- */
66
- var TextSearchManipulator = /** @class */ (function () {
67
- function TextSearchManipulator() {
68
- }
69
- return TextSearchManipulator;
70
- }());
71
- exports.TextSearchManipulator = TextSearchManipulator;
72
- /**
73
- * The default implementation of the TextSearchManipulator does not do any changes to the
74
- * search-result. It will just forward it with the unknown object type.
75
- */
76
- var TextSearchManipulatorDoNothing = /** @class */ (function (_super) {
77
- __extends(TextSearchManipulatorDoNothing, _super);
78
- function TextSearchManipulatorDoNothing() {
79
- return _super !== null && _super.apply(this, arguments) || this;
80
- }
81
- TextSearchManipulatorDoNothing.prototype.textSearchResultManipulatorFunction = function (res) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- return __generator(this, function (_a) {
84
- return [2 /*return*/, res];
85
- });
86
- });
87
- };
88
- return TextSearchManipulatorDoNothing;
89
- }(TextSearchManipulator));
90
- exports.TextSearchManipulatorDoNothing = TextSearchManipulatorDoNothing;
91
- //# sourceMappingURL=text-search-manipulator.js.map
2
+ "use strict";var __extends=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,a){function i(t){try{c(r.next(t))}catch(t){a(t)}}function u(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))},__generator=this&&this.__generator||function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchManipulatorDoNothing=exports.TextSearchManipulator=void 0;var TextSearchManipulator=function(){};exports.TextSearchManipulator=TextSearchManipulator;var TextSearchManipulatorDoNothing=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.textSearchResultManipulatorFunction=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,t]}))}))},e}(TextSearchManipulator);exports.TextSearchManipulatorDoNothing=TextSearchManipulatorDoNothing;
@@ -1,13 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TextSearchError = void 0;
5
- var TextSearchError = /** @class */ (function () {
6
- function TextSearchError(error, retryCallback) {
7
- this.error = error;
8
- this.retryCallback = retryCallback;
9
- }
10
- return TextSearchError;
11
- }());
12
- exports.TextSearchError = TextSearchError;
13
- //# sourceMappingURL=text-search-error.js.map
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchError=void 0;var TextSearchError=function(r,e){this.error=r,this.retryCallback=e};exports.TextSearchError=TextSearchError;
@@ -1,35 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.TextSearchResultItemDocument = void 0;
20
- var text_search_result_item_1 = require("./text-search-result-item");
21
- /**
22
- * Text-search results of type document.
23
- */
24
- var TextSearchResultItemDocument = /** @class */ (function (_super) {
25
- __extends(TextSearchResultItemDocument, _super);
26
- function TextSearchResultItemDocument(document, score) {
27
- return _super.call(this, document, score) || this;
28
- }
29
- TextSearchResultItemDocument.prototype.getText = function (languageCode) {
30
- return this.getValue().name;
31
- };
32
- return TextSearchResultItemDocument;
33
- }(text_search_result_item_1.TextSearchResultItem));
34
- exports.TextSearchResultItemDocument = TextSearchResultItemDocument;
35
- //# sourceMappingURL=text-search-result-item-document.js.map
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 n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchResultItemDocument=void 0;var text_search_result_item_1=require("./text-search-result-item"),TextSearchResultItemDocument=function(t){function e(e,r){return t.call(this,e,r)||this}return __extends(e,t),e.prototype.getText=function(t){return this.getValue().name},e}(text_search_result_item_1.TextSearchResultItem);exports.TextSearchResultItemDocument=TextSearchResultItemDocument;
@@ -1,37 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.TextSearchResultItemPart = void 0;
20
- var text_search_result_item_1 = require("./text-search-result-item");
21
- /**
22
- * Text-search results of type part.
23
- *
24
- * @deprecated not needed anymore
25
- */
26
- var TextSearchResultItemPart = /** @class */ (function (_super) {
27
- __extends(TextSearchResultItemPart, _super);
28
- function TextSearchResultItemPart(part, score) {
29
- return _super.call(this, part, score) || this;
30
- }
31
- TextSearchResultItemPart.prototype.getText = function (languageCode) {
32
- return this.getValue().name.getText(languageCode);
33
- };
34
- return TextSearchResultItemPart;
35
- }(text_search_result_item_1.TextSearchResultItem));
36
- exports.TextSearchResultItemPart = TextSearchResultItemPart;
37
- //# sourceMappingURL=text-search-result-item-part.js.map
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 n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchResultItemPart=void 0;var text_search_result_item_1=require("./text-search-result-item"),TextSearchResultItemPart=function(t){function e(e,r){return t.call(this,e,r)||this}return __extends(e,t),e.prototype.getText=function(t){return this.getValue().name.getText(t)},e}(text_search_result_item_1.TextSearchResultItem);exports.TextSearchResultItemPart=TextSearchResultItemPart;
@@ -1,36 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.TextSearchResultItemRecentQuery = void 0;
20
- var text_search_result_item_1 = require("./text-search-result-item");
21
- /**
22
- * Text-search results of type recent query.
23
- * Recently sent text search query
24
- */
25
- var TextSearchResultItemRecentQuery = /** @class */ (function (_super) {
26
- __extends(TextSearchResultItemRecentQuery, _super);
27
- function TextSearchResultItemRecentQuery(query, score) {
28
- return _super.call(this, query, score) || this;
29
- }
30
- TextSearchResultItemRecentQuery.prototype.getText = function (languageCode) {
31
- return this.getValue();
32
- };
33
- return TextSearchResultItemRecentQuery;
34
- }(text_search_result_item_1.TextSearchResultItem));
35
- exports.TextSearchResultItemRecentQuery = TextSearchResultItemRecentQuery;
36
- //# sourceMappingURL=text-search-result-item-recent-query.js.map
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 n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchResultItemRecentQuery=void 0;var text_search_result_item_1=require("./text-search-result-item"),TextSearchResultItemRecentQuery=function(t){function e(e,r){return t.call(this,e,r)||this}return __extends(e,t),e.prototype.getText=function(t){return this.getValue()},e}(text_search_result_item_1.TextSearchResultItem);exports.TextSearchResultItemRecentQuery=TextSearchResultItemRecentQuery;
@@ -1,39 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.TextSearchResultItemUnknown = void 0;
20
- var text_search_result_item_1 = require("./text-search-result-item");
21
- /**
22
- * This Unknown-type is used as an intermediate type for all results that can't be resolved by the SDK.
23
- * The app using the SDK can replace these Unknown-Items over externalTempSearchResultManipulator with
24
- * other TextSearchResultItem-Types
25
- */
26
- var TextSearchResultItemUnknown = /** @class */ (function (_super) {
27
- __extends(TextSearchResultItemUnknown, _super);
28
- function TextSearchResultItemUnknown(data, score, domainType) {
29
- var _this = _super.call(this, data, score) || this;
30
- _this.domainType = domainType;
31
- return _this;
32
- }
33
- TextSearchResultItemUnknown.prototype.getText = function (languageCode) {
34
- return 'unknown';
35
- };
36
- return TextSearchResultItemUnknown;
37
- }(text_search_result_item_1.TextSearchResultItem));
38
- exports.TextSearchResultItemUnknown = TextSearchResultItemUnknown;
39
- //# sourceMappingURL=text-search-result-item-unknown.js.map
2
+ "use strict";var __extends=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchResultItemUnknown=void 0;var text_search_result_item_1=require("./text-search-result-item"),TextSearchResultItemUnknown=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.domainType=r,o}return __extends(e,t),e.prototype.getText=function(t){return"unknown"},e}(text_search_result_item_1.TextSearchResultItem);exports.TextSearchResultItemUnknown=TextSearchResultItemUnknown;
@@ -1,23 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TextSearchResultItem = void 0;
5
- /**
6
- * The text-search can have result-items of different types, like parts or documents.
7
- * This is the generic super-type of text-search result-items.
8
- */
9
- var TextSearchResultItem = /** @class */ (function () {
10
- function TextSearchResultItem(value, score) {
11
- this.value = value;
12
- this.score = score;
13
- }
14
- /**
15
- * Get the value of the search-result item, depends on the type
16
- */
17
- TextSearchResultItem.prototype.getValue = function () {
18
- return this.value;
19
- };
20
- return TextSearchResultItem;
21
- }());
22
- exports.TextSearchResultItem = TextSearchResultItem;
23
- //# sourceMappingURL=text-search-result-item.js.map
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextSearchResultItem=void 0;var TextSearchResultItem=function(){function e(e,t){this.value=e,this.score=t}return e.prototype.getValue=function(){return this.value},e}();exports.TextSearchResultItem=TextSearchResultItem;