@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perk-net/perk-pushplus-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "pushplus(推送加) 官方接口 JavaScript/TypeScript SDK,可在 Node.js 与浏览器中使用",
5
5
  "keywords": [
6
6
  "pushplus",
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.0`,
90
+ userAgent: cfg.userAgent ?? `@perk-net/perk-pushplus-sdk/1.1.1`,
91
91
  };
92
92
  }
package/src/enums.ts CHANGED
@@ -46,6 +46,10 @@ export enum Template {
46
46
  PAY = 'pay',
47
47
  /** 表单格式模板;发送时需传 pushId(表单编码)。 */
48
48
  FORM = 'form',
49
+ /** 文档格式模板(push 文档);发送时需传 pushId。 */
50
+ DOC = 'doc',
51
+ /** 表格格式模板(push 表格);发送时需传 pushId。 */
52
+ EXCEL = 'excel',
49
53
  }
50
54
 
51
55
  /**
package/src/index.ts CHANGED
@@ -58,6 +58,7 @@ export type {
58
58
  FriendInfo,
59
59
  AccessKeyResult,
60
60
  UserInfo,
61
+ VipInfo,
61
62
  SendCount,
62
63
  UserLimitTime,
63
64
  MessageItem,
package/src/models.ts CHANGED
@@ -56,7 +56,7 @@ export interface SendRequest {
56
56
  to?: string;
57
57
  /** 预处理编码(仅会员)。 */
58
58
  pre?: string;
59
- /** push 表单编码;template 为 form 时必传。 */
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 表单编码;template 为 form 时必传。 */
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 {