@paakd/api 0.0.1 → 0.0.2

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 (201) hide show
  1. package/buf/validate/validate_pb.ts +5001 -0
  2. package/dist/gen/buf/validate/validate_pb.d.ts +4634 -0
  3. package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
  4. package/dist/gen/buf/validate/validate_pb.js +414 -0
  5. package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts +268 -0
  6. package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts.map +1 -0
  7. package/dist/gen/src/proto/auth/v1/entities/auth_pb.js +120 -0
  8. package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts +235 -0
  9. package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts.map +1 -0
  10. package/dist/gen/src/proto/auth/v1/entities/policy_pb.js +98 -0
  11. package/dist/gen/src/proto/auth/v1/service_pb.d.ts +117 -0
  12. package/dist/gen/src/proto/auth/v1/service_pb.d.ts.map +1 -0
  13. package/dist/gen/src/proto/auth/v1/service_pb.js +22 -0
  14. package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts +371 -0
  15. package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts.map +1 -0
  16. package/dist/gen/src/proto/customers/v1/entities/address_pb.js +84 -0
  17. package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts +189 -0
  18. package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts.map +1 -0
  19. package/dist/gen/src/proto/customers/v1/entities/profile_pb.js +70 -0
  20. package/dist/gen/src/proto/customers/v1/service_pb.d.ts +85 -0
  21. package/dist/gen/src/proto/customers/v1/service_pb.d.ts.map +1 -0
  22. package/dist/gen/src/proto/customers/v1/service_pb.js +22 -0
  23. package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts +234 -0
  24. package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts.map +1 -0
  25. package/dist/gen/src/proto/products/v1/entities/category_pb.js +84 -0
  26. package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts +159 -0
  27. package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts.map +1 -0
  28. package/dist/gen/src/proto/products/v1/entities/collection_pb.js +70 -0
  29. package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts +146 -0
  30. package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts.map +1 -0
  31. package/dist/gen/src/proto/products/v1/entities/product/create_pb.js +32 -0
  32. package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts +50 -0
  33. package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts.map +1 -0
  34. package/dist/gen/src/proto/products/v1/entities/product/option_pb.js +32 -0
  35. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts +1042 -0
  36. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts.map +1 -0
  37. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.js +258 -0
  38. package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts +236 -0
  39. package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts.map +1 -0
  40. package/dist/gen/src/proto/products/v1/entities/product/update_pb.js +88 -0
  41. package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts +175 -0
  42. package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts.map +1 -0
  43. package/dist/gen/src/proto/products/v1/entities/tag_pb.js +84 -0
  44. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts +477 -0
  45. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts.map +1 -0
  46. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.js +235 -0
  47. package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts +158 -0
  48. package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts.map +1 -0
  49. package/dist/gen/src/proto/products/v1/entities/type_pb.js +70 -0
  50. package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts +489 -0
  51. package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts.map +1 -0
  52. package/dist/gen/src/proto/products/v1/entities/variant_pb.js +147 -0
  53. package/dist/gen/src/proto/products/v1/service_pb.d.ts +316 -0
  54. package/dist/gen/src/proto/products/v1/service_pb.d.ts.map +1 -0
  55. package/dist/gen/src/proto/products/v1/service_pb.js +36 -0
  56. package/dist/src/address.d.ts +53 -0
  57. package/dist/src/address.d.ts.map +1 -0
  58. package/dist/src/address.js +233 -0
  59. package/dist/src/address.spec.d.ts +2 -0
  60. package/dist/src/address.spec.d.ts.map +1 -0
  61. package/dist/src/address.spec.js +488 -0
  62. package/dist/src/auth.d.ts +27 -0
  63. package/dist/src/auth.d.ts.map +1 -0
  64. package/dist/src/auth.js +155 -0
  65. package/dist/src/auth.spec.d.ts +2 -0
  66. package/dist/src/auth.spec.d.ts.map +1 -0
  67. package/dist/src/auth.spec.js +582 -0
  68. package/dist/src/compressor/brotli.d.ts +3 -0
  69. package/dist/src/compressor/brotli.d.ts.map +1 -0
  70. package/dist/src/compressor/brotli.js +30 -0
  71. package/dist/src/index.d.ts +6 -0
  72. package/dist/src/index.d.ts.map +1 -0
  73. package/dist/src/interceptors.d.ts +16 -0
  74. package/dist/src/interceptors.d.ts.map +1 -0
  75. package/dist/src/interceptors.js +156 -0
  76. package/dist/src/interceptors.spec.d.ts +2 -0
  77. package/dist/src/interceptors.spec.d.ts.map +1 -0
  78. package/dist/src/interceptors.spec.js +1063 -0
  79. package/dist/src/policies.d.ts +217 -0
  80. package/dist/src/policies.d.ts.map +1 -0
  81. package/dist/src/policies.js +322 -0
  82. package/dist/src/policies.spec.d.ts +2 -0
  83. package/dist/src/policies.spec.d.ts.map +1 -0
  84. package/dist/src/policies.spec.js +463 -0
  85. package/dist/src/products.d.ts +39 -0
  86. package/dist/src/products.d.ts.map +1 -0
  87. package/dist/src/products.js +95 -0
  88. package/dist/src/products.spec.d.ts +2 -0
  89. package/dist/src/products.spec.d.ts.map +1 -0
  90. package/dist/src/products.spec.js +519 -0
  91. package/dist/src/profile.d.ts +62 -0
  92. package/dist/src/profile.d.ts.map +1 -0
  93. package/dist/src/profile.js +151 -0
  94. package/dist/src/profile.spec.d.ts +2 -0
  95. package/dist/src/profile.spec.d.ts.map +1 -0
  96. package/dist/src/profile.spec.js +475 -0
  97. package/dist/src/registration.d.ts +60 -0
  98. package/dist/src/registration.d.ts.map +1 -0
  99. package/dist/src/registration.js +147 -0
  100. package/dist/src/test-utils.d.ts +87 -0
  101. package/dist/src/test-utils.d.ts.map +1 -0
  102. package/dist/src/test-utils.js +132 -0
  103. package/gen/buf/validate/validate_pb.ts +4799 -0
  104. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +454 -0
  105. package/gen/src/proto/auth/v1/entities/auth.pb.go +818 -0
  106. package/gen/src/proto/auth/v1/entities/auth_pb.ts +348 -0
  107. package/gen/src/proto/auth/v1/entities/policy.pb.go +727 -0
  108. package/gen/src/proto/auth/v1/entities/policy_pb.ts +306 -0
  109. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +70 -0
  110. package/gen/src/proto/auth/v1/service.pb.go +119 -0
  111. package/gen/src/proto/auth/v1/service_pb.ts +152 -0
  112. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +358 -0
  113. package/gen/src/proto/customers/v1/entities/address.pb.go +1073 -0
  114. package/gen/src/proto/customers/v1/entities/address_pb.ts +478 -0
  115. package/gen/src/proto/customers/v1/entities/profile.pb.go +633 -0
  116. package/gen/src/proto/customers/v1/entities/profile_pb.ts +252 -0
  117. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +50 -0
  118. package/gen/src/proto/customers/v1/service.pb.go +110 -0
  119. package/gen/src/proto/customers/v1/service_pb.ts +121 -0
  120. package/gen/src/proto/files/v1/entities/file.pb.go +669 -0
  121. package/gen/src/proto/files/v1/entities/file_pb.ts +265 -0
  122. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +200 -0
  123. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +25 -0
  124. package/gen/src/proto/files/v1/service.pb.go +85 -0
  125. package/gen/src/proto/files/v1/service_pb.ts +65 -0
  126. package/gen/src/proto/products/v1/entities/category.pb.go +744 -0
  127. package/gen/src/proto/products/v1/entities/category_pb.ts +318 -0
  128. package/gen/src/proto/products/v1/entities/collection.pb.go +528 -0
  129. package/gen/src/proto/products/v1/entities/collection_pb.ts +214 -0
  130. package/gen/src/proto/products/v1/entities/product/create.pb.go +453 -0
  131. package/gen/src/proto/products/v1/entities/product/create_pb.ts +199 -0
  132. package/gen/src/proto/products/v1/entities/product/option.pb.go +206 -0
  133. package/gen/src/proto/products/v1/entities/product/option_pb.ts +74 -0
  134. package/gen/src/proto/products/v1/entities/product/shared.pb.go +2890 -0
  135. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +1317 -0
  136. package/gen/src/proto/products/v1/entities/product/update.pb.go +794 -0
  137. package/gen/src/proto/products/v1/entities/product/update_pb.ts +325 -0
  138. package/gen/src/proto/products/v1/entities/tag.pb.go +610 -0
  139. package/gen/src/proto/products/v1/entities/tag_pb.ts +233 -0
  140. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +1352 -0
  141. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +606 -0
  142. package/gen/src/proto/products/v1/entities/type.pb.go +553 -0
  143. package/gen/src/proto/products/v1/entities/type_pb.ts +215 -0
  144. package/gen/src/proto/products/v1/entities/variant.pb.go +1474 -0
  145. package/gen/src/proto/products/v1/entities/variant_pb.ts +629 -0
  146. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +1195 -0
  147. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +199 -0
  148. package/gen/src/proto/products/v1/service.pb.go +250 -0
  149. package/gen/src/proto/products/v1/service_pb.ts +429 -0
  150. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +1229 -0
  151. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +511 -0
  152. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +289 -0
  153. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +42 -0
  154. package/gen/src/proto/promotions/v1/service.pb.go +98 -0
  155. package/gen/src/proto/promotions/v1/service_pb.ts +95 -0
  156. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +1499 -0
  157. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +655 -0
  158. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +41 -0
  159. package/gen/src/proto/stocknodes/v1/service.pb.go +98 -0
  160. package/gen/src/proto/stocknodes/v1/service_pb.ts +95 -0
  161. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +297 -0
  162. package/package.json +5 -2
  163. package/src/address.spec.ts +0 -662
  164. package/src/address.ts +0 -300
  165. package/src/auth.spec.ts +0 -771
  166. package/src/auth.ts +0 -168
  167. package/src/compressor/brotli.ts +0 -26
  168. package/src/index.ts +0 -5
  169. package/src/interceptors.spec.ts +0 -1343
  170. package/src/interceptors.ts +0 -224
  171. package/src/policies.spec.ts +0 -595
  172. package/src/policies.ts +0 -431
  173. package/src/products.spec.ts +0 -710
  174. package/src/products.ts +0 -112
  175. package/src/profile.spec.ts +0 -626
  176. package/src/profile.ts +0 -169
  177. package/src/proto/auth/v1/entities/auth.proto +0 -140
  178. package/src/proto/auth/v1/entities/policy.proto +0 -57
  179. package/src/proto/auth/v1/service.proto +0 -26
  180. package/src/proto/customers/v1/entities/address.proto +0 -101
  181. package/src/proto/customers/v1/entities/profile.proto +0 -118
  182. package/src/proto/customers/v1/service.proto +0 -36
  183. package/src/proto/files/v1/entities/file.proto +0 -62
  184. package/src/proto/files/v1/service.proto +0 -19
  185. package/src/proto/products/v1/entities/category.proto +0 -98
  186. package/src/proto/products/v1/entities/collection.proto +0 -72
  187. package/src/proto/products/v1/entities/product/create.proto +0 -41
  188. package/src/proto/products/v1/entities/product/option.proto +0 -17
  189. package/src/proto/products/v1/entities/product/shared.proto +0 -255
  190. package/src/proto/products/v1/entities/product/update.proto +0 -66
  191. package/src/proto/products/v1/entities/tag.proto +0 -73
  192. package/src/proto/products/v1/entities/taxonomy.proto +0 -146
  193. package/src/proto/products/v1/entities/type.proto +0 -98
  194. package/src/proto/products/v1/entities/variant.proto +0 -127
  195. package/src/proto/products/v1/service.proto +0 -78
  196. package/src/proto/promotions/v1/entities/campaign.proto +0 -145
  197. package/src/proto/promotions/v1/service.proto +0 -17
  198. package/src/proto/stocknodes/v1/entities/stocknode.proto +0 -167
  199. package/src/proto/stocknodes/v1/service.proto +0 -21
  200. package/src/registration.ts +0 -170
  201. package/src/test-utils.ts +0 -176
@@ -0,0 +1,633 @@
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
+ }