@chotot/ct-logic-uni-rev-premium-v1 1.295.0 → 1.299.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 +1 -0
- package/ad_pb.d.ts +5 -0
- package/ad_pb.js +1 -0
- package/free_ps.proto +33 -2
- package/free_ps_pb.d.ts +162 -0
- package/free_ps_pb.js +56 -0
- package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.d.ts +69 -9
- package/free_ps_service-LogicUniRevPremiumFreePsService_connectquery.js +131 -17
- package/free_ps_service.proto +59 -9
- package/free_ps_service_connect.d.ts +68 -9
- package/free_ps_service_connect.js +68 -9
- package/package.json +1 -1
- package/scripts/modify_package_json.js +0 -50
package/ad.proto
CHANGED
package/ad_pb.d.ts
CHANGED
|
@@ -328,6 +328,11 @@ export declare class CheckConditionRequest extends Message<CheckConditionRequest
|
|
|
328
328
|
*/
|
|
329
329
|
service: string;
|
|
330
330
|
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: int64 account_id = 3;
|
|
333
|
+
*/
|
|
334
|
+
accountId: bigint;
|
|
335
|
+
|
|
331
336
|
constructor(data?: PartialMessage<CheckConditionRequest>);
|
|
332
337
|
|
|
333
338
|
static readonly runtime: typeof proto3;
|
package/ad_pb.js
CHANGED
|
@@ -123,6 +123,7 @@ export const CheckConditionRequest = proto3.makeMessageType(
|
|
|
123
123
|
() => [
|
|
124
124
|
{ no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
125
125
|
{ no: 2, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
126
|
+
{ no: 3, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
126
127
|
],
|
|
127
128
|
);
|
|
128
129
|
|
package/free_ps.proto
CHANGED
|
@@ -3,11 +3,16 @@ syntax = "proto3";
|
|
|
3
3
|
package ct_logic_uni_rev_premium.v1;
|
|
4
4
|
|
|
5
5
|
import "validate/validate.proto";
|
|
6
|
+
import "google/protobuf/timestamp.proto";
|
|
6
7
|
|
|
7
8
|
// language specs
|
|
8
9
|
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-premium;pb";
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
enum ExpirationType {
|
|
12
|
+
EXPIRATION_TYPE_UNSPECIFIED = 0;
|
|
13
|
+
EXPIRATION_TYPE_FIXED_DATE = 1;
|
|
14
|
+
EXPIRATION_TYPE_FLEXIBLE_DATE = 2;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
message GetPSRedeemManualRequest {
|
|
13
18
|
string redeem_id = 1 [(validate.rules).string.min_len = 1];
|
|
@@ -90,6 +95,8 @@ message GetPSCampaignResponse {
|
|
|
90
95
|
string voucher_type = 13;
|
|
91
96
|
string voucher_name = 14;
|
|
92
97
|
repeated PremiumService premium_services = 15; // use for free bundle campaign
|
|
98
|
+
ExpirationType expiration_type = 16;
|
|
99
|
+
optional int64 flexible_expiration_days = 17;
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
message PremiumService {
|
|
@@ -121,6 +128,8 @@ message CreatePSCampaignRequest {
|
|
|
121
128
|
string voucher_type = 12;
|
|
122
129
|
string voucher_name = 13;
|
|
123
130
|
repeated PremiumService premium_services = 14; // use for free bundle campaign
|
|
131
|
+
ExpirationType expiration_type = 15;
|
|
132
|
+
optional int64 flexible_expiration_days = 16;
|
|
124
133
|
}
|
|
125
134
|
|
|
126
135
|
message CreatePSCampaignResponse{
|
|
@@ -530,4 +539,26 @@ message CreateFreePSRedeemsFromGCSRequest {
|
|
|
530
539
|
string service_type = 4 [(validate.rules).string.min_len = 1];
|
|
531
540
|
}
|
|
532
541
|
|
|
533
|
-
message CreateFreePSRedeemsFromGCSResponse {}
|
|
542
|
+
message CreateFreePSRedeemsFromGCSResponse {}
|
|
543
|
+
|
|
544
|
+
message CreateAutoPSRedeemRequest {
|
|
545
|
+
string service_type = 1;
|
|
546
|
+
int64 total_free = 2;
|
|
547
|
+
optional int64 ad_id = 3;
|
|
548
|
+
optional string ad_type = 4;
|
|
549
|
+
optional int64 category_id = 5;
|
|
550
|
+
int64 account_id = 6;
|
|
551
|
+
optional int64 duration = 7;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
message CreateAutoPSRedeemsRequest {
|
|
555
|
+
string campaign_id = 1 [(validate.rules).string.min_len = 1];
|
|
556
|
+
string admin_id = 2 [(validate.rules).string.min_len = 1];
|
|
557
|
+
repeated CreateAutoPSRedeemRequest redeems = 3;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
message CreateAutoPSRedeemsResponse {
|
|
561
|
+
int64 total_count = 1;
|
|
562
|
+
int64 success_count = 2;
|
|
563
|
+
int64 failed_count = 3;
|
|
564
|
+
}
|
package/free_ps_pb.d.ts
CHANGED
|
@@ -8,6 +8,26 @@
|
|
|
8
8
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
9
9
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum ct_logic_uni_rev_premium.v1.ExpirationType
|
|
13
|
+
*/
|
|
14
|
+
export declare enum ExpirationType {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: EXPIRATION_TYPE_UNSPECIFIED = 0;
|
|
17
|
+
*/
|
|
18
|
+
UNSPECIFIED = 0,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: EXPIRATION_TYPE_FIXED_DATE = 1;
|
|
22
|
+
*/
|
|
23
|
+
FIXED_DATE = 1,
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: EXPIRATION_TYPE_FLEXIBLE_DATE = 2;
|
|
27
|
+
*/
|
|
28
|
+
FLEXIBLE_DATE = 2,
|
|
29
|
+
}
|
|
30
|
+
|
|
11
31
|
/**
|
|
12
32
|
* @generated from message ct_logic_uni_rev_premium.v1.GetPSRedeemManualRequest
|
|
13
33
|
*/
|
|
@@ -410,6 +430,16 @@ export declare class GetPSCampaignResponse extends Message<GetPSCampaignResponse
|
|
|
410
430
|
*/
|
|
411
431
|
premiumServices: PremiumService[];
|
|
412
432
|
|
|
433
|
+
/**
|
|
434
|
+
* @generated from field: ct_logic_uni_rev_premium.v1.ExpirationType expiration_type = 16;
|
|
435
|
+
*/
|
|
436
|
+
expirationType: ExpirationType;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @generated from field: optional int64 flexible_expiration_days = 17;
|
|
440
|
+
*/
|
|
441
|
+
flexibleExpirationDays?: bigint;
|
|
442
|
+
|
|
413
443
|
constructor(data?: PartialMessage<GetPSCampaignResponse>);
|
|
414
444
|
|
|
415
445
|
static readonly runtime: typeof proto3;
|
|
@@ -535,6 +565,16 @@ export declare class CreatePSCampaignRequest extends Message<CreatePSCampaignReq
|
|
|
535
565
|
*/
|
|
536
566
|
premiumServices: PremiumService[];
|
|
537
567
|
|
|
568
|
+
/**
|
|
569
|
+
* @generated from field: ct_logic_uni_rev_premium.v1.ExpirationType expiration_type = 15;
|
|
570
|
+
*/
|
|
571
|
+
expirationType: ExpirationType;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* @generated from field: optional int64 flexible_expiration_days = 16;
|
|
575
|
+
*/
|
|
576
|
+
flexibleExpirationDays?: bigint;
|
|
577
|
+
|
|
538
578
|
constructor(data?: PartialMessage<CreatePSCampaignRequest>);
|
|
539
579
|
|
|
540
580
|
static readonly runtime: typeof proto3;
|
|
@@ -2876,3 +2916,125 @@ export declare class CreateFreePSRedeemsFromGCSResponse extends Message<CreateFr
|
|
|
2876
2916
|
static equals(a: CreateFreePSRedeemsFromGCSResponse | PlainMessage<CreateFreePSRedeemsFromGCSResponse> | undefined, b: CreateFreePSRedeemsFromGCSResponse | PlainMessage<CreateFreePSRedeemsFromGCSResponse> | undefined): boolean;
|
|
2877
2917
|
}
|
|
2878
2918
|
|
|
2919
|
+
/**
|
|
2920
|
+
* @generated from message ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemRequest
|
|
2921
|
+
*/
|
|
2922
|
+
export declare class CreateAutoPSRedeemRequest extends Message<CreateAutoPSRedeemRequest> {
|
|
2923
|
+
/**
|
|
2924
|
+
* @generated from field: string service_type = 1;
|
|
2925
|
+
*/
|
|
2926
|
+
serviceType: string;
|
|
2927
|
+
|
|
2928
|
+
/**
|
|
2929
|
+
* @generated from field: int64 total_free = 2;
|
|
2930
|
+
*/
|
|
2931
|
+
totalFree: bigint;
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
* @generated from field: optional int64 ad_id = 3;
|
|
2935
|
+
*/
|
|
2936
|
+
adId?: bigint;
|
|
2937
|
+
|
|
2938
|
+
/**
|
|
2939
|
+
* @generated from field: optional string ad_type = 4;
|
|
2940
|
+
*/
|
|
2941
|
+
adType?: string;
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* @generated from field: optional int64 category_id = 5;
|
|
2945
|
+
*/
|
|
2946
|
+
categoryId?: bigint;
|
|
2947
|
+
|
|
2948
|
+
/**
|
|
2949
|
+
* @generated from field: int64 account_id = 6;
|
|
2950
|
+
*/
|
|
2951
|
+
accountId: bigint;
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* @generated from field: optional int64 duration = 7;
|
|
2955
|
+
*/
|
|
2956
|
+
duration?: bigint;
|
|
2957
|
+
|
|
2958
|
+
constructor(data?: PartialMessage<CreateAutoPSRedeemRequest>);
|
|
2959
|
+
|
|
2960
|
+
static readonly runtime: typeof proto3;
|
|
2961
|
+
static readonly typeName = "ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemRequest";
|
|
2962
|
+
static readonly fields: FieldList;
|
|
2963
|
+
|
|
2964
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAutoPSRedeemRequest;
|
|
2965
|
+
|
|
2966
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAutoPSRedeemRequest;
|
|
2967
|
+
|
|
2968
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAutoPSRedeemRequest;
|
|
2969
|
+
|
|
2970
|
+
static equals(a: CreateAutoPSRedeemRequest | PlainMessage<CreateAutoPSRedeemRequest> | undefined, b: CreateAutoPSRedeemRequest | PlainMessage<CreateAutoPSRedeemRequest> | undefined): boolean;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
/**
|
|
2974
|
+
* @generated from message ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsRequest
|
|
2975
|
+
*/
|
|
2976
|
+
export declare class CreateAutoPSRedeemsRequest extends Message<CreateAutoPSRedeemsRequest> {
|
|
2977
|
+
/**
|
|
2978
|
+
* @generated from field: string campaign_id = 1;
|
|
2979
|
+
*/
|
|
2980
|
+
campaignId: string;
|
|
2981
|
+
|
|
2982
|
+
/**
|
|
2983
|
+
* @generated from field: string admin_id = 2;
|
|
2984
|
+
*/
|
|
2985
|
+
adminId: string;
|
|
2986
|
+
|
|
2987
|
+
/**
|
|
2988
|
+
* @generated from field: repeated ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemRequest redeems = 3;
|
|
2989
|
+
*/
|
|
2990
|
+
redeems: CreateAutoPSRedeemRequest[];
|
|
2991
|
+
|
|
2992
|
+
constructor(data?: PartialMessage<CreateAutoPSRedeemsRequest>);
|
|
2993
|
+
|
|
2994
|
+
static readonly runtime: typeof proto3;
|
|
2995
|
+
static readonly typeName = "ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsRequest";
|
|
2996
|
+
static readonly fields: FieldList;
|
|
2997
|
+
|
|
2998
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAutoPSRedeemsRequest;
|
|
2999
|
+
|
|
3000
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAutoPSRedeemsRequest;
|
|
3001
|
+
|
|
3002
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAutoPSRedeemsRequest;
|
|
3003
|
+
|
|
3004
|
+
static equals(a: CreateAutoPSRedeemsRequest | PlainMessage<CreateAutoPSRedeemsRequest> | undefined, b: CreateAutoPSRedeemsRequest | PlainMessage<CreateAutoPSRedeemsRequest> | undefined): boolean;
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* @generated from message ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsResponse
|
|
3009
|
+
*/
|
|
3010
|
+
export declare class CreateAutoPSRedeemsResponse extends Message<CreateAutoPSRedeemsResponse> {
|
|
3011
|
+
/**
|
|
3012
|
+
* @generated from field: int64 total_count = 1;
|
|
3013
|
+
*/
|
|
3014
|
+
totalCount: bigint;
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* @generated from field: int64 success_count = 2;
|
|
3018
|
+
*/
|
|
3019
|
+
successCount: bigint;
|
|
3020
|
+
|
|
3021
|
+
/**
|
|
3022
|
+
* @generated from field: int64 failed_count = 3;
|
|
3023
|
+
*/
|
|
3024
|
+
failedCount: bigint;
|
|
3025
|
+
|
|
3026
|
+
constructor(data?: PartialMessage<CreateAutoPSRedeemsResponse>);
|
|
3027
|
+
|
|
3028
|
+
static readonly runtime: typeof proto3;
|
|
3029
|
+
static readonly typeName = "ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsResponse";
|
|
3030
|
+
static readonly fields: FieldList;
|
|
3031
|
+
|
|
3032
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAutoPSRedeemsResponse;
|
|
3033
|
+
|
|
3034
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAutoPSRedeemsResponse;
|
|
3035
|
+
|
|
3036
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAutoPSRedeemsResponse;
|
|
3037
|
+
|
|
3038
|
+
static equals(a: CreateAutoPSRedeemsResponse | PlainMessage<CreateAutoPSRedeemsResponse> | undefined, b: CreateAutoPSRedeemsResponse | PlainMessage<CreateAutoPSRedeemsResponse> | undefined): boolean;
|
|
3039
|
+
}
|
|
3040
|
+
|
package/free_ps_pb.js
CHANGED
|
@@ -7,6 +7,18 @@
|
|
|
7
7
|
|
|
8
8
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @generated from enum ct_logic_uni_rev_premium.v1.ExpirationType
|
|
12
|
+
*/
|
|
13
|
+
export const ExpirationType = proto3.makeEnum(
|
|
14
|
+
"ct_logic_uni_rev_premium.v1.ExpirationType",
|
|
15
|
+
[
|
|
16
|
+
{no: 0, name: "EXPIRATION_TYPE_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
17
|
+
{no: 1, name: "EXPIRATION_TYPE_FIXED_DATE", localName: "FIXED_DATE"},
|
|
18
|
+
{no: 2, name: "EXPIRATION_TYPE_FLEXIBLE_DATE", localName: "FLEXIBLE_DATE"},
|
|
19
|
+
],
|
|
20
|
+
);
|
|
21
|
+
|
|
10
22
|
/**
|
|
11
23
|
* @generated from message ct_logic_uni_rev_premium.v1.GetPSRedeemManualRequest
|
|
12
24
|
*/
|
|
@@ -139,6 +151,8 @@ export const GetPSCampaignResponse = proto3.makeMessageType(
|
|
|
139
151
|
{ no: 13, name: "voucher_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
140
152
|
{ no: 14, name: "voucher_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
141
153
|
{ no: 15, name: "premium_services", kind: "message", T: PremiumService, repeated: true },
|
|
154
|
+
{ no: 16, name: "expiration_type", kind: "enum", T: proto3.getEnumType(ExpirationType) },
|
|
155
|
+
{ no: 17, name: "flexible_expiration_days", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
142
156
|
],
|
|
143
157
|
);
|
|
144
158
|
|
|
@@ -174,6 +188,8 @@ export const CreatePSCampaignRequest = proto3.makeMessageType(
|
|
|
174
188
|
{ no: 12, name: "voucher_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
175
189
|
{ no: 13, name: "voucher_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
176
190
|
{ no: 14, name: "premium_services", kind: "message", T: PremiumService, repeated: true },
|
|
191
|
+
{ no: 15, name: "expiration_type", kind: "enum", T: proto3.getEnumType(ExpirationType) },
|
|
192
|
+
{ no: 16, name: "flexible_expiration_days", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
177
193
|
],
|
|
178
194
|
);
|
|
179
195
|
|
|
@@ -938,3 +954,43 @@ export const CreateFreePSRedeemsFromGCSResponse = proto3.makeMessageType(
|
|
|
938
954
|
[],
|
|
939
955
|
);
|
|
940
956
|
|
|
957
|
+
/**
|
|
958
|
+
* @generated from message ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemRequest
|
|
959
|
+
*/
|
|
960
|
+
export const CreateAutoPSRedeemRequest = proto3.makeMessageType(
|
|
961
|
+
"ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemRequest",
|
|
962
|
+
() => [
|
|
963
|
+
{ no: 1, name: "service_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
964
|
+
{ no: 2, name: "total_free", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
965
|
+
{ no: 3, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
966
|
+
{ no: 4, name: "ad_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
967
|
+
{ no: 5, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
968
|
+
{ no: 6, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
969
|
+
{ no: 7, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
970
|
+
],
|
|
971
|
+
);
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* @generated from message ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsRequest
|
|
975
|
+
*/
|
|
976
|
+
export const CreateAutoPSRedeemsRequest = proto3.makeMessageType(
|
|
977
|
+
"ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsRequest",
|
|
978
|
+
() => [
|
|
979
|
+
{ no: 1, name: "campaign_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
980
|
+
{ no: 2, name: "admin_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
981
|
+
{ no: 3, name: "redeems", kind: "message", T: CreateAutoPSRedeemRequest, repeated: true },
|
|
982
|
+
],
|
|
983
|
+
);
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @generated from message ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsResponse
|
|
987
|
+
*/
|
|
988
|
+
export const CreateAutoPSRedeemsResponse = proto3.makeMessageType(
|
|
989
|
+
"ct_logic_uni_rev_premium.v1.CreateAutoPSRedeemsResponse",
|
|
990
|
+
() => [
|
|
991
|
+
{ no: 1, name: "total_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
992
|
+
{ no: 2, name: "success_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
993
|
+
{ no: 3, name: "failed_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
994
|
+
],
|
|
995
|
+
);
|
|
996
|
+
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateBundleRedeemsRequest, CreateBundleRedeemsResponse, CreateFreePSRedeemsFromGCSRequest, CreateFreePSRedeemsFromGCSResponse, CreateListingFeeRedeemsRequest, CreateListingFeeRedeemsResponse, CreatePSCampaignRequest, CreatePSCampaignResponse, CreatePSRedeemsRequest, CreatePSRedeemsResponse, DeletePSCampaignRequest, DeletePSCampaignResponse, FetchUCDPAndUploadCsvRequest, FetchUCDPAndUploadCsvResponse, GetAdsToRedeemVoucherRequest, GetAdsToRedeemVoucherResponse, GetBundleRedeemRequest, GetBundleRedeemResponse, GetBundleRedeemsRequest, GetBundleRedeemsResponse, GetCategoriesWithListingFeeVouchersRequest, GetCategoriesWithListingFeeVouchersResponse, GetListingFeeRedeemRequest, GetListingFeeRedeemResponse, GetListingFeeRedeemsRequest, GetListingFeeRedeemsResponse, GetPSCampaignRequest, GetPSCampaignResponse, GetPSCampaignsRequest, GetPSCampaignsResponse, GetPSRedeemManualRequest, GetPSRedeemManualResponse, GetPSRedeemsRequest, GetPSRedeemsResponse, GetRedeemWithCampaignInfoRequest, GetRedeemWithCampaignInfoResponse, GetVoucherByIdRequest, GetVoucherByIdResponse, GetVoucherCountRequest, GetVoucherCountResponse, GetVouchersByAccountIdRequest, GetVouchersByAccountIdResponse, GetVouchersCountByServiceTypeRequest, GetVouchersCountByServiceTypeResponse, PSRedeemManualRequest, PSRedeemManualResponse, RestorePSRedeemRequest, RestorePSRedeemResponse, UpdatePSCampaignRequest, UpdatePSCampaignResponse, UpdatePSRedeemRequest, UpdatePSRedeemResponse, UpsertPSRedeemsRequest, UpsertPSRedeemsResponse } from "./free_ps_pb.js";
|
|
6
|
+
import { CreateAutoPSRedeemsRequest, CreateAutoPSRedeemsResponse, CreateBundleRedeemsRequest, CreateBundleRedeemsResponse, CreateFreePSRedeemsFromGCSRequest, CreateFreePSRedeemsFromGCSResponse, CreateListingFeeRedeemsRequest, CreateListingFeeRedeemsResponse, CreatePSCampaignRequest, CreatePSCampaignResponse, CreatePSRedeemsRequest, CreatePSRedeemsResponse, DeletePSCampaignRequest, DeletePSCampaignResponse, FetchUCDPAndUploadCsvRequest, FetchUCDPAndUploadCsvResponse, GetAdsToRedeemVoucherRequest, GetAdsToRedeemVoucherResponse, GetBundleRedeemRequest, GetBundleRedeemResponse, GetBundleRedeemsRequest, GetBundleRedeemsResponse, GetCategoriesWithListingFeeVouchersRequest, GetCategoriesWithListingFeeVouchersResponse, GetListingFeeRedeemRequest, GetListingFeeRedeemResponse, GetListingFeeRedeemsRequest, GetListingFeeRedeemsResponse, GetPSCampaignRequest, GetPSCampaignResponse, GetPSCampaignsRequest, GetPSCampaignsResponse, GetPSRedeemManualRequest, GetPSRedeemManualResponse, GetPSRedeemsRequest, GetPSRedeemsResponse, GetRedeemWithCampaignInfoRequest, GetRedeemWithCampaignInfoResponse, GetVoucherByIdRequest, GetVoucherByIdResponse, GetVoucherCountRequest, GetVoucherCountResponse, GetVouchersByAccountIdRequest, GetVouchersByAccountIdResponse, GetVouchersCountByServiceTypeRequest, GetVouchersCountByServiceTypeResponse, PSRedeemManualRequest, PSRedeemManualResponse, RestorePSRedeemRequest, RestorePSRedeemResponse, UpdatePSCampaignRequest, UpdatePSCampaignResponse, UpdatePSRedeemRequest, UpdatePSRedeemResponse, UpsertPSRedeemsRequest, UpsertPSRedeemsResponse } from "./free_ps_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
import { UnaryHooks } from "@connectrpc/connect-query";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
+
* LogicUniRevPremiumFreePsService provides business logic for free premium service management including campaigns, redeems, and vouchers
|
|
12
|
+
*
|
|
11
13
|
* @generated from service ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService
|
|
12
14
|
*/
|
|
13
15
|
export declare const LogicUniRevPremiumFreePsService: {
|
|
14
16
|
readonly typeName: "ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService",
|
|
15
17
|
readonly methods: {
|
|
16
18
|
/**
|
|
17
|
-
*
|
|
19
|
+
* Campaign Management
|
|
20
|
+
* Retrieves a list of premium service campaigns with filtering and pagination
|
|
18
21
|
*
|
|
19
22
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetPSCampaigns
|
|
20
23
|
*/
|
|
@@ -25,6 +28,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
25
28
|
readonly kind: MethodKind.Unary,
|
|
26
29
|
},
|
|
27
30
|
/**
|
|
31
|
+
* Retrieves a specific premium service campaign by its unique identifier
|
|
32
|
+
*
|
|
28
33
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetPSCampaign
|
|
29
34
|
*/
|
|
30
35
|
readonly getPSCampaign: {
|
|
@@ -34,6 +39,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
34
39
|
readonly kind: MethodKind.Unary,
|
|
35
40
|
},
|
|
36
41
|
/**
|
|
42
|
+
* Creates a new premium service campaign with specified parameters
|
|
43
|
+
*
|
|
37
44
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.CreatePSCampaign
|
|
38
45
|
*/
|
|
39
46
|
readonly createPSCampaign: {
|
|
@@ -43,6 +50,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
43
50
|
readonly kind: MethodKind.Unary,
|
|
44
51
|
},
|
|
45
52
|
/**
|
|
53
|
+
* Updates an existing premium service campaign with new information
|
|
54
|
+
*
|
|
46
55
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.UpdatePSCampaign
|
|
47
56
|
*/
|
|
48
57
|
readonly updatePSCampaign: {
|
|
@@ -52,6 +61,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
52
61
|
readonly kind: MethodKind.Unary,
|
|
53
62
|
},
|
|
54
63
|
/**
|
|
64
|
+
* Deletes a premium service campaign and all associated data
|
|
65
|
+
*
|
|
55
66
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.DeletePSCampaign
|
|
56
67
|
*/
|
|
57
68
|
readonly deletePSCampaign: {
|
|
@@ -61,7 +72,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
61
72
|
readonly kind: MethodKind.Unary,
|
|
62
73
|
},
|
|
63
74
|
/**
|
|
64
|
-
*
|
|
75
|
+
* Free Premium Service Redeem Management
|
|
76
|
+
* Retrieves premium service redeem records with filtering options
|
|
65
77
|
*
|
|
66
78
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetPSRedeems
|
|
67
79
|
*/
|
|
@@ -72,6 +84,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
72
84
|
readonly kind: MethodKind.Unary,
|
|
73
85
|
},
|
|
74
86
|
/**
|
|
87
|
+
* Creates multiple premium service redeem records in batch
|
|
88
|
+
*
|
|
75
89
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.CreatePSRedeems
|
|
76
90
|
*/
|
|
77
91
|
readonly createPSRedeems: {
|
|
@@ -81,6 +95,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
81
95
|
readonly kind: MethodKind.Unary,
|
|
82
96
|
},
|
|
83
97
|
/**
|
|
98
|
+
* Updates a specific premium service redeem record
|
|
99
|
+
*
|
|
84
100
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.UpdatePSRedeem
|
|
85
101
|
*/
|
|
86
102
|
readonly updatePSRedeem: {
|
|
@@ -90,6 +106,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
90
106
|
readonly kind: MethodKind.Unary,
|
|
91
107
|
},
|
|
92
108
|
/**
|
|
109
|
+
* Restores a previously deleted or expired premium service redeem
|
|
110
|
+
*
|
|
93
111
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.RestorePSRedeem
|
|
94
112
|
*/
|
|
95
113
|
readonly restorePSRedeem: {
|
|
@@ -99,6 +117,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
99
117
|
readonly kind: MethodKind.Unary,
|
|
100
118
|
},
|
|
101
119
|
/**
|
|
120
|
+
* Creates or updates premium service redeem records based on existence
|
|
121
|
+
*
|
|
102
122
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.UpsertPSRedeems
|
|
103
123
|
*/
|
|
104
124
|
readonly upsertPSRedeems: {
|
|
@@ -108,7 +128,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
108
128
|
readonly kind: MethodKind.Unary,
|
|
109
129
|
},
|
|
110
130
|
/**
|
|
111
|
-
*
|
|
131
|
+
* Manual Redeem Operations
|
|
132
|
+
* Retrieves manual redeem information for premium services
|
|
112
133
|
*
|
|
113
134
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetPSRedeemManual
|
|
114
135
|
*/
|
|
@@ -119,6 +140,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
119
140
|
readonly kind: MethodKind.Unary,
|
|
120
141
|
},
|
|
121
142
|
/**
|
|
143
|
+
* Processes a manual redemption of premium services for a user
|
|
144
|
+
*
|
|
122
145
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.PSRedeemManual
|
|
123
146
|
*/
|
|
124
147
|
readonly pSRedeemManual: {
|
|
@@ -128,7 +151,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
128
151
|
readonly kind: MethodKind.Unary,
|
|
129
152
|
},
|
|
130
153
|
/**
|
|
131
|
-
*
|
|
154
|
+
* Listing Fee Redeem Management
|
|
155
|
+
* Retrieves a specific listing fee redeem record by identifier
|
|
132
156
|
*
|
|
133
157
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetListingFeeRedeem
|
|
134
158
|
*/
|
|
@@ -139,6 +163,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
139
163
|
readonly kind: MethodKind.Unary,
|
|
140
164
|
},
|
|
141
165
|
/**
|
|
166
|
+
* Retrieves multiple listing fee redeem records with filtering
|
|
167
|
+
*
|
|
142
168
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetListingFeeRedeems
|
|
143
169
|
*/
|
|
144
170
|
readonly getListingFeeRedeems: {
|
|
@@ -148,6 +174,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
148
174
|
readonly kind: MethodKind.Unary,
|
|
149
175
|
},
|
|
150
176
|
/**
|
|
177
|
+
* Creates multiple listing fee redeem records in a single operation
|
|
178
|
+
*
|
|
151
179
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.CreateListingFeeRedeems
|
|
152
180
|
*/
|
|
153
181
|
readonly createListingFeeRedeems: {
|
|
@@ -157,7 +185,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
157
185
|
readonly kind: MethodKind.Unary,
|
|
158
186
|
},
|
|
159
187
|
/**
|
|
160
|
-
*
|
|
188
|
+
* Bundle Redeem Management
|
|
189
|
+
* Retrieves a specific bundle redeem record by its identifier
|
|
161
190
|
*
|
|
162
191
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetBundleRedeem
|
|
163
192
|
*/
|
|
@@ -168,6 +197,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
168
197
|
readonly kind: MethodKind.Unary,
|
|
169
198
|
},
|
|
170
199
|
/**
|
|
200
|
+
* Retrieves multiple bundle redeem records with optional filtering
|
|
201
|
+
*
|
|
171
202
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetBundleRedeems
|
|
172
203
|
*/
|
|
173
204
|
readonly getBundleRedeems: {
|
|
@@ -177,6 +208,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
177
208
|
readonly kind: MethodKind.Unary,
|
|
178
209
|
},
|
|
179
210
|
/**
|
|
211
|
+
* Creates multiple bundle redeem records in batch
|
|
212
|
+
*
|
|
180
213
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.CreateBundleRedeems
|
|
181
214
|
*/
|
|
182
215
|
readonly createBundleRedeems: {
|
|
@@ -186,7 +219,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
186
219
|
readonly kind: MethodKind.Unary,
|
|
187
220
|
},
|
|
188
221
|
/**
|
|
189
|
-
*
|
|
222
|
+
* Voucher Management
|
|
223
|
+
* Retrieves all vouchers associated with a specific account
|
|
190
224
|
*
|
|
191
225
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetVouchersByAccountId
|
|
192
226
|
*/
|
|
@@ -197,6 +231,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
197
231
|
readonly kind: MethodKind.Unary,
|
|
198
232
|
},
|
|
199
233
|
/**
|
|
234
|
+
* Retrieves the count of vouchers grouped by service type
|
|
235
|
+
*
|
|
200
236
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetVouchersCountByServiceType
|
|
201
237
|
*/
|
|
202
238
|
readonly getVouchersCountByServiceType: {
|
|
@@ -206,6 +242,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
206
242
|
readonly kind: MethodKind.Unary,
|
|
207
243
|
},
|
|
208
244
|
/**
|
|
245
|
+
* Retrieves categories that have available listing fee vouchers
|
|
246
|
+
*
|
|
209
247
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetCategoriesWithListingFeeVouchers
|
|
210
248
|
*/
|
|
211
249
|
readonly getCategoriesWithListingFeeVouchers: {
|
|
@@ -215,6 +253,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
215
253
|
readonly kind: MethodKind.Unary,
|
|
216
254
|
},
|
|
217
255
|
/**
|
|
256
|
+
* Retrieves ads that are eligible for voucher redemption
|
|
257
|
+
*
|
|
218
258
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetAdsToRedeemVoucher
|
|
219
259
|
*/
|
|
220
260
|
readonly getAdsToRedeemVoucher: {
|
|
@@ -224,6 +264,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
224
264
|
readonly kind: MethodKind.Unary,
|
|
225
265
|
},
|
|
226
266
|
/**
|
|
267
|
+
* Retrieves a specific voucher by its unique identifier
|
|
268
|
+
*
|
|
227
269
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetVoucherById
|
|
228
270
|
*/
|
|
229
271
|
readonly getVoucherById: {
|
|
@@ -233,6 +275,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
233
275
|
readonly kind: MethodKind.Unary,
|
|
234
276
|
},
|
|
235
277
|
/**
|
|
278
|
+
* Retrieves the total count of vouchers based on specified criteria
|
|
279
|
+
*
|
|
236
280
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetVoucherCount
|
|
237
281
|
*/
|
|
238
282
|
readonly getVoucherCount: {
|
|
@@ -242,7 +286,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
242
286
|
readonly kind: MethodKind.Unary,
|
|
243
287
|
},
|
|
244
288
|
/**
|
|
245
|
-
*
|
|
289
|
+
* Enhanced Redeem Operations
|
|
290
|
+
* Retrieves redeem information along with associated campaign details
|
|
246
291
|
*
|
|
247
292
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.GetRedeemWithCampaignInfo
|
|
248
293
|
*/
|
|
@@ -253,7 +298,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
253
298
|
readonly kind: MethodKind.Unary,
|
|
254
299
|
},
|
|
255
300
|
/**
|
|
256
|
-
*
|
|
301
|
+
* Auto-Assignment Operations for Promotion Vouchers
|
|
302
|
+
* Fetches user campaign data platform information and uploads to CSV format
|
|
257
303
|
*
|
|
258
304
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.FetchUCDPAndUploadCsv
|
|
259
305
|
*/
|
|
@@ -264,6 +310,8 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
264
310
|
readonly kind: MethodKind.Unary,
|
|
265
311
|
},
|
|
266
312
|
/**
|
|
313
|
+
* Creates free premium service redeems from data stored in Google Cloud Storage
|
|
314
|
+
*
|
|
267
315
|
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.CreateFreePSRedeemsFromGCS
|
|
268
316
|
*/
|
|
269
317
|
readonly createFreePSRedeemsFromGCS: {
|
|
@@ -272,6 +320,17 @@ export declare const LogicUniRevPremiumFreePsService: {
|
|
|
272
320
|
readonly O: typeof CreateFreePSRedeemsFromGCSResponse,
|
|
273
321
|
readonly kind: MethodKind.Unary,
|
|
274
322
|
},
|
|
323
|
+
/**
|
|
324
|
+
* Creates automatic premium service redeems based on predefined criteria
|
|
325
|
+
*
|
|
326
|
+
* @generated from rpc ct_logic_uni_rev_premium.v1.LogicUniRevPremiumFreePsService.CreateAutoPSRedeems
|
|
327
|
+
*/
|
|
328
|
+
readonly createAutoPSRedeems: {
|
|
329
|
+
readonly name: "CreateAutoPSRedeems",
|
|
330
|
+
readonly I: typeof CreateAutoPSRedeemsRequest,
|
|
331
|
+
readonly O: typeof CreateAutoPSRedeemsResponse,
|
|
332
|
+
readonly kind: MethodKind.Unary,
|
|
333
|
+
},
|
|
275
334
|
}
|
|
276
335
|
};
|
|
277
336
|
|
|
@@ -302,3 +361,4 @@ export const getVoucherCount: UnaryHooks<GetVoucherCountRequest, GetVoucherCount
|
|
|
302
361
|
export const getRedeemWithCampaignInfo: UnaryHooks<GetRedeemWithCampaignInfoRequest, GetRedeemWithCampaignInfoResponse>;
|
|
303
362
|
export const fetchUCDPAndUploadCsv: UnaryHooks<FetchUCDPAndUploadCsvRequest, FetchUCDPAndUploadCsvResponse>;
|
|
304
363
|
export const createFreePSRedeemsFromGCS: UnaryHooks<CreateFreePSRedeemsFromGCSRequest, CreateFreePSRedeemsFromGCSResponse>;
|
|
364
|
+
export const createAutoPSRedeems: UnaryHooks<CreateAutoPSRedeemsRequest, CreateAutoPSRedeemsResponse>;
|