@kontent-ai/core-sdk 12.0.0-preview.17 → 12.0.0-preview.19
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/dist/core-sdk-info.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import z from "zod";
|
|
1
2
|
export type JsonValue = string | number | null | boolean | JsonObject | JsonArray;
|
|
2
3
|
export type JsonObject = {
|
|
3
4
|
readonly [property: string]: JsonValue;
|
|
4
5
|
};
|
|
5
6
|
export type JsonArray = readonly JsonValue[];
|
|
7
|
+
/**
|
|
8
|
+
* Runtime validator for the core SDK `JsonValue` type.
|
|
9
|
+
*
|
|
10
|
+
* Matches:
|
|
11
|
+
* - string | number | boolean | null
|
|
12
|
+
* - readonly JsonValue[]
|
|
13
|
+
* - { readonly [property: string]: JsonValue }
|
|
14
|
+
*/
|
|
15
|
+
export declare const jsonValueSchema: z.ZodType<JsonValue>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Runtime validator for the core SDK `JsonValue` type.
|
|
4
|
+
*
|
|
5
|
+
* Matches:
|
|
6
|
+
* - string | number | boolean | null
|
|
7
|
+
* - readonly JsonValue[]
|
|
8
|
+
* - { readonly [property: string]: JsonValue }
|
|
9
|
+
*/
|
|
10
|
+
export const jsonValueSchema = z.lazy(() => z.union([z.string(), z.number(), z.boolean(), z.null(), z.array(jsonValueSchema).readonly(), z.record(z.string(), jsonValueSchema)]));
|
|
2
11
|
//# sourceMappingURL=json.models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.models.js","sourceRoot":"","sources":["../../lib/models/json.models.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"json.models.js","sourceRoot":"","sources":["../../lib/models/json.models.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAUpB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAyB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAChE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,CACpI,CAAC"}
|
package/dist/public_api.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { AdapterBody, AdapterDownloadFileOptions, AdapterExecuteRequestOpti
|
|
|
4
4
|
export { getDefaultHttpService } from "./http/http.service.js";
|
|
5
5
|
export type { CommonHeaderNames, ContinuationHeaderName, ErrorResponseData, Header, HttpMethod, RetryStrategyOptions, SDKInfo, ValidationError, } from "./models/core.models.js";
|
|
6
6
|
export { AdapterAbortError, AdapterParseError, type ErrorDetails, type ErrorDetailsFor, type ErrorReason, KontentSdkError, } from "./models/error.models.js";
|
|
7
|
-
export type
|
|
7
|
+
export { type JsonArray, type JsonObject, type JsonValue, jsonValueSchema } from "./models/json.models.js";
|
|
8
8
|
export type { EmptyObject, PickStringLiteral } from "./models/utility.types.js";
|
|
9
9
|
export { createFetchQuery } from "./sdk/queries/fetch-sdk-query.js";
|
|
10
10
|
export { createMutationQuery } from "./sdk/queries/mutation-sdk-query.js";
|
|
@@ -12,6 +12,7 @@ export { createPagedFetchQuery } from "./sdk/queries/paged-fetch-sdk-query.js";
|
|
|
12
12
|
export { kontentUuidSchema, nilUuid } from "./sdk/sdk-config.js";
|
|
13
13
|
export type { FetchQuery, FetchQueryRequest, MutationQuery, MutationQueryRequest, PagedFetchQuery, PagingQueryResult, Query, QueryResponse, QueryResponseMeta, QueryResult, SafePagingQueryResult, SdkConfig, SuccessfulHttpResponse, } from "./sdk/sdk-models.js";
|
|
14
14
|
export { isPagingQuery } from "./sdk/sdk-utils.js";
|
|
15
|
+
export { isDefined } from "./utils/core.utils.js";
|
|
15
16
|
export { isKontent404Error, isKontentSdkError } from "./utils/error.utils.js";
|
|
16
17
|
export { extractContinuationToken, getSdkIdHeader } from "./utils/header.utils.js";
|
|
17
18
|
export { resolveDefaultRetryStrategyOptions } from "./utils/retry.utils.js";
|
package/dist/public_api.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
export { getDefaultHttpAdapter } from "./http/http.adapter.js";
|
|
3
3
|
export { getDefaultHttpService } from "./http/http.service.js";
|
|
4
4
|
export { AdapterAbortError, AdapterParseError, KontentSdkError, } from "./models/error.models.js";
|
|
5
|
+
export { jsonValueSchema } from "./models/json.models.js";
|
|
5
6
|
export { createFetchQuery } from "./sdk/queries/fetch-sdk-query.js";
|
|
6
7
|
export { createMutationQuery } from "./sdk/queries/mutation-sdk-query.js";
|
|
7
8
|
export { createPagedFetchQuery } from "./sdk/queries/paged-fetch-sdk-query.js";
|
|
8
9
|
export { kontentUuidSchema, nilUuid } from "./sdk/sdk-config.js";
|
|
9
10
|
export { isPagingQuery } from "./sdk/sdk-utils.js";
|
|
11
|
+
export { isDefined } from "./utils/core.utils.js";
|
|
10
12
|
export { isKontent404Error, isKontentSdkError } from "./utils/error.utils.js";
|
|
11
13
|
export { extractContinuationToken, getSdkIdHeader } from "./utils/header.utils.js";
|
|
12
14
|
export { resolveDefaultRetryStrategyOptions } from "./utils/retry.utils.js";
|
package/dist/public_api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../lib/public_api.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAqB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAW/D,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EAIjB,eAAe,GACf,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../lib/public_api.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAqB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAW/D,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EAIjB,eAAe,GACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAmD,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAgBjE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kontent-ai/core-sdk",
|
|
3
|
-
"version": "12.0.0-preview.
|
|
3
|
+
"version": "12.0.0-preview.19",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/kontent-ai/core-sdk-js"
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"@kontent-ai/biome-config": "0.7.0",
|
|
56
56
|
"@kontent-ai/eslint-config": "2.4.1",
|
|
57
57
|
"eslint": "10.0.3",
|
|
58
|
-
"@biomejs/biome": "2.4.
|
|
59
|
-
"@types/node": "25.
|
|
58
|
+
"@biomejs/biome": "2.4.8",
|
|
59
|
+
"@types/node": "25.5.0",
|
|
60
60
|
"typescript": "6.0.1-rc",
|
|
61
|
-
"vitest": "4.0
|
|
61
|
+
"vitest": "4.1.0",
|
|
62
62
|
"tsx": "4.21.0"
|
|
63
63
|
}
|
|
64
64
|
}
|