@chotot/ct-logic-uni-rev-order-v1 1.197.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/cart_service-LogicUniRevOrderCartService_connectquery.d.ts +88 -0
- package/cart_service-LogicUniRevOrderCartService_connectquery.js +131 -0
- package/cart_service.proto +108 -0
- package/cart_service_connect.d.ts +80 -0
- package/cart_service_connect.js +80 -0
- package/cart_service_pb.d.ts +525 -0
- package/cart_service_pb.js +194 -0
- package/change_order_status.proto +110 -0
- package/change_order_status_pb.d.ts +494 -0
- package/change_order_status_pb.js +163 -0
- package/invoice.proto +565 -0
- package/invoice_entities.proto +205 -0
- package/invoice_entities_pb.d.ts +414 -0
- package/invoice_entities_pb.js +113 -0
- package/invoice_pb.d.ts +2875 -0
- package/invoice_pb.js +917 -0
- package/invoice_service-LogicUniRevOrderInvoiceService_connectquery.d.ts +238 -0
- package/invoice_service-LogicUniRevOrderInvoiceService_connectquery.js +371 -0
- package/invoice_service.proto +240 -0
- package/invoice_service_connect.d.ts +215 -0
- package/invoice_service_connect.js +215 -0
- package/onbehalf_service-LogicUniRevOrderOnBehalfService_connectquery.d.ts +108 -0
- package/onbehalf_service-LogicUniRevOrderOnBehalfService_connectquery.js +163 -0
- package/onbehalf_service.proto +355 -0
- package/onbehalf_service_connect.d.ts +98 -0
- package/onbehalf_service_connect.js +98 -0
- package/onbehalf_service_pb.d.ts +1789 -0
- package/onbehalf_service_pb.js +568 -0
- package/order_entities.proto +75 -0
- package/order_entities_pb.d.ts +366 -0
- package/order_entities_pb.js +111 -0
- package/order_history_order_service_detail.proto +485 -0
- package/order_history_order_service_detail_pb.d.ts +2599 -0
- package/order_history_order_service_detail_pb.js +768 -0
- package/order_history_paid_order.proto +224 -0
- package/order_history_paid_order_pb.d.ts +1139 -0
- package/order_history_paid_order_pb.js +343 -0
- package/order_history_revamp.proto +107 -0
- package/order_history_revamp_pb.d.ts +577 -0
- package/order_history_revamp_pb.js +164 -0
- package/order_info.proto +74 -0
- package/order_info_pb.d.ts +381 -0
- package/order_info_pb.js +138 -0
- package/package.json +10 -0
- package/paid_product.proto +94 -0
- package/paid_product_order.proto +430 -0
- package/paid_product_order_pb.d.ts +2120 -0
- package/paid_product_order_pb.js +698 -0
- package/paid_product_pb.d.ts +287 -0
- package/paid_product_pb.js +105 -0
- package/rabbit_mq.proto +69 -0
- package/rabbit_mq_pb.d.ts +251 -0
- package/rabbit_mq_pb.js +94 -0
- package/refund_order.proto +195 -0
- package/refund_order_pb.d.ts +1030 -0
- package/refund_order_pb.js +359 -0
- package/scripts/modify_package_json.js +50 -0
- package/service-LogicUniRevOrderService_connectquery.d.ts +638 -0
- package/service-LogicUniRevOrderService_connectquery.js +1014 -0
- package/service.proto +179 -0
- package/service_connect.d.ts +578 -0
- package/service_connect.js +578 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v0.4.4 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file ct-logic-uni-rev-order/v1/onbehalf_service.proto (package ct_logic_uni_rev_order.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { CreateOnbehalfOrderRequest, CreateOnbehalfOrderResponse, GetOnbehalfAdDeliveryInfoRequest, GetOnbehalfAdDeliveryInfoResponse, GetOnbehalfBumpInfoRequest, GetOnbehalfBumpInfoResponse, GetOnbehalfBundleInfoRequest, GetOnbehalfBundleInfoResponse, GetOnbehalfIntensiveBumpInfoRequest, GetOnbehalfIntensiveBumpInfoResponse, GetOnbehalfSpecialDisplayInfoRequest, GetOnbehalfSpecialDisplayInfoResponse, GetOnbehalfStickyAdInfoRequest, GetOnbehalfStickyAdInfoResponse, GetOnbehalfSubscriptionInfoRequest, GetOnbehalfSubscriptionInfoResponse, GetOnbehalfTimerBumpInfoRequest, GetOnbehalfTimerBumpInfoResponse } from "./onbehalf_service_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_order.v1.LogicUniRevOrderOnBehalfService
|
|
12
|
+
*/
|
|
13
|
+
export declare const LogicUniRevOrderOnBehalfService: {
|
|
14
|
+
readonly typeName: "ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService",
|
|
15
|
+
readonly methods: {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.CreateOnbehalfOrder
|
|
18
|
+
*/
|
|
19
|
+
readonly createOnbehalfOrder: {
|
|
20
|
+
readonly name: "CreateOnbehalfOrder",
|
|
21
|
+
readonly I: typeof CreateOnbehalfOrderRequest,
|
|
22
|
+
readonly O: typeof CreateOnbehalfOrderResponse,
|
|
23
|
+
readonly kind: MethodKind.Unary,
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfStickyAdInfo
|
|
27
|
+
*/
|
|
28
|
+
readonly getOnbehalfStickyAdInfo: {
|
|
29
|
+
readonly name: "GetOnbehalfStickyAdInfo",
|
|
30
|
+
readonly I: typeof GetOnbehalfStickyAdInfoRequest,
|
|
31
|
+
readonly O: typeof GetOnbehalfStickyAdInfoResponse,
|
|
32
|
+
readonly kind: MethodKind.Unary,
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfBumpInfo
|
|
36
|
+
*/
|
|
37
|
+
readonly getOnbehalfBumpInfo: {
|
|
38
|
+
readonly name: "GetOnbehalfBumpInfo",
|
|
39
|
+
readonly I: typeof GetOnbehalfBumpInfoRequest,
|
|
40
|
+
readonly O: typeof GetOnbehalfBumpInfoResponse,
|
|
41
|
+
readonly kind: MethodKind.Unary,
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfBundleInfo
|
|
45
|
+
*/
|
|
46
|
+
readonly getOnbehalfBundleInfo: {
|
|
47
|
+
readonly name: "GetOnbehalfBundleInfo",
|
|
48
|
+
readonly I: typeof GetOnbehalfBundleInfoRequest,
|
|
49
|
+
readonly O: typeof GetOnbehalfBundleInfoResponse,
|
|
50
|
+
readonly kind: MethodKind.Unary,
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfSpecialDisplayInfo
|
|
54
|
+
*/
|
|
55
|
+
readonly getOnbehalfSpecialDisplayInfo: {
|
|
56
|
+
readonly name: "GetOnbehalfSpecialDisplayInfo",
|
|
57
|
+
readonly I: typeof GetOnbehalfSpecialDisplayInfoRequest,
|
|
58
|
+
readonly O: typeof GetOnbehalfSpecialDisplayInfoResponse,
|
|
59
|
+
readonly kind: MethodKind.Unary,
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfIntensiveBumpInfo
|
|
63
|
+
*/
|
|
64
|
+
readonly getOnbehalfIntensiveBumpInfo: {
|
|
65
|
+
readonly name: "GetOnbehalfIntensiveBumpInfo",
|
|
66
|
+
readonly I: typeof GetOnbehalfIntensiveBumpInfoRequest,
|
|
67
|
+
readonly O: typeof GetOnbehalfIntensiveBumpInfoResponse,
|
|
68
|
+
readonly kind: MethodKind.Unary,
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfTimerBumpInfo
|
|
72
|
+
*/
|
|
73
|
+
readonly getOnbehalfTimerBumpInfo: {
|
|
74
|
+
readonly name: "GetOnbehalfTimerBumpInfo",
|
|
75
|
+
readonly I: typeof GetOnbehalfTimerBumpInfoRequest,
|
|
76
|
+
readonly O: typeof GetOnbehalfTimerBumpInfoResponse,
|
|
77
|
+
readonly kind: MethodKind.Unary,
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfSubscriptionInfo
|
|
81
|
+
*/
|
|
82
|
+
readonly getOnbehalfSubscriptionInfo: {
|
|
83
|
+
readonly name: "GetOnbehalfSubscriptionInfo",
|
|
84
|
+
readonly I: typeof GetOnbehalfSubscriptionInfoRequest,
|
|
85
|
+
readonly O: typeof GetOnbehalfSubscriptionInfoResponse,
|
|
86
|
+
readonly kind: MethodKind.Unary,
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfAdDeliveryInfo
|
|
90
|
+
*/
|
|
91
|
+
readonly getOnbehalfAdDeliveryInfo: {
|
|
92
|
+
readonly name: "GetOnbehalfAdDeliveryInfo",
|
|
93
|
+
readonly I: typeof GetOnbehalfAdDeliveryInfoRequest,
|
|
94
|
+
readonly O: typeof GetOnbehalfAdDeliveryInfoResponse,
|
|
95
|
+
readonly kind: MethodKind.Unary,
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const createOnbehalfOrder: UnaryHooks<CreateOnbehalfOrderRequest, CreateOnbehalfOrderResponse>;
|
|
101
|
+
export const getOnbehalfStickyAdInfo: UnaryHooks<GetOnbehalfStickyAdInfoRequest, GetOnbehalfStickyAdInfoResponse>;
|
|
102
|
+
export const getOnbehalfBumpInfo: UnaryHooks<GetOnbehalfBumpInfoRequest, GetOnbehalfBumpInfoResponse>;
|
|
103
|
+
export const getOnbehalfBundleInfo: UnaryHooks<GetOnbehalfBundleInfoRequest, GetOnbehalfBundleInfoResponse>;
|
|
104
|
+
export const getOnbehalfSpecialDisplayInfo: UnaryHooks<GetOnbehalfSpecialDisplayInfoRequest, GetOnbehalfSpecialDisplayInfoResponse>;
|
|
105
|
+
export const getOnbehalfIntensiveBumpInfo: UnaryHooks<GetOnbehalfIntensiveBumpInfoRequest, GetOnbehalfIntensiveBumpInfoResponse>;
|
|
106
|
+
export const getOnbehalfTimerBumpInfo: UnaryHooks<GetOnbehalfTimerBumpInfoRequest, GetOnbehalfTimerBumpInfoResponse>;
|
|
107
|
+
export const getOnbehalfSubscriptionInfo: UnaryHooks<GetOnbehalfSubscriptionInfoRequest, GetOnbehalfSubscriptionInfoResponse>;
|
|
108
|
+
export const getOnbehalfAdDeliveryInfo: UnaryHooks<GetOnbehalfAdDeliveryInfoRequest, GetOnbehalfAdDeliveryInfoResponse>;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v0.4.4 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file ct-logic-uni-rev-order/v1/onbehalf_service.proto (package ct_logic_uni_rev_order.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { CreateOnbehalfOrderRequest, CreateOnbehalfOrderResponse, GetOnbehalfAdDeliveryInfoRequest, GetOnbehalfAdDeliveryInfoResponse, GetOnbehalfBumpInfoRequest, GetOnbehalfBumpInfoResponse, GetOnbehalfBundleInfoRequest, GetOnbehalfBundleInfoResponse, GetOnbehalfIntensiveBumpInfoRequest, GetOnbehalfIntensiveBumpInfoResponse, GetOnbehalfSpecialDisplayInfoRequest, GetOnbehalfSpecialDisplayInfoResponse, GetOnbehalfStickyAdInfoRequest, GetOnbehalfStickyAdInfoResponse, GetOnbehalfSubscriptionInfoRequest, GetOnbehalfSubscriptionInfoResponse, GetOnbehalfTimerBumpInfoRequest, GetOnbehalfTimerBumpInfoResponse } from "./onbehalf_service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { createQueryService } from "@connectrpc/connect-query";
|
|
9
|
+
|
|
10
|
+
export const typeName = "ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @generated from service ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService
|
|
14
|
+
*/
|
|
15
|
+
export const LogicUniRevOrderOnBehalfService = {
|
|
16
|
+
typeName: "ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService",
|
|
17
|
+
methods: {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.CreateOnbehalfOrder
|
|
20
|
+
*/
|
|
21
|
+
createOnbehalfOrder: {
|
|
22
|
+
name: "CreateOnbehalfOrder",
|
|
23
|
+
I: CreateOnbehalfOrderRequest,
|
|
24
|
+
O: CreateOnbehalfOrderResponse,
|
|
25
|
+
kind: MethodKind.Unary,
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfStickyAdInfo
|
|
29
|
+
*/
|
|
30
|
+
getOnbehalfStickyAdInfo: {
|
|
31
|
+
name: "GetOnbehalfStickyAdInfo",
|
|
32
|
+
I: GetOnbehalfStickyAdInfoRequest,
|
|
33
|
+
O: GetOnbehalfStickyAdInfoResponse,
|
|
34
|
+
kind: MethodKind.Unary,
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfBumpInfo
|
|
38
|
+
*/
|
|
39
|
+
getOnbehalfBumpInfo: {
|
|
40
|
+
name: "GetOnbehalfBumpInfo",
|
|
41
|
+
I: GetOnbehalfBumpInfoRequest,
|
|
42
|
+
O: GetOnbehalfBumpInfoResponse,
|
|
43
|
+
kind: MethodKind.Unary,
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfBundleInfo
|
|
47
|
+
*/
|
|
48
|
+
getOnbehalfBundleInfo: {
|
|
49
|
+
name: "GetOnbehalfBundleInfo",
|
|
50
|
+
I: GetOnbehalfBundleInfoRequest,
|
|
51
|
+
O: GetOnbehalfBundleInfoResponse,
|
|
52
|
+
kind: MethodKind.Unary,
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfSpecialDisplayInfo
|
|
56
|
+
*/
|
|
57
|
+
getOnbehalfSpecialDisplayInfo: {
|
|
58
|
+
name: "GetOnbehalfSpecialDisplayInfo",
|
|
59
|
+
I: GetOnbehalfSpecialDisplayInfoRequest,
|
|
60
|
+
O: GetOnbehalfSpecialDisplayInfoResponse,
|
|
61
|
+
kind: MethodKind.Unary,
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfIntensiveBumpInfo
|
|
65
|
+
*/
|
|
66
|
+
getOnbehalfIntensiveBumpInfo: {
|
|
67
|
+
name: "GetOnbehalfIntensiveBumpInfo",
|
|
68
|
+
I: GetOnbehalfIntensiveBumpInfoRequest,
|
|
69
|
+
O: GetOnbehalfIntensiveBumpInfoResponse,
|
|
70
|
+
kind: MethodKind.Unary,
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfTimerBumpInfo
|
|
74
|
+
*/
|
|
75
|
+
getOnbehalfTimerBumpInfo: {
|
|
76
|
+
name: "GetOnbehalfTimerBumpInfo",
|
|
77
|
+
I: GetOnbehalfTimerBumpInfoRequest,
|
|
78
|
+
O: GetOnbehalfTimerBumpInfoResponse,
|
|
79
|
+
kind: MethodKind.Unary,
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfSubscriptionInfo
|
|
83
|
+
*/
|
|
84
|
+
getOnbehalfSubscriptionInfo: {
|
|
85
|
+
name: "GetOnbehalfSubscriptionInfo",
|
|
86
|
+
I: GetOnbehalfSubscriptionInfoRequest,
|
|
87
|
+
O: GetOnbehalfSubscriptionInfoResponse,
|
|
88
|
+
kind: MethodKind.Unary,
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfAdDeliveryInfo
|
|
92
|
+
*/
|
|
93
|
+
getOnbehalfAdDeliveryInfo: {
|
|
94
|
+
name: "GetOnbehalfAdDeliveryInfo",
|
|
95
|
+
I: GetOnbehalfAdDeliveryInfoRequest,
|
|
96
|
+
O: GetOnbehalfAdDeliveryInfoResponse,
|
|
97
|
+
kind: MethodKind.Unary,
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.CreateOnbehalfOrder
|
|
104
|
+
*/
|
|
105
|
+
export const createOnbehalfOrder = createQueryService({
|
|
106
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
107
|
+
}).createOnbehalfOrder;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfStickyAdInfo
|
|
111
|
+
*/
|
|
112
|
+
export const getOnbehalfStickyAdInfo = createQueryService({
|
|
113
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
114
|
+
}).getOnbehalfStickyAdInfo;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfBumpInfo
|
|
118
|
+
*/
|
|
119
|
+
export const getOnbehalfBumpInfo = createQueryService({
|
|
120
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
121
|
+
}).getOnbehalfBumpInfo;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfBundleInfo
|
|
125
|
+
*/
|
|
126
|
+
export const getOnbehalfBundleInfo = createQueryService({
|
|
127
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
128
|
+
}).getOnbehalfBundleInfo;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfSpecialDisplayInfo
|
|
132
|
+
*/
|
|
133
|
+
export const getOnbehalfSpecialDisplayInfo = createQueryService({
|
|
134
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
135
|
+
}).getOnbehalfSpecialDisplayInfo;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfIntensiveBumpInfo
|
|
139
|
+
*/
|
|
140
|
+
export const getOnbehalfIntensiveBumpInfo = createQueryService({
|
|
141
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
142
|
+
}).getOnbehalfIntensiveBumpInfo;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfTimerBumpInfo
|
|
146
|
+
*/
|
|
147
|
+
export const getOnbehalfTimerBumpInfo = createQueryService({
|
|
148
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
149
|
+
}).getOnbehalfTimerBumpInfo;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfSubscriptionInfo
|
|
153
|
+
*/
|
|
154
|
+
export const getOnbehalfSubscriptionInfo = createQueryService({
|
|
155
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
156
|
+
}).getOnbehalfSubscriptionInfo;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @generated from rpc ct_logic_uni_rev_order.v1.LogicUniRevOrderOnBehalfService.GetOnbehalfAdDeliveryInfo
|
|
160
|
+
*/
|
|
161
|
+
export const getOnbehalfAdDeliveryInfo = createQueryService({
|
|
162
|
+
service: LogicUniRevOrderOnBehalfService,
|
|
163
|
+
}).getOnbehalfAdDeliveryInfo;
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package ct_logic_uni_rev_order.v1;
|
|
4
|
+
|
|
5
|
+
// import third party protos
|
|
6
|
+
import "google/protobuf/timestamp.proto";
|
|
7
|
+
import "validate/validate.proto";
|
|
8
|
+
|
|
9
|
+
// language specs
|
|
10
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-order;pb";
|
|
11
|
+
|
|
12
|
+
enum OnBehalfOrderRequestType {
|
|
13
|
+
ON_BEHALF_ORDER_REQUEST_TYPE_UNSPECIFIED = 0;
|
|
14
|
+
ON_BEHALF_ORDER_REQUEST_TYPE_ADD_TO_CART = 1;
|
|
15
|
+
ON_BEHALF_ORDER_REQUEST_TYPE_CREATE_ONLY = 2;
|
|
16
|
+
ON_BEHALF_ORDER_REQUEST_TYPE_CREATE_AND_PAY = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message CreateOnbehalfOrderRequest {
|
|
20
|
+
OnBehalfOrderRequestType request_type = 1;
|
|
21
|
+
int64 account_id = 2 [(validate.rules).int64.gte = 0];
|
|
22
|
+
string phone = 3 [(validate.rules).string = {
|
|
23
|
+
min_len: 1,
|
|
24
|
+
max_len: 100,
|
|
25
|
+
}];
|
|
26
|
+
google.protobuf.Timestamp payment_expired_at = 4;
|
|
27
|
+
repeated CreateOnbehalfOrderServiceRequest services = 5 [(validate.rules).repeated = {min_items: 1}];
|
|
28
|
+
bool is_active = 6;
|
|
29
|
+
string full_name = 7;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message CreateOnbehalfOrderServiceRequest {
|
|
33
|
+
string type = 1 [(validate.rules).string = {
|
|
34
|
+
min_len: 1,
|
|
35
|
+
max_len: 100,
|
|
36
|
+
}];
|
|
37
|
+
int64 ad_id = 2 [(validate.rules).int64.gte = 0];
|
|
38
|
+
ServiceParam params = 3;
|
|
39
|
+
optional string shop_alias = 4;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message ServiceParam {
|
|
43
|
+
optional StickyAdParam sticky_ad_param = 1;
|
|
44
|
+
optional SpecialDisplayParam special_display_param = 2;
|
|
45
|
+
optional TimerBumpParam timer_bump_param = 3;
|
|
46
|
+
optional BundleParam bundle_param = 4;
|
|
47
|
+
optional IntensiveBumpParam intensive_bump_param = 5;
|
|
48
|
+
optional SubscriptionParam subscription_param = 6;
|
|
49
|
+
optional ExtendShopParam extend_shop_param = 7;
|
|
50
|
+
optional CreateShopParam create_shop_param = 8;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message StickyAdParam {
|
|
54
|
+
int64 duration = 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message SpecialDisplayParam {
|
|
58
|
+
int64 duration = 1;
|
|
59
|
+
string user_type = 2;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message TimerBumpParam {
|
|
63
|
+
int64 duration = 1;
|
|
64
|
+
repeated int64 days_of_week = 2;
|
|
65
|
+
repeated TimerBumpBlockTime block_times = 3;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message TimerBumpBlockTime {
|
|
69
|
+
int64 start = 1;
|
|
70
|
+
int64 end = 2;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message BundleParam {
|
|
74
|
+
int64 bundle_id = 1;
|
|
75
|
+
int64 category_id = 6;
|
|
76
|
+
int64 region_id = 7;
|
|
77
|
+
int64 area = 8;
|
|
78
|
+
int64 ad_id = 9;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message IntensiveBumpParam {
|
|
82
|
+
int64 duration = 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message CheckoutURL {
|
|
86
|
+
string web = 1;
|
|
87
|
+
string android = 2;
|
|
88
|
+
string ios = 3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message CreateOnbehalfOrderResponse {
|
|
92
|
+
int64 order_id = 1;
|
|
93
|
+
string payment_code = 2;
|
|
94
|
+
int64 amount = 3;
|
|
95
|
+
CheckoutURL checkout_urls = 4;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message GetOnbehalfStickyAdInfoRequest {
|
|
99
|
+
int64 limit = 1;
|
|
100
|
+
int64 offset = 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message GetOnbehalfStickyAdInfoResponse {
|
|
104
|
+
repeated OnbehalfStickyAdInfo info = 1;
|
|
105
|
+
int64 total = 2;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message OnbehalfStickyAdInfo {
|
|
109
|
+
string id = 1;
|
|
110
|
+
int64 account_id = 2;
|
|
111
|
+
string full_name = 3;
|
|
112
|
+
string phone = 4;
|
|
113
|
+
int64 ad = 5;
|
|
114
|
+
int64 package = 6;
|
|
115
|
+
int64 amount = 7;
|
|
116
|
+
bool is_active = 8;
|
|
117
|
+
bool is_deleted = 9;
|
|
118
|
+
google.protobuf.Timestamp created_at = 10;
|
|
119
|
+
google.protobuf.Timestamp updated_at = 11;
|
|
120
|
+
int64 role = 12;
|
|
121
|
+
string payment_type = 13;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message GetOnbehalfBumpInfoRequest {
|
|
125
|
+
int64 limit = 1;
|
|
126
|
+
int64 offset = 2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message GetOnbehalfBumpInfoResponse {
|
|
130
|
+
repeated OnbehalfBumpInfo info = 1;
|
|
131
|
+
int64 total = 2;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
message OnbehalfBumpInfo {
|
|
135
|
+
string id = 1;
|
|
136
|
+
int64 account_id = 2;
|
|
137
|
+
string full_name = 3;
|
|
138
|
+
string phone = 4;
|
|
139
|
+
int64 ad = 5;
|
|
140
|
+
string bump_type = 6;
|
|
141
|
+
int64 amount = 7;
|
|
142
|
+
bool is_active = 8;
|
|
143
|
+
bool is_deleted = 9;
|
|
144
|
+
google.protobuf.Timestamp created_at = 10;
|
|
145
|
+
google.protobuf.Timestamp updated_at = 11;
|
|
146
|
+
int64 role = 12;
|
|
147
|
+
string payment_type = 13;
|
|
148
|
+
string ad_title = 14;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message GetOnbehalfBundleInfoRequest {
|
|
152
|
+
int64 limit = 1;
|
|
153
|
+
int64 offset = 2;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message GetOnbehalfBundleInfoResponse {
|
|
157
|
+
repeated OnbehalfBundleInfo info = 1;
|
|
158
|
+
int64 total = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message OnbehalfBundleInfo {
|
|
162
|
+
string id = 1;
|
|
163
|
+
int64 account_id = 2;
|
|
164
|
+
int64 area = 3;
|
|
165
|
+
int64 category_id = 4;
|
|
166
|
+
int64 region_id = 5;
|
|
167
|
+
string full_name = 6;
|
|
168
|
+
string phone = 7;
|
|
169
|
+
int64 ad = 8;
|
|
170
|
+
int64 bundle_type = 9;
|
|
171
|
+
int64 amount = 10;
|
|
172
|
+
bool is_active = 11;
|
|
173
|
+
bool is_deleted = 12;
|
|
174
|
+
int64 role = 13;
|
|
175
|
+
string payment_type = 14;
|
|
176
|
+
google.protobuf.Timestamp created_at = 15;
|
|
177
|
+
google.protobuf.Timestamp updated_at = 16;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
message GetOnbehalfSpecialDisplayInfoRequest {
|
|
181
|
+
int64 limit = 1;
|
|
182
|
+
int64 offset = 2;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
message GetOnbehalfSpecialDisplayInfoResponse {
|
|
186
|
+
repeated OnbehalfSpecialDisplayInfo info = 1;
|
|
187
|
+
int64 total = 2;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message OnbehalfSpecialDisplayInfo {
|
|
191
|
+
string id = 1;
|
|
192
|
+
int64 account_id = 2;
|
|
193
|
+
int64 ad_id = 3;
|
|
194
|
+
int64 price = 4;
|
|
195
|
+
google.protobuf.Timestamp created_at = 5;
|
|
196
|
+
google.protobuf.Timestamp updated_at = 6;
|
|
197
|
+
int64 order_id = 7;
|
|
198
|
+
string payment_type = 8;
|
|
199
|
+
string created_by = 9;
|
|
200
|
+
int64 duration = 10;
|
|
201
|
+
string confirm = 11;
|
|
202
|
+
string user_type = 12;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message GetOnbehalfIntensiveBumpInfoRequest {
|
|
206
|
+
int64 limit = 1;
|
|
207
|
+
int64 offset = 2;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message GetOnbehalfIntensiveBumpInfoResponse {
|
|
211
|
+
repeated OnbehalfIntensiveBumpInfo info = 1;
|
|
212
|
+
int64 total = 2;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
message OnbehalfIntensiveBumpInfo {
|
|
216
|
+
string id = 1;
|
|
217
|
+
int64 account_id = 2;
|
|
218
|
+
string phone = 3;
|
|
219
|
+
int64 ad_id = 4;
|
|
220
|
+
int64 duration = 5;
|
|
221
|
+
int64 amount = 6;
|
|
222
|
+
string payment_type = 7;
|
|
223
|
+
bool confirmed_by_user = 8;
|
|
224
|
+
google.protobuf.Timestamp created_at = 9;
|
|
225
|
+
google.protobuf.Timestamp updated_at = 10;
|
|
226
|
+
string created_by = 11;
|
|
227
|
+
string full_name = 12;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message GetOnbehalfTimerBumpInfoRequest {
|
|
231
|
+
int64 limit = 1;
|
|
232
|
+
int64 offset = 2;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message GetOnbehalfTimerBumpInfoResponse {
|
|
236
|
+
repeated OnbehalfTimerBumpInfo info = 1;
|
|
237
|
+
int64 total = 2;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message OnbehalfTimerBumpInfo {
|
|
241
|
+
string id = 1;
|
|
242
|
+
int64 account_id = 2;
|
|
243
|
+
string phone = 3;
|
|
244
|
+
int64 bump_week = 4;
|
|
245
|
+
int64 price = 5;
|
|
246
|
+
google.protobuf.Timestamp created_at = 6;
|
|
247
|
+
google.protobuf.Timestamp updated_at = 7;
|
|
248
|
+
int64 order_id = 8;
|
|
249
|
+
string payment_type = 9;
|
|
250
|
+
int64 number_of_bump = 10;
|
|
251
|
+
string created_by = 11;
|
|
252
|
+
string confirm = 12;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
message SubscriptionParam {
|
|
256
|
+
int64 quantity = 1;
|
|
257
|
+
int64 subscription_id = 2;
|
|
258
|
+
string subscription_name = 3; // onbehalf info
|
|
259
|
+
string vertical = 4; // onbehalf info
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message ExtendShopParam {
|
|
263
|
+
int64 duration = 1;
|
|
264
|
+
string shop_alias = 2;
|
|
265
|
+
int64 account_id = 3;
|
|
266
|
+
string phone = 4;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
message CreateShopParam {
|
|
270
|
+
int64 category_id = 1;
|
|
271
|
+
int64 duration = 2;
|
|
272
|
+
int64 account_id = 3;
|
|
273
|
+
string phone = 4;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
message OnbehalfSubscription {
|
|
277
|
+
string id = 1;
|
|
278
|
+
int64 account_id = 2;
|
|
279
|
+
string phone = 3;
|
|
280
|
+
int64 subscription = 4;
|
|
281
|
+
string vertical = 5;
|
|
282
|
+
int64 duration = 6;
|
|
283
|
+
int64 amount = 7;
|
|
284
|
+
google.protobuf.Timestamp created_at = 8;
|
|
285
|
+
google.protobuf.Timestamp updated_at = 9;
|
|
286
|
+
int64 order_id = 10;
|
|
287
|
+
string payment_type = 11;
|
|
288
|
+
string created_by = 12;
|
|
289
|
+
string confirm = 13;
|
|
290
|
+
string subscription_name = 14;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
message GetOnbehalfSubscriptionInfoRequest {
|
|
294
|
+
int64 limit = 1;
|
|
295
|
+
int64 offset = 2;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message GetOnbehalfSubscriptionInfoResponse {
|
|
299
|
+
repeated OnbehalfSubscription info = 1;
|
|
300
|
+
int64 total = 2;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message OnbehalfAdDelivery {
|
|
304
|
+
string id = 1;
|
|
305
|
+
string campaign_name = 2;
|
|
306
|
+
int64 account_id = 3;
|
|
307
|
+
string package_id = 4;
|
|
308
|
+
string package_name = 5;
|
|
309
|
+
int64 price = 6;
|
|
310
|
+
int64 duration = 7;
|
|
311
|
+
google.protobuf.Timestamp start_time = 8;
|
|
312
|
+
google.protobuf.Timestamp end_time = 9;
|
|
313
|
+
string payment_link = 10;
|
|
314
|
+
int64 order_id = 11;
|
|
315
|
+
int64 service_id = 12;
|
|
316
|
+
string payment_type = 13;
|
|
317
|
+
string confirm = 14;
|
|
318
|
+
google.protobuf.Timestamp created_at = 15;
|
|
319
|
+
google.protobuf.Timestamp updated_at = 16;
|
|
320
|
+
string created_by = 17;
|
|
321
|
+
repeated int64 region_ids = 18;
|
|
322
|
+
repeated int64 ad_ids = 19;
|
|
323
|
+
string phone = 20;
|
|
324
|
+
string campaign_id = 21;
|
|
325
|
+
int64 category_id = 22;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
message GetOnbehalfAdDeliveryInfoRequest {
|
|
329
|
+
int64 limit = 1;
|
|
330
|
+
int64 offset = 2;
|
|
331
|
+
string phone = 3;
|
|
332
|
+
int64 order_id = 4;
|
|
333
|
+
string campaign_id = 5;
|
|
334
|
+
string campaign_name = 6;
|
|
335
|
+
string package_name = 7;
|
|
336
|
+
string created_by = 8;
|
|
337
|
+
repeated int64 categories = 9;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
message GetOnbehalfAdDeliveryInfoResponse {
|
|
341
|
+
repeated OnbehalfAdDelivery info = 1;
|
|
342
|
+
int64 total = 2;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
service LogicUniRevOrderOnBehalfService {
|
|
346
|
+
rpc CreateOnbehalfOrder(CreateOnbehalfOrderRequest) returns (CreateOnbehalfOrderResponse) {}
|
|
347
|
+
rpc GetOnbehalfStickyAdInfo(GetOnbehalfStickyAdInfoRequest) returns (GetOnbehalfStickyAdInfoResponse) {}
|
|
348
|
+
rpc GetOnbehalfBumpInfo(GetOnbehalfBumpInfoRequest) returns (GetOnbehalfBumpInfoResponse) {}
|
|
349
|
+
rpc GetOnbehalfBundleInfo(GetOnbehalfBundleInfoRequest) returns (GetOnbehalfBundleInfoResponse) {}
|
|
350
|
+
rpc GetOnbehalfSpecialDisplayInfo(GetOnbehalfSpecialDisplayInfoRequest) returns (GetOnbehalfSpecialDisplayInfoResponse) {}
|
|
351
|
+
rpc GetOnbehalfIntensiveBumpInfo(GetOnbehalfIntensiveBumpInfoRequest) returns (GetOnbehalfIntensiveBumpInfoResponse) {}
|
|
352
|
+
rpc GetOnbehalfTimerBumpInfo(GetOnbehalfTimerBumpInfoRequest) returns (GetOnbehalfTimerBumpInfoResponse) {}
|
|
353
|
+
rpc GetOnbehalfSubscriptionInfo(GetOnbehalfSubscriptionInfoRequest) returns (GetOnbehalfSubscriptionInfoResponse) {}
|
|
354
|
+
rpc GetOnbehalfAdDeliveryInfo(GetOnbehalfAdDeliveryInfoRequest) returns (GetOnbehalfAdDeliveryInfoResponse) {}
|
|
355
|
+
}
|