@medusajs/types 2.19.0 → 2.19.1-preview-20260813144737
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* in the OIDC ID token. The key is the target field, and the value is the
|
|
4
4
|
* name of the claim to read it from.
|
|
5
5
|
*
|
|
6
|
-
* @since 2.
|
|
6
|
+
* @since 2.19.0
|
|
7
7
|
*/
|
|
8
8
|
export interface OidcClaimMappings {
|
|
9
9
|
/**
|
|
@@ -37,7 +37,7 @@ export interface OidcClaimMappings {
|
|
|
37
37
|
* Auth0, Keycloak, Google Workspace, ...) by resolving the provider's configuration
|
|
38
38
|
* from its discovery document, unless the relevant endpoints are configured explicitly.
|
|
39
39
|
*
|
|
40
|
-
* @since 2.
|
|
40
|
+
* @since 2.19.0
|
|
41
41
|
*/
|
|
42
42
|
export interface OidcAuthProviderOptions {
|
|
43
43
|
/**
|
|
@@ -8,6 +8,9 @@ export interface AdminSearchParams {
|
|
|
8
8
|
* The entities / indexes to search, comma-separated.
|
|
9
9
|
* When the Search Module is enabled, defaults to every registered index.
|
|
10
10
|
* Otherwise defaults to the admin fallback entity set.
|
|
11
|
+
*
|
|
12
|
+
* Per entity, an index is used when one exists; otherwise the request falls
|
|
13
|
+
* back to `query.graph` for that entity only.
|
|
11
14
|
*/
|
|
12
15
|
entity?: string | string[];
|
|
13
16
|
/** Per entity, not across the response — each group paginates on its own. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/search/admin/queries.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,CAAC,CAAC,EAAE,MAAM,CAAA;IAEV
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/search/admin/queries.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,CAAC,CAAC,EAAE,MAAM,CAAA;IAEV;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE1B,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `TDataType` types `defaultValue` to match the property's `$dataType`.
|
|
6
6
|
* Defaults to `any` so untyped call sites (compilers, helpers) keep working.
|
|
7
7
|
*
|
|
8
|
-
* @since 2.
|
|
8
|
+
* @since 2.19.0
|
|
9
9
|
*/
|
|
10
10
|
export type SchemaPropertyMetadata<TDataType = any> = {
|
|
11
11
|
fieldName: string;
|
|
@@ -22,7 +22,7 @@ export type SchemaPropertyMetadata<TDataType = any> = {
|
|
|
22
22
|
* method to get the metadata and a type-only property
|
|
23
23
|
* to get its static type.
|
|
24
24
|
*
|
|
25
|
-
* @since 2.
|
|
25
|
+
* @since 2.19.0
|
|
26
26
|
*/
|
|
27
27
|
export type SchemaPropertyType<T> = {
|
|
28
28
|
$dataType: T;
|
package/dist/search/schema.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ import { SearchIndexDefinition, SearchSeedContext } from "./index-definition";
|
|
|
5
5
|
/**
|
|
6
6
|
* Schema of search index fields — key-value pairs of search properties.
|
|
7
7
|
*
|
|
8
|
-
* @since 2.
|
|
8
|
+
* @since 2.19.0
|
|
9
9
|
*/
|
|
10
10
|
export type SearchSchema = Record<string, SearchPropertyType<any>>;
|
|
11
11
|
/**
|
|
12
12
|
* Runtime metadata produced by parsing a search property.
|
|
13
13
|
* `T` types `defaultValue` to match `$dataType` (search fields rarely set one).
|
|
14
14
|
*
|
|
15
|
-
* @since 2.
|
|
15
|
+
* @since 2.19.0
|
|
16
16
|
*/
|
|
17
17
|
export type SearchPropertyMetadata<T = any> = SchemaPropertyMetadata<T> & {
|
|
18
18
|
dataType: {
|
|
@@ -37,7 +37,7 @@ export type SearchPropertyMetadata<T = any> = SchemaPropertyMetadata<T> & {
|
|
|
37
37
|
/**
|
|
38
38
|
* A search property that can be parsed into SearchPropertyMetadata.
|
|
39
39
|
*
|
|
40
|
-
* @since 2.
|
|
40
|
+
* @since 2.19.0
|
|
41
41
|
*/
|
|
42
42
|
export type SearchPropertyType<T> = {
|
|
43
43
|
$dataType: T;
|
|
@@ -47,7 +47,7 @@ export type SearchPropertyType<T> = {
|
|
|
47
47
|
* Type-only marker `.array()` stamps on a property. It never exists at
|
|
48
48
|
* runtime — document inference reads it to turn `$dataType` into an array.
|
|
49
49
|
*
|
|
50
|
-
* @since 2.
|
|
50
|
+
* @since 2.19.0
|
|
51
51
|
*/
|
|
52
52
|
export interface SearchArrayMarker {
|
|
53
53
|
$isArray: true;
|
|
@@ -57,7 +57,7 @@ export interface SearchArrayMarker {
|
|
|
57
57
|
* `null` — engines treat null as absent, and real documents carry nulls for
|
|
58
58
|
* missing data.
|
|
59
59
|
*
|
|
60
|
-
* @since 2.
|
|
60
|
+
* @since 2.19.0
|
|
61
61
|
*/
|
|
62
62
|
export type InferSearchPropertyValue<P extends SearchPropertyType<any>> = (P extends SearchArrayMarker ? P["$dataType"][] : P["$dataType"]) | null;
|
|
63
63
|
/**
|
|
@@ -65,7 +65,7 @@ export type InferSearchPropertyValue<P extends SearchPropertyType<any>> = (P ext
|
|
|
65
65
|
* keys are allowed — seeds commonly spread whole entities, and engines ignore
|
|
66
66
|
* what the index does not declare.
|
|
67
67
|
*
|
|
68
|
-
* @since 2.
|
|
68
|
+
* @since 2.19.0
|
|
69
69
|
*/
|
|
70
70
|
export type InferSearchObjectValue<Schema extends SearchSchema> = {
|
|
71
71
|
[K in keyof Schema]?: InferSearchPropertyValue<Schema[K]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/types",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.1-preview-20260813144737",
|
|
4
4
|
"description": "Medusa Types definition",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"bignumber.js": "^9.1.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@medusajs/deps": "2.19.
|
|
41
|
+
"@medusajs/deps": "2.19.1-preview-20260813144737"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"ioredis": "^5.4.1",
|