@paakd/api 0.0.3 → 0.0.4

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 (61) hide show
  1. package/package.json +7 -9
  2. package/buf/validate/validate_pb.ts +0 -5001
  3. package/gen/buf/validate/validate_pb.ts +0 -4799
  4. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
  5. package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
  6. package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
  7. package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
  8. package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
  9. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
  10. package/gen/src/proto/auth/v1/service.pb.go +0 -119
  11. package/gen/src/proto/auth/v1/service_pb.ts +0 -152
  12. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
  13. package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
  14. package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
  15. package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
  16. package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
  17. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
  18. package/gen/src/proto/customers/v1/service.pb.go +0 -110
  19. package/gen/src/proto/customers/v1/service_pb.ts +0 -121
  20. package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
  21. package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
  22. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
  23. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
  24. package/gen/src/proto/files/v1/service.pb.go +0 -85
  25. package/gen/src/proto/files/v1/service_pb.ts +0 -65
  26. package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
  27. package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
  28. package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
  29. package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
  30. package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
  31. package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
  32. package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
  33. package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
  34. package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
  35. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
  36. package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
  37. package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
  38. package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
  39. package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
  40. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
  41. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
  42. package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
  43. package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
  44. package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
  45. package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
  46. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
  47. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
  48. package/gen/src/proto/products/v1/service.pb.go +0 -250
  49. package/gen/src/proto/products/v1/service_pb.ts +0 -429
  50. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
  51. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
  52. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
  53. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
  54. package/gen/src/proto/promotions/v1/service.pb.go +0 -98
  55. package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
  56. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
  57. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
  58. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
  59. package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
  60. package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
  61. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
@@ -1,1229 +0,0 @@
1
- // Code generated by protoc-gen-go. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-go v1.36.6
4
- // protoc (unknown)
5
- // source: src/proto/promotions/v1/entities/campaign.proto
6
-
7
- package entities
8
-
9
- import (
10
- _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
11
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
14
- reflect "reflect"
15
- sync "sync"
16
- unsafe "unsafe"
17
- )
18
-
19
- const (
20
- // Verify that this generated code is sufficiently up-to-date.
21
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22
- // Verify that runtime/protoimpl is sufficiently up-to-date.
23
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24
- )
25
-
26
- type CampaignBudgetType int32
27
-
28
- const (
29
- CampaignBudgetType_BUDGET_TYPE_SPEND CampaignBudgetType = 0
30
- CampaignBudgetType_BUDGET_TYPE_USAGE CampaignBudgetType = 1
31
- )
32
-
33
- // Enum value maps for CampaignBudgetType.
34
- var (
35
- CampaignBudgetType_name = map[int32]string{
36
- 0: "BUDGET_TYPE_SPEND",
37
- 1: "BUDGET_TYPE_USAGE",
38
- }
39
- CampaignBudgetType_value = map[string]int32{
40
- "BUDGET_TYPE_SPEND": 0,
41
- "BUDGET_TYPE_USAGE": 1,
42
- }
43
- )
44
-
45
- func (x CampaignBudgetType) Enum() *CampaignBudgetType {
46
- p := new(CampaignBudgetType)
47
- *p = x
48
- return p
49
- }
50
-
51
- func (x CampaignBudgetType) String() string {
52
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
53
- }
54
-
55
- func (CampaignBudgetType) Descriptor() protoreflect.EnumDescriptor {
56
- return file_src_proto_promotions_v1_entities_campaign_proto_enumTypes[0].Descriptor()
57
- }
58
-
59
- func (CampaignBudgetType) Type() protoreflect.EnumType {
60
- return &file_src_proto_promotions_v1_entities_campaign_proto_enumTypes[0]
61
- }
62
-
63
- func (x CampaignBudgetType) Number() protoreflect.EnumNumber {
64
- return protoreflect.EnumNumber(x)
65
- }
66
-
67
- // Deprecated: Use CampaignBudgetType.Descriptor instead.
68
- func (CampaignBudgetType) EnumDescriptor() ([]byte, []int) {
69
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{0}
70
- }
71
-
72
- type CampaignBudget struct {
73
- state protoimpl.MessageState `protogen:"open.v1"`
74
- Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
75
- Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
76
- CurrencyCode string `protobuf:"bytes,3,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
77
- Type CampaignBudgetType `protobuf:"varint,4,opt,name=type,proto3,enum=CampaignBudgetType" json:"type,omitempty"`
78
- Attribute string `protobuf:"bytes,5,opt,name=attribute,proto3" json:"attribute,omitempty"`
79
- unknownFields protoimpl.UnknownFields
80
- sizeCache protoimpl.SizeCache
81
- }
82
-
83
- func (x *CampaignBudget) Reset() {
84
- *x = CampaignBudget{}
85
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[0]
86
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
87
- ms.StoreMessageInfo(mi)
88
- }
89
-
90
- func (x *CampaignBudget) String() string {
91
- return protoimpl.X.MessageStringOf(x)
92
- }
93
-
94
- func (*CampaignBudget) ProtoMessage() {}
95
-
96
- func (x *CampaignBudget) ProtoReflect() protoreflect.Message {
97
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[0]
98
- if x != nil {
99
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100
- if ms.LoadMessageInfo() == nil {
101
- ms.StoreMessageInfo(mi)
102
- }
103
- return ms
104
- }
105
- return mi.MessageOf(x)
106
- }
107
-
108
- // Deprecated: Use CampaignBudget.ProtoReflect.Descriptor instead.
109
- func (*CampaignBudget) Descriptor() ([]byte, []int) {
110
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{0}
111
- }
112
-
113
- func (x *CampaignBudget) GetId() string {
114
- if x != nil && x.Id != nil {
115
- return *x.Id
116
- }
117
- return ""
118
- }
119
-
120
- func (x *CampaignBudget) GetLimit() int32 {
121
- if x != nil {
122
- return x.Limit
123
- }
124
- return 0
125
- }
126
-
127
- func (x *CampaignBudget) GetCurrencyCode() string {
128
- if x != nil {
129
- return x.CurrencyCode
130
- }
131
- return ""
132
- }
133
-
134
- func (x *CampaignBudget) GetType() CampaignBudgetType {
135
- if x != nil {
136
- return x.Type
137
- }
138
- return CampaignBudgetType_BUDGET_TYPE_SPEND
139
- }
140
-
141
- func (x *CampaignBudget) GetAttribute() string {
142
- if x != nil {
143
- return x.Attribute
144
- }
145
- return ""
146
- }
147
-
148
- type CreateCampaignRequest struct {
149
- state protoimpl.MessageState `protogen:"open.v1"`
150
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
151
- CampaignIdentifier *string `protobuf:"bytes,2,opt,name=campaign_identifier,json=campaignIdentifier,proto3,oneof" json:"campaign_identifier,omitempty"`
152
- Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
153
- StartsAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
154
- EndsAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
155
- Budget *CampaignBudget `protobuf:"bytes,6,opt,name=budget,proto3" json:"budget,omitempty"`
156
- PromotionIds []string `protobuf:"bytes,7,rep,name=promotion_ids,json=promotionIds,proto3" json:"promotion_ids,omitempty"`
157
- unknownFields protoimpl.UnknownFields
158
- sizeCache protoimpl.SizeCache
159
- }
160
-
161
- func (x *CreateCampaignRequest) Reset() {
162
- *x = CreateCampaignRequest{}
163
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[1]
164
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
165
- ms.StoreMessageInfo(mi)
166
- }
167
-
168
- func (x *CreateCampaignRequest) String() string {
169
- return protoimpl.X.MessageStringOf(x)
170
- }
171
-
172
- func (*CreateCampaignRequest) ProtoMessage() {}
173
-
174
- func (x *CreateCampaignRequest) ProtoReflect() protoreflect.Message {
175
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[1]
176
- if x != nil {
177
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178
- if ms.LoadMessageInfo() == nil {
179
- ms.StoreMessageInfo(mi)
180
- }
181
- return ms
182
- }
183
- return mi.MessageOf(x)
184
- }
185
-
186
- // Deprecated: Use CreateCampaignRequest.ProtoReflect.Descriptor instead.
187
- func (*CreateCampaignRequest) Descriptor() ([]byte, []int) {
188
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{1}
189
- }
190
-
191
- func (x *CreateCampaignRequest) GetName() string {
192
- if x != nil {
193
- return x.Name
194
- }
195
- return ""
196
- }
197
-
198
- func (x *CreateCampaignRequest) GetCampaignIdentifier() string {
199
- if x != nil && x.CampaignIdentifier != nil {
200
- return *x.CampaignIdentifier
201
- }
202
- return ""
203
- }
204
-
205
- func (x *CreateCampaignRequest) GetDescription() string {
206
- if x != nil && x.Description != nil {
207
- return *x.Description
208
- }
209
- return ""
210
- }
211
-
212
- func (x *CreateCampaignRequest) GetStartsAt() *timestamppb.Timestamp {
213
- if x != nil {
214
- return x.StartsAt
215
- }
216
- return nil
217
- }
218
-
219
- func (x *CreateCampaignRequest) GetEndsAt() *timestamppb.Timestamp {
220
- if x != nil {
221
- return x.EndsAt
222
- }
223
- return nil
224
- }
225
-
226
- func (x *CreateCampaignRequest) GetBudget() *CampaignBudget {
227
- if x != nil {
228
- return x.Budget
229
- }
230
- return nil
231
- }
232
-
233
- func (x *CreateCampaignRequest) GetPromotionIds() []string {
234
- if x != nil {
235
- return x.PromotionIds
236
- }
237
- return nil
238
- }
239
-
240
- type CreateCampaignResponse struct {
241
- state protoimpl.MessageState `protogen:"open.v1"`
242
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
243
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
244
- CampaignIdentifier string `protobuf:"bytes,3,opt,name=campaign_identifier,json=campaignIdentifier,proto3" json:"campaign_identifier,omitempty"`
245
- Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
246
- StartsAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
247
- EndsAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
248
- Budget *CampaignBudget `protobuf:"bytes,7,opt,name=budget,proto3" json:"budget,omitempty"`
249
- CurrencyId string `protobuf:"bytes,8,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"`
250
- unknownFields protoimpl.UnknownFields
251
- sizeCache protoimpl.SizeCache
252
- }
253
-
254
- func (x *CreateCampaignResponse) Reset() {
255
- *x = CreateCampaignResponse{}
256
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[2]
257
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
258
- ms.StoreMessageInfo(mi)
259
- }
260
-
261
- func (x *CreateCampaignResponse) String() string {
262
- return protoimpl.X.MessageStringOf(x)
263
- }
264
-
265
- func (*CreateCampaignResponse) ProtoMessage() {}
266
-
267
- func (x *CreateCampaignResponse) ProtoReflect() protoreflect.Message {
268
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[2]
269
- if x != nil {
270
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
271
- if ms.LoadMessageInfo() == nil {
272
- ms.StoreMessageInfo(mi)
273
- }
274
- return ms
275
- }
276
- return mi.MessageOf(x)
277
- }
278
-
279
- // Deprecated: Use CreateCampaignResponse.ProtoReflect.Descriptor instead.
280
- func (*CreateCampaignResponse) Descriptor() ([]byte, []int) {
281
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{2}
282
- }
283
-
284
- func (x *CreateCampaignResponse) GetId() string {
285
- if x != nil {
286
- return x.Id
287
- }
288
- return ""
289
- }
290
-
291
- func (x *CreateCampaignResponse) GetName() string {
292
- if x != nil {
293
- return x.Name
294
- }
295
- return ""
296
- }
297
-
298
- func (x *CreateCampaignResponse) GetCampaignIdentifier() string {
299
- if x != nil {
300
- return x.CampaignIdentifier
301
- }
302
- return ""
303
- }
304
-
305
- func (x *CreateCampaignResponse) GetDescription() string {
306
- if x != nil {
307
- return x.Description
308
- }
309
- return ""
310
- }
311
-
312
- func (x *CreateCampaignResponse) GetStartsAt() *timestamppb.Timestamp {
313
- if x != nil {
314
- return x.StartsAt
315
- }
316
- return nil
317
- }
318
-
319
- func (x *CreateCampaignResponse) GetEndsAt() *timestamppb.Timestamp {
320
- if x != nil {
321
- return x.EndsAt
322
- }
323
- return nil
324
- }
325
-
326
- func (x *CreateCampaignResponse) GetBudget() *CampaignBudget {
327
- if x != nil {
328
- return x.Budget
329
- }
330
- return nil
331
- }
332
-
333
- func (x *CreateCampaignResponse) GetCurrencyId() string {
334
- if x != nil {
335
- return x.CurrencyId
336
- }
337
- return ""
338
- }
339
-
340
- type ListCampaignsRequest struct {
341
- state protoimpl.MessageState `protogen:"open.v1"`
342
- Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
343
- Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
344
- OrderBy *string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"`
345
- Filter *string `protobuf:"bytes,4,opt,name=filter,proto3,oneof" json:"filter,omitempty"`
346
- Ascending *bool `protobuf:"varint,5,opt,name=ascending,proto3,oneof" json:"ascending,omitempty"`
347
- RequestPath *string `protobuf:"bytes,6,opt,name=request_path,json=requestPath,proto3,oneof" json:"request_path,omitempty"`
348
- unknownFields protoimpl.UnknownFields
349
- sizeCache protoimpl.SizeCache
350
- }
351
-
352
- func (x *ListCampaignsRequest) Reset() {
353
- *x = ListCampaignsRequest{}
354
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[3]
355
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
356
- ms.StoreMessageInfo(mi)
357
- }
358
-
359
- func (x *ListCampaignsRequest) String() string {
360
- return protoimpl.X.MessageStringOf(x)
361
- }
362
-
363
- func (*ListCampaignsRequest) ProtoMessage() {}
364
-
365
- func (x *ListCampaignsRequest) ProtoReflect() protoreflect.Message {
366
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[3]
367
- if x != nil {
368
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
369
- if ms.LoadMessageInfo() == nil {
370
- ms.StoreMessageInfo(mi)
371
- }
372
- return ms
373
- }
374
- return mi.MessageOf(x)
375
- }
376
-
377
- // Deprecated: Use ListCampaignsRequest.ProtoReflect.Descriptor instead.
378
- func (*ListCampaignsRequest) Descriptor() ([]byte, []int) {
379
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{3}
380
- }
381
-
382
- func (x *ListCampaignsRequest) GetOffset() int32 {
383
- if x != nil {
384
- return x.Offset
385
- }
386
- return 0
387
- }
388
-
389
- func (x *ListCampaignsRequest) GetLimit() uint32 {
390
- if x != nil {
391
- return x.Limit
392
- }
393
- return 0
394
- }
395
-
396
- func (x *ListCampaignsRequest) GetOrderBy() string {
397
- if x != nil && x.OrderBy != nil {
398
- return *x.OrderBy
399
- }
400
- return ""
401
- }
402
-
403
- func (x *ListCampaignsRequest) GetFilter() string {
404
- if x != nil && x.Filter != nil {
405
- return *x.Filter
406
- }
407
- return ""
408
- }
409
-
410
- func (x *ListCampaignsRequest) GetAscending() bool {
411
- if x != nil && x.Ascending != nil {
412
- return *x.Ascending
413
- }
414
- return false
415
- }
416
-
417
- func (x *ListCampaignsRequest) GetRequestPath() string {
418
- if x != nil && x.RequestPath != nil {
419
- return *x.RequestPath
420
- }
421
- return ""
422
- }
423
-
424
- type ListCampaignsResponse struct {
425
- state protoimpl.MessageState `protogen:"open.v1"`
426
- Campaigns []*CreateCampaignResponse `protobuf:"bytes,1,rep,name=campaigns,proto3" json:"campaigns,omitempty"`
427
- unknownFields protoimpl.UnknownFields
428
- sizeCache protoimpl.SizeCache
429
- }
430
-
431
- func (x *ListCampaignsResponse) Reset() {
432
- *x = ListCampaignsResponse{}
433
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[4]
434
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
435
- ms.StoreMessageInfo(mi)
436
- }
437
-
438
- func (x *ListCampaignsResponse) String() string {
439
- return protoimpl.X.MessageStringOf(x)
440
- }
441
-
442
- func (*ListCampaignsResponse) ProtoMessage() {}
443
-
444
- func (x *ListCampaignsResponse) ProtoReflect() protoreflect.Message {
445
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[4]
446
- if x != nil {
447
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
448
- if ms.LoadMessageInfo() == nil {
449
- ms.StoreMessageInfo(mi)
450
- }
451
- return ms
452
- }
453
- return mi.MessageOf(x)
454
- }
455
-
456
- // Deprecated: Use ListCampaignsResponse.ProtoReflect.Descriptor instead.
457
- func (*ListCampaignsResponse) Descriptor() ([]byte, []int) {
458
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{4}
459
- }
460
-
461
- func (x *ListCampaignsResponse) GetCampaigns() []*CreateCampaignResponse {
462
- if x != nil {
463
- return x.Campaigns
464
- }
465
- return nil
466
- }
467
-
468
- type GetCampaignRequest struct {
469
- state protoimpl.MessageState `protogen:"open.v1"`
470
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
471
- unknownFields protoimpl.UnknownFields
472
- sizeCache protoimpl.SizeCache
473
- }
474
-
475
- func (x *GetCampaignRequest) Reset() {
476
- *x = GetCampaignRequest{}
477
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[5]
478
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
479
- ms.StoreMessageInfo(mi)
480
- }
481
-
482
- func (x *GetCampaignRequest) String() string {
483
- return protoimpl.X.MessageStringOf(x)
484
- }
485
-
486
- func (*GetCampaignRequest) ProtoMessage() {}
487
-
488
- func (x *GetCampaignRequest) ProtoReflect() protoreflect.Message {
489
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[5]
490
- if x != nil {
491
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
492
- if ms.LoadMessageInfo() == nil {
493
- ms.StoreMessageInfo(mi)
494
- }
495
- return ms
496
- }
497
- return mi.MessageOf(x)
498
- }
499
-
500
- // Deprecated: Use GetCampaignRequest.ProtoReflect.Descriptor instead.
501
- func (*GetCampaignRequest) Descriptor() ([]byte, []int) {
502
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{5}
503
- }
504
-
505
- func (x *GetCampaignRequest) GetId() string {
506
- if x != nil {
507
- return x.Id
508
- }
509
- return ""
510
- }
511
-
512
- type GetCampaignResponse struct {
513
- state protoimpl.MessageState `protogen:"open.v1"`
514
- Campaign *CreateCampaignResponse `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign,omitempty"`
515
- unknownFields protoimpl.UnknownFields
516
- sizeCache protoimpl.SizeCache
517
- }
518
-
519
- func (x *GetCampaignResponse) Reset() {
520
- *x = GetCampaignResponse{}
521
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[6]
522
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
523
- ms.StoreMessageInfo(mi)
524
- }
525
-
526
- func (x *GetCampaignResponse) String() string {
527
- return protoimpl.X.MessageStringOf(x)
528
- }
529
-
530
- func (*GetCampaignResponse) ProtoMessage() {}
531
-
532
- func (x *GetCampaignResponse) ProtoReflect() protoreflect.Message {
533
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[6]
534
- if x != nil {
535
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
536
- if ms.LoadMessageInfo() == nil {
537
- ms.StoreMessageInfo(mi)
538
- }
539
- return ms
540
- }
541
- return mi.MessageOf(x)
542
- }
543
-
544
- // Deprecated: Use GetCampaignResponse.ProtoReflect.Descriptor instead.
545
- func (*GetCampaignResponse) Descriptor() ([]byte, []int) {
546
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{6}
547
- }
548
-
549
- func (x *GetCampaignResponse) GetCampaign() *CreateCampaignResponse {
550
- if x != nil {
551
- return x.Campaign
552
- }
553
- return nil
554
- }
555
-
556
- type AddPromotionsToCampaignRequest struct {
557
- state protoimpl.MessageState `protogen:"open.v1"`
558
- CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"`
559
- PromotionIds []string `protobuf:"bytes,2,rep,name=promotion_ids,json=promotionIds,proto3" json:"promotion_ids,omitempty"`
560
- unknownFields protoimpl.UnknownFields
561
- sizeCache protoimpl.SizeCache
562
- }
563
-
564
- func (x *AddPromotionsToCampaignRequest) Reset() {
565
- *x = AddPromotionsToCampaignRequest{}
566
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[7]
567
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
568
- ms.StoreMessageInfo(mi)
569
- }
570
-
571
- func (x *AddPromotionsToCampaignRequest) String() string {
572
- return protoimpl.X.MessageStringOf(x)
573
- }
574
-
575
- func (*AddPromotionsToCampaignRequest) ProtoMessage() {}
576
-
577
- func (x *AddPromotionsToCampaignRequest) ProtoReflect() protoreflect.Message {
578
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[7]
579
- if x != nil {
580
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
581
- if ms.LoadMessageInfo() == nil {
582
- ms.StoreMessageInfo(mi)
583
- }
584
- return ms
585
- }
586
- return mi.MessageOf(x)
587
- }
588
-
589
- // Deprecated: Use AddPromotionsToCampaignRequest.ProtoReflect.Descriptor instead.
590
- func (*AddPromotionsToCampaignRequest) Descriptor() ([]byte, []int) {
591
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{7}
592
- }
593
-
594
- func (x *AddPromotionsToCampaignRequest) GetCampaignId() string {
595
- if x != nil {
596
- return x.CampaignId
597
- }
598
- return ""
599
- }
600
-
601
- func (x *AddPromotionsToCampaignRequest) GetPromotionIds() []string {
602
- if x != nil {
603
- return x.PromotionIds
604
- }
605
- return nil
606
- }
607
-
608
- type AddPromotionsToCampaignResponse struct {
609
- state protoimpl.MessageState `protogen:"open.v1"`
610
- Campaign *CreateCampaignResponse `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign,omitempty"`
611
- unknownFields protoimpl.UnknownFields
612
- sizeCache protoimpl.SizeCache
613
- }
614
-
615
- func (x *AddPromotionsToCampaignResponse) Reset() {
616
- *x = AddPromotionsToCampaignResponse{}
617
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[8]
618
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
619
- ms.StoreMessageInfo(mi)
620
- }
621
-
622
- func (x *AddPromotionsToCampaignResponse) String() string {
623
- return protoimpl.X.MessageStringOf(x)
624
- }
625
-
626
- func (*AddPromotionsToCampaignResponse) ProtoMessage() {}
627
-
628
- func (x *AddPromotionsToCampaignResponse) ProtoReflect() protoreflect.Message {
629
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[8]
630
- if x != nil {
631
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
632
- if ms.LoadMessageInfo() == nil {
633
- ms.StoreMessageInfo(mi)
634
- }
635
- return ms
636
- }
637
- return mi.MessageOf(x)
638
- }
639
-
640
- // Deprecated: Use AddPromotionsToCampaignResponse.ProtoReflect.Descriptor instead.
641
- func (*AddPromotionsToCampaignResponse) Descriptor() ([]byte, []int) {
642
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{8}
643
- }
644
-
645
- func (x *AddPromotionsToCampaignResponse) GetCampaign() *CreateCampaignResponse {
646
- if x != nil {
647
- return x.Campaign
648
- }
649
- return nil
650
- }
651
-
652
- type RemovePromotionsFromCampaignRequest struct {
653
- state protoimpl.MessageState `protogen:"open.v1"`
654
- CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"`
655
- PromotionIds []string `protobuf:"bytes,2,rep,name=promotion_ids,json=promotionIds,proto3" json:"promotion_ids,omitempty"`
656
- unknownFields protoimpl.UnknownFields
657
- sizeCache protoimpl.SizeCache
658
- }
659
-
660
- func (x *RemovePromotionsFromCampaignRequest) Reset() {
661
- *x = RemovePromotionsFromCampaignRequest{}
662
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[9]
663
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
664
- ms.StoreMessageInfo(mi)
665
- }
666
-
667
- func (x *RemovePromotionsFromCampaignRequest) String() string {
668
- return protoimpl.X.MessageStringOf(x)
669
- }
670
-
671
- func (*RemovePromotionsFromCampaignRequest) ProtoMessage() {}
672
-
673
- func (x *RemovePromotionsFromCampaignRequest) ProtoReflect() protoreflect.Message {
674
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[9]
675
- if x != nil {
676
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
677
- if ms.LoadMessageInfo() == nil {
678
- ms.StoreMessageInfo(mi)
679
- }
680
- return ms
681
- }
682
- return mi.MessageOf(x)
683
- }
684
-
685
- // Deprecated: Use RemovePromotionsFromCampaignRequest.ProtoReflect.Descriptor instead.
686
- func (*RemovePromotionsFromCampaignRequest) Descriptor() ([]byte, []int) {
687
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{9}
688
- }
689
-
690
- func (x *RemovePromotionsFromCampaignRequest) GetCampaignId() string {
691
- if x != nil {
692
- return x.CampaignId
693
- }
694
- return ""
695
- }
696
-
697
- func (x *RemovePromotionsFromCampaignRequest) GetPromotionIds() []string {
698
- if x != nil {
699
- return x.PromotionIds
700
- }
701
- return nil
702
- }
703
-
704
- type RemovePromotionsFromCampaignResponse struct {
705
- state protoimpl.MessageState `protogen:"open.v1"`
706
- Campaign *CreateCampaignResponse `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign,omitempty"`
707
- unknownFields protoimpl.UnknownFields
708
- sizeCache protoimpl.SizeCache
709
- }
710
-
711
- func (x *RemovePromotionsFromCampaignResponse) Reset() {
712
- *x = RemovePromotionsFromCampaignResponse{}
713
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[10]
714
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
715
- ms.StoreMessageInfo(mi)
716
- }
717
-
718
- func (x *RemovePromotionsFromCampaignResponse) String() string {
719
- return protoimpl.X.MessageStringOf(x)
720
- }
721
-
722
- func (*RemovePromotionsFromCampaignResponse) ProtoMessage() {}
723
-
724
- func (x *RemovePromotionsFromCampaignResponse) ProtoReflect() protoreflect.Message {
725
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[10]
726
- if x != nil {
727
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
728
- if ms.LoadMessageInfo() == nil {
729
- ms.StoreMessageInfo(mi)
730
- }
731
- return ms
732
- }
733
- return mi.MessageOf(x)
734
- }
735
-
736
- // Deprecated: Use RemovePromotionsFromCampaignResponse.ProtoReflect.Descriptor instead.
737
- func (*RemovePromotionsFromCampaignResponse) Descriptor() ([]byte, []int) {
738
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{10}
739
- }
740
-
741
- func (x *RemovePromotionsFromCampaignResponse) GetCampaign() *CreateCampaignResponse {
742
- if x != nil {
743
- return x.Campaign
744
- }
745
- return nil
746
- }
747
-
748
- type DeleteCampaignRequest struct {
749
- state protoimpl.MessageState `protogen:"open.v1"`
750
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
751
- unknownFields protoimpl.UnknownFields
752
- sizeCache protoimpl.SizeCache
753
- }
754
-
755
- func (x *DeleteCampaignRequest) Reset() {
756
- *x = DeleteCampaignRequest{}
757
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[11]
758
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
759
- ms.StoreMessageInfo(mi)
760
- }
761
-
762
- func (x *DeleteCampaignRequest) String() string {
763
- return protoimpl.X.MessageStringOf(x)
764
- }
765
-
766
- func (*DeleteCampaignRequest) ProtoMessage() {}
767
-
768
- func (x *DeleteCampaignRequest) ProtoReflect() protoreflect.Message {
769
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[11]
770
- if x != nil {
771
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
772
- if ms.LoadMessageInfo() == nil {
773
- ms.StoreMessageInfo(mi)
774
- }
775
- return ms
776
- }
777
- return mi.MessageOf(x)
778
- }
779
-
780
- // Deprecated: Use DeleteCampaignRequest.ProtoReflect.Descriptor instead.
781
- func (*DeleteCampaignRequest) Descriptor() ([]byte, []int) {
782
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{11}
783
- }
784
-
785
- func (x *DeleteCampaignRequest) GetId() string {
786
- if x != nil {
787
- return x.Id
788
- }
789
- return ""
790
- }
791
-
792
- type DeleteCampaignResponse struct {
793
- state protoimpl.MessageState `protogen:"open.v1"`
794
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
795
- unknownFields protoimpl.UnknownFields
796
- sizeCache protoimpl.SizeCache
797
- }
798
-
799
- func (x *DeleteCampaignResponse) Reset() {
800
- *x = DeleteCampaignResponse{}
801
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[12]
802
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
803
- ms.StoreMessageInfo(mi)
804
- }
805
-
806
- func (x *DeleteCampaignResponse) String() string {
807
- return protoimpl.X.MessageStringOf(x)
808
- }
809
-
810
- func (*DeleteCampaignResponse) ProtoMessage() {}
811
-
812
- func (x *DeleteCampaignResponse) ProtoReflect() protoreflect.Message {
813
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[12]
814
- if x != nil {
815
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
816
- if ms.LoadMessageInfo() == nil {
817
- ms.StoreMessageInfo(mi)
818
- }
819
- return ms
820
- }
821
- return mi.MessageOf(x)
822
- }
823
-
824
- // Deprecated: Use DeleteCampaignResponse.ProtoReflect.Descriptor instead.
825
- func (*DeleteCampaignResponse) Descriptor() ([]byte, []int) {
826
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{12}
827
- }
828
-
829
- func (x *DeleteCampaignResponse) GetId() string {
830
- if x != nil {
831
- return x.Id
832
- }
833
- return ""
834
- }
835
-
836
- type UpdateCampaignRequest struct {
837
- state protoimpl.MessageState `protogen:"open.v1"`
838
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
839
- Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
840
- CampaignIdentifier *string `protobuf:"bytes,3,opt,name=campaign_identifier,json=campaignIdentifier,proto3,oneof" json:"campaign_identifier,omitempty"`
841
- Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
842
- StartsAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=starts_at,json=startsAt,proto3,oneof" json:"starts_at,omitempty"`
843
- EndsAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ends_at,json=endsAt,proto3,oneof" json:"ends_at,omitempty"`
844
- Budget *CampaignBudget `protobuf:"bytes,7,opt,name=budget,proto3,oneof" json:"budget,omitempty"`
845
- CurrencyId *string `protobuf:"bytes,8,opt,name=currency_id,json=currencyId,proto3,oneof" json:"currency_id,omitempty"`
846
- PromotionIds []string `protobuf:"bytes,9,rep,name=promotion_ids,json=promotionIds,proto3" json:"promotion_ids,omitempty"`
847
- unknownFields protoimpl.UnknownFields
848
- sizeCache protoimpl.SizeCache
849
- }
850
-
851
- func (x *UpdateCampaignRequest) Reset() {
852
- *x = UpdateCampaignRequest{}
853
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[13]
854
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
855
- ms.StoreMessageInfo(mi)
856
- }
857
-
858
- func (x *UpdateCampaignRequest) String() string {
859
- return protoimpl.X.MessageStringOf(x)
860
- }
861
-
862
- func (*UpdateCampaignRequest) ProtoMessage() {}
863
-
864
- func (x *UpdateCampaignRequest) ProtoReflect() protoreflect.Message {
865
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[13]
866
- if x != nil {
867
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
868
- if ms.LoadMessageInfo() == nil {
869
- ms.StoreMessageInfo(mi)
870
- }
871
- return ms
872
- }
873
- return mi.MessageOf(x)
874
- }
875
-
876
- // Deprecated: Use UpdateCampaignRequest.ProtoReflect.Descriptor instead.
877
- func (*UpdateCampaignRequest) Descriptor() ([]byte, []int) {
878
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{13}
879
- }
880
-
881
- func (x *UpdateCampaignRequest) GetId() string {
882
- if x != nil {
883
- return x.Id
884
- }
885
- return ""
886
- }
887
-
888
- func (x *UpdateCampaignRequest) GetName() string {
889
- if x != nil && x.Name != nil {
890
- return *x.Name
891
- }
892
- return ""
893
- }
894
-
895
- func (x *UpdateCampaignRequest) GetCampaignIdentifier() string {
896
- if x != nil && x.CampaignIdentifier != nil {
897
- return *x.CampaignIdentifier
898
- }
899
- return ""
900
- }
901
-
902
- func (x *UpdateCampaignRequest) GetDescription() string {
903
- if x != nil && x.Description != nil {
904
- return *x.Description
905
- }
906
- return ""
907
- }
908
-
909
- func (x *UpdateCampaignRequest) GetStartsAt() *timestamppb.Timestamp {
910
- if x != nil {
911
- return x.StartsAt
912
- }
913
- return nil
914
- }
915
-
916
- func (x *UpdateCampaignRequest) GetEndsAt() *timestamppb.Timestamp {
917
- if x != nil {
918
- return x.EndsAt
919
- }
920
- return nil
921
- }
922
-
923
- func (x *UpdateCampaignRequest) GetBudget() *CampaignBudget {
924
- if x != nil {
925
- return x.Budget
926
- }
927
- return nil
928
- }
929
-
930
- func (x *UpdateCampaignRequest) GetCurrencyId() string {
931
- if x != nil && x.CurrencyId != nil {
932
- return *x.CurrencyId
933
- }
934
- return ""
935
- }
936
-
937
- func (x *UpdateCampaignRequest) GetPromotionIds() []string {
938
- if x != nil {
939
- return x.PromotionIds
940
- }
941
- return nil
942
- }
943
-
944
- type UpdateCampaignResponse struct {
945
- state protoimpl.MessageState `protogen:"open.v1"`
946
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
947
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
948
- CampaignIdentifier string `protobuf:"bytes,3,opt,name=campaign_identifier,json=campaignIdentifier,proto3" json:"campaign_identifier,omitempty"`
949
- Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
950
- StartsAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
951
- EndsAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
952
- Budget *CampaignBudget `protobuf:"bytes,7,opt,name=budget,proto3" json:"budget,omitempty"`
953
- CurrencyId string `protobuf:"bytes,8,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"`
954
- unknownFields protoimpl.UnknownFields
955
- sizeCache protoimpl.SizeCache
956
- }
957
-
958
- func (x *UpdateCampaignResponse) Reset() {
959
- *x = UpdateCampaignResponse{}
960
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[14]
961
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
962
- ms.StoreMessageInfo(mi)
963
- }
964
-
965
- func (x *UpdateCampaignResponse) String() string {
966
- return protoimpl.X.MessageStringOf(x)
967
- }
968
-
969
- func (*UpdateCampaignResponse) ProtoMessage() {}
970
-
971
- func (x *UpdateCampaignResponse) ProtoReflect() protoreflect.Message {
972
- mi := &file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[14]
973
- if x != nil {
974
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
975
- if ms.LoadMessageInfo() == nil {
976
- ms.StoreMessageInfo(mi)
977
- }
978
- return ms
979
- }
980
- return mi.MessageOf(x)
981
- }
982
-
983
- // Deprecated: Use UpdateCampaignResponse.ProtoReflect.Descriptor instead.
984
- func (*UpdateCampaignResponse) Descriptor() ([]byte, []int) {
985
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP(), []int{14}
986
- }
987
-
988
- func (x *UpdateCampaignResponse) GetId() string {
989
- if x != nil {
990
- return x.Id
991
- }
992
- return ""
993
- }
994
-
995
- func (x *UpdateCampaignResponse) GetName() string {
996
- if x != nil {
997
- return x.Name
998
- }
999
- return ""
1000
- }
1001
-
1002
- func (x *UpdateCampaignResponse) GetCampaignIdentifier() string {
1003
- if x != nil {
1004
- return x.CampaignIdentifier
1005
- }
1006
- return ""
1007
- }
1008
-
1009
- func (x *UpdateCampaignResponse) GetDescription() string {
1010
- if x != nil {
1011
- return x.Description
1012
- }
1013
- return ""
1014
- }
1015
-
1016
- func (x *UpdateCampaignResponse) GetStartsAt() *timestamppb.Timestamp {
1017
- if x != nil {
1018
- return x.StartsAt
1019
- }
1020
- return nil
1021
- }
1022
-
1023
- func (x *UpdateCampaignResponse) GetEndsAt() *timestamppb.Timestamp {
1024
- if x != nil {
1025
- return x.EndsAt
1026
- }
1027
- return nil
1028
- }
1029
-
1030
- func (x *UpdateCampaignResponse) GetBudget() *CampaignBudget {
1031
- if x != nil {
1032
- return x.Budget
1033
- }
1034
- return nil
1035
- }
1036
-
1037
- func (x *UpdateCampaignResponse) GetCurrencyId() string {
1038
- if x != nil {
1039
- return x.CurrencyId
1040
- }
1041
- return ""
1042
- }
1043
-
1044
- var File_src_proto_promotions_v1_entities_campaign_proto protoreflect.FileDescriptor
1045
-
1046
- const file_src_proto_promotions_v1_entities_campaign_proto_rawDesc = "" +
1047
- "\n" +
1048
- "/src/proto/promotions/v1/entities/campaign.proto\x1a\x1bbuf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x01\n" +
1049
- "\x0eCampaignBudget\x12\x13\n" +
1050
- "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12\x1c\n" +
1051
- "\x05limit\x18\x02 \x01(\x05B\x06\xbaH\x03\xc8\x01\x01R\x05limit\x12+\n" +
1052
- "\rcurrency_code\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\fcurrencyCode\x12'\n" +
1053
- "\x04type\x18\x04 \x01(\x0e2\x13.CampaignBudgetTypeR\x04type\x12\x1c\n" +
1054
- "\tattribute\x18\x05 \x01(\tR\tattributeB\x05\n" +
1055
- "\x03_id\"\x84\x03\n" +
1056
- "\x15CreateCampaignRequest\x12\x1a\n" +
1057
- "\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x04name\x124\n" +
1058
- "\x13campaign_identifier\x18\x02 \x01(\tH\x00R\x12campaignIdentifier\x88\x01\x01\x12%\n" +
1059
- "\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12?\n" +
1060
- "\tstarts_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\bstartsAt\x12;\n" +
1061
- "\aends_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\x06endsAt\x12'\n" +
1062
- "\x06budget\x18\x06 \x01(\v2\x0f.CampaignBudgetR\x06budget\x12#\n" +
1063
- "\rpromotion_ids\x18\a \x03(\tR\fpromotionIdsB\x16\n" +
1064
- "\x14_campaign_identifierB\x0e\n" +
1065
- "\f_description\"\xc7\x02\n" +
1066
- "\x16CreateCampaignResponse\x12\x0e\n" +
1067
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
1068
- "\x04name\x18\x02 \x01(\tR\x04name\x12/\n" +
1069
- "\x13campaign_identifier\x18\x03 \x01(\tR\x12campaignIdentifier\x12 \n" +
1070
- "\vdescription\x18\x04 \x01(\tR\vdescription\x127\n" +
1071
- "\tstarts_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\bstartsAt\x123\n" +
1072
- "\aends_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x06endsAt\x12'\n" +
1073
- "\x06budget\x18\a \x01(\v2\x0f.CampaignBudgetR\x06budget\x12\x1f\n" +
1074
- "\vcurrency_id\x18\b \x01(\tR\n" +
1075
- "currencyId\"\x97\x02\n" +
1076
- "\x14ListCampaignsRequest\x12\x1f\n" +
1077
- "\x06offset\x18\x01 \x01(\x05B\a\xbaH\x04\x1a\x02(\x00R\x06offset\x12\x1f\n" +
1078
- "\x05limit\x18\x02 \x01(\rB\t\xbaH\x06*\x04\x18d(\x01R\x05limit\x12\x1e\n" +
1079
- "\border_by\x18\x03 \x01(\tH\x00R\aorderBy\x88\x01\x01\x12\x1b\n" +
1080
- "\x06filter\x18\x04 \x01(\tH\x01R\x06filter\x88\x01\x01\x12!\n" +
1081
- "\tascending\x18\x05 \x01(\bH\x02R\tascending\x88\x01\x01\x12&\n" +
1082
- "\frequest_path\x18\x06 \x01(\tH\x03R\vrequestPath\x88\x01\x01B\v\n" +
1083
- "\t_order_byB\t\n" +
1084
- "\a_filterB\f\n" +
1085
- "\n" +
1086
- "_ascendingB\x0f\n" +
1087
- "\r_request_path\"N\n" +
1088
- "\x15ListCampaignsResponse\x125\n" +
1089
- "\tcampaigns\x18\x01 \x03(\v2\x17.CreateCampaignResponseR\tcampaigns\"S\n" +
1090
- "\x12GetCampaignRequest\x12=\n" +
1091
- "\x02id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\x02id\"J\n" +
1092
- "\x13GetCampaignResponse\x123\n" +
1093
- "\bcampaign\x18\x01 \x01(\v2\x17.CreateCampaignResponseR\bcampaign\"\x9d\x01\n" +
1094
- "\x1eAddPromotionsToCampaignRequest\x12N\n" +
1095
- "\vcampaign_id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\n" +
1096
- "campaignId\x12+\n" +
1097
- "\rpromotion_ids\x18\x02 \x03(\tB\x06\xbaH\x03\xc8\x01\x01R\fpromotionIds\"V\n" +
1098
- "\x1fAddPromotionsToCampaignResponse\x123\n" +
1099
- "\bcampaign\x18\x01 \x01(\v2\x17.CreateCampaignResponseR\bcampaign\"\xa2\x01\n" +
1100
- "#RemovePromotionsFromCampaignRequest\x12N\n" +
1101
- "\vcampaign_id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\n" +
1102
- "campaignId\x12+\n" +
1103
- "\rpromotion_ids\x18\x02 \x03(\tB\x06\xbaH\x03\xc8\x01\x01R\fpromotionIds\"[\n" +
1104
- "$RemovePromotionsFromCampaignResponse\x123\n" +
1105
- "\bcampaign\x18\x01 \x01(\v2\x17.CreateCampaignResponseR\bcampaign\"V\n" +
1106
- "\x15DeleteCampaignRequest\x12=\n" +
1107
- "\x02id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\x02id\"(\n" +
1108
- "\x16DeleteCampaignResponse\x12\x0e\n" +
1109
- "\x02id\x18\x01 \x01(\tR\x02id\"\xa3\x04\n" +
1110
- "\x15UpdateCampaignRequest\x12=\n" +
1111
- "\x02id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\x02id\x12\x17\n" +
1112
- "\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x124\n" +
1113
- "\x13campaign_identifier\x18\x03 \x01(\tH\x01R\x12campaignIdentifier\x88\x01\x01\x12%\n" +
1114
- "\vdescription\x18\x04 \x01(\tH\x02R\vdescription\x88\x01\x01\x12<\n" +
1115
- "\tstarts_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampH\x03R\bstartsAt\x88\x01\x01\x128\n" +
1116
- "\aends_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampH\x04R\x06endsAt\x88\x01\x01\x12,\n" +
1117
- "\x06budget\x18\a \x01(\v2\x0f.CampaignBudgetH\x05R\x06budget\x88\x01\x01\x12$\n" +
1118
- "\vcurrency_id\x18\b \x01(\tH\x06R\n" +
1119
- "currencyId\x88\x01\x01\x12#\n" +
1120
- "\rpromotion_ids\x18\t \x03(\tR\fpromotionIdsB\a\n" +
1121
- "\x05_nameB\x16\n" +
1122
- "\x14_campaign_identifierB\x0e\n" +
1123
- "\f_descriptionB\f\n" +
1124
- "\n" +
1125
- "_starts_atB\n" +
1126
- "\n" +
1127
- "\b_ends_atB\t\n" +
1128
- "\a_budgetB\x0e\n" +
1129
- "\f_currency_id\"\xc7\x02\n" +
1130
- "\x16UpdateCampaignResponse\x12\x0e\n" +
1131
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
1132
- "\x04name\x18\x02 \x01(\tR\x04name\x12/\n" +
1133
- "\x13campaign_identifier\x18\x03 \x01(\tR\x12campaignIdentifier\x12 \n" +
1134
- "\vdescription\x18\x04 \x01(\tR\vdescription\x127\n" +
1135
- "\tstarts_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\bstartsAt\x123\n" +
1136
- "\aends_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x06endsAt\x12'\n" +
1137
- "\x06budget\x18\a \x01(\v2\x0f.CampaignBudgetR\x06budget\x12\x1f\n" +
1138
- "\vcurrency_id\x18\b \x01(\tR\n" +
1139
- "currencyId*B\n" +
1140
- "\x12CampaignBudgetType\x12\x15\n" +
1141
- "\x11BUDGET_TYPE_SPEND\x10\x00\x12\x15\n" +
1142
- "\x11BUDGET_TYPE_USAGE\x10\x01BNB\rCampaignProtoP\x01Z;paakd.com/packages/api/gen/src/proto/promotions/v1/entitiesb\x06proto3"
1143
-
1144
- var (
1145
- file_src_proto_promotions_v1_entities_campaign_proto_rawDescOnce sync.Once
1146
- file_src_proto_promotions_v1_entities_campaign_proto_rawDescData []byte
1147
- )
1148
-
1149
- func file_src_proto_promotions_v1_entities_campaign_proto_rawDescGZIP() []byte {
1150
- file_src_proto_promotions_v1_entities_campaign_proto_rawDescOnce.Do(func() {
1151
- file_src_proto_promotions_v1_entities_campaign_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_promotions_v1_entities_campaign_proto_rawDesc), len(file_src_proto_promotions_v1_entities_campaign_proto_rawDesc)))
1152
- })
1153
- return file_src_proto_promotions_v1_entities_campaign_proto_rawDescData
1154
- }
1155
-
1156
- var file_src_proto_promotions_v1_entities_campaign_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1157
- var file_src_proto_promotions_v1_entities_campaign_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
1158
- var file_src_proto_promotions_v1_entities_campaign_proto_goTypes = []any{
1159
- (CampaignBudgetType)(0), // 0: CampaignBudgetType
1160
- (*CampaignBudget)(nil), // 1: CampaignBudget
1161
- (*CreateCampaignRequest)(nil), // 2: CreateCampaignRequest
1162
- (*CreateCampaignResponse)(nil), // 3: CreateCampaignResponse
1163
- (*ListCampaignsRequest)(nil), // 4: ListCampaignsRequest
1164
- (*ListCampaignsResponse)(nil), // 5: ListCampaignsResponse
1165
- (*GetCampaignRequest)(nil), // 6: GetCampaignRequest
1166
- (*GetCampaignResponse)(nil), // 7: GetCampaignResponse
1167
- (*AddPromotionsToCampaignRequest)(nil), // 8: AddPromotionsToCampaignRequest
1168
- (*AddPromotionsToCampaignResponse)(nil), // 9: AddPromotionsToCampaignResponse
1169
- (*RemovePromotionsFromCampaignRequest)(nil), // 10: RemovePromotionsFromCampaignRequest
1170
- (*RemovePromotionsFromCampaignResponse)(nil), // 11: RemovePromotionsFromCampaignResponse
1171
- (*DeleteCampaignRequest)(nil), // 12: DeleteCampaignRequest
1172
- (*DeleteCampaignResponse)(nil), // 13: DeleteCampaignResponse
1173
- (*UpdateCampaignRequest)(nil), // 14: UpdateCampaignRequest
1174
- (*UpdateCampaignResponse)(nil), // 15: UpdateCampaignResponse
1175
- (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp
1176
- }
1177
- var file_src_proto_promotions_v1_entities_campaign_proto_depIdxs = []int32{
1178
- 0, // 0: CampaignBudget.type:type_name -> CampaignBudgetType
1179
- 16, // 1: CreateCampaignRequest.starts_at:type_name -> google.protobuf.Timestamp
1180
- 16, // 2: CreateCampaignRequest.ends_at:type_name -> google.protobuf.Timestamp
1181
- 1, // 3: CreateCampaignRequest.budget:type_name -> CampaignBudget
1182
- 16, // 4: CreateCampaignResponse.starts_at:type_name -> google.protobuf.Timestamp
1183
- 16, // 5: CreateCampaignResponse.ends_at:type_name -> google.protobuf.Timestamp
1184
- 1, // 6: CreateCampaignResponse.budget:type_name -> CampaignBudget
1185
- 3, // 7: ListCampaignsResponse.campaigns:type_name -> CreateCampaignResponse
1186
- 3, // 8: GetCampaignResponse.campaign:type_name -> CreateCampaignResponse
1187
- 3, // 9: AddPromotionsToCampaignResponse.campaign:type_name -> CreateCampaignResponse
1188
- 3, // 10: RemovePromotionsFromCampaignResponse.campaign:type_name -> CreateCampaignResponse
1189
- 16, // 11: UpdateCampaignRequest.starts_at:type_name -> google.protobuf.Timestamp
1190
- 16, // 12: UpdateCampaignRequest.ends_at:type_name -> google.protobuf.Timestamp
1191
- 1, // 13: UpdateCampaignRequest.budget:type_name -> CampaignBudget
1192
- 16, // 14: UpdateCampaignResponse.starts_at:type_name -> google.protobuf.Timestamp
1193
- 16, // 15: UpdateCampaignResponse.ends_at:type_name -> google.protobuf.Timestamp
1194
- 1, // 16: UpdateCampaignResponse.budget:type_name -> CampaignBudget
1195
- 17, // [17:17] is the sub-list for method output_type
1196
- 17, // [17:17] is the sub-list for method input_type
1197
- 17, // [17:17] is the sub-list for extension type_name
1198
- 17, // [17:17] is the sub-list for extension extendee
1199
- 0, // [0:17] is the sub-list for field type_name
1200
- }
1201
-
1202
- func init() { file_src_proto_promotions_v1_entities_campaign_proto_init() }
1203
- func file_src_proto_promotions_v1_entities_campaign_proto_init() {
1204
- if File_src_proto_promotions_v1_entities_campaign_proto != nil {
1205
- return
1206
- }
1207
- file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[0].OneofWrappers = []any{}
1208
- file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[1].OneofWrappers = []any{}
1209
- file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[3].OneofWrappers = []any{}
1210
- file_src_proto_promotions_v1_entities_campaign_proto_msgTypes[13].OneofWrappers = []any{}
1211
- type x struct{}
1212
- out := protoimpl.TypeBuilder{
1213
- File: protoimpl.DescBuilder{
1214
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1215
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_promotions_v1_entities_campaign_proto_rawDesc), len(file_src_proto_promotions_v1_entities_campaign_proto_rawDesc)),
1216
- NumEnums: 1,
1217
- NumMessages: 15,
1218
- NumExtensions: 0,
1219
- NumServices: 0,
1220
- },
1221
- GoTypes: file_src_proto_promotions_v1_entities_campaign_proto_goTypes,
1222
- DependencyIndexes: file_src_proto_promotions_v1_entities_campaign_proto_depIdxs,
1223
- EnumInfos: file_src_proto_promotions_v1_entities_campaign_proto_enumTypes,
1224
- MessageInfos: file_src_proto_promotions_v1_entities_campaign_proto_msgTypes,
1225
- }.Build()
1226
- File_src_proto_promotions_v1_entities_campaign_proto = out.File
1227
- file_src_proto_promotions_v1_entities_campaign_proto_goTypes = nil
1228
- file_src_proto_promotions_v1_entities_campaign_proto_depIdxs = nil
1229
- }