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