@be-link/vitality-cli-nodejs 0.0.21 → 0.0.24
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 +6 -1
- package/index.js +8 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/vs/modules/biz/index.d.ts +1 -1
- package/vs/modules/biz/promotion/index.d.ts +1 -1
- package/vs/modules/biz/promotion/main/service.d.ts +1 -1
- package/vs/modules/biz/promotion/main/service.js +2 -2
- package/vs/modules/biz/promotion/main/service.js.map +1 -1
- package/vs/modules/biz/promotion/type.d.ts +1 -5
- 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/index.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ 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';
|
|
53
56
|
import vitalityInvokeService from './vs/modules/invokeService';
|
|
54
57
|
import { Token } from './vs/modules/biz/core/token/type';
|
|
55
58
|
import { AccessToken } from './vs/modules/biz/core/accessToken/type';
|
|
@@ -76,7 +79,8 @@ import { Member } from './vs/modules/biz/member/type';
|
|
|
76
79
|
import { Promotion } from './vs/modules/biz/promotion/type';
|
|
77
80
|
import { SubscribeNotification } from './vs/modules/biz/subscribeNotification/type';
|
|
78
81
|
import { UserAction } from './vs/modules/biz/userAction/type';
|
|
79
|
-
|
|
82
|
+
import { Distribution } from './vs/modules/distribution/type';
|
|
83
|
+
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, 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, };
|
|
80
84
|
export * from './vs/modules/biz/commodity';
|
|
81
85
|
export * from './vs/modules/biz/commodityV2';
|
|
82
86
|
export * from './vs/modules/biz/channelPageConfig';
|
|
@@ -91,3 +95,4 @@ export * from './vs/modules/biz/member';
|
|
|
91
95
|
export * from './vs/modules/biz/promotion';
|
|
92
96
|
export * from './vs/modules/biz/subscribeNotification';
|
|
93
97
|
export * from './vs/modules/biz/userAction';
|
|
98
|
+
export * from './vs/modules/distribution/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.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,12 @@ 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;
|
|
165
171
|
const invokeService_1 = __importDefault(require("./vs/modules/invokeService"));
|
|
166
172
|
exports.vitalityInvokeService = invokeService_1.default;
|
|
167
173
|
const manifest_2 = require("./vs/modules/biz/core/manifest");
|
|
@@ -186,4 +192,5 @@ __exportStar(require("./vs/modules/biz/member"), exports);
|
|
|
186
192
|
__exportStar(require("./vs/modules/biz/promotion"), exports);
|
|
187
193
|
__exportStar(require("./vs/modules/biz/subscribeNotification"), exports);
|
|
188
194
|
__exportStar(require("./vs/modules/biz/userAction"), exports);
|
|
195
|
+
__exportStar(require("./vs/modules/distribution/type"), exports);
|
|
189
196
|
//# 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;AAwHtC,mBAxHK,kBAAQ,CAwHL;AAvHV,+DAAsC;AAwHpC,kBAxHK,iBAAO,CAwHL;AAvHT,2EAAkD;AAwHhD,sBAxHK,qBAAW,CAwHL;AAvHb,oCAA+C;AAwH7C,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7C,8DAA2C;AAC3C,0DAAuC;AACvC,6DAA0C;AAC1C,yEAAsD;AACtD,8DAA2C;AAC3C,iEAA8C"}
|
package/package.json
CHANGED
|
@@ -1309,7 +1309,7 @@ declare const bizService: {
|
|
|
1309
1309
|
queryCouponByUserAndTemplate(request: import("./promotion").Promotion.Main.Request.QueryCouponByUserAndTemplate): Promise<import("./promotion").Promotion.Coupon[]>;
|
|
1310
1310
|
countCouponByTemplateIdAndStatus(request: import("./promotion").Promotion.Main.Request.CountCouponByTemplateIdAndStatus): Promise<number>;
|
|
1311
1311
|
getItemActivityInfo(request: import("./promotion").Promotion.Main.Request.GetItemActivityInfo): Promise<Record<string, unknown>>;
|
|
1312
|
-
getItemListInDynamicCoupon(
|
|
1312
|
+
getItemListInDynamicCoupon(couponTemplateId: string): Promise<string[]>;
|
|
1313
1313
|
readonly publicDevHost: "https://vs-dev.wejourney.top";
|
|
1314
1314
|
readonly publicProdHost: "https://vs.wejourney.top";
|
|
1315
1315
|
getHost(): string;
|
|
@@ -12,7 +12,7 @@ declare const promotionService: {
|
|
|
12
12
|
queryCouponByUserAndTemplate(request: import("./type").Promotion.Main.Request.QueryCouponByUserAndTemplate): Promise<import("./type").Promotion.Coupon[]>;
|
|
13
13
|
countCouponByTemplateIdAndStatus(request: import("./type").Promotion.Main.Request.CountCouponByTemplateIdAndStatus): Promise<number>;
|
|
14
14
|
getItemActivityInfo(request: import("./type").Promotion.Main.Request.GetItemActivityInfo): Promise<Record<string, unknown>>;
|
|
15
|
-
getItemListInDynamicCoupon(
|
|
15
|
+
getItemListInDynamicCoupon(couponTemplateId: string): Promise<string[]>;
|
|
16
16
|
readonly publicDevHost: "https://vs-dev.wejourney.top";
|
|
17
17
|
readonly publicProdHost: "https://vs.wejourney.top";
|
|
18
18
|
getHost(): string;
|
|
@@ -10,7 +10,7 @@ declare class PromotionMainService extends BaseService implements Promotion.Main
|
|
|
10
10
|
queryCouponByUserAndTemplate(request: Promotion.Main.Request.QueryCouponByUserAndTemplate): Promise<Promotion.Coupon[]>;
|
|
11
11
|
countCouponByTemplateIdAndStatus(request: Promotion.Main.Request.CountCouponByTemplateIdAndStatus): Promise<number>;
|
|
12
12
|
getItemActivityInfo(request: Promotion.Main.Request.GetItemActivityInfo): Promise<Record<string, unknown>>;
|
|
13
|
-
getItemListInDynamicCoupon(
|
|
13
|
+
getItemListInDynamicCoupon(couponTemplateId: string): Promise<string[]>;
|
|
14
14
|
}
|
|
15
15
|
declare const promotionMainService: PromotionMainService;
|
|
16
16
|
export default promotionMainService;
|
|
@@ -34,8 +34,8 @@ class PromotionMainService extends baseService_1.default {
|
|
|
34
34
|
getItemActivityInfo(request) {
|
|
35
35
|
return (0, http_1.callScfApi)(this.getApiUrl(this.getItemActivityInfo), request);
|
|
36
36
|
}
|
|
37
|
-
getItemListInDynamicCoupon(
|
|
38
|
-
return (0, http_1.callScfApi)(this.getApiUrl(this.getItemListInDynamicCoupon),
|
|
37
|
+
getItemListInDynamicCoupon(couponTemplateId) {
|
|
38
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.getItemListInDynamicCoupon), couponTemplateId);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
const promotionMainService = new PromotionMainService();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/promotion/main/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,oBAAqB,SAAQ,qBAAW;IAA9C;;QACE,cAAS,GAAG,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/promotion/main/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,oBAAqB,SAAQ,qBAAW;IAA9C;;QACE,cAAS,GAAG,qBAAqB,CAAA;IAwEnC,CAAC;IAtEC,gCAAgC,CAC9B,OAAgE;QAEhE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;CACF;AAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAA;AACvD,kBAAe,oBAAoB,CAAA"}
|
|
@@ -112,10 +112,6 @@ export declare namespace Promotion {
|
|
|
112
112
|
itemId: string;
|
|
113
113
|
source: string;
|
|
114
114
|
}
|
|
115
|
-
/** CommodityService currently sends this object rather than a root string. */
|
|
116
|
-
interface GetItemListInDynamicCoupon {
|
|
117
|
-
couponTemplateId: string;
|
|
118
|
-
}
|
|
119
115
|
}
|
|
120
116
|
namespace Response {
|
|
121
117
|
interface CalculateLowestPriceForDirectPay {
|
|
@@ -155,7 +151,7 @@ export declare namespace Promotion {
|
|
|
155
151
|
queryCouponByUserAndTemplate(request: Request.QueryCouponByUserAndTemplate): Promise<Coupon[]>;
|
|
156
152
|
countCouponByTemplateIdAndStatus(request: Request.CountCouponByTemplateIdAndStatus): Promise<number>;
|
|
157
153
|
getItemActivityInfo(request: Request.GetItemActivityInfo): Promise<Record<string, unknown>>;
|
|
158
|
-
getItemListInDynamicCoupon(
|
|
154
|
+
getItemListInDynamicCoupon(couponTemplateId: string): Promise<string[]>;
|
|
159
155
|
}
|
|
160
156
|
}
|
|
161
157
|
namespace Job {
|
|
@@ -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":""}
|