@perk-net/perk-pushplus-sdk 1.1.0 → 1.1.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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.global.js +3 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +1 -1
- package/src/enums.ts +4 -0
- package/src/index.ts +1 -0
- package/src/models.ts +14 -2
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -87,6 +87,6 @@ export function resolveConfig(input: PushPlusConfig | undefined | null): Resolve
|
|
|
87
87
|
logRequest: cfg.logRequest ?? false,
|
|
88
88
|
rateLimitGuardEnabled: cfg.rateLimitGuardEnabled ?? true,
|
|
89
89
|
rateLimitCooldownMs: cfg.rateLimitCooldownMs ?? 0,
|
|
90
|
-
userAgent: cfg.userAgent ?? `@perk-net/perk-pushplus-sdk/1.1.
|
|
90
|
+
userAgent: cfg.userAgent ?? `@perk-net/perk-pushplus-sdk/1.1.1`,
|
|
91
91
|
};
|
|
92
92
|
}
|
package/src/enums.ts
CHANGED
package/src/index.ts
CHANGED
package/src/models.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface SendRequest {
|
|
|
56
56
|
to?: string;
|
|
57
57
|
/** 预处理编码(仅会员)。 */
|
|
58
58
|
pre?: string;
|
|
59
|
-
/** push
|
|
59
|
+
/** push 编码;template 为 form/doc/excel 时必传。 */
|
|
60
60
|
pushId?: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -107,7 +107,7 @@ export interface BatchSendRequest {
|
|
|
107
107
|
timestamp?: number;
|
|
108
108
|
to?: string;
|
|
109
109
|
pre?: string;
|
|
110
|
-
/** push
|
|
110
|
+
/** push 编码;template 为 form/doc/excel 时必传。 */
|
|
111
111
|
pushId?: string;
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -239,6 +239,14 @@ export interface AccessKeyResult {
|
|
|
239
239
|
|
|
240
240
|
/* ============================== 开放接口 - user ============================== */
|
|
241
241
|
|
|
242
|
+
/** 会员信息。 */
|
|
243
|
+
export interface VipInfo {
|
|
244
|
+
/** 是否会员;0-否,1-是。 */
|
|
245
|
+
isVip?: number;
|
|
246
|
+
/** 会员到期日。 */
|
|
247
|
+
lastDay?: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
242
250
|
export interface UserInfo {
|
|
243
251
|
openId?: string;
|
|
244
252
|
unionId?: string;
|
|
@@ -251,6 +259,10 @@ export interface UserInfo {
|
|
|
251
259
|
emailStatus?: number;
|
|
252
260
|
birthday?: string;
|
|
253
261
|
points?: number;
|
|
262
|
+
/** 会员信息。 */
|
|
263
|
+
vipInfo?: VipInfo;
|
|
264
|
+
/** 实名认证状态;0-未实名,1-已实名。 */
|
|
265
|
+
verifyStatus?: number;
|
|
254
266
|
}
|
|
255
267
|
|
|
256
268
|
export interface SendCount {
|