@jskit-ai/agent-docs 0.1.16 → 0.1.18
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/guide/agent/app-extras/assistant.md +2 -2
- package/guide/agent/app-setup/initial-scaffolding.md +1 -3
- package/guide/agent/app-setup/multi-homing.md +27 -4
- package/guide/agent/app-setup/working-with-the-jskit-cli.md +1 -0
- package/guide/agent/generators/advanced-cruds.md +206 -112
- package/guide/agent/generators/crud-generators.md +26 -0
- package/guide/agent/index.md +1 -1
- package/package.json +1 -1
- package/patterns/INDEX.md +1 -1
- package/patterns/client-requests.md +3 -0
- package/patterns/crud-repository-mapping.md +36 -35
- package/patterns/filters.md +8 -8
- package/reference/autogen/KERNEL_MAP.md +94 -40
- package/reference/autogen/README.md +3 -0
- package/reference/autogen/packages/assistant-core.md +0 -12
- package/reference/autogen/packages/assistant-runtime.md +11 -3
- package/reference/autogen/packages/auth-core.md +34 -23
- package/reference/autogen/packages/auth-provider-supabase-core.md +4 -7
- package/reference/autogen/packages/auth-web.md +3 -0
- package/reference/autogen/packages/console-core.md +6 -29
- package/reference/autogen/packages/crud-core.md +34 -30
- package/reference/autogen/packages/crud-server-generator.md +28 -83
- package/reference/autogen/packages/crud-ui-generator.md +12 -7
- package/reference/autogen/packages/http-runtime.md +171 -21
- package/reference/autogen/packages/json-rest-api-core.md +54 -0
- package/reference/autogen/packages/kernel.md +118 -55
- package/reference/autogen/packages/realtime.md +1 -0
- package/reference/autogen/packages/resource-core.md +35 -0
- package/reference/autogen/packages/resource-crud-core.md +51 -0
- package/reference/autogen/packages/shell-web.md +31 -0
- package/reference/autogen/packages/users-core.md +34 -77
- package/reference/autogen/packages/users-web.md +29 -20
- package/reference/autogen/packages/workspaces-core.md +44 -76
- package/reference/autogen/packages/workspaces-web.md +1 -3
- package/reference/autogen/tooling/jskit-cli.md +6 -5
- package/workflow/feature-delivery.md +2 -1
|
@@ -69,6 +69,8 @@ Local functions
|
|
|
69
69
|
- `resolveUnsafeMethods(value)`
|
|
70
70
|
- `resolveFetch()`
|
|
71
71
|
- `isObjectBody(value)`
|
|
72
|
+
- `isQueryValuePresent(value)`
|
|
73
|
+
- `appendRequestQueryToUrl(url, query = null, transport = null)`
|
|
72
74
|
- `parseJsonSafely(response)`
|
|
73
75
|
- `emitNdjsonLine(line, handlers)`
|
|
74
76
|
- `readNdjsonStream(response, handlers = {})`
|
|
@@ -95,6 +97,24 @@ Exports
|
|
|
95
97
|
- `hasHeader`
|
|
96
98
|
- `setHeaderIfMissing`
|
|
97
99
|
|
|
100
|
+
### `src/shared/clientRuntime/jsonApiResourceTransport.js`
|
|
101
|
+
Exports
|
|
102
|
+
- `JSON_API_CONTENT_TYPE`
|
|
103
|
+
- `isJsonApiResourceTransport(transport = null)`
|
|
104
|
+
- `normalizeJsonApiClientTransport(transport = null)`
|
|
105
|
+
- `encodeJsonApiResourceRequestBody(body, transport = null)`
|
|
106
|
+
- `encodeJsonApiResourceQuery(query, transport = null)`
|
|
107
|
+
- `decodeJsonApiResourceResponse(payload, transport = null)`
|
|
108
|
+
- `decodeJsonApiErrorFieldErrors(payload = {})`
|
|
109
|
+
- `createJsonApiClientErrorPayload(payload = {})`
|
|
110
|
+
Local functions
|
|
111
|
+
- `isRecord(value)`
|
|
112
|
+
- `normalizeTransportKind(transport = null)`
|
|
113
|
+
- `defaultEncodeAttributes(body = {})`
|
|
114
|
+
- `simplifyResourceObject(resource = {})`
|
|
115
|
+
- `assertPrimaryDataType(resource = {}, expectedType = "")`
|
|
116
|
+
- `resolveCollectionPageMeta(document = {})`
|
|
117
|
+
|
|
98
118
|
### `src/shared/clientRuntime/retry.js`
|
|
99
119
|
Exports
|
|
100
120
|
- `DEFAULT_RETRYABLE_CSRF_ERROR_CODES`
|
|
@@ -105,14 +125,16 @@ Local functions
|
|
|
105
125
|
### `src/shared/index.js`
|
|
106
126
|
Exports
|
|
107
127
|
- `createPaginationQuerySchema`
|
|
108
|
-
- `
|
|
109
|
-
- `__testables`
|
|
110
|
-
- `fieldErrorsSchema`
|
|
128
|
+
- `fieldErrorsFieldDefinition`
|
|
111
129
|
- `apiErrorDetailsSchema`
|
|
112
|
-
- `
|
|
113
|
-
- `
|
|
114
|
-
- `
|
|
130
|
+
- `apiValidationErrorDetailsSchema`
|
|
131
|
+
- `apiErrorOutputValidator`
|
|
132
|
+
- `apiValidationErrorOutputValidator`
|
|
133
|
+
- `apiErrorTransportSchema`
|
|
134
|
+
- `apiValidationErrorTransportSchema`
|
|
135
|
+
- `fastifyDefaultErrorTransportSchema`
|
|
115
136
|
- `STANDARD_ERROR_STATUS_CODES`
|
|
137
|
+
- `createTransportResponseSchema`
|
|
116
138
|
- `passthroughErrorResponses`
|
|
117
139
|
- `withStandardErrorResponses`
|
|
118
140
|
- `enumSchema`
|
|
@@ -127,6 +149,44 @@ Exports
|
|
|
127
149
|
- `mapOperationIssues`
|
|
128
150
|
- `validateOperationSection`
|
|
129
151
|
- `validateOperationInput`
|
|
152
|
+
- `JSON_API_CONTENT_TYPE`
|
|
153
|
+
- `createJsonApiDocument`
|
|
154
|
+
- `createJsonApiErrorDocumentFromFailure`
|
|
155
|
+
- `createJsonApiErrorObject`
|
|
156
|
+
- `createJsonApiResourceObject`
|
|
157
|
+
- `isJsonApiCollectionDocument`
|
|
158
|
+
- `isJsonApiContentType`
|
|
159
|
+
- `isJsonApiErrorDocument`
|
|
160
|
+
- `isJsonApiResourceDocument`
|
|
161
|
+
- `isJsonContentType`
|
|
162
|
+
- `normalizeJsonApiDocument`
|
|
163
|
+
- `normalizeJsonApiResourceObject`
|
|
164
|
+
- `resolveJsonApiTransportTypes`
|
|
165
|
+
- `simplifyJsonApiDocument`
|
|
166
|
+
- `returnJsonApiData`
|
|
167
|
+
- `returnJsonApiDocument`
|
|
168
|
+
- `returnJsonApiMeta`
|
|
169
|
+
- `isJsonApiResult`
|
|
170
|
+
- `isJsonApiDataResult`
|
|
171
|
+
- `isJsonApiDocumentResult`
|
|
172
|
+
- `isJsonApiMetaResult`
|
|
173
|
+
- `unwrapJsonApiResult`
|
|
174
|
+
- `JSON_API_QUERY_PAGE_CURSOR_KEY`
|
|
175
|
+
- `JSON_API_QUERY_PAGE_LIMIT_KEY`
|
|
176
|
+
- `JSON_API_QUERY_INCLUDE_KEY`
|
|
177
|
+
- `JSON_API_QUERY_SORT_KEY`
|
|
178
|
+
- `mapPlainQueryKeyToTransportKey`
|
|
179
|
+
- `mapTransportQueryKeyToPlainKey`
|
|
180
|
+
- `encodeJsonApiResourceQueryObject`
|
|
181
|
+
- `decodeJsonApiResourceQueryObject`
|
|
182
|
+
- `createJsonApiResourceQueryTransportSchema`
|
|
183
|
+
- `JSON_API_ERROR_DOCUMENT_SCHEMA`
|
|
184
|
+
- `createJsonApiResourceObjectTransportSchema`
|
|
185
|
+
- `createJsonApiResourceRequestBodyTransportSchema`
|
|
186
|
+
- `createJsonApiResourceSuccessTransportSchema`
|
|
187
|
+
- `withJsonApiErrorResponses`
|
|
188
|
+
- `createJsonApiResourceRouteTransport`
|
|
189
|
+
- `createJsonApiResourceRouteContract`
|
|
130
190
|
|
|
131
191
|
### `src/shared/providers/singletonApiProvider.js`
|
|
132
192
|
Exports
|
|
@@ -144,12 +204,16 @@ Exports
|
|
|
144
204
|
|
|
145
205
|
### `src/shared/validators/errorResponses.js`
|
|
146
206
|
Exports
|
|
147
|
-
- `
|
|
207
|
+
- `fieldErrorsFieldDefinition`
|
|
148
208
|
- `apiErrorDetailsSchema`
|
|
149
|
-
- `
|
|
150
|
-
- `
|
|
151
|
-
- `
|
|
209
|
+
- `apiValidationErrorDetailsSchema`
|
|
210
|
+
- `apiErrorOutputValidator`
|
|
211
|
+
- `apiValidationErrorOutputValidator`
|
|
212
|
+
- `apiErrorTransportSchema`
|
|
213
|
+
- `apiValidationErrorTransportSchema`
|
|
214
|
+
- `fastifyDefaultErrorTransportSchema`
|
|
152
215
|
- `STANDARD_ERROR_STATUS_CODES`
|
|
216
|
+
- `createTransportResponseSchema(schema = {})`
|
|
153
217
|
- `passthroughErrorResponses(successResponses)`
|
|
154
218
|
- `withStandardErrorResponses(successResponses, { includeValidation400 = false } = {})`
|
|
155
219
|
- `enumSchema(values)`
|
|
@@ -158,6 +222,94 @@ Exports
|
|
|
158
222
|
Exports
|
|
159
223
|
- `HTTP_VALIDATORS_API`
|
|
160
224
|
|
|
225
|
+
### `src/shared/validators/jsonApiQueryTransport.js`
|
|
226
|
+
Exports
|
|
227
|
+
- `JSON_API_QUERY_PAGE_CURSOR_KEY`
|
|
228
|
+
- `JSON_API_QUERY_PAGE_LIMIT_KEY`
|
|
229
|
+
- `JSON_API_QUERY_INCLUDE_KEY`
|
|
230
|
+
- `JSON_API_QUERY_SORT_KEY`
|
|
231
|
+
- `mapPlainQueryKeyToTransportKey(key = "", { responseType = "" } = {})`
|
|
232
|
+
- `mapTransportQueryKeyToPlainKey(key = "", { responseType = "" } = {})`
|
|
233
|
+
- `encodeJsonApiResourceQueryObject(query = {}, { responseType = "" } = {})`
|
|
234
|
+
- `decodeJsonApiResourceQueryObject(query = {}, { responseType = "" } = {})`
|
|
235
|
+
- `createJsonApiResourceQueryTransportSchema({ query, responseType = "" } = {})`
|
|
236
|
+
Local functions
|
|
237
|
+
- `isRecord(value)`
|
|
238
|
+
- `normalizeQueryKey(key = "")`
|
|
239
|
+
- `buildFieldsTransportKey(responseType = "")`
|
|
240
|
+
- `normalizeTransportQueryScalar(value)`
|
|
241
|
+
|
|
242
|
+
### `src/shared/validators/jsonApiResponses.js`
|
|
243
|
+
Exports
|
|
244
|
+
- `simplifyJsonApiDocument`
|
|
245
|
+
|
|
246
|
+
### `src/shared/validators/jsonApiResult.js`
|
|
247
|
+
Exports
|
|
248
|
+
- `JSON_API_RESULT_MARKER`
|
|
249
|
+
- `returnJsonApiData(data)`
|
|
250
|
+
- `returnJsonApiDocument(document)`
|
|
251
|
+
- `returnJsonApiMeta(meta)`
|
|
252
|
+
- `isJsonApiResult(value)`
|
|
253
|
+
- `isJsonApiDataResult(value)`
|
|
254
|
+
- `isJsonApiDocumentResult(value)`
|
|
255
|
+
- `isJsonApiMetaResult(value)`
|
|
256
|
+
- `unwrapJsonApiResult(value)`
|
|
257
|
+
Local functions
|
|
258
|
+
- `normalizeJsonApiResultKind(kind = "")`
|
|
259
|
+
- `createJsonApiResult(kind, value)`
|
|
260
|
+
- `isJsonApiResultKind(value, kind)`
|
|
261
|
+
|
|
262
|
+
### `src/shared/validators/jsonApiRouteTransport.js`
|
|
263
|
+
Exports
|
|
264
|
+
- `JSON_API_ERROR_DOCUMENT_SCHEMA`
|
|
265
|
+
- `createJsonApiResourceObjectTransportSchema({ type = "", attributes, requireId = true, includeLinks = false, includeMeta = false } = {})`
|
|
266
|
+
- `createJsonApiResourceRequestBodyTransportSchema({ type = "", attributes, requireId = false } = {})`
|
|
267
|
+
- `createJsonApiResourceSuccessTransportSchema({ type = "", attributes, kind = "record", includeLinks = false, includeMeta = false, includeIncluded = false } = {})`
|
|
268
|
+
- `withJsonApiErrorResponses(successResponses, { includeValidation400 = false } = {})`
|
|
269
|
+
- `createJsonApiResourceRouteTransport({ type = "", requestType = "", responseType = "", query = null, allowBodyId = false, successKind = "record", pointerPrefix = "/data/attributes", mapRequestRelationships = null, getRecordType = null, getRecordId = null, getRecordAttributes = null, getRecordRelationships = null, getRecordLinks = null, getRecordMeta = null, getIncluded = null, getDocumentLinks = null, getDocumentMeta = null, getCollectionItems = null } = {})`
|
|
270
|
+
- `createJsonApiResourceRouteContract({ type = "", requestType = "", responseType = "", body = null, query = null, output = null, outputKind = "record", successStatus = 200, includeValidation400 = false, allowBodyId = false, pointerPrefix = "/data/attributes", getRecordType = null, getRecordId = null, getRecordAttributes = null, getRecordRelationships = null, getRecordLinks = null, getRecordMeta = null, getIncluded = null, getDocumentLinks = null, getDocumentMeta = null, getCollectionItems = null, mapRequestRelationships = null } = {})`
|
|
271
|
+
Local functions
|
|
272
|
+
- `isRecord(value)`
|
|
273
|
+
- `createJsonApiTransportError(statusCode, message, code)`
|
|
274
|
+
- `resolveRouteType(type = "")`
|
|
275
|
+
- `resolveRouteTypes(value = {})`
|
|
276
|
+
- `resolveEmbeddedAttributesTransportSchema(definition, { context = "JSON:API resource", defaultMode = "replace", removeId = false } = {})`
|
|
277
|
+
- `createJsonApiMetaSuccessTransportSchema({ meta } = {})`
|
|
278
|
+
- `defaultRecordTypeResolver(type)`
|
|
279
|
+
- `defaultRecordIdResolver(record = {})`
|
|
280
|
+
- `defaultRecordAttributesResolver(record = {})`
|
|
281
|
+
- `defaultCollectionItemsResolver(payload)`
|
|
282
|
+
- `defaultCollectionMetaResolver(payload)`
|
|
283
|
+
- `assertJsonApiSuccessResult(payload)`
|
|
284
|
+
|
|
285
|
+
### `src/shared/validators/jsonApiTransport.js`
|
|
286
|
+
Exports
|
|
287
|
+
- `JSON_API_CONTENT_TYPE`
|
|
288
|
+
- `resolveJsonApiTransportTypes({ type = "", requestType = "", responseType = "" } = {}, { context = "JSON:API transport" } = {})`
|
|
289
|
+
- `createJsonApiDocument({ data = undefined, included = undefined, links = undefined, meta = undefined, errors = undefined } = {})`
|
|
290
|
+
- `createJsonApiErrorDocumentFromFailure({ statusCode = 500, code = "", message = "", fieldErrors = {}, validationIssues = [], validationContext = "", pointerPrefix = "/data/attributes" } = {})`
|
|
291
|
+
- `createJsonApiErrorObject({ status = "", code = "", title = "", detail = "", source = undefined, links = undefined, meta = undefined } = {})`
|
|
292
|
+
- `createJsonApiResourceObject({ type = "", id = null, attributes = undefined, relationships = undefined, links = undefined, meta = undefined } = {})`
|
|
293
|
+
- `isJsonApiCollectionDocument(payload = {})`
|
|
294
|
+
- `isJsonApiContentType(contentType = "")`
|
|
295
|
+
- `isJsonApiErrorDocument(payload = {})`
|
|
296
|
+
- `isJsonApiResourceDocument(payload = {})`
|
|
297
|
+
- `isJsonContentType(contentType = "")`
|
|
298
|
+
- `normalizeJsonApiDocument(payload = {})`
|
|
299
|
+
- `normalizeJsonApiResourceObject(resource = {})`
|
|
300
|
+
- `simplifyJsonApiDocument(payload = {})`
|
|
301
|
+
Local functions
|
|
302
|
+
- `isRecord(value)`
|
|
303
|
+
- `normalizeMediaType(contentType = "")`
|
|
304
|
+
- `normalizeJsonApiResourceArray(value)`
|
|
305
|
+
- `normalizeJsonApiLinks(value)`
|
|
306
|
+
- `normalizeJsonApiMeta(value)`
|
|
307
|
+
- `normalizeJsonApiErrors(value)`
|
|
308
|
+
- `escapeJsonPointerSegment(value = "")`
|
|
309
|
+
- `resolveValidationFieldName(issue = {})`
|
|
310
|
+
- `resolveJsonApiValidationSource(issue = {}, validationContext = "")`
|
|
311
|
+
- `simplifyJsonApiResourceObject(resource = {})`
|
|
312
|
+
|
|
161
313
|
### `src/shared/validators/operationMessages.js`
|
|
162
314
|
Exports
|
|
163
315
|
- `resolveSchemaMessages(schema = {})`
|
|
@@ -178,11 +330,13 @@ Local functions
|
|
|
178
330
|
|
|
179
331
|
### `src/shared/validators/operationValidation.js`
|
|
180
332
|
Exports
|
|
181
|
-
- `validateOperationSection({ operation = {}, section = "
|
|
333
|
+
- `validateOperationSection({ operation = {}, section = "body", value, context = {} } = {})`
|
|
182
334
|
- `validateOperationInput({ operation = {}, input = {}, context = {} } = {})`
|
|
183
335
|
Local functions
|
|
184
|
-
- `
|
|
185
|
-
- `
|
|
336
|
+
- `resolveOperationSection(operation = {}, section = "body")`
|
|
337
|
+
- `buildValidationSuccessResult(value)`
|
|
338
|
+
- `isFieldValidationError(error)`
|
|
339
|
+
- `buildValidationFailureResult(error, normalized)`
|
|
186
340
|
|
|
187
341
|
### `src/shared/validators/paginationQuery.js`
|
|
188
342
|
Exports
|
|
@@ -195,16 +349,12 @@ Exports
|
|
|
195
349
|
|
|
196
350
|
### `src/shared/validators/schemaUtils.js`
|
|
197
351
|
Exports
|
|
198
|
-
- `
|
|
352
|
+
- `asSchemaDefinition(value, label, defaultMode, { required = true } = {})`
|
|
199
353
|
|
|
200
|
-
### `src/shared/validators/
|
|
354
|
+
### `src/shared/validators/transportSchemaEmbedding.js`
|
|
201
355
|
Exports
|
|
202
|
-
- `
|
|
203
|
-
- `
|
|
204
|
-
Local functions
|
|
205
|
-
- `isStrictUuid(value)`
|
|
206
|
-
- `isStrictIsoUtcDateTime(value)`
|
|
207
|
-
- `registerTypeBoxFormatsWith(formatRegistry)`
|
|
356
|
+
- `rewriteEmbeddedTransportSchemaRefs(value, { rootRef = "#", definitionRefByName = {} } = {})`
|
|
357
|
+
- `createEmbeddableTransportSchemaDocument(schemaDocument = {}, rootDefinitionName = "TransportSchema")`
|
|
208
358
|
|
|
209
359
|
### root
|
|
210
360
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# packages/json-rest-api-core
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/json-rest-api-core`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/json-rest-api-core/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`, `.vitepress/cache/`, `.vitepress/dist/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/server/JsonRestApiCoreServiceProvider.js`
|
|
18
|
+
Exports
|
|
19
|
+
- `JsonRestApiCoreServiceProvider`
|
|
20
|
+
|
|
21
|
+
### `src/server/jsonRestApiHost.js`
|
|
22
|
+
Exports
|
|
23
|
+
- `INTERNAL_JSON_REST_API`
|
|
24
|
+
- `JSON_REST_AUTOFILTER_PRESETS`
|
|
25
|
+
- `addResourceIfMissing(api, scopeName, resourceConfig)`
|
|
26
|
+
- `buildJsonRestQueryParams(resourceType = "", query = {}, { include = undefined } = {})`
|
|
27
|
+
- `createJsonApiInputRecord(resourceType = "", attributes = {}, { id = null, relationships = null } = {})`
|
|
28
|
+
- `createJsonApiRelationship(resourceType = "", id = null)`
|
|
29
|
+
- `createJsonRestResourceScopeOptions(resource = {}, { writeSerializers = {}, normalizeId = null } = {})`
|
|
30
|
+
- `createJsonRestContext(context = null)`
|
|
31
|
+
- `isJsonRestResourceMissingError(error = null)`
|
|
32
|
+
- `returnNullWhenJsonRestResourceMissing(run)`
|
|
33
|
+
- `resolveWorkspaceScopeValue(context = null)`
|
|
34
|
+
- `resolveUserScopeValue(context = null)`
|
|
35
|
+
- `simplifyJsonApiDocument(payload = {})`
|
|
36
|
+
- `createJsonRestApiHost({ knex })`
|
|
37
|
+
- `registerJsonRestApiHost(app)`
|
|
38
|
+
Local functions
|
|
39
|
+
- `isPlainJsonRestObject(value)`
|
|
40
|
+
- `cloneJsonRestResourceValue(value, { writeSerializers = {} } = {})`
|
|
41
|
+
- `normalizeScopeValue(value)`
|
|
42
|
+
- `normalizeJsonRestText(value, { fallback = "" } = {})`
|
|
43
|
+
- `normalizeJsonRestObject(value)`
|
|
44
|
+
- `normalizeJsonRestList(value)`
|
|
45
|
+
- `normalizeJsonApiResourceObject(resource = {})`
|
|
46
|
+
- `buildJsonApiIncludedIndex(payload = {})`
|
|
47
|
+
- `simplifyJsonApiRelationshipData(data, { includedIndex = null, seen = null } = {})`
|
|
48
|
+
- `simplifyJsonApiResourceObject(resource = {}, { includedIndex = null, seen = null } = {})`
|
|
49
|
+
|
|
50
|
+
### root
|
|
51
|
+
|
|
52
|
+
### `package.descriptor.mjs`
|
|
53
|
+
Exports
|
|
54
|
+
- None
|
|
@@ -21,8 +21,7 @@ Exports
|
|
|
21
21
|
- `requireServiceMethod(service, methodName, contributorId, { serviceLabel } = {})`
|
|
22
22
|
- `resolveRequest(context)`
|
|
23
23
|
- `hasPermission`
|
|
24
|
-
- `
|
|
25
|
-
- `OBJECT_INPUT_VALIDATOR`
|
|
24
|
+
- `emptyInputValidator`
|
|
26
25
|
|
|
27
26
|
### `shared/actions/actionDefinitions.js`
|
|
28
27
|
Exports
|
|
@@ -36,12 +35,9 @@ Exports
|
|
|
36
35
|
- `__testables`
|
|
37
36
|
Local functions
|
|
38
37
|
- `normalizeStringArray(value, { fieldName, allowedSet, allowEmpty = false } = {})`
|
|
39
|
-
- `
|
|
40
|
-
- `
|
|
41
|
-
- `
|
|
42
|
-
- `mergeNormalizedActionValidators(validators, fieldName)`
|
|
43
|
-
- `normalizeActionValidators(value, fieldName, { required = false } = {})`
|
|
44
|
-
- `normalizeActionOutputValidator(value, fieldName, { required = false } = {})`
|
|
38
|
+
- `normalizeSingleActionSchema(value, fieldName, { required = false, defaultMode = "" } = {})`
|
|
39
|
+
- `normalizeActionInputDefinition(value, fieldName, { required = false } = {})`
|
|
40
|
+
- `normalizeActionOutputDefinition(value, fieldName, { required = false } = {})`
|
|
45
41
|
- `normalizeActionPermission(permission, actionId)`
|
|
46
42
|
- `normalizeAuditConfig(audit, { actionId })`
|
|
47
43
|
- `normalizeObservabilityConfig(observability)`
|
|
@@ -98,12 +94,6 @@ Exports
|
|
|
98
94
|
- `__testables`
|
|
99
95
|
Local functions
|
|
100
96
|
- `createActionValidationError({ status = 400, message = "Validation failed.", code = "ACTION_VALIDATION_FAILED", details, cause } = {})`
|
|
101
|
-
- `normalizeSchemaValidationErrors(schema)`
|
|
102
|
-
- `buildSchemaValidatorError({ phase, definition } = {})`
|
|
103
|
-
- `normalizeTypeBoxValidationErrors(schema, payload)`
|
|
104
|
-
- `normalizeFunctionSchemaResult(result, payload, { phase, definition } = {})`
|
|
105
|
-
- `normalizeValidatorPayload(validator, payload, { phase, definition, context })`
|
|
106
|
-
- `validateSchemaPayload(schema, payload, { phase, definition })`
|
|
107
97
|
|
|
108
98
|
### `shared/actions/registry.js`
|
|
109
99
|
Exports
|
|
@@ -199,6 +189,23 @@ Exports
|
|
|
199
189
|
Exports
|
|
200
190
|
- `isContainerToken(value)`
|
|
201
191
|
|
|
192
|
+
### `shared/support/crudFieldContract.js`
|
|
193
|
+
Exports
|
|
194
|
+
- `CRUD_FIELD_STORAGE_COLUMN`
|
|
195
|
+
- `CRUD_FIELD_STORAGE_VIRTUAL`
|
|
196
|
+
- `CRUD_FIELD_WRITE_SERIALIZER_DATETIME_UTC`
|
|
197
|
+
- `CRUD_LOOKUP_FORM_CONTROL_AUTOCOMPLETE`
|
|
198
|
+
- `CRUD_LOOKUP_FORM_CONTROL_SELECT`
|
|
199
|
+
- `checkCrudLookupFormControl(value, { context = "crud field ui.formControl", defaultValue = CRUD_LOOKUP_FORM_CONTROL_AUTOCOMPLETE } = {})`
|
|
200
|
+
- `resolveCrudFieldSchemaProperties(value, { context = "crud resource field definitions" } = {})`
|
|
201
|
+
- `normalizeCrudFieldStorageConfig(fieldDefinition = {}, { context = "crud field storage", fieldKey = "" } = {})`
|
|
202
|
+
- `buildCrudOperationSchemaFields(fields = {}, operationName = "")`
|
|
203
|
+
- `buildCrudFieldContractMap(resource = {}, { context = "crud resource field contract" } = {})`
|
|
204
|
+
- `resolveCrudFieldContractEntry(resource = {}, fieldKey = "", options = {})`
|
|
205
|
+
Local functions
|
|
206
|
+
- `cloneStructuredFieldMetadata(value = {})`
|
|
207
|
+
- `mergeFieldContractEntry(target, source, { context = "crud field contract", fieldKey = "" } = {})`
|
|
208
|
+
|
|
202
209
|
### `shared/support/crudListFilters.js`
|
|
203
210
|
Exports
|
|
204
211
|
- `CRUD_LIST_FILTER_TYPE_FLAG`
|
|
@@ -214,10 +221,41 @@ Exports
|
|
|
214
221
|
- `CRUD_LIST_FILTER_PRESENCE_PRESENT`
|
|
215
222
|
- `CRUD_LIST_FILTER_PRESENCE_MISSING`
|
|
216
223
|
- `CRUD_LIST_FILTER_PRESENCE_OPTIONS`
|
|
224
|
+
- `CRUD_LIST_FILTER_INVALID_VALUES_REJECT`
|
|
225
|
+
- `CRUD_LIST_FILTER_INVALID_VALUES_DISCARD`
|
|
226
|
+
- `INVALID_CRUD_LIST_FILTER_QUERY_VALUE`
|
|
227
|
+
- `normalizeCrudListFilterInvalidValues(value = "")`
|
|
228
|
+
- `parseCrudListRangeQueryExpression(value = null)`
|
|
229
|
+
- `formatCrudListRangeQueryExpression(startValue = "", endValue = "", { collapseExact = false } = {})`
|
|
217
230
|
- `defineCrudListFilters(definitions = {})`
|
|
231
|
+
- `createCrudListFilterInitialValue(filter = {})`
|
|
232
|
+
- `isCrudListFilterMultiValue(filter = {})`
|
|
233
|
+
- `isCrudListFilterStructuredValue(filter = {})`
|
|
234
|
+
- `normalizeCrudListFilterUiValue(filter = {}, rawValue)`
|
|
235
|
+
- `areCrudListFilterUiValuesEqual(filter = {}, currentValue, expectedValue)`
|
|
236
|
+
- `hasCrudListFilterUiValue(filter = {}, rawValue)`
|
|
237
|
+
- `listCrudListFilterChipValues(filter = {}, rawValue)`
|
|
238
|
+
- `formatCrudListFilterDefaultChipLabel(filter = {}, rawValue, { resolveAtomicValue = null } = {})`
|
|
239
|
+
- `formatCrudListFilterQueryValue(filter = {}, value)`
|
|
240
|
+
- `parseCrudListFilterQueryValue(filter = {}, value, { invalidValues = CRUD_LIST_FILTER_INVALID_VALUES_REJECT } = {})`
|
|
218
241
|
- `resolveCrudListFilterQueryKeys(definition = {})`
|
|
219
242
|
- `resolveCrudListFilterOptionLabel(definition = {}, value = "", { fallback = "" } = {})`
|
|
220
243
|
Local functions
|
|
244
|
+
- `firstCrudListFilterValue(value)`
|
|
245
|
+
- `isPrimitiveCrudListFilterInput(value)`
|
|
246
|
+
- `isPrimitiveOrPrimitiveArrayCrudListFilterInput(value)`
|
|
247
|
+
- `normalizeDateFilterText(value)`
|
|
248
|
+
- `normalizeCanonicalRecordIdList(value)`
|
|
249
|
+
- `normalizeFiniteFilterNumber(value)`
|
|
250
|
+
- `normalizeAllowedFilterTextValue(value, allowedValues = new Set())`
|
|
251
|
+
- `normalizeAllowedFilterTextValues(value, allowedValues = new Set())`
|
|
252
|
+
- `resolveCrudListFilterAllowedValues(filter = {})`
|
|
253
|
+
- `normalizeCrudListDateRangeUiValue(rawValue)`
|
|
254
|
+
- `normalizeCrudListNumberRangeUiValue(rawValue)`
|
|
255
|
+
- `matchCrudListFilterValues(currentValue, expectedValue)`
|
|
256
|
+
- `rejectInvalidCrudListFilterValue({ invalidValues = CRUD_LIST_FILTER_INVALID_VALUES_REJECT } = {})`
|
|
257
|
+
- `normalizeCrudListDateRangeQueryValue(value)`
|
|
258
|
+
- `normalizeCrudListNumberRangeQueryValue(value)`
|
|
221
259
|
- `normalizeCrudListFilterType(value = "")`
|
|
222
260
|
- `normalizeCrudListFilterOption(rawOption = null, { context = "filter option" } = {})`
|
|
223
261
|
- `normalizeCrudListFilterOptions(rawOptions = [], { context = "filter options" } = {})`
|
|
@@ -461,6 +499,10 @@ Local functions
|
|
|
461
499
|
- `resolveRouteSurface(route, inheritedSurfaceId = "", { surfaceRuntime, absolutePath = "/" } = {})`
|
|
462
500
|
- `normalizeRoutesBySurfaceBoundaries(routeList = [], { surfaceRuntime } = {})`
|
|
463
501
|
|
|
502
|
+
### `shared/validators/composeSchemaDefinitions.js`
|
|
503
|
+
Exports
|
|
504
|
+
- `composeSchemaDefinitions(definitions, { mode, context = "schema definitions" } = {})`
|
|
505
|
+
|
|
464
506
|
### `shared/validators/createCursorListValidator.js`
|
|
465
507
|
Exports
|
|
466
508
|
- `createCursorListValidator(itemValidator)`
|
|
@@ -468,8 +510,6 @@ Exports
|
|
|
468
510
|
### `shared/validators/cursorPaginationQueryValidator.js`
|
|
469
511
|
Exports
|
|
470
512
|
- `cursorPaginationQueryValidator`
|
|
471
|
-
Local functions
|
|
472
|
-
- `normalizeCursorPaginationQuery(input = {})`
|
|
473
513
|
|
|
474
514
|
### `shared/validators/htmlTimeSchemas.js`
|
|
475
515
|
Exports
|
|
@@ -478,25 +518,28 @@ Exports
|
|
|
478
518
|
|
|
479
519
|
### `shared/validators/index.js`
|
|
480
520
|
Exports
|
|
521
|
+
- `createSchema`
|
|
481
522
|
- `normalizeObjectInput`
|
|
523
|
+
- `composeSchemaDefinitions`
|
|
482
524
|
- `createCursorListValidator`
|
|
483
525
|
- `cursorPaginationQueryValidator`
|
|
484
526
|
- `HTML_TIME_STRING_SCHEMA`
|
|
485
527
|
- `NULLABLE_HTML_TIME_STRING_SCHEMA`
|
|
486
528
|
- `mergeObjectSchemas`
|
|
487
|
-
- `
|
|
488
|
-
- `
|
|
529
|
+
- `hasJsonRestSchemaDefinition`
|
|
530
|
+
- `normalizeSingleSchemaDefinition`
|
|
531
|
+
- `normalizeSchemaDefinition`
|
|
532
|
+
- `resolveSchemaTransportSchemaDefinition`
|
|
533
|
+
- `resolveStructuredSchemaTransportSchema`
|
|
534
|
+
- `executeJsonRestSchemaDefinition`
|
|
535
|
+
- `buildSchemaValidationError`
|
|
536
|
+
- `validateSchemaPayload`
|
|
489
537
|
- `RECORD_ID_PATTERN`
|
|
490
538
|
- `recordIdSchema`
|
|
491
539
|
- `recordIdInputSchema`
|
|
492
540
|
- `nullableRecordIdSchema`
|
|
493
541
|
- `nullableRecordIdInputSchema`
|
|
494
|
-
- `recordIdValidator`
|
|
495
|
-
- `nullableRecordIdValidator`
|
|
496
542
|
- `recordIdParamsValidator`
|
|
497
|
-
- `positiveIntegerValidator`
|
|
498
|
-
- `normalizeSettingsFieldInput`
|
|
499
|
-
- `normalizeSettingsFieldOutput`
|
|
500
543
|
- `normalizeRequiredFieldList`
|
|
501
544
|
- `deriveRequiredFieldsFromSchema`
|
|
502
545
|
- `deriveResourceRequiredMetadata`
|
|
@@ -505,22 +548,24 @@ Exports
|
|
|
505
548
|
Exports
|
|
506
549
|
- `normalizeObjectInput(value)`
|
|
507
550
|
|
|
508
|
-
### `shared/validators/
|
|
509
|
-
Exports
|
|
510
|
-
- `mergeObjectSchemas(schemas)`
|
|
511
|
-
|
|
512
|
-
### `shared/validators/mergeValidators.js`
|
|
551
|
+
### `shared/validators/jsonRestSchemaSupport.js`
|
|
513
552
|
Exports
|
|
514
|
-
- `
|
|
553
|
+
- `isJsonRestSchemaInstance(value)`
|
|
554
|
+
- `resolveSchemaDefinitionMode(schemaDefinition = null, { defaultMode = "create", context = "schema definition.mode" } = {})`
|
|
555
|
+
- `resolveSchemaDefinitionTransportSchema(schemaDefinition = null, options = {})`
|
|
556
|
+
- `executeSchemaDefinition(schemaDefinition = null, payload, options = {})`
|
|
557
|
+
- `normalizeJsonRestSchemaFieldErrors(errors = {}, schemaDefinition = null)`
|
|
515
558
|
Local functions
|
|
516
|
-
- `
|
|
517
|
-
- `
|
|
559
|
+
- `requireJsonRestSchemaInstance(schemaDefinition = null, { context = "schema definition.schema" } = {})`
|
|
560
|
+
- `resolveJsonRestSchemaFieldMessages(schemaDefinition = null, fieldName = "")`
|
|
561
|
+
- `resolveJsonRestSchemaFieldErrorMessage(fieldName, entry, schemaDefinition = null)`
|
|
518
562
|
|
|
519
|
-
### `shared/validators/
|
|
563
|
+
### `shared/validators/mergeObjectSchemas.js`
|
|
520
564
|
Exports
|
|
521
|
-
- `
|
|
565
|
+
- `mergeObjectSchemas(schemas)`
|
|
522
566
|
Local functions
|
|
523
|
-
- `
|
|
567
|
+
- `cloneSchemaValue(value)`
|
|
568
|
+
- `assertMergeableObjectSchema(schema)`
|
|
524
569
|
|
|
525
570
|
### `shared/validators/recordIdParamsValidator.js`
|
|
526
571
|
Exports
|
|
@@ -529,10 +574,7 @@ Exports
|
|
|
529
574
|
- `recordIdInputSchema`
|
|
530
575
|
- `nullableRecordIdSchema`
|
|
531
576
|
- `nullableRecordIdInputSchema`
|
|
532
|
-
- `recordIdValidator`
|
|
533
|
-
- `nullableRecordIdValidator`
|
|
534
577
|
- `recordIdParamsValidator`
|
|
535
|
-
- `positiveIntegerValidator`
|
|
536
578
|
|
|
537
579
|
### `shared/validators/resourceRequiredMetadata.js`
|
|
538
580
|
Exports
|
|
@@ -540,10 +582,22 @@ Exports
|
|
|
540
582
|
- `deriveRequiredFieldsFromSchema(schema)`
|
|
541
583
|
- `deriveResourceRequiredMetadata(resourceSchema)`
|
|
542
584
|
|
|
543
|
-
### `shared/validators/
|
|
585
|
+
### `shared/validators/schemaDefinitions.js`
|
|
586
|
+
Exports
|
|
587
|
+
- `hasJsonRestSchemaDefinition(value)`
|
|
588
|
+
- `normalizeSingleSchemaDefinition(value, { context = "schema definition", defaultMode = "" } = {})`
|
|
589
|
+
- `normalizeSchemaDefinition(value, { context = "schema definition", defaultMode = "" } = {})`
|
|
590
|
+
- `resolveSchemaTransportSchemaDefinition(value, { context = "schema definition", defaultMode = "" } = {})`
|
|
591
|
+
- `resolveStructuredSchemaTransportSchema(value, { context = "schema definition", defaultMode = "" } = {})`
|
|
592
|
+
- `executeJsonRestSchemaDefinition(value, payload, { context = "schema definition", defaultMode = "" } = {})`
|
|
593
|
+
- `normalizeJsonRestSchemaFieldErrors`
|
|
594
|
+
Local functions
|
|
595
|
+
- `isSchemaDefinitionObject(value)`
|
|
596
|
+
|
|
597
|
+
### `shared/validators/schemaPayloadValidation.js`
|
|
544
598
|
Exports
|
|
545
|
-
- `
|
|
546
|
-
- `
|
|
599
|
+
- `buildSchemaValidationError({ message = "Schema validation failed.", fieldErrors = null, errors = null, cause, statusCode = null } = {})`
|
|
600
|
+
- `validateSchemaPayload(schemaDefinition, payload, { phase = "input", context = "schema definition", statusCode = null } = {})`
|
|
547
601
|
|
|
548
602
|
### client
|
|
549
603
|
|
|
@@ -824,8 +878,17 @@ Exports
|
|
|
824
878
|
- `registerRoutes(fastify, { routes = [], app = null, applyRoutePolicy = defaultApplyRoutePolicy, missingHandler = defaultMissingHandler, enableRequestScope = true, requestScopeProperty = "scope", requestActionExecutorProperty = "executeAction", actionExecutorToken = "actionExecutor", requestActionDefaultChannel = "api", requestActionDefaultSurface = "", requestScopeIdPrefix = "http", requestIdResolver = null, middleware = {} } = {})`
|
|
825
879
|
Local functions
|
|
826
880
|
- `toFastifyRouteOptions(route)`
|
|
881
|
+
- `normalizeHeaderValue(value)`
|
|
882
|
+
- `normalizeMediaType(value = "")`
|
|
883
|
+
- `routeDefinesRequestBody(route = null)`
|
|
884
|
+
- `shouldEnforceRequestContentType(method = "", transport = null, route = null)`
|
|
885
|
+
- `routeRequiresJsonApiContentTypeParser(route = null)`
|
|
886
|
+
- `enforceRequestContentType({ request = null, route = null, transport = null } = {})`
|
|
887
|
+
- `attachRouteTransport(request, transport = null)`
|
|
888
|
+
- `replyHasHeader(reply, name = "")`
|
|
827
889
|
- `normalizeRouteInputTransforms(route)`
|
|
828
|
-
- `buildRequestInput({ request = null, inputTransforms = null } = {})`
|
|
890
|
+
- `buildRequestInput({ request = null, inputTransforms = null, transportInputTransforms = null } = {})`
|
|
891
|
+
- `wrapReplySend({ reply = null, request = null, route = null, outputTransform = null, transport = null } = {})`
|
|
829
892
|
|
|
830
893
|
### `server/http/lib/routeSupport.js`
|
|
831
894
|
Exports
|
|
@@ -833,21 +896,22 @@ Exports
|
|
|
833
896
|
- `normalizeMiddlewareEntry(entry, { context = "middleware", index = -1, ErrorType = Error, entryLabel = "entry" } = {})`
|
|
834
897
|
- `normalizeMiddlewareStack(value, { context = "middleware", ErrorType = Error, entryLabel = "entry", includeIndex = true } = {})`
|
|
835
898
|
|
|
899
|
+
### `server/http/lib/routeTransport.js`
|
|
900
|
+
Exports
|
|
901
|
+
- `ROUTE_TRANSPORT_KINDS`
|
|
902
|
+
- `normalizeRouteOutputTransform(value, { context = "route output", ErrorType = Error } = {})`
|
|
903
|
+
- `normalizeRouteTransport(value, { context = "route transport", ErrorType = Error } = {})`
|
|
904
|
+
|
|
836
905
|
### `server/http/lib/routeValidator.js`
|
|
837
906
|
Exports
|
|
838
907
|
- `defineRouteValidator(definition = {})`
|
|
839
908
|
- `compileRouteValidator(validator, { context = "route validator" } = {})`
|
|
840
909
|
- `resolveRouteValidatorOptions({ method = "", path = "", options = {} } = {})`
|
|
841
910
|
Local functions
|
|
842
|
-
- `
|
|
843
|
-
- `
|
|
844
|
-
- `
|
|
845
|
-
- `mergeNormalizedRouteValidators(validators, { context = "route validator" } = {})`
|
|
846
|
-
- `normalizeRouteValidator(value, { context = "route validator", allowArray = false } = {})`
|
|
847
|
-
- `normalizeResponseValidatorEntry(value, { context = "route validator response entry" } = {})`
|
|
848
|
-
- `normalizeResponseValidatorDefinition(value, { context = "route validator.response" } = {})`
|
|
911
|
+
- `stripJsonRestTransportExtensions(value)`
|
|
912
|
+
- `normalizeRouteSchemaSection(value, { context = "route section", defaultMode = "patch" } = {})`
|
|
913
|
+
- `normalizeResponseDefinition(value, { context = "route responses" } = {})`
|
|
849
914
|
- `normalizeAdvancedFastifySchema(value, { context = "route validator" } = {})`
|
|
850
|
-
- `normalizeAdvancedJskitInput(value, { context = "route validator" } = {})`
|
|
851
915
|
- `normalizeRouteValidatorMeta(value, { context = "route validator" } = {})`
|
|
852
916
|
- `normalizeRouteValidatorDefinition(sourceDefinition, { context = "route validator" } = {})`
|
|
853
917
|
- `compileNormalizedRouteValidator(normalizedValidator)`
|
|
@@ -1036,8 +1100,6 @@ Local functions
|
|
|
1036
1100
|
### `server/runtime/bootBootstrapRoutes.js`
|
|
1037
1101
|
Exports
|
|
1038
1102
|
- `bootBootstrapRoutes(app)`
|
|
1039
|
-
- `bootstrapQueryValidator`
|
|
1040
|
-
- `bootstrapOutputValidator`
|
|
1041
1103
|
|
|
1042
1104
|
### `server/runtime/canonicalJson.js`
|
|
1043
1105
|
Exports
|
|
@@ -1093,6 +1155,7 @@ Exports
|
|
|
1093
1155
|
Exports
|
|
1094
1156
|
- `resolveLoggerLevel({ configuredLevel = "", nodeEnv = "development", allowedLevels = [] } = {})`
|
|
1095
1157
|
- `createFastifyLoggerOptions({ configuredLevel = "", nodeEnv = "development", allowedLevels = [], redactPaths = [], redactCensor = "[REDACTED]" } = {})`
|
|
1158
|
+
- `registerJsonApiContentTypeParser(fastify)`
|
|
1096
1159
|
- `registerRequestLoggingHooks(app, { requestStartedAtSymbol, getPathname, getSurface, observeRequest, enableRequestLogs = true, defaultSurfaceId = "" } = {})`
|
|
1097
1160
|
- `registerApiErrorHandler(app, { isAppError, onRecordDbError, onCaptureServerError, appErrorLogMessage = "AppError 5xx", unhandledErrorLogMessage = "Unhandled error" } = {})`
|
|
1098
1161
|
- `ensureApiErrorHandling(app, { fastifyToken = "jskit.fastify", markerToken = "kernel.runtime.apiErrorHandlerRegistered", isAppError: isAppErrorOverride, autoRegister = true, ...handlerOptions } = {})`
|
|
@@ -1100,7 +1163,10 @@ Exports
|
|
|
1100
1163
|
- `recordDbErrorBestEffort(observabilityService, error)`
|
|
1101
1164
|
- `runGracefulShutdown({ signal = "", exitProcess = false, exitCode = 0, timeoutMs = 10_000, appInstance = null, stopBackgroundRuntimes = () => {}, closeDatabase = async () => {}, logger = console } = {})`
|
|
1102
1165
|
Local functions
|
|
1166
|
+
- `createFallbackJsonBodyParser()`
|
|
1103
1167
|
- `resolveValidationFieldErrors(error)`
|
|
1168
|
+
- `resolveRequestRouteTransport(request)`
|
|
1169
|
+
- `applyRouteTransportErrorResponse(reply, request, error, { statusCode = 500, normalizedErrorCode = "" } = {})`
|
|
1104
1170
|
|
|
1105
1171
|
### `server/runtime/index.js`
|
|
1106
1172
|
Exports
|
|
@@ -1125,9 +1191,6 @@ Exports
|
|
|
1125
1191
|
Local functions
|
|
1126
1192
|
- `normalizeModuleId(value)`
|
|
1127
1193
|
- `normalizeSchema(value)`
|
|
1128
|
-
- `normalizeIssuePath(issue)`
|
|
1129
|
-
- `normalizeIssueMessage(issue)`
|
|
1130
|
-
- `normalizeValidationIssues(rawIssues = [])`
|
|
1131
1194
|
- `formatIssues(issues = [])`
|
|
1132
1195
|
- `buildInvalidConfigMessage(moduleId, issues = [])`
|
|
1133
1196
|
- `normalizeCustomValidationIssues(result)`
|
|
@@ -1288,7 +1351,7 @@ Local functions
|
|
|
1288
1351
|
- `normalizePlacementTargetId(target = {})`
|
|
1289
1352
|
- `resolveRelativeLinkToFromParent(pageTarget = {}, parentHost = null)`
|
|
1290
1353
|
- `resolveRelativeLinkToFromNearestIndexOwner(pageTarget = {})`
|
|
1291
|
-
- `resolveInferredPageLinkTo({ explicitLinkTo = "", pageTarget = {}, parentHost = null, placementTarget = null } = {})`
|
|
1354
|
+
- `resolveInferredPageLinkTo({ explicitLinkTo = "", pageTarget = {}, parentHost = null, placementTarget = null, suppressImplicitRelativeLinks = false } = {})`
|
|
1292
1355
|
- `resolveInferredPageLinkComponentToken({ explicitComponentToken = "", parentHost = null, placementTarget = null, defaultComponentToken = DEFAULT_PAGE_LINK_COMPONENT_TOKEN, subpageComponentToken = DEFAULT_SUBPAGE_LINK_COMPONENT_TOKEN } = {})`
|
|
1293
1356
|
- `renderPageLinkWhenLine(pageTarget = {})`
|
|
1294
1357
|
|
|
@@ -72,6 +72,7 @@ Local functions
|
|
|
72
72
|
- `resolveAudienceTargets(dispatcher, event, { scope, logger } = {})`
|
|
73
73
|
- `resolveSocketActorId(authService, socket)`
|
|
74
74
|
- `resolveActorWorkspaceIds(workspaceMembershipsRepository, actorId)`
|
|
75
|
+
- `resolveOptionalScopeBinding(scope, token = "")`
|
|
75
76
|
- `registerRealtimeSocketAudienceBootstrap(scope, io, logger)`
|
|
76
77
|
|
|
77
78
|
### `src/server/runtime.js`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# packages/resource-core
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/resource-core`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/resource-core/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`, `.vitepress/cache/`, `.vitepress/dist/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/shared/resource.js`
|
|
18
|
+
Exports
|
|
19
|
+
- `createSchemaDefinition(schema, mode = "patch", { context = "schema definition" } = {})`
|
|
20
|
+
- `defineResource(resource = {})`
|
|
21
|
+
- `normalizeSchemaDefinitionLike(value, { context = "schema definition", defaultMode = "patch" } = {})`
|
|
22
|
+
Local functions
|
|
23
|
+
- `isJsonRestSchemaInstance(value)`
|
|
24
|
+
- `isSchemaDefinitionLike(value)`
|
|
25
|
+
- `resolveSchemaDefinitionMode(mode, { context = "schema definition.mode", defaultMode = "patch" } = {})`
|
|
26
|
+
- `resolveDefaultOperationSchemaMode(sectionName, operation = {})`
|
|
27
|
+
- `normalizeOperationDefinition(operationName, operation = null, resourceMessages = null)`
|
|
28
|
+
- `normalizeResourceOperations(operations = null, resourceMessages = null)`
|
|
29
|
+
- `requireResourceNamespace(value, { context = "defineResource resource.namespace" } = {})`
|
|
30
|
+
|
|
31
|
+
### root
|
|
32
|
+
|
|
33
|
+
### `package.descriptor.mjs`
|
|
34
|
+
Exports
|
|
35
|
+
- None
|