@proposit/shared 0.1.0 → 0.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/dist/api-client/argument/batch.d.ts +10 -9
- package/dist/api-client/argument/batch.d.ts.map +1 -1
- package/dist/api-client/argument/batch.js +10 -6
- package/dist/api-client/argument/batch.js.map +1 -1
- package/dist/api-client/argument/claims.d.ts +6 -5
- package/dist/api-client/argument/claims.d.ts.map +1 -1
- package/dist/api-client/argument/claims.js +16 -10
- package/dist/api-client/argument/claims.js.map +1 -1
- package/dist/api-client/argument/index.d.ts +57 -56
- package/dist/api-client/argument/index.d.ts.map +1 -1
- package/dist/api-client/argument/index.js +45 -30
- package/dist/api-client/argument/index.js.map +1 -1
- package/dist/api-client/argument/logic/index.d.ts +25 -24
- package/dist/api-client/argument/logic/index.d.ts.map +1 -1
- package/dist/api-client/argument/logic/index.js +56 -38
- package/dist/api-client/argument/logic/index.js.map +1 -1
- package/dist/api-client/argument/logic/repair.d.ts +5 -4
- package/dist/api-client/argument/logic/repair.d.ts.map +1 -1
- package/dist/api-client/argument/logic/repair.js +6 -4
- package/dist/api-client/argument/logic/repair.js.map +1 -1
- package/dist/api-client/argument/reactions.d.ts +3 -2
- package/dist/api-client/argument/reactions.d.ts.map +1 -1
- package/dist/api-client/argument/reactions.js +7 -4
- package/dist/api-client/argument/reactions.js.map +1 -1
- package/dist/api-client/argument/reviews.d.ts +7 -6
- package/dist/api-client/argument/reviews.d.ts.map +1 -1
- package/dist/api-client/argument/reviews.js +19 -12
- package/dist/api-client/argument/reviews.js.map +1 -1
- package/dist/api-client/config.d.ts +22 -0
- package/dist/api-client/config.d.ts.map +1 -0
- package/dist/api-client/config.js +2 -0
- package/dist/api-client/config.js.map +1 -0
- package/dist/api-client/factory.d.ts +80 -0
- package/dist/api-client/factory.d.ts.map +1 -0
- package/dist/api-client/factory.js +85 -0
- package/dist/api-client/factory.js.map +1 -0
- package/dist/api-client/index.d.ts +4 -0
- package/dist/api-client/index.d.ts.map +1 -0
- package/dist/api-client/index.js +2 -0
- package/dist/api-client/index.js.map +1 -0
- package/dist/api-client/internal.d.ts +7 -0
- package/dist/api-client/internal.d.ts.map +1 -0
- package/dist/api-client/internal.js +10 -0
- package/dist/api-client/internal.js.map +1 -0
- package/dist/api-client/search.d.ts +4 -3
- package/dist/api-client/search.d.ts.map +1 -1
- package/dist/api-client/search.js +10 -6
- package/dist/api-client/search.js.map +1 -1
- package/dist/api-client/user/claims.d.ts +2 -1
- package/dist/api-client/user/claims.d.ts.map +1 -1
- package/dist/api-client/user/claims.js +5 -3
- package/dist/api-client/user/claims.js.map +1 -1
- package/dist/api-client/user/sources.d.ts +2 -1
- package/dist/api-client/user/sources.d.ts.map +1 -1
- package/dist/api-client/user/sources.js +5 -3
- package/dist/api-client/user/sources.js.map +1 -1
- package/dist/schemas/api/argument/batch/change-edge-operator.d.ts +3 -3
- package/dist/schemas/api/argument/batch/create-expression-with-operator.d.ts +3 -3
- package/dist/schemas/api/argument/index.d.ts +24 -24
- package/dist/schemas/api/argument/repair.d.ts +3 -3
- package/dist/schemas/integrations/index.d.ts +3 -3
- package/dist/schemas/model/arguments.d.ts +6 -6
- package/dist/schemas/snapshot.d.ts +3 -3
- package/package.json +4 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repair.d.ts","sourceRoot":"","sources":["../../../../src/api-client/argument/logic/repair.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,cAAc,EACtB,MAAM,yCAAyC,CAAA;
|
|
1
|
+
{"version":3,"file":"repair.d.ts","sourceRoot":"","sources":["../../../../src/api-client/argument/logic/repair.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,cAAc,EACtB,MAAM,yCAAyC,CAAA;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAWvD,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAWvB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { RepairRequestSchema, RepairResponseSchema, } from "../../../schemas/api/argument/repair.js";
|
|
2
2
|
import { strictFetch } from "../../../utils/utils.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { resolveBaseUrl } from "../../internal.js";
|
|
4
|
+
function repairUrl(argumentId, argumentVersion, baseUrl) {
|
|
5
|
+
return `${baseUrl}/api/v1/argument/${argumentId}/${argumentVersion}/logic/repair`;
|
|
5
6
|
}
|
|
6
|
-
export async function
|
|
7
|
-
|
|
7
|
+
export async function repairArgumentImpl(config, argumentId, argumentVersion, data) {
|
|
8
|
+
const baseUrl = resolveBaseUrl(config);
|
|
9
|
+
return await strictFetch(repairUrl(argumentId, argumentVersion, baseUrl), { method: "POST" }, data, RepairRequestSchema, RepairResponseSchema, config.fetchImpl);
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=repair.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repair.js","sourceRoot":"","sources":["../../../../src/api-client/argument/logic/repair.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,oBAAoB,GAEvB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,SAAS,SAAS,CACd,UAAkB,EAClB,eAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"repair.js","sourceRoot":"","sources":["../../../../src/api-client/argument/logic/repair.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,oBAAoB,GAEvB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,SAAS,SAAS,CACd,UAAkB,EAClB,eAAuB,EACvB,OAAe;IAEf,OAAO,GAAG,OAAO,oBAAoB,UAAU,IAAI,eAAe,eAAe,CAAA;AACrF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,MAAwB,EACxB,UAAkB,EAClB,eAAuB,EACvB,IAAoB;IAEpB,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,MAAM,WAAW,CACpB,SAAS,CAAC,UAAU,EAAE,eAAe,EAAE,OAAO,CAAC,EAC/C,EAAE,MAAM,EAAE,MAAM,EAAE,EAClB,IAAI,EACJ,mBAAmB,EACnB,oBAAoB,EACpB,MAAM,CAAC,SAAS,CACnB,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type TReactionCreateRequest } from "../../schemas/api/reaction/index.js";
|
|
2
|
-
|
|
2
|
+
import type { TApiClientConfig } from "../config.js";
|
|
3
|
+
export declare function createReactionImpl(config: TApiClientConfig, argumentId: string, version: number, data: TReactionCreateRequest): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
3
4
|
errorID: import("typebox").TNumber;
|
|
4
5
|
errorMessage: import("typebox").TString;
|
|
5
6
|
statusCode: import("typebox").TNumber;
|
|
@@ -21,7 +22,7 @@ export declare function createReaction(argumentId: string, version: number, data
|
|
|
21
22
|
createdOn: import("../../schemas/common.js").TDateType;
|
|
22
23
|
}>>;
|
|
23
24
|
}>>>;
|
|
24
|
-
export declare function
|
|
25
|
+
export declare function deleteReactionImpl(config: TApiClientConfig, argumentId: string, version: number, reactionId: string): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
25
26
|
errorID: import("typebox").TNumber;
|
|
26
27
|
errorMessage: import("typebox").TString;
|
|
27
28
|
statusCode: import("typebox").TNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactions.d.ts","sourceRoot":"","sources":["../../../src/api-client/argument/reactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,sBAAsB,EAC9B,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"reactions.d.ts","sourceRoot":"","sources":["../../../src/api-client/argument/reactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,sBAAsB,EAC9B,MAAM,qCAAqC,CAAA;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAGpD,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;KAW/B;AAED,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM;;;;;;;;;;;;;KAUrB"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ReactionCreateRequest, ReactionCreateResponse, ReactionDeleteResponse, } from "../../schemas/api/reaction/index.js";
|
|
2
2
|
import { parseResponse, strictFetch } from "../../utils/utils.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { resolveBaseUrl } from "../internal.js";
|
|
4
|
+
export async function createReactionImpl(config, argumentId, version, data) {
|
|
5
|
+
const baseUrl = resolveBaseUrl(config);
|
|
6
|
+
return await strictFetch(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reactions`, { method: "POST" }, data, ReactionCreateRequest, ReactionCreateResponse, config.fetchImpl);
|
|
5
7
|
}
|
|
6
|
-
export async function
|
|
7
|
-
|
|
8
|
+
export async function deleteReactionImpl(config, argumentId, version, reactionId) {
|
|
9
|
+
const baseUrl = resolveBaseUrl(config);
|
|
10
|
+
return await parseResponse(await config.fetchImpl(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reactions/${reactionId}`, { method: "DELETE" }), ReactionDeleteResponse);
|
|
8
11
|
}
|
|
9
12
|
//# sourceMappingURL=reactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactions.js","sourceRoot":"","sources":["../../../src/api-client/argument/reactions.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GAEzB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEjE,MAAM,CAAC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"reactions.js","sourceRoot":"","sources":["../../../src/api-client/argument/reactions.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GAEzB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,MAAwB,EACxB,UAAkB,EAClB,OAAe,EACf,IAA4B;IAE5B,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,MAAM,WAAW,CACpB,GAAG,OAAO,oBAAoB,UAAU,IAAI,OAAO,YAAY,EAC/D,EAAE,MAAM,EAAE,MAAM,EAAE,EAClB,IAAI,EACJ,qBAAqB,EACrB,sBAAsB,EACtB,MAAM,CAAC,SAAS,CACnB,CAAA;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,MAAwB,EACxB,UAAkB,EAClB,OAAe,EACf,UAAkB;IAElB,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,MAAM,aAAa,CACtB,MAAM,MAAM,CAAC,SAAS,CAClB,GAAG,OAAO,oBAAoB,UAAU,IAAI,OAAO,cAAc,UAAU,EAAE,EAC7E,EAAE,MAAM,EAAE,QAAQ,EAAE,CACvB,EACD,sBAAsB,CACzB,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type TReviewUpdateRequest } from "../../schemas/api/review/index.js";
|
|
2
|
-
|
|
2
|
+
import type { TApiClientConfig } from "../config.js";
|
|
3
|
+
export declare function getMyReviewImpl(config: TApiClientConfig, argumentId: string, version: number): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
3
4
|
errorID: import("typebox").TNumber;
|
|
4
5
|
errorMessage: import("typebox").TString;
|
|
5
6
|
statusCode: import("typebox").TNumber;
|
|
@@ -38,7 +39,7 @@ export declare function getMyReview(argumentId: string, version: number, fetchFn
|
|
|
38
39
|
image: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
39
40
|
}>]>>;
|
|
40
41
|
}>>>;
|
|
41
|
-
export declare function
|
|
42
|
+
export declare function createReviewRemoteImpl(config: TApiClientConfig, argumentId: string, version: number): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
42
43
|
errorID: import("typebox").TNumber;
|
|
43
44
|
errorMessage: import("typebox").TString;
|
|
44
45
|
statusCode: import("typebox").TNumber;
|
|
@@ -70,7 +71,7 @@ export declare function createReviewRemote(argumentId: string, version: number,
|
|
|
70
71
|
}>>;
|
|
71
72
|
}>;
|
|
72
73
|
}>>>;
|
|
73
|
-
export declare function
|
|
74
|
+
export declare function getReviewByIdRemoteImpl(config: TApiClientConfig, argumentId: string, version: number, reviewId: string): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
74
75
|
errorID: import("typebox").TNumber;
|
|
75
76
|
errorMessage: import("typebox").TString;
|
|
76
77
|
statusCode: import("typebox").TNumber;
|
|
@@ -109,7 +110,7 @@ export declare function getReviewByIdRemote(argumentId: string, version: number,
|
|
|
109
110
|
image: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
110
111
|
}>]>>;
|
|
111
112
|
}>>>;
|
|
112
|
-
export declare function
|
|
113
|
+
export declare function patchReviewRemoteImpl(config: TApiClientConfig, argumentId: string, version: number, reviewId: string, data: TReviewUpdateRequest): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
113
114
|
errorID: import("typebox").TNumber;
|
|
114
115
|
errorMessage: import("typebox").TString;
|
|
115
116
|
statusCode: import("typebox").TNumber;
|
|
@@ -141,14 +142,14 @@ export declare function patchReviewRemote(argumentId: string, version: number, r
|
|
|
141
142
|
}>>;
|
|
142
143
|
}>;
|
|
143
144
|
}>>>;
|
|
144
|
-
export declare function
|
|
145
|
+
export declare function deleteReviewRemoteImpl(config: TApiClientConfig, argumentId: string, version: number, reviewId: string): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
145
146
|
errorID: import("typebox").TNumber;
|
|
146
147
|
errorMessage: import("typebox").TString;
|
|
147
148
|
statusCode: import("typebox").TNumber;
|
|
148
149
|
}>> | import("../../schemas/common.js").ParsedSuccess<import("typebox").TObject<{
|
|
149
150
|
success: import("typebox").TLiteral<true>;
|
|
150
151
|
}>>>;
|
|
151
|
-
export declare function
|
|
152
|
+
export declare function setReviewVisibilityImpl(config: TApiClientConfig, argumentId: string, version: number, reviewId: string, isPublic: boolean): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
152
153
|
errorID: import("typebox").TNumber;
|
|
153
154
|
errorMessage: import("typebox").TString;
|
|
154
155
|
statusCode: import("typebox").TNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../../src/api-client/argument/reviews.ts"],"names":[],"mappings":"AAAA,OAAO,EASH,KAAK,oBAAoB,EAC5B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
1
1
|
import { ReviewCreateRequest, ReviewCreateResponse, ReviewDeleteResponse, ReviewGetResponse, ReviewUpdateRequest, ReviewUpdateResponse, ReviewVisibilityRequest, ReviewVisibilityResponse, } from "../../schemas/api/review/index.js";
|
|
2
2
|
import { parseResponse, strictFetch } from "../../utils/utils.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { resolveBaseUrl } from "../internal.js";
|
|
4
|
+
export async function getMyReviewImpl(config, argumentId, version) {
|
|
5
|
+
const baseUrl = resolveBaseUrl(config);
|
|
6
|
+
return await parseResponse(await config.fetchImpl(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reviews`, { method: "GET" }), ReviewGetResponse);
|
|
5
7
|
}
|
|
6
|
-
export async function
|
|
7
|
-
|
|
8
|
+
export async function createReviewRemoteImpl(config, argumentId, version) {
|
|
9
|
+
const baseUrl = resolveBaseUrl(config);
|
|
10
|
+
return await strictFetch(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reviews`, { method: "POST" }, {}, ReviewCreateRequest, ReviewCreateResponse, config.fetchImpl);
|
|
8
11
|
}
|
|
9
|
-
export async function
|
|
10
|
-
|
|
12
|
+
export async function getReviewByIdRemoteImpl(config, argumentId, version, reviewId) {
|
|
13
|
+
const baseUrl = resolveBaseUrl(config);
|
|
14
|
+
return await parseResponse(await config.fetchImpl(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reviews/${reviewId}`, { method: "GET" }), ReviewGetResponse);
|
|
11
15
|
}
|
|
12
|
-
export async function
|
|
13
|
-
|
|
16
|
+
export async function patchReviewRemoteImpl(config, argumentId, version, reviewId, data) {
|
|
17
|
+
const baseUrl = resolveBaseUrl(config);
|
|
18
|
+
return await strictFetch(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reviews/${reviewId}`, { method: "PATCH" }, data, ReviewUpdateRequest, ReviewUpdateResponse, config.fetchImpl);
|
|
14
19
|
}
|
|
15
|
-
export async function
|
|
16
|
-
|
|
20
|
+
export async function deleteReviewRemoteImpl(config, argumentId, version, reviewId) {
|
|
21
|
+
const baseUrl = resolveBaseUrl(config);
|
|
22
|
+
return await parseResponse(await config.fetchImpl(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reviews/${reviewId}`, { method: "DELETE" }), ReviewDeleteResponse);
|
|
17
23
|
}
|
|
18
|
-
export async function
|
|
19
|
-
|
|
24
|
+
export async function setReviewVisibilityImpl(config, argumentId, version, reviewId, isPublic) {
|
|
25
|
+
const baseUrl = resolveBaseUrl(config);
|
|
26
|
+
return await strictFetch(`${baseUrl}/api/v1/argument/${argumentId}/${version}/reviews/${reviewId}/visibility`, { method: "PATCH" }, { public: isPublic }, ReviewVisibilityRequest, ReviewVisibilityResponse, config.fetchImpl);
|
|
20
27
|
}
|
|
21
28
|
//# sourceMappingURL=reviews.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../../src/api-client/argument/reviews.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,GAE3B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEjE,MAAM,CAAC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../../src/api-client/argument/reviews.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,GAE3B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,CAAC,KAAK,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AAE,EACnB,IAAI,EACJ,mBAAmB,EACnB,oBAAoB,EACpB,MAAM,CAAC,SAAS,CACnB,CAAA;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CACxC,MAAwB,EACxB,UAAkB,EAClB,OAAe,EACf,QAAgB;IAEhB,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,MAAM,aAAa,CACtB,MAAM,MAAM,CAAC,SAAS,CAClB,GAAG,OAAO,oBAAoB,UAAU,IAAI,OAAO,YAAY,QAAQ,EAAE,EACzE,EAAE,MAAM,EAAE,QAAQ,EAAE,CACvB,EACD,oBAAoB,CACvB,CAAA;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CACzC,MAAwB,EACxB,UAAkB,EAClB,OAAe,EACf,QAAgB,EAChB,QAAiB;IAEjB,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,MAAM,WAAW,CACpB,GAAG,OAAO,oBAAoB,UAAU,IAAI,OAAO,YAAY,QAAQ,aAAa,EACpF,EAAE,MAAM,EAAE,OAAO,EAAE,EACnB,EAAE,MAAM,EAAE,QAAQ,EAAE,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,MAAM,CAAC,SAAS,CACnB,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for the api-client factory. Consumers provide this once at
|
|
3
|
+
* module setup and obtain a bound client via `createApiClient(config)`.
|
|
4
|
+
*
|
|
5
|
+
* Auth is consumer responsibility — wrap `fetchImpl` to inject tokens, refresh,
|
|
6
|
+
* retry, or telemetry. The factory itself is auth-agnostic.
|
|
7
|
+
*/
|
|
8
|
+
export interface TApiClientConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Prepended to every request URL. Empty string for same-origin.
|
|
11
|
+
*
|
|
12
|
+
* Function form is resolved lazily per-request — use this when the base
|
|
13
|
+
* URL depends on environment variables that may not be available at
|
|
14
|
+
* module-evaluation time (e.g., Next.js build-time static analysis).
|
|
15
|
+
*/
|
|
16
|
+
baseUrl: string | (() => string);
|
|
17
|
+
/** The fetch implementation. Consumer wraps for auth / retry / telemetry. */
|
|
18
|
+
fetchImpl: typeof fetch;
|
|
19
|
+
/** Optional baseline headers merged into every request. Reserved; not yet consumed by *Impl functions — wire in later if needed. */
|
|
20
|
+
defaultHeaders?: Record<string, string>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/api-client/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAA;IAChC,6EAA6E;IAC7E,SAAS,EAAE,OAAO,KAAK,CAAA;IACvB,oIAAoI;IACpI,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/api-client/config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { TApiClientConfig } from "./config.js";
|
|
2
|
+
import { getArgumentImpl, publishArgumentImpl, resetArgumentImpl, forkArgumentImpl, getArgumentDiffImpl, getArgumentForksImpl, claimUnownedArgumentImpl, getAllArgumentsImpl, createArgumentImpl, getLatestArgumentImpl, updateArgumentImpl, archiveArgumentImpl, deleteArgumentImpl, getEntireArgumentImpl } from "./argument/index.js";
|
|
3
|
+
import { provisionArgumentImpl, createExpressionWithOperatorImpl, changeEdgeOperatorImpl } from "./argument/batch.js";
|
|
4
|
+
import { createClaimImpl, deleteClaimImpl, updateClaimImpl, createClaimSourceImpl, deleteClaimSourceImpl } from "./argument/claims.js";
|
|
5
|
+
import { createReactionImpl, deleteReactionImpl } from "./argument/reactions.js";
|
|
6
|
+
import { getMyReviewImpl, createReviewRemoteImpl, getReviewByIdRemoteImpl, patchReviewRemoteImpl, deleteReviewRemoteImpl, setReviewVisibilityImpl } from "./argument/reviews.js";
|
|
7
|
+
import { getLogicDataImpl, getPremisesImpl, createPremiseImpl, updatePremiseImpl, deletePremiseImpl, getPremiseImpl, getExpressionsImpl, createExpressionImpl, updateExpressionImpl, deleteExpressionImpl, getExpressionImpl, toggleNegationImpl, getVariablesImpl, createVariableImpl, updateVariableImpl, deleteVariableImpl, getVariableImpl } from "./argument/logic/index.js";
|
|
8
|
+
import { repairArgumentImpl } from "./argument/logic/repair.js";
|
|
9
|
+
import { searchUserClaimsImpl, searchUserSourcesImpl, searchUserEntitiesImpl } from "./search.js";
|
|
10
|
+
import { getUserClaimsImpl } from "./user/claims.js";
|
|
11
|
+
import { getUserSourcesImpl } from "./user/sources.js";
|
|
12
|
+
/**
|
|
13
|
+
* Registry of all *Impl functions, keyed by the public method name.
|
|
14
|
+
* `as const` keeps literal keys — crucial for the mapped-type derivation.
|
|
15
|
+
*/
|
|
16
|
+
declare const impls: {
|
|
17
|
+
readonly getArgument: typeof getArgumentImpl;
|
|
18
|
+
readonly publishArgument: typeof publishArgumentImpl;
|
|
19
|
+
readonly resetArgument: typeof resetArgumentImpl;
|
|
20
|
+
readonly forkArgument: typeof forkArgumentImpl;
|
|
21
|
+
readonly getArgumentDiff: typeof getArgumentDiffImpl;
|
|
22
|
+
readonly getArgumentForks: typeof getArgumentForksImpl;
|
|
23
|
+
readonly claimUnownedArgument: typeof claimUnownedArgumentImpl;
|
|
24
|
+
readonly getAllArguments: typeof getAllArgumentsImpl;
|
|
25
|
+
readonly createArgument: typeof createArgumentImpl;
|
|
26
|
+
readonly getLatestArgument: typeof getLatestArgumentImpl;
|
|
27
|
+
readonly updateArgument: typeof updateArgumentImpl;
|
|
28
|
+
readonly archiveArgument: typeof archiveArgumentImpl;
|
|
29
|
+
readonly deleteArgument: typeof deleteArgumentImpl;
|
|
30
|
+
readonly getEntireArgument: typeof getEntireArgumentImpl;
|
|
31
|
+
readonly provisionArgument: typeof provisionArgumentImpl;
|
|
32
|
+
readonly createExpressionWithOperator: typeof createExpressionWithOperatorImpl;
|
|
33
|
+
readonly changeEdgeOperator: typeof changeEdgeOperatorImpl;
|
|
34
|
+
readonly createClaim: typeof createClaimImpl;
|
|
35
|
+
readonly deleteClaim: typeof deleteClaimImpl;
|
|
36
|
+
readonly updateClaim: typeof updateClaimImpl;
|
|
37
|
+
readonly createClaimSource: typeof createClaimSourceImpl;
|
|
38
|
+
readonly deleteClaimSource: typeof deleteClaimSourceImpl;
|
|
39
|
+
readonly createReaction: typeof createReactionImpl;
|
|
40
|
+
readonly deleteReaction: typeof deleteReactionImpl;
|
|
41
|
+
readonly getMyReview: typeof getMyReviewImpl;
|
|
42
|
+
readonly createReviewRemote: typeof createReviewRemoteImpl;
|
|
43
|
+
readonly getReviewByIdRemote: typeof getReviewByIdRemoteImpl;
|
|
44
|
+
readonly patchReviewRemote: typeof patchReviewRemoteImpl;
|
|
45
|
+
readonly deleteReviewRemote: typeof deleteReviewRemoteImpl;
|
|
46
|
+
readonly setReviewVisibility: typeof setReviewVisibilityImpl;
|
|
47
|
+
readonly getLogicData: typeof getLogicDataImpl;
|
|
48
|
+
readonly getPremises: typeof getPremisesImpl;
|
|
49
|
+
readonly createPremise: typeof createPremiseImpl;
|
|
50
|
+
readonly updatePremise: typeof updatePremiseImpl;
|
|
51
|
+
readonly deletePremise: typeof deletePremiseImpl;
|
|
52
|
+
readonly getPremise: typeof getPremiseImpl;
|
|
53
|
+
readonly getExpressions: typeof getExpressionsImpl;
|
|
54
|
+
readonly createExpression: typeof createExpressionImpl;
|
|
55
|
+
readonly updateExpression: typeof updateExpressionImpl;
|
|
56
|
+
readonly deleteExpression: typeof deleteExpressionImpl;
|
|
57
|
+
readonly getExpression: typeof getExpressionImpl;
|
|
58
|
+
readonly toggleNegation: typeof toggleNegationImpl;
|
|
59
|
+
readonly getVariables: typeof getVariablesImpl;
|
|
60
|
+
readonly createVariable: typeof createVariableImpl;
|
|
61
|
+
readonly updateVariable: typeof updateVariableImpl;
|
|
62
|
+
readonly deleteVariable: typeof deleteVariableImpl;
|
|
63
|
+
readonly getVariable: typeof getVariableImpl;
|
|
64
|
+
readonly repairArgument: typeof repairArgumentImpl;
|
|
65
|
+
readonly searchUserClaims: typeof searchUserClaimsImpl;
|
|
66
|
+
readonly searchUserSources: typeof searchUserSourcesImpl;
|
|
67
|
+
readonly searchUserEntities: typeof searchUserEntitiesImpl;
|
|
68
|
+
readonly getUserClaims: typeof getUserClaimsImpl;
|
|
69
|
+
readonly getUserSources: typeof getUserSourcesImpl;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Strips the leading `config: TApiClientConfig` argument from a function type.
|
|
73
|
+
*/
|
|
74
|
+
type TStripConfig<F> = F extends (config: TApiClientConfig, ...rest: infer Rest) => infer Ret ? (...rest: Rest) => Ret : never;
|
|
75
|
+
export type TApiClient = {
|
|
76
|
+
[K in keyof typeof impls]: TStripConfig<(typeof impls)[K]>;
|
|
77
|
+
};
|
|
78
|
+
export declare function createApiClient(config: TApiClientConfig): TApiClient;
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/api-client/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACxB,MAAM,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,MAAM,UAAU,GAAG;KACpB,CAAC,IAAI,MAAM,OAAO,KAAK,GAAG,YAAY,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAA;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,UAAU,CAepE"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { getArgumentImpl, publishArgumentImpl, resetArgumentImpl, forkArgumentImpl, getArgumentDiffImpl, getArgumentForksImpl, claimUnownedArgumentImpl, getAllArgumentsImpl, createArgumentImpl, getLatestArgumentImpl, updateArgumentImpl, archiveArgumentImpl, deleteArgumentImpl, getEntireArgumentImpl, } from "./argument/index.js";
|
|
2
|
+
import { provisionArgumentImpl, createExpressionWithOperatorImpl, changeEdgeOperatorImpl, } from "./argument/batch.js";
|
|
3
|
+
import { createClaimImpl, deleteClaimImpl, updateClaimImpl, createClaimSourceImpl, deleteClaimSourceImpl, } from "./argument/claims.js";
|
|
4
|
+
import { createReactionImpl, deleteReactionImpl } from "./argument/reactions.js";
|
|
5
|
+
import { getMyReviewImpl, createReviewRemoteImpl, getReviewByIdRemoteImpl, patchReviewRemoteImpl, deleteReviewRemoteImpl, setReviewVisibilityImpl, } from "./argument/reviews.js";
|
|
6
|
+
import { getLogicDataImpl, getPremisesImpl, createPremiseImpl, updatePremiseImpl, deletePremiseImpl, getPremiseImpl, getExpressionsImpl, createExpressionImpl, updateExpressionImpl, deleteExpressionImpl, getExpressionImpl, toggleNegationImpl, getVariablesImpl, createVariableImpl, updateVariableImpl, deleteVariableImpl, getVariableImpl, } from "./argument/logic/index.js";
|
|
7
|
+
import { repairArgumentImpl } from "./argument/logic/repair.js";
|
|
8
|
+
import { searchUserClaimsImpl, searchUserSourcesImpl, searchUserEntitiesImpl, } from "./search.js";
|
|
9
|
+
import { getUserClaimsImpl } from "./user/claims.js";
|
|
10
|
+
import { getUserSourcesImpl } from "./user/sources.js";
|
|
11
|
+
/**
|
|
12
|
+
* Registry of all *Impl functions, keyed by the public method name.
|
|
13
|
+
* `as const` keeps literal keys — crucial for the mapped-type derivation.
|
|
14
|
+
*/
|
|
15
|
+
const impls = {
|
|
16
|
+
getArgument: getArgumentImpl,
|
|
17
|
+
publishArgument: publishArgumentImpl,
|
|
18
|
+
resetArgument: resetArgumentImpl,
|
|
19
|
+
forkArgument: forkArgumentImpl,
|
|
20
|
+
getArgumentDiff: getArgumentDiffImpl,
|
|
21
|
+
getArgumentForks: getArgumentForksImpl,
|
|
22
|
+
claimUnownedArgument: claimUnownedArgumentImpl,
|
|
23
|
+
getAllArguments: getAllArgumentsImpl,
|
|
24
|
+
createArgument: createArgumentImpl,
|
|
25
|
+
getLatestArgument: getLatestArgumentImpl,
|
|
26
|
+
updateArgument: updateArgumentImpl,
|
|
27
|
+
archiveArgument: archiveArgumentImpl,
|
|
28
|
+
deleteArgument: deleteArgumentImpl,
|
|
29
|
+
getEntireArgument: getEntireArgumentImpl,
|
|
30
|
+
provisionArgument: provisionArgumentImpl,
|
|
31
|
+
createExpressionWithOperator: createExpressionWithOperatorImpl,
|
|
32
|
+
changeEdgeOperator: changeEdgeOperatorImpl,
|
|
33
|
+
createClaim: createClaimImpl,
|
|
34
|
+
deleteClaim: deleteClaimImpl,
|
|
35
|
+
updateClaim: updateClaimImpl,
|
|
36
|
+
createClaimSource: createClaimSourceImpl,
|
|
37
|
+
deleteClaimSource: deleteClaimSourceImpl,
|
|
38
|
+
createReaction: createReactionImpl,
|
|
39
|
+
deleteReaction: deleteReactionImpl,
|
|
40
|
+
getMyReview: getMyReviewImpl,
|
|
41
|
+
createReviewRemote: createReviewRemoteImpl,
|
|
42
|
+
getReviewByIdRemote: getReviewByIdRemoteImpl,
|
|
43
|
+
patchReviewRemote: patchReviewRemoteImpl,
|
|
44
|
+
deleteReviewRemote: deleteReviewRemoteImpl,
|
|
45
|
+
setReviewVisibility: setReviewVisibilityImpl,
|
|
46
|
+
getLogicData: getLogicDataImpl,
|
|
47
|
+
getPremises: getPremisesImpl,
|
|
48
|
+
createPremise: createPremiseImpl,
|
|
49
|
+
updatePremise: updatePremiseImpl,
|
|
50
|
+
deletePremise: deletePremiseImpl,
|
|
51
|
+
getPremise: getPremiseImpl,
|
|
52
|
+
getExpressions: getExpressionsImpl,
|
|
53
|
+
createExpression: createExpressionImpl,
|
|
54
|
+
updateExpression: updateExpressionImpl,
|
|
55
|
+
deleteExpression: deleteExpressionImpl,
|
|
56
|
+
getExpression: getExpressionImpl,
|
|
57
|
+
toggleNegation: toggleNegationImpl,
|
|
58
|
+
getVariables: getVariablesImpl,
|
|
59
|
+
createVariable: createVariableImpl,
|
|
60
|
+
updateVariable: updateVariableImpl,
|
|
61
|
+
deleteVariable: deleteVariableImpl,
|
|
62
|
+
getVariable: getVariableImpl,
|
|
63
|
+
repairArgument: repairArgumentImpl,
|
|
64
|
+
searchUserClaims: searchUserClaimsImpl,
|
|
65
|
+
searchUserSources: searchUserSourcesImpl,
|
|
66
|
+
searchUserEntities: searchUserEntitiesImpl,
|
|
67
|
+
getUserClaims: getUserClaimsImpl,
|
|
68
|
+
getUserSources: getUserSourcesImpl,
|
|
69
|
+
};
|
|
70
|
+
export function createApiClient(config) {
|
|
71
|
+
// Rebind fetchImpl to globalThis so browser `fetch` doesn't throw
|
|
72
|
+
// "Illegal invocation" when called as `config.fetchImpl(...)` — the DOM
|
|
73
|
+
// fetch checks `this === window`. Harmless for arrow-wrapped fetches
|
|
74
|
+
// (their lexical `this` can't be rebound) and for Node fetch.
|
|
75
|
+
const boundConfig = {
|
|
76
|
+
...config,
|
|
77
|
+
fetchImpl: config.fetchImpl.bind(globalThis),
|
|
78
|
+
};
|
|
79
|
+
const client = {};
|
|
80
|
+
for (const [name, impl] of Object.entries(impls)) {
|
|
81
|
+
client[name] = (...args) => impl(boundConfig, ...args);
|
|
82
|
+
}
|
|
83
|
+
return client;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/api-client/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,qBAAqB,EACrB,gCAAgC,EAChC,sBAAsB,GACzB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,eAAe,EACf,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,qBAAqB,GACxB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,EACH,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACH,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,GAClB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EACH,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,GACzB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEtD;;;GAGG;AACH,MAAM,KAAK,GAAG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kB;IAClC,cAAc,EAAE,kBAAkB;IAClC,WAAW,EAAE,eAAe;IAC5B,cAAc,EAAE,kBAAkB;IAClC,gBAAgB,EAAE,oBAAoB;IACtC,iBAAiB,EAAE,qBAAqB;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;CAC5B,CAAA;AAgBV,MAAM,UAAU,eAAe,CAAC,MAAwB;IACpD,kEAAkE;IAClE,wEAAwE;IACxE,qEAAqE;IACrE,8DAA8D;IAC9D,MAAM,WAAW,GAAqB;QAClC,GAAG,MAAM;QACT,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;KAC/C,CAAA;IACD,MAAM,MAAM,GAAG,EAA6B,CAAA;IAC5C,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/C,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAe,EAAW,EAAE,CAC1C,IAAqC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,CAAA;IACpE,CAAC;IACD,OAAO,MAAoB,CAAA;AAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api-client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TApiClientConfig } from "./config.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves `config.baseUrl` to a string. Called per-request (not cached) so
|
|
4
|
+
* that a thunk-form baseUrl can re-read environment variables on each call.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveBaseUrl(config: TApiClientConfig): string;
|
|
7
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/api-client/internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAI/D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves `config.baseUrl` to a string. Called per-request (not cached) so
|
|
3
|
+
* that a thunk-form baseUrl can re-read environment variables on each call.
|
|
4
|
+
*/
|
|
5
|
+
export function resolveBaseUrl(config) {
|
|
6
|
+
return typeof config.baseUrl === "function"
|
|
7
|
+
? config.baseUrl()
|
|
8
|
+
: config.baseUrl;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/api-client/internal.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,MAAwB;IACnD,OAAO,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU;QACvC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE;QAClB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAA;AACxB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { TApiClientConfig } from "./config.js";
|
|
2
|
+
export declare function searchUserClaimsImpl(config: TApiClientConfig, query: string, limit?: number, argumentId?: string): Promise<import("../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
2
3
|
errorID: import("typebox").TNumber;
|
|
3
4
|
errorMessage: import("typebox").TString;
|
|
4
5
|
statusCode: import("typebox").TNumber;
|
|
@@ -11,7 +12,7 @@ export declare function searchUserClaims(query: string, limit?: number, argument
|
|
|
11
12
|
argumentTitle: import("typebox").TString;
|
|
12
13
|
distance: import("typebox").TNumber;
|
|
13
14
|
}>>>>;
|
|
14
|
-
export declare function
|
|
15
|
+
export declare function searchUserSourcesImpl(config: TApiClientConfig, query: string, limit?: number): Promise<import("../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
15
16
|
errorID: import("typebox").TNumber;
|
|
16
17
|
errorMessage: import("typebox").TString;
|
|
17
18
|
statusCode: import("typebox").TNumber;
|
|
@@ -23,7 +24,7 @@ export declare function searchUserSources(query: string, limit?: number, fetchFn
|
|
|
23
24
|
argumentVersion: import("typebox").TNumber;
|
|
24
25
|
distance: import("typebox").TNumber;
|
|
25
26
|
}>>>>;
|
|
26
|
-
export declare function
|
|
27
|
+
export declare function searchUserEntitiesImpl(config: TApiClientConfig, query: string, types?: string[], limit?: number): Promise<import("../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
27
28
|
errorID: import("typebox").TNumber;
|
|
28
29
|
errorMessage: import("typebox").TString;
|
|
29
30
|
statusCode: import("typebox").TNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/api-client/search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/api-client/search.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnD,wBAAsB,oBAAoB,CACtC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,MAAM,EACb,KAAK,SAAK,EACV,UAAU,CAAC,EAAE,MAAM;;;;;;;;;;;;MActB;AAED,wBAAsB,qBAAqB,CACvC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,MAAM,EACb,KAAK,SAAK;;;;;;;;;;;MAab;AAED,wBAAsB,sBAAsB,CACxC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,EAAE,EAChB,KAAK,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAcb"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { ClaimSearchResponseSchema, SourceSearchResponseSchema, EntitySearchResponseSchema, } from "../schemas/api/search.js";
|
|
2
2
|
import { strictFetch } from "../utils/utils.js";
|
|
3
|
-
|
|
3
|
+
import { resolveBaseUrl } from "./internal.js";
|
|
4
|
+
export async function searchUserClaimsImpl(config, query, limit = 20, argumentId) {
|
|
5
|
+
const baseUrl = resolveBaseUrl(config);
|
|
4
6
|
const params = new URLSearchParams({ q: query, limit: String(limit) });
|
|
5
7
|
if (argumentId)
|
|
6
8
|
params.set("argumentId", argumentId);
|
|
7
|
-
return await strictFetch(
|
|
9
|
+
return await strictFetch(`${baseUrl}/api/v1/user/claims/search?${params.toString()}`, { method: "GET" }, undefined, undefined, ClaimSearchResponseSchema, config.fetchImpl);
|
|
8
10
|
}
|
|
9
|
-
export async function
|
|
11
|
+
export async function searchUserSourcesImpl(config, query, limit = 20) {
|
|
12
|
+
const baseUrl = resolveBaseUrl(config);
|
|
10
13
|
const params = new URLSearchParams({ q: query, limit: String(limit) });
|
|
11
|
-
return await strictFetch(
|
|
14
|
+
return await strictFetch(`${baseUrl}/api/v1/user/sources/search?${params.toString()}`, { method: "GET" }, undefined, undefined, SourceSearchResponseSchema, config.fetchImpl);
|
|
12
15
|
}
|
|
13
|
-
export async function
|
|
16
|
+
export async function searchUserEntitiesImpl(config, query, types, limit = 10) {
|
|
17
|
+
const baseUrl = resolveBaseUrl(config);
|
|
14
18
|
const params = new URLSearchParams({ q: query, limit: String(limit) });
|
|
15
19
|
if (types && types.length > 0)
|
|
16
20
|
params.set("types", types.join(","));
|
|
17
|
-
return await strictFetch(
|
|
21
|
+
return await strictFetch(`${baseUrl}/api/v1/user/entities/search?${params.toString()}`, { method: "GET" }, undefined, undefined, EntitySearchResponseSchema, config.fetchImpl);
|
|
18
22
|
}
|
|
19
23
|
//# sourceMappingURL=search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/api-client/search.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC7B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,CAAC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/api-client/search.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC7B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACtC,MAAwB,EACxB,KAAa,EACb,KAAK,GAAG,EAAE,EACV,UAAmB;IAEnB,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IACtE,IAAI,UAAU;QAAE,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;IAEpD,OAAO,MAAM,WAAW,CACpB,GAAG,OAAO,8BAA8B,MAAM,CAAC,QAAQ,EAAE,EAAE,EAC3D,EAAE,MAAM,EAAE,KAAK,EAAE,EACjB,SAAS,EACT,SAAS,EACT,yBAAyB,EACzB,MA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UserClaimsImpl(config: TApiClientConfig, argumentId?: string): Promise<import("../../schemas/common.js").ParsedError<import("typebox").TObject<{
|
|
2
3
|
errorID: import("typebox").TNumber;
|
|
3
4
|
errorMessage: import("typebox").TString;
|
|
4
5
|
statusCode: import("typebox").TNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/api-client/user/claims.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/api-client/user/claims.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAGpD,wBAAsB,iBAAiB,CACnC,MAAM,EAAE,gBAAgB,EACxB,UAAU,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYtB"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { UserClaimsResponseSchema } from "../../schemas/api/claims.js";
|
|
2
2
|
import { parseResponse } from "../../utils/utils.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { resolveBaseUrl } from "../internal.js";
|
|
4
|
+
export async function getUserClaimsImpl(config, argumentId) {
|
|
5
|
+
const baseUrl = resolveBaseUrl(config);
|
|
6
|
+
const url = new URL(`${baseUrl}/api/v1/user/claims`, "http://localhost");
|
|
5
7
|
if (argumentId) {
|
|
6
8
|
url.searchParams.set("argumentId", argumentId);
|
|
7
9
|
}
|
|
8
|
-
return await parseResponse(await
|
|
10
|
+
return await parseResponse(await config.fetchImpl(url.pathname + url.search, { method: "GET" }), UserClaimsResponseSchema);
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=claims.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.js","sourceRoot":"","sources":["../../../src/api-client/user/claims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,CAAC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"claims.js","sourceRoot":"","sources":["../../../src/api-client/user/claims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACnC,MAAwB,EACxB,UAAmB;IAEnB,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACtC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,OAAO,qBAAqB,EAAE,kBAAkB,CAAC,CAAA;IACxE,IAAI,UAAU,EAAE,CAAC;QACb,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;IAClD,CAAC;IAED,OAAO,MAAM,aAAa,CACtB,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EACpE,wBAAwB,CAC3B,CAAA;AACL,CAAC"}
|