coa-wx-isv
Version:
一个轻量的微信SDK服务商版 for Node.js
606 lines (605 loc) • 15.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const wxIsvTemplateDraft = {
createTime: 1574520305,
userVersion: 'company1.0.0.2.d1',
userDesc: 'undefined 在 2019年11月23日晚上10点44分 提交上传',
templateId: 0,
sourceMiniprogramAppid: 'wx37c6dc8f6c4f36d8',
sourceMiniprogram: 'wuhaodes',
developer: '游翼行空',
createAt: 1574520305000,
};
const wxIsvTemplateItem = {
createTime: 1574521537,
userVersion: 'company1.v0.0.3.d0',
userDesc: 'undefined 在 2019年11月23日晚上11点05分 提交上传',
draftId: 3,
sourceMiniprogramAppid: 'wx37c6dc8f6c4f36d8',
sourceMiniprogram: 'wuhaodes',
developer: '游翼行空',
createAt: 1574521537000,
};
const wxIsvAuthAppInfo = {
nickName: 'GlobalOnline',
nickname: 'GlobalOnline',
headImg: 'http://wx.qlogo.cn/mmopen/wJibWkqN1bUOFG4jM2iagmicaSrtPx6hSzC6y18BLlkXKGTujpO9uvombpB93036Iqxucewm4uNAIQbmfMtgL3cHIbmJGYj4BDa/0',
serviceTypeInfo: { id: 0 },
verifyTypeInfo: { id: -1 },
userName: 'gh_6bcdd8bb8979',
alias: '',
qrcodeUrl: 'http://mmbiz.qpic.cn/mmbiz_jpg/Cb87DbpM22ShERPmncaEWlEnOujXaH55nkbc6ia2z2UN5ekq8rclaSiaZwcribicRXpZ1NZmRBPhNBjILSbtD2Otgw/0',
businessInfo: {
openPay: 0,
openShake: 0,
openScan: 0,
openCard: 0,
openStore: 0,
},
idc: 1,
principalName: '个人',
signature: 'RPG game. Create your charactor, Then keep growing up.',
miniProgramInfo: {
network: {
requestDomain: [],
wsRequestDomain: [],
uploadDomain: [],
downloadDomain: [],
bizDomain: [],
udpDomain: [],
},
categories: [[Object]],
visitStatus: 0,
},
};
const wxIsvStatVisitTrend = {
list: [
{
refDate: '20191214',
sessionCnt: 4,
visitPv: 18,
visitUv: 3,
visitUvNew: 0,
stayTimeUv: 102.6667,
stayTimeSession: 77,
visitDepth: 2.25,
},
],
};
const wxIsvStatDailySummary = {
list: [
{
refDate: '20170313',
visitTotal: 391,
sharePv: 572,
shareUv: 383,
},
],
};
const wxIsvStatDailyRetain = {
refDate: '20170313',
visitUvNew: [{ key: 0, value: 5464 }],
visitUv: [{ key: 0, value: 55500 }],
};
const wxIsvConfig = {
appId: '',
appSecret: '',
appToken: '',
wxSmConfig: {
appId: '',
secret: '',
}
};
const wxIsvNormalResponse = {
errcode: 0,
errmsg: 'ok',
};
const wxIsvReleasePageList = {
errcode: 0,
errmsg: 'ok',
pageList: ['index', 'page/list', 'page/detail'],
};
const wxIsvReleaseAuditSubmit = {
errcode: 0,
errmsg: 'ok',
auditid: 1234567,
};
const wxIsvReleaseLatestAudit = {
errcode: 0,
errmsg: 'ok',
auditid: '1234567',
status: 1,
reason: '帐号信息不合规范',
screenShot: 'xx|yy|zz',
};
const wxIsvReleaseSupportVersion = {
errcode: 0,
errmsg: 'ok',
nowVersion: '1.0.0',
uvInfo: {
items: [
{
percentage: 0,
version: '1.0.0',
},
{
percentage: 0,
version: '1.0.1',
},
{
percentage: 0,
version: '1.1.0',
},
],
},
};
const wxIsvReleaseQuota = {
errcode: 0,
errmsg: 'ok',
rest: 0,
limit: 0,
speedupRest: 0,
speedupLimit: 0,
};
const wxIsvTesterBind = {
errcode: 0,
errmsg: 'ok',
userstr: 'xxxxxxxxx',
};
const wxIsvTesterList = {
errcode: 0,
errmsg: 'ok',
members: [
{
userstr: 'xxxxxxxx',
},
{
userstr: 'yyyyyyyy',
},
],
};
const wxIsvCategoryAudit = {
errcode: 0,
errmsg: 'ok',
categoryList: [
{
firstClass: '工具',
secondClass: '备忘录',
firstId: 1,
secondId: 2,
},
{
firstClass: '教育',
secondClass: '学历教育',
thirdClass: '高等',
firstId: 3,
secondId: 4,
thirdId: 5,
},
],
};
const wxIsvDomainModify = {
errcode: 0,
errmsg: 'ok',
requestdomain: ['https://www.qq.com', 'https://www.qq.com'],
wsrequestdomain: ['wss://www.qq.com', 'wss://www.qq.com'],
uploaddomain: ['https://www.qq.com', 'https://www.qq.com'],
downloaddomain: ['https://www.qq.com', 'https://www.qq.com'],
};
const wxIsvAuthInfo = {
authorizerAppid: 'wxf8b4f85f3a794e77',
authorizerAccessToken: 'QXjUqNqfYVH0yBE1iI_7vuN_9gQbpjfK7hYwJ3P7xOa88a89-Aga5x1NMYJyB8G2yKt1KCl0nPC3W9GJzw0Zzq_dBxc8pxIGUNi_bFes0qM',
expiresIn: 7200,
authorizerRefreshToken: 'dTo-YCXPL4llX-u1W1pPpnp8Hgm4wpJtlR6iV0doKdY',
funcInfo: [
{
funcscopeCategory: {
id: 1,
},
},
{
funcscopeCategory: {
id: 2,
},
},
{
funcscopeCategory: {
id: 3,
},
},
],
};
const wxIsvAuthAccountInfo = {
errcode: 0,
errmsg: 'ok',
appid: 'wxdc685123d955453',
accountType: 2,
principalType: 1,
principalName: '深圳市腾讯计算机系统有限公司',
realnameStatus: 1,
wxVerifyInfo: {
qualificationVerify: true,
namingVerify: true,
annualReview: true,
annualReviewBeginTime: 1550490981,
annualReviewEndTime: 1558266981,
},
signatureInfo: {
signature: '功能介绍',
modifyUsedCount: 1,
modifyQuota: 5,
},
headImageInfo: {
headImageUrl: 'http://mmbiz.qpic.cn/mmbiz/a5icZrUmbV8p5jb6RZ8aYfjfS2AVle8URwBt8QIu6XbGewB9wiaWYWkPwq4R7pfdsFibuLkic16UcxDSNYtB8HnC1Q/0',
modifyUsedCount: 3,
modifyQuota: 5,
},
};
const wxIsvAuthRefreshInfo = {
authorizerAccessToken: 'some-access-token',
expiresIn: 7200,
authorizerRefreshToken: 'refresh_token_value',
};
const wxIsvExpressBatchGetOrder = [
{
orderId: '01234567890123456789',
deliveryId: 'SF',
waybillId: '123456789',
},
{
orderId: '01234567890123456789',
deliveryId: 'SF',
waybillId: '123456789',
},
];
const wxIsvExpressBatchGetOrderResponse = {
orderList: [
{
errcode: 0,
errmsg: 'ok',
orderId: '01234567890123456789',
deliveryId: 'SF',
waybillId: '123456789',
printHtml: 'jh7DjipP4ul4CQYUh69cniskrQZuOPwa1inAbXIqKbU0t71c0s65Au54cdWBZW0QJY4LYeofdM',
waybillData: [
{
key: 'SF_bagAddr',
value: '广州',
},
{
key: 'SF_mark',
value: '101- 07-03 509',
},
],
orderStatus: 0,
},
],
};
const wxIsvAddOrderParam = {
addSource: 0,
orderId: '01234567890123456789',
openid: 'oABC123456',
deliveryId: 'SF',
bizId: 'xyz',
customRemark: '易碎物品',
sender: {
name: '张三',
tel: '020-88888888',
mobile: '18666666666',
company: '公司名',
postCode: '123456',
country: '中国',
province: '广东省',
city: '广州市',
area: '海珠区',
address: 'XX路XX号XX大厦XX栋XX',
},
receiver: {
name: '王小蒙',
tel: '020-77777777',
mobile: '18610000000',
company: '公司名',
postCode: '654321',
country: '中国',
province: '广东省',
city: '广州市',
area: '天河区',
address: 'XX路XX号XX大厦XX栋XX',
},
shop: {
wxaPath: '/index/index?from=waybill&id=01234567890123456789',
imgUrl: 'https://mmbiz.qpic.cn/mmbiz_png/OiaFLUqewuIDNQnTiaCInIG8ibdosYHhQHPbXJUrqYSNIcBL60vo4LIjlcoNG1QPkeH5GWWEB41Ny895CokeAah8A/640',
goodsName: '微信气泡狗抱枕&微信气泡狗钥匙扣',
goodsCount: 2,
},
cargo: {
count: 2,
weight: 5.5,
spaceX: 30.5,
spaceY: 20,
spaceZ: 20,
detailList: [
{
name: '微信气泡狗抱枕',
count: 1,
},
{
name: '微信气泡狗钥匙扣',
count: 1,
},
],
},
insured: {
useInsured: 1,
insuredValue: 10000,
},
service: {
serviceType: 0,
serviceName: '标准快递',
},
};
const wxIsvCancelOrderResponse = {
errcode: 0,
errmsg: 'ok',
deliveryResultcode: 0,
deliveryResultmsg: '',
};
const wxIsvGetAllAccountResponse = {
count: 1,
list: [
{
bizId: '123456789',
deliveryId: 'YUNDA',
createTime: 1555482786,
updateTime: 1556594799,
statusCode: 0,
alias: '',
remarkWrongMsg: '',
remarkContent: '',
quotaNum: 55,
quotaUpdateTime: 1556594799,
serviceType: [{ serviceType: 0, serviceName: '标准快递' }],
},
],
};
const wxIsvGetAllAccountDelivery = {
count: 7,
data: [
{
deliveryId: 'BEST',
deliveryName: '百世快递',
canUseCash: 1,
canGetQuota: 1,
cashBizId: '',
serviceType: [{ serviceType: 0, serviceName: '' }],
},
],
};
const wxIsvGetOrderResponse = {
printHtml: 'jh7DjipP4ul4CQYUh69cniskrQZuOPwa1inAbXIqKbU0t71c0s65Au54cdWBZW0QJY4LYeofdM',
waybillData: [
{
key: 'SF_bagAddr',
value: '广州',
},
{
key: 'SF_mark',
value: '101- 07-03 509',
},
],
deliveryId: 'SF',
waybillId: '123456',
orderId: '123456',
orderStatus: 0,
};
const wxIsvGetPathResponse = {
openid: 'OPENID',
deliveryId: 'SF',
waybillId: '12345678901234567890',
pathItemNum: 3,
pathItemList: [
{
actionTime: 1533052800,
actionType: 100001,
actionMsg: '快递员已成功取件',
},
],
};
const wxIsvGetAllPrinterResponse = {
count: 2,
openid: ['oABC', 'oXYZ'],
tagidList: ['123', '456'],
};
const wxIsvGetQuoatResponse = {
quotaNum: 210,
};
const wxIsvAddOrderResponse = {
orderId: '01234567890123456789',
waybillId: '123456789',
waybillData: [
{
key: 'SF_bagAddr',
value: '广州',
},
{
key: 'SF_mark',
value: '101- 07-03 509',
},
],
};
const wxIsvRawDeliveryErrorResponse = {
errcode: 9300501,
errmsg: 'delivery logic fail',
deliveryResultcode: 10002,
deliveryResultmsg: '客户密码不正确',
};
const wxIsvAddTemplateResponse = {
errmsg: 'ok',
errcode: 0,
priTmplId: '9Aw5ZV1j9xdWTFEkqCpZ7jWySL7aGN6rQom4gXINfJs',
};
const wxIsvTmplKeywordResponse = {
errcode: 0,
errmsg: 'ok',
data: [
{
kid: 1,
name: '物品名称',
example: '名称',
rule: 'thing',
},
],
};
const wxIsvTicketResponse = {
errcode: 0,
errmsg: 'ok',
ticket: 'bxLdikRXVbTPdHSM05e5u5sUoXNKd8-41ZO3MhKoyN5OfkWITDGgnr2fwJ0m9E8NYzWKVZvdVtaUgWvsdshFKA',
expiresIn: 7200,
};
const wxIsvMpShowItem = {
errcode: 0,
errmsg: 'ok',
canOpen: 1,
isOpen: 1,
appid: '展示的公众号appid',
nickname: '展示的公众号nickname',
headimg: '展示的公众号头像',
};
const wxIsvMpShowItemList = {
errcode: 0,
errmsg: 'ok',
totalNum: 10,
bizInfoList: [
{
nickname: '公众号昵称',
appid: '公众号appid',
headimg: '公众号头像',
},
],
};
const wxIsvComplainResponse = {
errcode: 0,
errmsg: "ok",
complaintOrder: {
complaintOrderId: 'sadfasdf',
openId: 'dfasefasefase',
createTime: 1658903527,
phoneNumber: 13599125777,
type: 12,
status: 1,
customerMaterial: {
content: '',
mediaIdList: ['fsadfasdfsaf'] //投诉内容图片 cdn 列表
},
orderId: '2342',
outTradeNo: 'sdfsfd',
productName: 'sdf',
payTime: 1658903465,
totalCost: "¥0.01",
expireTime: 1658903564 //投诉单当前状态到期时间,0为不存在
},
// 投诉进度
item: [{
itemType: 1,
time: 1658903527,
phoneNumber: 13599125777,
content: '',
mediaIdList: ['https://asdfasdf'] //图片 cdn 列表
}],
returnBill: {
returnId: '23234234234',
waybillId: 'YDxxxxd',
deliveryName: '韵达快递',
orderStatus: 4 //运单状态
}
};
const wxIsvCreatechargeidResponse = {
errcode: 0,
errmsg: "ok",
report_no: "90581008120350195232"
};
const wxIsvApplypayResponse = {
errcode: 0,
errmsg: "ok",
pay_url: "https://fuwu.weixin.qq.com/service/common/buy?hasApply=1&orderId=2850151276313431996"
};
const wxIsvGetpayorderlistResponse = {
errcode: 0,
errmsg: "ok",
list: [
{
order_id: 2850151276313431996,
order_status: 5,
total_price: 1000,
create_time: 1678966793,
pay_time: 1678966880,
can_refund: true,
refund_time: 0,
refund_status: 1
}
],
total: 1
};
const wxIsvGetsummaryResponse = {
errcode: 0,
errmsg: "ok",
total: 0,
claim_num: 0,
claim_succ_num: 0,
premium: 18,
funds: 482,
need_close: false
};
const wxIsvGetorderlistResponse = {
errcode: 0,
errmsg: "ok",
list: [
{
order_no: "4200001197202103228672982584",
policy_no: "10288003264673876281",
report_no: "",
status: 2,
insurance_end_date: "2023-06-14 19:41:34",
premium: 20,
estimate_amount: 1200,
delivery_no: "delivery20230321001",
refund_delivery_no: ""
},
{
order_no: "4200001197202103228672982585",
policy_no: "10288003264673876282",
report_no: "90581008120350195232",
status: 4,
insurance_end_date: "2023-06-20 16:36:54",
premium: 20,
estimate_amount: 1200,
delivery_no: "delivery20230322001",
refund_delivery_no: "delivery20230322001"
}
],
"total": 2
};
const wxIsvCreateorderResponse = {
errcode: 0,
errmsg: "ok",
policy_no: "10288003264673876282",
insurance_end_date: "2023-06-20 16:36:54",
estimate_amount: 1200
};
const wxIsvClaimResponse = {
errcode: 0,
errmsg: "ok",
report_no: "90581008120350195232"
};
const wxIsvPluginManagementResponse = {
"errcode": 0,
"errmsg": "ok",
"plugin_list": [
{
"appid": "aaaa",
"status": 1,
"nickname": "插件昵称",
"headimgurl": "http://plugin.qq.com"
}
]
};