@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,199 @@
1
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
2
+ // @generated from file src/proto/products/v1/entities/product/create.proto (syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2'
6
+ import { fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2'
7
+ import { file_buf_validate_validate } from '../../../../../../buf/validate/validate_pb'
8
+ import type {
9
+ ProductOption,
10
+ ProductResponse,
11
+ ProductStatus,
12
+ Variant,
13
+ } from './shared_pb'
14
+ import { file_src_proto_products_v1_entities_product_shared } from './shared_pb'
15
+ import type { Message } from '@bufbuild/protobuf'
16
+
17
+ /**
18
+ * Describes the file src/proto/products/v1/entities/product/create.proto.
19
+ */
20
+ export const file_src_proto_products_v1_entities_product_create: GenFile =
21
+ /*@__PURE__*/
22
+ fileDesc(
23
+ 'CjNzcmMvcHJvdG8vcHJvZHVjdHMvdjEvZW50aXRpZXMvcHJvZHVjdC9jcmVhdGUucHJvdG8i8QcKFENyZWF0ZVByb2R1Y3RSZXF1ZXN0Eg0KBXRpdGxlGAEgASgJEhUKCHN1YnRpdGxlGAIgASgJSACIAQESGAoLZGVzY3JpcHRpb24YAyABKAlIAYgBARIRCgRzbHVnGAQgASgJSAKIAQESGQoMaXNfcHVibGlzaGVkGAUgASgISAOIAQESGAoLaXNfZ2lmdGNhcmQYBiABKAhIBIgBARIWCgl0aHVtYm5haWwYByABKAlIBYgBARIjCgZzdGF0dXMYCCABKA4yDi5Qcm9kdWN0U3RhdHVzSAaIAQESHAoPcHJvZHVjdF90eXBlX2lkGAkgASgJSAeIAQESFQoNY29sbGVjdGlvbl9pZBgKIAMoCRIUCgxjYXRlZ29yeV9pZHMYCyADKAkSEQoJaW1hZ2VfaWRzGAwgAygJEg8KB3RhZ19pZHMYDSADKAkSGgoIdmFyaWFudHMYDiADKAsyCC5WYXJpYW50Eh8KB29wdGlvbnMYDyADKAsyDi5Qcm9kdWN0T3B0aW9uEjUKCG1ldGFkYXRhGBAgAygLMiMuQ3JlYXRlUHJvZHVjdFJlcXVlc3QuTWV0YWRhdGFFbnRyeRITCgZ3ZWlnaHQYESABKAJICIgBARITCgZsZW5ndGgYEiABKAJICYgBARISCgV3aWR0aBgTIAEoAkgKiAEBEhMKBmhlaWdodBgUIAEoAkgLiAEBEhQKB2hzX2NvZGUYFSABKAlIDIgBARIbCg5vcmlnaW5fY291bnRyeRgWIAEoCUgNiAEBEhwKD21hbnVmYWN0dXJlcl9pZBgXIAEoCUgOiAEBEhcKCnJldHVybmFibGUYGCABKAhID4gBARIZChFzYWxlc19jaGFubmVsX2lkcxgZIAMoCRIVCg1hdHRyaWJ1dGVfaWRzGBogAygJEhMKC2V4dGVybmFsX2lkGBsgASgJEhsKE3NoaXBwaW5nX3Byb2ZpbGVfaWQYHCABKAkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgsKCV9zdWJ0aXRsZUIOCgxfZGVzY3JpcHRpb25CBwoFX3NsdWdCDwoNX2lzX3B1Ymxpc2hlZEIOCgxfaXNfZ2lmdGNhcmRCDAoKX3RodW1ibmFpbEIJCgdfc3RhdHVzQhIKEF9wcm9kdWN0X3R5cGVfaWRCCQoHX3dlaWdodEIJCgdfbGVuZ3RoQggKBl93aWR0aEIJCgdfaGVpZ2h0QgoKCF9oc19jb2RlQhEKD19vcmlnaW5fY291bnRyeUISChBfbWFudWZhY3R1cmVyX2lkQg0KC19yZXR1cm5hYmxlIjoKFUNyZWF0ZVByb2R1Y3RSZXNwb25zZRIhCgdwcm9kdWN0GAEgASgLMhAuUHJvZHVjdFJlc3BvbnNlQlJCC0NyZWF0ZVByb3RvUAFaQXBhYWtkLmNvbS9wYWNrYWdlcy9hcGkvZ2VuL3NyYy9wcm90by9wcm9kdWN0cy92MS9lbnRpdGllcy9wcm9kdWN0YgZwcm90bzM',
24
+ [
25
+ file_buf_validate_validate,
26
+ file_src_proto_products_v1_entities_product_shared,
27
+ ]
28
+ )
29
+
30
+ /**
31
+ * @generated from message CreateProductRequest
32
+ */
33
+ export type CreateProductRequest = Message<'CreateProductRequest'> & {
34
+ /**
35
+ * @generated from field: string title = 1;
36
+ */
37
+ title: string
38
+
39
+ /**
40
+ * @generated from field: optional string subtitle = 2;
41
+ */
42
+ subtitle?: string
43
+
44
+ /**
45
+ * @generated from field: optional string description = 3;
46
+ */
47
+ description?: string
48
+
49
+ /**
50
+ * @generated from field: optional string slug = 4;
51
+ */
52
+ slug?: string
53
+
54
+ /**
55
+ * @generated from field: optional bool is_published = 5;
56
+ */
57
+ isPublished?: boolean
58
+
59
+ /**
60
+ * @generated from field: optional bool is_giftcard = 6;
61
+ */
62
+ isGiftcard?: boolean
63
+
64
+ /**
65
+ * @generated from field: optional string thumbnail = 7;
66
+ */
67
+ thumbnail?: string
68
+
69
+ /**
70
+ * @generated from field: optional ProductStatus status = 8;
71
+ */
72
+ status?: ProductStatus
73
+
74
+ /**
75
+ * @generated from field: optional string product_type_id = 9;
76
+ */
77
+ productTypeId?: string
78
+
79
+ /**
80
+ * @generated from field: repeated string collection_id = 10;
81
+ */
82
+ collectionId: string[]
83
+
84
+ /**
85
+ * @generated from field: repeated string category_ids = 11;
86
+ */
87
+ categoryIds: string[]
88
+
89
+ /**
90
+ * @generated from field: repeated string image_ids = 12;
91
+ */
92
+ imageIds: string[]
93
+
94
+ /**
95
+ * @generated from field: repeated string tag_ids = 13;
96
+ */
97
+ tagIds: string[]
98
+
99
+ /**
100
+ * @generated from field: repeated Variant variants = 14;
101
+ */
102
+ variants: Variant[]
103
+
104
+ /**
105
+ * @generated from field: repeated ProductOption options = 15;
106
+ */
107
+ options: ProductOption[]
108
+
109
+ /**
110
+ * @generated from field: map<string, string> metadata = 16;
111
+ */
112
+ metadata: { [key: string]: string }
113
+
114
+ /**
115
+ * @generated from field: optional float weight = 17;
116
+ */
117
+ weight?: number
118
+
119
+ /**
120
+ * @generated from field: optional float length = 18;
121
+ */
122
+ length?: number
123
+
124
+ /**
125
+ * @generated from field: optional float width = 19;
126
+ */
127
+ width?: number
128
+
129
+ /**
130
+ * @generated from field: optional float height = 20;
131
+ */
132
+ height?: number
133
+
134
+ /**
135
+ * @generated from field: optional string hs_code = 21;
136
+ */
137
+ hsCode?: string
138
+
139
+ /**
140
+ * @generated from field: optional string origin_country = 22;
141
+ */
142
+ originCountry?: string
143
+
144
+ /**
145
+ * @generated from field: optional string manufacturer_id = 23;
146
+ */
147
+ manufacturerId?: string
148
+
149
+ /**
150
+ * @generated from field: optional bool returnable = 24;
151
+ */
152
+ returnable?: boolean
153
+
154
+ /**
155
+ * @generated from field: repeated string sales_channel_ids = 25;
156
+ */
157
+ salesChannelIds: string[]
158
+
159
+ /**
160
+ * @generated from field: repeated string attribute_ids = 26;
161
+ */
162
+ attributeIds: string[]
163
+
164
+ /**
165
+ * @generated from field: string external_id = 27;
166
+ */
167
+ externalId: string
168
+
169
+ /**
170
+ * @generated from field: string shipping_profile_id = 28;
171
+ */
172
+ shippingProfileId: string
173
+ }
174
+
175
+ /**
176
+ * Describes the message CreateProductRequest.
177
+ * Use `create(CreateProductRequestSchema)` to create a new message.
178
+ */
179
+ export const CreateProductRequestSchema: GenMessage<CreateProductRequest> =
180
+ /*@__PURE__*/
181
+ messageDesc(file_src_proto_products_v1_entities_product_create, 0)
182
+
183
+ /**
184
+ * @generated from message CreateProductResponse
185
+ */
186
+ export type CreateProductResponse = Message<'CreateProductResponse'> & {
187
+ /**
188
+ * @generated from field: ProductResponse product = 1;
189
+ */
190
+ product?: ProductResponse
191
+ }
192
+
193
+ /**
194
+ * Describes the message CreateProductResponse.
195
+ * Use `create(CreateProductResponseSchema)` to create a new message.
196
+ */
197
+ export const CreateProductResponseSchema: GenMessage<CreateProductResponse> =
198
+ /*@__PURE__*/
199
+ messageDesc(file_src_proto_products_v1_entities_product_create, 1)
@@ -0,0 +1,206 @@
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/product/option.proto
6
+
7
+ package product
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 CreateOptionRequest struct {
26
+ state protoimpl.MessageState `protogen:"open.v1"`
27
+ ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
28
+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
29
+ Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
30
+ Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
31
+ unknownFields protoimpl.UnknownFields
32
+ sizeCache protoimpl.SizeCache
33
+ }
34
+
35
+ func (x *CreateOptionRequest) Reset() {
36
+ *x = CreateOptionRequest{}
37
+ mi := &file_src_proto_products_v1_entities_product_option_proto_msgTypes[0]
38
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39
+ ms.StoreMessageInfo(mi)
40
+ }
41
+
42
+ func (x *CreateOptionRequest) String() string {
43
+ return protoimpl.X.MessageStringOf(x)
44
+ }
45
+
46
+ func (*CreateOptionRequest) ProtoMessage() {}
47
+
48
+ func (x *CreateOptionRequest) ProtoReflect() protoreflect.Message {
49
+ mi := &file_src_proto_products_v1_entities_product_option_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 CreateOptionRequest.ProtoReflect.Descriptor instead.
61
+ func (*CreateOptionRequest) Descriptor() ([]byte, []int) {
62
+ return file_src_proto_products_v1_entities_product_option_proto_rawDescGZIP(), []int{0}
63
+ }
64
+
65
+ func (x *CreateOptionRequest) GetProductId() string {
66
+ if x != nil {
67
+ return x.ProductId
68
+ }
69
+ return ""
70
+ }
71
+
72
+ func (x *CreateOptionRequest) GetTitle() string {
73
+ if x != nil {
74
+ return x.Title
75
+ }
76
+ return ""
77
+ }
78
+
79
+ func (x *CreateOptionRequest) GetValues() []string {
80
+ if x != nil {
81
+ return x.Values
82
+ }
83
+ return nil
84
+ }
85
+
86
+ func (x *CreateOptionRequest) GetMetadata() map[string]string {
87
+ if x != nil {
88
+ return x.Metadata
89
+ }
90
+ return nil
91
+ }
92
+
93
+ type CreateOptionResponse struct {
94
+ state protoimpl.MessageState `protogen:"open.v1"`
95
+ Product *ProductResponse `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
96
+ unknownFields protoimpl.UnknownFields
97
+ sizeCache protoimpl.SizeCache
98
+ }
99
+
100
+ func (x *CreateOptionResponse) Reset() {
101
+ *x = CreateOptionResponse{}
102
+ mi := &file_src_proto_products_v1_entities_product_option_proto_msgTypes[1]
103
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104
+ ms.StoreMessageInfo(mi)
105
+ }
106
+
107
+ func (x *CreateOptionResponse) String() string {
108
+ return protoimpl.X.MessageStringOf(x)
109
+ }
110
+
111
+ func (*CreateOptionResponse) ProtoMessage() {}
112
+
113
+ func (x *CreateOptionResponse) ProtoReflect() protoreflect.Message {
114
+ mi := &file_src_proto_products_v1_entities_product_option_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 CreateOptionResponse.ProtoReflect.Descriptor instead.
126
+ func (*CreateOptionResponse) Descriptor() ([]byte, []int) {
127
+ return file_src_proto_products_v1_entities_product_option_proto_rawDescGZIP(), []int{1}
128
+ }
129
+
130
+ func (x *CreateOptionResponse) GetProduct() *ProductResponse {
131
+ if x != nil {
132
+ return x.Product
133
+ }
134
+ return nil
135
+ }
136
+
137
+ var File_src_proto_products_v1_entities_product_option_proto protoreflect.FileDescriptor
138
+
139
+ const file_src_proto_products_v1_entities_product_option_proto_rawDesc = "" +
140
+ "\n" +
141
+ "3src/proto/products/v1/entities/product/option.proto\x1a\x1bbuf/validate/validate.proto\x1a3src/proto/products/v1/entities/product/shared.proto\"\xdf\x01\n" +
142
+ "\x13CreateOptionRequest\x12\x1d\n" +
143
+ "\n" +
144
+ "product_id\x18\x01 \x01(\tR\tproductId\x12\x14\n" +
145
+ "\x05title\x18\x02 \x01(\tR\x05title\x12\x16\n" +
146
+ "\x06values\x18\x03 \x03(\tR\x06values\x12>\n" +
147
+ "\bmetadata\x18\x04 \x03(\v2\".CreateOptionRequest.MetadataEntryR\bmetadata\x1a;\n" +
148
+ "\rMetadataEntry\x12\x10\n" +
149
+ "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
150
+ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"B\n" +
151
+ "\x14CreateOptionResponse\x12*\n" +
152
+ "\aproduct\x18\x01 \x01(\v2\x10.ProductResponseR\aproductBRB\vOptionProtoP\x01ZApaakd.com/packages/api/gen/src/proto/products/v1/entities/productb\x06proto3"
153
+
154
+ var (
155
+ file_src_proto_products_v1_entities_product_option_proto_rawDescOnce sync.Once
156
+ file_src_proto_products_v1_entities_product_option_proto_rawDescData []byte
157
+ )
158
+
159
+ func file_src_proto_products_v1_entities_product_option_proto_rawDescGZIP() []byte {
160
+ file_src_proto_products_v1_entities_product_option_proto_rawDescOnce.Do(func() {
161
+ file_src_proto_products_v1_entities_product_option_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_option_proto_rawDesc), len(file_src_proto_products_v1_entities_product_option_proto_rawDesc)))
162
+ })
163
+ return file_src_proto_products_v1_entities_product_option_proto_rawDescData
164
+ }
165
+
166
+ var file_src_proto_products_v1_entities_product_option_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
167
+ var file_src_proto_products_v1_entities_product_option_proto_goTypes = []any{
168
+ (*CreateOptionRequest)(nil), // 0: CreateOptionRequest
169
+ (*CreateOptionResponse)(nil), // 1: CreateOptionResponse
170
+ nil, // 2: CreateOptionRequest.MetadataEntry
171
+ (*ProductResponse)(nil), // 3: ProductResponse
172
+ }
173
+ var file_src_proto_products_v1_entities_product_option_proto_depIdxs = []int32{
174
+ 2, // 0: CreateOptionRequest.metadata:type_name -> CreateOptionRequest.MetadataEntry
175
+ 3, // 1: CreateOptionResponse.product:type_name -> ProductResponse
176
+ 2, // [2:2] is the sub-list for method output_type
177
+ 2, // [2:2] is the sub-list for method input_type
178
+ 2, // [2:2] is the sub-list for extension type_name
179
+ 2, // [2:2] is the sub-list for extension extendee
180
+ 0, // [0:2] is the sub-list for field type_name
181
+ }
182
+
183
+ func init() { file_src_proto_products_v1_entities_product_option_proto_init() }
184
+ func file_src_proto_products_v1_entities_product_option_proto_init() {
185
+ if File_src_proto_products_v1_entities_product_option_proto != nil {
186
+ return
187
+ }
188
+ file_src_proto_products_v1_entities_product_shared_proto_init()
189
+ type x struct{}
190
+ out := protoimpl.TypeBuilder{
191
+ File: protoimpl.DescBuilder{
192
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
193
+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_option_proto_rawDesc), len(file_src_proto_products_v1_entities_product_option_proto_rawDesc)),
194
+ NumEnums: 0,
195
+ NumMessages: 3,
196
+ NumExtensions: 0,
197
+ NumServices: 0,
198
+ },
199
+ GoTypes: file_src_proto_products_v1_entities_product_option_proto_goTypes,
200
+ DependencyIndexes: file_src_proto_products_v1_entities_product_option_proto_depIdxs,
201
+ MessageInfos: file_src_proto_products_v1_entities_product_option_proto_msgTypes,
202
+ }.Build()
203
+ File_src_proto_products_v1_entities_product_option_proto = out.File
204
+ file_src_proto_products_v1_entities_product_option_proto_goTypes = nil
205
+ file_src_proto_products_v1_entities_product_option_proto_depIdxs = nil
206
+ }
@@ -0,0 +1,74 @@
1
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
2
+ // @generated from file src/proto/products/v1/entities/product/option.proto (syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2'
6
+ import { fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2'
7
+ import { file_buf_validate_validate } from '../../../../../../buf/validate/validate_pb'
8
+ import type { ProductResponse } from './shared_pb'
9
+ import { file_src_proto_products_v1_entities_product_shared } from './shared_pb'
10
+ import type { Message } from '@bufbuild/protobuf'
11
+
12
+ /**
13
+ * Describes the file src/proto/products/v1/entities/product/option.proto.
14
+ */
15
+ export const file_src_proto_products_v1_entities_product_option: GenFile =
16
+ /*@__PURE__*/
17
+ fileDesc(
18
+ 'CjNzcmMvcHJvdG8vcHJvZHVjdHMvdjEvZW50aXRpZXMvcHJvZHVjdC9vcHRpb24ucHJvdG8irwEKE0NyZWF0ZU9wdGlvblJlcXVlc3QSEgoKcHJvZHVjdF9pZBgBIAEoCRINCgV0aXRsZRgCIAEoCRIOCgZ2YWx1ZXMYAyADKAkSNAoIbWV0YWRhdGEYBCADKAsyIi5DcmVhdGVPcHRpb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIjkKFENyZWF0ZU9wdGlvblJlc3BvbnNlEiEKB3Byb2R1Y3QYASABKAsyEC5Qcm9kdWN0UmVzcG9uc2VCUkILT3B0aW9uUHJvdG9QAVpBcGFha2QuY29tL3BhY2thZ2VzL2FwaS9nZW4vc3JjL3Byb3RvL3Byb2R1Y3RzL3YxL2VudGl0aWVzL3Byb2R1Y3RiBnByb3RvMw',
19
+ [
20
+ file_buf_validate_validate,
21
+ file_src_proto_products_v1_entities_product_shared,
22
+ ]
23
+ )
24
+
25
+ /**
26
+ * @generated from message CreateOptionRequest
27
+ */
28
+ export type CreateOptionRequest = Message<'CreateOptionRequest'> & {
29
+ /**
30
+ * @generated from field: string product_id = 1;
31
+ */
32
+ productId: string
33
+
34
+ /**
35
+ * @generated from field: string title = 2;
36
+ */
37
+ title: string
38
+
39
+ /**
40
+ * @generated from field: repeated string values = 3;
41
+ */
42
+ values: string[]
43
+
44
+ /**
45
+ * @generated from field: map<string, string> metadata = 4;
46
+ */
47
+ metadata: { [key: string]: string }
48
+ }
49
+
50
+ /**
51
+ * Describes the message CreateOptionRequest.
52
+ * Use `create(CreateOptionRequestSchema)` to create a new message.
53
+ */
54
+ export const CreateOptionRequestSchema: GenMessage<CreateOptionRequest> =
55
+ /*@__PURE__*/
56
+ messageDesc(file_src_proto_products_v1_entities_product_option, 0)
57
+
58
+ /**
59
+ * @generated from message CreateOptionResponse
60
+ */
61
+ export type CreateOptionResponse = Message<'CreateOptionResponse'> & {
62
+ /**
63
+ * @generated from field: ProductResponse product = 1;
64
+ */
65
+ product?: ProductResponse
66
+ }
67
+
68
+ /**
69
+ * Describes the message CreateOptionResponse.
70
+ * Use `create(CreateOptionResponseSchema)` to create a new message.
71
+ */
72
+ export const CreateOptionResponseSchema: GenMessage<CreateOptionResponse> =
73
+ /*@__PURE__*/
74
+ messageDesc(file_src_proto_products_v1_entities_product_option, 1)