@chotot/ct-logic-uni-rev-premium-v1 1.286.0
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/ad.proto +89 -0
- package/ad_delivery.proto +232 -0
- package/ad_delivery_pb.d.ts +1285 -0
- package/ad_delivery_pb.js +439 -0
- package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.d.ts +138 -0
- package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.js +211 -0
- package/ad_delivery_service.proto +65 -0
- package/ad_delivery_service_connect.d.ts +125 -0
- package/ad_delivery_service_connect.js +125 -0
- package/ad_optimization.proto +111 -0
- package/ad_optimization_pb.d.ts +601 -0
- package/ad_optimization_pb.js +214 -0
- package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.d.ts +78 -0
- package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.js +115 -0
- package/ad_optimization_service.proto +21 -0
- package/ad_optimization_service_connect.d.ts +71 -0
- package/ad_optimization_service_connect.js +71 -0
- package/ad_pb.d.ts +461 -0
- package/ad_pb.js +172 -0
- package/ad_service-LogicUniRevPremiumAdService_connectquery.d.ts +58 -0
- package/ad_service-LogicUniRevPremiumAdService_connectquery.js +83 -0
- package/ad_service.proto +15 -0
- package/ad_service_connect.d.ts +53 -0
- package/ad_service_connect.js +53 -0
- package/ad_social_platform.proto +108 -0
- package/ad_social_platform_pb.d.ts +474 -0
- package/ad_social_platform_pb.js +156 -0
- package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.d.ts +68 -0
- package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.js +99 -0
- package/ad_social_platform_service.proto +23 -0
- package/ad_social_platform_service_connect.d.ts +62 -0
- package/ad_social_platform_service_connect.js +62 -0
- package/bump_ad.proto +162 -0
- package/bump_ad_pb.d.ts +869 -0
- package/bump_ad_pb.js +308 -0
- package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.d.ts +123 -0
- package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.js +189 -0
- package/bump_ad_service.proto +56 -0
- package/bump_ad_service_connect.d.ts +112 -0
- package/bump_ad_service_connect.js +112 -0
- package/free_ps.proto +527 -0
- package/free_ps_pb.d.ts +2848 -0
- package/free_ps_pb.js +934 -0
- package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.d.ts +304 -0
- package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.js +483 -0
- package/free_ps_service.proto +62 -0
- package/free_ps_service_connect.d.ts +276 -0
- package/free_ps_service_connect.js +276 -0
- package/listing_tier.proto +228 -0
- package/listing_tier_pb.d.ts +1032 -0
- package/listing_tier_pb.js +365 -0
- package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.d.ts +108 -0
- package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.js +163 -0
- package/listing_tier_service.proto +19 -0
- package/listing_tier_service_connect.d.ts +98 -0
- package/listing_tier_service_connect.js +98 -0
- package/onbehalf.proto +91 -0
- package/onbehalf_pb.d.ts +411 -0
- package/onbehalf_pb.js +138 -0
- package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.d.ts +28 -0
- package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.js +35 -0
- package/onbehalf_service.proto +11 -0
- package/onbehalf_service_connect.d.ts +26 -0
- package/onbehalf_service_connect.js +26 -0
- package/package.json +10 -0
- package/premium_services.proto +1005 -0
- package/premium_services_pb.d.ts +5465 -0
- package/premium_services_pb.js +1840 -0
- package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.d.ts +496 -0
- package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.js +787 -0
- package/premium_services_service.proto +132 -0
- package/premium_services_service_connect.d.ts +448 -0
- package/premium_services_service_connect.js +448 -0
- package/pricing.proto +722 -0
- package/pricing_pb.d.ts +3949 -0
- package/pricing_pb.js +1372 -0
- package/pricing_service-LogicUniRevPremiumPricingService_connectquery.d.ts +411 -0
- package/pricing_service-LogicUniRevPremiumPricingService_connectquery.js +653 -0
- package/pricing_service.proto +63 -0
- package/pricing_service_connect.d.ts +372 -0
- package/pricing_service_connect.js +372 -0
- package/scripts/modify_package_json.js +50 -0
- package/special_display.proto +56 -0
- package/special_display_pb.d.ts +322 -0
- package/special_display_pb.js +113 -0
- package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.d.ts +58 -0
- package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.js +83 -0
- package/special_display_service.proto +24 -0
- package/special_display_service_connect.d.ts +53 -0
- package/special_display_service_connect.js +53 -0
- package/sticky_adinfo.proto +312 -0
- package/sticky_adinfo_pb.d.ts +1463 -0
- package/sticky_adinfo_pb.js +328 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.0.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file ct-logic-uni-rev-premium/v1/pricing_service.proto (package ct_logic_uni_rev_premium.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { ApproveAllPriceByCampaignRequest, ApproveAllPriceByCampaignResponse, ApproveAllPriceByServiceRequest, ApproveAllPriceByServiceResponse, ApprovePriceItemCampaignRequest, ApprovePriceItemCampaignResponse, ApprovePriceRequest, ApprovePriceResponse, CheckIsPaidAdRequest, CheckIsPaidAdResponse, CreatePricingCampaignRequest, CreatePricingCampaignResponse, DeletePriceItemCampaignRequest, DeletePriceItemCampaignResponse, DeletePricingCampaignRequest, DeletePricingCampaignResponse, EditPriceItemCampaignRequest, EditPriceItemCampaignResponse, EditPriceRequest, EditPriceResponse, GetAdExtensionPricesRequest, GetAdExtensionPricesResponse, GetAllListingFeePriceRequest, GetAllListingFeePriceResponse, GetIntensiveBumpPriceRequest, GetIntensiveBumpPriceResponse, GetListingFeeConditionRequest, GetListingFeeConditionResponse, GetListingFeePriceRequest, GetListingFeePriceResponse, GetListPriceBackOfficeRequest, GetListPriceBackOfficeResponse, GetListPriceByListServiceTypeRequest, GetListPriceByListServiceTypeResponse, GetListPricingCampaignRequest, GetListPricingCampaignResponse, GetPremiumFeaturePriceRequest, GetPremiumFeaturePriceResponse, GetPremiumServicePriceByListTargetingRequest, GetPremiumServicePriceByListTargetingResponse, GetPriceByIdRequest, GetPriceByIdResponse, GetPriceListingFeeDurationRequest, GetPriceListingFeeDurationResponse, GetPricingCampaignByIdRequest, GetPricingCampaignByIdResponse, GetServicePriceDetailRequest, GetServicePriceDetailResponse, GetShopPriceDetailRequest, GetShopPriceDetailResponse, GetShopPriceRequest, GetShopPriceResponse, GetSpecialDisplayPriceRequest, GetSpecialDisplayPriceResponse, ImportPriceRequest, ImportPriceResponse, PublishAllPriceByCampaignRequest, PublishAllPriceByCampaignResponse, PublishAllPriceByServiceRequest, PublishAllPriceByServiceResponse, PublishPriceRequest, PublishPriceResponse, RejectAllPriceByCampaignRequest, RejectAllPriceByCampaignResponse, RejectAllPriceByServiceRequest, RejectAllPriceByServiceResponse, RejectPriceItemCampaignRequest, RejectPriceItemCampaignResponse, RejectPriceRequest, RejectPriceResponse, ReleasePricingPromotionRedemptionRequest, ReleasePricingPromotionRedemptionResponse, UpdatePricingCampaignRequest, UpdatePricingCampaignResponse, ValidatePricingRequest, ValidatePricingResponse } from "./pricing_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService
|
|
11
|
+
*/
|
|
12
|
+
export const LogicUniRevPremiumPricingService = {
|
|
13
|
+
typeName: "ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* for Validate Services in Order, for Cart please use ValidateCartOfAdService
|
|
17
|
+
*
|
|
18
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ValidatePricing
|
|
19
|
+
*/
|
|
20
|
+
validatePricing: {
|
|
21
|
+
name: "ValidatePricing",
|
|
22
|
+
I: ValidatePricingRequest,
|
|
23
|
+
O: ValidatePricingResponse,
|
|
24
|
+
kind: MethodKind.Unary,
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetSpecialDisplayPrice
|
|
28
|
+
*/
|
|
29
|
+
getSpecialDisplayPrice: {
|
|
30
|
+
name: "GetSpecialDisplayPrice",
|
|
31
|
+
I: GetSpecialDisplayPriceRequest,
|
|
32
|
+
O: GetSpecialDisplayPriceResponse,
|
|
33
|
+
kind: MethodKind.Unary,
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetPremiumFeaturePrice
|
|
37
|
+
*/
|
|
38
|
+
getPremiumFeaturePrice: {
|
|
39
|
+
name: "GetPremiumFeaturePrice",
|
|
40
|
+
I: GetPremiumFeaturePriceRequest,
|
|
41
|
+
O: GetPremiumFeaturePriceResponse,
|
|
42
|
+
kind: MethodKind.Unary,
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetIntensiveBumpPrice
|
|
46
|
+
*/
|
|
47
|
+
getIntensiveBumpPrice: {
|
|
48
|
+
name: "GetIntensiveBumpPrice",
|
|
49
|
+
I: GetIntensiveBumpPriceRequest,
|
|
50
|
+
O: GetIntensiveBumpPriceResponse,
|
|
51
|
+
kind: MethodKind.Unary,
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetShopPrice
|
|
55
|
+
*/
|
|
56
|
+
getShopPrice: {
|
|
57
|
+
name: "GetShopPrice",
|
|
58
|
+
I: GetShopPriceRequest,
|
|
59
|
+
O: GetShopPriceResponse,
|
|
60
|
+
kind: MethodKind.Unary,
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetShopPriceDetail
|
|
64
|
+
*/
|
|
65
|
+
getShopPriceDetail: {
|
|
66
|
+
name: "GetShopPriceDetail",
|
|
67
|
+
I: GetShopPriceDetailRequest,
|
|
68
|
+
O: GetShopPriceDetailResponse,
|
|
69
|
+
kind: MethodKind.Unary,
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetPriceListingFeeDuration
|
|
73
|
+
*/
|
|
74
|
+
getPriceListingFeeDuration: {
|
|
75
|
+
name: "GetPriceListingFeeDuration",
|
|
76
|
+
I: GetPriceListingFeeDurationRequest,
|
|
77
|
+
O: GetPriceListingFeeDurationResponse,
|
|
78
|
+
kind: MethodKind.Unary,
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetAdExtensionPrices
|
|
82
|
+
*/
|
|
83
|
+
getAdExtensionPrices: {
|
|
84
|
+
name: "GetAdExtensionPrices",
|
|
85
|
+
I: GetAdExtensionPricesRequest,
|
|
86
|
+
O: GetAdExtensionPricesResponse,
|
|
87
|
+
kind: MethodKind.Unary,
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetAllListingFeePrice
|
|
91
|
+
*/
|
|
92
|
+
getAllListingFeePrice: {
|
|
93
|
+
name: "GetAllListingFeePrice",
|
|
94
|
+
I: GetAllListingFeePriceRequest,
|
|
95
|
+
O: GetAllListingFeePriceResponse,
|
|
96
|
+
kind: MethodKind.Unary,
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* ************ LOGIC PRICING ************
|
|
100
|
+
*
|
|
101
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.CheckIsPaidAd
|
|
102
|
+
*/
|
|
103
|
+
checkIsPaidAd: {
|
|
104
|
+
name: "CheckIsPaidAd",
|
|
105
|
+
I: CheckIsPaidAdRequest,
|
|
106
|
+
O: CheckIsPaidAdResponse,
|
|
107
|
+
kind: MethodKind.Unary,
|
|
108
|
+
},
|
|
109
|
+
/**
|
|
110
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetListingFeePrice
|
|
111
|
+
*/
|
|
112
|
+
getListingFeePrice: {
|
|
113
|
+
name: "GetListingFeePrice",
|
|
114
|
+
I: GetListingFeePriceRequest,
|
|
115
|
+
O: GetListingFeePriceResponse,
|
|
116
|
+
kind: MethodKind.Unary,
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetListPriceByListServiceType
|
|
120
|
+
*/
|
|
121
|
+
getListPriceByListServiceType: {
|
|
122
|
+
name: "GetListPriceByListServiceType",
|
|
123
|
+
I: GetListPriceByListServiceTypeRequest,
|
|
124
|
+
O: GetListPriceByListServiceTypeResponse,
|
|
125
|
+
kind: MethodKind.Unary,
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetListingFeeCondition
|
|
129
|
+
*/
|
|
130
|
+
getListingFeeCondition: {
|
|
131
|
+
name: "GetListingFeeCondition",
|
|
132
|
+
I: GetListingFeeConditionRequest,
|
|
133
|
+
O: GetListingFeeConditionResponse,
|
|
134
|
+
kind: MethodKind.Unary,
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ReleasePricingPromotionRedemption
|
|
138
|
+
*/
|
|
139
|
+
releasePricingPromotionRedemption: {
|
|
140
|
+
name: "ReleasePricingPromotionRedemption",
|
|
141
|
+
I: ReleasePricingPromotionRedemptionRequest,
|
|
142
|
+
O: ReleasePricingPromotionRedemptionResponse,
|
|
143
|
+
kind: MethodKind.Unary,
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
* ************ CORE PRICING ************
|
|
147
|
+
*
|
|
148
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetServicePriceDetail
|
|
149
|
+
*/
|
|
150
|
+
getServicePriceDetail: {
|
|
151
|
+
name: "GetServicePriceDetail",
|
|
152
|
+
I: GetServicePriceDetailRequest,
|
|
153
|
+
O: GetServicePriceDetailResponse,
|
|
154
|
+
kind: MethodKind.Unary,
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetPremiumServicePriceByListTargeting
|
|
158
|
+
*/
|
|
159
|
+
getPremiumServicePriceByListTargeting: {
|
|
160
|
+
name: "GetPremiumServicePriceByListTargeting",
|
|
161
|
+
I: GetPremiumServicePriceByListTargetingRequest,
|
|
162
|
+
O: GetPremiumServicePriceByListTargetingResponse,
|
|
163
|
+
kind: MethodKind.Unary,
|
|
164
|
+
},
|
|
165
|
+
/**
|
|
166
|
+
* ************ BACK-OFFICE PRICING ************
|
|
167
|
+
* backoffice common
|
|
168
|
+
*
|
|
169
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetPriceById
|
|
170
|
+
*/
|
|
171
|
+
getPriceById: {
|
|
172
|
+
name: "GetPriceById",
|
|
173
|
+
I: GetPriceByIdRequest,
|
|
174
|
+
O: GetPriceByIdResponse,
|
|
175
|
+
kind: MethodKind.Unary,
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.EditPrice
|
|
179
|
+
*/
|
|
180
|
+
editPrice: {
|
|
181
|
+
name: "EditPrice",
|
|
182
|
+
I: EditPriceRequest,
|
|
183
|
+
O: EditPriceResponse,
|
|
184
|
+
kind: MethodKind.Unary,
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ApprovePrice
|
|
188
|
+
*/
|
|
189
|
+
approvePrice: {
|
|
190
|
+
name: "ApprovePrice",
|
|
191
|
+
I: ApprovePriceRequest,
|
|
192
|
+
O: ApprovePriceResponse,
|
|
193
|
+
kind: MethodKind.Unary,
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.RejectPrice
|
|
197
|
+
*/
|
|
198
|
+
rejectPrice: {
|
|
199
|
+
name: "RejectPrice",
|
|
200
|
+
I: RejectPriceRequest,
|
|
201
|
+
O: RejectPriceResponse,
|
|
202
|
+
kind: MethodKind.Unary,
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.PublishPrice
|
|
206
|
+
*/
|
|
207
|
+
publishPrice: {
|
|
208
|
+
name: "PublishPrice",
|
|
209
|
+
I: PublishPriceRequest,
|
|
210
|
+
O: PublishPriceResponse,
|
|
211
|
+
kind: MethodKind.Unary,
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ImportPrice
|
|
215
|
+
*/
|
|
216
|
+
importPrice: {
|
|
217
|
+
name: "ImportPrice",
|
|
218
|
+
I: ImportPriceRequest,
|
|
219
|
+
O: ImportPriceResponse,
|
|
220
|
+
kind: MethodKind.Unary,
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* backoffice pricing service type
|
|
224
|
+
*
|
|
225
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetListPriceBackOffice
|
|
226
|
+
*/
|
|
227
|
+
getListPriceBackOffice: {
|
|
228
|
+
name: "GetListPriceBackOffice",
|
|
229
|
+
I: GetListPriceBackOfficeRequest,
|
|
230
|
+
O: GetListPriceBackOfficeResponse,
|
|
231
|
+
kind: MethodKind.Unary,
|
|
232
|
+
},
|
|
233
|
+
/**
|
|
234
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ApproveAllPriceByService
|
|
235
|
+
*/
|
|
236
|
+
approveAllPriceByService: {
|
|
237
|
+
name: "ApproveAllPriceByService",
|
|
238
|
+
I: ApproveAllPriceByServiceRequest,
|
|
239
|
+
O: ApproveAllPriceByServiceResponse,
|
|
240
|
+
kind: MethodKind.Unary,
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.RejectAllPriceByService
|
|
244
|
+
*/
|
|
245
|
+
rejectAllPriceByService: {
|
|
246
|
+
name: "RejectAllPriceByService",
|
|
247
|
+
I: RejectAllPriceByServiceRequest,
|
|
248
|
+
O: RejectAllPriceByServiceResponse,
|
|
249
|
+
kind: MethodKind.Unary,
|
|
250
|
+
},
|
|
251
|
+
/**
|
|
252
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.PublishAllPriceByService
|
|
253
|
+
*/
|
|
254
|
+
publishAllPriceByService: {
|
|
255
|
+
name: "PublishAllPriceByService",
|
|
256
|
+
I: PublishAllPriceByServiceRequest,
|
|
257
|
+
O: PublishAllPriceByServiceResponse,
|
|
258
|
+
kind: MethodKind.Unary,
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* backoffice pricing campaign
|
|
262
|
+
*
|
|
263
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.CreatePricingCampaign
|
|
264
|
+
*/
|
|
265
|
+
createPricingCampaign: {
|
|
266
|
+
name: "CreatePricingCampaign",
|
|
267
|
+
I: CreatePricingCampaignRequest,
|
|
268
|
+
O: CreatePricingCampaignResponse,
|
|
269
|
+
kind: MethodKind.Unary,
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.UpdatePricingCampaign
|
|
273
|
+
*/
|
|
274
|
+
updatePricingCampaign: {
|
|
275
|
+
name: "UpdatePricingCampaign",
|
|
276
|
+
I: UpdatePricingCampaignRequest,
|
|
277
|
+
O: UpdatePricingCampaignResponse,
|
|
278
|
+
kind: MethodKind.Unary,
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.DeletePricingCampaign
|
|
282
|
+
*/
|
|
283
|
+
deletePricingCampaign: {
|
|
284
|
+
name: "DeletePricingCampaign",
|
|
285
|
+
I: DeletePricingCampaignRequest,
|
|
286
|
+
O: DeletePricingCampaignResponse,
|
|
287
|
+
kind: MethodKind.Unary,
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetListPricingCampaign
|
|
291
|
+
*/
|
|
292
|
+
getListPricingCampaign: {
|
|
293
|
+
name: "GetListPricingCampaign",
|
|
294
|
+
I: GetListPricingCampaignRequest,
|
|
295
|
+
O: GetListPricingCampaignResponse,
|
|
296
|
+
kind: MethodKind.Unary,
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.GetPricingCampaignById
|
|
300
|
+
*/
|
|
301
|
+
getPricingCampaignById: {
|
|
302
|
+
name: "GetPricingCampaignById",
|
|
303
|
+
I: GetPricingCampaignByIdRequest,
|
|
304
|
+
O: GetPricingCampaignByIdResponse,
|
|
305
|
+
kind: MethodKind.Unary,
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ApproveAllPriceByCampaign
|
|
309
|
+
*/
|
|
310
|
+
approveAllPriceByCampaign: {
|
|
311
|
+
name: "ApproveAllPriceByCampaign",
|
|
312
|
+
I: ApproveAllPriceByCampaignRequest,
|
|
313
|
+
O: ApproveAllPriceByCampaignResponse,
|
|
314
|
+
kind: MethodKind.Unary,
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.RejectAllPriceByCampaign
|
|
318
|
+
*/
|
|
319
|
+
rejectAllPriceByCampaign: {
|
|
320
|
+
name: "RejectAllPriceByCampaign",
|
|
321
|
+
I: RejectAllPriceByCampaignRequest,
|
|
322
|
+
O: RejectAllPriceByCampaignResponse,
|
|
323
|
+
kind: MethodKind.Unary,
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.PublishAllPriceByCampaign
|
|
327
|
+
*/
|
|
328
|
+
publishAllPriceByCampaign: {
|
|
329
|
+
name: "PublishAllPriceByCampaign",
|
|
330
|
+
I: PublishAllPriceByCampaignRequest,
|
|
331
|
+
O: PublishAllPriceByCampaignResponse,
|
|
332
|
+
kind: MethodKind.Unary,
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.EditPriceItemCampaign
|
|
336
|
+
*/
|
|
337
|
+
editPriceItemCampaign: {
|
|
338
|
+
name: "EditPriceItemCampaign",
|
|
339
|
+
I: EditPriceItemCampaignRequest,
|
|
340
|
+
O: EditPriceItemCampaignResponse,
|
|
341
|
+
kind: MethodKind.Unary,
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.DeletePriceItemCampaign
|
|
345
|
+
*/
|
|
346
|
+
deletePriceItemCampaign: {
|
|
347
|
+
name: "DeletePriceItemCampaign",
|
|
348
|
+
I: DeletePriceItemCampaignRequest,
|
|
349
|
+
O: DeletePriceItemCampaignResponse,
|
|
350
|
+
kind: MethodKind.Unary,
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.ApprovePriceItemCampaign
|
|
354
|
+
*/
|
|
355
|
+
approvePriceItemCampaign: {
|
|
356
|
+
name: "ApprovePriceItemCampaign",
|
|
357
|
+
I: ApprovePriceItemCampaignRequest,
|
|
358
|
+
O: ApprovePriceItemCampaignResponse,
|
|
359
|
+
kind: MethodKind.Unary,
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumPricingService.RejectPriceItemCampaign
|
|
363
|
+
*/
|
|
364
|
+
rejectPriceItemCampaign: {
|
|
365
|
+
name: "RejectPriceItemCampaign",
|
|
366
|
+
I: RejectPriceItemCampaignRequest,
|
|
367
|
+
O: RejectPriceItemCampaignResponse,
|
|
368
|
+
kind: MethodKind.Unary,
|
|
369
|
+
},
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const fs = require('fs').promises;
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
async function modifyPackageJson() {
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
if (args.length < 4) {
|
|
7
|
+
console.error('Usage: node modify_package_json.js <packageExtractPath> <newName> <newVersion> <verdaccioHostname>');
|
|
8
|
+
process.exit(1);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const packageExtractPath = args[0]; // e.g., /tmp/npm-migration-xxxxxx/package
|
|
12
|
+
const newName = args[1];
|
|
13
|
+
const newVersion = args[2];
|
|
14
|
+
const verdaccioHostname = args[3]; // e.g., npmjs.cmco.io
|
|
15
|
+
|
|
16
|
+
const packageJsonPath = path.join(packageExtractPath, 'package.json');
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
console.log(`Reading package.json from: ${packageJsonPath}`);
|
|
20
|
+
let packageJsonContent = await fs.readFile(packageJsonPath, 'utf8');
|
|
21
|
+
let packageJson = JSON.parse(packageJsonContent);
|
|
22
|
+
|
|
23
|
+
console.log(`Original name: ${packageJson.name}, version: ${packageJson.version}`);
|
|
24
|
+
|
|
25
|
+
packageJson.name = newName;
|
|
26
|
+
packageJson.version = newVersion;
|
|
27
|
+
|
|
28
|
+
// Remove publishConfig if it points to the old Verdaccio registry
|
|
29
|
+
if (packageJson.publishConfig && packageJson.publishConfig.registry) {
|
|
30
|
+
try {
|
|
31
|
+
const publishRegistryUrl = new URL(packageJson.publishConfig.registry);
|
|
32
|
+
if (publishRegistryUrl.hostname === verdaccioHostname) {
|
|
33
|
+
delete packageJson.publishConfig;
|
|
34
|
+
console.log(`Removed publishConfig pointing to ${verdaccioHostname}`);
|
|
35
|
+
}
|
|
36
|
+
} catch (e) {
|
|
37
|
+
console.warn(`Could not parse publishConfig.registry: ${packageJson.publishConfig.registry}. Skipping removal.`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
42
|
+
console.log(`Successfully modified package.json. New name: ${packageJson.name}, new version: ${packageJson.version}`);
|
|
43
|
+
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error(`Error modifying package.json at ${packageJsonPath}:`, error);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
modifyPackageJson();
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_premium.v1;
|
|
4
|
+
|
|
5
|
+
// language specs
|
|
6
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-premium;pb";
|
|
7
|
+
|
|
8
|
+
message CheckSpecialDisplayAdRequest {
|
|
9
|
+
int64 ad_id = 1;
|
|
10
|
+
int64 category_id = 2;
|
|
11
|
+
int64 region_id = 3;
|
|
12
|
+
string ad_type = 4;
|
|
13
|
+
int64 account_id = 5;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message CheckSpecialDisplayAdResponse {
|
|
17
|
+
optional bool result = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message CancelSpecialDisplayServiceRequest {
|
|
21
|
+
int64 service_id =1;
|
|
22
|
+
int64 ad_id = 2;
|
|
23
|
+
int64 account_id = 3;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message CancelSpecialDisplayServiceResponse {
|
|
27
|
+
string status = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message DeliverySpecialDisplayServiceRequest {
|
|
31
|
+
int64 ad_id =1; // Ad Id for which the service is being delivered
|
|
32
|
+
int64 account_id = 2; // Account Id of the user who is receiving the service
|
|
33
|
+
int64 order_id = 3; // Order Id associated with the service, if applicable
|
|
34
|
+
int64 service_id = 4; // Unique identifier for the special display service
|
|
35
|
+
int64 duration = 5; // Duration in days
|
|
36
|
+
int64 start_time = 6; // Unix timestamp in seconds
|
|
37
|
+
string service_params = 7; // JSON string of service parameters
|
|
38
|
+
bool is_subscription = 8; // Indicates if the service is a subscription
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message DeliverySpecialDisplayServiceResponse {
|
|
42
|
+
string id = 1; // Unique identifier for the delivered service
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message RedeliverActiveSpecialDisplayServiceByListAds {
|
|
46
|
+
int64 ad_id = 1; // Ad Id for which the active service is being redelivered
|
|
47
|
+
int64 unix_expired_time = 2; // Unix timestamp in seconds when the service expired
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message RedeliverActiveSpecialDisplayServiceByListAdsRequest {
|
|
51
|
+
repeated RedeliverActiveSpecialDisplayServiceByListAds ads = 1; // List of Ad Ids for which the active services are being redelivered
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message RedeliverActiveSpecialDisplayServiceByListAdsResponse {
|
|
55
|
+
repeated int64 ad_ids = 1; // List of Ad Ids for each redelivered service
|
|
56
|
+
}
|