@paakd/api 0.0.3 → 0.0.5

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 (124) hide show
  1. package/dist/gen/src/proto/files/v1/entities/file_pb.d.ts +199 -0
  2. package/dist/gen/src/proto/files/v1/entities/file_pb.d.ts.map +1 -0
  3. package/dist/gen/src/proto/files/v1/entities/file_pb.js +77 -0
  4. package/dist/gen/src/proto/files/v1/service_pb.d.ts +44 -0
  5. package/dist/gen/src/proto/files/v1/service_pb.d.ts.map +1 -0
  6. package/dist/gen/src/proto/files/v1/service_pb.js +18 -0
  7. package/dist/gen/src/proto/promotions/v1/entities/campaign_pb.d.ts +391 -0
  8. package/dist/gen/src/proto/promotions/v1/entities/campaign_pb.d.ts.map +1 -0
  9. package/dist/gen/src/proto/promotions/v1/entities/campaign_pb.js +140 -0
  10. package/dist/gen/src/proto/promotions/v1/service_pb.d.ts +68 -0
  11. package/dist/gen/src/proto/promotions/v1/service_pb.d.ts.map +1 -0
  12. package/dist/gen/src/proto/promotions/v1/service_pb.js +18 -0
  13. package/dist/gen/src/proto/stocknodes/v1/entities/stocknode_pb.d.ts +508 -0
  14. package/dist/gen/src/proto/stocknodes/v1/entities/stocknode_pb.d.ts.map +1 -0
  15. package/dist/gen/src/proto/stocknodes/v1/entities/stocknode_pb.js +150 -0
  16. package/dist/gen/src/proto/stocknodes/v1/service_pb.d.ts +68 -0
  17. package/dist/gen/src/proto/stocknodes/v1/service_pb.d.ts.map +1 -0
  18. package/dist/gen/src/proto/stocknodes/v1/service_pb.js +18 -0
  19. package/dist/src/index.d.ts +828 -5
  20. package/dist/src/index.d.ts.map +1 -1
  21. package/dist/src/index.js +48 -5
  22. package/dist/src/interceptors.d.ts +1 -1
  23. package/dist/src/interceptors.d.ts.map +1 -1
  24. package/dist/src/interceptors.js +2 -2
  25. package/package.json +8 -10
  26. package/buf/validate/validate_pb.ts +0 -5001
  27. package/dist/src/address.d.ts +0 -53
  28. package/dist/src/address.d.ts.map +0 -1
  29. package/dist/src/address.js +0 -233
  30. package/dist/src/address.spec.d.ts +0 -2
  31. package/dist/src/address.spec.d.ts.map +0 -1
  32. package/dist/src/address.spec.js +0 -488
  33. package/dist/src/auth.d.ts +0 -27
  34. package/dist/src/auth.d.ts.map +0 -1
  35. package/dist/src/auth.js +0 -155
  36. package/dist/src/auth.spec.d.ts +0 -2
  37. package/dist/src/auth.spec.d.ts.map +0 -1
  38. package/dist/src/auth.spec.js +0 -582
  39. package/dist/src/compressor/brotli.d.ts +0 -3
  40. package/dist/src/compressor/brotli.d.ts.map +0 -1
  41. package/dist/src/compressor/brotli.js +0 -30
  42. package/dist/src/policies.d.ts +0 -217
  43. package/dist/src/policies.d.ts.map +0 -1
  44. package/dist/src/policies.js +0 -322
  45. package/dist/src/policies.spec.d.ts +0 -2
  46. package/dist/src/policies.spec.d.ts.map +0 -1
  47. package/dist/src/policies.spec.js +0 -463
  48. package/dist/src/products.d.ts +0 -39
  49. package/dist/src/products.d.ts.map +0 -1
  50. package/dist/src/products.js +0 -95
  51. package/dist/src/products.spec.d.ts +0 -2
  52. package/dist/src/products.spec.d.ts.map +0 -1
  53. package/dist/src/products.spec.js +0 -519
  54. package/dist/src/profile.d.ts +0 -62
  55. package/dist/src/profile.d.ts.map +0 -1
  56. package/dist/src/profile.js +0 -151
  57. package/dist/src/profile.spec.d.ts +0 -2
  58. package/dist/src/profile.spec.d.ts.map +0 -1
  59. package/dist/src/profile.spec.js +0 -475
  60. package/dist/src/registration.d.ts +0 -60
  61. package/dist/src/registration.d.ts.map +0 -1
  62. package/dist/src/registration.js +0 -147
  63. package/dist/src/test-utils.d.ts +0 -87
  64. package/dist/src/test-utils.d.ts.map +0 -1
  65. package/dist/src/test-utils.js +0 -132
  66. package/gen/buf/validate/validate_pb.ts +0 -4799
  67. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
  68. package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
  69. package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
  70. package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
  71. package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
  72. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
  73. package/gen/src/proto/auth/v1/service.pb.go +0 -119
  74. package/gen/src/proto/auth/v1/service_pb.ts +0 -152
  75. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
  76. package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
  77. package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
  78. package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
  79. package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
  80. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
  81. package/gen/src/proto/customers/v1/service.pb.go +0 -110
  82. package/gen/src/proto/customers/v1/service_pb.ts +0 -121
  83. package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
  84. package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
  85. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
  86. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
  87. package/gen/src/proto/files/v1/service.pb.go +0 -85
  88. package/gen/src/proto/files/v1/service_pb.ts +0 -65
  89. package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
  90. package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
  91. package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
  92. package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
  93. package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
  94. package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
  95. package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
  96. package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
  97. package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
  98. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
  99. package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
  100. package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
  101. package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
  102. package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
  103. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
  104. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
  105. package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
  106. package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
  107. package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
  108. package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
  109. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
  110. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
  111. package/gen/src/proto/products/v1/service.pb.go +0 -250
  112. package/gen/src/proto/products/v1/service_pb.ts +0 -429
  113. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
  114. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
  115. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
  116. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
  117. package/gen/src/proto/promotions/v1/service.pb.go +0 -98
  118. package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
  119. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
  120. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
  121. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
  122. package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
  123. package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
  124. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
@@ -1,199 +0,0 @@
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)
@@ -1,206 +0,0 @@
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
- }
@@ -1,74 +0,0 @@
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)