@relyio/sdk 0.10.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 +47 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-IGHYC2WM.js → chunk-2TIJLV2X.js} +2 -2
- package/dist/{chunk-DC4QLAI3.cjs → chunk-4HTIU5YE.cjs} +2 -2
- package/dist/{chunk-2L5JUW7O.js → chunk-7GLDVHIH.js} +2 -2
- package/dist/{chunk-2HP566NI.cjs → chunk-PO7CUR5U.cjs} +2 -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-DfnTu26S.d.cts → define-content-type-ENAod5Ve.d.cts} +27 -14
- package/dist/{define-content-type-DfnTu26S.d.ts → define-content-type-ENAod5Ve.d.ts} +27 -14
- package/dist/{define-schema-W-0u1Jg1.d.cts → define-schema-CVi8nwc7.d.ts} +17 -11
- package/dist/{define-schema-rbTrXxNN.d.ts → define-schema-DqpipEHv.d.cts} +17 -11
- package/dist/{index-rLEBSFvK.d.ts → index-BKEAYvvz.d.ts} +6 -6
- package/dist/{index-NnLCwSqF.d.cts → index-BM42r4yg.d.cts} +1 -1
- package/dist/{index-B9hDmCho.d.ts → index-C73cK2Tt.d.ts} +1 -1
- package/dist/{index-KuYgc7eG.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 +3 -3
package/dist/schema/index.cjs
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPO7CUR5U_cjs = require('../chunk-PO7CUR5U.cjs');
|
|
4
4
|
require('../chunk-MWMSFIWN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "BUILT_IN_ROLES", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkPO7CUR5U_cjs.BUILT_IN_ROLES; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "BUILT_IN_ROLE_ACTIONS", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkPO7CUR5U_cjs.BUILT_IN_ROLE_ACTIONS; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ROLE_ACTIONS", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPO7CUR5U_cjs.ROLE_ACTIONS; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "buildFallbackChain", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkPO7CUR5U_cjs.buildFallbackChain; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "defineAssetType", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkPO7CUR5U_cjs.defineAssetType; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "defineComponent", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkPO7CUR5U_cjs.defineComponent; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "defineContentType", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkPO7CUR5U_cjs.defineContentType; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "defineContentTypeWorkflow", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkPO7CUR5U_cjs.defineContentTypeWorkflow; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "defineLocale", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkPO7CUR5U_cjs.defineLocale; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "defineQuery", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkPO7CUR5U_cjs.defineQuery; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "defineRole", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkPO7CUR5U_cjs.defineRole; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "defineSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkPO7CUR5U_cjs.defineSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkPO7CUR5U_cjs.defineSettingsGroup; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "defineSingleton", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkPO7CUR5U_cjs.defineSingleton; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkPO7CUR5U_cjs.defineSingletonContentType; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "defineView", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkPO7CUR5U_cjs.defineView; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "defineWorkflow", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkPO7CUR5U_cjs.defineWorkflow; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "defineWorkflowStage", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkPO7CUR5U_cjs.defineWorkflowStage; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "fields", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkPO7CUR5U_cjs.fields; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "fieldset", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkPO7CUR5U_cjs.fieldset; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "findDefaultLocale", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkPO7CUR5U_cjs.findDefaultLocale; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "findWorkflowStage", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkPO7CUR5U_cjs.findWorkflowStage; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "getActiveLocales", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkPO7CUR5U_cjs.getActiveLocales; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "getBuiltInRoleActions", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkPO7CUR5U_cjs.getBuiltInRoleActions; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "getFirstWorkflowStage", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkPO7CUR5U_cjs.getFirstWorkflowStage; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "getLocaleCodes", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkPO7CUR5U_cjs.getLocaleCodes; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "getNextWorkflowStage", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkPO7CUR5U_cjs.getNextWorkflowStage; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "getWorkflowStageIds", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkPO7CUR5U_cjs.getWorkflowStageIds; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "isBuiltInRole", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkPO7CUR5U_cjs.isBuiltInRole; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "isFinalWorkflowStage", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkPO7CUR5U_cjs.isFinalWorkflowStage; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "isLocaleDefinition", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkPO7CUR5U_cjs.isLocaleDefinition; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "isRoleDefinition", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkPO7CUR5U_cjs.isRoleDefinition; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "isWorkflowDefinition", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkPO7CUR5U_cjs.isWorkflowDefinition; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "isWorkflowStageDefinition", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkPO7CUR5U_cjs.isWorkflowStageDefinition; }
|
|
143
143
|
});
|
|
144
144
|
//# sourceMappingURL=index.cjs.map
|
|
145
145
|
//# sourceMappingURL=index.cjs.map
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a9 as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, an as CachePolicy, ao as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a8 as FetchBlock, M as FieldVisibility, am as FilterDefinition, a7 as FullTextSearch, ae as HavingOperator, ai as IncludeDefinition, aj as IncludeRelationship, ak as IncludeSelection, aq as IncludeSubQueries, ap as IncludeSubQuery, aw as InferQueryParams, av as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, ar as Parameterizable, au as QueryCardinality, a4 as QueryConfig, a5 as QueryDefinition, as as QueryParameter, at as QueryParameterType, af as QueryScalar, a6 as QueryType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, ag as SortCondition, ah as SortDirection, T as TextDirection, a1 as ViewConfig, a2 as ViewDefinition, a0 as ViewFilter, $ as ViewFilterCondition, Y as ViewFilterOperator, _ as ViewFilterRelativeDate, Z as ViewFilterValue, V as ViewScopeConfig, ab as WhereCondition, ad as WhereOperator, ac as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a3 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-
|
|
2
|
-
import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, C as ComponentFieldConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, o as ComponentFieldType, p as FieldType, q as ReadOnlyRule, r as RequirementRule, s as RuleCondition, t as RuleConditions, V as ValidationRule, u as VisibilityRule } from '../define-content-type-
|
|
3
|
-
export { a5 as AssetTypeConfig, a6 as AssetTypeConfigWithFields, a7 as AssetTypeConfigWithFieldsets, a8 as AssetTypeConfigWithoutFields, a9 as AssetTypeDefinition, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, aI as ContentTypeWorkflowConfig, y as DeclaredFields, Q as EntryMetadata, v as FieldSchemaContext, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, af as ImageFitMode, ab as ImageKindConfig, ag as ImageOutputFormat, ai as ImageSourceConfig, ae as ImageTransform, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, _ as SingletonConfigWithFields, $ as SingletonConfigWithFieldsets, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, aD as WorkflowAutoAssign, aG as WorkflowConfig, aH as WorkflowDefinition, aC as WorkflowEscalation, aE as WorkflowStageConfig, aF as WorkflowStageDefinition, a4 as defineAssetType, H as defineContentType, au as defineContentTypeWorkflow, Z as defineSingleton, Y as defineSingletonContentType, as as defineWorkflow, at as defineWorkflowStage, J as fieldset, ay as findWorkflowStage, aA as getFirstWorkflowStage, az as getNextWorkflowStage, ax as getWorkflowStageIds, aB as isFinalWorkflowStage, av as isWorkflowDefinition, aw as isWorkflowStageDefinition } from '../define-content-type-
|
|
1
|
+
export { a9 as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, an as CachePolicy, ao as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a8 as FetchBlock, M as FieldVisibility, am as FilterDefinition, a7 as FullTextSearch, ae as HavingOperator, ai as IncludeDefinition, aj as IncludeRelationship, ak as IncludeSelection, aq as IncludeSubQueries, ap as IncludeSubQuery, aw as InferQueryParams, av as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, ar as Parameterizable, au as QueryCardinality, a4 as QueryConfig, a5 as QueryDefinition, as as QueryParameter, at as QueryParameterType, af as QueryScalar, a6 as QueryType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, ag as SortCondition, ah as SortDirection, T as TextDirection, a1 as ViewConfig, a2 as ViewDefinition, a0 as ViewFilter, $ as ViewFilterCondition, Y as ViewFilterOperator, _ as ViewFilterRelativeDate, Z as ViewFilterValue, V as ViewScopeConfig, ab as WhereCondition, ad as WhereOperator, ac as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a3 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-DqpipEHv.cjs';
|
|
2
|
+
import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, C as ComponentFieldConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, o as ComponentFieldType, p as FieldType, q as ReadOnlyRule, r as RequirementRule, s as RuleCondition, t as RuleConditions, V as ValidationRule, u as VisibilityRule } from '../define-content-type-ENAod5Ve.cjs';
|
|
3
|
+
export { a5 as AssetTypeConfig, a6 as AssetTypeConfigWithFields, a7 as AssetTypeConfigWithFieldsets, a8 as AssetTypeConfigWithoutFields, a9 as AssetTypeDefinition, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, aI as ContentTypeWorkflowConfig, y as DeclaredFields, Q as EntryMetadata, v as FieldSchemaContext, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, af as ImageFitMode, ab as ImageKindConfig, ag as ImageOutputFormat, ai as ImageSourceConfig, ae as ImageTransform, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, _ as SingletonConfigWithFields, $ as SingletonConfigWithFieldsets, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, aD as WorkflowAutoAssign, aG as WorkflowConfig, aH as WorkflowDefinition, aC as WorkflowEscalation, aE as WorkflowStageConfig, aF as WorkflowStageDefinition, a4 as defineAssetType, H as defineContentType, au as defineContentTypeWorkflow, Z as defineSingleton, Y as defineSingletonContentType, as as defineWorkflow, at as defineWorkflowStage, J as fieldset, ay as findWorkflowStage, aA as getFirstWorkflowStage, az as getNextWorkflowStage, ax as getWorkflowStageIds, aB as isFinalWorkflowStage, av as isWorkflowDefinition, aw as isWorkflowStageDefinition } from '../define-content-type-ENAod5Ve.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Field builders for defining schema fields
|
|
@@ -92,7 +92,8 @@ declare function enumField<TId extends string, TValue extends string = string, T
|
|
|
92
92
|
*/
|
|
93
93
|
declare function date<TId extends string>(id: TId, options?: FieldOptions<DateConfig>): FieldDefinition<TId, 'date', DateConfig>;
|
|
94
94
|
/**
|
|
95
|
-
* DateTime field, stored in UTC
|
|
95
|
+
* DateTime field: an instant, stored and read back in UTC whatever offset it is written in.
|
|
96
|
+
* `timeZoneHandling` says whether the editor shows it in UTC or in the author's local time.
|
|
96
97
|
* @example fields.dateTime('createdAt', { config: { timeZoneHandling: 'UTC' } })
|
|
97
98
|
*/
|
|
98
99
|
declare function dateTime<TId extends string>(id: TId, options?: FieldOptions<DateTimeConfig>): FieldDefinition<TId, 'dateTime', DateTimeConfig>;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a9 as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, an as CachePolicy, ao as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a8 as FetchBlock, M as FieldVisibility, am as FilterDefinition, a7 as FullTextSearch, ae as HavingOperator, ai as IncludeDefinition, aj as IncludeRelationship, ak as IncludeSelection, aq as IncludeSubQueries, ap as IncludeSubQuery, aw as InferQueryParams, av as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, ar as Parameterizable, au as QueryCardinality, a4 as QueryConfig, a5 as QueryDefinition, as as QueryParameter, at as QueryParameterType, af as QueryScalar, a6 as QueryType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, ag as SortCondition, ah as SortDirection, T as TextDirection, a1 as ViewConfig, a2 as ViewDefinition, a0 as ViewFilter, $ as ViewFilterCondition, Y as ViewFilterOperator, _ as ViewFilterRelativeDate, Z as ViewFilterValue, V as ViewScopeConfig, ab as WhereCondition, ad as WhereOperator, ac as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a3 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-
|
|
2
|
-
import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, C as ComponentFieldConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, o as ComponentFieldType, p as FieldType, q as ReadOnlyRule, r as RequirementRule, s as RuleCondition, t as RuleConditions, V as ValidationRule, u as VisibilityRule } from '../define-content-type-
|
|
3
|
-
export { a5 as AssetTypeConfig, a6 as AssetTypeConfigWithFields, a7 as AssetTypeConfigWithFieldsets, a8 as AssetTypeConfigWithoutFields, a9 as AssetTypeDefinition, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, aI as ContentTypeWorkflowConfig, y as DeclaredFields, Q as EntryMetadata, v as FieldSchemaContext, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, af as ImageFitMode, ab as ImageKindConfig, ag as ImageOutputFormat, ai as ImageSourceConfig, ae as ImageTransform, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, _ as SingletonConfigWithFields, $ as SingletonConfigWithFieldsets, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, aD as WorkflowAutoAssign, aG as WorkflowConfig, aH as WorkflowDefinition, aC as WorkflowEscalation, aE as WorkflowStageConfig, aF as WorkflowStageDefinition, a4 as defineAssetType, H as defineContentType, au as defineContentTypeWorkflow, Z as defineSingleton, Y as defineSingletonContentType, as as defineWorkflow, at as defineWorkflowStage, J as fieldset, ay as findWorkflowStage, aA as getFirstWorkflowStage, az as getNextWorkflowStage, ax as getWorkflowStageIds, aB as isFinalWorkflowStage, av as isWorkflowDefinition, aw as isWorkflowStageDefinition } from '../define-content-type-
|
|
1
|
+
export { a9 as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, an as CachePolicy, ao as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a8 as FetchBlock, M as FieldVisibility, am as FilterDefinition, a7 as FullTextSearch, ae as HavingOperator, ai as IncludeDefinition, aj as IncludeRelationship, ak as IncludeSelection, aq as IncludeSubQueries, ap as IncludeSubQuery, aw as InferQueryParams, av as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, ar as Parameterizable, au as QueryCardinality, a4 as QueryConfig, a5 as QueryDefinition, as as QueryParameter, at as QueryParameterType, af as QueryScalar, a6 as QueryType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, ag as SortCondition, ah as SortDirection, T as TextDirection, a1 as ViewConfig, a2 as ViewDefinition, a0 as ViewFilter, $ as ViewFilterCondition, Y as ViewFilterOperator, _ as ViewFilterRelativeDate, Z as ViewFilterValue, V as ViewScopeConfig, ab as WhereCondition, ad as WhereOperator, ac as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a3 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-CVi8nwc7.js';
|
|
2
|
+
import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, C as ComponentFieldConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, o as ComponentFieldType, p as FieldType, q as ReadOnlyRule, r as RequirementRule, s as RuleCondition, t as RuleConditions, V as ValidationRule, u as VisibilityRule } from '../define-content-type-ENAod5Ve.js';
|
|
3
|
+
export { a5 as AssetTypeConfig, a6 as AssetTypeConfigWithFields, a7 as AssetTypeConfigWithFieldsets, a8 as AssetTypeConfigWithoutFields, a9 as AssetTypeDefinition, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, aI as ContentTypeWorkflowConfig, y as DeclaredFields, Q as EntryMetadata, v as FieldSchemaContext, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, af as ImageFitMode, ab as ImageKindConfig, ag as ImageOutputFormat, ai as ImageSourceConfig, ae as ImageTransform, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, _ as SingletonConfigWithFields, $ as SingletonConfigWithFieldsets, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, aD as WorkflowAutoAssign, aG as WorkflowConfig, aH as WorkflowDefinition, aC as WorkflowEscalation, aE as WorkflowStageConfig, aF as WorkflowStageDefinition, a4 as defineAssetType, H as defineContentType, au as defineContentTypeWorkflow, Z as defineSingleton, Y as defineSingletonContentType, as as defineWorkflow, at as defineWorkflowStage, J as fieldset, ay as findWorkflowStage, aA as getFirstWorkflowStage, az as getNextWorkflowStage, ax as getWorkflowStageIds, aB as isFinalWorkflowStage, av as isWorkflowDefinition, aw as isWorkflowStageDefinition } from '../define-content-type-ENAod5Ve.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Field builders for defining schema fields
|
|
@@ -92,7 +92,8 @@ declare function enumField<TId extends string, TValue extends string = string, T
|
|
|
92
92
|
*/
|
|
93
93
|
declare function date<TId extends string>(id: TId, options?: FieldOptions<DateConfig>): FieldDefinition<TId, 'date', DateConfig>;
|
|
94
94
|
/**
|
|
95
|
-
* DateTime field, stored in UTC
|
|
95
|
+
* DateTime field: an instant, stored and read back in UTC whatever offset it is written in.
|
|
96
|
+
* `timeZoneHandling` says whether the editor shows it in UTC or in the author's local time.
|
|
96
97
|
* @example fields.dateTime('createdAt', { config: { timeZoneHandling: 'UTC' } })
|
|
97
98
|
*/
|
|
98
99
|
declare function dateTime<TId extends string>(id: TId, options?: FieldOptions<DateTimeConfig>): FieldDefinition<TId, 'dateTime', DateTimeConfig>;
|
package/dist/schema/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-
|
|
1
|
+
export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-2TIJLV2X.js';
|
|
2
2
|
import '../chunk-XQ4QHWZE.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { w as ApiResponse, B as BaseContent, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, O as FieldDefinition, p as FieldOptions, F as FieldTypeName, z as LogLevel, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, v as RequestConfig, x as RetryConfig, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar } from '../index-
|
|
2
|
-
import '../define-content-type-
|
|
1
|
+
export { w as ApiResponse, B as BaseContent, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, O as FieldDefinition, p as FieldOptions, F as FieldTypeName, z as LogLevel, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, v as RequestConfig, x as RetryConfig, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar } from '../index-BM42r4yg.cjs';
|
|
2
|
+
import '../define-content-type-ENAod5Ve.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { w as ApiResponse, B as BaseContent, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, O as FieldDefinition, p as FieldOptions, F as FieldTypeName, z as LogLevel, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, v as RequestConfig, x as RetryConfig, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar } from '../index-
|
|
2
|
-
import '../define-content-type-
|
|
1
|
+
export { w as ApiResponse, B as BaseContent, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, O as FieldDefinition, p as FieldOptions, F as FieldTypeName, z as LogLevel, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, v as RequestConfig, x as RetryConfig, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar } from '../index-C73cK2Tt.js';
|
|
2
|
+
import '../define-content-type-ENAod5Ve.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relyio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "RelyIO is coming soon — this package is not ready for general use yet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"relyio"
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"typedoc": "^0.28.20",
|
|
86
86
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
87
87
|
"vitest": "4.1.11",
|
|
88
|
-
"@relyio/
|
|
89
|
-
"@relyio/
|
|
88
|
+
"@relyio/eslint-config": "0.0.0",
|
|
89
|
+
"@relyio/api-contract": "0.1.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"typescript": ">=4.9.0"
|