@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,528 @@
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/products/v1/entities/collection.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 CreateCollectionRequest struct {
26
+ state protoimpl.MessageState `protogen:"open.v1"`
27
+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
28
+ Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
29
+ Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"`
30
+ unknownFields protoimpl.UnknownFields
31
+ sizeCache protoimpl.SizeCache
32
+ }
33
+
34
+ func (x *CreateCollectionRequest) Reset() {
35
+ *x = CreateCollectionRequest{}
36
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[0]
37
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38
+ ms.StoreMessageInfo(mi)
39
+ }
40
+
41
+ func (x *CreateCollectionRequest) String() string {
42
+ return protoimpl.X.MessageStringOf(x)
43
+ }
44
+
45
+ func (*CreateCollectionRequest) ProtoMessage() {}
46
+
47
+ func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message {
48
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[0]
49
+ if x != nil {
50
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51
+ if ms.LoadMessageInfo() == nil {
52
+ ms.StoreMessageInfo(mi)
53
+ }
54
+ return ms
55
+ }
56
+ return mi.MessageOf(x)
57
+ }
58
+
59
+ // Deprecated: Use CreateCollectionRequest.ProtoReflect.Descriptor instead.
60
+ func (*CreateCollectionRequest) Descriptor() ([]byte, []int) {
61
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{0}
62
+ }
63
+
64
+ func (x *CreateCollectionRequest) GetTitle() string {
65
+ if x != nil {
66
+ return x.Title
67
+ }
68
+ return ""
69
+ }
70
+
71
+ func (x *CreateCollectionRequest) GetDescription() string {
72
+ if x != nil && x.Description != nil {
73
+ return *x.Description
74
+ }
75
+ return ""
76
+ }
77
+
78
+ func (x *CreateCollectionRequest) GetSlug() string {
79
+ if x != nil {
80
+ return x.Slug
81
+ }
82
+ return ""
83
+ }
84
+
85
+ type CreateCollectionResponse struct {
86
+ state protoimpl.MessageState `protogen:"open.v1"`
87
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
88
+ unknownFields protoimpl.UnknownFields
89
+ sizeCache protoimpl.SizeCache
90
+ }
91
+
92
+ func (x *CreateCollectionResponse) Reset() {
93
+ *x = CreateCollectionResponse{}
94
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[1]
95
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
96
+ ms.StoreMessageInfo(mi)
97
+ }
98
+
99
+ func (x *CreateCollectionResponse) String() string {
100
+ return protoimpl.X.MessageStringOf(x)
101
+ }
102
+
103
+ func (*CreateCollectionResponse) ProtoMessage() {}
104
+
105
+ func (x *CreateCollectionResponse) ProtoReflect() protoreflect.Message {
106
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[1]
107
+ if x != nil {
108
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109
+ if ms.LoadMessageInfo() == nil {
110
+ ms.StoreMessageInfo(mi)
111
+ }
112
+ return ms
113
+ }
114
+ return mi.MessageOf(x)
115
+ }
116
+
117
+ // Deprecated: Use CreateCollectionResponse.ProtoReflect.Descriptor instead.
118
+ func (*CreateCollectionResponse) Descriptor() ([]byte, []int) {
119
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{1}
120
+ }
121
+
122
+ func (x *CreateCollectionResponse) GetId() string {
123
+ if x != nil {
124
+ return x.Id
125
+ }
126
+ return ""
127
+ }
128
+
129
+ type GetCollectionByIDRequest struct {
130
+ state protoimpl.MessageState `protogen:"open.v1"`
131
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
132
+ unknownFields protoimpl.UnknownFields
133
+ sizeCache protoimpl.SizeCache
134
+ }
135
+
136
+ func (x *GetCollectionByIDRequest) Reset() {
137
+ *x = GetCollectionByIDRequest{}
138
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[2]
139
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140
+ ms.StoreMessageInfo(mi)
141
+ }
142
+
143
+ func (x *GetCollectionByIDRequest) String() string {
144
+ return protoimpl.X.MessageStringOf(x)
145
+ }
146
+
147
+ func (*GetCollectionByIDRequest) ProtoMessage() {}
148
+
149
+ func (x *GetCollectionByIDRequest) ProtoReflect() protoreflect.Message {
150
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[2]
151
+ if x != nil {
152
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
153
+ if ms.LoadMessageInfo() == nil {
154
+ ms.StoreMessageInfo(mi)
155
+ }
156
+ return ms
157
+ }
158
+ return mi.MessageOf(x)
159
+ }
160
+
161
+ // Deprecated: Use GetCollectionByIDRequest.ProtoReflect.Descriptor instead.
162
+ func (*GetCollectionByIDRequest) Descriptor() ([]byte, []int) {
163
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{2}
164
+ }
165
+
166
+ func (x *GetCollectionByIDRequest) GetId() string {
167
+ if x != nil {
168
+ return x.Id
169
+ }
170
+ return ""
171
+ }
172
+
173
+ type GetCollectionByIDResponse struct {
174
+ state protoimpl.MessageState `protogen:"open.v1"`
175
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the collection
176
+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Name of the collection
177
+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Description of the collection
178
+ Slug string `protobuf:"bytes,4,opt,name=slug,proto3" json:"slug,omitempty"` // URL slug of the collection
179
+ Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` // Tags associated with the collection
180
+ unknownFields protoimpl.UnknownFields
181
+ sizeCache protoimpl.SizeCache
182
+ }
183
+
184
+ func (x *GetCollectionByIDResponse) Reset() {
185
+ *x = GetCollectionByIDResponse{}
186
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[3]
187
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188
+ ms.StoreMessageInfo(mi)
189
+ }
190
+
191
+ func (x *GetCollectionByIDResponse) String() string {
192
+ return protoimpl.X.MessageStringOf(x)
193
+ }
194
+
195
+ func (*GetCollectionByIDResponse) ProtoMessage() {}
196
+
197
+ func (x *GetCollectionByIDResponse) ProtoReflect() protoreflect.Message {
198
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[3]
199
+ if x != nil {
200
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
201
+ if ms.LoadMessageInfo() == nil {
202
+ ms.StoreMessageInfo(mi)
203
+ }
204
+ return ms
205
+ }
206
+ return mi.MessageOf(x)
207
+ }
208
+
209
+ // Deprecated: Use GetCollectionByIDResponse.ProtoReflect.Descriptor instead.
210
+ func (*GetCollectionByIDResponse) Descriptor() ([]byte, []int) {
211
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{3}
212
+ }
213
+
214
+ func (x *GetCollectionByIDResponse) GetId() string {
215
+ if x != nil {
216
+ return x.Id
217
+ }
218
+ return ""
219
+ }
220
+
221
+ func (x *GetCollectionByIDResponse) GetTitle() string {
222
+ if x != nil {
223
+ return x.Title
224
+ }
225
+ return ""
226
+ }
227
+
228
+ func (x *GetCollectionByIDResponse) GetDescription() string {
229
+ if x != nil {
230
+ return x.Description
231
+ }
232
+ return ""
233
+ }
234
+
235
+ func (x *GetCollectionByIDResponse) GetSlug() string {
236
+ if x != nil {
237
+ return x.Slug
238
+ }
239
+ return ""
240
+ }
241
+
242
+ func (x *GetCollectionByIDResponse) GetTags() []string {
243
+ if x != nil {
244
+ return x.Tags
245
+ }
246
+ return nil
247
+ }
248
+
249
+ type UpdateCollectionRequest struct {
250
+ state protoimpl.MessageState `protogen:"open.v1"`
251
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
252
+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
253
+ Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
254
+ Slug string `protobuf:"bytes,4,opt,name=slug,proto3" json:"slug,omitempty"`
255
+ Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
256
+ unknownFields protoimpl.UnknownFields
257
+ sizeCache protoimpl.SizeCache
258
+ }
259
+
260
+ func (x *UpdateCollectionRequest) Reset() {
261
+ *x = UpdateCollectionRequest{}
262
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[4]
263
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264
+ ms.StoreMessageInfo(mi)
265
+ }
266
+
267
+ func (x *UpdateCollectionRequest) String() string {
268
+ return protoimpl.X.MessageStringOf(x)
269
+ }
270
+
271
+ func (*UpdateCollectionRequest) ProtoMessage() {}
272
+
273
+ func (x *UpdateCollectionRequest) ProtoReflect() protoreflect.Message {
274
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[4]
275
+ if x != nil {
276
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
277
+ if ms.LoadMessageInfo() == nil {
278
+ ms.StoreMessageInfo(mi)
279
+ }
280
+ return ms
281
+ }
282
+ return mi.MessageOf(x)
283
+ }
284
+
285
+ // Deprecated: Use UpdateCollectionRequest.ProtoReflect.Descriptor instead.
286
+ func (*UpdateCollectionRequest) Descriptor() ([]byte, []int) {
287
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{4}
288
+ }
289
+
290
+ func (x *UpdateCollectionRequest) GetId() string {
291
+ if x != nil {
292
+ return x.Id
293
+ }
294
+ return ""
295
+ }
296
+
297
+ func (x *UpdateCollectionRequest) GetTitle() string {
298
+ if x != nil {
299
+ return x.Title
300
+ }
301
+ return ""
302
+ }
303
+
304
+ func (x *UpdateCollectionRequest) GetDescription() string {
305
+ if x != nil && x.Description != nil {
306
+ return *x.Description
307
+ }
308
+ return ""
309
+ }
310
+
311
+ func (x *UpdateCollectionRequest) GetSlug() string {
312
+ if x != nil {
313
+ return x.Slug
314
+ }
315
+ return ""
316
+ }
317
+
318
+ func (x *UpdateCollectionRequest) GetTags() []string {
319
+ if x != nil {
320
+ return x.Tags
321
+ }
322
+ return nil
323
+ }
324
+
325
+ type UpdateCollectionResponse struct {
326
+ state protoimpl.MessageState `protogen:"open.v1"`
327
+ unknownFields protoimpl.UnknownFields
328
+ sizeCache protoimpl.SizeCache
329
+ }
330
+
331
+ func (x *UpdateCollectionResponse) Reset() {
332
+ *x = UpdateCollectionResponse{}
333
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[5]
334
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
335
+ ms.StoreMessageInfo(mi)
336
+ }
337
+
338
+ func (x *UpdateCollectionResponse) String() string {
339
+ return protoimpl.X.MessageStringOf(x)
340
+ }
341
+
342
+ func (*UpdateCollectionResponse) ProtoMessage() {}
343
+
344
+ func (x *UpdateCollectionResponse) ProtoReflect() protoreflect.Message {
345
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[5]
346
+ if x != nil {
347
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
348
+ if ms.LoadMessageInfo() == nil {
349
+ ms.StoreMessageInfo(mi)
350
+ }
351
+ return ms
352
+ }
353
+ return mi.MessageOf(x)
354
+ }
355
+
356
+ // Deprecated: Use UpdateCollectionResponse.ProtoReflect.Descriptor instead.
357
+ func (*UpdateCollectionResponse) Descriptor() ([]byte, []int) {
358
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{5}
359
+ }
360
+
361
+ type DeleteCollectionByIDRequest struct {
362
+ state protoimpl.MessageState `protogen:"open.v1"`
363
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
364
+ unknownFields protoimpl.UnknownFields
365
+ sizeCache protoimpl.SizeCache
366
+ }
367
+
368
+ func (x *DeleteCollectionByIDRequest) Reset() {
369
+ *x = DeleteCollectionByIDRequest{}
370
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[6]
371
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
372
+ ms.StoreMessageInfo(mi)
373
+ }
374
+
375
+ func (x *DeleteCollectionByIDRequest) String() string {
376
+ return protoimpl.X.MessageStringOf(x)
377
+ }
378
+
379
+ func (*DeleteCollectionByIDRequest) ProtoMessage() {}
380
+
381
+ func (x *DeleteCollectionByIDRequest) ProtoReflect() protoreflect.Message {
382
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[6]
383
+ if x != nil {
384
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
385
+ if ms.LoadMessageInfo() == nil {
386
+ ms.StoreMessageInfo(mi)
387
+ }
388
+ return ms
389
+ }
390
+ return mi.MessageOf(x)
391
+ }
392
+
393
+ // Deprecated: Use DeleteCollectionByIDRequest.ProtoReflect.Descriptor instead.
394
+ func (*DeleteCollectionByIDRequest) Descriptor() ([]byte, []int) {
395
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{6}
396
+ }
397
+
398
+ func (x *DeleteCollectionByIDRequest) GetId() string {
399
+ if x != nil {
400
+ return x.Id
401
+ }
402
+ return ""
403
+ }
404
+
405
+ type DeleteCollectionByIDResponse struct {
406
+ state protoimpl.MessageState `protogen:"open.v1"`
407
+ unknownFields protoimpl.UnknownFields
408
+ sizeCache protoimpl.SizeCache
409
+ }
410
+
411
+ func (x *DeleteCollectionByIDResponse) Reset() {
412
+ *x = DeleteCollectionByIDResponse{}
413
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[7]
414
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
415
+ ms.StoreMessageInfo(mi)
416
+ }
417
+
418
+ func (x *DeleteCollectionByIDResponse) String() string {
419
+ return protoimpl.X.MessageStringOf(x)
420
+ }
421
+
422
+ func (*DeleteCollectionByIDResponse) ProtoMessage() {}
423
+
424
+ func (x *DeleteCollectionByIDResponse) ProtoReflect() protoreflect.Message {
425
+ mi := &file_src_proto_products_v1_entities_collection_proto_msgTypes[7]
426
+ if x != nil {
427
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
428
+ if ms.LoadMessageInfo() == nil {
429
+ ms.StoreMessageInfo(mi)
430
+ }
431
+ return ms
432
+ }
433
+ return mi.MessageOf(x)
434
+ }
435
+
436
+ // Deprecated: Use DeleteCollectionByIDResponse.ProtoReflect.Descriptor instead.
437
+ func (*DeleteCollectionByIDResponse) Descriptor() ([]byte, []int) {
438
+ return file_src_proto_products_v1_entities_collection_proto_rawDescGZIP(), []int{7}
439
+ }
440
+
441
+ var File_src_proto_products_v1_entities_collection_proto protoreflect.FileDescriptor
442
+
443
+ const file_src_proto_products_v1_entities_collection_proto_rawDesc = "" +
444
+ "\n" +
445
+ "/src/proto/products/v1/entities/collection.proto\x1a\x1bbuf/validate/validate.proto\"\xb6\x01\n" +
446
+ "\x17CreateCollectionRequest\x12\x1f\n" +
447
+ "\x05title\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18dR\x05title\x12/\n" +
448
+ "\vdescription\x18\x02 \x01(\tB\b\xbaH\x05r\x03\x18\xf4\x03H\x00R\vdescription\x88\x01\x01\x129\n" +
449
+ "\x04slug\x18\x03 \x01(\tB%\xbaH\"r \x10\x03\x1822\x1a^[a-z0-9]+(?:-[a-z0-9]+)*$R\x04slugB\x0e\n" +
450
+ "\f_description\"*\n" +
451
+ "\x18CreateCollectionResponse\x12\x0e\n" +
452
+ "\x02id\x18\x01 \x01(\tR\x02id\"5\n" +
453
+ "\x18GetCollectionByIDRequest\x12\x19\n" +
454
+ "\x02id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18dR\x02id\"\x8b\x01\n" +
455
+ "\x19GetCollectionByIDResponse\x12\x0e\n" +
456
+ "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
457
+ "\x05title\x18\x02 \x01(\tR\x05title\x12 \n" +
458
+ "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x12\n" +
459
+ "\x04slug\x18\x04 \x01(\tR\x04slug\x12\x12\n" +
460
+ "\x04tags\x18\x05 \x03(\tR\x04tags\"\xe5\x01\n" +
461
+ "\x17UpdateCollectionRequest\x12\x19\n" +
462
+ "\x02id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18dR\x02id\x12\x1f\n" +
463
+ "\x05title\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18dR\x05title\x12/\n" +
464
+ "\vdescription\x18\x03 \x01(\tB\b\xbaH\x05r\x03\x18\xf4\x03H\x00R\vdescription\x88\x01\x01\x129\n" +
465
+ "\x04slug\x18\x04 \x01(\tB%\xbaH\"r \x10\x03\x1822\x1a^[a-z0-9]+(?:-[a-z0-9]+)*$R\x04slug\x12\x12\n" +
466
+ "\x04tags\x18\x05 \x03(\tR\x04tagsB\x0e\n" +
467
+ "\f_description\"\x1a\n" +
468
+ "\x18UpdateCollectionResponse\"8\n" +
469
+ "\x1bDeleteCollectionByIDRequest\x12\x19\n" +
470
+ "\x02id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18dR\x02id\"\x1e\n" +
471
+ "\x1cDeleteCollectionByIDResponseBNB\x0fCollectionProtoP\x01Z9paakd.com/packages/api/gen/src/proto/products/v1/entitiesb\x06proto3"
472
+
473
+ var (
474
+ file_src_proto_products_v1_entities_collection_proto_rawDescOnce sync.Once
475
+ file_src_proto_products_v1_entities_collection_proto_rawDescData []byte
476
+ )
477
+
478
+ func file_src_proto_products_v1_entities_collection_proto_rawDescGZIP() []byte {
479
+ file_src_proto_products_v1_entities_collection_proto_rawDescOnce.Do(func() {
480
+ file_src_proto_products_v1_entities_collection_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_collection_proto_rawDesc), len(file_src_proto_products_v1_entities_collection_proto_rawDesc)))
481
+ })
482
+ return file_src_proto_products_v1_entities_collection_proto_rawDescData
483
+ }
484
+
485
+ var file_src_proto_products_v1_entities_collection_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
486
+ var file_src_proto_products_v1_entities_collection_proto_goTypes = []any{
487
+ (*CreateCollectionRequest)(nil), // 0: CreateCollectionRequest
488
+ (*CreateCollectionResponse)(nil), // 1: CreateCollectionResponse
489
+ (*GetCollectionByIDRequest)(nil), // 2: GetCollectionByIDRequest
490
+ (*GetCollectionByIDResponse)(nil), // 3: GetCollectionByIDResponse
491
+ (*UpdateCollectionRequest)(nil), // 4: UpdateCollectionRequest
492
+ (*UpdateCollectionResponse)(nil), // 5: UpdateCollectionResponse
493
+ (*DeleteCollectionByIDRequest)(nil), // 6: DeleteCollectionByIDRequest
494
+ (*DeleteCollectionByIDResponse)(nil), // 7: DeleteCollectionByIDResponse
495
+ }
496
+ var file_src_proto_products_v1_entities_collection_proto_depIdxs = []int32{
497
+ 0, // [0:0] is the sub-list for method output_type
498
+ 0, // [0:0] is the sub-list for method input_type
499
+ 0, // [0:0] is the sub-list for extension type_name
500
+ 0, // [0:0] is the sub-list for extension extendee
501
+ 0, // [0:0] is the sub-list for field type_name
502
+ }
503
+
504
+ func init() { file_src_proto_products_v1_entities_collection_proto_init() }
505
+ func file_src_proto_products_v1_entities_collection_proto_init() {
506
+ if File_src_proto_products_v1_entities_collection_proto != nil {
507
+ return
508
+ }
509
+ file_src_proto_products_v1_entities_collection_proto_msgTypes[0].OneofWrappers = []any{}
510
+ file_src_proto_products_v1_entities_collection_proto_msgTypes[4].OneofWrappers = []any{}
511
+ type x struct{}
512
+ out := protoimpl.TypeBuilder{
513
+ File: protoimpl.DescBuilder{
514
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
515
+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_collection_proto_rawDesc), len(file_src_proto_products_v1_entities_collection_proto_rawDesc)),
516
+ NumEnums: 0,
517
+ NumMessages: 8,
518
+ NumExtensions: 0,
519
+ NumServices: 0,
520
+ },
521
+ GoTypes: file_src_proto_products_v1_entities_collection_proto_goTypes,
522
+ DependencyIndexes: file_src_proto_products_v1_entities_collection_proto_depIdxs,
523
+ MessageInfos: file_src_proto_products_v1_entities_collection_proto_msgTypes,
524
+ }.Build()
525
+ File_src_proto_products_v1_entities_collection_proto = out.File
526
+ file_src_proto_products_v1_entities_collection_proto_goTypes = nil
527
+ file_src_proto_products_v1_entities_collection_proto_depIdxs = nil
528
+ }