@relyio/sdk 0.9.0 → 0.11.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/CHANGELOG.md +68 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-YEJUMW4X.js → chunk-2TIJLV2X.js} +10 -2
- package/dist/{chunk-SPFRDXAF.cjs → chunk-4HTIU5YE.cjs} +14 -3
- package/dist/{chunk-LGNJIGHL.js → chunk-7GLDVHIH.js} +14 -3
- package/dist/{chunk-72UK5U7T.cjs → chunk-PO7CUR5U.cjs} +10 -2
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +1 -1
- package/dist/{define-content-type-cEGjIwT5.d.cts → define-content-type-ENAod5Ve.d.cts} +105 -16
- package/dist/{define-content-type-cEGjIwT5.d.ts → define-content-type-ENAod5Ve.d.ts} +105 -16
- package/dist/{define-schema-BPj2srgh.d.ts → define-schema-CVi8nwc7.d.ts} +29 -30
- package/dist/{define-schema-DgbJ5Kwn.d.cts → define-schema-DqpipEHv.d.cts} +29 -30
- package/dist/{index-GIfaMlQ7.d.ts → index-BKEAYvvz.d.ts} +6 -6
- package/dist/{index-B_rIWO_l.d.cts → index-BM42r4yg.d.cts} +1 -1
- package/dist/{index-Cv4tmcrw.d.ts → index-C73cK2Tt.d.ts} +1 -1
- package/dist/{index-B9axQW8s.d.cts → index-MLAFUuco.d.cts} +6 -6
- package/dist/index.cjs +82 -82
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -3
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +5 -4
- package/dist/schema/index.d.ts +5 -4
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyFieldDefinition, c as FieldDefinition, k as AIConfig, v as FieldSchemaContext, x as FieldValues, y as DeclaredFields, aK as components, P as ContentTypeDefinition, a0 as SingletonContentTypeDefinition, aH as WorkflowDefinition, a9 as AssetTypeDefinition, W as InferContentType } from './define-content-type-
|
|
1
|
+
import { A as AnyFieldDefinition, c as FieldDefinition, k as AIConfig, v as FieldSchemaContext, x as FieldValues, y as DeclaredFields, aK as components, P as ContentTypeDefinition, a0 as SingletonContentTypeDefinition, aH as WorkflowDefinition, a9 as AssetTypeDefinition, W as InferContentType } from './define-content-type-ENAod5Ve.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Component definition matching @relyio/schema ComponentSchema
|
|
@@ -924,11 +924,15 @@ type ViewFilterValue = string | number | boolean | null | (string | number)[] |
|
|
|
924
924
|
to: string | number | Date;
|
|
925
925
|
} | ViewFilterRelativeDate | Date;
|
|
926
926
|
/**
|
|
927
|
-
*
|
|
927
|
+
* One filter of a view: a field, an operator and the value it compares with.
|
|
928
928
|
*/
|
|
929
929
|
interface ViewFilterCondition {
|
|
930
930
|
/**
|
|
931
|
-
*
|
|
931
|
+
* The Property to filter on, as the Studio's entry list names it: `fields.<id>` for a field your
|
|
932
|
+
* schema declares (`fields.seo.title` for a component's sub-field), `_metadata.<id>` for a system
|
|
933
|
+
* field — `_metadata.status`, `_metadata.createdAt`, `_metadata.updatedAt`. So a field called
|
|
934
|
+
* `status` (`fields.status`) and the entry's own lifecycle (`_metadata.status`) are both
|
|
935
|
+
* filterable.
|
|
932
936
|
*/
|
|
933
937
|
field: string;
|
|
934
938
|
/**
|
|
@@ -941,22 +945,11 @@ interface ViewFilterCondition {
|
|
|
941
945
|
value?: ViewFilterValue;
|
|
942
946
|
}
|
|
943
947
|
/**
|
|
944
|
-
*
|
|
948
|
+
* A view's filter. A view's filters are a flat list joined by AND — the Filters the Studio's entry
|
|
949
|
+
* list takes, each drawn as a Chip — so there is no filter group: an OR within one field is
|
|
950
|
+
* `isAnyOf`. RelyIO refuses a group by name when you deploy.
|
|
945
951
|
*/
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* Logical operator to combine conditions
|
|
949
|
-
*/
|
|
950
|
-
operator: 'and' | 'or';
|
|
951
|
-
/**
|
|
952
|
-
* Array of conditions in this group
|
|
953
|
-
*/
|
|
954
|
-
conditions: ViewFilterCondition[];
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Filter configuration can be simple conditions or groups
|
|
958
|
-
*/
|
|
959
|
-
type ViewFilter = ViewFilterCondition | ViewFilterGroup;
|
|
952
|
+
type ViewFilter = ViewFilterCondition;
|
|
960
953
|
/**
|
|
961
954
|
* View definition configuration
|
|
962
955
|
*/
|
|
@@ -987,8 +980,12 @@ interface ViewConfig {
|
|
|
987
980
|
*/
|
|
988
981
|
scope: ViewScopeConfig;
|
|
989
982
|
/**
|
|
990
|
-
* Filter conditions (optional)
|
|
991
|
-
*
|
|
983
|
+
* Filter conditions (optional), combined with AND. A flat list: an OR within one field is
|
|
984
|
+
* `isAnyOf`, and there is no filter group.
|
|
985
|
+
*
|
|
986
|
+
* Deploy judges each against the entries the view lists: the field must be one they can be
|
|
987
|
+
* narrowed by, and it must offer the operator — a boolean field takes `is` with `true` or
|
|
988
|
+
* `false`, for example, not `isTrue`.
|
|
992
989
|
*/
|
|
993
990
|
filters?: ViewFilter[];
|
|
994
991
|
/**
|
|
@@ -1001,7 +998,9 @@ interface ViewConfig {
|
|
|
1001
998
|
*/
|
|
1002
999
|
metadataFields?: string[];
|
|
1003
1000
|
/**
|
|
1004
|
-
* Default sort
|
|
1001
|
+
* Default sort (optional). `field` names the Property to sort by, as a filter names one —
|
|
1002
|
+
* `fields.<id>` or `_metadata.<id>` — and deploy refuses one the view's entries cannot be sorted
|
|
1003
|
+
* by. `columns` and `metadataFields` are display settings and name field IDs as written.
|
|
1005
1004
|
*/
|
|
1006
1005
|
sort?: {
|
|
1007
1006
|
field: string;
|
|
@@ -1032,25 +1031,25 @@ interface ViewDefinition extends ViewConfig {
|
|
|
1032
1031
|
* columns, and metadata settings.
|
|
1033
1032
|
*
|
|
1034
1033
|
* @example
|
|
1035
|
-
* const
|
|
1036
|
-
* name: '
|
|
1037
|
-
* description: '
|
|
1034
|
+
* const featuredPosts = defineView('featuredPosts', {
|
|
1035
|
+
* name: 'Featured Posts',
|
|
1036
|
+
* description: 'Blog posts marked as featured',
|
|
1038
1037
|
* icon: '📝',
|
|
1039
1038
|
* scope: { type: 'contentType', contentType: 'post' },
|
|
1040
1039
|
* filters: [
|
|
1041
|
-
* { field: '
|
|
1040
|
+
* { field: 'fields.featured', operator: 'is', value: true }
|
|
1042
1041
|
* ],
|
|
1043
1042
|
* columns: ['title', 'author', 'publishedAt'],
|
|
1044
1043
|
* metadataFields: ['category', 'views'],
|
|
1045
|
-
* sort: { field: 'publishedAt', direction: 'desc' }
|
|
1044
|
+
* sort: { field: '_metadata.publishedAt', direction: 'desc' }
|
|
1046
1045
|
* })
|
|
1047
1046
|
*
|
|
1048
1047
|
* @example
|
|
1049
|
-
* const
|
|
1050
|
-
* name: '
|
|
1048
|
+
* const archivedContent = defineView('archivedContent', {
|
|
1049
|
+
* name: 'Archived',
|
|
1051
1050
|
* scope: { type: 'all' },
|
|
1052
1051
|
* filters: [
|
|
1053
|
-
* { field: 'status', operator: 'is', value: '
|
|
1052
|
+
* { field: '_metadata.status', operator: 'is', value: 'archived' }
|
|
1054
1053
|
* ]
|
|
1055
1054
|
* })
|
|
1056
1055
|
*
|
|
@@ -1217,4 +1216,4 @@ type SchemaAssetTypeNames<T extends AnySchemaDefinition> = NonNullable<T['assetT
|
|
|
1217
1216
|
*/
|
|
1218
1217
|
type SchemaLocaleCodes<T extends AnySchemaDefinition> = NonNullable<T['locales']> extends readonly LocaleDefinition[] ? NonNullable<T['locales']>[number]['code'] : never;
|
|
1219
1218
|
|
|
1220
|
-
export { type ViewFilterCondition as $, defineRole as A, isRoleDefinition as B, type ComponentConfig as C, isBuiltInRole as D, getBuiltInRoleActions as E, BUILT_IN_ROLES as F, BUILT_IN_ROLE_ACTIONS as G, type BuiltInRole as H, type InferSettingsGroup as I, type RoleAction as J, type ResourcePermission as K, type LocaleOptions as L, type FieldVisibility as M, type RoleConfig as N, type RoleDefinition as O, defineView as P, type ContentTypeScopeConfig as Q, ROLE_ACTIONS as R, type SchemaConfig as S, type TextDirection as T, type ContentTypesScopeConfig as U, type ViewScopeConfig as V, type EntryTypeScopeConfig as W, type AllScopeConfig as X, type ViewFilterOperator as Y, type ViewFilterValue as Z, type ViewFilterRelativeDate as _, type SchemaDefinition as a, type
|
|
1219
|
+
export { type ViewFilterCondition as $, defineRole as A, isRoleDefinition as B, type ComponentConfig as C, isBuiltInRole as D, getBuiltInRoleActions as E, BUILT_IN_ROLES as F, BUILT_IN_ROLE_ACTIONS as G, type BuiltInRole as H, type InferSettingsGroup as I, type RoleAction as J, type ResourcePermission as K, type LocaleOptions as L, type FieldVisibility as M, type RoleConfig as N, type RoleDefinition as O, defineView as P, type ContentTypeScopeConfig as Q, ROLE_ACTIONS as R, type SchemaConfig as S, type TextDirection as T, type ContentTypesScopeConfig as U, type ViewScopeConfig as V, type EntryTypeScopeConfig as W, type AllScopeConfig as X, type ViewFilterOperator as Y, type ViewFilterValue as Z, type ViewFilterRelativeDate as _, type SchemaDefinition as a, type ViewFilter as a0, type ViewConfig as a1, type ViewDefinition as a2, defineQuery as a3, type QueryConfig as a4, type QueryDefinition as a5, type QueryType as a6, type FullTextSearch as a7, type FetchBlock as a8, type AggregateBlock as a9, type SearchBlock as aa, type WhereCondition as ab, type WhereValue as ac, type WhereOperator as ad, type HavingOperator as ae, type QueryScalar as af, type SortCondition as ag, type SortDirection as ah, type IncludeDefinition as ai, type IncludeRelationship as aj, type IncludeSelection as ak, type SelectMapping as al, type FilterDefinition as am, type CachePolicy as an, type CachePolicyObject as ao, type IncludeSubQuery as ap, type IncludeSubQueries as aq, type Parameterizable as ar, type QueryParameter as as, type QueryParameterType as at, type QueryCardinality as au, type InferQueryResponse as av, type InferQueryParams as aw, type FilterOperator as ax, type SchemaContentTypeNames as b, type SchemaSingletonNames as c, defineSchema as d, type SchemaQueryNames as e, type SchemaLocaleCodes as f, type SchemaSettingsGroupNames as g, type SchemaAssetTypeNames as h, type SchemaEntry as i, type SchemaEntryOf as j, defineLocale as k, isLocaleDefinition as l, getLocaleCodes as m, findDefaultLocale as n, getActiveLocales as o, buildFallbackChain as p, type LocaleDefinition as q, defineComponent as r, type ComponentDefinition as s, type ComponentMetadata as t, type ComponentReusabilityMetadata as u, type ComponentValidationMetadata as v, defineSettingsGroup as w, type SettingsGroupConfig as x, type SettingsGroupDefinition as y, type SettingsGroupMetadata as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyFieldDefinition, c as FieldDefinition, k as AIConfig, v as FieldSchemaContext, x as FieldValues, y as DeclaredFields, aK as components, P as ContentTypeDefinition, a0 as SingletonContentTypeDefinition, aH as WorkflowDefinition, a9 as AssetTypeDefinition, W as InferContentType } from './define-content-type-
|
|
1
|
+
import { A as AnyFieldDefinition, c as FieldDefinition, k as AIConfig, v as FieldSchemaContext, x as FieldValues, y as DeclaredFields, aK as components, P as ContentTypeDefinition, a0 as SingletonContentTypeDefinition, aH as WorkflowDefinition, a9 as AssetTypeDefinition, W as InferContentType } from './define-content-type-ENAod5Ve.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Component definition matching @relyio/schema ComponentSchema
|
|
@@ -924,11 +924,15 @@ type ViewFilterValue = string | number | boolean | null | (string | number)[] |
|
|
|
924
924
|
to: string | number | Date;
|
|
925
925
|
} | ViewFilterRelativeDate | Date;
|
|
926
926
|
/**
|
|
927
|
-
*
|
|
927
|
+
* One filter of a view: a field, an operator and the value it compares with.
|
|
928
928
|
*/
|
|
929
929
|
interface ViewFilterCondition {
|
|
930
930
|
/**
|
|
931
|
-
*
|
|
931
|
+
* The Property to filter on, as the Studio's entry list names it: `fields.<id>` for a field your
|
|
932
|
+
* schema declares (`fields.seo.title` for a component's sub-field), `_metadata.<id>` for a system
|
|
933
|
+
* field — `_metadata.status`, `_metadata.createdAt`, `_metadata.updatedAt`. So a field called
|
|
934
|
+
* `status` (`fields.status`) and the entry's own lifecycle (`_metadata.status`) are both
|
|
935
|
+
* filterable.
|
|
932
936
|
*/
|
|
933
937
|
field: string;
|
|
934
938
|
/**
|
|
@@ -941,22 +945,11 @@ interface ViewFilterCondition {
|
|
|
941
945
|
value?: ViewFilterValue;
|
|
942
946
|
}
|
|
943
947
|
/**
|
|
944
|
-
*
|
|
948
|
+
* A view's filter. A view's filters are a flat list joined by AND — the Filters the Studio's entry
|
|
949
|
+
* list takes, each drawn as a Chip — so there is no filter group: an OR within one field is
|
|
950
|
+
* `isAnyOf`. RelyIO refuses a group by name when you deploy.
|
|
945
951
|
*/
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* Logical operator to combine conditions
|
|
949
|
-
*/
|
|
950
|
-
operator: 'and' | 'or';
|
|
951
|
-
/**
|
|
952
|
-
* Array of conditions in this group
|
|
953
|
-
*/
|
|
954
|
-
conditions: ViewFilterCondition[];
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Filter configuration can be simple conditions or groups
|
|
958
|
-
*/
|
|
959
|
-
type ViewFilter = ViewFilterCondition | ViewFilterGroup;
|
|
952
|
+
type ViewFilter = ViewFilterCondition;
|
|
960
953
|
/**
|
|
961
954
|
* View definition configuration
|
|
962
955
|
*/
|
|
@@ -987,8 +980,12 @@ interface ViewConfig {
|
|
|
987
980
|
*/
|
|
988
981
|
scope: ViewScopeConfig;
|
|
989
982
|
/**
|
|
990
|
-
* Filter conditions (optional)
|
|
991
|
-
*
|
|
983
|
+
* Filter conditions (optional), combined with AND. A flat list: an OR within one field is
|
|
984
|
+
* `isAnyOf`, and there is no filter group.
|
|
985
|
+
*
|
|
986
|
+
* Deploy judges each against the entries the view lists: the field must be one they can be
|
|
987
|
+
* narrowed by, and it must offer the operator — a boolean field takes `is` with `true` or
|
|
988
|
+
* `false`, for example, not `isTrue`.
|
|
992
989
|
*/
|
|
993
990
|
filters?: ViewFilter[];
|
|
994
991
|
/**
|
|
@@ -1001,7 +998,9 @@ interface ViewConfig {
|
|
|
1001
998
|
*/
|
|
1002
999
|
metadataFields?: string[];
|
|
1003
1000
|
/**
|
|
1004
|
-
* Default sort
|
|
1001
|
+
* Default sort (optional). `field` names the Property to sort by, as a filter names one —
|
|
1002
|
+
* `fields.<id>` or `_metadata.<id>` — and deploy refuses one the view's entries cannot be sorted
|
|
1003
|
+
* by. `columns` and `metadataFields` are display settings and name field IDs as written.
|
|
1005
1004
|
*/
|
|
1006
1005
|
sort?: {
|
|
1007
1006
|
field: string;
|
|
@@ -1032,25 +1031,25 @@ interface ViewDefinition extends ViewConfig {
|
|
|
1032
1031
|
* columns, and metadata settings.
|
|
1033
1032
|
*
|
|
1034
1033
|
* @example
|
|
1035
|
-
* const
|
|
1036
|
-
* name: '
|
|
1037
|
-
* description: '
|
|
1034
|
+
* const featuredPosts = defineView('featuredPosts', {
|
|
1035
|
+
* name: 'Featured Posts',
|
|
1036
|
+
* description: 'Blog posts marked as featured',
|
|
1038
1037
|
* icon: '📝',
|
|
1039
1038
|
* scope: { type: 'contentType', contentType: 'post' },
|
|
1040
1039
|
* filters: [
|
|
1041
|
-
* { field: '
|
|
1040
|
+
* { field: 'fields.featured', operator: 'is', value: true }
|
|
1042
1041
|
* ],
|
|
1043
1042
|
* columns: ['title', 'author', 'publishedAt'],
|
|
1044
1043
|
* metadataFields: ['category', 'views'],
|
|
1045
|
-
* sort: { field: 'publishedAt', direction: 'desc' }
|
|
1044
|
+
* sort: { field: '_metadata.publishedAt', direction: 'desc' }
|
|
1046
1045
|
* })
|
|
1047
1046
|
*
|
|
1048
1047
|
* @example
|
|
1049
|
-
* const
|
|
1050
|
-
* name: '
|
|
1048
|
+
* const archivedContent = defineView('archivedContent', {
|
|
1049
|
+
* name: 'Archived',
|
|
1051
1050
|
* scope: { type: 'all' },
|
|
1052
1051
|
* filters: [
|
|
1053
|
-
* { field: 'status', operator: 'is', value: '
|
|
1052
|
+
* { field: '_metadata.status', operator: 'is', value: 'archived' }
|
|
1054
1053
|
* ]
|
|
1055
1054
|
* })
|
|
1056
1055
|
*
|
|
@@ -1217,4 +1216,4 @@ type SchemaAssetTypeNames<T extends AnySchemaDefinition> = NonNullable<T['assetT
|
|
|
1217
1216
|
*/
|
|
1218
1217
|
type SchemaLocaleCodes<T extends AnySchemaDefinition> = NonNullable<T['locales']> extends readonly LocaleDefinition[] ? NonNullable<T['locales']>[number]['code'] : never;
|
|
1219
1218
|
|
|
1220
|
-
export { type ViewFilterCondition as $, defineRole as A, isRoleDefinition as B, type ComponentConfig as C, isBuiltInRole as D, getBuiltInRoleActions as E, BUILT_IN_ROLES as F, BUILT_IN_ROLE_ACTIONS as G, type BuiltInRole as H, type InferSettingsGroup as I, type RoleAction as J, type ResourcePermission as K, type LocaleOptions as L, type FieldVisibility as M, type RoleConfig as N, type RoleDefinition as O, defineView as P, type ContentTypeScopeConfig as Q, ROLE_ACTIONS as R, type SchemaConfig as S, type TextDirection as T, type ContentTypesScopeConfig as U, type ViewScopeConfig as V, type EntryTypeScopeConfig as W, type AllScopeConfig as X, type ViewFilterOperator as Y, type ViewFilterValue as Z, type ViewFilterRelativeDate as _, type SchemaDefinition as a, type
|
|
1219
|
+
export { type ViewFilterCondition as $, defineRole as A, isRoleDefinition as B, type ComponentConfig as C, isBuiltInRole as D, getBuiltInRoleActions as E, BUILT_IN_ROLES as F, BUILT_IN_ROLE_ACTIONS as G, type BuiltInRole as H, type InferSettingsGroup as I, type RoleAction as J, type ResourcePermission as K, type LocaleOptions as L, type FieldVisibility as M, type RoleConfig as N, type RoleDefinition as O, defineView as P, type ContentTypeScopeConfig as Q, ROLE_ACTIONS as R, type SchemaConfig as S, type TextDirection as T, type ContentTypesScopeConfig as U, type ViewScopeConfig as V, type EntryTypeScopeConfig as W, type AllScopeConfig as X, type ViewFilterOperator as Y, type ViewFilterValue as Z, type ViewFilterRelativeDate as _, type SchemaDefinition as a, type ViewFilter as a0, type ViewConfig as a1, type ViewDefinition as a2, defineQuery as a3, type QueryConfig as a4, type QueryDefinition as a5, type QueryType as a6, type FullTextSearch as a7, type FetchBlock as a8, type AggregateBlock as a9, type SearchBlock as aa, type WhereCondition as ab, type WhereValue as ac, type WhereOperator as ad, type HavingOperator as ae, type QueryScalar as af, type SortCondition as ag, type SortDirection as ah, type IncludeDefinition as ai, type IncludeRelationship as aj, type IncludeSelection as ak, type SelectMapping as al, type FilterDefinition as am, type CachePolicy as an, type CachePolicyObject as ao, type IncludeSubQuery as ap, type IncludeSubQueries as aq, type Parameterizable as ar, type QueryParameter as as, type QueryParameterType as at, type QueryCardinality as au, type InferQueryResponse as av, type InferQueryParams as aw, type FilterOperator as ax, type SchemaContentTypeNames as b, type SchemaSingletonNames as c, defineSchema as d, type SchemaQueryNames as e, type SchemaLocaleCodes as f, type SchemaSettingsGroupNames as g, type SchemaAssetTypeNames as h, type SchemaEntry as i, type SchemaEntryOf as j, defineLocale as k, isLocaleDefinition as l, getLocaleCodes as m, findDefaultLocale as n, getActiveLocales as o, buildFallbackChain as p, type LocaleDefinition as q, defineComponent as r, type ComponentDefinition as s, type ComponentMetadata as t, type ComponentReusabilityMetadata as u, type ComponentValidationMetadata as v, defineSettingsGroup as w, type SettingsGroupConfig as x, type SettingsGroupDefinition as y, type SettingsGroupMetadata as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as MergedRelyIOConfig, A as ApiPath, c as ApiMethod, N as PathParamsOf, w as ApiResponse, W as Wire, v as RequestConfig, B as BaseContent, h as WhereClause, Q as QueryOptions, j as SortOptions, k as ContentQueryResult, C as CreateInput, U as UpdateInput, S as SDKError, H as BaseValidationError, G as ValidationViolation, R as RelyIOConfig, a as RelyIOConfigUpdate } from './index-
|
|
2
|
-
import { aK as components, aJ as paths, W as InferContentType, aa as InferAssetType, a3 as InferSingleton } from './define-content-type-
|
|
3
|
-
import { a as SchemaDefinition, b as SchemaContentTypeNames, j as SchemaEntryOf,
|
|
1
|
+
import { K as MergedRelyIOConfig, A as ApiPath, c as ApiMethod, N as PathParamsOf, w as ApiResponse, W as Wire, v as RequestConfig, B as BaseContent, h as WhereClause, Q as QueryOptions, j as SortOptions, k as ContentQueryResult, C as CreateInput, U as UpdateInput, S as SDKError, H as BaseValidationError, G as ValidationViolation, R as RelyIOConfig, a as RelyIOConfigUpdate } from './index-C73cK2Tt.js';
|
|
2
|
+
import { aK as components, aJ as paths, W as InferContentType, aa as InferAssetType, a3 as InferSingleton } from './define-content-type-ENAod5Ve.js';
|
|
3
|
+
import { a as SchemaDefinition, b as SchemaContentTypeNames, j as SchemaEntryOf, ax as FilterOperator, h as SchemaAssetTypeNames, c as SchemaSingletonNames, g as SchemaSettingsGroupNames, I as InferSettingsGroup, e as SchemaQueryNames, f as SchemaLocaleCodes } from './define-schema-CVi8nwc7.js';
|
|
4
4
|
import { VisitorResyncReason } from './live-visitor.js';
|
|
5
5
|
import { DevUnreadableReason } from './dev-handshake/index.js';
|
|
6
6
|
|
|
@@ -863,9 +863,9 @@ declare class ContentClient<T extends BaseContent = BaseContent> {
|
|
|
863
863
|
/**
|
|
864
864
|
* Upload/processing error taxonomy (plan 17, 00b Step 4).
|
|
865
865
|
*
|
|
866
|
-
* A **thin customer-side mirror** of the
|
|
866
|
+
* A **thin customer-side mirror** of the live-contracts `FileErrorCode`
|
|
867
867
|
* (correction C6 — the SDK must not import the server/Studio contracts package).
|
|
868
|
-
* Keep the members in sync with `@relyio/
|
|
868
|
+
* Keep the members in sync with `@relyio/live-contracts`.
|
|
869
869
|
*
|
|
870
870
|
* Written once, as values, because a processing failure's code arrives as a string the service
|
|
871
871
|
* stored and has to be recognised at runtime; `FileErrorCode` is read off this list. The module is
|
|
@@ -876,7 +876,7 @@ declare const FILE_ERROR_CODES: readonly ["UPLOAD_TOO_LARGE", "UNSUPPORTED_MIME"
|
|
|
876
876
|
|
|
877
877
|
/**
|
|
878
878
|
* Upload/processing error taxonomy (plan 17, 00b Step 4): a customer-side mirror of the
|
|
879
|
-
*
|
|
879
|
+
* live-contracts `FileErrorCode`, read off the list in `./file-error-codes`.
|
|
880
880
|
*/
|
|
881
881
|
type FileErrorCode = (typeof FILE_ERROR_CODES)[number];
|
|
882
882
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as MergedRelyIOConfig, A as ApiPath, c as ApiMethod, N as PathParamsOf, w as ApiResponse, W as Wire, v as RequestConfig, B as BaseContent, h as WhereClause, Q as QueryOptions, j as SortOptions, k as ContentQueryResult, C as CreateInput, U as UpdateInput, S as SDKError, H as BaseValidationError, G as ValidationViolation, R as RelyIOConfig, a as RelyIOConfigUpdate } from './index-
|
|
2
|
-
import { aK as components, aJ as paths, W as InferContentType, aa as InferAssetType, a3 as InferSingleton } from './define-content-type-
|
|
3
|
-
import { a as SchemaDefinition, b as SchemaContentTypeNames, j as SchemaEntryOf,
|
|
1
|
+
import { K as MergedRelyIOConfig, A as ApiPath, c as ApiMethod, N as PathParamsOf, w as ApiResponse, W as Wire, v as RequestConfig, B as BaseContent, h as WhereClause, Q as QueryOptions, j as SortOptions, k as ContentQueryResult, C as CreateInput, U as UpdateInput, S as SDKError, H as BaseValidationError, G as ValidationViolation, R as RelyIOConfig, a as RelyIOConfigUpdate } from './index-BM42r4yg.cjs';
|
|
2
|
+
import { aK as components, aJ as paths, W as InferContentType, aa as InferAssetType, a3 as InferSingleton } from './define-content-type-ENAod5Ve.cjs';
|
|
3
|
+
import { a as SchemaDefinition, b as SchemaContentTypeNames, j as SchemaEntryOf, ax as FilterOperator, h as SchemaAssetTypeNames, c as SchemaSingletonNames, g as SchemaSettingsGroupNames, I as InferSettingsGroup, e as SchemaQueryNames, f as SchemaLocaleCodes } from './define-schema-DqpipEHv.cjs';
|
|
4
4
|
import { VisitorResyncReason } from './live-visitor.js';
|
|
5
5
|
import { DevUnreadableReason } from './dev-handshake/index.cjs';
|
|
6
6
|
|
|
@@ -863,9 +863,9 @@ declare class ContentClient<T extends BaseContent = BaseContent> {
|
|
|
863
863
|
/**
|
|
864
864
|
* Upload/processing error taxonomy (plan 17, 00b Step 4).
|
|
865
865
|
*
|
|
866
|
-
* A **thin customer-side mirror** of the
|
|
866
|
+
* A **thin customer-side mirror** of the live-contracts `FileErrorCode`
|
|
867
867
|
* (correction C6 — the SDK must not import the server/Studio contracts package).
|
|
868
|
-
* Keep the members in sync with `@relyio/
|
|
868
|
+
* Keep the members in sync with `@relyio/live-contracts`.
|
|
869
869
|
*
|
|
870
870
|
* Written once, as values, because a processing failure's code arrives as a string the service
|
|
871
871
|
* stored and has to be recognised at runtime; `FileErrorCode` is read off this list. The module is
|
|
@@ -876,7 +876,7 @@ declare const FILE_ERROR_CODES: readonly ["UPLOAD_TOO_LARGE", "UNSUPPORTED_MIME"
|
|
|
876
876
|
|
|
877
877
|
/**
|
|
878
878
|
* Upload/processing error taxonomy (plan 17, 00b Step 4): a customer-side mirror of the
|
|
879
|
-
*
|
|
879
|
+
* live-contracts `FileErrorCode`, read off the list in `./file-error-codes`.
|
|
880
880
|
*/
|
|
881
881
|
type FileErrorCode = (typeof FILE_ERROR_CODES)[number];
|
|
882
882
|
/**
|