@paakd/api 0.0.2 → 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.
- package/package.json +11 -9
- package/buf/validate/validate_pb.ts +0 -5001
- package/gen/buf/validate/validate_pb.ts +0 -4799
- package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
- package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
- package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
- package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
- package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
- package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
- package/gen/src/proto/auth/v1/service.pb.go +0 -119
- package/gen/src/proto/auth/v1/service_pb.ts +0 -152
- package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
- package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
- package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
- package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
- package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
- package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
- package/gen/src/proto/customers/v1/service.pb.go +0 -110
- package/gen/src/proto/customers/v1/service_pb.ts +0 -121
- package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
- package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
- package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
- package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
- package/gen/src/proto/files/v1/service.pb.go +0 -85
- package/gen/src/proto/files/v1/service_pb.ts +0 -65
- package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
- package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
- package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
- package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
- package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
- package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
- package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
- package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
- package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
- package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
- package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
- package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
- package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
- package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
- package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
- package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
- package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
- package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
- package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
- package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
- package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
- package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
- package/gen/src/proto/products/v1/service.pb.go +0 -250
- package/gen/src/proto/products/v1/service_pb.ts +0 -429
- package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
- package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
- package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
- package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
- package/gen/src/proto/promotions/v1/service.pb.go +0 -98
- package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
- package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
- package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
- package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
- package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
- package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
- package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
|
@@ -1,633 +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/customers/v1/entities/profile.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
|
-
reflect "reflect"
|
|
14
|
-
sync "sync"
|
|
15
|
-
unsafe "unsafe"
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
const (
|
|
19
|
-
// Verify that this generated code is sufficiently up-to-date.
|
|
20
|
-
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
21
|
-
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
22
|
-
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
type BasicProfileRequest struct {
|
|
26
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
27
|
-
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
|
|
28
|
-
unknownFields protoimpl.UnknownFields
|
|
29
|
-
sizeCache protoimpl.SizeCache
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
func (x *BasicProfileRequest) Reset() {
|
|
33
|
-
*x = BasicProfileRequest{}
|
|
34
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[0]
|
|
35
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
36
|
-
ms.StoreMessageInfo(mi)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
func (x *BasicProfileRequest) String() string {
|
|
40
|
-
return protoimpl.X.MessageStringOf(x)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
func (*BasicProfileRequest) ProtoMessage() {}
|
|
44
|
-
|
|
45
|
-
func (x *BasicProfileRequest) ProtoReflect() protoreflect.Message {
|
|
46
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[0]
|
|
47
|
-
if x != nil {
|
|
48
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
49
|
-
if ms.LoadMessageInfo() == nil {
|
|
50
|
-
ms.StoreMessageInfo(mi)
|
|
51
|
-
}
|
|
52
|
-
return ms
|
|
53
|
-
}
|
|
54
|
-
return mi.MessageOf(x)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Deprecated: Use BasicProfileRequest.ProtoReflect.Descriptor instead.
|
|
58
|
-
func (*BasicProfileRequest) Descriptor() ([]byte, []int) {
|
|
59
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{0}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
func (x *BasicProfileRequest) GetCustomerId() string {
|
|
63
|
-
if x != nil {
|
|
64
|
-
return x.CustomerId
|
|
65
|
-
}
|
|
66
|
-
return ""
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
type BasicProfileResponse struct {
|
|
70
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
71
|
-
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
72
|
-
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
|
|
73
|
-
FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
74
|
-
LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
75
|
-
OtherNames string `protobuf:"bytes,5,opt,name=other_names,json=otherNames,proto3" json:"other_names,omitempty"`
|
|
76
|
-
unknownFields protoimpl.UnknownFields
|
|
77
|
-
sizeCache protoimpl.SizeCache
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
func (x *BasicProfileResponse) Reset() {
|
|
81
|
-
*x = BasicProfileResponse{}
|
|
82
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[1]
|
|
83
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
84
|
-
ms.StoreMessageInfo(mi)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
func (x *BasicProfileResponse) String() string {
|
|
88
|
-
return protoimpl.X.MessageStringOf(x)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
func (*BasicProfileResponse) ProtoMessage() {}
|
|
92
|
-
|
|
93
|
-
func (x *BasicProfileResponse) ProtoReflect() protoreflect.Message {
|
|
94
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[1]
|
|
95
|
-
if x != nil {
|
|
96
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
97
|
-
if ms.LoadMessageInfo() == nil {
|
|
98
|
-
ms.StoreMessageInfo(mi)
|
|
99
|
-
}
|
|
100
|
-
return ms
|
|
101
|
-
}
|
|
102
|
-
return mi.MessageOf(x)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Deprecated: Use BasicProfileResponse.ProtoReflect.Descriptor instead.
|
|
106
|
-
func (*BasicProfileResponse) Descriptor() ([]byte, []int) {
|
|
107
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{1}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
func (x *BasicProfileResponse) GetId() string {
|
|
111
|
-
if x != nil {
|
|
112
|
-
return x.Id
|
|
113
|
-
}
|
|
114
|
-
return ""
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
func (x *BasicProfileResponse) GetEmail() string {
|
|
118
|
-
if x != nil {
|
|
119
|
-
return x.Email
|
|
120
|
-
}
|
|
121
|
-
return ""
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
func (x *BasicProfileResponse) GetFirstName() string {
|
|
125
|
-
if x != nil {
|
|
126
|
-
return x.FirstName
|
|
127
|
-
}
|
|
128
|
-
return ""
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
func (x *BasicProfileResponse) GetLastName() string {
|
|
132
|
-
if x != nil {
|
|
133
|
-
return x.LastName
|
|
134
|
-
}
|
|
135
|
-
return ""
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
func (x *BasicProfileResponse) GetOtherNames() string {
|
|
139
|
-
if x != nil {
|
|
140
|
-
return x.OtherNames
|
|
141
|
-
}
|
|
142
|
-
return ""
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
type ProfileRequest struct {
|
|
146
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
147
|
-
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
|
|
148
|
-
unknownFields protoimpl.UnknownFields
|
|
149
|
-
sizeCache protoimpl.SizeCache
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
func (x *ProfileRequest) Reset() {
|
|
153
|
-
*x = ProfileRequest{}
|
|
154
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[2]
|
|
155
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
156
|
-
ms.StoreMessageInfo(mi)
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
func (x *ProfileRequest) String() string {
|
|
160
|
-
return protoimpl.X.MessageStringOf(x)
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
func (*ProfileRequest) ProtoMessage() {}
|
|
164
|
-
|
|
165
|
-
func (x *ProfileRequest) ProtoReflect() protoreflect.Message {
|
|
166
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[2]
|
|
167
|
-
if x != nil {
|
|
168
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
169
|
-
if ms.LoadMessageInfo() == nil {
|
|
170
|
-
ms.StoreMessageInfo(mi)
|
|
171
|
-
}
|
|
172
|
-
return ms
|
|
173
|
-
}
|
|
174
|
-
return mi.MessageOf(x)
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// Deprecated: Use ProfileRequest.ProtoReflect.Descriptor instead.
|
|
178
|
-
func (*ProfileRequest) Descriptor() ([]byte, []int) {
|
|
179
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{2}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
func (x *ProfileRequest) GetCustomerId() string {
|
|
183
|
-
if x != nil {
|
|
184
|
-
return x.CustomerId
|
|
185
|
-
}
|
|
186
|
-
return ""
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
type ProfileResponse struct {
|
|
190
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
191
|
-
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
|
|
192
|
-
FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
193
|
-
LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
194
|
-
OtherNames string `protobuf:"bytes,4,opt,name=other_names,json=otherNames,proto3" json:"other_names,omitempty"`
|
|
195
|
-
DateOfBirth string `protobuf:"bytes,5,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
|
|
196
|
-
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
|
|
197
|
-
Gender string `protobuf:"bytes,7,opt,name=gender,proto3" json:"gender,omitempty"`
|
|
198
|
-
Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
199
|
-
unknownFields protoimpl.UnknownFields
|
|
200
|
-
sizeCache protoimpl.SizeCache
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
func (x *ProfileResponse) Reset() {
|
|
204
|
-
*x = ProfileResponse{}
|
|
205
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[3]
|
|
206
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
207
|
-
ms.StoreMessageInfo(mi)
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
func (x *ProfileResponse) String() string {
|
|
211
|
-
return protoimpl.X.MessageStringOf(x)
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
func (*ProfileResponse) ProtoMessage() {}
|
|
215
|
-
|
|
216
|
-
func (x *ProfileResponse) ProtoReflect() protoreflect.Message {
|
|
217
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[3]
|
|
218
|
-
if x != nil {
|
|
219
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
220
|
-
if ms.LoadMessageInfo() == nil {
|
|
221
|
-
ms.StoreMessageInfo(mi)
|
|
222
|
-
}
|
|
223
|
-
return ms
|
|
224
|
-
}
|
|
225
|
-
return mi.MessageOf(x)
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// Deprecated: Use ProfileResponse.ProtoReflect.Descriptor instead.
|
|
229
|
-
func (*ProfileResponse) Descriptor() ([]byte, []int) {
|
|
230
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{3}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
func (x *ProfileResponse) GetCustomerId() string {
|
|
234
|
-
if x != nil {
|
|
235
|
-
return x.CustomerId
|
|
236
|
-
}
|
|
237
|
-
return ""
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
func (x *ProfileResponse) GetFirstName() string {
|
|
241
|
-
if x != nil {
|
|
242
|
-
return x.FirstName
|
|
243
|
-
}
|
|
244
|
-
return ""
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
func (x *ProfileResponse) GetLastName() string {
|
|
248
|
-
if x != nil {
|
|
249
|
-
return x.LastName
|
|
250
|
-
}
|
|
251
|
-
return ""
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
func (x *ProfileResponse) GetOtherNames() string {
|
|
255
|
-
if x != nil {
|
|
256
|
-
return x.OtherNames
|
|
257
|
-
}
|
|
258
|
-
return ""
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
func (x *ProfileResponse) GetDateOfBirth() string {
|
|
262
|
-
if x != nil {
|
|
263
|
-
return x.DateOfBirth
|
|
264
|
-
}
|
|
265
|
-
return ""
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
func (x *ProfileResponse) GetEmail() string {
|
|
269
|
-
if x != nil {
|
|
270
|
-
return x.Email
|
|
271
|
-
}
|
|
272
|
-
return ""
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
func (x *ProfileResponse) GetGender() string {
|
|
276
|
-
if x != nil {
|
|
277
|
-
return x.Gender
|
|
278
|
-
}
|
|
279
|
-
return ""
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
func (x *ProfileResponse) GetPhone() string {
|
|
283
|
-
if x != nil {
|
|
284
|
-
return x.Phone
|
|
285
|
-
}
|
|
286
|
-
return ""
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
type ChangePasswordRequest struct {
|
|
290
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
291
|
-
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
|
|
292
|
-
OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
|
|
293
|
-
NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
|
294
|
-
unknownFields protoimpl.UnknownFields
|
|
295
|
-
sizeCache protoimpl.SizeCache
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
func (x *ChangePasswordRequest) Reset() {
|
|
299
|
-
*x = ChangePasswordRequest{}
|
|
300
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[4]
|
|
301
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
302
|
-
ms.StoreMessageInfo(mi)
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
func (x *ChangePasswordRequest) String() string {
|
|
306
|
-
return protoimpl.X.MessageStringOf(x)
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
func (*ChangePasswordRequest) ProtoMessage() {}
|
|
310
|
-
|
|
311
|
-
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
|
|
312
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[4]
|
|
313
|
-
if x != nil {
|
|
314
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
315
|
-
if ms.LoadMessageInfo() == nil {
|
|
316
|
-
ms.StoreMessageInfo(mi)
|
|
317
|
-
}
|
|
318
|
-
return ms
|
|
319
|
-
}
|
|
320
|
-
return mi.MessageOf(x)
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
|
|
324
|
-
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
|
|
325
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{4}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
func (x *ChangePasswordRequest) GetCustomerId() string {
|
|
329
|
-
if x != nil {
|
|
330
|
-
return x.CustomerId
|
|
331
|
-
}
|
|
332
|
-
return ""
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
func (x *ChangePasswordRequest) GetOldPassword() string {
|
|
336
|
-
if x != nil {
|
|
337
|
-
return x.OldPassword
|
|
338
|
-
}
|
|
339
|
-
return ""
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
func (x *ChangePasswordRequest) GetNewPassword() string {
|
|
343
|
-
if x != nil {
|
|
344
|
-
return x.NewPassword
|
|
345
|
-
}
|
|
346
|
-
return ""
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
type ChangePasswordResponse struct {
|
|
350
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
351
|
-
unknownFields protoimpl.UnknownFields
|
|
352
|
-
sizeCache protoimpl.SizeCache
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
func (x *ChangePasswordResponse) Reset() {
|
|
356
|
-
*x = ChangePasswordResponse{}
|
|
357
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[5]
|
|
358
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
359
|
-
ms.StoreMessageInfo(mi)
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
func (x *ChangePasswordResponse) String() string {
|
|
363
|
-
return protoimpl.X.MessageStringOf(x)
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
func (*ChangePasswordResponse) ProtoMessage() {}
|
|
367
|
-
|
|
368
|
-
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
|
|
369
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[5]
|
|
370
|
-
if x != nil {
|
|
371
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
372
|
-
if ms.LoadMessageInfo() == nil {
|
|
373
|
-
ms.StoreMessageInfo(mi)
|
|
374
|
-
}
|
|
375
|
-
return ms
|
|
376
|
-
}
|
|
377
|
-
return mi.MessageOf(x)
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
|
|
381
|
-
func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
|
|
382
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{5}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
type UpdateProfileRequest struct {
|
|
386
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
387
|
-
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
|
|
388
|
-
FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
389
|
-
LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
390
|
-
OtherNames string `protobuf:"bytes,4,opt,name=other_names,json=otherNames,proto3" json:"other_names,omitempty"`
|
|
391
|
-
DateOfBirth string `protobuf:"bytes,5,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
|
|
392
|
-
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
|
|
393
|
-
Gender string `protobuf:"bytes,7,opt,name=gender,proto3" json:"gender,omitempty"`
|
|
394
|
-
Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
395
|
-
unknownFields protoimpl.UnknownFields
|
|
396
|
-
sizeCache protoimpl.SizeCache
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
func (x *UpdateProfileRequest) Reset() {
|
|
400
|
-
*x = UpdateProfileRequest{}
|
|
401
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[6]
|
|
402
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
403
|
-
ms.StoreMessageInfo(mi)
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
func (x *UpdateProfileRequest) String() string {
|
|
407
|
-
return protoimpl.X.MessageStringOf(x)
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
func (*UpdateProfileRequest) ProtoMessage() {}
|
|
411
|
-
|
|
412
|
-
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message {
|
|
413
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[6]
|
|
414
|
-
if x != nil {
|
|
415
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
416
|
-
if ms.LoadMessageInfo() == nil {
|
|
417
|
-
ms.StoreMessageInfo(mi)
|
|
418
|
-
}
|
|
419
|
-
return ms
|
|
420
|
-
}
|
|
421
|
-
return mi.MessageOf(x)
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
// Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.
|
|
425
|
-
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {
|
|
426
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{6}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
func (x *UpdateProfileRequest) GetCustomerId() string {
|
|
430
|
-
if x != nil {
|
|
431
|
-
return x.CustomerId
|
|
432
|
-
}
|
|
433
|
-
return ""
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
func (x *UpdateProfileRequest) GetFirstName() string {
|
|
437
|
-
if x != nil {
|
|
438
|
-
return x.FirstName
|
|
439
|
-
}
|
|
440
|
-
return ""
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
func (x *UpdateProfileRequest) GetLastName() string {
|
|
444
|
-
if x != nil {
|
|
445
|
-
return x.LastName
|
|
446
|
-
}
|
|
447
|
-
return ""
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
func (x *UpdateProfileRequest) GetOtherNames() string {
|
|
451
|
-
if x != nil {
|
|
452
|
-
return x.OtherNames
|
|
453
|
-
}
|
|
454
|
-
return ""
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
func (x *UpdateProfileRequest) GetDateOfBirth() string {
|
|
458
|
-
if x != nil {
|
|
459
|
-
return x.DateOfBirth
|
|
460
|
-
}
|
|
461
|
-
return ""
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
func (x *UpdateProfileRequest) GetEmail() string {
|
|
465
|
-
if x != nil {
|
|
466
|
-
return x.Email
|
|
467
|
-
}
|
|
468
|
-
return ""
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
func (x *UpdateProfileRequest) GetGender() string {
|
|
472
|
-
if x != nil {
|
|
473
|
-
return x.Gender
|
|
474
|
-
}
|
|
475
|
-
return ""
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
func (x *UpdateProfileRequest) GetPhone() string {
|
|
479
|
-
if x != nil {
|
|
480
|
-
return x.Phone
|
|
481
|
-
}
|
|
482
|
-
return ""
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
type UpdateProfileResponse struct {
|
|
486
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
487
|
-
unknownFields protoimpl.UnknownFields
|
|
488
|
-
sizeCache protoimpl.SizeCache
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
func (x *UpdateProfileResponse) Reset() {
|
|
492
|
-
*x = UpdateProfileResponse{}
|
|
493
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[7]
|
|
494
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
495
|
-
ms.StoreMessageInfo(mi)
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
func (x *UpdateProfileResponse) String() string {
|
|
499
|
-
return protoimpl.X.MessageStringOf(x)
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
func (*UpdateProfileResponse) ProtoMessage() {}
|
|
503
|
-
|
|
504
|
-
func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message {
|
|
505
|
-
mi := &file_src_proto_customers_v1_entities_profile_proto_msgTypes[7]
|
|
506
|
-
if x != nil {
|
|
507
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
508
|
-
if ms.LoadMessageInfo() == nil {
|
|
509
|
-
ms.StoreMessageInfo(mi)
|
|
510
|
-
}
|
|
511
|
-
return ms
|
|
512
|
-
}
|
|
513
|
-
return mi.MessageOf(x)
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.
|
|
517
|
-
func (*UpdateProfileResponse) Descriptor() ([]byte, []int) {
|
|
518
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP(), []int{7}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
var File_src_proto_customers_v1_entities_profile_proto protoreflect.FileDescriptor
|
|
522
|
-
|
|
523
|
-
const file_src_proto_customers_v1_entities_profile_proto_rawDesc = "" +
|
|
524
|
-
"\n" +
|
|
525
|
-
"-src/proto/customers/v1/entities/profile.proto\x1a\x1bbuf/validate/validate.proto\"e\n" +
|
|
526
|
-
"\x13BasicProfileRequest\x12N\n" +
|
|
527
|
-
"\vcustomer_id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\n" +
|
|
528
|
-
"customerId\"\x99\x01\n" +
|
|
529
|
-
"\x14BasicProfileResponse\x12\x0e\n" +
|
|
530
|
-
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
|
|
531
|
-
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1d\n" +
|
|
532
|
-
"\n" +
|
|
533
|
-
"first_name\x18\x03 \x01(\tR\tfirstName\x12\x1b\n" +
|
|
534
|
-
"\tlast_name\x18\x04 \x01(\tR\blastName\x12\x1f\n" +
|
|
535
|
-
"\vother_names\x18\x05 \x01(\tR\n" +
|
|
536
|
-
"otherNames\"`\n" +
|
|
537
|
-
"\x0eProfileRequest\x12N\n" +
|
|
538
|
-
"\vcustomer_id\x18\x01 \x01(\tB-\xbaH*\xc8\x01\x01r%2#^[a-z]{3}[_][0-9a-hjkmnp-tv-z]{26}$R\n" +
|
|
539
|
-
"customerId\"\xf7\x01\n" +
|
|
540
|
-
"\x0fProfileResponse\x12\x1f\n" +
|
|
541
|
-
"\vcustomer_id\x18\x01 \x01(\tR\n" +
|
|
542
|
-
"customerId\x12\x1d\n" +
|
|
543
|
-
"\n" +
|
|
544
|
-
"first_name\x18\x02 \x01(\tR\tfirstName\x12\x1b\n" +
|
|
545
|
-
"\tlast_name\x18\x03 \x01(\tR\blastName\x12\x1f\n" +
|
|
546
|
-
"\vother_names\x18\x04 \x01(\tR\n" +
|
|
547
|
-
"otherNames\x12\"\n" +
|
|
548
|
-
"\rdate_of_birth\x18\x05 \x01(\tR\vdateOfBirth\x12\x14\n" +
|
|
549
|
-
"\x05email\x18\x06 \x01(\tR\x05email\x12\x16\n" +
|
|
550
|
-
"\x06gender\x18\a \x01(\tR\x06gender\x12\x14\n" +
|
|
551
|
-
"\x05phone\x18\b \x01(\tR\x05phone\"\xc8\a\n" +
|
|
552
|
-
"\x15ChangePasswordRequest\x12,\n" +
|
|
553
|
-
"\vcustomer_id\x18\x01 \x01(\tB\v\xbaH\b\xc8\x01\x01r\x03\x98\x01\x1aR\n" +
|
|
554
|
-
"customerId\x12)\n" +
|
|
555
|
-
"\fold_password\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\voldPassword\x12)\n" +
|
|
556
|
-
"\fnew_password\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\vnewPassword:\xaa\x06\xbaH\xa6\x06\x1a\xa6\x01\n" +
|
|
557
|
-
"\"password_complexity_lowercase_must\x123Password must contain at least one lowercase letter\x1aKthis.new_password != '' ? string(this.new_password).matches('[a-z]') : true\x1a\xa6\x01\n" +
|
|
558
|
-
"\"password_complexity_uppercase_must\x123Password must contain at least one uppercase letter\x1aKthis.new_password != '' ? string(this.new_password).matches('[A-Z]') : true\x1a\x97\x01\n" +
|
|
559
|
-
"\x1epassword_complexity_digit_must\x12(Password must contain at least one digit\x1aKthis.new_password != '' ? string(this.new_password).matches('[0-9]') : true\x1a\xbb\x01\n" +
|
|
560
|
-
"%password_complexity_special_char_must\x124Password must contain at least one special character\x1a\\this.new_password != '' ? string(this.new_password).matches('[!@#$%^&*(),.?\":{}|<>]') : true\x1az\n" +
|
|
561
|
-
"#password_and_new_password_different\x12+Password and new password must be different\x1a&this.old_password != this.new_password\"\x18\n" +
|
|
562
|
-
"\x16ChangePasswordResponse\"\xe7\x03\n" +
|
|
563
|
-
"\x14UpdateProfileRequest\x12+\n" +
|
|
564
|
-
"\vcustomer_id\x18\x01 \x01(\tB\n" +
|
|
565
|
-
"\xbaH\a\xc8\x01\x01r\x02\x10\x1aR\n" +
|
|
566
|
-
"customerId\x12+\n" +
|
|
567
|
-
"\n" +
|
|
568
|
-
"first_name\x18\x02 \x01(\tB\f\xbaH\t\xc8\x01\x01r\x04\x10\x02\x18\x14R\tfirstName\x12)\n" +
|
|
569
|
-
"\tlast_name\x18\x03 \x01(\tB\f\xbaH\t\xc8\x01\x01r\x04\x10\x02\x18\x14R\blastName\x12(\n" +
|
|
570
|
-
"\vother_names\x18\x04 \x01(\tB\a\xbaH\x04r\x02\x18\x14R\n" +
|
|
571
|
-
"otherNames\x12\"\n" +
|
|
572
|
-
"\rdate_of_birth\x18\x05 \x01(\tR\vdateOfBirth\x12 \n" +
|
|
573
|
-
"\x05email\x18\x06 \x01(\tB\n" +
|
|
574
|
-
"\xbaH\a\xc8\x01\x01r\x02`\x01R\x05email\x12\x16\n" +
|
|
575
|
-
"\x06gender\x18\a \x01(\tR\x06gender\x12\x1d\n" +
|
|
576
|
-
"\x05phone\x18\b \x01(\tB\a\xbaH\x04r\x02\x18\x14R\x05phone:\xa2\x01\xbaH\x9e\x01\x1a\x9b\x01\n" +
|
|
577
|
-
"\x14gender_must_be_valid\x122Gender must be either 'male', 'female', or 'other'\x1aOthis.gender != '' ? string(this.gender).matches('^(male|female|other)$') : true\"\x17\n" +
|
|
578
|
-
"\x15UpdateProfileResponseBLB\fProfileProtoP\x01Z:paakd.com/packages/api/gen/src/proto/customers/v1/entitiesb\x06proto3"
|
|
579
|
-
|
|
580
|
-
var (
|
|
581
|
-
file_src_proto_customers_v1_entities_profile_proto_rawDescOnce sync.Once
|
|
582
|
-
file_src_proto_customers_v1_entities_profile_proto_rawDescData []byte
|
|
583
|
-
)
|
|
584
|
-
|
|
585
|
-
func file_src_proto_customers_v1_entities_profile_proto_rawDescGZIP() []byte {
|
|
586
|
-
file_src_proto_customers_v1_entities_profile_proto_rawDescOnce.Do(func() {
|
|
587
|
-
file_src_proto_customers_v1_entities_profile_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_customers_v1_entities_profile_proto_rawDesc), len(file_src_proto_customers_v1_entities_profile_proto_rawDesc)))
|
|
588
|
-
})
|
|
589
|
-
return file_src_proto_customers_v1_entities_profile_proto_rawDescData
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
var file_src_proto_customers_v1_entities_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
593
|
-
var file_src_proto_customers_v1_entities_profile_proto_goTypes = []any{
|
|
594
|
-
(*BasicProfileRequest)(nil), // 0: BasicProfileRequest
|
|
595
|
-
(*BasicProfileResponse)(nil), // 1: BasicProfileResponse
|
|
596
|
-
(*ProfileRequest)(nil), // 2: ProfileRequest
|
|
597
|
-
(*ProfileResponse)(nil), // 3: ProfileResponse
|
|
598
|
-
(*ChangePasswordRequest)(nil), // 4: ChangePasswordRequest
|
|
599
|
-
(*ChangePasswordResponse)(nil), // 5: ChangePasswordResponse
|
|
600
|
-
(*UpdateProfileRequest)(nil), // 6: UpdateProfileRequest
|
|
601
|
-
(*UpdateProfileResponse)(nil), // 7: UpdateProfileResponse
|
|
602
|
-
}
|
|
603
|
-
var file_src_proto_customers_v1_entities_profile_proto_depIdxs = []int32{
|
|
604
|
-
0, // [0:0] is the sub-list for method output_type
|
|
605
|
-
0, // [0:0] is the sub-list for method input_type
|
|
606
|
-
0, // [0:0] is the sub-list for extension type_name
|
|
607
|
-
0, // [0:0] is the sub-list for extension extendee
|
|
608
|
-
0, // [0:0] is the sub-list for field type_name
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
func init() { file_src_proto_customers_v1_entities_profile_proto_init() }
|
|
612
|
-
func file_src_proto_customers_v1_entities_profile_proto_init() {
|
|
613
|
-
if File_src_proto_customers_v1_entities_profile_proto != nil {
|
|
614
|
-
return
|
|
615
|
-
}
|
|
616
|
-
type x struct{}
|
|
617
|
-
out := protoimpl.TypeBuilder{
|
|
618
|
-
File: protoimpl.DescBuilder{
|
|
619
|
-
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
620
|
-
RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_customers_v1_entities_profile_proto_rawDesc), len(file_src_proto_customers_v1_entities_profile_proto_rawDesc)),
|
|
621
|
-
NumEnums: 0,
|
|
622
|
-
NumMessages: 8,
|
|
623
|
-
NumExtensions: 0,
|
|
624
|
-
NumServices: 0,
|
|
625
|
-
},
|
|
626
|
-
GoTypes: file_src_proto_customers_v1_entities_profile_proto_goTypes,
|
|
627
|
-
DependencyIndexes: file_src_proto_customers_v1_entities_profile_proto_depIdxs,
|
|
628
|
-
MessageInfos: file_src_proto_customers_v1_entities_profile_proto_msgTypes,
|
|
629
|
-
}.Build()
|
|
630
|
-
File_src_proto_customers_v1_entities_profile_proto = out.File
|
|
631
|
-
file_src_proto_customers_v1_entities_profile_proto_goTypes = nil
|
|
632
|
-
file_src_proto_customers_v1_entities_profile_proto_depIdxs = nil
|
|
633
|
-
}
|