@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
@@ -1,19 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package apps.enterprise.interfaces.rpc.files.v1;
4
-
5
- option go_package = "paakd.com/packages/api/gen/files/v1;filesv1";
6
-
7
- import "src/proto/files/v1/entities/file.proto";
8
-
9
-
10
- service FileService {
11
- rpc UpdateFile(UpdateFileRequest) returns (UpdateFileResponse) {};
12
- rpc DeleteFile(DeleteFileRequest) returns (DeleteFileResponse){};
13
- rpc ListFiles(ListFilesRequest) returns (ListFilesResponse){
14
- option idempotency_level = NO_SIDE_EFFECTS;
15
- };
16
- rpc GetFile(GetFileRequest) returns (GetFileResponse){
17
- option idempotency_level = NO_SIDE_EFFECTS;
18
- };
19
- }
@@ -1,98 +0,0 @@
1
- syntax = "proto3";
2
-
3
-
4
- import "buf/validate/validate.proto";
5
-
6
-
7
- message CreateProductCategoryRequest {
8
- string name = 1 [
9
- (buf.validate.field).string.min_len = 1,
10
- (buf.validate.field).string.max_len = 100
11
- ];
12
- optional string description = 2 [
13
- (buf.validate.field).string.max_len = 500
14
- ];
15
-
16
- optional string parent_category_id = 3 [
17
- (buf.validate.field).string.min_len = 1,
18
- (buf.validate.field).string.max_len = 100
19
- ];
20
-
21
- string category_taxonomy_id = 4 [
22
- (buf.validate.field).string.min_len = 1,
23
- (buf.validate.field).string.max_len = 100
24
- ];
25
-
26
- repeated string tags = 5;
27
-
28
- optional bool is_internal = 6;
29
- optional bool is_active = 7;
30
- optional int32 rank = 8;
31
- }
32
-
33
- message CreateProductCategoryResponse {
34
- string id = 1;
35
- }
36
-
37
- message UpdateProductCategoryRequest {
38
- string id = 1 [
39
- (buf.validate.field).string.min_len = 1,
40
- (buf.validate.field).string.max_len = 100
41
- ];
42
- string name = 2 [
43
- (buf.validate.field).string.min_len = 1,
44
- (buf.validate.field).string.max_len = 100
45
- ];
46
- optional string description = 3 [
47
- (buf.validate.field).string.max_len = 500
48
- ];
49
-
50
- repeated string tags = 4;
51
- optional bool is_internal = 5;
52
- optional bool is_active = 6;
53
- optional int32 rank = 7;
54
- }
55
-
56
- message UpdateProductCategoryResponse {}
57
-
58
- message DeleteProductCategoryByIDRequest {
59
- string id = 1 [
60
- (buf.validate.field).string.min_len = 1,
61
- (buf.validate.field).string.max_len = 100
62
- ];
63
- }
64
- message DeleteProductCategoryByIDResponse {}
65
-
66
- message GetProductCategoryByIDRequest {
67
- string id = 1 [
68
- (buf.validate.field).string.min_len = 1,
69
- (buf.validate.field).string.max_len = 100
70
- ];
71
- }
72
-
73
- message GetProductCategoryByIDResponse {
74
- string id = 1; // ID of the category
75
- string name = 2; // Name of the category
76
- string description = 3; // Description of the category
77
- repeated string tags = 4; // Tags associated with the category
78
- string category_taxonomy_id = 5; // Name of the category taxonomy
79
- string parent_category_id = 6;
80
- bool is_internal = 7;
81
- bool is_active = 8;
82
- int32 rank = 9;
83
- string taxonomy_fullname = 10;
84
- }
85
-
86
- message UpdateProductCategoryTaxonomyRequest {
87
- string id = 1 [
88
- (buf.validate.field).string.min_len = 1,
89
- (buf.validate.field).string.max_len = 100
90
- ];
91
- string taxonomy_id = 2 [
92
- (buf.validate.field).string.min_len = 1,
93
- (buf.validate.field).string.max_len = 100
94
- ];
95
- }
96
-
97
- message UpdateProductCategoryTaxonomyResponse {
98
- }
@@ -1,72 +0,0 @@
1
- syntax = "proto3";
2
-
3
-
4
- import "buf/validate/validate.proto";
5
-
6
-
7
- message CreateCollectionRequest {
8
- string title = 1 [
9
- (buf.validate.field).string.min_len = 1,
10
- (buf.validate.field).string.max_len = 100
11
- ];
12
- optional string description = 2 [
13
- (buf.validate.field).string.max_len = 500
14
- ];
15
-
16
- string slug = 3 [
17
- (buf.validate.field).string.min_len = 3,
18
- (buf.validate.field).string.max_len = 50,
19
- (buf.validate.field).string.pattern = "^[a-z0-9]+(?:-[a-z0-9]+)*$"
20
- ];
21
- }
22
-
23
- message CreateCollectionResponse {
24
- string id = 1;
25
- }
26
-
27
- message GetCollectionByIDRequest {
28
- string id = 1 [
29
- (buf.validate.field).string.min_len = 1,
30
- (buf.validate.field).string.max_len = 100
31
- ];
32
- }
33
-
34
- message GetCollectionByIDResponse {
35
- string id = 1; // ID of the collection
36
- string title = 2; // Name of the collection
37
- string description = 3; // Description of the collection
38
- string slug = 4; // URL slug of the collection
39
- repeated string tags = 5; // Tags associated with the collection
40
- }
41
-
42
- message UpdateCollectionRequest {
43
- string id = 1 [
44
- (buf.validate.field).string.min_len = 1,
45
- (buf.validate.field).string.max_len = 100
46
- ];
47
- string title = 2 [
48
- (buf.validate.field).string.min_len = 1,
49
- (buf.validate.field).string.max_len = 100
50
- ];
51
- optional string description = 3 [
52
- (buf.validate.field).string.max_len = 500
53
- ];
54
-
55
- string slug = 4 [
56
- (buf.validate.field).string.min_len = 3,
57
- (buf.validate.field).string.max_len = 50,
58
- (buf.validate.field).string.pattern = "^[a-z0-9]+(?:-[a-z0-9]+)*$"
59
- ];
60
-
61
- repeated string tags = 5;
62
- }
63
- message UpdateCollectionResponse {}
64
-
65
- message DeleteCollectionByIDRequest {
66
- string id = 1 [
67
- (buf.validate.field).string.min_len = 1,
68
- (buf.validate.field).string.max_len = 100
69
- ];
70
- }
71
-
72
- message DeleteCollectionByIDResponse {}
@@ -1,41 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "buf/validate/validate.proto";
4
- import "src/proto/products/v1/entities/product/shared.proto";
5
-
6
-
7
- message CreateProductRequest {
8
- string title = 1;
9
- optional string subtitle = 2;
10
- optional string description = 3;
11
- optional string slug = 4;
12
- optional bool is_published = 5;
13
- optional bool is_giftcard = 6;
14
- optional string thumbnail = 7;
15
- optional ProductStatus status = 8;
16
- optional string product_type_id = 9;
17
- repeated string collection_id = 10;
18
- repeated string category_ids = 11;
19
- repeated string image_ids = 12;
20
- repeated string tag_ids = 13;
21
- repeated Variant variants = 14;
22
- repeated ProductOption options = 15;
23
- map<string, string> metadata = 16;
24
- optional float weight = 17;
25
- optional float length = 18;
26
- optional float width = 19;
27
- optional float height = 20;
28
- optional string hs_code = 21;
29
- optional string origin_country = 22;
30
- optional string manufacturer_id = 23;
31
- optional bool returnable = 24;
32
- repeated string sales_channel_ids = 25;
33
- repeated string attribute_ids = 26;
34
- string external_id = 27;
35
- string shipping_profile_id = 28;
36
- }
37
-
38
-
39
- message CreateProductResponse {
40
- ProductResponse product = 1;
41
- }
@@ -1,17 +0,0 @@
1
- syntax = "proto3";
2
-
3
-
4
- import "buf/validate/validate.proto";
5
-
6
- import "src/proto/products/v1/entities/product/shared.proto";
7
-
8
- message CreateOptionRequest {
9
- string product_id = 1;
10
- string title = 2;
11
- repeated string values = 3;
12
- map<string, string> metadata = 4;
13
- }
14
-
15
- message CreateOptionResponse {
16
- ProductResponse product = 1;
17
- }
@@ -1,255 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "buf/validate/validate.proto";
4
-
5
- enum ProductStatus {
6
- DRAFT = 0;
7
- PROPOSED = 1;
8
- PUBLISHED = 2;
9
- REJECTED = 3;
10
- }
11
-
12
- message ProductOption {
13
- string title = 1;
14
- repeated string values = 2;
15
- }
16
-
17
- message Variant {
18
- message OptionValue {
19
- string option_id = 1;
20
- string value = 2;
21
- }
22
- message Price {
23
- enum RuleType {
24
- RULE_TYPE_UNSPECIFIED = 0;
25
- RULE_TYPE_REGION = 1;
26
- RULE_TYPE_CUSTOMER_GROUP = 2;
27
- }
28
- message Rule {
29
- string entity_id = 1;
30
- RuleType entity_type = 2;
31
- }
32
- string currency_code = 1;
33
- float amount = 3;
34
- int32 max_quantity = 4;
35
- int32 min_quantity = 5;
36
-
37
- repeated Rule rules = 10;
38
- }
39
- message InventoryItem {
40
- string inventory_item_id = 1;
41
- }
42
- optional string id = 1;
43
- string title = 2;
44
- optional string sku = 3;
45
- optional string ean = 4;
46
- optional string upc = 5;
47
- optional string barcode = 6;
48
- optional bool track_inventory = 7;
49
- optional bool is_manage_inventory = 8;
50
- optional float weight = 9;
51
- optional float length = 10;
52
- optional float width = 11;
53
- optional float height = 12;
54
- optional string hs_code = 13;
55
- optional string origin_country = 14;
56
- optional string material = 15;
57
- repeated OptionValue option_values = 16;
58
- repeated Price prices = 17;
59
- repeated InventoryItem inventory_items = 18;
60
- map<string, string> metadata = 19;
61
- optional string mid_code = 20;
62
- optional bool allow_backorder = 21;
63
- optional int32 rank = 22;
64
- }
65
-
66
- message ProductResponse {
67
- message Tag {
68
- string id = 1;
69
- string value = 2;
70
- }
71
- message SalesChannel {
72
- string id = 1;
73
- string name = 2;
74
- string description = 3;
75
- string is_disabled = 4;
76
- map<string, string> metadata = 5;
77
- }
78
- message Type {
79
- string id = 1;
80
- string name = 2;
81
- map<string, string> metadata = 3;
82
- }
83
- message Category {
84
- string id = 1;
85
- string name = 2;
86
- string description = 3;
87
- string slug = 4;
88
- bool is_active = 5;
89
- bool is_internal = 6;
90
- int32 rank = 7;
91
- optional string parent_id = 8;
92
- repeated Category children = 9;
93
- map<string, string> metadata = 10;
94
- }
95
- message Collection {
96
- string id = 1;
97
- string title = 2;
98
- string slug = 3;
99
- map<string, string> metadata = 4;
100
- }
101
- message Image {
102
- string id = 1;
103
- string url = 2;
104
- int32 rank = 3;
105
- map<string, string> metadata = 4;
106
- }
107
- message Value {
108
- string option_id = 1;
109
- string value = 2;
110
- optional Option option = 4;
111
- }
112
- message OptionData {
113
- string id = 1;
114
- string title = 2;
115
- repeated Value option_values = 3;
116
- string product_id = 4;
117
- }
118
- message Option {
119
- string id = 1;
120
- string value = 2;
121
- string product_id = 3;
122
- OptionData option = 4;
123
- repeated Value values = 5;
124
- }
125
- message ProductVariant {
126
- message Price {
127
- message Rule {
128
- enum Type {
129
- TYPE_UNSPECIFIED = 0;
130
- TYPE_REGION = 1;
131
- TYPE_CUSTOMER_GROUP = 2;
132
- }
133
- string entity_id = 1;
134
- Type entity_type = 2;
135
- }
136
- string currency_code = 1;
137
- float amount = 3;
138
- float raw_amount = 4;
139
- string title = 5;
140
- string id = 6;
141
- int32 max_quantity = 7;
142
- int32 min_quantity = 8;
143
- string price_set_id = 9;
144
- repeated Rule rules = 10;
145
- }
146
- message Option {
147
- string id = 1;
148
- string value = 2;
149
- string option_id = 3;
150
- OptionData option = 4;
151
- }
152
-
153
- message InventoryItem {
154
- message InventoryItemData {
155
- string id = 1;
156
- bool requires_shipping = 2;
157
- string sku = 3;
158
- string origin_country = 4;
159
- string hs_code = 5;
160
- string mid_code = 6;
161
- string material = 7;
162
- string title = 8;
163
- string description = 9;
164
- string thumbnail = 10;
165
- float weight = 11;
166
- float length = 12;
167
- float width = 13;
168
- float height = 14;
169
- }
170
- string id = 1;
171
- int32 required_quantity = 2;
172
- string variant_id = 3;
173
- string inventory_item_id = 4;
174
- InventoryItemData inventory = 5;
175
- }
176
-
177
- message CalculatedPrice {
178
- string id = 1;
179
- float calculated_amount = 2;
180
- float original_amount = 3;
181
- string currency_code = 4;
182
- float original_amount_with_tax = 5;
183
- float original_amount_without_tax = 6;
184
- optional float is_calculated_price_price_list = 7;
185
- optional bool is_calculated_price_tax_inclusive = 8;
186
- optional float calculated_amount_with_tax = 9;
187
- optional float calculated_amount_without_tax = 10;
188
- optional bool is_original_price_price_list = 11;
189
- optional bool is_original_price_tax_inclusive = 12;
190
- optional Price calculated_price = 13;
191
- optional Price original_price = 14;
192
- }
193
-
194
- string id = 1;
195
- string title = 2;
196
- string sku = 3;
197
- string barcode = 4;
198
- string ean = 5;
199
- string upc = 6;
200
- bool allow_backorder = 7;
201
- bool is_managed_inventory = 8;
202
- string hs_code = 9;
203
- string origin_country = 10;
204
- string mid_code = 11;
205
- string material = 12;
206
- float weight = 13;
207
- float length = 14;
208
- float height = 15;
209
- float width = 16;
210
- string thumbnail = 17;
211
- string product_id = 18;
212
-
213
- CalculatedPrice calculated_price = 19;
214
- repeated InventoryItem inventory_items = 20;
215
- repeated Image images = 21;
216
- repeated Option options = 22;
217
- repeated Price prices = 23;
218
- }
219
- message ShippingProfile {
220
- string id = 1;
221
- string name = 2;
222
- string type = 3;
223
- map<string, string> metadata = 4;
224
- }
225
- string id = 1;
226
- float length = 2;
227
- string title = 3;
228
- ProductStatus status = 4;
229
- string description = 5;
230
- string slug = 6;
231
- string subtitle = 7;
232
- string thumbnail = 8;
233
- bool is_giftcard = 9;
234
- float weight = 10;
235
- float height = 11;
236
- float width = 12;
237
- string origin_country = 13;
238
- string hs_code = 14;
239
- string mid_code = 15;
240
- string collection_id = 16;
241
- string type_id = 17;
242
- bool is_discountable = 18;
243
- string external_id = 19;
244
-
245
- repeated ProductVariant variants = 20;
246
- Type type = 21;
247
- Option options = 22;
248
- repeated Image images = 23;
249
- Collection collection = 24;
250
- repeated Category categories = 25;
251
- repeated SalesChannel sales_channels = 26;
252
- repeated Tag tags = 27;
253
- ShippingProfile shipping_profile = 28;
254
- map<string, string> metadata = 29;
255
- }
@@ -1,66 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "buf/validate/validate.proto";
4
- import "src/proto/products/v1/entities/product/shared.proto";
5
-
6
- message UpdateProductRequest {
7
-
8
- string id = 1;
9
- optional string title = 2;
10
- optional string subtitle = 3;
11
- optional string description = 4;
12
- optional bool is_giftcard = 5;
13
- optional bool is_discountable = 6;
14
- optional string thumbnail = 7;
15
- optional string slug = 8;
16
- optional ProductStatus status = 9;
17
- optional float weight = 10;
18
- optional float height = 11;
19
- optional float width = 12;
20
- optional float length = 13;
21
- optional string hs_code = 14;
22
- optional string mid_code = 15;
23
- optional string origin_country = 16;
24
- optional string material = 17;
25
- optional string external_id = 18;
26
- repeated string images = 19;
27
- repeated string tags = 20;
28
- repeated string categories = 21;
29
- repeated string sales_channels = 22;
30
- repeated ProductOption options = 23;
31
- repeated Variant variants = 24;
32
- }
33
-
34
-
35
- message UpdateProductResponse {
36
- ProductResponse product = 1;
37
- }
38
-
39
-
40
- message DeleteProductRequest {
41
- string product_id = 1;
42
- }
43
-
44
- message DeleteProductResponse {}
45
-
46
- message DeleteVariantRequest {
47
- string variant_id = 1;
48
- string product_id = 2;
49
- }
50
-
51
- message DeleteVariantResponse {}
52
-
53
- message DeleteOptionRequest {
54
- string option_id = 1;
55
- string product_id = 2;
56
- }
57
-
58
- message DeleteOptionResponse {}
59
-
60
- message RemoveInventoryItemRequest {
61
- string inventory_item_id = 1;
62
- string product_id = 2;
63
- string variant_id = 3;
64
- }
65
-
66
- message RemoveInventoryItemResponse {}
@@ -1,73 +0,0 @@
1
- syntax = "proto3";
2
-
3
-
4
- import "buf/validate/validate.proto";
5
-
6
-
7
-
8
- message CreateTagRequest {
9
- string value = 1 [
10
- (buf.validate.field).string.min_len = 1,
11
- (buf.validate.field).string.max_len = 100
12
- ];
13
- }
14
-
15
- message CreateTagResponse {
16
- string id = 1;
17
- }
18
-
19
- message GetTagByIDRequest {
20
- string id = 1 [
21
- (buf.validate.field).string.min_len = 1,
22
- (buf.validate.field).string.max_len = 100
23
- ];
24
- }
25
-
26
- message GetTagByIDResponse {
27
- string id = 1;
28
- string value = 2;
29
- }
30
-
31
- message ListTagsRequest {
32
- int32 offset = 1 [
33
- (buf.validate.field).int32.gte = 1
34
- ];
35
- uint32 limit = 2 [
36
- (buf.validate.field).int32.gte = 1,
37
- (buf.validate.field).int32.lte = 100
38
- ];
39
- string order_by = 3;
40
- string filter = 4;
41
- bool ascending = 5;
42
- string request_path = 6;
43
- }
44
-
45
- message ListTagsResponse {
46
- repeated GetTagByIDResponse tags = 1;
47
- }
48
-
49
- message UpdateTagRequest {
50
- string id = 1 [
51
- (buf.validate.field).string.min_len = 1,
52
- (buf.validate.field).string.max_len = 100
53
- ];
54
- string value = 2 [
55
- (buf.validate.field).string.min_len = 1,
56
- (buf.validate.field).string.max_len = 100
57
- ];
58
- }
59
-
60
- message UpdateTagResponse {
61
- string id = 1;
62
- }
63
-
64
- message DeleteTagByIDRequest {
65
- string id = 1 [
66
- (buf.validate.field).string.min_len = 1,
67
- (buf.validate.field).string.max_len = 100
68
- ];
69
- }
70
-
71
- message DeleteTagByIDResponse {
72
- string id = 1;
73
- }