@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,629 +0,0 @@
1
- // @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
2
- // @generated from file src/proto/products/v1/entities/variant.proto (syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenEnum, GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2'
6
- import { enumDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2'
7
- import { file_buf_validate_validate } from '../../../../../buf/validate/validate_pb'
8
- import type { ProductResponse, Variant } from './product/shared_pb'
9
- import { file_src_proto_products_v1_entities_product_shared } from './product/shared_pb'
10
- import type { Message } from '@bufbuild/protobuf'
11
-
12
- /**
13
- * Describes the file src/proto/products/v1/entities/variant.proto.
14
- */
15
- export const file_src_proto_products_v1_entities_variant: GenFile =
16
- /*@__PURE__*/
17
- fileDesc(
18
- 'CixzcmMvcHJvdG8vcHJvZHVjdHMvdjEvZW50aXRpZXMvdmFyaWFudC5wcm90byJ9CiJBc3NvY2lhdGVWYXJpYW50VG9JbnZlbnRvcnlSZXF1ZXN0EhIKCnZhcmlhbnRfaWQYASABKAkSFAoMaW52ZW50b3J5X2lkGAIgASgJEhIKCnByb2R1Y3RfaWQYAyABKAkSGQoRcmVxdWlyZWRfcXVhbnRpdHkYBCABKAUiQAojQXNzb2NpYXRlVmFyaWFudFRvSW52ZW50b3J5UmVzcG9uc2USGQoHdmFyaWFudBgBIAEoCzIILlZhcmlhbnQivwoKFENyZWF0ZVZhcmlhbnRSZXF1ZXN0EhIKCnByb2R1Y3RfaWQYASABKAkSEAoDc2t1GAIgASgJSACIAQESDQoFdGl0bGUYAyABKAkSEAoDZWFuGAQgASgJSAGIAQESEAoDdXBjGAUgASgJSAKIAQESFAoHYmFyY29kZRgGIAEoCUgDiAEBEhQKB2hzX2NvZGUYByABKAlIBIgBARIVCghtaWRfY29kZRgIIAEoCUgFiAEBEhwKD2FsbG93X2JhY2tvcmRlchgJIAEoCEgGiAEBEiEKFGlzX21hbmFnZWRfaW52ZW50b3J5GAogASgISAeIAQESEQoEcmFuaxgLIAEoBUgIiAEBEhMKBndlaWdodBgMIAEoAkgJiAEBEhMKBmx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5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQg0KC19wcm9kdWN0X2lkQg0KC192YXJpYW50X2lkQggKBl90aXRsZUIGCgRfZWFuQgYKBF91cGNCCgoIX2JhcmNvZGVCCgoIX2hzX2NvZGVCCwoJX21pZF9jb2RlQhIKEF9hbGxvd19iYWNrb3JkZXJCFwoVX2lzX21hbmFnZWRfaW52ZW50b3J5QgcKBV9yYW5rQgkKB193ZWlnaHRCCQoHX2xlbmd0aEIJCgdfaGVpZ2h0QggKBl93aWR0aEIRCg9fb3JpZ2luX2NvdW50cnlCCwoJX21hdGVyaWFsIjoKFVVwZGF0ZVZhcmlhbnRSZXNwb25zZRIhCgdwcm9kdWN0GAEgASgLMhAuUHJvZHVjdFJlc3BvbnNlQktCDFZhcmlhbnRQcm90b1ABWjlwYWFrZC5jb20vcGFja2FnZXMvYXBpL2dlbi9zcmMvcHJvdG8vcHJvZHVjdHMvdjEvZW50aXRpZXNiBnByb3RvMw',
19
- [
20
- file_buf_validate_validate,
21
- file_src_proto_products_v1_entities_product_shared,
22
- ]
23
- )
24
-
25
- /**
26
- * @generated from message AssociateVariantToInventoryRequest
27
- */
28
- export type AssociateVariantToInventoryRequest =
29
- Message<'AssociateVariantToInventoryRequest'> & {
30
- /**
31
- * @generated from field: string variant_id = 1;
32
- */
33
- variantId: string
34
-
35
- /**
36
- * @generated from field: string inventory_id = 2;
37
- */
38
- inventoryId: string
39
-
40
- /**
41
- * @generated from field: string product_id = 3;
42
- */
43
- productId: string
44
-
45
- /**
46
- * @generated from field: int32 required_quantity = 4;
47
- */
48
- requiredQuantity: number
49
- }
50
-
51
- /**
52
- * Describes the message AssociateVariantToInventoryRequest.
53
- * Use `create(AssociateVariantToInventoryRequestSchema)` to create a new message.
54
- */
55
- export const AssociateVariantToInventoryRequestSchema: GenMessage<AssociateVariantToInventoryRequest> =
56
- /*@__PURE__*/
57
- messageDesc(file_src_proto_products_v1_entities_variant, 0)
58
-
59
- /**
60
- * @generated from message AssociateVariantToInventoryResponse
61
- */
62
- export type AssociateVariantToInventoryResponse =
63
- Message<'AssociateVariantToInventoryResponse'> & {
64
- /**
65
- * @generated from field: Variant variant = 1;
66
- */
67
- variant?: Variant
68
- }
69
-
70
- /**
71
- * Describes the message AssociateVariantToInventoryResponse.
72
- * Use `create(AssociateVariantToInventoryResponseSchema)` to create a new message.
73
- */
74
- export const AssociateVariantToInventoryResponseSchema: GenMessage<AssociateVariantToInventoryResponse> =
75
- /*@__PURE__*/
76
- messageDesc(file_src_proto_products_v1_entities_variant, 1)
77
-
78
- /**
79
- * @generated from message CreateVariantRequest
80
- */
81
- export type CreateVariantRequest = Message<'CreateVariantRequest'> & {
82
- /**
83
- * @generated from field: string product_id = 1;
84
- */
85
- productId: string
86
-
87
- /**
88
- * @generated from field: optional string sku = 2;
89
- */
90
- sku?: string
91
-
92
- /**
93
- * @generated from field: string title = 3;
94
- */
95
- title: string
96
-
97
- /**
98
- * @generated from field: optional string ean = 4;
99
- */
100
- ean?: string
101
-
102
- /**
103
- * @generated from field: optional string upc = 5;
104
- */
105
- upc?: string
106
-
107
- /**
108
- * @generated from field: optional string barcode = 6;
109
- */
110
- barcode?: string
111
-
112
- /**
113
- * @generated from field: optional string hs_code = 7;
114
- */
115
- hsCode?: string
116
-
117
- /**
118
- * @generated from field: optional string mid_code = 8;
119
- */
120
- midCode?: string
121
-
122
- /**
123
- * @generated from field: optional bool allow_backorder = 9;
124
- */
125
- allowBackorder?: boolean
126
-
127
- /**
128
- * @generated from field: optional bool is_managed_inventory = 10;
129
- */
130
- isManagedInventory?: boolean
131
-
132
- /**
133
- * @generated from field: optional int32 rank = 11;
134
- */
135
- rank?: number
136
-
137
- /**
138
- * @generated from field: optional float weight = 12;
139
- */
140
- weight?: number
141
-
142
- /**
143
- * @generated from field: optional float length = 13;
144
- */
145
- length?: number
146
-
147
- /**
148
- * @generated from field: optional float height = 14;
149
- */
150
- height?: number
151
-
152
- /**
153
- * @generated from field: optional float width = 15;
154
- */
155
- width?: number
156
-
157
- /**
158
- * @generated from field: optional string origin_country = 16;
159
- */
160
- originCountry?: string
161
-
162
- /**
163
- * @generated from field: optional string material = 17;
164
- */
165
- material?: string
166
-
167
- /**
168
- * @generated from field: map<string, string> options = 18;
169
- */
170
- options: { [key: string]: string }
171
-
172
- /**
173
- * @generated from field: map<string, string> metadata = 19;
174
- */
175
- metadata: { [key: string]: string }
176
-
177
- /**
178
- * @generated from field: repeated CreateVariantRequest.Price prices = 20;
179
- */
180
- prices: CreateVariantRequest_Price[]
181
-
182
- /**
183
- * @generated from field: repeated CreateVariantRequest.InventoryItem inventory_items = 21;
184
- */
185
- inventoryItems: CreateVariantRequest_InventoryItem[]
186
- }
187
-
188
- /**
189
- * Describes the message CreateVariantRequest.
190
- * Use `create(CreateVariantRequestSchema)` to create a new message.
191
- */
192
- export const CreateVariantRequestSchema: GenMessage<CreateVariantRequest> =
193
- /*@__PURE__*/
194
- messageDesc(file_src_proto_products_v1_entities_variant, 2)
195
-
196
- /**
197
- * @generated from message CreateVariantRequest.Price
198
- */
199
- export type CreateVariantRequest_Price =
200
- Message<'CreateVariantRequest.Price'> & {
201
- /**
202
- * @generated from field: string currency_code = 1;
203
- */
204
- currencyCode: string
205
-
206
- /**
207
- * @generated from field: float amount = 2;
208
- */
209
- amount: number
210
-
211
- /**
212
- * @generated from field: optional int32 min_quantity = 3;
213
- */
214
- minQuantity?: number
215
-
216
- /**
217
- * @generated from field: optional int32 max_quantity = 4;
218
- */
219
- maxQuantity?: number
220
-
221
- /**
222
- * @generated from field: repeated CreateVariantRequest.Price.Rule rules = 5;
223
- */
224
- rules: CreateVariantRequest_Price_Rule[]
225
- }
226
-
227
- /**
228
- * Describes the message CreateVariantRequest.Price.
229
- * Use `create(CreateVariantRequest_PriceSchema)` to create a new message.
230
- */
231
- export const CreateVariantRequest_PriceSchema: GenMessage<CreateVariantRequest_Price> =
232
- /*@__PURE__*/
233
- messageDesc(file_src_proto_products_v1_entities_variant, 2, 0)
234
-
235
- /**
236
- * @generated from message CreateVariantRequest.Price.Rule
237
- */
238
- export type CreateVariantRequest_Price_Rule =
239
- Message<'CreateVariantRequest.Price.Rule'> & {
240
- /**
241
- * @generated from field: string entity_id = 1;
242
- */
243
- entityId: string
244
-
245
- /**
246
- * @generated from field: CreateVariantRequest.Price.Rule.Type entity_type = 2;
247
- */
248
- entityType: CreateVariantRequest_Price_Rule_Type
249
- }
250
-
251
- /**
252
- * Describes the message CreateVariantRequest.Price.Rule.
253
- * Use `create(CreateVariantRequest_Price_RuleSchema)` to create a new message.
254
- */
255
- export const CreateVariantRequest_Price_RuleSchema: GenMessage<CreateVariantRequest_Price_Rule> =
256
- /*@__PURE__*/
257
- messageDesc(file_src_proto_products_v1_entities_variant, 2, 0, 0)
258
-
259
- /**
260
- * @generated from enum CreateVariantRequest.Price.Rule.Type
261
- */
262
- export enum CreateVariantRequest_Price_Rule_Type {
263
- /**
264
- * @generated from enum value: TYPE_UNSPECIFIED = 0;
265
- */
266
- UNSPECIFIED = 0,
267
-
268
- /**
269
- * @generated from enum value: TYPE_REGION = 1;
270
- */
271
- REGION = 1,
272
-
273
- /**
274
- * @generated from enum value: TYPE_CUSTOMER_GROUP = 2;
275
- */
276
- CUSTOMER_GROUP = 2,
277
- }
278
-
279
- /**
280
- * Describes the enum CreateVariantRequest.Price.Rule.Type.
281
- */
282
- export const CreateVariantRequest_Price_Rule_TypeSchema: GenEnum<CreateVariantRequest_Price_Rule_Type> =
283
- /*@__PURE__*/
284
- enumDesc(file_src_proto_products_v1_entities_variant, 2, 0, 0, 0)
285
-
286
- /**
287
- * @generated from message CreateVariantRequest.InventoryItem
288
- */
289
- export type CreateVariantRequest_InventoryItem =
290
- Message<'CreateVariantRequest.InventoryItem'> & {
291
- /**
292
- * @generated from field: string inventory_item_id = 1;
293
- */
294
- inventoryItemId: string
295
-
296
- /**
297
- * @generated from field: optional int32 required_quantity = 2;
298
- */
299
- requiredQuantity?: number
300
- }
301
-
302
- /**
303
- * Describes the message CreateVariantRequest.InventoryItem.
304
- * Use `create(CreateVariantRequest_InventoryItemSchema)` to create a new message.
305
- */
306
- export const CreateVariantRequest_InventoryItemSchema: GenMessage<CreateVariantRequest_InventoryItem> =
307
- /*@__PURE__*/
308
- messageDesc(file_src_proto_products_v1_entities_variant, 2, 1)
309
-
310
- /**
311
- * @generated from message CreateVariantResponse
312
- */
313
- export type CreateVariantResponse = Message<'CreateVariantResponse'> & {
314
- /**
315
- * @generated from field: ProductResponse product = 1;
316
- */
317
- product?: ProductResponse
318
- }
319
-
320
- /**
321
- * Describes the message CreateVariantResponse.
322
- * Use `create(CreateVariantResponseSchema)` to create a new message.
323
- */
324
- export const CreateVariantResponseSchema: GenMessage<CreateVariantResponse> =
325
- /*@__PURE__*/
326
- messageDesc(file_src_proto_products_v1_entities_variant, 3)
327
-
328
- /**
329
- * @generated from message PatchVariantImageRequest
330
- */
331
- export type PatchVariantImageRequest = Message<'PatchVariantImageRequest'> & {
332
- /**
333
- * @generated from field: string product_id = 1;
334
- */
335
- productId: string
336
-
337
- /**
338
- * @generated from field: string variant_id = 2;
339
- */
340
- variantId: string
341
-
342
- /**
343
- * @generated from field: repeated string saved_images = 3;
344
- */
345
- savedImages: string[]
346
-
347
- /**
348
- * @generated from field: repeated string deleted_images = 4;
349
- */
350
- deletedImages: string[]
351
- }
352
-
353
- /**
354
- * Describes the message PatchVariantImageRequest.
355
- * Use `create(PatchVariantImageRequestSchema)` to create a new message.
356
- */
357
- export const PatchVariantImageRequestSchema: GenMessage<PatchVariantImageRequest> =
358
- /*@__PURE__*/
359
- messageDesc(file_src_proto_products_v1_entities_variant, 4)
360
-
361
- /**
362
- * @generated from message PatchVariantImageResponse
363
- */
364
- export type PatchVariantImageResponse = Message<'PatchVariantImageResponse'> & {
365
- /**
366
- * @generated from field: repeated string saved_images = 3;
367
- */
368
- savedImages: string[]
369
-
370
- /**
371
- * @generated from field: repeated string deleted_images = 4;
372
- */
373
- deletedImages: string[]
374
- }
375
-
376
- /**
377
- * Describes the message PatchVariantImageResponse.
378
- * Use `create(PatchVariantImageResponseSchema)` to create a new message.
379
- */
380
- export const PatchVariantImageResponseSchema: GenMessage<PatchVariantImageResponse> =
381
- /*@__PURE__*/
382
- messageDesc(file_src_proto_products_v1_entities_variant, 5)
383
-
384
- /**
385
- * @generated from message UpdateProductOptionRequest
386
- */
387
- export type UpdateProductOptionRequest =
388
- Message<'UpdateProductOptionRequest'> & {
389
- /**
390
- * @generated from field: string product_id = 1;
391
- */
392
- productId: string
393
-
394
- /**
395
- * @generated from field: string option_id = 2;
396
- */
397
- optionId: string
398
-
399
- /**
400
- * @generated from field: string title = 3;
401
- */
402
- title: string
403
-
404
- /**
405
- * @generated from field: repeated string values = 4;
406
- */
407
- values: string[]
408
-
409
- /**
410
- * @generated from field: map<string, string> metadata = 5;
411
- */
412
- metadata: { [key: string]: string }
413
- }
414
-
415
- /**
416
- * Describes the message UpdateProductOptionRequest.
417
- * Use `create(UpdateProductOptionRequestSchema)` to create a new message.
418
- */
419
- export const UpdateProductOptionRequestSchema: GenMessage<UpdateProductOptionRequest> =
420
- /*@__PURE__*/
421
- messageDesc(file_src_proto_products_v1_entities_variant, 6)
422
-
423
- /**
424
- * @generated from message UpdateProductOptionResponse
425
- */
426
- export type UpdateProductOptionResponse =
427
- Message<'UpdateProductOptionResponse'> & {
428
- /**
429
- * @generated from field: ProductResponse product = 1;
430
- */
431
- product?: ProductResponse
432
- }
433
-
434
- /**
435
- * Describes the message UpdateProductOptionResponse.
436
- * Use `create(UpdateProductOptionResponseSchema)` to create a new message.
437
- */
438
- export const UpdateProductOptionResponseSchema: GenMessage<UpdateProductOptionResponse> =
439
- /*@__PURE__*/
440
- messageDesc(file_src_proto_products_v1_entities_variant, 7)
441
-
442
- /**
443
- * @generated from message UpdateVariantInventoryRequest
444
- */
445
- export type UpdateVariantInventoryRequest =
446
- Message<'UpdateVariantInventoryRequest'> & {
447
- /**
448
- * @generated from field: string product_id = 1;
449
- */
450
- productId: string
451
-
452
- /**
453
- * @generated from field: string variant_id = 2;
454
- */
455
- variantId: string
456
-
457
- /**
458
- * @generated from field: string inventory_item_id = 3;
459
- */
460
- inventoryItemId: string
461
-
462
- /**
463
- * @generated from field: int32 required_quantity = 4;
464
- */
465
- requiredQuantity: number
466
- }
467
-
468
- /**
469
- * Describes the message UpdateVariantInventoryRequest.
470
- * Use `create(UpdateVariantInventoryRequestSchema)` to create a new message.
471
- */
472
- export const UpdateVariantInventoryRequestSchema: GenMessage<UpdateVariantInventoryRequest> =
473
- /*@__PURE__*/
474
- messageDesc(file_src_proto_products_v1_entities_variant, 8)
475
-
476
- /**
477
- * @generated from message UpdateVariantInventoryResponse
478
- */
479
- export type UpdateVariantInventoryResponse =
480
- Message<'UpdateVariantInventoryResponse'> & {
481
- /**
482
- * @generated from field: Variant product_variant = 1;
483
- */
484
- productVariant?: Variant
485
- }
486
-
487
- /**
488
- * Describes the message UpdateVariantInventoryResponse.
489
- * Use `create(UpdateVariantInventoryResponseSchema)` to create a new message.
490
- */
491
- export const UpdateVariantInventoryResponseSchema: GenMessage<UpdateVariantInventoryResponse> =
492
- /*@__PURE__*/
493
- messageDesc(file_src_proto_products_v1_entities_variant, 9)
494
-
495
- /**
496
- * @generated from message UpdateVariantRequest
497
- */
498
- export type UpdateVariantRequest = Message<'UpdateVariantRequest'> & {
499
- /**
500
- * @generated from field: optional string product_id = 1;
501
- */
502
- productId?: string
503
-
504
- /**
505
- * @generated from field: optional string variant_id = 2;
506
- */
507
- variantId?: string
508
-
509
- /**
510
- * @generated from field: optional string title = 3;
511
- */
512
- title?: string
513
-
514
- /**
515
- * @generated from field: optional string ean = 4;
516
- */
517
- ean?: string
518
-
519
- /**
520
- * @generated from field: optional string upc = 5;
521
- */
522
- upc?: string
523
-
524
- /**
525
- * @generated from field: optional string barcode = 6;
526
- */
527
- barcode?: string
528
-
529
- /**
530
- * @generated from field: optional string hs_code = 7;
531
- */
532
- hsCode?: string
533
-
534
- /**
535
- * @generated from field: optional string mid_code = 8;
536
- */
537
- midCode?: string
538
-
539
- /**
540
- * @generated from field: optional bool allow_backorder = 9;
541
- */
542
- allowBackorder?: boolean
543
-
544
- /**
545
- * @generated from field: optional bool is_managed_inventory = 10;
546
- */
547
- isManagedInventory?: boolean
548
-
549
- /**
550
- * @generated from field: optional int32 rank = 11;
551
- */
552
- rank?: number
553
-
554
- /**
555
- * @generated from field: optional float weight = 12;
556
- */
557
- weight?: number
558
-
559
- /**
560
- * @generated from field: optional float length = 13;
561
- */
562
- length?: number
563
-
564
- /**
565
- * @generated from field: optional float height = 14;
566
- */
567
- height?: number
568
-
569
- /**
570
- * @generated from field: optional float width = 15;
571
- */
572
- width?: number
573
-
574
- /**
575
- * @generated from field: optional string origin_country = 16;
576
- */
577
- originCountry?: string
578
-
579
- /**
580
- * @generated from field: optional string material = 17;
581
- */
582
- material?: string
583
-
584
- /**
585
- * @generated from field: map<string, string> options = 18;
586
- */
587
- options: { [key: string]: string }
588
-
589
- /**
590
- * @generated from field: map<string, string> metadata = 19;
591
- */
592
- metadata: { [key: string]: string }
593
-
594
- /**
595
- * @generated from field: repeated CreateVariantRequest.Price prices = 20;
596
- */
597
- prices: CreateVariantRequest_Price[]
598
-
599
- /**
600
- * @generated from field: repeated CreateVariantRequest.InventoryItem inventory_items = 21;
601
- */
602
- inventoryItems: CreateVariantRequest_InventoryItem[]
603
- }
604
-
605
- /**
606
- * Describes the message UpdateVariantRequest.
607
- * Use `create(UpdateVariantRequestSchema)` to create a new message.
608
- */
609
- export const UpdateVariantRequestSchema: GenMessage<UpdateVariantRequest> =
610
- /*@__PURE__*/
611
- messageDesc(file_src_proto_products_v1_entities_variant, 10)
612
-
613
- /**
614
- * @generated from message UpdateVariantResponse
615
- */
616
- export type UpdateVariantResponse = Message<'UpdateVariantResponse'> & {
617
- /**
618
- * @generated from field: ProductResponse product = 1;
619
- */
620
- product?: ProductResponse
621
- }
622
-
623
- /**
624
- * Describes the message UpdateVariantResponse.
625
- * Use `create(UpdateVariantResponseSchema)` to create a new message.
626
- */
627
- export const UpdateVariantResponseSchema: GenMessage<UpdateVariantResponse> =
628
- /*@__PURE__*/
629
- messageDesc(file_src_proto_products_v1_entities_variant, 11)