@tbox.cn/app-contracts-mall 0.13.1 → 0.13.2
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/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
pnpm add @tbox.cn/app-contracts-mall
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
发布包同时提供两种消费形态:直接安装使用 `dist` 编译产物;模板中的 `@app/contracts-mall` shim 默认转发发布包,`tbox-
|
|
11
|
+
发布包同时提供两种消费形态:直接安装使用 `dist` 编译产物;模板中的 `@app/contracts-mall` shim 默认转发发布包,`npx --yes @tbox.cn/app-cli module add` 自动依赖本包时将其替换为本地源码包。显式使用 `--mode sdk` 时仍保持发布态消费。
|
|
12
12
|
|
|
13
13
|
## 入口
|
|
14
14
|
|
|
@@ -4,8 +4,8 @@ import type { Identity, RequestContext } from '@tbox.cn/app-contracts';
|
|
|
4
4
|
/**
|
|
5
5
|
* 会员域 Port(每服务槽一接口):账户 / 资料 / 卡面 / 权益(含积分) / 入会 五业务 Port +
|
|
6
6
|
* 跨模块工厂契约。结构类型子集接口——模块完整实现 extends 本接口,消费方仅依赖契约包。
|
|
7
|
-
* 自定义 API 接入:每个 Port = 你的后端需提供的一组能力(经 provider-custom
|
|
8
|
-
*
|
|
7
|
+
* 自定义 API 接入:每个 Port = 你的后端需提供的一组能力(经 provider-custom 落地,指引:
|
|
8
|
+
* npx --yes @tbox.cn/app-cli skills get provider-custom)。
|
|
9
9
|
*/
|
|
10
10
|
export declare const MEMBER_ACCOUNT_SERVICE = "member.account";
|
|
11
11
|
export declare const MEMBER_PROFILE_SERVICE = "member.profile";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 停车域 Port(查询 / 缴费 / 车辆 三槽各一 Port):结算写全部收口进 ParkingPaymentPort
|
|
3
3
|
* (厂商真实支付链)。自定义 API 接入:每个 Port = 你的后端需提供的一组能力
|
|
4
|
-
* (经 provider-custom
|
|
4
|
+
* (经 provider-custom 落地,指引:npx --yes @tbox.cn/app-cli skills get provider-custom)。
|
|
5
5
|
*/
|
|
6
6
|
import type { MallScope } from '../scope';
|
|
7
7
|
import type { RequestContext } from '@tbox.cn/app-contracts';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 营销域 Port(查询三 Port + 领取写一 Port,按读写边界拆分)——自定义 API 接入:每个
|
|
3
|
-
* Port = 你的后端需提供的一组能力(经 provider-custom
|
|
3
|
+
* Port = 你的后端需提供的一组能力(经 provider-custom 落地,指引:
|
|
4
|
+
* npx --yes @tbox.cn/app-cli skills get provider-custom)。
|
|
4
5
|
* 结构类型子集接口——模块完整实现 extends 本接口,消费方仅依赖契约包。
|
|
5
6
|
* C 端主体经 ctx.requestContext.credentials;externalMemberRef 由消费方经 member 域
|
|
6
7
|
* 状态服务解析('member.status' 判定 + externalMemberRefOf 取值)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-contracts-mall",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈领域契约(TIER1,types + runtime):Port 接口 + MallEventMap + 领域 DTO + scope/装配器运行时。",
|
|
6
6
|
"exports": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tbox.cn/app-contracts": "0.13.
|
|
32
|
+
"@tbox.cn/app-contracts": "0.13.3",
|
|
33
33
|
"zod": "3.25.76"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
package/src/services/member.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type { Identity, RequestContext } from '@tbox.cn/app-contracts';
|
|
|
5
5
|
/**
|
|
6
6
|
* 会员域 Port(每服务槽一接口):账户 / 资料 / 卡面 / 权益(含积分) / 入会 五业务 Port +
|
|
7
7
|
* 跨模块工厂契约。结构类型子集接口——模块完整实现 extends 本接口,消费方仅依赖契约包。
|
|
8
|
-
* 自定义 API 接入:每个 Port = 你的后端需提供的一组能力(经 provider-custom
|
|
9
|
-
*
|
|
8
|
+
* 自定义 API 接入:每个 Port = 你的后端需提供的一组能力(经 provider-custom 落地,指引:
|
|
9
|
+
* npx --yes @tbox.cn/app-cli skills get provider-custom)。
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
// ===== 会员域 service slot 词汇(与 service-slots.json 同锁) =====
|
package/src/services/parking.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 停车域 Port(查询 / 缴费 / 车辆 三槽各一 Port):结算写全部收口进 ParkingPaymentPort
|
|
3
3
|
* (厂商真实支付链)。自定义 API 接入:每个 Port = 你的后端需提供的一组能力
|
|
4
|
-
* (经 provider-custom
|
|
4
|
+
* (经 provider-custom 落地,指引:npx --yes @tbox.cn/app-cli skills get provider-custom)。
|
|
5
5
|
*/
|
|
6
6
|
import type { MallScope } from '../scope';
|
|
7
7
|
import type { RequestContext } from '@tbox.cn/app-contracts';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 营销域 Port(查询三 Port + 领取写一 Port,按读写边界拆分)——自定义 API 接入:每个
|
|
3
|
-
* Port = 你的后端需提供的一组能力(经 provider-custom
|
|
3
|
+
* Port = 你的后端需提供的一组能力(经 provider-custom 落地,指引:
|
|
4
|
+
* npx --yes @tbox.cn/app-cli skills get provider-custom)。
|
|
4
5
|
* 结构类型子集接口——模块完整实现 extends 本接口,消费方仅依赖契约包。
|
|
5
6
|
* C 端主体经 ctx.requestContext.credentials;externalMemberRef 由消费方经 member 域
|
|
6
7
|
* 状态服务解析('member.status' 判定 + externalMemberRefOf 取值)。
|