@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,669 @@
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/files/v1/entities/file.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 ListFilesRequest struct {
26
+ state protoimpl.MessageState `protogen:"open.v1"`
27
+ Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
28
+ Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
29
+ OrderBy *string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"`
30
+ Filter *string `protobuf:"bytes,4,opt,name=filter,proto3,oneof" json:"filter,omitempty"`
31
+ Ascending *bool `protobuf:"varint,5,opt,name=ascending,proto3,oneof" json:"ascending,omitempty"`
32
+ RequestPath *string `protobuf:"bytes,6,opt,name=request_path,json=requestPath,proto3,oneof" json:"request_path,omitempty"`
33
+ unknownFields protoimpl.UnknownFields
34
+ sizeCache protoimpl.SizeCache
35
+ }
36
+
37
+ func (x *ListFilesRequest) Reset() {
38
+ *x = ListFilesRequest{}
39
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[0]
40
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
41
+ ms.StoreMessageInfo(mi)
42
+ }
43
+
44
+ func (x *ListFilesRequest) String() string {
45
+ return protoimpl.X.MessageStringOf(x)
46
+ }
47
+
48
+ func (*ListFilesRequest) ProtoMessage() {}
49
+
50
+ func (x *ListFilesRequest) ProtoReflect() protoreflect.Message {
51
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[0]
52
+ if x != nil {
53
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54
+ if ms.LoadMessageInfo() == nil {
55
+ ms.StoreMessageInfo(mi)
56
+ }
57
+ return ms
58
+ }
59
+ return mi.MessageOf(x)
60
+ }
61
+
62
+ // Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
63
+ func (*ListFilesRequest) Descriptor() ([]byte, []int) {
64
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{0}
65
+ }
66
+
67
+ func (x *ListFilesRequest) GetOffset() int32 {
68
+ if x != nil {
69
+ return x.Offset
70
+ }
71
+ return 0
72
+ }
73
+
74
+ func (x *ListFilesRequest) GetLimit() uint32 {
75
+ if x != nil {
76
+ return x.Limit
77
+ }
78
+ return 0
79
+ }
80
+
81
+ func (x *ListFilesRequest) GetOrderBy() string {
82
+ if x != nil && x.OrderBy != nil {
83
+ return *x.OrderBy
84
+ }
85
+ return ""
86
+ }
87
+
88
+ func (x *ListFilesRequest) GetFilter() string {
89
+ if x != nil && x.Filter != nil {
90
+ return *x.Filter
91
+ }
92
+ return ""
93
+ }
94
+
95
+ func (x *ListFilesRequest) GetAscending() bool {
96
+ if x != nil && x.Ascending != nil {
97
+ return *x.Ascending
98
+ }
99
+ return false
100
+ }
101
+
102
+ func (x *ListFilesRequest) GetRequestPath() string {
103
+ if x != nil && x.RequestPath != nil {
104
+ return *x.RequestPath
105
+ }
106
+ return ""
107
+ }
108
+
109
+ type ListFilesResponse struct {
110
+ state protoimpl.MessageState `protogen:"open.v1"`
111
+ Files []*FileResponse `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
112
+ unknownFields protoimpl.UnknownFields
113
+ sizeCache protoimpl.SizeCache
114
+ }
115
+
116
+ func (x *ListFilesResponse) Reset() {
117
+ *x = ListFilesResponse{}
118
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[1]
119
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120
+ ms.StoreMessageInfo(mi)
121
+ }
122
+
123
+ func (x *ListFilesResponse) String() string {
124
+ return protoimpl.X.MessageStringOf(x)
125
+ }
126
+
127
+ func (*ListFilesResponse) ProtoMessage() {}
128
+
129
+ func (x *ListFilesResponse) ProtoReflect() protoreflect.Message {
130
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[1]
131
+ if x != nil {
132
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133
+ if ms.LoadMessageInfo() == nil {
134
+ ms.StoreMessageInfo(mi)
135
+ }
136
+ return ms
137
+ }
138
+ return mi.MessageOf(x)
139
+ }
140
+
141
+ // Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
142
+ func (*ListFilesResponse) Descriptor() ([]byte, []int) {
143
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{1}
144
+ }
145
+
146
+ func (x *ListFilesResponse) GetFiles() []*FileResponse {
147
+ if x != nil {
148
+ return x.Files
149
+ }
150
+ return nil
151
+ }
152
+
153
+ type GetFileRequest struct {
154
+ state protoimpl.MessageState `protogen:"open.v1"`
155
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
156
+ unknownFields protoimpl.UnknownFields
157
+ sizeCache protoimpl.SizeCache
158
+ }
159
+
160
+ func (x *GetFileRequest) Reset() {
161
+ *x = GetFileRequest{}
162
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[2]
163
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
164
+ ms.StoreMessageInfo(mi)
165
+ }
166
+
167
+ func (x *GetFileRequest) String() string {
168
+ return protoimpl.X.MessageStringOf(x)
169
+ }
170
+
171
+ func (*GetFileRequest) ProtoMessage() {}
172
+
173
+ func (x *GetFileRequest) ProtoReflect() protoreflect.Message {
174
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[2]
175
+ if x != nil {
176
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
177
+ if ms.LoadMessageInfo() == nil {
178
+ ms.StoreMessageInfo(mi)
179
+ }
180
+ return ms
181
+ }
182
+ return mi.MessageOf(x)
183
+ }
184
+
185
+ // Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.
186
+ func (*GetFileRequest) Descriptor() ([]byte, []int) {
187
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{2}
188
+ }
189
+
190
+ func (x *GetFileRequest) GetId() string {
191
+ if x != nil {
192
+ return x.Id
193
+ }
194
+ return ""
195
+ }
196
+
197
+ type GetFileResponse struct {
198
+ state protoimpl.MessageState `protogen:"open.v1"`
199
+ File *FileResponse `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
200
+ unknownFields protoimpl.UnknownFields
201
+ sizeCache protoimpl.SizeCache
202
+ }
203
+
204
+ func (x *GetFileResponse) Reset() {
205
+ *x = GetFileResponse{}
206
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[3]
207
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
208
+ ms.StoreMessageInfo(mi)
209
+ }
210
+
211
+ func (x *GetFileResponse) String() string {
212
+ return protoimpl.X.MessageStringOf(x)
213
+ }
214
+
215
+ func (*GetFileResponse) ProtoMessage() {}
216
+
217
+ func (x *GetFileResponse) ProtoReflect() protoreflect.Message {
218
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[3]
219
+ if x != nil {
220
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
221
+ if ms.LoadMessageInfo() == nil {
222
+ ms.StoreMessageInfo(mi)
223
+ }
224
+ return ms
225
+ }
226
+ return mi.MessageOf(x)
227
+ }
228
+
229
+ // Deprecated: Use GetFileResponse.ProtoReflect.Descriptor instead.
230
+ func (*GetFileResponse) Descriptor() ([]byte, []int) {
231
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{3}
232
+ }
233
+
234
+ func (x *GetFileResponse) GetFile() *FileResponse {
235
+ if x != nil {
236
+ return x.File
237
+ }
238
+ return nil
239
+ }
240
+
241
+ type DeleteFileRequest struct {
242
+ state protoimpl.MessageState `protogen:"open.v1"`
243
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
244
+ unknownFields protoimpl.UnknownFields
245
+ sizeCache protoimpl.SizeCache
246
+ }
247
+
248
+ func (x *DeleteFileRequest) Reset() {
249
+ *x = DeleteFileRequest{}
250
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[4]
251
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
252
+ ms.StoreMessageInfo(mi)
253
+ }
254
+
255
+ func (x *DeleteFileRequest) String() string {
256
+ return protoimpl.X.MessageStringOf(x)
257
+ }
258
+
259
+ func (*DeleteFileRequest) ProtoMessage() {}
260
+
261
+ func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message {
262
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[4]
263
+ if x != nil {
264
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
265
+ if ms.LoadMessageInfo() == nil {
266
+ ms.StoreMessageInfo(mi)
267
+ }
268
+ return ms
269
+ }
270
+ return mi.MessageOf(x)
271
+ }
272
+
273
+ // Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
274
+ func (*DeleteFileRequest) Descriptor() ([]byte, []int) {
275
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{4}
276
+ }
277
+
278
+ func (x *DeleteFileRequest) GetId() string {
279
+ if x != nil {
280
+ return x.Id
281
+ }
282
+ return ""
283
+ }
284
+
285
+ type DeleteFileResponse struct {
286
+ state protoimpl.MessageState `protogen:"open.v1"`
287
+ unknownFields protoimpl.UnknownFields
288
+ sizeCache protoimpl.SizeCache
289
+ }
290
+
291
+ func (x *DeleteFileResponse) Reset() {
292
+ *x = DeleteFileResponse{}
293
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[5]
294
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
295
+ ms.StoreMessageInfo(mi)
296
+ }
297
+
298
+ func (x *DeleteFileResponse) String() string {
299
+ return protoimpl.X.MessageStringOf(x)
300
+ }
301
+
302
+ func (*DeleteFileResponse) ProtoMessage() {}
303
+
304
+ func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message {
305
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[5]
306
+ if x != nil {
307
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
308
+ if ms.LoadMessageInfo() == nil {
309
+ ms.StoreMessageInfo(mi)
310
+ }
311
+ return ms
312
+ }
313
+ return mi.MessageOf(x)
314
+ }
315
+
316
+ // Deprecated: Use DeleteFileResponse.ProtoReflect.Descriptor instead.
317
+ func (*DeleteFileResponse) Descriptor() ([]byte, []int) {
318
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{5}
319
+ }
320
+
321
+ type UpdateFileRequest struct {
322
+ state protoimpl.MessageState `protogen:"open.v1"`
323
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
324
+ LineItemId *string `protobuf:"bytes,2,opt,name=line_item_id,json=lineItemId,proto3,oneof" json:"line_item_id,omitempty"`
325
+ VideoProductId *string `protobuf:"bytes,3,opt,name=video_product_id,json=videoProductId,proto3,oneof" json:"video_product_id,omitempty"`
326
+ VideoProductVariantId *string `protobuf:"bytes,4,opt,name=video_product_variant_id,json=videoProductVariantId,proto3,oneof" json:"video_product_variant_id,omitempty"`
327
+ ProductCategoryId *string `protobuf:"bytes,5,opt,name=product_category_id,json=productCategoryId,proto3,oneof" json:"product_category_id,omitempty"`
328
+ VideoProductCategoryId *string `protobuf:"bytes,6,opt,name=video_product_category_id,json=videoProductCategoryId,proto3,oneof" json:"video_product_category_id,omitempty"`
329
+ unknownFields protoimpl.UnknownFields
330
+ sizeCache protoimpl.SizeCache
331
+ }
332
+
333
+ func (x *UpdateFileRequest) Reset() {
334
+ *x = UpdateFileRequest{}
335
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[6]
336
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
337
+ ms.StoreMessageInfo(mi)
338
+ }
339
+
340
+ func (x *UpdateFileRequest) String() string {
341
+ return protoimpl.X.MessageStringOf(x)
342
+ }
343
+
344
+ func (*UpdateFileRequest) ProtoMessage() {}
345
+
346
+ func (x *UpdateFileRequest) ProtoReflect() protoreflect.Message {
347
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[6]
348
+ if x != nil {
349
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
350
+ if ms.LoadMessageInfo() == nil {
351
+ ms.StoreMessageInfo(mi)
352
+ }
353
+ return ms
354
+ }
355
+ return mi.MessageOf(x)
356
+ }
357
+
358
+ // Deprecated: Use UpdateFileRequest.ProtoReflect.Descriptor instead.
359
+ func (*UpdateFileRequest) Descriptor() ([]byte, []int) {
360
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{6}
361
+ }
362
+
363
+ func (x *UpdateFileRequest) GetId() string {
364
+ if x != nil {
365
+ return x.Id
366
+ }
367
+ return ""
368
+ }
369
+
370
+ func (x *UpdateFileRequest) GetLineItemId() string {
371
+ if x != nil && x.LineItemId != nil {
372
+ return *x.LineItemId
373
+ }
374
+ return ""
375
+ }
376
+
377
+ func (x *UpdateFileRequest) GetVideoProductId() string {
378
+ if x != nil && x.VideoProductId != nil {
379
+ return *x.VideoProductId
380
+ }
381
+ return ""
382
+ }
383
+
384
+ func (x *UpdateFileRequest) GetVideoProductVariantId() string {
385
+ if x != nil && x.VideoProductVariantId != nil {
386
+ return *x.VideoProductVariantId
387
+ }
388
+ return ""
389
+ }
390
+
391
+ func (x *UpdateFileRequest) GetProductCategoryId() string {
392
+ if x != nil && x.ProductCategoryId != nil {
393
+ return *x.ProductCategoryId
394
+ }
395
+ return ""
396
+ }
397
+
398
+ func (x *UpdateFileRequest) GetVideoProductCategoryId() string {
399
+ if x != nil && x.VideoProductCategoryId != nil {
400
+ return *x.VideoProductCategoryId
401
+ }
402
+ return ""
403
+ }
404
+
405
+ type UpdateFileResponse struct {
406
+ state protoimpl.MessageState `protogen:"open.v1"`
407
+ unknownFields protoimpl.UnknownFields
408
+ sizeCache protoimpl.SizeCache
409
+ }
410
+
411
+ func (x *UpdateFileResponse) Reset() {
412
+ *x = UpdateFileResponse{}
413
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[7]
414
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
415
+ ms.StoreMessageInfo(mi)
416
+ }
417
+
418
+ func (x *UpdateFileResponse) String() string {
419
+ return protoimpl.X.MessageStringOf(x)
420
+ }
421
+
422
+ func (*UpdateFileResponse) ProtoMessage() {}
423
+
424
+ func (x *UpdateFileResponse) ProtoReflect() protoreflect.Message {
425
+ mi := &file_src_proto_files_v1_entities_file_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 UpdateFileResponse.ProtoReflect.Descriptor instead.
437
+ func (*UpdateFileResponse) Descriptor() ([]byte, []int) {
438
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{7}
439
+ }
440
+
441
+ type FileResponse struct {
442
+ state protoimpl.MessageState `protogen:"open.v1"`
443
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
444
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
445
+ Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
446
+ Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
447
+ Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
448
+ LineItemId string `protobuf:"bytes,6,opt,name=line_item_id,json=lineItemId,proto3" json:"line_item_id,omitempty"`
449
+ VideoProductId string `protobuf:"bytes,7,opt,name=video_product_id,json=videoProductId,proto3" json:"video_product_id,omitempty"`
450
+ VideoProductVariantId string `protobuf:"bytes,8,opt,name=video_product_variant_id,json=videoProductVariantId,proto3" json:"video_product_variant_id,omitempty"`
451
+ ProductCategoryId string `protobuf:"bytes,9,opt,name=product_category_id,json=productCategoryId,proto3" json:"product_category_id,omitempty"`
452
+ VideoProductCategoryId string `protobuf:"bytes,10,opt,name=video_product_category_id,json=videoProductCategoryId,proto3" json:"video_product_category_id,omitempty"`
453
+ unknownFields protoimpl.UnknownFields
454
+ sizeCache protoimpl.SizeCache
455
+ }
456
+
457
+ func (x *FileResponse) Reset() {
458
+ *x = FileResponse{}
459
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[8]
460
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
461
+ ms.StoreMessageInfo(mi)
462
+ }
463
+
464
+ func (x *FileResponse) String() string {
465
+ return protoimpl.X.MessageStringOf(x)
466
+ }
467
+
468
+ func (*FileResponse) ProtoMessage() {}
469
+
470
+ func (x *FileResponse) ProtoReflect() protoreflect.Message {
471
+ mi := &file_src_proto_files_v1_entities_file_proto_msgTypes[8]
472
+ if x != nil {
473
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
474
+ if ms.LoadMessageInfo() == nil {
475
+ ms.StoreMessageInfo(mi)
476
+ }
477
+ return ms
478
+ }
479
+ return mi.MessageOf(x)
480
+ }
481
+
482
+ // Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.
483
+ func (*FileResponse) Descriptor() ([]byte, []int) {
484
+ return file_src_proto_files_v1_entities_file_proto_rawDescGZIP(), []int{8}
485
+ }
486
+
487
+ func (x *FileResponse) GetId() string {
488
+ if x != nil {
489
+ return x.Id
490
+ }
491
+ return ""
492
+ }
493
+
494
+ func (x *FileResponse) GetName() string {
495
+ if x != nil {
496
+ return x.Name
497
+ }
498
+ return ""
499
+ }
500
+
501
+ func (x *FileResponse) GetPath() string {
502
+ if x != nil {
503
+ return x.Path
504
+ }
505
+ return ""
506
+ }
507
+
508
+ func (x *FileResponse) GetType() string {
509
+ if x != nil {
510
+ return x.Type
511
+ }
512
+ return ""
513
+ }
514
+
515
+ func (x *FileResponse) GetSource() string {
516
+ if x != nil {
517
+ return x.Source
518
+ }
519
+ return ""
520
+ }
521
+
522
+ func (x *FileResponse) GetLineItemId() string {
523
+ if x != nil {
524
+ return x.LineItemId
525
+ }
526
+ return ""
527
+ }
528
+
529
+ func (x *FileResponse) GetVideoProductId() string {
530
+ if x != nil {
531
+ return x.VideoProductId
532
+ }
533
+ return ""
534
+ }
535
+
536
+ func (x *FileResponse) GetVideoProductVariantId() string {
537
+ if x != nil {
538
+ return x.VideoProductVariantId
539
+ }
540
+ return ""
541
+ }
542
+
543
+ func (x *FileResponse) GetProductCategoryId() string {
544
+ if x != nil {
545
+ return x.ProductCategoryId
546
+ }
547
+ return ""
548
+ }
549
+
550
+ func (x *FileResponse) GetVideoProductCategoryId() string {
551
+ if x != nil {
552
+ return x.VideoProductCategoryId
553
+ }
554
+ return ""
555
+ }
556
+
557
+ var File_src_proto_files_v1_entities_file_proto protoreflect.FileDescriptor
558
+
559
+ const file_src_proto_files_v1_entities_file_proto_rawDesc = "" +
560
+ "\n" +
561
+ "&src/proto/files/v1/entities/file.proto\x1a\x1bbuf/validate/validate.proto\"\x93\x02\n" +
562
+ "\x10ListFilesRequest\x12\x1f\n" +
563
+ "\x06offset\x18\x01 \x01(\x05B\a\xbaH\x04\x1a\x02(\x00R\x06offset\x12\x1f\n" +
564
+ "\x05limit\x18\x02 \x01(\rB\t\xbaH\x06*\x04\x18d(\x01R\x05limit\x12\x1e\n" +
565
+ "\border_by\x18\x03 \x01(\tH\x00R\aorderBy\x88\x01\x01\x12\x1b\n" +
566
+ "\x06filter\x18\x04 \x01(\tH\x01R\x06filter\x88\x01\x01\x12!\n" +
567
+ "\tascending\x18\x05 \x01(\bH\x02R\tascending\x88\x01\x01\x12&\n" +
568
+ "\frequest_path\x18\x06 \x01(\tH\x03R\vrequestPath\x88\x01\x01B\v\n" +
569
+ "\t_order_byB\t\n" +
570
+ "\a_filterB\f\n" +
571
+ "\n" +
572
+ "_ascendingB\x0f\n" +
573
+ "\r_request_path\"8\n" +
574
+ "\x11ListFilesResponse\x12#\n" +
575
+ "\x05files\x18\x01 \x03(\v2\r.FileResponseR\x05files\" \n" +
576
+ "\x0eGetFileRequest\x12\x0e\n" +
577
+ "\x02id\x18\x01 \x01(\tR\x02id\"4\n" +
578
+ "\x0fGetFileResponse\x12!\n" +
579
+ "\x04file\x18\x01 \x01(\v2\r.FileResponseR\x04file\"#\n" +
580
+ "\x11DeleteFileRequest\x12\x0e\n" +
581
+ "\x02id\x18\x01 \x01(\tR\x02id\"\x14\n" +
582
+ "\x12DeleteFileResponse\"\xa5\x03\n" +
583
+ "\x11UpdateFileRequest\x12\x0e\n" +
584
+ "\x02id\x18\x01 \x01(\tR\x02id\x12%\n" +
585
+ "\fline_item_id\x18\x02 \x01(\tH\x00R\n" +
586
+ "lineItemId\x88\x01\x01\x12-\n" +
587
+ "\x10video_product_id\x18\x03 \x01(\tH\x01R\x0evideoProductId\x88\x01\x01\x12<\n" +
588
+ "\x18video_product_variant_id\x18\x04 \x01(\tH\x02R\x15videoProductVariantId\x88\x01\x01\x123\n" +
589
+ "\x13product_category_id\x18\x05 \x01(\tH\x03R\x11productCategoryId\x88\x01\x01\x12>\n" +
590
+ "\x19video_product_category_id\x18\x06 \x01(\tH\x04R\x16videoProductCategoryId\x88\x01\x01B\x0f\n" +
591
+ "\r_line_item_idB\x13\n" +
592
+ "\x11_video_product_idB\x1b\n" +
593
+ "\x19_video_product_variant_idB\x16\n" +
594
+ "\x14_product_category_idB\x1c\n" +
595
+ "\x1a_video_product_category_id\"\x14\n" +
596
+ "\x12UpdateFileResponse\"\xe2\x02\n" +
597
+ "\fFileResponse\x12\x0e\n" +
598
+ "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
599
+ "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
600
+ "\x04path\x18\x03 \x01(\tR\x04path\x12\x12\n" +
601
+ "\x04type\x18\x04 \x01(\tR\x04type\x12\x16\n" +
602
+ "\x06source\x18\x05 \x01(\tR\x06source\x12 \n" +
603
+ "\fline_item_id\x18\x06 \x01(\tR\n" +
604
+ "lineItemId\x12(\n" +
605
+ "\x10video_product_id\x18\a \x01(\tR\x0evideoProductId\x127\n" +
606
+ "\x18video_product_variant_id\x18\b \x01(\tR\x15videoProductVariantId\x12.\n" +
607
+ "\x13product_category_id\x18\t \x01(\tR\x11productCategoryId\x129\n" +
608
+ "\x19video_product_category_id\x18\n" +
609
+ " \x01(\tR\x16videoProductCategoryIdBEB\tFileProtoP\x01Z6paakd.com/packages/api/gen/src/proto/files/v1/entitiesb\x06proto3"
610
+
611
+ var (
612
+ file_src_proto_files_v1_entities_file_proto_rawDescOnce sync.Once
613
+ file_src_proto_files_v1_entities_file_proto_rawDescData []byte
614
+ )
615
+
616
+ func file_src_proto_files_v1_entities_file_proto_rawDescGZIP() []byte {
617
+ file_src_proto_files_v1_entities_file_proto_rawDescOnce.Do(func() {
618
+ file_src_proto_files_v1_entities_file_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_files_v1_entities_file_proto_rawDesc), len(file_src_proto_files_v1_entities_file_proto_rawDesc)))
619
+ })
620
+ return file_src_proto_files_v1_entities_file_proto_rawDescData
621
+ }
622
+
623
+ var file_src_proto_files_v1_entities_file_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
624
+ var file_src_proto_files_v1_entities_file_proto_goTypes = []any{
625
+ (*ListFilesRequest)(nil), // 0: ListFilesRequest
626
+ (*ListFilesResponse)(nil), // 1: ListFilesResponse
627
+ (*GetFileRequest)(nil), // 2: GetFileRequest
628
+ (*GetFileResponse)(nil), // 3: GetFileResponse
629
+ (*DeleteFileRequest)(nil), // 4: DeleteFileRequest
630
+ (*DeleteFileResponse)(nil), // 5: DeleteFileResponse
631
+ (*UpdateFileRequest)(nil), // 6: UpdateFileRequest
632
+ (*UpdateFileResponse)(nil), // 7: UpdateFileResponse
633
+ (*FileResponse)(nil), // 8: FileResponse
634
+ }
635
+ var file_src_proto_files_v1_entities_file_proto_depIdxs = []int32{
636
+ 8, // 0: ListFilesResponse.files:type_name -> FileResponse
637
+ 8, // 1: GetFileResponse.file:type_name -> FileResponse
638
+ 2, // [2:2] is the sub-list for method output_type
639
+ 2, // [2:2] is the sub-list for method input_type
640
+ 2, // [2:2] is the sub-list for extension type_name
641
+ 2, // [2:2] is the sub-list for extension extendee
642
+ 0, // [0:2] is the sub-list for field type_name
643
+ }
644
+
645
+ func init() { file_src_proto_files_v1_entities_file_proto_init() }
646
+ func file_src_proto_files_v1_entities_file_proto_init() {
647
+ if File_src_proto_files_v1_entities_file_proto != nil {
648
+ return
649
+ }
650
+ file_src_proto_files_v1_entities_file_proto_msgTypes[0].OneofWrappers = []any{}
651
+ file_src_proto_files_v1_entities_file_proto_msgTypes[6].OneofWrappers = []any{}
652
+ type x struct{}
653
+ out := protoimpl.TypeBuilder{
654
+ File: protoimpl.DescBuilder{
655
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
656
+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_files_v1_entities_file_proto_rawDesc), len(file_src_proto_files_v1_entities_file_proto_rawDesc)),
657
+ NumEnums: 0,
658
+ NumMessages: 9,
659
+ NumExtensions: 0,
660
+ NumServices: 0,
661
+ },
662
+ GoTypes: file_src_proto_files_v1_entities_file_proto_goTypes,
663
+ DependencyIndexes: file_src_proto_files_v1_entities_file_proto_depIdxs,
664
+ MessageInfos: file_src_proto_files_v1_entities_file_proto_msgTypes,
665
+ }.Build()
666
+ File_src_proto_files_v1_entities_file_proto = out.File
667
+ file_src_proto_files_v1_entities_file_proto_goTypes = nil
668
+ file_src_proto_files_v1_entities_file_proto_depIdxs = nil
669
+ }