@sellout/models 0.0.1
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/.dist/interfaces/IAddress.d.ts +13 -0
- package/.dist/interfaces/IAddress.js +3 -0
- package/.dist/interfaces/IAddress.js.map +1 -0
- package/.dist/interfaces/IMetrics.d.ts +29 -0
- package/.dist/interfaces/IMetrics.js +3 -0
- package/.dist/interfaces/IMetrics.js.map +1 -0
- package/.dist/interfaces/IPagination.d.ts +4 -0
- package/.dist/interfaces/IPagination.js +3 -0
- package/.dist/interfaces/IPagination.js.map +1 -0
- package/.dist/interfaces/IQuery.d.ts +15 -0
- package/.dist/interfaces/IQuery.js +20 -0
- package/.dist/interfaces/IQuery.js.map +1 -0
- package/.dist/mongo/Address.d.ts +58 -0
- package/.dist/mongo/Address.js +60 -0
- package/.dist/mongo/Address.js.map +1 -0
- package/.dist/mongo/Metrics.d.ts +131 -0
- package/.dist/mongo/Metrics.js +137 -0
- package/.dist/mongo/Metrics.js.map +1 -0
- package/.dist/schemas/Address.d.ts +58 -0
- package/.dist/schemas/Address.js +60 -0
- package/.dist/schemas/Address.js.map +1 -0
- package/.dist/schemas/Metrics.d.ts +131 -0
- package/.dist/schemas/Metrics.js +137 -0
- package/.dist/schemas/Metrics.js.map +1 -0
- package/.dist/sellout-proto.js +92266 -0
- package/.dist/utils/EventUtil.d.ts +38 -0
- package/.dist/utils/EventUtil.js +188 -0
- package/.dist/utils/EventUtil.js.map +1 -0
- package/.dist/utils/FeeUtil.d.ts +7 -0
- package/.dist/utils/FeeUtil.js +37 -0
- package/.dist/utils/FeeUtil.js.map +1 -0
- package/.dist/utils/OrderUtil.d.ts +29 -0
- package/.dist/utils/OrderUtil.js +216 -0
- package/.dist/utils/OrderUtil.js.map +1 -0
- package/.dist/utils/WebFlowUtil.d.ts +7 -0
- package/.dist/utils/WebFlowUtil.js +10 -0
- package/.dist/utils/WebFlowUtil.js.map +1 -0
- package/package.json +29 -0
- package/src/interfaces/IAddress.ts +13 -0
- package/src/interfaces/IArtist.ts +14 -0
- package/src/interfaces/IArtistContact.ts +8 -0
- package/src/interfaces/IArtistPressKit.ts +8 -0
- package/src/interfaces/IEvent.ts +62 -0
- package/src/interfaces/IEventCustomField.ts +16 -0
- package/src/interfaces/IEventPromotion.ts +15 -0
- package/src/interfaces/IEventSchedule.ts +7 -0
- package/src/interfaces/IEventUpgrade.ts +13 -0
- package/src/interfaces/IFee.ts +46 -0
- package/src/interfaces/IFile.ts +7 -0
- package/src/interfaces/IMetrics.ts +33 -0
- package/src/interfaces/IOrder.ts +32 -0
- package/src/interfaces/IOrderCustomField.ts +7 -0
- package/src/interfaces/IOrderState.ts +19 -0
- package/src/interfaces/IOrderSummary.ts +37 -0
- package/src/interfaces/IOrderTicket.ts +15 -0
- package/src/interfaces/IOrderType.ts +5 -0
- package/src/interfaces/IOrderUpgrade.ts +14 -0
- package/src/interfaces/IOrganization.ts +19 -0
- package/src/interfaces/IPagination.ts +4 -0
- package/src/interfaces/IPerformance.ts +18 -0
- package/src/interfaces/IQuery.ts +30 -0
- package/src/interfaces/IRefund.ts +6 -0
- package/src/interfaces/IRole.ts +17 -0
- package/src/interfaces/IScan.ts +5 -0
- package/src/interfaces/ISeating.ts +9 -0
- package/src/interfaces/ISocialAccountLink.ts +14 -0
- package/src/interfaces/ITask.ts +22 -0
- package/src/interfaces/ITicketExchange.ts +11 -0
- package/src/interfaces/ITicketHold.ts +6 -0
- package/src/interfaces/ITicketTier.ts +9 -0
- package/src/interfaces/ITicketType.ts +12 -0
- package/src/interfaces/IUser.ts +26 -0
- package/src/interfaces/IUserProfile.ts +20 -0
- package/src/interfaces/IVenue.ts +17 -0
- package/src/interfaces/IWebFlow.ts +55 -0
- package/src/proto/artist.proto +156 -0
- package/src/proto/broadcast.proto +157 -0
- package/src/proto/common.proto +59 -0
- package/src/proto/email.proto +179 -0
- package/src/proto/error.proto +31 -0
- package/src/proto/event.proto +270 -0
- package/src/proto/fee.proto +196 -0
- package/src/proto/file-upload.proto +27 -0
- package/src/proto/order.proto +272 -0
- package/src/proto/organization.proto +107 -0
- package/src/proto/role.proto +136 -0
- package/src/proto/seating.proto +64 -0
- package/src/proto/stripe.proto +181 -0
- package/src/proto/task.proto +39 -0
- package/src/proto/twilio.proto +43 -0
- package/src/proto/user-profile.proto +124 -0
- package/src/proto/user.proto +284 -0
- package/src/proto/venue.proto +120 -0
- package/src/proto/web-flow.proto +315 -0
- package/src/schemas/Address.ts +57 -0
- package/src/schemas/Artist.ts +104 -0
- package/src/schemas/Event.ts +400 -0
- package/src/schemas/Fee.ts +74 -0
- package/src/schemas/Metrics.ts +134 -0
- package/src/schemas/Order.ts +200 -0
- package/src/schemas/Organization.ts +108 -0
- package/src/schemas/Role.ts +37 -0
- package/src/schemas/Seating.ts +34 -0
- package/src/schemas/User.ts +95 -0
- package/src/schemas/UserProfile.ts +67 -0
- package/src/schemas/Venue.ts +58 -0
- package/src/schemas/WebFlow.ts +132 -0
- package/src/utils/EventUtil.ts +186 -0
- package/src/utils/FeeUtil.ts +34 -0
- package/src/utils/OrderUtil.ts +226 -0
- package/src/utils/WebFlowUtil.ts +8 -0
- package/tsconfig.json +27 -0
- package/tslint.json +21 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "error.proto";
|
|
4
|
+
import "common.proto";
|
|
5
|
+
|
|
6
|
+
message Event {
|
|
7
|
+
string _id = 1;
|
|
8
|
+
string orgId = 2;
|
|
9
|
+
string type = 3;
|
|
10
|
+
string name = 4;
|
|
11
|
+
string subtitle = 5;
|
|
12
|
+
string description = 6;
|
|
13
|
+
string posterImageUrl = 7;
|
|
14
|
+
string venueId = 8;
|
|
15
|
+
int32 createdAt = 9;
|
|
16
|
+
bool publishable = 10;
|
|
17
|
+
string seatingChartKey = 11;
|
|
18
|
+
string age = 12;
|
|
19
|
+
bool active = 13;
|
|
20
|
+
string userAgreement = 14;
|
|
21
|
+
string processAs = 15;
|
|
22
|
+
string sendQRCode = 16;
|
|
23
|
+
Address location = 17;
|
|
24
|
+
EventSchedule schedule = 18;
|
|
25
|
+
repeated Performance performances = 19;
|
|
26
|
+
repeated TicketType ticketTypes = 20;
|
|
27
|
+
repeated TicketHold holds = 21;
|
|
28
|
+
repeated EventUpgrade upgrades = 22;
|
|
29
|
+
repeated EventPromotion promotions = 23;
|
|
30
|
+
repeated EventCustomFields customFields = 24;
|
|
31
|
+
TicketExchange exchange = 25;
|
|
32
|
+
Metrics metrics = 26;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message EventSchedule {
|
|
36
|
+
int32 announceAt = 0;
|
|
37
|
+
int32 ticketsAt = 1;
|
|
38
|
+
int32 ticketsEndAt = 2;
|
|
39
|
+
int32 startsAt = 3;
|
|
40
|
+
int32 endsAt = 4;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message PerformanceSchedule {
|
|
44
|
+
int32 doorsAt = 1;
|
|
45
|
+
int32 startsAt = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message Performance {
|
|
49
|
+
string _id = 1;
|
|
50
|
+
string name = 2;
|
|
51
|
+
repeated string headliningArtistIds = 3;
|
|
52
|
+
repeated string openingArtistIds = 4;
|
|
53
|
+
string venueStageId = 5;
|
|
54
|
+
int32 price = 6;
|
|
55
|
+
string posterImageUrl = 7;
|
|
56
|
+
string videoLink = 8;
|
|
57
|
+
string songLink = 9;
|
|
58
|
+
PerformanceSchedule schedule = 10;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message TicketType {
|
|
62
|
+
string _id = 1;
|
|
63
|
+
string name = 2;
|
|
64
|
+
int32 totalQty = 3;
|
|
65
|
+
int32 remainingQty = 4;
|
|
66
|
+
int32 purchaseLimit = 5;
|
|
67
|
+
repeated string performanceIds = 6;
|
|
68
|
+
repeated TicketTier tiers = 7;
|
|
69
|
+
bool visible = 8;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message TicketTier {
|
|
73
|
+
string _id = 1;
|
|
74
|
+
string name = 2;
|
|
75
|
+
int32 price = 3;
|
|
76
|
+
int32 startsAt = 4;
|
|
77
|
+
int32 endsAt = 5;
|
|
78
|
+
int32 totalQty = 6;
|
|
79
|
+
int32 remainingQty = 7;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message TicketHold {
|
|
83
|
+
string _id = 1;
|
|
84
|
+
string name = 2;
|
|
85
|
+
int32 qty = 3;
|
|
86
|
+
string ticketTypeId = 4;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message EventUpgrade {
|
|
90
|
+
string _id = 0;
|
|
91
|
+
string name = 1;
|
|
92
|
+
int32 price = 2;
|
|
93
|
+
int32 totalQty = 3;
|
|
94
|
+
int32 remainingQty = 4;
|
|
95
|
+
int32 purchaseLimit = 5;
|
|
96
|
+
bool complimentary = 6;
|
|
97
|
+
repeated string ticketTypeIds = 7;
|
|
98
|
+
string imageUrl = 8;
|
|
99
|
+
string description = 9;
|
|
100
|
+
bool visible = 10;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message EventPromotion {
|
|
104
|
+
string _id = 0;
|
|
105
|
+
string code = 1;
|
|
106
|
+
string type = 2;
|
|
107
|
+
int32 remainingQty = 3;
|
|
108
|
+
int32 totalQty = 4;
|
|
109
|
+
repeated string ticketTypeIds = 5;
|
|
110
|
+
repeated string upgradeIds = 6;
|
|
111
|
+
bool active = 7;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message EventCustomFields {
|
|
115
|
+
string _id = 0;
|
|
116
|
+
string label = 1;
|
|
117
|
+
string type = 2;
|
|
118
|
+
int32 minLength = 3;
|
|
119
|
+
int32 maxLength = 4;
|
|
120
|
+
int32 minValue = 5;
|
|
121
|
+
int32 maxValue = 6;
|
|
122
|
+
bool required = 7;
|
|
123
|
+
bool active = 8;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message TicketExchange {
|
|
127
|
+
string allowed = 0;
|
|
128
|
+
int32 percent = 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Create Event
|
|
132
|
+
message CreateEventRequest {
|
|
133
|
+
string spanContext = 0;
|
|
134
|
+
string orgId = 1;
|
|
135
|
+
Event event = 2;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message CreateEventResponse {
|
|
139
|
+
StatusCode status = 0;
|
|
140
|
+
repeated Error errors = 1;
|
|
141
|
+
Event event = 2;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Update Event
|
|
145
|
+
message UpdateEventRequest {
|
|
146
|
+
string spanContext = 0;
|
|
147
|
+
string orgId = 1;
|
|
148
|
+
Event event = 2;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message UpdateEventResponse {
|
|
152
|
+
StatusCode status = 0;
|
|
153
|
+
repeated Error errors = 1;
|
|
154
|
+
Event event = 2;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/****************************************************************************************
|
|
158
|
+
Publish Event
|
|
159
|
+
****************************************************************************************/
|
|
160
|
+
|
|
161
|
+
message PublishEventRequest {
|
|
162
|
+
string spanContext = 0;
|
|
163
|
+
string orgId = 1;
|
|
164
|
+
string eventId = 2;
|
|
165
|
+
repeated string publishSiteIds = 3;
|
|
166
|
+
repeated string unpublishSiteIds = 4;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message PublishEventResponse {
|
|
170
|
+
StatusCode status = 0;
|
|
171
|
+
repeated Error errors = 1;
|
|
172
|
+
Event event = 2;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/****************************************************************************************
|
|
176
|
+
Find Event
|
|
177
|
+
****************************************************************************************/
|
|
178
|
+
|
|
179
|
+
message EventQuery {
|
|
180
|
+
string name = 0;
|
|
181
|
+
repeated string eventIds = 1;
|
|
182
|
+
repeated string venueIds = 2;
|
|
183
|
+
repeated string artistIds = 3;
|
|
184
|
+
repeated string userIds = 4;
|
|
185
|
+
int32 startDate = 5;
|
|
186
|
+
int32 endDate = 6;
|
|
187
|
+
bool any = 7;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message QueryEventsRequest {
|
|
191
|
+
string spanContext = 0;
|
|
192
|
+
string orgId = 1;
|
|
193
|
+
EventQuery query = 2;
|
|
194
|
+
Pagination pagination = 3;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message QueryEventsResponse {
|
|
198
|
+
StatusCode status = 0;
|
|
199
|
+
repeated Error errors = 1;
|
|
200
|
+
repeated Event events = 2;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Find Event By Id
|
|
204
|
+
message FindEventByIdRequest {
|
|
205
|
+
string spanContext = 0;
|
|
206
|
+
string eventId = 1;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message FindEventByIdResponse {
|
|
210
|
+
StatusCode status = 0;
|
|
211
|
+
repeated Error errors = 1;
|
|
212
|
+
Event event = 2;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// List Events
|
|
216
|
+
message ListEventsRequest {
|
|
217
|
+
string spanContext = 0;
|
|
218
|
+
string orgId = 1;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message ListEventsResponse {
|
|
222
|
+
StatusCode status = 0;
|
|
223
|
+
repeated Error errors = 1;
|
|
224
|
+
repeated Event events = 2;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Delete Event
|
|
228
|
+
message DeleteEventRequest {
|
|
229
|
+
string spanContext = 0;
|
|
230
|
+
string orgId = 1;
|
|
231
|
+
string eventId = 2;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
message DeleteEventResponse {
|
|
235
|
+
StatusCode status = 0;
|
|
236
|
+
repeated Error errors = 1;
|
|
237
|
+
int32 ordersCount = 2;
|
|
238
|
+
int32 ordersRefundedCount = 3;
|
|
239
|
+
bool deleted = 4;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Duplicate Event
|
|
243
|
+
message DuplicateEventRequest {
|
|
244
|
+
string spanContext = 0;
|
|
245
|
+
string eventId = 1;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
message DuplicateEventResponse {
|
|
249
|
+
StatusCode status = 0;
|
|
250
|
+
repeated Error errors = 1;
|
|
251
|
+
Event event = 2;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
service EventService {
|
|
255
|
+
// Create
|
|
256
|
+
rpc createEvent(CreateEventRequest) returns (CreateEventResponse) {}
|
|
257
|
+
rpc publishEvent(PublishEventRequest) returns (PublishEventResponse) {}
|
|
258
|
+
// Update
|
|
259
|
+
rpc updateEvent(UpdateEventRequest) returns (UpdateEventResponse) {}
|
|
260
|
+
// Query
|
|
261
|
+
rpc queryEvents(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
262
|
+
// Find
|
|
263
|
+
rpc findEventById(FindEventByIdRequest) returns (FindEventByIdResponse) {}
|
|
264
|
+
// List
|
|
265
|
+
rpc listEvents(ListEventsRequest) returns (ListEventsResponse) {}
|
|
266
|
+
// Delete
|
|
267
|
+
rpc deleteEvent(DeleteEventRequest) returns (DeleteEventResponse) {}
|
|
268
|
+
// Duplicate
|
|
269
|
+
rpc duplicateEvent(DuplicateEventRequest) returns (DuplicateEventResponse) {}
|
|
270
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "error.proto";
|
|
4
|
+
import "common.proto";
|
|
5
|
+
|
|
6
|
+
message Fee {
|
|
7
|
+
string _id = 0;
|
|
8
|
+
string name = 1;
|
|
9
|
+
string orgId = 2;
|
|
10
|
+
string eventId = 3;
|
|
11
|
+
string type = 4;
|
|
12
|
+
double value = 5;
|
|
13
|
+
string appliedTo = 6;
|
|
14
|
+
string appliedBy = 7;
|
|
15
|
+
int32 minAppliedToPrice = 8;
|
|
16
|
+
int32 maxAppliedToPrice = 9;
|
|
17
|
+
repeated string filters = 10;
|
|
18
|
+
string createdBy = 11;
|
|
19
|
+
int32 createdAt = 12;
|
|
20
|
+
string updatedBy = 13;
|
|
21
|
+
int32 updatedAt = 14;
|
|
22
|
+
bool disabled = 15;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/****************************************************************************************
|
|
26
|
+
Create Fee
|
|
27
|
+
****************************************************************************************/
|
|
28
|
+
message CreateFeeRequest {
|
|
29
|
+
string spanContext = 0;
|
|
30
|
+
string orgId = 1;
|
|
31
|
+
string requestorId = 2;
|
|
32
|
+
Fee fee = 3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message CreateFeeResponse {
|
|
36
|
+
StatusCode status = 0;
|
|
37
|
+
repeated Error errors = 1;
|
|
38
|
+
Fee fee = 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/****************************************************************************************
|
|
42
|
+
Update Fee
|
|
43
|
+
****************************************************************************************/
|
|
44
|
+
|
|
45
|
+
message UpdateFeeRequest {
|
|
46
|
+
string spanContext = 0;
|
|
47
|
+
string orgId = 1;
|
|
48
|
+
string requestorId = 2;
|
|
49
|
+
Fee fee = 3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message UpdateFeeResponse {
|
|
53
|
+
StatusCode status = 0;
|
|
54
|
+
repeated Error errors = 1;
|
|
55
|
+
Fee fee = 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/****************************************************************************************
|
|
59
|
+
List
|
|
60
|
+
****************************************************************************************/
|
|
61
|
+
|
|
62
|
+
message ListFeesByIdRequest {
|
|
63
|
+
string spanContext = 0;
|
|
64
|
+
string orgId = 1;
|
|
65
|
+
repeated string feeIds = 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message ListFeesByIdResponse {
|
|
69
|
+
StatusCode status = 0;
|
|
70
|
+
repeated Error errors = 1;
|
|
71
|
+
repeated Fee fees = 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message ListEventFeesRequest {
|
|
75
|
+
string spanContext = 0;
|
|
76
|
+
string orgId = 1;
|
|
77
|
+
string eventId = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message ListEventFeesResponse {
|
|
81
|
+
StatusCode status = 0;
|
|
82
|
+
repeated Error errors = 1;
|
|
83
|
+
repeated Fee fees = 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message ListOrganizationFeesRequest {
|
|
87
|
+
string spanContext = 0;
|
|
88
|
+
string orgId = 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message ListOrganizationFeesResponse {
|
|
92
|
+
StatusCode status = 0;
|
|
93
|
+
repeated Error errors = 1;
|
|
94
|
+
repeated Fee fees = 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message ListPlatformFeesRequest {
|
|
98
|
+
string spanContext = 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message ListPlatformFeesResponse {
|
|
102
|
+
StatusCode status = 0;
|
|
103
|
+
repeated Error errors = 1;
|
|
104
|
+
repeated Fee fees = 2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message QueryFeesRequest {
|
|
108
|
+
string spanContext = 0;
|
|
109
|
+
repeated Query query = 1;
|
|
110
|
+
Pagination pagination = 2;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message QueryFeesResponse {
|
|
114
|
+
StatusCode status = 0;
|
|
115
|
+
repeated Error errors = 1;
|
|
116
|
+
repeated Fee fees = 2;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/****************************************************************************************
|
|
120
|
+
Find Fee
|
|
121
|
+
****************************************************************************************/
|
|
122
|
+
|
|
123
|
+
message FindFeeByIdRequest {
|
|
124
|
+
string spanContext = 0;
|
|
125
|
+
string feeId = 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message FindFeeByIdResponse {
|
|
129
|
+
StatusCode status = 0;
|
|
130
|
+
repeated Error errors = 1;
|
|
131
|
+
Fee fee = 2;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/****************************************************************************************
|
|
135
|
+
Disable/Delete Fee
|
|
136
|
+
****************************************************************************************/
|
|
137
|
+
|
|
138
|
+
message DisableFeeRequest {
|
|
139
|
+
string spanContext = 0;
|
|
140
|
+
string orgId = 1;
|
|
141
|
+
string requestorId = 2;
|
|
142
|
+
string feeId = 3;
|
|
143
|
+
bool disabled = 4;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message DisableFeeResponse {
|
|
147
|
+
StatusCode status = 0;
|
|
148
|
+
repeated Error errors = 1;
|
|
149
|
+
Fee fee = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message DeleteOrganizationFeeRequest {
|
|
153
|
+
string spanContext = 0;
|
|
154
|
+
string orgId = 1;
|
|
155
|
+
string feeId = 2;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message DeleteOrganizationFeeResponse {
|
|
159
|
+
StatusCode status = 0;
|
|
160
|
+
repeated Error errors = 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
message DeletePlatformFeeRequest {
|
|
164
|
+
string spanContext = 0;
|
|
165
|
+
string feeId = 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
message DeletePlatformFeeResponse {
|
|
169
|
+
StatusCode status = 0;
|
|
170
|
+
repeated Error errors = 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
service FeeService {
|
|
175
|
+
// Create
|
|
176
|
+
rpc createFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
177
|
+
rpc createOrganizationFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
178
|
+
rpc createPlatformFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
179
|
+
// Update
|
|
180
|
+
rpc updateFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
181
|
+
rpc updateOrganizationFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
182
|
+
rpc updatePlatformFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
183
|
+
// List
|
|
184
|
+
rpc listFeesById(ListFeesByIdRequest) returns (ListFeesByIdResponse) {}
|
|
185
|
+
rpc listEventFees(ListEventFeesRequest) returns (ListEventFeesResponse) {}
|
|
186
|
+
rpc listOrganizationFees(ListOrganizationFeesRequest) returns (ListOrganizationFeesResponse) {}
|
|
187
|
+
rpc listPlatformFees(ListPlatformFeesRequest) returns (ListPlatformFeesResponse) {}
|
|
188
|
+
rpc queryFees(QueryFeesRequest) returns (QueryFeesResponse) {}
|
|
189
|
+
// Find
|
|
190
|
+
rpc findFeeById(FindFeeByIdRequest) returns (FindFeeByIdResponse) {}
|
|
191
|
+
// Delete
|
|
192
|
+
rpc disableFee(DisableFeeRequest) returns (DisableFeeResponse) {}
|
|
193
|
+
rpc deleteOrganizationFee(DeleteOrganizationFeeRequest) returns (DeleteOrganizationFeeResponse) {}
|
|
194
|
+
rpc deletePlatformFee(DeletePlatformFeeRequest) returns (DeletePlatformFeeResponse) {}
|
|
195
|
+
|
|
196
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
message File {
|
|
4
|
+
bytes file = 0;
|
|
5
|
+
string filename = 1;
|
|
6
|
+
string mimetype = 2;
|
|
7
|
+
string encoding = 3;
|
|
8
|
+
string url = 4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message UploadFileRequest {
|
|
12
|
+
string spanContext = 0;
|
|
13
|
+
string orgId = 1;
|
|
14
|
+
repeated File files = 2;
|
|
15
|
+
string userId = 3;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message UploadFileResponse {
|
|
19
|
+
StatusCode status = 0;
|
|
20
|
+
repeated Error errors = 1;
|
|
21
|
+
repeated File files = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
service FileUploadService {
|
|
26
|
+
rpc uploadFile(UploadFileRequest) returns (UploadFileResponse) {}
|
|
27
|
+
}
|