@partium/js-sdk 14.0.3 → 14.2.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/catalog/index.js +21 -1
- package/catalog/models/catalog-image-info.js +22 -1
- package/catalog/models/catalog-image.js +40 -1
- package/catalog/models/upsert-catalog-images-dto.js +3 -1
- package/catalog/models/upsert-images-result.js +3 -1
- package/catalog/services/images.service.js +62 -1
- package/core/constants/constants.js +16 -1
- package/core/decorators/injection-identifier.js +19 -1
- package/core/factories/paginated-request-service.factory.js +33 -1
- package/core/index.js +63 -1
- package/core/integration-defaults/http/fetch-api-http-error-helper.js +129 -1
- package/core/integration-defaults/http/file-transfer/axios-file-transfer.service.js +138 -1
- package/core/integration-defaults/http/file-transfer/fetch-api-file-transfer.service.js +210 -1
- package/core/integration-defaults/http/handle-axios-error-helper.js +79 -1
- package/core/integration-defaults/http/https-client/axios-https-client.service.js +182 -1
- package/core/integration-defaults/http/https-client/fetch-api-https-client.service.js +198 -1
- package/core/integration-defaults/http/js-oauth-keycloak-https.service.js +32 -1
- package/core/integration-defaults/js-p-file.js +36 -1
- package/core/integration-defaults/session/js-oauth-api-key-session.service.js +206 -1
- package/core/integration-defaults/session/js-oauth-keycloak-auth-config.js +64 -1
- package/core/integration-defaults/session/js-oauth-keycloak-session.service.js +257 -1
- package/core/integration-defaults/web-device-status.service.js +125 -1
- package/core/integration-defaults/web-file.service.js +135 -1
- package/core/integration-defaults/web-indexeddb.service.js +142 -1
- package/core/integration-defaults/web-local-storage.service.js +310 -1
- package/core/models/api-object.js +16 -1
- package/core/models/auth-config.js +72 -1
- package/core/models/device-info.js +34 -1
- package/core/models/error.js +107 -1
- package/core/models/formatted-string.js +14 -1
- package/core/models/i18n-map.js +61 -1
- package/core/models/i18n-string.js +35 -1
- package/core/models/log.js +137 -1
- package/core/models/organization.js +159 -1
- package/core/models/p-file.js +23 -1
- package/core/models/paginated-list.js +41 -1
- package/core/models/partium-config.js +43 -1
- package/core/models/user-token.js +11 -1
- package/core/models/user.d.ts +2 -1
- package/core/models/user.js +89 -1
- package/core/services/backend-status.service.js +147 -1
- package/core/services/base-login-init.service.js +57 -1
- package/core/services/base.service.js +37 -1
- package/core/services/device-status.service.interface.js +117 -1
- package/core/services/file.service.interface.js +61 -1
- package/core/services/http/file-transfer/file-transfer.service.interface.js +125 -1
- package/core/services/http/https-client/https-client.service.interface.js +152 -1
- package/core/services/http/https.service.interface.js +294 -1
- package/core/services/http/oauth-https.service.js +218 -1
- package/core/services/local-storage.service.interface.js +378 -1
- package/core/services/log.service.js +139 -1
- package/core/services/organization.service.js +202 -1
- package/core/services/paginated-request.service.js +160 -1
- package/core/services/recent-parts.service.js +194 -1
- package/core/services/service-provider.js +114 -1
- package/core/services/session/oauth-session.service.js +104 -1
- package/core/services/session/session.service.interface.js +367 -1
- package/core/utils/general-helper.js +110 -1
- package/data/index.js +44 -1
- package/data/models/announcement.js +70 -1
- package/data/models/assembly-hierarchy-node-breadcrumb.js +51 -1
- package/data/models/assembly-hierarchy-node.js +46 -1
- package/data/models/attribute.js +106 -1
- package/data/models/csa-request-search.js +46 -1
- package/data/models/csa-request-status.js +51 -1
- package/data/models/csa-request.js +112 -1
- package/data/models/document.js +17 -1
- package/data/models/filter-key.js +36 -1
- package/data/models/filter-option-value.js +41 -1
- package/data/models/image.d.ts +3 -1
- package/data/models/image.js +77 -1
- package/data/models/inquiry.js +71 -1
- package/data/models/mounting-location.js +58 -1
- package/data/models/multiple-expert-searches.js +40 -1
- package/data/models/part-enrichment-data.js +50 -1
- package/data/models/part.js +168 -1
- package/data/models/shopping-cart.js +60 -1
- package/data/services/announcement.service.js +89 -1
- package/data/services/assembly-hierarchy-nodes.service.js +193 -1
- package/data/services/csa-helper.service.js +158 -1
- package/data/services/customer-service-assistance.service.js +276 -1
- package/data/services/filter.service.js +97 -1
- package/data/services/inquiry.service.js +68 -1
- package/data/services/part-attribute.service.js +118 -1
- package/data/services/part-enrichment.service.js +56 -1
- package/data/services/part.service.js +182 -1
- package/data/services/related-parts.service.js +83 -1
- package/data/services/shopping-cart.service.js +152 -1
- package/find/index.js +51 -1
- package/find/models/assets/asset.js +32 -1
- package/find/models/search-filter.js +205 -1
- package/find/models/search-input.js +3 -1
- package/find/models/search-output.js +3 -1
- package/find/models/search-result-status.js +40 -1
- package/find/models/search-session-log-object.js +22 -1
- package/find/models/search-status/cv-search-status.js +22 -1
- package/find/models/search-status/search-filter-status.js +36 -1
- package/find/models/search-status/search-status.js +56 -1
- package/find/models/search-status/tag-search-status.js +23 -1
- package/find/models/search-status/text-search-status.js +18 -1
- package/find/models/search-tag.js +16 -1
- package/find/models/smart-filter.js +49 -1
- package/find/models/tagable/i18n-tagable.js +37 -1
- package/find/models/tagable/tagable-base.js +22 -1
- package/find/models/tagable/tagable.js +37 -1
- package/find/models/text-search-config.js +70 -1
- package/find/models/text-search-manipulator.js +90 -1
- package/find/models/text-search-result-item/text-search-error.js +12 -1
- package/find/models/text-search-result-item/text-search-result-item-document.js +34 -1
- package/find/models/text-search-result-item/text-search-result-item-part.js +36 -1
- package/find/models/text-search-result-item/text-search-result-item-recent-query.js +35 -1
- package/find/models/text-search-result-item/text-search-result-item-unknown.js +38 -1
- package/find/models/text-search-result-item/text-search-result-item.js +22 -1
- package/find/services/asset.service.js +348 -1
- package/find/services/filter-uploaders/filter-uploader.js +3 -1
- package/find/services/filter-uploaders/update-filters-uploader.js +77 -1
- package/find/services/filter-uploaders/update-filters.model.js +7 -1
- package/find/services/search/cv-search.service.js +214 -1
- package/find/services/search/recent-text-search-queries.service.js +260 -1
- package/find/services/search/search-result.service.js +539 -1
- package/find/services/search/search.service.js +514 -1
- package/find/services/search/tag-search.service.js +124 -1
- package/find/services/search/text-search.service.js +316 -1
- package/find/services/search-filter.service.js +292 -1
- package/find/utils/search-helper.js +75 -1
- package/gen/sdk-version.d.ts +1 -1
- package/gen/sdk-version.js +5 -1
- package/index.js +392 -1
- package/management/index.js +21 -1
- package/management/models/api-key-list-response.js +3 -1
- package/management/models/api-key-type.js +9 -1
- package/management/models/api-key.js +3 -1
- package/management/services/api-key.service.js +53 -1
- package/ocr/index.js +20 -1
- package/ocr/models/detect-response.js +3 -1
- package/ocr/models/detected-text-entry.js +3 -1
- package/ocr/services/ocr.service.js +59 -1
- package/package.json +1 -1
- package/user-data/index.js +21 -1
- package/user-data/models/part-with-nullable.js +3 -1
- package/user-data/models/request-list/request-list.js +63 -1
- package/user-data/services/favorite/favorite.service.js +108 -1
- package/user-data/services/request-list/request-list.service.js +133 -1
|
@@ -1,2 +1,71 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,91 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,35 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,37 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,39 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
// Copyright © 2022-2025 Partium, Inc. DBA Partium
|
|
2
|
-
"use strict";
|
|
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
|