@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_pb.d.ts ADDED
@@ -0,0 +1,461 @@
1
+ // general
2
+
3
+ // @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
4
+ // @generated from file ct-logic-uni-rev-premium/v1/ad.proto (package ct_logic_uni_rev_premium.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
9
+ import { Message, proto3 } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * @generated from message ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceRequest
13
+ */
14
+ export declare class ValidateCartOfAdServiceRequest extends Message<ValidateCartOfAdServiceRequest> {
15
+ /**
16
+ * @generated from field: string platform = 1;
17
+ */
18
+ platform: string;
19
+
20
+ /**
21
+ * @generated from field: string version = 2;
22
+ */
23
+ version: string;
24
+
25
+ /**
26
+ * @generated from field: ct_logic_uni_rev_premium.v1.CartInfo cart_info = 3;
27
+ */
28
+ cartInfo?: CartInfo;
29
+
30
+ /**
31
+ * @generated from field: string action = 4;
32
+ */
33
+ action: string;
34
+
35
+ constructor(data?: PartialMessage<ValidateCartOfAdServiceRequest>);
36
+
37
+ static readonly runtime: typeof proto3;
38
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceRequest";
39
+ static readonly fields: FieldList;
40
+
41
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ValidateCartOfAdServiceRequest;
42
+
43
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidateCartOfAdServiceRequest;
44
+
45
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidateCartOfAdServiceRequest;
46
+
47
+ static equals(a: ValidateCartOfAdServiceRequest | PlainMessage<ValidateCartOfAdServiceRequest> | undefined, b: ValidateCartOfAdServiceRequest | PlainMessage<ValidateCartOfAdServiceRequest> | undefined): boolean;
48
+ }
49
+
50
+ /**
51
+ * @generated from message ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceResponse
52
+ */
53
+ export declare class ValidateCartOfAdServiceResponse extends Message<ValidateCartOfAdServiceResponse> {
54
+ /**
55
+ * @generated from field: map<int64, ct_logic_uni_rev_premium.v1.ValidatedInfo> validated_info = 1;
56
+ */
57
+ validatedInfo: { [key: string]: ValidatedInfo };
58
+
59
+ constructor(data?: PartialMessage<ValidateCartOfAdServiceResponse>);
60
+
61
+ static readonly runtime: typeof proto3;
62
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceResponse";
63
+ static readonly fields: FieldList;
64
+
65
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ValidateCartOfAdServiceResponse;
66
+
67
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidateCartOfAdServiceResponse;
68
+
69
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidateCartOfAdServiceResponse;
70
+
71
+ static equals(a: ValidateCartOfAdServiceResponse | PlainMessage<ValidateCartOfAdServiceResponse> | undefined, b: ValidateCartOfAdServiceResponse | PlainMessage<ValidateCartOfAdServiceResponse> | undefined): boolean;
72
+ }
73
+
74
+ /**
75
+ * @generated from message ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutRequest
76
+ */
77
+ export declare class ProcessCartServicesBeforeCheckoutRequest extends Message<ProcessCartServicesBeforeCheckoutRequest> {
78
+ /**
79
+ * @generated from field: string platform = 1;
80
+ */
81
+ platform: string;
82
+
83
+ /**
84
+ * @generated from field: string version = 2;
85
+ */
86
+ version: string;
87
+
88
+ /**
89
+ * @generated from field: ct_logic_uni_rev_premium.v1.CartInfo cart_info = 3;
90
+ */
91
+ cartInfo?: CartInfo;
92
+
93
+ constructor(data?: PartialMessage<ProcessCartServicesBeforeCheckoutRequest>);
94
+
95
+ static readonly runtime: typeof proto3;
96
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutRequest";
97
+ static readonly fields: FieldList;
98
+
99
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessCartServicesBeforeCheckoutRequest;
100
+
101
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessCartServicesBeforeCheckoutRequest;
102
+
103
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessCartServicesBeforeCheckoutRequest;
104
+
105
+ static equals(a: ProcessCartServicesBeforeCheckoutRequest | PlainMessage<ProcessCartServicesBeforeCheckoutRequest> | undefined, b: ProcessCartServicesBeforeCheckoutRequest | PlainMessage<ProcessCartServicesBeforeCheckoutRequest> | undefined): boolean;
106
+ }
107
+
108
+ /**
109
+ * @generated from message ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutResponse
110
+ */
111
+ export declare class ProcessCartServicesBeforeCheckoutResponse extends Message<ProcessCartServicesBeforeCheckoutResponse> {
112
+ /**
113
+ * @generated from field: map<int64, ct_logic_uni_rev_premium.v1.ValidatedInfo> validated_info = 1;
114
+ */
115
+ validatedInfo: { [key: string]: ValidatedInfo };
116
+
117
+ constructor(data?: PartialMessage<ProcessCartServicesBeforeCheckoutResponse>);
118
+
119
+ static readonly runtime: typeof proto3;
120
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutResponse";
121
+ static readonly fields: FieldList;
122
+
123
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessCartServicesBeforeCheckoutResponse;
124
+
125
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessCartServicesBeforeCheckoutResponse;
126
+
127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessCartServicesBeforeCheckoutResponse;
128
+
129
+ static equals(a: ProcessCartServicesBeforeCheckoutResponse | PlainMessage<ProcessCartServicesBeforeCheckoutResponse> | undefined, b: ProcessCartServicesBeforeCheckoutResponse | PlainMessage<ProcessCartServicesBeforeCheckoutResponse> | undefined): boolean;
130
+ }
131
+
132
+ /**
133
+ * @generated from message ct_logic_uni_rev_premium.v1.ValidatedInfo
134
+ */
135
+ export declare class ValidatedInfo extends Message<ValidatedInfo> {
136
+ /**
137
+ * @generated from field: bool need_remove_ad = 1;
138
+ */
139
+ needRemoveAd: boolean;
140
+
141
+ /**
142
+ * @generated from field: repeated ct_logic_uni_rev_premium.v1.CartService services = 2;
143
+ */
144
+ services: CartService[];
145
+
146
+ constructor(data?: PartialMessage<ValidatedInfo>);
147
+
148
+ static readonly runtime: typeof proto3;
149
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ValidatedInfo";
150
+ static readonly fields: FieldList;
151
+
152
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ValidatedInfo;
153
+
154
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidatedInfo;
155
+
156
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidatedInfo;
157
+
158
+ static equals(a: ValidatedInfo | PlainMessage<ValidatedInfo> | undefined, b: ValidatedInfo | PlainMessage<ValidatedInfo> | undefined): boolean;
159
+ }
160
+
161
+ /**
162
+ * @generated from message ct_logic_uni_rev_premium.v1.CartInfo
163
+ */
164
+ export declare class CartInfo extends Message<CartInfo> {
165
+ /**
166
+ * @generated from field: int64 account_id = 1;
167
+ */
168
+ accountId: bigint;
169
+
170
+ /**
171
+ * @generated from field: string cart_type = 2;
172
+ */
173
+ cartType: string;
174
+
175
+ /**
176
+ * @generated from field: repeated ct_logic_uni_rev_premium.v1.CartService services = 3;
177
+ */
178
+ services: CartService[];
179
+
180
+ constructor(data?: PartialMessage<CartInfo>);
181
+
182
+ static readonly runtime: typeof proto3;
183
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.CartInfo";
184
+ static readonly fields: FieldList;
185
+
186
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CartInfo;
187
+
188
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CartInfo;
189
+
190
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CartInfo;
191
+
192
+ static equals(a: CartInfo | PlainMessage<CartInfo> | undefined, b: CartInfo | PlainMessage<CartInfo> | undefined): boolean;
193
+ }
194
+
195
+ /**
196
+ * @generated from message ct_logic_uni_rev_premium.v1.CartService
197
+ */
198
+ export declare class CartService extends Message<CartService> {
199
+ /**
200
+ * @generated from field: int64 ad_id = 1;
201
+ */
202
+ adId: bigint;
203
+
204
+ /**
205
+ * @generated from field: string type = 2;
206
+ */
207
+ type: string;
208
+
209
+ /**
210
+ * @generated from field: string params = 3;
211
+ */
212
+ params: string;
213
+
214
+ /**
215
+ * @generated from field: int64 duration = 4;
216
+ */
217
+ duration: bigint;
218
+
219
+ /**
220
+ * @generated from field: ct_logic_uni_rev_premium.v1.ServiceMetadata service_metadata = 5;
221
+ */
222
+ serviceMetadata?: ServiceMetadata;
223
+
224
+ /**
225
+ * @generated from field: ct_logic_uni_rev_premium.v1.ServicePrice service_price = 6;
226
+ */
227
+ servicePrice?: ServicePrice;
228
+
229
+ constructor(data?: PartialMessage<CartService>);
230
+
231
+ static readonly runtime: typeof proto3;
232
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.CartService";
233
+ static readonly fields: FieldList;
234
+
235
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CartService;
236
+
237
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CartService;
238
+
239
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CartService;
240
+
241
+ static equals(a: CartService | PlainMessage<CartService> | undefined, b: CartService | PlainMessage<CartService> | undefined): boolean;
242
+ }
243
+
244
+ /**
245
+ * @generated from message ct_logic_uni_rev_premium.v1.ServicePrice
246
+ */
247
+ export declare class ServicePrice extends Message<ServicePrice> {
248
+ /**
249
+ * @generated from field: int64 vnd = 1;
250
+ */
251
+ vnd: bigint;
252
+
253
+ /**
254
+ * @generated from field: int64 credit = 2;
255
+ */
256
+ credit: bigint;
257
+
258
+ /**
259
+ * @generated from field: int64 promotion = 3;
260
+ */
261
+ promotion: bigint;
262
+
263
+ constructor(data?: PartialMessage<ServicePrice>);
264
+
265
+ static readonly runtime: typeof proto3;
266
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ServicePrice";
267
+ static readonly fields: FieldList;
268
+
269
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServicePrice;
270
+
271
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServicePrice;
272
+
273
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServicePrice;
274
+
275
+ static equals(a: ServicePrice | PlainMessage<ServicePrice> | undefined, b: ServicePrice | PlainMessage<ServicePrice> | undefined): boolean;
276
+ }
277
+
278
+ /**
279
+ * @generated from message ct_logic_uni_rev_premium.v1.ServiceMetadata
280
+ */
281
+ export declare class ServiceMetadata extends Message<ServiceMetadata> {
282
+ /**
283
+ * @generated from field: bool contains_bundle_listing_fee = 1;
284
+ */
285
+ containsBundleListingFee: boolean;
286
+
287
+ /**
288
+ * @generated from field: bool need_remove_service = 2;
289
+ */
290
+ needRemoveService: boolean;
291
+
292
+ /**
293
+ * @generated from field: int64 bundle_id = 3;
294
+ */
295
+ bundleId: bigint;
296
+
297
+ /**
298
+ * @generated from field: string error_msg = 4;
299
+ */
300
+ errorMsg: string;
301
+
302
+ constructor(data?: PartialMessage<ServiceMetadata>);
303
+
304
+ static readonly runtime: typeof proto3;
305
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ServiceMetadata";
306
+ static readonly fields: FieldList;
307
+
308
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceMetadata;
309
+
310
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceMetadata;
311
+
312
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceMetadata;
313
+
314
+ static equals(a: ServiceMetadata | PlainMessage<ServiceMetadata> | undefined, b: ServiceMetadata | PlainMessage<ServiceMetadata> | undefined): boolean;
315
+ }
316
+
317
+ /**
318
+ * @generated from message ct_logic_uni_rev_premium.v1.CheckConditionRequest
319
+ */
320
+ export declare class CheckConditionRequest extends Message<CheckConditionRequest> {
321
+ /**
322
+ * @generated from field: int64 ad_id = 1;
323
+ */
324
+ adId: bigint;
325
+
326
+ /**
327
+ * @generated from field: string service = 2;
328
+ */
329
+ service: string;
330
+
331
+ constructor(data?: PartialMessage<CheckConditionRequest>);
332
+
333
+ static readonly runtime: typeof proto3;
334
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.CheckConditionRequest";
335
+ static readonly fields: FieldList;
336
+
337
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckConditionRequest;
338
+
339
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckConditionRequest;
340
+
341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckConditionRequest;
342
+
343
+ static equals(a: CheckConditionRequest | PlainMessage<CheckConditionRequest> | undefined, b: CheckConditionRequest | PlainMessage<CheckConditionRequest> | undefined): boolean;
344
+ }
345
+
346
+ /**
347
+ * @generated from message ct_logic_uni_rev_premium.v1.AdExtensionCondition
348
+ */
349
+ export declare class AdExtensionCondition extends Message<AdExtensionCondition> {
350
+ /**
351
+ * @generated from field: bool can_extend = 1;
352
+ */
353
+ canExtend: boolean;
354
+
355
+ /**
356
+ * @generated from field: bool is_paid_ad = 2;
357
+ */
358
+ isPaidAd: boolean;
359
+
360
+ /**
361
+ * @generated from field: int64 pending_day = 3;
362
+ */
363
+ pendingDay: bigint;
364
+
365
+ constructor(data?: PartialMessage<AdExtensionCondition>);
366
+
367
+ static readonly runtime: typeof proto3;
368
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.AdExtensionCondition";
369
+ static readonly fields: FieldList;
370
+
371
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdExtensionCondition;
372
+
373
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdExtensionCondition;
374
+
375
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdExtensionCondition;
376
+
377
+ static equals(a: AdExtensionCondition | PlainMessage<AdExtensionCondition> | undefined, b: AdExtensionCondition | PlainMessage<AdExtensionCondition> | undefined): boolean;
378
+ }
379
+
380
+ /**
381
+ * @generated from message ct_logic_uni_rev_premium.v1.CheckConditionResponse
382
+ */
383
+ export declare class CheckConditionResponse extends Message<CheckConditionResponse> {
384
+ /**
385
+ * @generated from field: ct_logic_uni_rev_premium.v1.AdExtensionCondition ad_extension = 1;
386
+ */
387
+ adExtension?: AdExtensionCondition;
388
+
389
+ constructor(data?: PartialMessage<CheckConditionResponse>);
390
+
391
+ static readonly runtime: typeof proto3;
392
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.CheckConditionResponse";
393
+ static readonly fields: FieldList;
394
+
395
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckConditionResponse;
396
+
397
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckConditionResponse;
398
+
399
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckConditionResponse;
400
+
401
+ static equals(a: CheckConditionResponse | PlainMessage<CheckConditionResponse> | undefined, b: CheckConditionResponse | PlainMessage<CheckConditionResponse> | undefined): boolean;
402
+ }
403
+
404
+ /**
405
+ * @generated from message ct_logic_uni_rev_premium.v1.ExtendFreeAdRequest
406
+ */
407
+ export declare class ExtendFreeAdRequest extends Message<ExtendFreeAdRequest> {
408
+ /**
409
+ * @generated from field: int64 ad_id = 1;
410
+ */
411
+ adId: bigint;
412
+
413
+ /**
414
+ * @generated from field: int64 account_id = 2;
415
+ */
416
+ accountId: bigint;
417
+
418
+ constructor(data?: PartialMessage<ExtendFreeAdRequest>);
419
+
420
+ static readonly runtime: typeof proto3;
421
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ExtendFreeAdRequest";
422
+ static readonly fields: FieldList;
423
+
424
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtendFreeAdRequest;
425
+
426
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtendFreeAdRequest;
427
+
428
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtendFreeAdRequest;
429
+
430
+ static equals(a: ExtendFreeAdRequest | PlainMessage<ExtendFreeAdRequest> | undefined, b: ExtendFreeAdRequest | PlainMessage<ExtendFreeAdRequest> | undefined): boolean;
431
+ }
432
+
433
+ /**
434
+ * @generated from message ct_logic_uni_rev_premium.v1.ExtendFreeAdResponse
435
+ */
436
+ export declare class ExtendFreeAdResponse extends Message<ExtendFreeAdResponse> {
437
+ /**
438
+ * @generated from field: string message = 1;
439
+ */
440
+ message: string;
441
+
442
+ /**
443
+ * @generated from field: google.protobuf.Timestamp expected_extensive_date = 9;
444
+ */
445
+ expectedExtensiveDate?: Timestamp;
446
+
447
+ constructor(data?: PartialMessage<ExtendFreeAdResponse>);
448
+
449
+ static readonly runtime: typeof proto3;
450
+ static readonly typeName = "ct_logic_uni_rev_premium.v1.ExtendFreeAdResponse";
451
+ static readonly fields: FieldList;
452
+
453
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtendFreeAdResponse;
454
+
455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtendFreeAdResponse;
456
+
457
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtendFreeAdResponse;
458
+
459
+ static equals(a: ExtendFreeAdResponse | PlainMessage<ExtendFreeAdResponse> | undefined, b: ExtendFreeAdResponse | PlainMessage<ExtendFreeAdResponse> | undefined): boolean;
460
+ }
461
+
package/ad_pb.js ADDED
@@ -0,0 +1,172 @@
1
+ // general
2
+
3
+ // @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
4
+ // @generated from file ct-logic-uni-rev-premium/v1/ad.proto (package ct_logic_uni_rev_premium.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import { proto3, Timestamp } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * @generated from message ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceRequest
12
+ */
13
+ export const ValidateCartOfAdServiceRequest = proto3.makeMessageType(
14
+ "ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceRequest",
15
+ () => [
16
+ { no: 1, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
18
+ { no: 3, name: "cart_info", kind: "message", T: CartInfo },
19
+ { no: 4, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
20
+ ],
21
+ );
22
+
23
+ /**
24
+ * @generated from message ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceResponse
25
+ */
26
+ export const ValidateCartOfAdServiceResponse = proto3.makeMessageType(
27
+ "ct_logic_uni_rev_premium.v1.ValidateCartOfAdServiceResponse",
28
+ () => [
29
+ { no: 1, name: "validated_info", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: ValidatedInfo} },
30
+ ],
31
+ );
32
+
33
+ /**
34
+ * @generated from message ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutRequest
35
+ */
36
+ export const ProcessCartServicesBeforeCheckoutRequest = proto3.makeMessageType(
37
+ "ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutRequest",
38
+ () => [
39
+ { no: 1, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
40
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
41
+ { no: 3, name: "cart_info", kind: "message", T: CartInfo },
42
+ ],
43
+ );
44
+
45
+ /**
46
+ * @generated from message ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutResponse
47
+ */
48
+ export const ProcessCartServicesBeforeCheckoutResponse = proto3.makeMessageType(
49
+ "ct_logic_uni_rev_premium.v1.ProcessCartServicesBeforeCheckoutResponse",
50
+ () => [
51
+ { no: 1, name: "validated_info", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: ValidatedInfo} },
52
+ ],
53
+ );
54
+
55
+ /**
56
+ * @generated from message ct_logic_uni_rev_premium.v1.ValidatedInfo
57
+ */
58
+ export const ValidatedInfo = proto3.makeMessageType(
59
+ "ct_logic_uni_rev_premium.v1.ValidatedInfo",
60
+ () => [
61
+ { no: 1, name: "need_remove_ad", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
62
+ { no: 2, name: "services", kind: "message", T: CartService, repeated: true },
63
+ ],
64
+ );
65
+
66
+ /**
67
+ * @generated from message ct_logic_uni_rev_premium.v1.CartInfo
68
+ */
69
+ export const CartInfo = proto3.makeMessageType(
70
+ "ct_logic_uni_rev_premium.v1.CartInfo",
71
+ () => [
72
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
73
+ { no: 2, name: "cart_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ { no: 3, name: "services", kind: "message", T: CartService, repeated: true },
75
+ ],
76
+ );
77
+
78
+ /**
79
+ * @generated from message ct_logic_uni_rev_premium.v1.CartService
80
+ */
81
+ export const CartService = proto3.makeMessageType(
82
+ "ct_logic_uni_rev_premium.v1.CartService",
83
+ () => [
84
+ { no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
85
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
+ { no: 3, name: "params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 4, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
88
+ { no: 5, name: "service_metadata", kind: "message", T: ServiceMetadata },
89
+ { no: 6, name: "service_price", kind: "message", T: ServicePrice },
90
+ ],
91
+ );
92
+
93
+ /**
94
+ * @generated from message ct_logic_uni_rev_premium.v1.ServicePrice
95
+ */
96
+ export const ServicePrice = proto3.makeMessageType(
97
+ "ct_logic_uni_rev_premium.v1.ServicePrice",
98
+ () => [
99
+ { no: 1, name: "vnd", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
100
+ { no: 2, name: "credit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
101
+ { no: 3, name: "promotion", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
102
+ ],
103
+ );
104
+
105
+ /**
106
+ * @generated from message ct_logic_uni_rev_premium.v1.ServiceMetadata
107
+ */
108
+ export const ServiceMetadata = proto3.makeMessageType(
109
+ "ct_logic_uni_rev_premium.v1.ServiceMetadata",
110
+ () => [
111
+ { no: 1, name: "contains_bundle_listing_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
112
+ { no: 2, name: "need_remove_service", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
113
+ { no: 3, name: "bundle_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
114
+ { no: 4, name: "error_msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
115
+ ],
116
+ );
117
+
118
+ /**
119
+ * @generated from message ct_logic_uni_rev_premium.v1.CheckConditionRequest
120
+ */
121
+ export const CheckConditionRequest = proto3.makeMessageType(
122
+ "ct_logic_uni_rev_premium.v1.CheckConditionRequest",
123
+ () => [
124
+ { no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
125
+ { no: 2, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
126
+ ],
127
+ );
128
+
129
+ /**
130
+ * @generated from message ct_logic_uni_rev_premium.v1.AdExtensionCondition
131
+ */
132
+ export const AdExtensionCondition = proto3.makeMessageType(
133
+ "ct_logic_uni_rev_premium.v1.AdExtensionCondition",
134
+ () => [
135
+ { no: 1, name: "can_extend", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
136
+ { no: 2, name: "is_paid_ad", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
137
+ { no: 3, name: "pending_day", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
138
+ ],
139
+ );
140
+
141
+ /**
142
+ * @generated from message ct_logic_uni_rev_premium.v1.CheckConditionResponse
143
+ */
144
+ export const CheckConditionResponse = proto3.makeMessageType(
145
+ "ct_logic_uni_rev_premium.v1.CheckConditionResponse",
146
+ () => [
147
+ { no: 1, name: "ad_extension", kind: "message", T: AdExtensionCondition },
148
+ ],
149
+ );
150
+
151
+ /**
152
+ * @generated from message ct_logic_uni_rev_premium.v1.ExtendFreeAdRequest
153
+ */
154
+ export const ExtendFreeAdRequest = proto3.makeMessageType(
155
+ "ct_logic_uni_rev_premium.v1.ExtendFreeAdRequest",
156
+ () => [
157
+ { no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
158
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
159
+ ],
160
+ );
161
+
162
+ /**
163
+ * @generated from message ct_logic_uni_rev_premium.v1.ExtendFreeAdResponse
164
+ */
165
+ export const ExtendFreeAdResponse = proto3.makeMessageType(
166
+ "ct_logic_uni_rev_premium.v1.ExtendFreeAdResponse",
167
+ () => [
168
+ { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
+ { no: 9, name: "expected_extensive_date", kind: "message", T: Timestamp },
170
+ ],
171
+ );
172
+
@@ -0,0 +1,58 @@
1
+ // @generated by protoc-gen-connect-query v0.4.4 with parameter "target=js+dts"
2
+ // @generated from file ct-logic-uni-rev-premium/v1/ad_service.proto (package ct_logic_uni_rev_premium.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { CheckConditionRequest, CheckConditionResponse, ExtendFreeAdRequest, ExtendFreeAdResponse, ProcessCartServicesBeforeCheckoutRequest, ProcessCartServicesBeforeCheckoutResponse, ValidateCartOfAdServiceRequest, ValidateCartOfAdServiceResponse } from "./ad_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ import { UnaryHooks } from "@connectrpc/connect-query";
9
+
10
+ /**
11
+ * @generated from service ct_logic_uni_rev_premium.v1.LogicUniRevPremiumAdService
12
+ */
13
+ export declare const LogicUniRevPremiumAdService: {
14
+ readonly typeName: "ct_logic_uni_rev_premium.v1.LogicUniRevPremiumAdService",
15
+ readonly methods: {
16
+ /**
17
+ * @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumAdService.ValidateCartOfAdService
18
+ */
19
+ readonly validateCartOfAdService: {
20
+ readonly name: "ValidateCartOfAdService",
21
+ readonly I: typeof ValidateCartOfAdServiceRequest,
22
+ readonly O: typeof ValidateCartOfAdServiceResponse,
23
+ readonly kind: MethodKind.Unary,
24
+ },
25
+ /**
26
+ * @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumAdService.ProcessCartServicesBeforeCheckout
27
+ */
28
+ readonly processCartServicesBeforeCheckout: {
29
+ readonly name: "ProcessCartServicesBeforeCheckout",
30
+ readonly I: typeof ProcessCartServicesBeforeCheckoutRequest,
31
+ readonly O: typeof ProcessCartServicesBeforeCheckoutResponse,
32
+ readonly kind: MethodKind.Unary,
33
+ },
34
+ /**
35
+ * @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumAdService.CheckCondition
36
+ */
37
+ readonly checkCondition: {
38
+ readonly name: "CheckCondition",
39
+ readonly I: typeof CheckConditionRequest,
40
+ readonly O: typeof CheckConditionResponse,
41
+ readonly kind: MethodKind.Unary,
42
+ },
43
+ /**
44
+ * @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumAdService.ExtendFreeAd
45
+ */
46
+ readonly extendFreeAd: {
47
+ readonly name: "ExtendFreeAd",
48
+ readonly I: typeof ExtendFreeAdRequest,
49
+ readonly O: typeof ExtendFreeAdResponse,
50
+ readonly kind: MethodKind.Unary,
51
+ },
52
+ }
53
+ };
54
+
55
+ export const validateCartOfAdService: UnaryHooks<ValidateCartOfAdServiceRequest, ValidateCartOfAdServiceResponse>;
56
+ export const processCartServicesBeforeCheckout: UnaryHooks<ProcessCartServicesBeforeCheckoutRequest, ProcessCartServicesBeforeCheckoutResponse>;
57
+ export const checkCondition: UnaryHooks<CheckConditionRequest, CheckConditionResponse>;
58
+ export const extendFreeAd: UnaryHooks<ExtendFreeAdRequest, ExtendFreeAdResponse>;