@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.
Files changed (93) hide show
  1. package/ad.proto +89 -0
  2. package/ad_delivery.proto +232 -0
  3. package/ad_delivery_pb.d.ts +1285 -0
  4. package/ad_delivery_pb.js +439 -0
  5. package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.d.ts +138 -0
  6. package/ad_delivery_service-LogicUniRevPremiumAdDeliveryService_connectquery.js +211 -0
  7. package/ad_delivery_service.proto +65 -0
  8. package/ad_delivery_service_connect.d.ts +125 -0
  9. package/ad_delivery_service_connect.js +125 -0
  10. package/ad_optimization.proto +111 -0
  11. package/ad_optimization_pb.d.ts +601 -0
  12. package/ad_optimization_pb.js +214 -0
  13. package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.d.ts +78 -0
  14. package/ad_optimization_service-LogicUniRevPremiumAdOptimizationService_connectquery.js +115 -0
  15. package/ad_optimization_service.proto +21 -0
  16. package/ad_optimization_service_connect.d.ts +71 -0
  17. package/ad_optimization_service_connect.js +71 -0
  18. package/ad_pb.d.ts +461 -0
  19. package/ad_pb.js +172 -0
  20. package/ad_service-LogicUniRevPremiumAdService_connectquery.d.ts +58 -0
  21. package/ad_service-LogicUniRevPremiumAdService_connectquery.js +83 -0
  22. package/ad_service.proto +15 -0
  23. package/ad_service_connect.d.ts +53 -0
  24. package/ad_service_connect.js +53 -0
  25. package/ad_social_platform.proto +108 -0
  26. package/ad_social_platform_pb.d.ts +474 -0
  27. package/ad_social_platform_pb.js +156 -0
  28. package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.d.ts +68 -0
  29. package/ad_social_platform_service-LogicUniRevPremiumAdSocialPlatformService_connectquery.js +99 -0
  30. package/ad_social_platform_service.proto +23 -0
  31. package/ad_social_platform_service_connect.d.ts +62 -0
  32. package/ad_social_platform_service_connect.js +62 -0
  33. package/bump_ad.proto +162 -0
  34. package/bump_ad_pb.d.ts +869 -0
  35. package/bump_ad_pb.js +308 -0
  36. package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.d.ts +123 -0
  37. package/bump_ad_service-LogicUniRevPremiumBumpAdService_connectquery.js +189 -0
  38. package/bump_ad_service.proto +56 -0
  39. package/bump_ad_service_connect.d.ts +112 -0
  40. package/bump_ad_service_connect.js +112 -0
  41. package/free_ps.proto +527 -0
  42. package/free_ps_pb.d.ts +2848 -0
  43. package/free_ps_pb.js +934 -0
  44. package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.d.ts +304 -0
  45. package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.js +483 -0
  46. package/free_ps_service.proto +62 -0
  47. package/free_ps_service_connect.d.ts +276 -0
  48. package/free_ps_service_connect.js +276 -0
  49. package/listing_tier.proto +228 -0
  50. package/listing_tier_pb.d.ts +1032 -0
  51. package/listing_tier_pb.js +365 -0
  52. package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.d.ts +108 -0
  53. package/listing_tier_service-LogicUniRevPremiumListingTierService_connectquery.js +163 -0
  54. package/listing_tier_service.proto +19 -0
  55. package/listing_tier_service_connect.d.ts +98 -0
  56. package/listing_tier_service_connect.js +98 -0
  57. package/onbehalf.proto +91 -0
  58. package/onbehalf_pb.d.ts +411 -0
  59. package/onbehalf_pb.js +138 -0
  60. package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.d.ts +28 -0
  61. package/onbehalf_service-LogicUniRevPremiumOnbehalfService_connectquery.js +35 -0
  62. package/onbehalf_service.proto +11 -0
  63. package/onbehalf_service_connect.d.ts +26 -0
  64. package/onbehalf_service_connect.js +26 -0
  65. package/package.json +10 -0
  66. package/premium_services.proto +1005 -0
  67. package/premium_services_pb.d.ts +5465 -0
  68. package/premium_services_pb.js +1840 -0
  69. package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.d.ts +496 -0
  70. package/premium_services_service-LogicUniRevPremiumPremiumServicesService_connectquery.js +787 -0
  71. package/premium_services_service.proto +132 -0
  72. package/premium_services_service_connect.d.ts +448 -0
  73. package/premium_services_service_connect.js +448 -0
  74. package/pricing.proto +722 -0
  75. package/pricing_pb.d.ts +3949 -0
  76. package/pricing_pb.js +1372 -0
  77. package/pricing_service-LogicUniRevPremiumPricingService_connectquery.d.ts +411 -0
  78. package/pricing_service-LogicUniRevPremiumPricingService_connectquery.js +653 -0
  79. package/pricing_service.proto +63 -0
  80. package/pricing_service_connect.d.ts +372 -0
  81. package/pricing_service_connect.js +372 -0
  82. package/scripts/modify_package_json.js +50 -0
  83. package/special_display.proto +56 -0
  84. package/special_display_pb.d.ts +322 -0
  85. package/special_display_pb.js +113 -0
  86. package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.d.ts +58 -0
  87. package/special_display_service-LogicUniRevPremiumSpecialDisplayService_connectquery.js +83 -0
  88. package/special_display_service.proto +24 -0
  89. package/special_display_service_connect.d.ts +53 -0
  90. package/special_display_service_connect.js +53 -0
  91. package/sticky_adinfo.proto +312 -0
  92. package/sticky_adinfo_pb.d.ts +1463 -0
  93. package/sticky_adinfo_pb.js +328 -0
package/ad.proto ADDED
@@ -0,0 +1,89 @@
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
+ // import third party protos
9
+ import "validate/validate.proto";
10
+ import "google/protobuf/timestamp.proto";
11
+
12
+ message ValidateCartOfAdServiceRequest {
13
+ string platform = 1;
14
+ string version = 2;
15
+ CartInfo cart_info = 3;
16
+ string action = 4;
17
+ }
18
+
19
+ message ValidateCartOfAdServiceResponse {
20
+ map<int64, ValidatedInfo> validated_info = 1;
21
+ }
22
+
23
+ message ProcessCartServicesBeforeCheckoutRequest {
24
+ string platform = 1;
25
+ string version = 2;
26
+ CartInfo cart_info = 3;
27
+ }
28
+
29
+ message ProcessCartServicesBeforeCheckoutResponse {
30
+ map<int64, ValidatedInfo> validated_info = 1;
31
+ }
32
+
33
+ message ValidatedInfo {
34
+ bool need_remove_ad = 1;
35
+ repeated CartService services = 2;
36
+ }
37
+
38
+ message CartInfo {
39
+ int64 account_id = 1;
40
+ string cart_type = 2;
41
+ repeated CartService services = 3;
42
+ }
43
+
44
+ message CartService {
45
+ int64 ad_id = 1;
46
+ string type = 2;
47
+ string params = 3;
48
+ int64 duration = 4;
49
+ ServiceMetadata service_metadata = 5;
50
+ ServicePrice service_price = 6;
51
+ }
52
+
53
+ message ServicePrice {
54
+ int64 vnd = 1;
55
+ int64 credit = 2;
56
+ int64 promotion = 3;
57
+ }
58
+
59
+ message ServiceMetadata {
60
+ bool contains_bundle_listing_fee = 1;
61
+ bool need_remove_service = 2;
62
+ int64 bundle_id = 3;
63
+ string error_msg = 4;
64
+ }
65
+
66
+ message CheckConditionRequest {
67
+ int64 ad_id = 1 [(validate.rules).int64.gt = 0];
68
+ string service = 2;
69
+ }
70
+
71
+ message AdExtensionCondition {
72
+ bool can_extend = 1;
73
+ bool is_paid_ad = 2;
74
+ int64 pending_day = 3;
75
+ }
76
+
77
+ message CheckConditionResponse {
78
+ AdExtensionCondition ad_extension = 1;
79
+ }
80
+
81
+ message ExtendFreeAdRequest {
82
+ int64 ad_id = 1 [(validate.rules).int64.gt = 0];
83
+ int64 account_id = 2 [(validate.rules).int64.gt = 0];
84
+ }
85
+
86
+ message ExtendFreeAdResponse {
87
+ string message = 1;
88
+ google.protobuf.Timestamp expected_extensive_date = 9;
89
+ }
@@ -0,0 +1,232 @@
1
+ // general
2
+ syntax = "proto3";
3
+ package ct_logic_uni_rev_premium.v1;
4
+
5
+ import "google/protobuf/any.proto";
6
+ import "validate/validate.proto";
7
+
8
+ // language specs
9
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-premium;pb";
10
+
11
+ import "google/protobuf/timestamp.proto";
12
+
13
+ message GetCurrentNetworkRequest {}
14
+
15
+ message GetCurrentNetworkResponse {}
16
+
17
+ message GetAdDeliveryMatchedAdRequest {
18
+ AdDeliveryPageContext page_context = 1;
19
+ AdDeliveryUserContext user_context = 2;
20
+ }
21
+
22
+ message GetAdDeliveryMatchedAdResponse {
23
+ string network_code = 1;
24
+ string gam_ad_unit = 2;
25
+ string native_format_id = 3;
26
+ repeated int64 list_ad_id = 4;
27
+ repeated ListAdIdWithRequest list_ad_id_with_request = 5;
28
+ }
29
+
30
+ message ListAdIdWithRequest {
31
+ int64 no_request = 1;
32
+ repeated int64 ad_ids = 2;
33
+ }
34
+
35
+ message AdDeliveryPageContext {
36
+ repeated int64 region_id = 1;
37
+ repeated int64 area_id = 2;
38
+ int64 category_id = 3;
39
+ string price_range = 4;
40
+ string placement = 5;
41
+ string screen_name = 6;
42
+ string search_key_word = 7;
43
+ string page_meta_data = 8;
44
+ map<string, google.protobuf.Any> filter_params = 9;
45
+ int64 ad_id = 10;
46
+ int64 limit = 11;
47
+ int64 offset = 12;
48
+ }
49
+
50
+ message AdDeliveryUserContext {
51
+ int64 account_id = 1;
52
+ string fingerprint = 2;
53
+ string platform = 3;
54
+ string device = 4;
55
+ string browser = 5;
56
+ string os_version = 6;
57
+ float longitude = 7;
58
+ float latitude = 8;
59
+ }
60
+
61
+ message CampaignDeliveryStatusMessage {
62
+ string campaign_delivery_id = 1;
63
+ int64 ad_id = 2;
64
+ string status = 3;
65
+ repeated int64 campaign_region_ids = 4;
66
+ }
67
+
68
+ message CreateCampaignRequest {
69
+ string package_id = 1 [(validate.rules).string.uuid = true];
70
+ string name = 2;
71
+ string key = 3;
72
+ string type = 4;
73
+ int64 order_id = 5 [(validate.rules).int64.gt = 0];
74
+ int64 service_id = 6 [(validate.rules).int64.gt = 0];
75
+ int64 account_id = 7 [(validate.rules).int64.gt = 0];
76
+ google.protobuf.Timestamp start_time = 8;
77
+ google.protobuf.Timestamp end_time = 9;
78
+ string payment_link = 10;
79
+ repeated int64 region_ids = 11;
80
+ repeated int64 ad_ids = 12;
81
+ repeated AdConfig ad_configs = 13;
82
+ }
83
+
84
+ message AdConfig {
85
+ bool is_high_score = 1;
86
+ repeated Benefit benefits = 2;
87
+ int64 ad_id = 3;
88
+ }
89
+
90
+ message Benefit {
91
+ string label = 1;
92
+ }
93
+
94
+ message CreateCampaignResponse{
95
+ string campaign_id = 1;
96
+ }
97
+
98
+ message UpdateCampaignPaymentStatusRequest {
99
+ string campaign_id = 1;
100
+ string order_id = 2;
101
+ }
102
+
103
+ message UpdateCampaignPaymentStatusResponse {}
104
+
105
+ message UpdateCampaignDeliveryMessage {
106
+ int64 account_id = 1;
107
+ string action = 2;
108
+ string action_type = 3;
109
+ int64 ad_id = 4;
110
+ string ad_type = 5;
111
+ int64 category = 6;
112
+ bool is_auto_edited = 7;
113
+ int64 list_id = 8;
114
+ int64 region = 9;
115
+ string subject = 10;
116
+ AdConfig ad_config = 11;
117
+ }
118
+
119
+ message GetPackagesRequest {
120
+ int64 limit = 1;
121
+ int64 offset = 2;
122
+ }
123
+
124
+ message GetPackagesResponse {
125
+ repeated PackageResponse packages = 1;
126
+ }
127
+
128
+ message PackageResponse {
129
+ string id = 1;
130
+ string name = 2;
131
+ string key = 3;
132
+ string type = 4;
133
+ int64 price_vnd = 5;
134
+ int64 price_credit = 6;
135
+ int64 price_promotion = 7;
136
+ string status = 8;
137
+ google.protobuf.Timestamp created_at = 9;
138
+ google.protobuf.Timestamp updated_at = 10;
139
+ ConditionResponse condition = 11;
140
+ int64 number_of_ads = 12;
141
+ int64 number_of_clicks = 13;
142
+ int64 duration = 14;
143
+ }
144
+
145
+ message ConditionResponse {
146
+ int64 big_category = 1;
147
+ repeated int64 category = 2;
148
+ }
149
+
150
+
151
+ message GetCampaignsRequest {
152
+ int64 limit = 1;
153
+ int64 offset = 2;
154
+ }
155
+
156
+ message GetCampaignsResponse {
157
+ repeated CampaignWithCampaignDeliveries campaigns = 1;
158
+ }
159
+
160
+ message CampaignWithCampaignDeliveries {
161
+ string id = 1;
162
+ string package_id = 2;
163
+ string name = 3;
164
+ string key = 4;
165
+ string type = 5;
166
+ int64 order_id = 6;
167
+ int64 service_id = 7;
168
+ int64 account_id = 8;
169
+ string status = 9;
170
+ string payment_status = 10;
171
+ google.protobuf.Timestamp start_time = 11;
172
+ google.protobuf.Timestamp end_time = 12;
173
+ repeated int64 region_ids = 13;
174
+ repeated CampaignDelivery campaign_deliveries = 14;
175
+ }
176
+
177
+ message CampaignDelivery {
178
+ string id = 1;
179
+ int64 ad_id = 2;
180
+ string campaign_id = 3;
181
+ int64 list_id = 4;
182
+ int64 gam_line_item_id = 5;
183
+ int64 gam_creative_id = 6;
184
+ string status = 7;
185
+ google.protobuf.Timestamp created_at = 8;
186
+ google.protobuf.Timestamp updated_at = 9;
187
+ AdConfig ad_config = 10;
188
+ }
189
+
190
+ message PauseCampaignRequest {
191
+ string campaign_id = 1;
192
+ }
193
+
194
+ message PauseCampaignResponse {}
195
+
196
+ message PauseCampaignDeliveryRequest {
197
+ string campaign_delivery_id = 1;
198
+ }
199
+
200
+ message PauseCampaignDeliveryResponse {}
201
+
202
+ message CancelCampaignDeliveryRequest {
203
+ string campaign_delivery_id = 1;
204
+ }
205
+
206
+ message CancelCampaignDeliveryResponse {}
207
+
208
+ message CreateCampaignDeliveryRequest {
209
+ string campaign_id = 1;
210
+ int64 ad_id = 2;
211
+ AdConfig ad_config = 3;
212
+ }
213
+
214
+ message CreateCampaignDeliveryResponse {
215
+ string campaign_delivery_id = 1;
216
+ }
217
+
218
+ message UpdateCampaignDeliveryAdInfoRequest {
219
+ string campaign_delivery_id = 1;
220
+ int64 ad_id = 2;
221
+ AdConfig ad_config = 3;
222
+ }
223
+
224
+ message UpdateCampaignDeliveryAdInfoResponse {}
225
+
226
+ message GetCampaignRequest {
227
+ string id = 1;
228
+ }
229
+
230
+ message GetCampaignResponse {
231
+ CampaignWithCampaignDeliveries campaign = 1;
232
+ }