@be-link/vitality-cli-nodejs 0.0.22 → 0.0.26
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/index.d.ts +11 -1
- package/index.js +15 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/vs/modules/distribution/bills/service.d.ts +8 -0
- package/vs/modules/distribution/bills/service.js +19 -0
- package/vs/modules/distribution/bills/service.js.map +1 -0
- package/vs/modules/distribution/organization/service.d.ts +8 -0
- package/vs/modules/distribution/organization/service.js +19 -0
- package/vs/modules/distribution/organization/service.js.map +1 -0
- package/vs/modules/distribution/rules/service.d.ts +9 -0
- package/vs/modules/distribution/rules/service.js +22 -0
- package/vs/modules/distribution/rules/service.js.map +1 -0
- package/vs/modules/distribution/type.d.ts +43 -0
- package/vs/modules/distribution/type.js +3 -0
- package/vs/modules/distribution/type.js.map +1 -0
- package/vs/modules/nmc/job/service.d.ts +11 -0
- package/vs/modules/nmc/job/service.js +24 -0
- package/vs/modules/nmc/job/service.js.map +1 -0
- package/vs/modules/nmc/main/service.d.ts +9 -0
- package/vs/modules/nmc/main/service.js +22 -0
- package/vs/modules/nmc/main/service.js.map +1 -0
- package/vs/modules/nmc/stats/service.d.ts +9 -0
- package/vs/modules/nmc/stats/service.js +20 -0
- package/vs/modules/nmc/stats/service.js.map +1 -0
- package/vs/modules/nmc/type.d.ts +121 -0
- package/vs/modules/nmc/type.js +3 -0
- package/vs/modules/nmc/type.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -50,6 +50,12 @@ import memberService, { memberJobService, memberMainService, memberSdkManifest }
|
|
|
50
50
|
import promotionService, { promotionCalculationService, promotionRestructureCalculationService, promotionJobService, promotionMainService, promotionSdkManifest } from './vs/modules/biz/promotion';
|
|
51
51
|
import subscribeNotificationService, { subscribeNotificationMainService, subscribeNotificationSdkManifest } from './vs/modules/biz/subscribeNotification';
|
|
52
52
|
import userActionService, { userActionJobService, userActionMainService, userActionSdkManifest } from './vs/modules/biz/userAction';
|
|
53
|
+
import distributionOrganizationService from './vs/modules/distribution/organization/service';
|
|
54
|
+
import distributionRulesService from './vs/modules/distribution/rules/service';
|
|
55
|
+
import distributionBillsService from './vs/modules/distribution/bills/service';
|
|
56
|
+
import nmcMainService from './vs/modules/nmc/main/service';
|
|
57
|
+
import nmcJobService from './vs/modules/nmc/job/service';
|
|
58
|
+
import nmcStatsService from './vs/modules/nmc/stats/service';
|
|
53
59
|
import vitalityInvokeService from './vs/modules/invokeService';
|
|
54
60
|
import { Token } from './vs/modules/biz/core/token/type';
|
|
55
61
|
import { AccessToken } from './vs/modules/biz/core/accessToken/type';
|
|
@@ -76,7 +82,9 @@ import { Member } from './vs/modules/biz/member/type';
|
|
|
76
82
|
import { Promotion } from './vs/modules/biz/promotion/type';
|
|
77
83
|
import { SubscribeNotification } from './vs/modules/biz/subscribeNotification/type';
|
|
78
84
|
import { UserAction } from './vs/modules/biz/userAction/type';
|
|
79
|
-
|
|
85
|
+
import { Distribution } from './vs/modules/distribution/type';
|
|
86
|
+
import { Nmc } from './vs/modules/nmc/type';
|
|
87
|
+
export { BizError, VSError, BaseService, callApi, callScfApi, apiService, frontendConfigService, bizService, coreAccessTokenService, coreCacheService, coreConfigService, coreCosService, coreNmcService, coreQwNotifyService, coreShortLinkService, coreTenpayService, coreTokenService, coreCallerSdkManifest, bannerMainService, bannerWebService, activityMainService, activityVenueService, activityDoubleElevenService, activityAnniversaryService, activityWxLiveService, activitySpringActService, activitySchoolActService, activityMarketingActService, activityInviteFissionService, activityDesireService, activityJobService, supplierShuttleBusService, merchantMainService, poiMainService, commodityService, commodityV2Service, channelPageConfigService, channelPageConfigMainService, channelPageConfigMiniAppService, channelPageConfigWebService, contractService, contractMainService, itemCommentService, itemCommentJobService, itemTagGroupService, itemTagGroupWebService, rmsService, rmsMainService, storeService, storeJobService, storeMainService, tourMaterialService, tourMaterialBossService, adjustmentService, adjustmentMainService, adjustmentJobService, adjustmentSdkManifest, commodityCallerSdkManifest, activitySdkManifest, wxShopCommodityService, wxShopJobService, groupBookingMiniappService, groupBookingWebService, insuranceMainService, memberService, memberMainService, memberJobService, memberSdkManifest, promotionService, promotionMainService, promotionJobService, promotionCalculationService, promotionRestructureCalculationService, promotionSdkManifest, subscribeNotificationService, subscribeNotificationMainService, subscribeNotificationSdkManifest, userActionService, userActionMainService, userActionJobService, userActionSdkManifest, distributionOrganizationService, distributionRulesService, distributionBillsService, nmcMainService, nmcJobService, nmcStatsService, vitalityInvokeService, Token, AccessToken, CoreCache, CoreConfig, CoreCos, CoreNmc, CoreQwNotify, CoreShortLink, CoreTenpay, Banner, Activity, FrontendConfig, Supplier, Merchant, POI, Adjustment, WxShop, GroupBooking, Insurance, Member, Promotion, SubscribeNotification, UserAction, Distribution, Nmc, };
|
|
80
88
|
export * from './vs/modules/biz/commodity';
|
|
81
89
|
export * from './vs/modules/biz/commodityV2';
|
|
82
90
|
export * from './vs/modules/biz/channelPageConfig';
|
|
@@ -91,3 +99,5 @@ export * from './vs/modules/biz/member';
|
|
|
91
99
|
export * from './vs/modules/biz/promotion';
|
|
92
100
|
export * from './vs/modules/biz/subscribeNotification';
|
|
93
101
|
export * from './vs/modules/biz/userAction';
|
|
102
|
+
export * from './vs/modules/distribution/type';
|
|
103
|
+
export * from './vs/modules/nmc/type';
|
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.storeJobService = exports.storeService = exports.rmsMainService = exports.rmsService = exports.itemTagGroupWebService = exports.itemTagGroupService = exports.itemCommentJobService = exports.itemCommentService = exports.contractMainService = exports.contractService = exports.channelPageConfigWebService = exports.channelPageConfigMiniAppService = exports.channelPageConfigMainService = exports.channelPageConfigService = exports.commodityV2Service = exports.commodityService = exports.poiMainService = exports.merchantMainService = exports.supplierShuttleBusService = exports.activityJobService = exports.activityDesireService = exports.activityInviteFissionService = exports.activityMarketingActService = exports.activitySchoolActService = exports.activitySpringActService = exports.activityWxLiveService = exports.activityAnniversaryService = exports.activityDoubleElevenService = exports.activityVenueService = exports.activityMainService = exports.bannerWebService = exports.bannerMainService = exports.coreCallerSdkManifest = exports.coreTokenService = exports.coreTenpayService = exports.coreShortLinkService = exports.coreQwNotifyService = exports.coreNmcService = exports.coreCosService = exports.coreConfigService = exports.coreCacheService = exports.coreAccessTokenService = exports.bizService = exports.frontendConfigService = exports.apiService = exports.callScfApi = exports.callApi = exports.BaseService = exports.VSError = exports.BizError = void 0;
|
|
33
|
-
exports.Activity = exports.Banner = exports.vitalityInvokeService = exports.userActionSdkManifest = exports.userActionJobService = exports.userActionMainService = exports.userActionService = exports.subscribeNotificationSdkManifest = exports.subscribeNotificationMainService = exports.subscribeNotificationService = exports.promotionSdkManifest = exports.promotionRestructureCalculationService = exports.promotionCalculationService = exports.promotionJobService = exports.promotionMainService = exports.promotionService = exports.memberSdkManifest = exports.memberJobService = exports.memberMainService = exports.memberService = exports.insuranceMainService = exports.groupBookingWebService = exports.groupBookingMiniappService = exports.wxShopJobService = exports.wxShopCommodityService = exports.activitySdkManifest = exports.commodityCallerSdkManifest = exports.adjustmentSdkManifest = exports.adjustmentJobService = exports.adjustmentMainService = exports.adjustmentService = exports.tourMaterialBossService = exports.tourMaterialService = exports.storeMainService = void 0;
|
|
33
|
+
exports.Activity = exports.Banner = exports.vitalityInvokeService = exports.nmcStatsService = exports.nmcJobService = exports.nmcMainService = exports.distributionBillsService = exports.distributionRulesService = exports.distributionOrganizationService = exports.userActionSdkManifest = exports.userActionJobService = exports.userActionMainService = exports.userActionService = exports.subscribeNotificationSdkManifest = exports.subscribeNotificationMainService = exports.subscribeNotificationService = exports.promotionSdkManifest = exports.promotionRestructureCalculationService = exports.promotionCalculationService = exports.promotionJobService = exports.promotionMainService = exports.promotionService = exports.memberSdkManifest = exports.memberJobService = exports.memberMainService = exports.memberService = exports.insuranceMainService = exports.groupBookingWebService = exports.groupBookingMiniappService = exports.wxShopJobService = exports.wxShopCommodityService = exports.activitySdkManifest = exports.commodityCallerSdkManifest = exports.adjustmentSdkManifest = exports.adjustmentJobService = exports.adjustmentMainService = exports.adjustmentService = exports.tourMaterialBossService = exports.tourMaterialService = exports.storeMainService = void 0;
|
|
34
34
|
const BizError_1 = __importDefault(require("./errors/BizError"));
|
|
35
35
|
exports.BizError = BizError_1.default;
|
|
36
36
|
const VSError_1 = __importDefault(require("./errors/VSError"));
|
|
@@ -162,6 +162,18 @@ exports.userActionService = userAction_1.default;
|
|
|
162
162
|
Object.defineProperty(exports, "userActionJobService", { enumerable: true, get: function () { return userAction_1.userActionJobService; } });
|
|
163
163
|
Object.defineProperty(exports, "userActionMainService", { enumerable: true, get: function () { return userAction_1.userActionMainService; } });
|
|
164
164
|
Object.defineProperty(exports, "userActionSdkManifest", { enumerable: true, get: function () { return userAction_1.userActionSdkManifest; } });
|
|
165
|
+
const service_32 = __importDefault(require("./vs/modules/distribution/organization/service"));
|
|
166
|
+
exports.distributionOrganizationService = service_32.default;
|
|
167
|
+
const service_33 = __importDefault(require("./vs/modules/distribution/rules/service"));
|
|
168
|
+
exports.distributionRulesService = service_33.default;
|
|
169
|
+
const service_34 = __importDefault(require("./vs/modules/distribution/bills/service"));
|
|
170
|
+
exports.distributionBillsService = service_34.default;
|
|
171
|
+
const service_35 = __importDefault(require("./vs/modules/nmc/main/service"));
|
|
172
|
+
exports.nmcMainService = service_35.default;
|
|
173
|
+
const service_36 = __importDefault(require("./vs/modules/nmc/job/service"));
|
|
174
|
+
exports.nmcJobService = service_36.default;
|
|
175
|
+
const service_37 = __importDefault(require("./vs/modules/nmc/stats/service"));
|
|
176
|
+
exports.nmcStatsService = service_37.default;
|
|
165
177
|
const invokeService_1 = __importDefault(require("./vs/modules/invokeService"));
|
|
166
178
|
exports.vitalityInvokeService = invokeService_1.default;
|
|
167
179
|
const manifest_2 = require("./vs/modules/biz/core/manifest");
|
|
@@ -186,4 +198,6 @@ __exportStar(require("./vs/modules/biz/member"), exports);
|
|
|
186
198
|
__exportStar(require("./vs/modules/biz/promotion"), exports);
|
|
187
199
|
__exportStar(require("./vs/modules/biz/subscribeNotification"), exports);
|
|
188
200
|
__exportStar(require("./vs/modules/biz/userAction"), exports);
|
|
201
|
+
__exportStar(require("./vs/modules/distribution/type"), exports);
|
|
202
|
+
__exportStar(require("./vs/modules/nmc/type"), exports);
|
|
189
203
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAwC;AA4HtC,mBA5HK,kBAAQ,CA4HL;AA3HV,+DAAsC;AA4HpC,kBA5HK,iBAAO,CA4HL;AA3HT,2EAAkD;AA4HhD,sBA5HK,qBAAW,CA4HL;AA3Hb,oCAA+C;AA4H7C,wFA5HO,cAAO,OA4HP;AACP,2FA7HgB,iBAAU,OA6HhB;AA5HZ,2DAAyC;AA6HvC,qBA7HK,aAAU,CA6HL;AA5HZ,uFAA4E;AA6H1E,gCA7HK,iBAAqB,CA6HL;AA5HvB,2DAAyC;AA6HvC,qBA7HK,aAAU,CA6HL;AA5HZ,wFAA8E;AA6H5E,iCA7HK,iBAAsB,CA6HL;AA5HxB,kFAAkE;AA6HhE,2BA7HK,iBAAgB,CA6HL;AA5HlB,mFAAoE;AA6HlE,4BA7HK,iBAAiB,CA6HL;AA5HnB,gFAA8D;AA6H5D,yBA7HK,iBAAc,CA6HL;AA5HhB,gFAA8D;AA6H5D,yBA7HK,iBAAc,CA6HL;AA5HhB,qFAAwE;AA6HtE,8BA7HK,iBAAmB,CA6HL;AA5HrB,sFAA0E;A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vHK,+BAA4B,CAuHL;AAC5B,iHAvHA,wDAAgC,OAuHA;AAChC,iHAvHA,wDAAgC,OAuHA;AArHlC,0EAIoC;AAkHlC,4BAtHK,oBAAiB,CAsHL;AAEjB,qGAvHA,iCAAoB,OAuHA;AADpB,sGArHA,kCAAqB,OAqHA;AAErB,sGAtHA,kCAAqB,OAsHA;AApHvB,8FAA4F;AAqH1F,0CArHK,kBAA+B,CAqHL;AApHjC,uFAA8E;AAqH5E,mCArHK,kBAAwB,CAqHL;AApH1B,uFAA8E;AAqH5E,mCArHK,kBAAwB,CAqHL;AApH1B,6EAA0D;AAqHxD,yBArHK,kBAAc,CAqHL;AApHhB,4EAAwD;AAqHtD,wBArHK,kBAAa,CAqHL;AApHf,8EAA4D;AAqH1D,0BArHK,kBAAe,CAqHL;AApHjB,+EAA8D;AAqH5D,gCArHK,uBAAqB,CAqHL;AA3GvB,6DAAsE;AAqCpE,sGArCO,gCAAqB,OAqCP;AApCvB,uDAAqD;AAoHnD,uFApHO,aAAM,OAoHP;AAnHR,yDAAyD;AAoHvD,yFApHO,eAAQ,OAoHP;AAnHV,iEAAwE;AA2EtE,oGA3EO,8BAAmB,OA2EP;AAyDrB,6DAA0C;AAC1C,+DAA4C;AAC5C,qEAAkD;AAClD,4DAAyC;AACzC,+DAA4C;AAC5C,gEAA6C;AAC7C,uDAAoC;AACpC,yDAAsC;AACtC,gEAA6C;AAC7C,8DAA2C;AAC3C,0DAAuC;AACvC,6DAA0C;AAC1C,yEAAsD;AACtD,8DAA2C;AAC3C,iEAA8C;AAC9C,wDAAqC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { Distribution } from '../type';
|
|
3
|
+
declare class DistributionBillsService extends BaseService implements Distribution.Bills.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
updateDistributionRecordByBizId(request: Distribution.UpdateDistributionRecordRequest): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
declare const distributionBillsService: DistributionBillsService;
|
|
8
|
+
export default distributionBillsService;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class DistributionBillsService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/distribution/bills';
|
|
12
|
+
}
|
|
13
|
+
updateDistributionRecordByBizId(request) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.updateDistributionRecordByBizId), request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const distributionBillsService = new DistributionBillsService();
|
|
18
|
+
exports.default = distributionBillsService;
|
|
19
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/vs/modules/distribution/bills/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAA0C;AAC1C,oEAA2C;AAG3C,MAAM,wBAAyB,SAAQ,qBAAW;IAAlD;;QACE,cAAS,GAAG,qBAAqB,CAAA;IAUnC,CAAC;IARC,+BAA+B,CAC7B,OAAqD;QAErD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,+BAA+B,CAAC,EACpD,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,wBAAwB,GAAG,IAAI,wBAAwB,EAAE,CAAA;AAC/D,kBAAe,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { Distribution } from '../type';
|
|
3
|
+
declare class DistributionOrganizationService extends BaseService implements Distribution.Organization.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
checkUserRole(unionId: string): Promise<Distribution.UserRoleInfo>;
|
|
6
|
+
}
|
|
7
|
+
declare const distributionOrganizationService: DistributionOrganizationService;
|
|
8
|
+
export default distributionOrganizationService;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class DistributionOrganizationService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/distribution/organization';
|
|
12
|
+
}
|
|
13
|
+
checkUserRole(unionId) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.checkUserRole), unionId);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const distributionOrganizationService = new DistributionOrganizationService();
|
|
18
|
+
exports.default = distributionOrganizationService;
|
|
19
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/vs/modules/distribution/organization/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAA0C;AAC1C,oEAA2C;AAG3C,MAAM,+BACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,4BAA4B,CAAA;IAQ1C,CAAC;IANC,aAAa,CAAC,OAAe;QAC3B,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAClC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,+BAA+B,GAAG,IAAI,+BAA+B,EAAE,CAAA;AAC7E,kBAAe,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { Distribution } from '../type';
|
|
3
|
+
declare class DistributionRulesService extends BaseService implements Distribution.Rules.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
calculateDistributionForOrderPaySucceed(orderId: string): Promise<void>;
|
|
6
|
+
calculateDistributionForOrderPartRefund(orderId: string): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare const distributionRulesService: DistributionRulesService;
|
|
9
|
+
export default distributionRulesService;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class DistributionRulesService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/distribution/rules';
|
|
12
|
+
}
|
|
13
|
+
calculateDistributionForOrderPaySucceed(orderId) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.calculateDistributionForOrderPaySucceed), orderId);
|
|
15
|
+
}
|
|
16
|
+
calculateDistributionForOrderPartRefund(orderId) {
|
|
17
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.calculateDistributionForOrderPartRefund), orderId);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const distributionRulesService = new DistributionRulesService();
|
|
21
|
+
exports.default = distributionRulesService;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/vs/modules/distribution/rules/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAA0C;AAC1C,oEAA2C;AAG3C,MAAM,wBAAyB,SAAQ,qBAAW;IAAlD;;QACE,cAAS,GAAG,qBAAqB,CAAA;IAenC,CAAC;IAbC,uCAAuC,CAAC,OAAe;QACrD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uCAAuC,CAAC,EAC5D,OAAO,CACR,CAAA;IACH,CAAC;IAED,uCAAuC,CAAC,OAAe;QACrD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uCAAuC,CAAC,EAC5D,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,wBAAwB,GAAG,IAAI,wBAAwB,EAAE,CAAA;AAC/D,kBAAe,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare namespace Distribution {
|
|
2
|
+
type UserRole = 'staff' | 'admin' | 'saler' | 'directFans' | 'indirectFans' | 'none';
|
|
3
|
+
interface SalerInfo {
|
|
4
|
+
orgId: string;
|
|
5
|
+
orgName: string;
|
|
6
|
+
}
|
|
7
|
+
interface FansInfo {
|
|
8
|
+
salerUnionId: string;
|
|
9
|
+
salerOrgId: string;
|
|
10
|
+
linkTime: number;
|
|
11
|
+
expireTime: number;
|
|
12
|
+
}
|
|
13
|
+
interface UserRoleInfo {
|
|
14
|
+
role: UserRole;
|
|
15
|
+
salerInfo?: SalerInfo;
|
|
16
|
+
fansInfo?: FansInfo;
|
|
17
|
+
}
|
|
18
|
+
interface UpdateDistributionRecordRequest {
|
|
19
|
+
bizId: string;
|
|
20
|
+
ruleId?: string;
|
|
21
|
+
status?: string;
|
|
22
|
+
amount?: number;
|
|
23
|
+
}
|
|
24
|
+
namespace Organization {
|
|
25
|
+
interface Controller {
|
|
26
|
+
/** @param unionId 用户 unionId */
|
|
27
|
+
checkUserRole(unionId: string): Promise<UserRoleInfo>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
namespace Rules {
|
|
31
|
+
interface Controller {
|
|
32
|
+
/** @param orderId 交易订单号 */
|
|
33
|
+
calculateDistributionForOrderPaySucceed(orderId: string): Promise<void>;
|
|
34
|
+
/** @param orderId 交易订单号 */
|
|
35
|
+
calculateDistributionForOrderPartRefund(orderId: string): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
namespace Bills {
|
|
39
|
+
interface Controller {
|
|
40
|
+
updateDistributionRecordByBizId(request: UpdateDistributionRecordRequest): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/vs/modules/distribution/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { Nmc } from '../type';
|
|
3
|
+
declare class NmcJobService extends BaseService implements Nmc.Job.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
/** 定时消费待发送消息(无业务参数;旧 SCF param 为 null) */
|
|
6
|
+
jobConsumeMessage(): Promise<void>;
|
|
7
|
+
/** 定时重试失败消息(无业务参数;旧 SCF param 为 null) */
|
|
8
|
+
jobRetryMessage(): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
declare const nmcJobService: NmcJobService;
|
|
11
|
+
export default nmcJobService;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class NmcJobService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/nmc/job';
|
|
12
|
+
}
|
|
13
|
+
/** 定时消费待发送消息(无业务参数;旧 SCF param 为 null) */
|
|
14
|
+
jobConsumeMessage() {
|
|
15
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.jobConsumeMessage));
|
|
16
|
+
}
|
|
17
|
+
/** 定时重试失败消息(无业务参数;旧 SCF param 为 null) */
|
|
18
|
+
jobRetryMessage() {
|
|
19
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.jobRetryMessage));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const nmcJobService = new NmcJobService();
|
|
23
|
+
exports.default = nmcJobService;
|
|
24
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/vs/modules/nmc/job/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAA0C;AAC1C,oEAA2C;AAG3C,MAAM,aAAc,SAAQ,qBAAW;IAAvC;;QACE,cAAS,GAAG,UAAU,CAAA;IAexB,CAAC;IAbC,0CAA0C;IAC1C,iBAAiB;QACf,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC,CACvC,CAAA;IACH,CAAC;IAED,yCAAyC;IACzC,eAAe;QACb,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,CACrC,CAAA;IACH,CAAC;CACF;AAED,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAA;AACzC,kBAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { Nmc } from '../type';
|
|
3
|
+
declare class NmcMainService extends BaseService implements Nmc.Main.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
commitMessage(request: Nmc.Request.ICommitMessageRequest): Promise<void>;
|
|
6
|
+
batchCommitMessages(request: Nmc.Request.IBatchCommitMessagesRequest): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare const nmcMainService: NmcMainService;
|
|
9
|
+
export default nmcMainService;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class NmcMainService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/nmc/main';
|
|
12
|
+
}
|
|
13
|
+
commitMessage(request) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.commitMessage), request);
|
|
15
|
+
}
|
|
16
|
+
batchCommitMessages(request) {
|
|
17
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.batchCommitMessages), request);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const nmcMainService = new NmcMainService();
|
|
21
|
+
exports.default = nmcMainService;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/vs/modules/nmc/main/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAA0C;AAC1C,oEAA2C;AAG3C,MAAM,cAAe,SAAQ,qBAAW;IAAxC;;QACE,cAAS,GAAG,WAAW,CAAA;IAezB,CAAC;IAbC,aAAa,CAAC,OAA0C;QACtD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAClC,OAAO,CACR,CAAA;IACH,CAAC;IAED,mBAAmB,CAAC,OAAgD;QAClE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAA;AAC3C,kBAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { Nmc } from '../type';
|
|
3
|
+
declare class NmcStatsService extends BaseService implements Nmc.Stats.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
/** relateBizId 为裸字符串:统一走 __scfParam envelope 传输,VS 侧解包还原。 */
|
|
6
|
+
queryByRelateBizId(relateBizId: string): Promise<Nmc.Response.IQueryByRelateBizIdResponse[]>;
|
|
7
|
+
}
|
|
8
|
+
declare const nmcStatsService: NmcStatsService;
|
|
9
|
+
export default nmcStatsService;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class NmcStatsService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/nmc/stats';
|
|
12
|
+
}
|
|
13
|
+
/** relateBizId 为裸字符串:统一走 __scfParam envelope 传输,VS 侧解包还原。 */
|
|
14
|
+
queryByRelateBizId(relateBizId) {
|
|
15
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.queryByRelateBizId), relateBizId);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const nmcStatsService = new NmcStatsService();
|
|
19
|
+
exports.default = nmcStatsService;
|
|
20
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/vs/modules/nmc/stats/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAA0C;AAC1C,oEAA2C;AAG3C,MAAM,eAAgB,SAAQ,qBAAW;IAAzC;;QACE,cAAS,GAAG,YAAY,CAAA;IAS1B,CAAC;IAPC,6DAA6D;IAC7D,kBAAkB,CAAC,WAAmB;QACpC,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,WAAW,CACZ,CAAA;IACH,CAAC;CACF;AAED,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA;AAC7C,kBAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare namespace Nmc {
|
|
2
|
+
namespace Model {
|
|
3
|
+
interface IFeishuMessageContext {
|
|
4
|
+
msgType: string;
|
|
5
|
+
content?: string | Record<string, any>;
|
|
6
|
+
card?: Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
interface ISmsMessageContext {
|
|
9
|
+
templateId: string;
|
|
10
|
+
templateParams: string[];
|
|
11
|
+
hasMiniappLink?: boolean;
|
|
12
|
+
content?: string;
|
|
13
|
+
smsType?: string | number;
|
|
14
|
+
miniappPagePath?: string;
|
|
15
|
+
miniappPageQuery?: Record<string, any>;
|
|
16
|
+
isExcludedMiniAppLinkDoMain?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface IYmSmsMessageContext {
|
|
19
|
+
templateId: string;
|
|
20
|
+
templateParams: Record<string, any>;
|
|
21
|
+
miniappPagePath?: string;
|
|
22
|
+
miniappPageQuery?: Record<string, any>;
|
|
23
|
+
}
|
|
24
|
+
interface IYiMeiSmsMessageContext {
|
|
25
|
+
templateId: string;
|
|
26
|
+
templateParams: string[];
|
|
27
|
+
hasMiniappLink?: boolean;
|
|
28
|
+
content?: string;
|
|
29
|
+
smsType?: string | number;
|
|
30
|
+
miniappPagePath?: string;
|
|
31
|
+
miniappPageQuery?: Record<string, any>;
|
|
32
|
+
isExcludedMiniAppLinkDoMain?: boolean;
|
|
33
|
+
}
|
|
34
|
+
interface IVoiceMessageContext {
|
|
35
|
+
templateId: string;
|
|
36
|
+
templateParams: string[];
|
|
37
|
+
}
|
|
38
|
+
interface IYiMeiVoiceMessageContext {
|
|
39
|
+
templateId: string;
|
|
40
|
+
templateParams: string[];
|
|
41
|
+
}
|
|
42
|
+
interface IWeworkTextMessageContext {
|
|
43
|
+
text: string;
|
|
44
|
+
mention: string[];
|
|
45
|
+
}
|
|
46
|
+
interface IWeworkImageMessageContext {
|
|
47
|
+
url: string;
|
|
48
|
+
size: number;
|
|
49
|
+
}
|
|
50
|
+
interface IWeworkLinkMessageContext {
|
|
51
|
+
sourceUrl: string;
|
|
52
|
+
title: string;
|
|
53
|
+
summary: string;
|
|
54
|
+
imageUrl: string;
|
|
55
|
+
}
|
|
56
|
+
interface IWeworkFileMessageContext {
|
|
57
|
+
name: string;
|
|
58
|
+
url: string;
|
|
59
|
+
size: number;
|
|
60
|
+
}
|
|
61
|
+
interface IWeworkMiniProgramMessageContext {
|
|
62
|
+
appid: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
pagePath: string;
|
|
65
|
+
thumbKey?: string;
|
|
66
|
+
iconUrl: string;
|
|
67
|
+
thumbUrl: string;
|
|
68
|
+
title: string;
|
|
69
|
+
username: string;
|
|
70
|
+
}
|
|
71
|
+
interface IWeworkVideoMessageContext {
|
|
72
|
+
url: string;
|
|
73
|
+
}
|
|
74
|
+
interface IWeworkMessageContext {
|
|
75
|
+
msgType: number;
|
|
76
|
+
payload: IWeworkTextMessageContext | IWeworkImageMessageContext | IWeworkLinkMessageContext | IWeworkFileMessageContext | IWeworkMiniProgramMessageContext | IWeworkVideoMessageContext;
|
|
77
|
+
}
|
|
78
|
+
/** @deprecated */
|
|
79
|
+
type IMiniAppMessageContext = Record<string, any>;
|
|
80
|
+
}
|
|
81
|
+
namespace Request {
|
|
82
|
+
interface ICommitMessageRequest {
|
|
83
|
+
senderRole: string;
|
|
84
|
+
channel: string;
|
|
85
|
+
receiverRole: string;
|
|
86
|
+
receiverId: string | string[];
|
|
87
|
+
bizScene: string;
|
|
88
|
+
sendTime?: number;
|
|
89
|
+
relateBizId: string;
|
|
90
|
+
context: Model.IFeishuMessageContext | Model.ISmsMessageContext | Model.IVoiceMessageContext | Model.IYiMeiSmsMessageContext | Model.IYiMeiVoiceMessageContext | Model.IWeworkMessageContext | Model.IMiniAppMessageContext;
|
|
91
|
+
}
|
|
92
|
+
type IBatchCommitMessagesRequest = ICommitMessageRequest[];
|
|
93
|
+
}
|
|
94
|
+
namespace Response {
|
|
95
|
+
interface IQueryByRelateBizIdResponse {
|
|
96
|
+
bizSceneDesc: string;
|
|
97
|
+
channelDesc: string;
|
|
98
|
+
_createTime: number;
|
|
99
|
+
status: string;
|
|
100
|
+
extraDesc?: string;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
namespace Main {
|
|
104
|
+
interface Controller {
|
|
105
|
+
commitMessage(request: Request.ICommitMessageRequest): Promise<void>;
|
|
106
|
+
batchCommitMessages(request: Request.IBatchCommitMessagesRequest): Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
namespace Job {
|
|
110
|
+
interface Controller {
|
|
111
|
+
jobConsumeMessage(): Promise<void>;
|
|
112
|
+
jobRetryMessage(): Promise<void>;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
namespace Stats {
|
|
116
|
+
interface Controller {
|
|
117
|
+
/** @param relateBizId 关联业务id */
|
|
118
|
+
queryByRelateBizId(relateBizId: string): Promise<Response.IQueryByRelateBizIdResponse[]>;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/vs/modules/nmc/type.ts"],"names":[],"mappings":""}
|