@seed-hypermedia/client 0.0.19 → 0.0.21
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.
|
@@ -660,7 +660,9 @@ var HMSearchInputSchema = z.object({
|
|
|
660
660
|
contextSize: z.number().optional(),
|
|
661
661
|
perspectiveAccountUid: z.string().optional(),
|
|
662
662
|
searchType: z.number().optional(),
|
|
663
|
-
pageSize: z.number().optional()
|
|
663
|
+
pageSize: z.number().optional(),
|
|
664
|
+
iriFilter: z.string().optional(),
|
|
665
|
+
contentTypeFilter: z.array(z.number()).optional()
|
|
664
666
|
});
|
|
665
667
|
var HMSearchResultItemSchema = z.object({
|
|
666
668
|
id: unpackedHmIdSchema,
|
package/dist/hm-types.d.ts
CHANGED
|
@@ -15542,6 +15542,8 @@ export declare const HMSearchInputSchema: z.ZodObject<{
|
|
|
15542
15542
|
perspectiveAccountUid: z.ZodOptional<z.ZodString>;
|
|
15543
15543
|
searchType: z.ZodOptional<z.ZodNumber>;
|
|
15544
15544
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
15545
|
+
iriFilter: z.ZodOptional<z.ZodString>;
|
|
15546
|
+
contentTypeFilter: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
15545
15547
|
}, "strip", z.ZodTypeAny, {
|
|
15546
15548
|
query: string;
|
|
15547
15549
|
accountUid?: string | undefined;
|
|
@@ -15550,6 +15552,8 @@ export declare const HMSearchInputSchema: z.ZodObject<{
|
|
|
15550
15552
|
perspectiveAccountUid?: string | undefined;
|
|
15551
15553
|
searchType?: number | undefined;
|
|
15552
15554
|
pageSize?: number | undefined;
|
|
15555
|
+
iriFilter?: string | undefined;
|
|
15556
|
+
contentTypeFilter?: number[] | undefined;
|
|
15553
15557
|
}, {
|
|
15554
15558
|
query: string;
|
|
15555
15559
|
accountUid?: string | undefined;
|
|
@@ -15558,6 +15562,8 @@ export declare const HMSearchInputSchema: z.ZodObject<{
|
|
|
15558
15562
|
perspectiveAccountUid?: string | undefined;
|
|
15559
15563
|
searchType?: number | undefined;
|
|
15560
15564
|
pageSize?: number | undefined;
|
|
15565
|
+
iriFilter?: string | undefined;
|
|
15566
|
+
contentTypeFilter?: number[] | undefined;
|
|
15561
15567
|
}>;
|
|
15562
15568
|
export type HMSearchInput = z.infer<typeof HMSearchInputSchema>;
|
|
15563
15569
|
export declare const HMSearchResultItemSchema: z.ZodObject<{
|
|
@@ -16110,6 +16116,8 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
|
|
|
16110
16116
|
perspectiveAccountUid: z.ZodOptional<z.ZodString>;
|
|
16111
16117
|
searchType: z.ZodOptional<z.ZodNumber>;
|
|
16112
16118
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
16119
|
+
iriFilter: z.ZodOptional<z.ZodString>;
|
|
16120
|
+
contentTypeFilter: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
16113
16121
|
}, "strip", z.ZodTypeAny, {
|
|
16114
16122
|
query: string;
|
|
16115
16123
|
accountUid?: string | undefined;
|
|
@@ -16118,6 +16126,8 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
|
|
|
16118
16126
|
perspectiveAccountUid?: string | undefined;
|
|
16119
16127
|
searchType?: number | undefined;
|
|
16120
16128
|
pageSize?: number | undefined;
|
|
16129
|
+
iriFilter?: string | undefined;
|
|
16130
|
+
contentTypeFilter?: number[] | undefined;
|
|
16121
16131
|
}, {
|
|
16122
16132
|
query: string;
|
|
16123
16133
|
accountUid?: string | undefined;
|
|
@@ -16126,6 +16136,8 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
|
|
|
16126
16136
|
perspectiveAccountUid?: string | undefined;
|
|
16127
16137
|
searchType?: number | undefined;
|
|
16128
16138
|
pageSize?: number | undefined;
|
|
16139
|
+
iriFilter?: string | undefined;
|
|
16140
|
+
contentTypeFilter?: number[] | undefined;
|
|
16129
16141
|
}>;
|
|
16130
16142
|
output: z.ZodObject<{
|
|
16131
16143
|
entities: z.ZodArray<z.ZodObject<{
|
|
@@ -16456,6 +16468,8 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
|
|
|
16456
16468
|
perspectiveAccountUid?: string | undefined;
|
|
16457
16469
|
searchType?: number | undefined;
|
|
16458
16470
|
pageSize?: number | undefined;
|
|
16471
|
+
iriFilter?: string | undefined;
|
|
16472
|
+
contentTypeFilter?: number[] | undefined;
|
|
16459
16473
|
};
|
|
16460
16474
|
output: {
|
|
16461
16475
|
searchQuery: string;
|
|
@@ -16516,6 +16530,8 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
|
|
|
16516
16530
|
perspectiveAccountUid?: string | undefined;
|
|
16517
16531
|
searchType?: number | undefined;
|
|
16518
16532
|
pageSize?: number | undefined;
|
|
16533
|
+
iriFilter?: string | undefined;
|
|
16534
|
+
contentTypeFilter?: number[] | undefined;
|
|
16519
16535
|
};
|
|
16520
16536
|
output: {
|
|
16521
16537
|
searchQuery: string;
|
|
@@ -29987,6 +30003,8 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
|
|
|
29987
30003
|
perspectiveAccountUid: z.ZodOptional<z.ZodString>;
|
|
29988
30004
|
searchType: z.ZodOptional<z.ZodNumber>;
|
|
29989
30005
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
30006
|
+
iriFilter: z.ZodOptional<z.ZodString>;
|
|
30007
|
+
contentTypeFilter: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
29990
30008
|
}, "strip", z.ZodTypeAny, {
|
|
29991
30009
|
query: string;
|
|
29992
30010
|
accountUid?: string | undefined;
|
|
@@ -29995,6 +30013,8 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
|
|
|
29995
30013
|
perspectiveAccountUid?: string | undefined;
|
|
29996
30014
|
searchType?: number | undefined;
|
|
29997
30015
|
pageSize?: number | undefined;
|
|
30016
|
+
iriFilter?: string | undefined;
|
|
30017
|
+
contentTypeFilter?: number[] | undefined;
|
|
29998
30018
|
}, {
|
|
29999
30019
|
query: string;
|
|
30000
30020
|
accountUid?: string | undefined;
|
|
@@ -30003,6 +30023,8 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
|
|
|
30003
30023
|
perspectiveAccountUid?: string | undefined;
|
|
30004
30024
|
searchType?: number | undefined;
|
|
30005
30025
|
pageSize?: number | undefined;
|
|
30026
|
+
iriFilter?: string | undefined;
|
|
30027
|
+
contentTypeFilter?: number[] | undefined;
|
|
30006
30028
|
}>;
|
|
30007
30029
|
output: z.ZodObject<{
|
|
30008
30030
|
entities: z.ZodArray<z.ZodObject<{
|
|
@@ -30333,6 +30355,8 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
|
|
|
30333
30355
|
perspectiveAccountUid?: string | undefined;
|
|
30334
30356
|
searchType?: number | undefined;
|
|
30335
30357
|
pageSize?: number | undefined;
|
|
30358
|
+
iriFilter?: string | undefined;
|
|
30359
|
+
contentTypeFilter?: number[] | undefined;
|
|
30336
30360
|
};
|
|
30337
30361
|
output: {
|
|
30338
30362
|
searchQuery: string;
|
|
@@ -30393,6 +30417,8 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
|
|
|
30393
30417
|
perspectiveAccountUid?: string | undefined;
|
|
30394
30418
|
searchType?: number | undefined;
|
|
30395
30419
|
pageSize?: number | undefined;
|
|
30420
|
+
iriFilter?: string | undefined;
|
|
30421
|
+
contentTypeFilter?: number[] | undefined;
|
|
30396
30422
|
};
|
|
30397
30423
|
output: {
|
|
30398
30424
|
searchQuery: string;
|
|
@@ -39995,6 +40021,8 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
|
|
|
39995
40021
|
perspectiveAccountUid: z.ZodOptional<z.ZodString>;
|
|
39996
40022
|
searchType: z.ZodOptional<z.ZodNumber>;
|
|
39997
40023
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
40024
|
+
iriFilter: z.ZodOptional<z.ZodString>;
|
|
40025
|
+
contentTypeFilter: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
39998
40026
|
}, "strip", z.ZodTypeAny, {
|
|
39999
40027
|
query: string;
|
|
40000
40028
|
accountUid?: string | undefined;
|
|
@@ -40003,6 +40031,8 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
|
|
|
40003
40031
|
perspectiveAccountUid?: string | undefined;
|
|
40004
40032
|
searchType?: number | undefined;
|
|
40005
40033
|
pageSize?: number | undefined;
|
|
40034
|
+
iriFilter?: string | undefined;
|
|
40035
|
+
contentTypeFilter?: number[] | undefined;
|
|
40006
40036
|
}, {
|
|
40007
40037
|
query: string;
|
|
40008
40038
|
accountUid?: string | undefined;
|
|
@@ -40011,6 +40041,8 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
|
|
|
40011
40041
|
perspectiveAccountUid?: string | undefined;
|
|
40012
40042
|
searchType?: number | undefined;
|
|
40013
40043
|
pageSize?: number | undefined;
|
|
40044
|
+
iriFilter?: string | undefined;
|
|
40045
|
+
contentTypeFilter?: number[] | undefined;
|
|
40014
40046
|
}>;
|
|
40015
40047
|
output: z.ZodObject<{
|
|
40016
40048
|
entities: z.ZodArray<z.ZodObject<{
|
|
@@ -40341,6 +40373,8 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
|
|
|
40341
40373
|
perspectiveAccountUid?: string | undefined;
|
|
40342
40374
|
searchType?: number | undefined;
|
|
40343
40375
|
pageSize?: number | undefined;
|
|
40376
|
+
iriFilter?: string | undefined;
|
|
40377
|
+
contentTypeFilter?: number[] | undefined;
|
|
40344
40378
|
};
|
|
40345
40379
|
output: {
|
|
40346
40380
|
searchQuery: string;
|
|
@@ -40401,6 +40435,8 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
|
|
|
40401
40435
|
perspectiveAccountUid?: string | undefined;
|
|
40402
40436
|
searchType?: number | undefined;
|
|
40403
40437
|
pageSize?: number | undefined;
|
|
40438
|
+
iriFilter?: string | undefined;
|
|
40439
|
+
contentTypeFilter?: number[] | undefined;
|
|
40404
40440
|
};
|
|
40405
40441
|
output: {
|
|
40406
40442
|
searchQuery: string;
|
package/dist/hm-types.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
serializeBlockRange,
|
|
17
17
|
toNumber,
|
|
18
18
|
unpackHmId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HPRC2RYX.mjs";
|
|
20
20
|
|
|
21
21
|
// src/capability.ts
|
|
22
22
|
import { encode as cborEncode2 } from "@ipld/dag-cbor";
|
|
@@ -3044,6 +3044,9 @@ function computeReplaceOps(oldMap, matchedTree, parentId = "") {
|
|
|
3044
3044
|
if (node.block.childrenType !== void 0) {
|
|
3045
3045
|
block.childrenType = node.block.childrenType;
|
|
3046
3046
|
}
|
|
3047
|
+
if (node.block.link !== void 0) {
|
|
3048
|
+
block.link = node.block.link;
|
|
3049
|
+
}
|
|
3047
3050
|
if (isNew) {
|
|
3048
3051
|
ops.push({ type: "ReplaceBlock", block });
|
|
3049
3052
|
} else {
|
|
@@ -3088,6 +3091,7 @@ function collectIds(nodes, set) {
|
|
|
3088
3091
|
function isBlockContentEqual(old, newBlock) {
|
|
3089
3092
|
if (old.type !== newBlock.type) return false;
|
|
3090
3093
|
if ((old.text || "") !== (newBlock.text || "")) return false;
|
|
3094
|
+
if ((old.link || "") !== (newBlock.link || "")) return false;
|
|
3091
3095
|
const oldAnn = old.annotations || [];
|
|
3092
3096
|
const newAnn = newBlock.annotations || [];
|
|
3093
3097
|
if (oldAnn.length !== newAnn.length) return false;
|