@djvlc/contracts-types 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -248,16 +248,23 @@ declare function isDjvlcError(error: unknown): error is DjvlcError;
248
248
 
249
249
  /**
250
250
  * 成功响应
251
+ * 与 platform 仓库的 BaseResponse 保持一致
251
252
  */
252
253
  interface ApiSuccessResponse<T = unknown> {
253
254
  /** 是否成功 */
254
255
  success: true;
256
+ /** 业务状态码 */
257
+ code: string;
258
+ /** 响应消息 */
259
+ message: string;
255
260
  /** 响应数据 */
256
261
  data: T;
262
+ /** 响应时间戳(Unix 毫秒时间戳) */
263
+ timestamp: number;
264
+ /** 请求路径 */
265
+ path: string;
257
266
  /** 请求 ID */
258
- requestId: string;
259
- /** 响应时间戳 */
260
- timestamp: ISODateTime;
267
+ requestId?: string;
261
268
  }
262
269
  /**
263
270
  * 错误详情
@@ -272,6 +279,7 @@ interface ApiErrorDetail {
272
279
  }
273
280
  /**
274
281
  * 错误响应
282
+ * 与 platform 仓库的 ErrorResponse 保持一致
275
283
  */
276
284
  interface ApiErrorResponse {
277
285
  /** 是否成功 */
@@ -280,14 +288,16 @@ interface ApiErrorResponse {
280
288
  code: ErrorCode | string;
281
289
  /** 错误消息(用户可读) */
282
290
  message: string;
283
- /** 错误详情(验证错误时使用) */
284
- details?: ApiErrorDetail[];
291
+ /** 错误详情(验证错误时使用,放在 data 字段中) */
292
+ data?: ApiErrorDetail[] | Record<string, unknown>;
293
+ /** 响应时间戳(Unix 毫秒时间戳) */
294
+ timestamp: number;
295
+ /** 请求路径 */
296
+ path: string;
285
297
  /** 请求 ID */
286
- requestId: string;
287
- /** 链路追踪 ID */
298
+ requestId?: string;
299
+ /** 链路追踪 ID(可选,用于分布式追踪) */
288
300
  traceId?: string;
289
- /** 响应时间戳 */
290
- timestamp: ISODateTime;
291
301
  }
292
302
  /**
293
303
  * 统一 API 响应类型
@@ -1524,14 +1534,14 @@ interface RuntimeSpec {
1524
1534
  }
1525
1535
 
1526
1536
  /**
1527
- * PageSchema V2 核心类型
1537
+ * PageSchema V1 核心类型
1528
1538
  */
1529
1539
 
1530
1540
  /**
1531
1541
  * 当前 Schema 版本
1532
1542
  * 每次 Schema 结构变更都需要升级版本并提供迁移脚本
1533
1543
  */
1534
- declare const CURRENT_SCHEMA_VERSION = "2.0.0";
1544
+ declare const CURRENT_SCHEMA_VERSION = "1.0.0";
1535
1545
  /**
1536
1546
  * Schema 版本类型
1537
1547
  */
@@ -3058,7 +3068,7 @@ interface MethodParam {
3058
3068
  type MethodCategory = 'lifecycle' | 'data' | 'display' | 'scroll' | 'custom';
3059
3069
 
3060
3070
  /**
3061
- * 组件元数据(ComponentMeta)V2
3071
+ * 组件元数据(ComponentMeta)V1
3062
3072
  */
3063
3073
 
3064
3074
  /**
@@ -3675,7 +3685,7 @@ interface RetryPolicy {
3675
3685
  }
3676
3686
 
3677
3687
  /**
3678
- * 动作规格(ActionSpec)V2
3688
+ * 动作规格(ActionSpec)V1
3679
3689
  */
3680
3690
 
3681
3691
  /**
@@ -4200,7 +4210,7 @@ interface FallbackCondition {
4200
4210
  }
4201
4211
 
4202
4212
  /**
4203
- * 数据查询规格(DataQuerySpec)V2
4213
+ * 数据查询规格(DataQuerySpec)V1
4204
4214
  */
4205
4215
 
4206
4216
  /**
@@ -5006,10 +5016,10 @@ interface VersionDiff {
5006
5016
  /**
5007
5017
  * 包版本号
5008
5018
  */
5009
- declare const VERSION = "2.0.0";
5019
+ declare const VERSION = "1.0.0";
5010
5020
  /**
5011
5021
  * 协议版本号
5012
5022
  */
5013
- declare const PROTOCOL_VERSION = "2.0.0";
5023
+ declare const PROTOCOL_VERSION = "1.0.0";
5014
5024
 
5015
5025
  export { type ABTestRolloutConfig, ALLOWED_FUNCTION_NAMES, ALL_BUILTIN_FUNCTIONS, ARRAY_FUNCTIONS, type ActionClientContext, type ActionDefinition, type ActionDefinitionVersion, type ActionExecuteRequest, type ActionExecuteResponse, type ActionExecutor, type ActionPolicy, type ActionRef, type ActionResult, type ActionSheetItem, type ActionSheetOptions, type ActionSheetResult, type ActionSpec, ActionType, type Activity, type ActivityPrecondition, type ActivityRule, type ActivityStatus, type ActivityType, type AggregationDataSourceConfig, type AggregationQueryItem, type AnyValueOrExpression, type ApiErrorDetail, type ApiErrorResponse, type ApiResponse, type ApiSuccessResponse, type AppContext, AuditAction, type AuditConfig, type AuditLogEntry, type BackgroundConfig, type BaseActivityRule, type BlacklistRolloutConfig, type BlockedComponentInfo, type BlockedComponentItem, type BootstrapConfig, type BrowserCompat, type BuiltinActionType, CURRENT_ACTION_SPEC_VERSION, CURRENT_COMPONENT_META_VERSION, CURRENT_DATA_QUERY_SPEC_VERSION, CURRENT_SCHEMA_VERSION, type CacheConfig, type CacheLevel, type CanaryHealthCheck, type CanaryRolloutConfig, type CanaryStage, type CanvasType, type CapabilityDeclaration, type CapabilityName, type ChangeLog, type ChangeLogItem, type ClaimActivityRule, type ClaimPrize, type ClaimRecord, type ClaimState, type ClipboardApi, type CompatInfo, type Component, type ComponentCategory, type ComponentContext, type ComponentDependency, type ComponentIntegrity, type ComponentMeta, type ComponentNode, type ComponentQueryParams, type ComponentRegisterRequest, type ComponentStatus, type ComponentStatusChangeRequest, type ComponentVersion, type ConfirmOptions, type ConsecutiveReward, type CreateManifestRequest, type CreatePreviewTokenRequest, type CumulativeReward, DATE_FUNCTIONS, DEFAULT_EXPRESSION_VALIDATION_CONFIG, DEPENDENCY_PREFIX, type DataBinding, type DataBindingErrorConfig, type DataLoadStrategy, type DataQueryDefinition, type DataQueryDefinitionVersion, type DataQueryRequest, type DataQueryResponse, type DataQuerySpec, type DataSourceConfig, type DataSourceType, type DatabaseDataSourceConfig, type DeepReadonly, type DefinitionVersionDigest, type DefinitionsDigest, type DependencyPrefix, type DialogOptions, type DialogResult, type DjvlcError, type EditorComponent, type Environment, ErrorCategory, ErrorCode, ErrorCodeToHttpStatus, type ErrorMapping, ErrorMessages, type EventDeclaration, type EventHandler, type ExecutorContext, type ExecutorResult, type Expression, type ExpressionContext, type ExpressionContextTyped, type ExpressionDependency, type ExpressionEventContext, type ExpressionFunctionCategory, type ExpressionFunctionDefinition, type ExpressionLocal, type ExpressionMeta, type ExpressionType, type ExpressionValidationConfig, type ExpressionValidationError, type ExpressionValidationResult, type ExpressionValidationWarning, FORMAT_FUNCTIONS, type FallbackCondition, type FallbackConfig, type FeatureCondition, type FeatureRolloutConfig, type FieldPermission, type FieldPolicy, type FieldTransform, type FileIntegrity, type FunctionParamDefinition, type GraphQLDataSourceConfig, type HostApi, type HttpDataSourceConfig, type HttpRetryConfig, type I18nDetectionStrategy, type ISODateTime, type IdempotencyKeyStrategy, type IdempotencyRule, type IntegrityHash, type InternalDataSourceConfig, type InventoryConfig, type JsonObject, type JsonValue, type KillSwitchItem, LOGIC_FUNCTIONS, type LayoutConfig, type LayoutValues, type LoopConfig, type LotteryActivityRule, type LotteryCost, type LotteryPrize, type LotteryState, type Manifest, type ManifestEntry, type ManifestItem, type ManifestValidationError, type ManifestValidationResult, type ManifestValidationWarning, type MaskingConfig, type MaskingRule, type MaskingType, type MethodCategory, type MethodDeclaration, type MethodParam, NUMBER_FUNCTIONS, type NavigateOptions, type NodeStyleConfig, type OperatorInfo, type OpsConfig, type OrderByItem, PROTOCOL_VERSION, type PageAssetsJson, type PageBehaviorConfig, type PageConfig, type PageDraft, type PageI18nConfig, type PageIntegrityJson, type PageLayoutConfig, type PageLifecycle, type PageManifest, type PageMeta, type PageResolveRequest, type PageResolveResponse, type PageResolveWithSnapshotResponse, type PageSEO, type PageSchema, type PageSnapshotJson, type PageSnapshotManifest, type PageSnapshotMeta, type PageSnapshotPage, type PageState, PageStatus, type PageStatusType, type PageStylesConfig, type PageVersion, type PaginatedResponse, type PaginationMeta, type PaginationParams, type ParamPermission, type ParticipationLimit, type PercentageRolloutConfig, type PityConfig, type Precondition, type PreconditionType, type PreviewImageOptions, type PreviewToken, type PreviewTokenValidationResult, type ProbabilityConfig, type PropDefinition, type PropFormat, type PropGroup, type PropType, type PropsSchema, type PublishCdnConfig, PublishChannel, type PublishConfig, type PublishEnvironment, type PublishNotificationConfig, type PublishRecord, type PublishRolloutConfig, PublishStatus, type QueryPermissions, type RateLimitDimension, type RateLimitItem, type RateLimitRule, type RequestContext, type ResolvedManifest, type ResponsiveBreakpoints, type RetryPolicy, type RiskControlConfig, type RolloutConfig, type RolloutMatchRequest, type RolloutMatchResult, type RolloutStrategy, type RolloutStrategyConfig, type RolloutStrategyType, type RuntimeContext, type RuntimeSpec, type SHAIntegrity, STRING_FUNCTIONS, type ScanCodeResult, type SchemaVersion, type SemVer, type ShareOptions, type ShareResult, type SigninActivityRule, type SigninRecord, type SigninRewardRecord, type SigninState, type SlotCategory, type SlotDeclaration, type SnapshotComponentEntry, type StateFieldDefinition, type StorageApi, type StorageOptions, type StyleConfig, type StyleIsolation, TemplateParseError, type TemplateParseMode, type ThemeConfig, type TimeWindowRolloutConfig, type ToastOptions, type TrackEvent, type URLString, UTILITY_FUNCTIONS, type UniqueId, type UpsertRolloutRequest, type UserActivityState, type UserContext, VERSION, type ValidationRule, type VersionDiff, type VersionInfo, VersionStatus, type VersionStatusType, type ViewportConfig, type WhitelistRolloutConfig, bindingRef, createDjvlcError, createExpressionContext, createLoopLocal, dep, isDjvlcError, localRef, stateRef, template };
package/dist/index.d.ts CHANGED
@@ -248,16 +248,23 @@ declare function isDjvlcError(error: unknown): error is DjvlcError;
248
248
 
249
249
  /**
250
250
  * 成功响应
251
+ * 与 platform 仓库的 BaseResponse 保持一致
251
252
  */
252
253
  interface ApiSuccessResponse<T = unknown> {
253
254
  /** 是否成功 */
254
255
  success: true;
256
+ /** 业务状态码 */
257
+ code: string;
258
+ /** 响应消息 */
259
+ message: string;
255
260
  /** 响应数据 */
256
261
  data: T;
262
+ /** 响应时间戳(Unix 毫秒时间戳) */
263
+ timestamp: number;
264
+ /** 请求路径 */
265
+ path: string;
257
266
  /** 请求 ID */
258
- requestId: string;
259
- /** 响应时间戳 */
260
- timestamp: ISODateTime;
267
+ requestId?: string;
261
268
  }
262
269
  /**
263
270
  * 错误详情
@@ -272,6 +279,7 @@ interface ApiErrorDetail {
272
279
  }
273
280
  /**
274
281
  * 错误响应
282
+ * 与 platform 仓库的 ErrorResponse 保持一致
275
283
  */
276
284
  interface ApiErrorResponse {
277
285
  /** 是否成功 */
@@ -280,14 +288,16 @@ interface ApiErrorResponse {
280
288
  code: ErrorCode | string;
281
289
  /** 错误消息(用户可读) */
282
290
  message: string;
283
- /** 错误详情(验证错误时使用) */
284
- details?: ApiErrorDetail[];
291
+ /** 错误详情(验证错误时使用,放在 data 字段中) */
292
+ data?: ApiErrorDetail[] | Record<string, unknown>;
293
+ /** 响应时间戳(Unix 毫秒时间戳) */
294
+ timestamp: number;
295
+ /** 请求路径 */
296
+ path: string;
285
297
  /** 请求 ID */
286
- requestId: string;
287
- /** 链路追踪 ID */
298
+ requestId?: string;
299
+ /** 链路追踪 ID(可选,用于分布式追踪) */
288
300
  traceId?: string;
289
- /** 响应时间戳 */
290
- timestamp: ISODateTime;
291
301
  }
292
302
  /**
293
303
  * 统一 API 响应类型
@@ -1524,14 +1534,14 @@ interface RuntimeSpec {
1524
1534
  }
1525
1535
 
1526
1536
  /**
1527
- * PageSchema V2 核心类型
1537
+ * PageSchema V1 核心类型
1528
1538
  */
1529
1539
 
1530
1540
  /**
1531
1541
  * 当前 Schema 版本
1532
1542
  * 每次 Schema 结构变更都需要升级版本并提供迁移脚本
1533
1543
  */
1534
- declare const CURRENT_SCHEMA_VERSION = "2.0.0";
1544
+ declare const CURRENT_SCHEMA_VERSION = "1.0.0";
1535
1545
  /**
1536
1546
  * Schema 版本类型
1537
1547
  */
@@ -3058,7 +3068,7 @@ interface MethodParam {
3058
3068
  type MethodCategory = 'lifecycle' | 'data' | 'display' | 'scroll' | 'custom';
3059
3069
 
3060
3070
  /**
3061
- * 组件元数据(ComponentMeta)V2
3071
+ * 组件元数据(ComponentMeta)V1
3062
3072
  */
3063
3073
 
3064
3074
  /**
@@ -3675,7 +3685,7 @@ interface RetryPolicy {
3675
3685
  }
3676
3686
 
3677
3687
  /**
3678
- * 动作规格(ActionSpec)V2
3688
+ * 动作规格(ActionSpec)V1
3679
3689
  */
3680
3690
 
3681
3691
  /**
@@ -4200,7 +4210,7 @@ interface FallbackCondition {
4200
4210
  }
4201
4211
 
4202
4212
  /**
4203
- * 数据查询规格(DataQuerySpec)V2
4213
+ * 数据查询规格(DataQuerySpec)V1
4204
4214
  */
4205
4215
 
4206
4216
  /**
@@ -5006,10 +5016,10 @@ interface VersionDiff {
5006
5016
  /**
5007
5017
  * 包版本号
5008
5018
  */
5009
- declare const VERSION = "2.0.0";
5019
+ declare const VERSION = "1.0.0";
5010
5020
  /**
5011
5021
  * 协议版本号
5012
5022
  */
5013
- declare const PROTOCOL_VERSION = "2.0.0";
5023
+ declare const PROTOCOL_VERSION = "1.0.0";
5014
5024
 
5015
5025
  export { type ABTestRolloutConfig, ALLOWED_FUNCTION_NAMES, ALL_BUILTIN_FUNCTIONS, ARRAY_FUNCTIONS, type ActionClientContext, type ActionDefinition, type ActionDefinitionVersion, type ActionExecuteRequest, type ActionExecuteResponse, type ActionExecutor, type ActionPolicy, type ActionRef, type ActionResult, type ActionSheetItem, type ActionSheetOptions, type ActionSheetResult, type ActionSpec, ActionType, type Activity, type ActivityPrecondition, type ActivityRule, type ActivityStatus, type ActivityType, type AggregationDataSourceConfig, type AggregationQueryItem, type AnyValueOrExpression, type ApiErrorDetail, type ApiErrorResponse, type ApiResponse, type ApiSuccessResponse, type AppContext, AuditAction, type AuditConfig, type AuditLogEntry, type BackgroundConfig, type BaseActivityRule, type BlacklistRolloutConfig, type BlockedComponentInfo, type BlockedComponentItem, type BootstrapConfig, type BrowserCompat, type BuiltinActionType, CURRENT_ACTION_SPEC_VERSION, CURRENT_COMPONENT_META_VERSION, CURRENT_DATA_QUERY_SPEC_VERSION, CURRENT_SCHEMA_VERSION, type CacheConfig, type CacheLevel, type CanaryHealthCheck, type CanaryRolloutConfig, type CanaryStage, type CanvasType, type CapabilityDeclaration, type CapabilityName, type ChangeLog, type ChangeLogItem, type ClaimActivityRule, type ClaimPrize, type ClaimRecord, type ClaimState, type ClipboardApi, type CompatInfo, type Component, type ComponentCategory, type ComponentContext, type ComponentDependency, type ComponentIntegrity, type ComponentMeta, type ComponentNode, type ComponentQueryParams, type ComponentRegisterRequest, type ComponentStatus, type ComponentStatusChangeRequest, type ComponentVersion, type ConfirmOptions, type ConsecutiveReward, type CreateManifestRequest, type CreatePreviewTokenRequest, type CumulativeReward, DATE_FUNCTIONS, DEFAULT_EXPRESSION_VALIDATION_CONFIG, DEPENDENCY_PREFIX, type DataBinding, type DataBindingErrorConfig, type DataLoadStrategy, type DataQueryDefinition, type DataQueryDefinitionVersion, type DataQueryRequest, type DataQueryResponse, type DataQuerySpec, type DataSourceConfig, type DataSourceType, type DatabaseDataSourceConfig, type DeepReadonly, type DefinitionVersionDigest, type DefinitionsDigest, type DependencyPrefix, type DialogOptions, type DialogResult, type DjvlcError, type EditorComponent, type Environment, ErrorCategory, ErrorCode, ErrorCodeToHttpStatus, type ErrorMapping, ErrorMessages, type EventDeclaration, type EventHandler, type ExecutorContext, type ExecutorResult, type Expression, type ExpressionContext, type ExpressionContextTyped, type ExpressionDependency, type ExpressionEventContext, type ExpressionFunctionCategory, type ExpressionFunctionDefinition, type ExpressionLocal, type ExpressionMeta, type ExpressionType, type ExpressionValidationConfig, type ExpressionValidationError, type ExpressionValidationResult, type ExpressionValidationWarning, FORMAT_FUNCTIONS, type FallbackCondition, type FallbackConfig, type FeatureCondition, type FeatureRolloutConfig, type FieldPermission, type FieldPolicy, type FieldTransform, type FileIntegrity, type FunctionParamDefinition, type GraphQLDataSourceConfig, type HostApi, type HttpDataSourceConfig, type HttpRetryConfig, type I18nDetectionStrategy, type ISODateTime, type IdempotencyKeyStrategy, type IdempotencyRule, type IntegrityHash, type InternalDataSourceConfig, type InventoryConfig, type JsonObject, type JsonValue, type KillSwitchItem, LOGIC_FUNCTIONS, type LayoutConfig, type LayoutValues, type LoopConfig, type LotteryActivityRule, type LotteryCost, type LotteryPrize, type LotteryState, type Manifest, type ManifestEntry, type ManifestItem, type ManifestValidationError, type ManifestValidationResult, type ManifestValidationWarning, type MaskingConfig, type MaskingRule, type MaskingType, type MethodCategory, type MethodDeclaration, type MethodParam, NUMBER_FUNCTIONS, type NavigateOptions, type NodeStyleConfig, type OperatorInfo, type OpsConfig, type OrderByItem, PROTOCOL_VERSION, type PageAssetsJson, type PageBehaviorConfig, type PageConfig, type PageDraft, type PageI18nConfig, type PageIntegrityJson, type PageLayoutConfig, type PageLifecycle, type PageManifest, type PageMeta, type PageResolveRequest, type PageResolveResponse, type PageResolveWithSnapshotResponse, type PageSEO, type PageSchema, type PageSnapshotJson, type PageSnapshotManifest, type PageSnapshotMeta, type PageSnapshotPage, type PageState, PageStatus, type PageStatusType, type PageStylesConfig, type PageVersion, type PaginatedResponse, type PaginationMeta, type PaginationParams, type ParamPermission, type ParticipationLimit, type PercentageRolloutConfig, type PityConfig, type Precondition, type PreconditionType, type PreviewImageOptions, type PreviewToken, type PreviewTokenValidationResult, type ProbabilityConfig, type PropDefinition, type PropFormat, type PropGroup, type PropType, type PropsSchema, type PublishCdnConfig, PublishChannel, type PublishConfig, type PublishEnvironment, type PublishNotificationConfig, type PublishRecord, type PublishRolloutConfig, PublishStatus, type QueryPermissions, type RateLimitDimension, type RateLimitItem, type RateLimitRule, type RequestContext, type ResolvedManifest, type ResponsiveBreakpoints, type RetryPolicy, type RiskControlConfig, type RolloutConfig, type RolloutMatchRequest, type RolloutMatchResult, type RolloutStrategy, type RolloutStrategyConfig, type RolloutStrategyType, type RuntimeContext, type RuntimeSpec, type SHAIntegrity, STRING_FUNCTIONS, type ScanCodeResult, type SchemaVersion, type SemVer, type ShareOptions, type ShareResult, type SigninActivityRule, type SigninRecord, type SigninRewardRecord, type SigninState, type SlotCategory, type SlotDeclaration, type SnapshotComponentEntry, type StateFieldDefinition, type StorageApi, type StorageOptions, type StyleConfig, type StyleIsolation, TemplateParseError, type TemplateParseMode, type ThemeConfig, type TimeWindowRolloutConfig, type ToastOptions, type TrackEvent, type URLString, UTILITY_FUNCTIONS, type UniqueId, type UpsertRolloutRequest, type UserActivityState, type UserContext, VERSION, type ValidationRule, type VersionDiff, type VersionInfo, VersionStatus, type VersionStatusType, type ViewportConfig, type WhitelistRolloutConfig, bindingRef, createDjvlcError, createExpressionContext, createLoopLocal, dep, isDjvlcError, localRef, stateRef, template };
package/dist/index.js CHANGED
@@ -227,7 +227,7 @@ var AuditAction = /* @__PURE__ */ ((AuditAction2) => {
227
227
  })(AuditAction || {});
228
228
 
229
229
  // src/page/schema.ts
230
- var CURRENT_SCHEMA_VERSION = "2.0.0";
230
+ var CURRENT_SCHEMA_VERSION = "1.0.0";
231
231
 
232
232
  // src/expression/functions.ts
233
233
  var STRING_FUNCTIONS = [
@@ -1152,7 +1152,7 @@ function template(templateString, fallback) {
1152
1152
  }
1153
1153
 
1154
1154
  // src/component/meta.ts
1155
- var CURRENT_COMPONENT_META_VERSION = "2.0.0";
1155
+ var CURRENT_COMPONENT_META_VERSION = "1.0.0";
1156
1156
 
1157
1157
  // src/action/types.ts
1158
1158
  var ActionType = /* @__PURE__ */ ((ActionType2) => {
@@ -1170,14 +1170,14 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
1170
1170
  })(ActionType || {});
1171
1171
 
1172
1172
  // src/action/spec.ts
1173
- var CURRENT_ACTION_SPEC_VERSION = "2.0.0";
1173
+ var CURRENT_ACTION_SPEC_VERSION = "1.0.0";
1174
1174
 
1175
1175
  // src/data-query/spec.ts
1176
- var CURRENT_DATA_QUERY_SPEC_VERSION = "2.0.0";
1176
+ var CURRENT_DATA_QUERY_SPEC_VERSION = "1.0.0";
1177
1177
 
1178
1178
  // src/index.ts
1179
- var VERSION = "2.0.0";
1180
- var PROTOCOL_VERSION = "2.0.0";
1179
+ var VERSION = "1.0.0";
1180
+ var PROTOCOL_VERSION = "1.0.0";
1181
1181
 
1182
1182
  exports.ALLOWED_FUNCTION_NAMES = ALLOWED_FUNCTION_NAMES;
1183
1183
  exports.ALL_BUILTIN_FUNCTIONS = ALL_BUILTIN_FUNCTIONS;
package/dist/index.mjs CHANGED
@@ -225,7 +225,7 @@ var AuditAction = /* @__PURE__ */ ((AuditAction2) => {
225
225
  })(AuditAction || {});
226
226
 
227
227
  // src/page/schema.ts
228
- var CURRENT_SCHEMA_VERSION = "2.0.0";
228
+ var CURRENT_SCHEMA_VERSION = "1.0.0";
229
229
 
230
230
  // src/expression/functions.ts
231
231
  var STRING_FUNCTIONS = [
@@ -1150,7 +1150,7 @@ function template(templateString, fallback) {
1150
1150
  }
1151
1151
 
1152
1152
  // src/component/meta.ts
1153
- var CURRENT_COMPONENT_META_VERSION = "2.0.0";
1153
+ var CURRENT_COMPONENT_META_VERSION = "1.0.0";
1154
1154
 
1155
1155
  // src/action/types.ts
1156
1156
  var ActionType = /* @__PURE__ */ ((ActionType2) => {
@@ -1168,13 +1168,13 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
1168
1168
  })(ActionType || {});
1169
1169
 
1170
1170
  // src/action/spec.ts
1171
- var CURRENT_ACTION_SPEC_VERSION = "2.0.0";
1171
+ var CURRENT_ACTION_SPEC_VERSION = "1.0.0";
1172
1172
 
1173
1173
  // src/data-query/spec.ts
1174
- var CURRENT_DATA_QUERY_SPEC_VERSION = "2.0.0";
1174
+ var CURRENT_DATA_QUERY_SPEC_VERSION = "1.0.0";
1175
1175
 
1176
1176
  // src/index.ts
1177
- var VERSION = "2.0.0";
1178
- var PROTOCOL_VERSION = "2.0.0";
1177
+ var VERSION = "1.0.0";
1178
+ var PROTOCOL_VERSION = "1.0.0";
1179
1179
 
1180
1180
  export { ALLOWED_FUNCTION_NAMES, ALL_BUILTIN_FUNCTIONS, ARRAY_FUNCTIONS, ActionType, AuditAction, CURRENT_ACTION_SPEC_VERSION, CURRENT_COMPONENT_META_VERSION, CURRENT_DATA_QUERY_SPEC_VERSION, CURRENT_SCHEMA_VERSION, DATE_FUNCTIONS, DEFAULT_EXPRESSION_VALIDATION_CONFIG, DEPENDENCY_PREFIX, ErrorCategory, ErrorCode, ErrorCodeToHttpStatus, ErrorMessages, FORMAT_FUNCTIONS, LOGIC_FUNCTIONS, NUMBER_FUNCTIONS, PROTOCOL_VERSION, PageStatus, PublishChannel, PublishStatus, STRING_FUNCTIONS, TemplateParseError, UTILITY_FUNCTIONS, VERSION, VersionStatus, bindingRef, createDjvlcError, createExpressionContext, createLoopLocal, dep, isDjvlcError, localRef, stateRef, template };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djvlc/contracts-types",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "DJV Low-code Platform - TypeScript 类型定义包",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",