@kuafucloud/data 0.0.0-stage → 0.1.1-alpha.1
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/admin/admin/extension.zip +0 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +2 -0
- package/dist/admin/meta/admin.json +74 -0
- package/dist/admin/meta/extension-manifest.json +298 -0
- package/dist/facade/index.d.ts +272 -0
- package/dist/facade/index.js +11 -0
- package/dist/public/index.js +78 -0
- package/dist/public/runtime-services/core/index.js +334 -0
- package/dist/runtime-services/app/index.js +341 -0
- package/dist/runtime-services/app/service-module.config.json +16 -0
- package/dist/runtime-services/app-simulator/index.js +341 -0
- package/dist/runtime-services/app-simulator/service-module.config.json +12 -0
- package/dist/runtime-services/mini-program/index.js +341 -0
- package/dist/runtime-services/mini-program/service-module.config.json +12 -0
- package/dist/runtime-services/mini-program-simulator/index.js +341 -0
- package/dist/runtime-services/mini-program-simulator/service-module.config.json +12 -0
- package/dist/runtime-services/site/index.js +341 -0
- package/dist/runtime-services/site/service-module.config.json +12 -0
- package/dist/simulation/artifact/meta/database.json +72 -0
- package/dist/simulation/artifact/meta/manifest.json +286 -0
- package/dist/simulation/artifact/meta/permissions.json +86 -0
- package/dist/simulation/artifact/meta/runtime-meta.json +29 -0
- package/dist/simulation/artifact/meta/schema.json +70 -0
- package/dist/simulation/artifact/server/worker/index.js +39 -0
- package/dist/simulation/artifact/server/worker/monitoring-contract.json +7 -0
- package/dist/simulation/index.d.ts +1 -0
- package/dist/simulation/index.js +1 -0
- package/dist/types/client/index.d.ts +87 -0
- package/dist/types/runtime-services/app/index.d.ts +2 -0
- package/dist/types/runtime-services/app-simulator/index.d.ts +2 -0
- package/dist/types/runtime-services/core/index.d.ts +73 -0
- package/dist/types/runtime-services/mini-program/index.d.ts +2 -0
- package/dist/types/runtime-services/mini-program-simulator/index.d.ts +2 -0
- package/dist/types/runtime-services/site/index.d.ts +2 -0
- package/extension-manifest.json +265 -0
- package/package.json +99 -4
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const artifactRoot: URL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const artifactRoot = new URL("./artifact/", import.meta.url);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { KuafuResult } from "@kuafucloud/product-runtime-protocol";
|
|
2
|
+
export type DataValue = null | boolean | number | string | readonly DataValue[] | {
|
|
3
|
+
readonly [key: string]: DataValue;
|
|
4
|
+
};
|
|
5
|
+
export type DataMessageDescriptor = Readonly<{
|
|
6
|
+
id: string;
|
|
7
|
+
defaultMessage: string;
|
|
8
|
+
}>;
|
|
9
|
+
type DataLocalText = string | DataMessageDescriptor;
|
|
10
|
+
export type DataPropertyDefinition = Readonly<{
|
|
11
|
+
type: "boolean" | "integer" | "number" | "string";
|
|
12
|
+
required?: boolean;
|
|
13
|
+
description?: DataLocalText;
|
|
14
|
+
enum?: readonly string[];
|
|
15
|
+
maximumLength?: number;
|
|
16
|
+
}>;
|
|
17
|
+
export type DataPropertiesDefinition = Readonly<Record<string, DataPropertyDefinition>>;
|
|
18
|
+
type PropertyValue<TDefinition extends DataPropertyDefinition> = TDefinition["type"] extends "boolean" ? boolean : TDefinition["type"] extends "integer" | "number" ? number : TDefinition extends {
|
|
19
|
+
enum: readonly (infer TValue extends string)[];
|
|
20
|
+
} ? TValue : string;
|
|
21
|
+
type RequiredPropertyKeys<TSchema extends DataPropertiesDefinition> = {
|
|
22
|
+
[TKey in keyof TSchema]: TSchema[TKey] extends {
|
|
23
|
+
required: true;
|
|
24
|
+
} ? TKey : never;
|
|
25
|
+
}[keyof TSchema];
|
|
26
|
+
type OptionalPropertyKeys<TSchema extends DataPropertiesDefinition> = Exclude<keyof TSchema, RequiredPropertyKeys<TSchema>>;
|
|
27
|
+
export type InferDataProperties<TSchema extends DataPropertiesDefinition> = Readonly<{
|
|
28
|
+
[TKey in RequiredPropertyKeys<TSchema>]: PropertyValue<TSchema[TKey]>;
|
|
29
|
+
} & {
|
|
30
|
+
[TKey in OptionalPropertyKeys<TSchema>]?: PropertyValue<TSchema[TKey]>;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Product 本地事件声明。
|
|
34
|
+
*
|
|
35
|
+
* 展示信息与属性定义不会同步到 Data 后端,只用于类型提示、开发期校验和代码说明。
|
|
36
|
+
*/
|
|
37
|
+
export interface EventKey<TProperties extends object = object> {
|
|
38
|
+
readonly key: string;
|
|
39
|
+
readonly displayName: DataLocalText;
|
|
40
|
+
readonly description: DataLocalText;
|
|
41
|
+
readonly properties: DataPropertiesDefinition;
|
|
42
|
+
readonly parseProperties: (value: unknown) => TProperties;
|
|
43
|
+
}
|
|
44
|
+
export declare function defineEvent<const TProperties extends DataPropertiesDefinition = Record<never, never>>(definition: Readonly<{
|
|
45
|
+
key: string;
|
|
46
|
+
displayName: DataLocalText;
|
|
47
|
+
description: DataLocalText;
|
|
48
|
+
properties?: TProperties;
|
|
49
|
+
}>): EventKey<InferDataProperties<TProperties>>;
|
|
50
|
+
export type DataCaptureReceipt = {
|
|
51
|
+
readonly state: "queued";
|
|
52
|
+
readonly eventId: string;
|
|
53
|
+
} | {
|
|
54
|
+
readonly state: "dropped";
|
|
55
|
+
readonly reason: "sampling" | "privacy_reset";
|
|
56
|
+
};
|
|
57
|
+
export type DataTerminalDisposition = "accepted" | "duplicate" | "quarantined" | "rejected";
|
|
58
|
+
export type DataFlushOutcome = Readonly<{
|
|
59
|
+
eventId: string;
|
|
60
|
+
status: DataTerminalDisposition | "retryable";
|
|
61
|
+
reason?: string;
|
|
62
|
+
terminalDisposition?: DataTerminalDisposition;
|
|
63
|
+
effectiveRate?: number;
|
|
64
|
+
settingRevision?: number | null;
|
|
65
|
+
intakeSequence?: number;
|
|
66
|
+
}>;
|
|
67
|
+
export interface DataFlushResult {
|
|
68
|
+
readonly accepted: number;
|
|
69
|
+
readonly duplicate: number;
|
|
70
|
+
readonly quarantined: number;
|
|
71
|
+
readonly rejected: number;
|
|
72
|
+
readonly retryable: number;
|
|
73
|
+
readonly remaining: number;
|
|
74
|
+
readonly outcomes: readonly DataFlushOutcome[];
|
|
75
|
+
readonly acceptedThroughSequence?: number;
|
|
76
|
+
readonly retryAt?: string;
|
|
77
|
+
}
|
|
78
|
+
export type DataErrorCode = "request.cancelled" | "request.timeout" | "network.failed" | "internal.failed" | "data.event_invalid" | "data.event_in_future" | "data.event_too_old" | "data.payload_too_large" | "data.outbox_full" | "data.capture_failed" | "data.delivery_expired" | "data.protocol_rejected";
|
|
79
|
+
export interface DataApi {
|
|
80
|
+
capture<TProperties extends object>(event: EventKey<TProperties>, ...args: keyof TProperties extends never ? readonly [properties?: TProperties] : readonly [properties: TProperties]): Promise<KuafuResult<DataCaptureReceipt, DataErrorCode>>;
|
|
81
|
+
flush(options?: {
|
|
82
|
+
readonly timeoutMs?: number;
|
|
83
|
+
readonly signal?: AbortSignal;
|
|
84
|
+
}): Promise<KuafuResult<DataFlushResult, DataErrorCode>>;
|
|
85
|
+
}
|
|
86
|
+
export declare const Data: import("@kuafucloud/product-runtime-protocol").ServiceKey<DataApi>;
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { DataApi, DataErrorCode } from "@kuafucloud/data";
|
|
2
|
+
import { type RuntimeDataEventKey, type DataContextSnapshot, type CaptureEventV3, type DataDeliveryReceipt } from "@kuafucloud/data-domain";
|
|
3
|
+
type StoredCaptureEvent = CaptureEventV3 & Readonly<{
|
|
4
|
+
authorityScopeKey: string;
|
|
5
|
+
}>;
|
|
6
|
+
type Store = {
|
|
7
|
+
get<T>(key: string): Promise<T | null>;
|
|
8
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
type BackendResult = DataDeliveryReceipt;
|
|
11
|
+
type Backend = {
|
|
12
|
+
withOutboxLock<T>(operation: () => Promise<T>): Promise<T>;
|
|
13
|
+
prepare(input: {
|
|
14
|
+
readonly eventKey: string;
|
|
15
|
+
readonly properties: Readonly<Record<string, unknown>>;
|
|
16
|
+
readonly internalRuntime?: boolean;
|
|
17
|
+
}): Promise<{
|
|
18
|
+
readonly allowed: false;
|
|
19
|
+
readonly reason: "sampling" | "privacy_reset";
|
|
20
|
+
} | {
|
|
21
|
+
readonly allowed: true;
|
|
22
|
+
readonly event: StoredCaptureEvent;
|
|
23
|
+
readonly context: DataContextSnapshot;
|
|
24
|
+
}>;
|
|
25
|
+
validateScope(input: {
|
|
26
|
+
readonly authorityScopeKey: string;
|
|
27
|
+
readonly events: readonly StoredCaptureEvent[];
|
|
28
|
+
}): Promise<{
|
|
29
|
+
readonly active: true;
|
|
30
|
+
} | {
|
|
31
|
+
readonly active: false;
|
|
32
|
+
readonly reason: "privacy_reset";
|
|
33
|
+
}>;
|
|
34
|
+
send(batch: {
|
|
35
|
+
readonly deliveryId: string;
|
|
36
|
+
readonly memberEventIds: readonly string[];
|
|
37
|
+
readonly contexts: readonly DataContextSnapshot[];
|
|
38
|
+
readonly events: readonly StoredCaptureEvent[];
|
|
39
|
+
}, options?: {
|
|
40
|
+
readonly signal?: AbortSignal;
|
|
41
|
+
}): Promise<BackendResult>;
|
|
42
|
+
};
|
|
43
|
+
type Context = {
|
|
44
|
+
readonly backend: Backend;
|
|
45
|
+
readonly storage: {
|
|
46
|
+
durable(namespace: string): Store;
|
|
47
|
+
};
|
|
48
|
+
readonly diagnostics: {
|
|
49
|
+
write(input: unknown): void;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/** 五个 Runtime Variant 共用的 v3 Context/Event outbox;最终由每个 Variant 独立 bundle。 */
|
|
53
|
+
export declare function createDataService(context: Context): {
|
|
54
|
+
api: DataApi;
|
|
55
|
+
captureRuntimeEvent(eventKey: RuntimeDataEventKey): Promise<{
|
|
56
|
+
readonly ok: false;
|
|
57
|
+
readonly error: {
|
|
58
|
+
readonly code: DataErrorCode;
|
|
59
|
+
readonly message: string;
|
|
60
|
+
readonly retryable: boolean;
|
|
61
|
+
};
|
|
62
|
+
} | {
|
|
63
|
+
readonly ok: true;
|
|
64
|
+
readonly data: unknown;
|
|
65
|
+
}>;
|
|
66
|
+
start(): Promise<void>;
|
|
67
|
+
drain(input: {
|
|
68
|
+
readonly deadline: number;
|
|
69
|
+
readonly signal: AbortSignal;
|
|
70
|
+
}): Promise<void>;
|
|
71
|
+
stop(): Promise<void>;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"extensionId": "data",
|
|
4
|
+
"version": "0.1.1-alpha.1",
|
|
5
|
+
"entries": {
|
|
6
|
+
"facade": "./server",
|
|
7
|
+
"admin": "./admin",
|
|
8
|
+
"simulation": "./simulation"
|
|
9
|
+
},
|
|
10
|
+
"deploymentArtifact": {
|
|
11
|
+
"product": "extensions/data",
|
|
12
|
+
"version": "0.1.1-alpha.1",
|
|
13
|
+
"source": {
|
|
14
|
+
"platformInstanceId": "prod",
|
|
15
|
+
"projectId": "10000",
|
|
16
|
+
"repositoryId": "github-1472078778"
|
|
17
|
+
},
|
|
18
|
+
"manifest": "release-product.manifest.json",
|
|
19
|
+
"digest": "sha256:e3892bc08bfd815dc6fe7951083bbf9cc1625bd3f518800259e43254d21d1c65",
|
|
20
|
+
"serverDigest": "sha256:972058d48a718a66b60817444f2b3157622ef915e9adb16031bd85b61734f704",
|
|
21
|
+
"adminDigest": "sha256:b9fa25a311aba9109f0fec87af68d5ee3798607ed91670a69d51da67fcde34e0"
|
|
22
|
+
},
|
|
23
|
+
"operations": [
|
|
24
|
+
{
|
|
25
|
+
"operationId": "op.data.events.72e5357d9174f8e9",
|
|
26
|
+
"method": "POST",
|
|
27
|
+
"path": "/events",
|
|
28
|
+
"clientAudience": "runtime"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"serviceModules": [
|
|
32
|
+
{
|
|
33
|
+
"serviceId": "data",
|
|
34
|
+
"runtimeId": "app-simulator",
|
|
35
|
+
"entry": "./runtime-services/app-simulator",
|
|
36
|
+
"config": "./runtime-services/app-simulator/config",
|
|
37
|
+
"client": {
|
|
38
|
+
"packageName": "@kuafucloud/data",
|
|
39
|
+
"version": "0.1.1-alpha.1",
|
|
40
|
+
"exportPath": "."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"serviceId": "data",
|
|
45
|
+
"runtimeId": "app",
|
|
46
|
+
"entry": "./runtime-services/app",
|
|
47
|
+
"config": "./runtime-services/app/config",
|
|
48
|
+
"client": {
|
|
49
|
+
"packageName": "@kuafucloud/data",
|
|
50
|
+
"version": "0.1.1-alpha.1",
|
|
51
|
+
"exportPath": "."
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"serviceId": "data",
|
|
56
|
+
"runtimeId": "mini-program-simulator",
|
|
57
|
+
"entry": "./runtime-services/mini-program-simulator",
|
|
58
|
+
"config": "./runtime-services/mini-program-simulator/config",
|
|
59
|
+
"client": {
|
|
60
|
+
"packageName": "@kuafucloud/data",
|
|
61
|
+
"version": "0.1.1-alpha.1",
|
|
62
|
+
"exportPath": "."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"serviceId": "data",
|
|
67
|
+
"runtimeId": "mini-program",
|
|
68
|
+
"entry": "./runtime-services/mini-program",
|
|
69
|
+
"config": "./runtime-services/mini-program/config",
|
|
70
|
+
"client": {
|
|
71
|
+
"packageName": "@kuafucloud/data",
|
|
72
|
+
"version": "0.1.1-alpha.1",
|
|
73
|
+
"exportPath": "."
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"serviceId": "data",
|
|
78
|
+
"runtimeId": "site",
|
|
79
|
+
"entry": "./runtime-services/site",
|
|
80
|
+
"config": "./runtime-services/site/config",
|
|
81
|
+
"client": {
|
|
82
|
+
"packageName": "@kuafucloud/data",
|
|
83
|
+
"version": "0.1.1-alpha.1",
|
|
84
|
+
"exportPath": "."
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"files": [
|
|
89
|
+
{
|
|
90
|
+
"path": "dist/admin/admin/extension.zip",
|
|
91
|
+
"size": 288626,
|
|
92
|
+
"digest": "sha256:cfe39933cdda8ce7c3dd9f3815ac56d30fae31acbe1aeb7d210e025f24f5c773"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"path": "dist/admin/index.d.ts",
|
|
96
|
+
"size": 79,
|
|
97
|
+
"digest": "sha256:d2fe718747182f6f97569732fd6bfb674f42dcc5b140572ac3c662b9a8b5aed1"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "dist/admin/index.js",
|
|
101
|
+
"size": 147,
|
|
102
|
+
"digest": "sha256:070d9ee28392b98f75ddc47dd86b736615f47869d422aa2f155709f67fec99e2"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "dist/admin/meta/admin.json",
|
|
106
|
+
"size": 1390,
|
|
107
|
+
"digest": "sha256:dbfdd362e16ed1f8cad28cd26119878eaf5b5474dabf94721c4932abbf05e5df"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"path": "dist/admin/meta/extension-manifest.json",
|
|
111
|
+
"size": 10203,
|
|
112
|
+
"digest": "sha256:a5e29c6077551c52cbe308f1f6354ea24afba4d4143b08cf6a4b260a31c31322"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"path": "dist/facade/index.d.ts",
|
|
116
|
+
"size": 10185,
|
|
117
|
+
"digest": "sha256:0ca0dd4644e83d99ace5e2d136b23e3c3d7a3ace743139b8d03ec6f3433e0789"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "dist/facade/index.js",
|
|
121
|
+
"size": 476,
|
|
122
|
+
"digest": "sha256:d800cc27efd931d0e8f8431fba44dab325f21d3eb535c6018975642783972991"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"path": "dist/public/index.js",
|
|
126
|
+
"size": 3767,
|
|
127
|
+
"digest": "sha256:1e35208b170146bcf44577fed56d713fafc67f90441e52130f7e3b15901520e2"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"path": "dist/public/runtime-services/core/index.js",
|
|
131
|
+
"size": 18179,
|
|
132
|
+
"digest": "sha256:038b8b706638fe6249a3e1f8ffe6230b2581cffae8ae7ad80bbbe482e728584d"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"path": "dist/runtime-services/app-simulator/index.js",
|
|
136
|
+
"size": 18478,
|
|
137
|
+
"digest": "sha256:119aad9cc6e5642345bf5739963fd3efac272d3880353798cc53e4f62e742218"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"path": "dist/runtime-services/app-simulator/service-module.config.json",
|
|
141
|
+
"size": 248,
|
|
142
|
+
"digest": "sha256:ecb9f1822fbd4f3c7a6243114df4693c3540d02c39a46a49420c1e8013514453"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"path": "dist/runtime-services/app/index.js",
|
|
146
|
+
"size": 18478,
|
|
147
|
+
"digest": "sha256:119aad9cc6e5642345bf5739963fd3efac272d3880353798cc53e4f62e742218"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"path": "dist/runtime-services/app/service-module.config.json",
|
|
151
|
+
"size": 282,
|
|
152
|
+
"digest": "sha256:f5340611aec30dfe6a9cdba82a1dce3584017478b0c00e493c90bed118b12ccb"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"path": "dist/runtime-services/mini-program-simulator/index.js",
|
|
156
|
+
"size": 18487,
|
|
157
|
+
"digest": "sha256:0ad0dfe0ba42310237f64ed43ab35bd0d3fbce3f0f1b605b8c1be2ea10fc6e7d"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"path": "dist/runtime-services/mini-program-simulator/service-module.config.json",
|
|
161
|
+
"size": 257,
|
|
162
|
+
"digest": "sha256:6f34aed67d9f7d4fc8174b60a9ab9d226bbe951ef65478a5a9d307d95bc72314"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"path": "dist/runtime-services/mini-program/index.js",
|
|
166
|
+
"size": 18487,
|
|
167
|
+
"digest": "sha256:0ad0dfe0ba42310237f64ed43ab35bd0d3fbce3f0f1b605b8c1be2ea10fc6e7d"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"path": "dist/runtime-services/mini-program/service-module.config.json",
|
|
171
|
+
"size": 250,
|
|
172
|
+
"digest": "sha256:375fb0dca44c8cb078c5d32800378b2dd5c929e81df5011816d8b71f87ac9233"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"path": "dist/runtime-services/site/index.js",
|
|
176
|
+
"size": 18479,
|
|
177
|
+
"digest": "sha256:6b933730b534bf400a4378ccf7c4e1ac3dc22565fe65d6aaa43915497a024582"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"path": "dist/runtime-services/site/service-module.config.json",
|
|
181
|
+
"size": 239,
|
|
182
|
+
"digest": "sha256:13eafd92593112b3fec82ba4d8dac627bd403c049535af0a4cdd5a7995c8e969"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"path": "dist/simulation/artifact/meta/database.json",
|
|
186
|
+
"size": 1827,
|
|
187
|
+
"digest": "sha256:027c723d230a4d7ae1e53f135522d3bb3f467eb7d3a63a57f6d7c33af3306ef9"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"path": "dist/simulation/artifact/meta/manifest.json",
|
|
191
|
+
"size": 8158,
|
|
192
|
+
"digest": "sha256:d35213a5b4bf1690a93aa12ada58c32092f1589fdcc24edf296ae47a6106b9d7"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"path": "dist/simulation/artifact/meta/permissions.json",
|
|
196
|
+
"size": 2044,
|
|
197
|
+
"digest": "sha256:945fae4033b4d6cd022ee94a561ed7f7710d28b980385f667f7eb824fa514a5f"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"path": "dist/simulation/artifact/meta/runtime-meta.json",
|
|
201
|
+
"size": 646,
|
|
202
|
+
"digest": "sha256:321f67aabe6632378acbd316d0dd0e7d41ea5989b8ea67c466ef42015900716e"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"path": "dist/simulation/artifact/meta/schema.json",
|
|
206
|
+
"size": 1782,
|
|
207
|
+
"digest": "sha256:6461865b294f2e6a8a9b8d1984b46b50e854af0bf61458a3506a3b6c1c7ff4f1"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"path": "dist/simulation/artifact/server/worker/index.js",
|
|
211
|
+
"size": 352552,
|
|
212
|
+
"digest": "sha256:12c8733b0d749bba4bb61a68651d7d959a3e6d2d7b93e08529b2375ed5b386f3"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"path": "dist/simulation/artifact/server/worker/monitoring-contract.json",
|
|
216
|
+
"size": 234,
|
|
217
|
+
"digest": "sha256:5428c67703e3b7a1a43f5f2b21544ecc413e236b4a72dcd9d829ef78141741a2"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"path": "dist/simulation/index.d.ts",
|
|
221
|
+
"size": 40,
|
|
222
|
+
"digest": "sha256:0f63b2023e6178fb0c8460ca6941dae1bdc79cdc0e1f69a2b7668fa0b4e8698d"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"path": "dist/simulation/index.js",
|
|
226
|
+
"size": 69,
|
|
227
|
+
"digest": "sha256:1e6530638fed98c756c299f91780d9257bd9d2b4f082922c51dd2cf92838f7f8"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"path": "dist/types/client/index.d.ts",
|
|
231
|
+
"size": 4001,
|
|
232
|
+
"digest": "sha256:a318f48c204153c2ca803b3add9c753883d0bac590be276378aee7ed0ccc596f"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"path": "dist/types/runtime-services/app-simulator/index.d.ts",
|
|
236
|
+
"size": 219,
|
|
237
|
+
"digest": "sha256:92927374d1d8b785090bddc4316c5e0f33763b0a9362ff23f411e6b3948d0d63"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"path": "dist/types/runtime-services/app/index.d.ts",
|
|
241
|
+
"size": 219,
|
|
242
|
+
"digest": "sha256:92927374d1d8b785090bddc4316c5e0f33763b0a9362ff23f411e6b3948d0d63"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"path": "dist/types/runtime-services/core/index.d.ts",
|
|
246
|
+
"size": 2421,
|
|
247
|
+
"digest": "sha256:870531658a899ed87b08cbb936c4867ac745e9f3378d0038353eacec68a6ad2a"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"path": "dist/types/runtime-services/mini-program-simulator/index.d.ts",
|
|
251
|
+
"size": 219,
|
|
252
|
+
"digest": "sha256:92927374d1d8b785090bddc4316c5e0f33763b0a9362ff23f411e6b3948d0d63"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"path": "dist/types/runtime-services/mini-program/index.d.ts",
|
|
256
|
+
"size": 219,
|
|
257
|
+
"digest": "sha256:92927374d1d8b785090bddc4316c5e0f33763b0a9362ff23f411e6b3948d0d63"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"path": "dist/types/runtime-services/site/index.d.ts",
|
|
261
|
+
"size": 219,
|
|
262
|
+
"digest": "sha256:92927374d1d8b785090bddc4316c5e0f33763b0a9362ff23f411e6b3948d0d63"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,101 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuafucloud/data",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1-alpha.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"main": "./dist/public/index.js",
|
|
7
|
+
"types": "./dist/types/client/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"extension-manifest.json"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
"./server": {
|
|
14
|
+
"types": "./dist/facade/index.d.ts",
|
|
15
|
+
"import": "./dist/facade/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./admin": {
|
|
18
|
+
"types": "./dist/admin/index.d.ts",
|
|
19
|
+
"import": "./dist/admin/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./simulation": {
|
|
22
|
+
"types": "./dist/simulation/index.d.ts",
|
|
23
|
+
"import": "./dist/simulation/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./manifest": "./extension-manifest.json",
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
"./runtime-services/app-simulator": {
|
|
28
|
+
"types": "./dist/types/runtime-services/app-simulator/index.d.ts",
|
|
29
|
+
"import": "./dist/runtime-services/app-simulator/index.js",
|
|
30
|
+
"default": "./dist/runtime-services/app-simulator/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./runtime-services/app-simulator/config": "./dist/runtime-services/app-simulator/service-module.config.json",
|
|
33
|
+
"./runtime-services/app": {
|
|
34
|
+
"types": "./dist/types/runtime-services/app/index.d.ts",
|
|
35
|
+
"import": "./dist/runtime-services/app/index.js",
|
|
36
|
+
"default": "./dist/runtime-services/app/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./runtime-services/app/config": "./dist/runtime-services/app/service-module.config.json",
|
|
39
|
+
"./runtime-services/mini-program-simulator": {
|
|
40
|
+
"types": "./dist/types/runtime-services/mini-program-simulator/index.d.ts",
|
|
41
|
+
"import": "./dist/runtime-services/mini-program-simulator/index.js",
|
|
42
|
+
"default": "./dist/runtime-services/mini-program-simulator/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./runtime-services/mini-program-simulator/config": "./dist/runtime-services/mini-program-simulator/service-module.config.json",
|
|
45
|
+
"./runtime-services/mini-program": {
|
|
46
|
+
"types": "./dist/types/runtime-services/mini-program/index.d.ts",
|
|
47
|
+
"import": "./dist/runtime-services/mini-program/index.js",
|
|
48
|
+
"default": "./dist/runtime-services/mini-program/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./runtime-services/mini-program/config": "./dist/runtime-services/mini-program/service-module.config.json",
|
|
51
|
+
"./runtime-services/site": {
|
|
52
|
+
"types": "./dist/types/runtime-services/site/index.d.ts",
|
|
53
|
+
"import": "./dist/runtime-services/site/index.js",
|
|
54
|
+
"default": "./dist/runtime-services/site/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./runtime-services/site/config": "./dist/runtime-services/site/service-module.config.json",
|
|
57
|
+
"./runtime-services/core": {
|
|
58
|
+
"types": "./dist/types/runtime-services/core/index.d.ts",
|
|
59
|
+
"import": "./dist/public/runtime-services/core/index.js",
|
|
60
|
+
"default": "./dist/public/runtime-services/core/index.js"
|
|
61
|
+
},
|
|
62
|
+
".": {
|
|
63
|
+
"types": "./dist/types/client/index.d.ts",
|
|
64
|
+
"import": "./dist/public/index.js",
|
|
65
|
+
"default": "./dist/public/index.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@kuafucloud/data-domain": "0.1.2-alpha.3",
|
|
70
|
+
"@kuafucloud/product-runtime-protocol": "0.2.2-alpha.2"
|
|
71
|
+
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"@kuafucloud/app-runtime": "0.2.2-alpha.2",
|
|
74
|
+
"@kuafucloud/mini-program-runtime": "0.2.2-alpha.2",
|
|
75
|
+
"@kuafucloud/site-runtime": "0.2.2-alpha.2"
|
|
76
|
+
},
|
|
77
|
+
"peerDependenciesMeta": {
|
|
78
|
+
"@kuafucloud/app-runtime": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"@kuafucloud/mini-program-runtime": {
|
|
82
|
+
"optional": true
|
|
83
|
+
},
|
|
84
|
+
"@kuafucloud/site-runtime": {
|
|
85
|
+
"optional": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"kuafucloud": {
|
|
89
|
+
"classification": "publishable",
|
|
90
|
+
"kind": "extension",
|
|
91
|
+
"extensionId": "data"
|
|
92
|
+
},
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"access": "public",
|
|
95
|
+
"registry": "https://registry.npmjs.org/"
|
|
96
|
+
},
|
|
97
|
+
"repository": {
|
|
98
|
+
"type": "git",
|
|
99
|
+
"url": "git+https://github.com/kuafucloud/kuafu-npm-publisher.git"
|
|
100
|
+
}
|
|
101
|
+
}
|
package/README.md
DELETED