@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.
- package/buf/validate/validate_pb.ts +5001 -0
- package/dist/gen/buf/validate/validate_pb.d.ts +4634 -0
- package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/gen/buf/validate/validate_pb.js +414 -0
- package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts +268 -0
- package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/auth/v1/entities/auth_pb.js +120 -0
- package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts +235 -0
- package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/auth/v1/entities/policy_pb.js +98 -0
- package/dist/gen/src/proto/auth/v1/service_pb.d.ts +117 -0
- package/dist/gen/src/proto/auth/v1/service_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/auth/v1/service_pb.js +22 -0
- package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts +371 -0
- package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/customers/v1/entities/address_pb.js +84 -0
- package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts +189 -0
- package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/customers/v1/entities/profile_pb.js +70 -0
- package/dist/gen/src/proto/customers/v1/service_pb.d.ts +85 -0
- package/dist/gen/src/proto/customers/v1/service_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/customers/v1/service_pb.js +22 -0
- package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts +234 -0
- package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/category_pb.js +84 -0
- package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts +159 -0
- package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/collection_pb.js +70 -0
- package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts +146 -0
- package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/product/create_pb.js +32 -0
- package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts +50 -0
- package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/product/option_pb.js +32 -0
- package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts +1042 -0
- package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/product/shared_pb.js +258 -0
- package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts +236 -0
- package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/product/update_pb.js +88 -0
- package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts +175 -0
- package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/tag_pb.js +84 -0
- package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts +477 -0
- package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.js +235 -0
- package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts +158 -0
- package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/type_pb.js +70 -0
- package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts +489 -0
- package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/entities/variant_pb.js +147 -0
- package/dist/gen/src/proto/products/v1/service_pb.d.ts +316 -0
- package/dist/gen/src/proto/products/v1/service_pb.d.ts.map +1 -0
- package/dist/gen/src/proto/products/v1/service_pb.js +36 -0
- package/dist/src/address.d.ts +53 -0
- package/dist/src/address.d.ts.map +1 -0
- package/dist/src/address.js +233 -0
- package/dist/src/address.spec.d.ts +2 -0
- package/dist/src/address.spec.d.ts.map +1 -0
- package/dist/src/address.spec.js +488 -0
- package/dist/src/auth.d.ts +27 -0
- package/dist/src/auth.d.ts.map +1 -0
- package/dist/src/auth.js +155 -0
- package/dist/src/auth.spec.d.ts +2 -0
- package/dist/src/auth.spec.d.ts.map +1 -0
- package/dist/src/auth.spec.js +582 -0
- package/dist/src/compressor/brotli.d.ts +3 -0
- package/dist/src/compressor/brotli.d.ts.map +1 -0
- package/dist/src/compressor/brotli.js +30 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/interceptors.d.ts +16 -0
- package/dist/src/interceptors.d.ts.map +1 -0
- package/dist/src/interceptors.js +156 -0
- package/dist/src/interceptors.spec.d.ts +2 -0
- package/dist/src/interceptors.spec.d.ts.map +1 -0
- package/dist/src/interceptors.spec.js +1063 -0
- package/dist/src/policies.d.ts +217 -0
- package/dist/src/policies.d.ts.map +1 -0
- package/dist/src/policies.js +322 -0
- package/dist/src/policies.spec.d.ts +2 -0
- package/dist/src/policies.spec.d.ts.map +1 -0
- package/dist/src/policies.spec.js +463 -0
- package/dist/src/products.d.ts +39 -0
- package/dist/src/products.d.ts.map +1 -0
- package/dist/src/products.js +95 -0
- package/dist/src/products.spec.d.ts +2 -0
- package/dist/src/products.spec.d.ts.map +1 -0
- package/dist/src/products.spec.js +519 -0
- package/dist/src/profile.d.ts +62 -0
- package/dist/src/profile.d.ts.map +1 -0
- package/dist/src/profile.js +151 -0
- package/dist/src/profile.spec.d.ts +2 -0
- package/dist/src/profile.spec.d.ts.map +1 -0
- package/dist/src/profile.spec.js +475 -0
- package/dist/src/registration.d.ts +60 -0
- package/dist/src/registration.d.ts.map +1 -0
- package/dist/src/registration.js +147 -0
- package/dist/src/test-utils.d.ts +87 -0
- package/dist/src/test-utils.d.ts.map +1 -0
- package/dist/src/test-utils.js +132 -0
- package/gen/buf/validate/validate_pb.ts +4799 -0
- package/gen/src/proto/auth/v1/authv1connect/service.connect.go +454 -0
- package/gen/src/proto/auth/v1/entities/auth.pb.go +818 -0
- package/gen/src/proto/auth/v1/entities/auth_pb.ts +348 -0
- package/gen/src/proto/auth/v1/entities/policy.pb.go +727 -0
- package/gen/src/proto/auth/v1/entities/policy_pb.ts +306 -0
- package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +70 -0
- package/gen/src/proto/auth/v1/service.pb.go +119 -0
- package/gen/src/proto/auth/v1/service_pb.ts +152 -0
- package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +358 -0
- package/gen/src/proto/customers/v1/entities/address.pb.go +1073 -0
- package/gen/src/proto/customers/v1/entities/address_pb.ts +478 -0
- package/gen/src/proto/customers/v1/entities/profile.pb.go +633 -0
- package/gen/src/proto/customers/v1/entities/profile_pb.ts +252 -0
- package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +50 -0
- package/gen/src/proto/customers/v1/service.pb.go +110 -0
- package/gen/src/proto/customers/v1/service_pb.ts +121 -0
- package/gen/src/proto/files/v1/entities/file.pb.go +669 -0
- package/gen/src/proto/files/v1/entities/file_pb.ts +265 -0
- package/gen/src/proto/files/v1/filesv1connect/service.connect.go +200 -0
- package/gen/src/proto/files/v1/service-FileService_connectquery.ts +25 -0
- package/gen/src/proto/files/v1/service.pb.go +85 -0
- package/gen/src/proto/files/v1/service_pb.ts +65 -0
- package/gen/src/proto/products/v1/entities/category.pb.go +744 -0
- package/gen/src/proto/products/v1/entities/category_pb.ts +318 -0
- package/gen/src/proto/products/v1/entities/collection.pb.go +528 -0
- package/gen/src/proto/products/v1/entities/collection_pb.ts +214 -0
- package/gen/src/proto/products/v1/entities/product/create.pb.go +453 -0
- package/gen/src/proto/products/v1/entities/product/create_pb.ts +199 -0
- package/gen/src/proto/products/v1/entities/product/option.pb.go +206 -0
- package/gen/src/proto/products/v1/entities/product/option_pb.ts +74 -0
- package/gen/src/proto/products/v1/entities/product/shared.pb.go +2890 -0
- package/gen/src/proto/products/v1/entities/product/shared_pb.ts +1317 -0
- package/gen/src/proto/products/v1/entities/product/update.pb.go +794 -0
- package/gen/src/proto/products/v1/entities/product/update_pb.ts +325 -0
- package/gen/src/proto/products/v1/entities/tag.pb.go +610 -0
- package/gen/src/proto/products/v1/entities/tag_pb.ts +233 -0
- package/gen/src/proto/products/v1/entities/taxonomy.pb.go +1352 -0
- package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +606 -0
- package/gen/src/proto/products/v1/entities/type.pb.go +553 -0
- package/gen/src/proto/products/v1/entities/type_pb.ts +215 -0
- package/gen/src/proto/products/v1/entities/variant.pb.go +1474 -0
- package/gen/src/proto/products/v1/entities/variant_pb.ts +629 -0
- package/gen/src/proto/products/v1/productsv1connect/service.connect.go +1195 -0
- package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +199 -0
- package/gen/src/proto/products/v1/service.pb.go +250 -0
- package/gen/src/proto/products/v1/service_pb.ts +429 -0
- package/gen/src/proto/promotions/v1/entities/campaign.pb.go +1229 -0
- package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +511 -0
- package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +289 -0
- package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +42 -0
- package/gen/src/proto/promotions/v1/service.pb.go +98 -0
- package/gen/src/proto/promotions/v1/service_pb.ts +95 -0
- package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +1499 -0
- package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +655 -0
- package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +41 -0
- package/gen/src/proto/stocknodes/v1/service.pb.go +98 -0
- package/gen/src/proto/stocknodes/v1/service_pb.ts +95 -0
- package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +297 -0
- package/package.json +5 -2
- package/src/address.spec.ts +0 -662
- package/src/address.ts +0 -300
- package/src/auth.spec.ts +0 -771
- package/src/auth.ts +0 -168
- package/src/compressor/brotli.ts +0 -26
- package/src/index.ts +0 -5
- package/src/interceptors.spec.ts +0 -1343
- package/src/interceptors.ts +0 -224
- package/src/policies.spec.ts +0 -595
- package/src/policies.ts +0 -431
- package/src/products.spec.ts +0 -710
- package/src/products.ts +0 -112
- package/src/profile.spec.ts +0 -626
- package/src/profile.ts +0 -169
- package/src/proto/auth/v1/entities/auth.proto +0 -140
- package/src/proto/auth/v1/entities/policy.proto +0 -57
- package/src/proto/auth/v1/service.proto +0 -26
- package/src/proto/customers/v1/entities/address.proto +0 -101
- package/src/proto/customers/v1/entities/profile.proto +0 -118
- package/src/proto/customers/v1/service.proto +0 -36
- package/src/proto/files/v1/entities/file.proto +0 -62
- package/src/proto/files/v1/service.proto +0 -19
- package/src/proto/products/v1/entities/category.proto +0 -98
- package/src/proto/products/v1/entities/collection.proto +0 -72
- package/src/proto/products/v1/entities/product/create.proto +0 -41
- package/src/proto/products/v1/entities/product/option.proto +0 -17
- package/src/proto/products/v1/entities/product/shared.proto +0 -255
- package/src/proto/products/v1/entities/product/update.proto +0 -66
- package/src/proto/products/v1/entities/tag.proto +0 -73
- package/src/proto/products/v1/entities/taxonomy.proto +0 -146
- package/src/proto/products/v1/entities/type.proto +0 -98
- package/src/proto/products/v1/entities/variant.proto +0 -127
- package/src/proto/products/v1/service.proto +0 -78
- package/src/proto/promotions/v1/entities/campaign.proto +0 -145
- package/src/proto/promotions/v1/service.proto +0 -17
- package/src/proto/stocknodes/v1/entities/stocknode.proto +0 -167
- package/src/proto/stocknodes/v1/service.proto +0 -21
- package/src/registration.ts +0 -170
- package/src/test-utils.ts +0 -176
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
// Code generated by protoc-gen-connect-go. DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// Source: src/proto/products/v1/service.proto
|
|
4
|
+
|
|
5
|
+
package productsv1connect
|
|
6
|
+
|
|
7
|
+
import (
|
|
8
|
+
connect "connectrpc.com/connect"
|
|
9
|
+
context "context"
|
|
10
|
+
errors "errors"
|
|
11
|
+
http "net/http"
|
|
12
|
+
v1 "paakd.com/packages/api/gen/src/proto/products/v1"
|
|
13
|
+
entities "paakd.com/packages/api/gen/src/proto/products/v1/entities"
|
|
14
|
+
product "paakd.com/packages/api/gen/src/proto/products/v1/entities/product"
|
|
15
|
+
strings "strings"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
// This is a compile-time assertion to ensure that this generated file and the connect package are
|
|
19
|
+
// compatible. If you get a compiler error that this constant is not defined, this code was
|
|
20
|
+
// generated with a version of connect newer than the one compiled into your binary. You can fix the
|
|
21
|
+
// problem by either regenerating this code with an older version of connect or updating the connect
|
|
22
|
+
// version compiled into your binary.
|
|
23
|
+
const _ = connect.IsAtLeastVersion1_13_0
|
|
24
|
+
|
|
25
|
+
const (
|
|
26
|
+
// ProductsServiceName is the fully-qualified name of the ProductsService service.
|
|
27
|
+
ProductsServiceName = "apps.enterprise.interfaces.rpc.products.v1.ProductsService"
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
// These constants are the fully-qualified names of the RPCs defined in this package. They're
|
|
31
|
+
// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
|
|
32
|
+
//
|
|
33
|
+
// Note that these are different from the fully-qualified method names used by
|
|
34
|
+
// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
|
|
35
|
+
// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
|
|
36
|
+
// period.
|
|
37
|
+
const (
|
|
38
|
+
// ProductsServiceCreateCollectionProcedure is the fully-qualified name of the ProductsService's
|
|
39
|
+
// CreateCollection RPC.
|
|
40
|
+
ProductsServiceCreateCollectionProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateCollection"
|
|
41
|
+
// ProductsServiceGetCollectionByIDProcedure is the fully-qualified name of the ProductsService's
|
|
42
|
+
// GetCollectionByID RPC.
|
|
43
|
+
ProductsServiceGetCollectionByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetCollectionByID"
|
|
44
|
+
// ProductsServiceUpdateCollectionProcedure is the fully-qualified name of the ProductsService's
|
|
45
|
+
// UpdateCollection RPC.
|
|
46
|
+
ProductsServiceUpdateCollectionProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateCollection"
|
|
47
|
+
// ProductsServiceDeleteCollectionByIDProcedure is the fully-qualified name of the ProductsService's
|
|
48
|
+
// DeleteCollectionByID RPC.
|
|
49
|
+
ProductsServiceDeleteCollectionByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteCollectionByID"
|
|
50
|
+
// ProductsServiceCreateProductTypeProcedure is the fully-qualified name of the ProductsService's
|
|
51
|
+
// CreateProductType RPC.
|
|
52
|
+
ProductsServiceCreateProductTypeProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateProductType"
|
|
53
|
+
// ProductsServiceGetProductTypeByIDProcedure is the fully-qualified name of the ProductsService's
|
|
54
|
+
// GetProductTypeByID RPC.
|
|
55
|
+
ProductsServiceGetProductTypeByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetProductTypeByID"
|
|
56
|
+
// ProductsServiceUpdateProductTypeProcedure is the fully-qualified name of the ProductsService's
|
|
57
|
+
// UpdateProductType RPC.
|
|
58
|
+
ProductsServiceUpdateProductTypeProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateProductType"
|
|
59
|
+
// ProductsServiceDeleteProductTypeByIDProcedure is the fully-qualified name of the
|
|
60
|
+
// ProductsService's DeleteProductTypeByID RPC.
|
|
61
|
+
ProductsServiceDeleteProductTypeByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteProductTypeByID"
|
|
62
|
+
// ProductsServiceCreateProductCategoryProcedure is the fully-qualified name of the
|
|
63
|
+
// ProductsService's CreateProductCategory RPC.
|
|
64
|
+
ProductsServiceCreateProductCategoryProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateProductCategory"
|
|
65
|
+
// ProductsServiceGetProductCategoryByIDProcedure is the fully-qualified name of the
|
|
66
|
+
// ProductsService's GetProductCategoryByID RPC.
|
|
67
|
+
ProductsServiceGetProductCategoryByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetProductCategoryByID"
|
|
68
|
+
// ProductsServiceUpdateProductCategoryProcedure is the fully-qualified name of the
|
|
69
|
+
// ProductsService's UpdateProductCategory RPC.
|
|
70
|
+
ProductsServiceUpdateProductCategoryProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateProductCategory"
|
|
71
|
+
// ProductsServiceDeleteProductCategoryByIDProcedure is the fully-qualified name of the
|
|
72
|
+
// ProductsService's DeleteProductCategoryByID RPC.
|
|
73
|
+
ProductsServiceDeleteProductCategoryByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteProductCategoryByID"
|
|
74
|
+
// ProductsServiceUpdateProductCategoryTaxonomyProcedure is the fully-qualified name of the
|
|
75
|
+
// ProductsService's UpdateProductCategoryTaxonomy RPC.
|
|
76
|
+
ProductsServiceUpdateProductCategoryTaxonomyProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateProductCategoryTaxonomy"
|
|
77
|
+
// ProductsServiceCreateTagProcedure is the fully-qualified name of the ProductsService's CreateTag
|
|
78
|
+
// RPC.
|
|
79
|
+
ProductsServiceCreateTagProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateTag"
|
|
80
|
+
// ProductsServiceGetTagByIDProcedure is the fully-qualified name of the ProductsService's
|
|
81
|
+
// GetTagByID RPC.
|
|
82
|
+
ProductsServiceGetTagByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetTagByID"
|
|
83
|
+
// ProductsServiceUpdateTagProcedure is the fully-qualified name of the ProductsService's UpdateTag
|
|
84
|
+
// RPC.
|
|
85
|
+
ProductsServiceUpdateTagProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateTag"
|
|
86
|
+
// ProductsServiceDeleteTagByIDProcedure is the fully-qualified name of the ProductsService's
|
|
87
|
+
// DeleteTagByID RPC.
|
|
88
|
+
ProductsServiceDeleteTagByIDProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteTagByID"
|
|
89
|
+
// ProductsServiceListTagsProcedure is the fully-qualified name of the ProductsService's ListTags
|
|
90
|
+
// RPC.
|
|
91
|
+
ProductsServiceListTagsProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/ListTags"
|
|
92
|
+
// ProductsServiceSearchVerticalsProcedure is the fully-qualified name of the ProductsService's
|
|
93
|
+
// SearchVerticals RPC.
|
|
94
|
+
ProductsServiceSearchVerticalsProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/SearchVerticals"
|
|
95
|
+
// ProductsServiceSearchCategoryProcedure is the fully-qualified name of the ProductsService's
|
|
96
|
+
// SearchCategory RPC.
|
|
97
|
+
ProductsServiceSearchCategoryProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/SearchCategory"
|
|
98
|
+
// ProductsServiceGetVerticalProcedure is the fully-qualified name of the ProductsService's
|
|
99
|
+
// GetVertical RPC.
|
|
100
|
+
ProductsServiceGetVerticalProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetVertical"
|
|
101
|
+
// ProductsServiceGetCategoryProcedure is the fully-qualified name of the ProductsService's
|
|
102
|
+
// GetCategory RPC.
|
|
103
|
+
ProductsServiceGetCategoryProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetCategory"
|
|
104
|
+
// ProductsServiceGetAttributeProcedure is the fully-qualified name of the ProductsService's
|
|
105
|
+
// GetAttribute RPC.
|
|
106
|
+
ProductsServiceGetAttributeProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetAttribute"
|
|
107
|
+
// ProductsServiceGetCategoryAttributesProcedure is the fully-qualified name of the
|
|
108
|
+
// ProductsService's GetCategoryAttributes RPC.
|
|
109
|
+
ProductsServiceGetCategoryAttributesProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/GetCategoryAttributes"
|
|
110
|
+
// ProductsServiceCreateProductProcedure is the fully-qualified name of the ProductsService's
|
|
111
|
+
// CreateProduct RPC.
|
|
112
|
+
ProductsServiceCreateProductProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateProduct"
|
|
113
|
+
// ProductsServiceUpdateProductProcedure is the fully-qualified name of the ProductsService's
|
|
114
|
+
// UpdateProduct RPC.
|
|
115
|
+
ProductsServiceUpdateProductProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateProduct"
|
|
116
|
+
// ProductsServiceAssociateVariantToInventoryProcedure is the fully-qualified name of the
|
|
117
|
+
// ProductsService's AssociateVariantToInventory RPC.
|
|
118
|
+
ProductsServiceAssociateVariantToInventoryProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/AssociateVariantToInventory"
|
|
119
|
+
// ProductsServiceCreateOptionProcedure is the fully-qualified name of the ProductsService's
|
|
120
|
+
// CreateOption RPC.
|
|
121
|
+
ProductsServiceCreateOptionProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateOption"
|
|
122
|
+
// ProductsServiceCreateVariantProcedure is the fully-qualified name of the ProductsService's
|
|
123
|
+
// CreateVariant RPC.
|
|
124
|
+
ProductsServiceCreateVariantProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/CreateVariant"
|
|
125
|
+
// ProductsServicePatchVariantImageProcedure is the fully-qualified name of the ProductsService's
|
|
126
|
+
// PatchVariantImage RPC.
|
|
127
|
+
ProductsServicePatchVariantImageProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/PatchVariantImage"
|
|
128
|
+
// ProductsServiceUpdateProductOptionProcedure is the fully-qualified name of the ProductsService's
|
|
129
|
+
// UpdateProductOption RPC.
|
|
130
|
+
ProductsServiceUpdateProductOptionProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateProductOption"
|
|
131
|
+
// ProductsServiceUpdateVariantInventoryProcedure is the fully-qualified name of the
|
|
132
|
+
// ProductsService's UpdateVariantInventory RPC.
|
|
133
|
+
ProductsServiceUpdateVariantInventoryProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateVariantInventory"
|
|
134
|
+
// ProductsServiceUpdateVariantProcedure is the fully-qualified name of the ProductsService's
|
|
135
|
+
// UpdateVariant RPC.
|
|
136
|
+
ProductsServiceUpdateVariantProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/UpdateVariant"
|
|
137
|
+
// ProductsServiceDeleteProductProcedure is the fully-qualified name of the ProductsService's
|
|
138
|
+
// DeleteProduct RPC.
|
|
139
|
+
ProductsServiceDeleteProductProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteProduct"
|
|
140
|
+
// ProductsServiceDeleteVariantProcedure is the fully-qualified name of the ProductsService's
|
|
141
|
+
// DeleteVariant RPC.
|
|
142
|
+
ProductsServiceDeleteVariantProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteVariant"
|
|
143
|
+
// ProductsServiceDeleteOptionProcedure is the fully-qualified name of the ProductsService's
|
|
144
|
+
// DeleteOption RPC.
|
|
145
|
+
ProductsServiceDeleteOptionProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/DeleteOption"
|
|
146
|
+
// ProductsServiceRemoveInventoryItemProcedure is the fully-qualified name of the ProductsService's
|
|
147
|
+
// RemoveInventoryItem RPC.
|
|
148
|
+
ProductsServiceRemoveInventoryItemProcedure = "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/RemoveInventoryItem"
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
// ProductsServiceClient is a client for the
|
|
152
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService service.
|
|
153
|
+
type ProductsServiceClient interface {
|
|
154
|
+
CreateCollection(context.Context, *connect.Request[entities.CreateCollectionRequest]) (*connect.Response[entities.CreateCollectionResponse], error)
|
|
155
|
+
GetCollectionByID(context.Context, *connect.Request[entities.GetCollectionByIDRequest]) (*connect.Response[entities.GetCollectionByIDResponse], error)
|
|
156
|
+
UpdateCollection(context.Context, *connect.Request[entities.UpdateCollectionRequest]) (*connect.Response[entities.UpdateCollectionResponse], error)
|
|
157
|
+
DeleteCollectionByID(context.Context, *connect.Request[entities.DeleteCollectionByIDRequest]) (*connect.Response[entities.DeleteCollectionByIDResponse], error)
|
|
158
|
+
CreateProductType(context.Context, *connect.Request[entities.CreateProductTypeRequest]) (*connect.Response[entities.CreateProductTypeResponse], error)
|
|
159
|
+
GetProductTypeByID(context.Context, *connect.Request[entities.GetProductTypeByIDRequest]) (*connect.Response[entities.GetProductTypeByIDResponse], error)
|
|
160
|
+
UpdateProductType(context.Context, *connect.Request[entities.UpdateProductTypeRequest]) (*connect.Response[entities.UpdateProductTypeResponse], error)
|
|
161
|
+
DeleteProductTypeByID(context.Context, *connect.Request[entities.DeleteProductTypeByIDRequest]) (*connect.Response[entities.DeleteProductTypeByIDResponse], error)
|
|
162
|
+
CreateProductCategory(context.Context, *connect.Request[entities.CreateProductCategoryRequest]) (*connect.Response[entities.CreateProductCategoryResponse], error)
|
|
163
|
+
GetProductCategoryByID(context.Context, *connect.Request[entities.GetProductCategoryByIDRequest]) (*connect.Response[entities.GetProductCategoryByIDResponse], error)
|
|
164
|
+
UpdateProductCategory(context.Context, *connect.Request[entities.UpdateProductCategoryRequest]) (*connect.Response[entities.UpdateProductCategoryResponse], error)
|
|
165
|
+
DeleteProductCategoryByID(context.Context, *connect.Request[entities.DeleteProductCategoryByIDRequest]) (*connect.Response[entities.DeleteProductCategoryByIDResponse], error)
|
|
166
|
+
UpdateProductCategoryTaxonomy(context.Context, *connect.Request[entities.UpdateProductCategoryTaxonomyRequest]) (*connect.Response[entities.UpdateProductCategoryTaxonomyResponse], error)
|
|
167
|
+
CreateTag(context.Context, *connect.Request[entities.CreateTagRequest]) (*connect.Response[entities.CreateTagResponse], error)
|
|
168
|
+
GetTagByID(context.Context, *connect.Request[entities.GetTagByIDRequest]) (*connect.Response[entities.GetTagByIDResponse], error)
|
|
169
|
+
UpdateTag(context.Context, *connect.Request[entities.UpdateTagRequest]) (*connect.Response[entities.UpdateTagResponse], error)
|
|
170
|
+
DeleteTagByID(context.Context, *connect.Request[entities.DeleteTagByIDRequest]) (*connect.Response[entities.DeleteTagByIDResponse], error)
|
|
171
|
+
ListTags(context.Context, *connect.Request[entities.ListTagsRequest]) (*connect.Response[entities.ListTagsResponse], error)
|
|
172
|
+
SearchVerticals(context.Context, *connect.Request[entities.SearchVerticalsRequest]) (*connect.Response[entities.SearchVerticalsResponse], error)
|
|
173
|
+
SearchCategory(context.Context, *connect.Request[entities.SearchCategoryRequest]) (*connect.Response[entities.SearchCategoryResponse], error)
|
|
174
|
+
GetVertical(context.Context, *connect.Request[entities.GetVerticalRequest]) (*connect.Response[entities.GetVerticalResponse], error)
|
|
175
|
+
GetCategory(context.Context, *connect.Request[entities.GetCategoryRequest]) (*connect.Response[entities.GetCategoryResponse], error)
|
|
176
|
+
GetAttribute(context.Context, *connect.Request[entities.GetAttributeRequest]) (*connect.Response[entities.GetAttributeResponse], error)
|
|
177
|
+
GetCategoryAttributes(context.Context, *connect.Request[entities.GetCategoryAttributesRequest]) (*connect.Response[entities.GetCategoryAttributesResponse], error)
|
|
178
|
+
CreateProduct(context.Context, *connect.Request[product.CreateProductRequest]) (*connect.Response[product.CreateProductResponse], error)
|
|
179
|
+
UpdateProduct(context.Context, *connect.Request[product.UpdateProductRequest]) (*connect.Response[product.UpdateProductResponse], error)
|
|
180
|
+
AssociateVariantToInventory(context.Context, *connect.Request[entities.AssociateVariantToInventoryRequest]) (*connect.Response[entities.AssociateVariantToInventoryResponse], error)
|
|
181
|
+
CreateOption(context.Context, *connect.Request[product.CreateOptionRequest]) (*connect.Response[product.CreateOptionResponse], error)
|
|
182
|
+
CreateVariant(context.Context, *connect.Request[entities.CreateVariantRequest]) (*connect.Response[entities.CreateVariantResponse], error)
|
|
183
|
+
PatchVariantImage(context.Context, *connect.Request[entities.PatchVariantImageRequest]) (*connect.Response[entities.PatchVariantImageResponse], error)
|
|
184
|
+
UpdateProductOption(context.Context, *connect.Request[entities.UpdateProductOptionRequest]) (*connect.Response[entities.UpdateProductOptionResponse], error)
|
|
185
|
+
UpdateVariantInventory(context.Context, *connect.Request[entities.UpdateVariantInventoryRequest]) (*connect.Response[entities.UpdateVariantInventoryResponse], error)
|
|
186
|
+
UpdateVariant(context.Context, *connect.Request[entities.UpdateVariantRequest]) (*connect.Response[entities.UpdateVariantResponse], error)
|
|
187
|
+
DeleteProduct(context.Context, *connect.Request[product.DeleteProductRequest]) (*connect.Response[product.DeleteProductResponse], error)
|
|
188
|
+
DeleteVariant(context.Context, *connect.Request[product.DeleteVariantRequest]) (*connect.Response[product.DeleteVariantResponse], error)
|
|
189
|
+
DeleteOption(context.Context, *connect.Request[product.DeleteOptionRequest]) (*connect.Response[product.DeleteOptionResponse], error)
|
|
190
|
+
RemoveInventoryItem(context.Context, *connect.Request[product.RemoveInventoryItemRequest]) (*connect.Response[product.RemoveInventoryItemResponse], error)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// NewProductsServiceClient constructs a client for the
|
|
194
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService service. By default, it uses the
|
|
195
|
+
// Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
|
|
196
|
+
// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
|
|
197
|
+
// connect.WithGRPCWeb() options.
|
|
198
|
+
//
|
|
199
|
+
// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
|
|
200
|
+
// http://api.acme.com or https://acme.com/grpc).
|
|
201
|
+
func NewProductsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProductsServiceClient {
|
|
202
|
+
baseURL = strings.TrimRight(baseURL, "/")
|
|
203
|
+
productsServiceMethods := v1.File_src_proto_products_v1_service_proto.Services().ByName("ProductsService").Methods()
|
|
204
|
+
return &productsServiceClient{
|
|
205
|
+
createCollection: connect.NewClient[entities.CreateCollectionRequest, entities.CreateCollectionResponse](
|
|
206
|
+
httpClient,
|
|
207
|
+
baseURL+ProductsServiceCreateCollectionProcedure,
|
|
208
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateCollection")),
|
|
209
|
+
connect.WithClientOptions(opts...),
|
|
210
|
+
),
|
|
211
|
+
getCollectionByID: connect.NewClient[entities.GetCollectionByIDRequest, entities.GetCollectionByIDResponse](
|
|
212
|
+
httpClient,
|
|
213
|
+
baseURL+ProductsServiceGetCollectionByIDProcedure,
|
|
214
|
+
connect.WithSchema(productsServiceMethods.ByName("GetCollectionByID")),
|
|
215
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
216
|
+
connect.WithClientOptions(opts...),
|
|
217
|
+
),
|
|
218
|
+
updateCollection: connect.NewClient[entities.UpdateCollectionRequest, entities.UpdateCollectionResponse](
|
|
219
|
+
httpClient,
|
|
220
|
+
baseURL+ProductsServiceUpdateCollectionProcedure,
|
|
221
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateCollection")),
|
|
222
|
+
connect.WithClientOptions(opts...),
|
|
223
|
+
),
|
|
224
|
+
deleteCollectionByID: connect.NewClient[entities.DeleteCollectionByIDRequest, entities.DeleteCollectionByIDResponse](
|
|
225
|
+
httpClient,
|
|
226
|
+
baseURL+ProductsServiceDeleteCollectionByIDProcedure,
|
|
227
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteCollectionByID")),
|
|
228
|
+
connect.WithClientOptions(opts...),
|
|
229
|
+
),
|
|
230
|
+
createProductType: connect.NewClient[entities.CreateProductTypeRequest, entities.CreateProductTypeResponse](
|
|
231
|
+
httpClient,
|
|
232
|
+
baseURL+ProductsServiceCreateProductTypeProcedure,
|
|
233
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateProductType")),
|
|
234
|
+
connect.WithClientOptions(opts...),
|
|
235
|
+
),
|
|
236
|
+
getProductTypeByID: connect.NewClient[entities.GetProductTypeByIDRequest, entities.GetProductTypeByIDResponse](
|
|
237
|
+
httpClient,
|
|
238
|
+
baseURL+ProductsServiceGetProductTypeByIDProcedure,
|
|
239
|
+
connect.WithSchema(productsServiceMethods.ByName("GetProductTypeByID")),
|
|
240
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
241
|
+
connect.WithClientOptions(opts...),
|
|
242
|
+
),
|
|
243
|
+
updateProductType: connect.NewClient[entities.UpdateProductTypeRequest, entities.UpdateProductTypeResponse](
|
|
244
|
+
httpClient,
|
|
245
|
+
baseURL+ProductsServiceUpdateProductTypeProcedure,
|
|
246
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductType")),
|
|
247
|
+
connect.WithClientOptions(opts...),
|
|
248
|
+
),
|
|
249
|
+
deleteProductTypeByID: connect.NewClient[entities.DeleteProductTypeByIDRequest, entities.DeleteProductTypeByIDResponse](
|
|
250
|
+
httpClient,
|
|
251
|
+
baseURL+ProductsServiceDeleteProductTypeByIDProcedure,
|
|
252
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteProductTypeByID")),
|
|
253
|
+
connect.WithClientOptions(opts...),
|
|
254
|
+
),
|
|
255
|
+
createProductCategory: connect.NewClient[entities.CreateProductCategoryRequest, entities.CreateProductCategoryResponse](
|
|
256
|
+
httpClient,
|
|
257
|
+
baseURL+ProductsServiceCreateProductCategoryProcedure,
|
|
258
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateProductCategory")),
|
|
259
|
+
connect.WithClientOptions(opts...),
|
|
260
|
+
),
|
|
261
|
+
getProductCategoryByID: connect.NewClient[entities.GetProductCategoryByIDRequest, entities.GetProductCategoryByIDResponse](
|
|
262
|
+
httpClient,
|
|
263
|
+
baseURL+ProductsServiceGetProductCategoryByIDProcedure,
|
|
264
|
+
connect.WithSchema(productsServiceMethods.ByName("GetProductCategoryByID")),
|
|
265
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
266
|
+
connect.WithClientOptions(opts...),
|
|
267
|
+
),
|
|
268
|
+
updateProductCategory: connect.NewClient[entities.UpdateProductCategoryRequest, entities.UpdateProductCategoryResponse](
|
|
269
|
+
httpClient,
|
|
270
|
+
baseURL+ProductsServiceUpdateProductCategoryProcedure,
|
|
271
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductCategory")),
|
|
272
|
+
connect.WithClientOptions(opts...),
|
|
273
|
+
),
|
|
274
|
+
deleteProductCategoryByID: connect.NewClient[entities.DeleteProductCategoryByIDRequest, entities.DeleteProductCategoryByIDResponse](
|
|
275
|
+
httpClient,
|
|
276
|
+
baseURL+ProductsServiceDeleteProductCategoryByIDProcedure,
|
|
277
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteProductCategoryByID")),
|
|
278
|
+
connect.WithClientOptions(opts...),
|
|
279
|
+
),
|
|
280
|
+
updateProductCategoryTaxonomy: connect.NewClient[entities.UpdateProductCategoryTaxonomyRequest, entities.UpdateProductCategoryTaxonomyResponse](
|
|
281
|
+
httpClient,
|
|
282
|
+
baseURL+ProductsServiceUpdateProductCategoryTaxonomyProcedure,
|
|
283
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductCategoryTaxonomy")),
|
|
284
|
+
connect.WithClientOptions(opts...),
|
|
285
|
+
),
|
|
286
|
+
createTag: connect.NewClient[entities.CreateTagRequest, entities.CreateTagResponse](
|
|
287
|
+
httpClient,
|
|
288
|
+
baseURL+ProductsServiceCreateTagProcedure,
|
|
289
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateTag")),
|
|
290
|
+
connect.WithClientOptions(opts...),
|
|
291
|
+
),
|
|
292
|
+
getTagByID: connect.NewClient[entities.GetTagByIDRequest, entities.GetTagByIDResponse](
|
|
293
|
+
httpClient,
|
|
294
|
+
baseURL+ProductsServiceGetTagByIDProcedure,
|
|
295
|
+
connect.WithSchema(productsServiceMethods.ByName("GetTagByID")),
|
|
296
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
297
|
+
connect.WithClientOptions(opts...),
|
|
298
|
+
),
|
|
299
|
+
updateTag: connect.NewClient[entities.UpdateTagRequest, entities.UpdateTagResponse](
|
|
300
|
+
httpClient,
|
|
301
|
+
baseURL+ProductsServiceUpdateTagProcedure,
|
|
302
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateTag")),
|
|
303
|
+
connect.WithClientOptions(opts...),
|
|
304
|
+
),
|
|
305
|
+
deleteTagByID: connect.NewClient[entities.DeleteTagByIDRequest, entities.DeleteTagByIDResponse](
|
|
306
|
+
httpClient,
|
|
307
|
+
baseURL+ProductsServiceDeleteTagByIDProcedure,
|
|
308
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteTagByID")),
|
|
309
|
+
connect.WithClientOptions(opts...),
|
|
310
|
+
),
|
|
311
|
+
listTags: connect.NewClient[entities.ListTagsRequest, entities.ListTagsResponse](
|
|
312
|
+
httpClient,
|
|
313
|
+
baseURL+ProductsServiceListTagsProcedure,
|
|
314
|
+
connect.WithSchema(productsServiceMethods.ByName("ListTags")),
|
|
315
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
316
|
+
connect.WithClientOptions(opts...),
|
|
317
|
+
),
|
|
318
|
+
searchVerticals: connect.NewClient[entities.SearchVerticalsRequest, entities.SearchVerticalsResponse](
|
|
319
|
+
httpClient,
|
|
320
|
+
baseURL+ProductsServiceSearchVerticalsProcedure,
|
|
321
|
+
connect.WithSchema(productsServiceMethods.ByName("SearchVerticals")),
|
|
322
|
+
connect.WithClientOptions(opts...),
|
|
323
|
+
),
|
|
324
|
+
searchCategory: connect.NewClient[entities.SearchCategoryRequest, entities.SearchCategoryResponse](
|
|
325
|
+
httpClient,
|
|
326
|
+
baseURL+ProductsServiceSearchCategoryProcedure,
|
|
327
|
+
connect.WithSchema(productsServiceMethods.ByName("SearchCategory")),
|
|
328
|
+
connect.WithClientOptions(opts...),
|
|
329
|
+
),
|
|
330
|
+
getVertical: connect.NewClient[entities.GetVerticalRequest, entities.GetVerticalResponse](
|
|
331
|
+
httpClient,
|
|
332
|
+
baseURL+ProductsServiceGetVerticalProcedure,
|
|
333
|
+
connect.WithSchema(productsServiceMethods.ByName("GetVertical")),
|
|
334
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
335
|
+
connect.WithClientOptions(opts...),
|
|
336
|
+
),
|
|
337
|
+
getCategory: connect.NewClient[entities.GetCategoryRequest, entities.GetCategoryResponse](
|
|
338
|
+
httpClient,
|
|
339
|
+
baseURL+ProductsServiceGetCategoryProcedure,
|
|
340
|
+
connect.WithSchema(productsServiceMethods.ByName("GetCategory")),
|
|
341
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
342
|
+
connect.WithClientOptions(opts...),
|
|
343
|
+
),
|
|
344
|
+
getAttribute: connect.NewClient[entities.GetAttributeRequest, entities.GetAttributeResponse](
|
|
345
|
+
httpClient,
|
|
346
|
+
baseURL+ProductsServiceGetAttributeProcedure,
|
|
347
|
+
connect.WithSchema(productsServiceMethods.ByName("GetAttribute")),
|
|
348
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
349
|
+
connect.WithClientOptions(opts...),
|
|
350
|
+
),
|
|
351
|
+
getCategoryAttributes: connect.NewClient[entities.GetCategoryAttributesRequest, entities.GetCategoryAttributesResponse](
|
|
352
|
+
httpClient,
|
|
353
|
+
baseURL+ProductsServiceGetCategoryAttributesProcedure,
|
|
354
|
+
connect.WithSchema(productsServiceMethods.ByName("GetCategoryAttributes")),
|
|
355
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
356
|
+
connect.WithClientOptions(opts...),
|
|
357
|
+
),
|
|
358
|
+
createProduct: connect.NewClient[product.CreateProductRequest, product.CreateProductResponse](
|
|
359
|
+
httpClient,
|
|
360
|
+
baseURL+ProductsServiceCreateProductProcedure,
|
|
361
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateProduct")),
|
|
362
|
+
connect.WithClientOptions(opts...),
|
|
363
|
+
),
|
|
364
|
+
updateProduct: connect.NewClient[product.UpdateProductRequest, product.UpdateProductResponse](
|
|
365
|
+
httpClient,
|
|
366
|
+
baseURL+ProductsServiceUpdateProductProcedure,
|
|
367
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProduct")),
|
|
368
|
+
connect.WithClientOptions(opts...),
|
|
369
|
+
),
|
|
370
|
+
associateVariantToInventory: connect.NewClient[entities.AssociateVariantToInventoryRequest, entities.AssociateVariantToInventoryResponse](
|
|
371
|
+
httpClient,
|
|
372
|
+
baseURL+ProductsServiceAssociateVariantToInventoryProcedure,
|
|
373
|
+
connect.WithSchema(productsServiceMethods.ByName("AssociateVariantToInventory")),
|
|
374
|
+
connect.WithClientOptions(opts...),
|
|
375
|
+
),
|
|
376
|
+
createOption: connect.NewClient[product.CreateOptionRequest, product.CreateOptionResponse](
|
|
377
|
+
httpClient,
|
|
378
|
+
baseURL+ProductsServiceCreateOptionProcedure,
|
|
379
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateOption")),
|
|
380
|
+
connect.WithClientOptions(opts...),
|
|
381
|
+
),
|
|
382
|
+
createVariant: connect.NewClient[entities.CreateVariantRequest, entities.CreateVariantResponse](
|
|
383
|
+
httpClient,
|
|
384
|
+
baseURL+ProductsServiceCreateVariantProcedure,
|
|
385
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateVariant")),
|
|
386
|
+
connect.WithClientOptions(opts...),
|
|
387
|
+
),
|
|
388
|
+
patchVariantImage: connect.NewClient[entities.PatchVariantImageRequest, entities.PatchVariantImageResponse](
|
|
389
|
+
httpClient,
|
|
390
|
+
baseURL+ProductsServicePatchVariantImageProcedure,
|
|
391
|
+
connect.WithSchema(productsServiceMethods.ByName("PatchVariantImage")),
|
|
392
|
+
connect.WithClientOptions(opts...),
|
|
393
|
+
),
|
|
394
|
+
updateProductOption: connect.NewClient[entities.UpdateProductOptionRequest, entities.UpdateProductOptionResponse](
|
|
395
|
+
httpClient,
|
|
396
|
+
baseURL+ProductsServiceUpdateProductOptionProcedure,
|
|
397
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductOption")),
|
|
398
|
+
connect.WithClientOptions(opts...),
|
|
399
|
+
),
|
|
400
|
+
updateVariantInventory: connect.NewClient[entities.UpdateVariantInventoryRequest, entities.UpdateVariantInventoryResponse](
|
|
401
|
+
httpClient,
|
|
402
|
+
baseURL+ProductsServiceUpdateVariantInventoryProcedure,
|
|
403
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateVariantInventory")),
|
|
404
|
+
connect.WithClientOptions(opts...),
|
|
405
|
+
),
|
|
406
|
+
updateVariant: connect.NewClient[entities.UpdateVariantRequest, entities.UpdateVariantResponse](
|
|
407
|
+
httpClient,
|
|
408
|
+
baseURL+ProductsServiceUpdateVariantProcedure,
|
|
409
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateVariant")),
|
|
410
|
+
connect.WithClientOptions(opts...),
|
|
411
|
+
),
|
|
412
|
+
deleteProduct: connect.NewClient[product.DeleteProductRequest, product.DeleteProductResponse](
|
|
413
|
+
httpClient,
|
|
414
|
+
baseURL+ProductsServiceDeleteProductProcedure,
|
|
415
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteProduct")),
|
|
416
|
+
connect.WithClientOptions(opts...),
|
|
417
|
+
),
|
|
418
|
+
deleteVariant: connect.NewClient[product.DeleteVariantRequest, product.DeleteVariantResponse](
|
|
419
|
+
httpClient,
|
|
420
|
+
baseURL+ProductsServiceDeleteVariantProcedure,
|
|
421
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteVariant")),
|
|
422
|
+
connect.WithClientOptions(opts...),
|
|
423
|
+
),
|
|
424
|
+
deleteOption: connect.NewClient[product.DeleteOptionRequest, product.DeleteOptionResponse](
|
|
425
|
+
httpClient,
|
|
426
|
+
baseURL+ProductsServiceDeleteOptionProcedure,
|
|
427
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteOption")),
|
|
428
|
+
connect.WithClientOptions(opts...),
|
|
429
|
+
),
|
|
430
|
+
removeInventoryItem: connect.NewClient[product.RemoveInventoryItemRequest, product.RemoveInventoryItemResponse](
|
|
431
|
+
httpClient,
|
|
432
|
+
baseURL+ProductsServiceRemoveInventoryItemProcedure,
|
|
433
|
+
connect.WithSchema(productsServiceMethods.ByName("RemoveInventoryItem")),
|
|
434
|
+
connect.WithClientOptions(opts...),
|
|
435
|
+
),
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// productsServiceClient implements ProductsServiceClient.
|
|
440
|
+
type productsServiceClient struct {
|
|
441
|
+
createCollection *connect.Client[entities.CreateCollectionRequest, entities.CreateCollectionResponse]
|
|
442
|
+
getCollectionByID *connect.Client[entities.GetCollectionByIDRequest, entities.GetCollectionByIDResponse]
|
|
443
|
+
updateCollection *connect.Client[entities.UpdateCollectionRequest, entities.UpdateCollectionResponse]
|
|
444
|
+
deleteCollectionByID *connect.Client[entities.DeleteCollectionByIDRequest, entities.DeleteCollectionByIDResponse]
|
|
445
|
+
createProductType *connect.Client[entities.CreateProductTypeRequest, entities.CreateProductTypeResponse]
|
|
446
|
+
getProductTypeByID *connect.Client[entities.GetProductTypeByIDRequest, entities.GetProductTypeByIDResponse]
|
|
447
|
+
updateProductType *connect.Client[entities.UpdateProductTypeRequest, entities.UpdateProductTypeResponse]
|
|
448
|
+
deleteProductTypeByID *connect.Client[entities.DeleteProductTypeByIDRequest, entities.DeleteProductTypeByIDResponse]
|
|
449
|
+
createProductCategory *connect.Client[entities.CreateProductCategoryRequest, entities.CreateProductCategoryResponse]
|
|
450
|
+
getProductCategoryByID *connect.Client[entities.GetProductCategoryByIDRequest, entities.GetProductCategoryByIDResponse]
|
|
451
|
+
updateProductCategory *connect.Client[entities.UpdateProductCategoryRequest, entities.UpdateProductCategoryResponse]
|
|
452
|
+
deleteProductCategoryByID *connect.Client[entities.DeleteProductCategoryByIDRequest, entities.DeleteProductCategoryByIDResponse]
|
|
453
|
+
updateProductCategoryTaxonomy *connect.Client[entities.UpdateProductCategoryTaxonomyRequest, entities.UpdateProductCategoryTaxonomyResponse]
|
|
454
|
+
createTag *connect.Client[entities.CreateTagRequest, entities.CreateTagResponse]
|
|
455
|
+
getTagByID *connect.Client[entities.GetTagByIDRequest, entities.GetTagByIDResponse]
|
|
456
|
+
updateTag *connect.Client[entities.UpdateTagRequest, entities.UpdateTagResponse]
|
|
457
|
+
deleteTagByID *connect.Client[entities.DeleteTagByIDRequest, entities.DeleteTagByIDResponse]
|
|
458
|
+
listTags *connect.Client[entities.ListTagsRequest, entities.ListTagsResponse]
|
|
459
|
+
searchVerticals *connect.Client[entities.SearchVerticalsRequest, entities.SearchVerticalsResponse]
|
|
460
|
+
searchCategory *connect.Client[entities.SearchCategoryRequest, entities.SearchCategoryResponse]
|
|
461
|
+
getVertical *connect.Client[entities.GetVerticalRequest, entities.GetVerticalResponse]
|
|
462
|
+
getCategory *connect.Client[entities.GetCategoryRequest, entities.GetCategoryResponse]
|
|
463
|
+
getAttribute *connect.Client[entities.GetAttributeRequest, entities.GetAttributeResponse]
|
|
464
|
+
getCategoryAttributes *connect.Client[entities.GetCategoryAttributesRequest, entities.GetCategoryAttributesResponse]
|
|
465
|
+
createProduct *connect.Client[product.CreateProductRequest, product.CreateProductResponse]
|
|
466
|
+
updateProduct *connect.Client[product.UpdateProductRequest, product.UpdateProductResponse]
|
|
467
|
+
associateVariantToInventory *connect.Client[entities.AssociateVariantToInventoryRequest, entities.AssociateVariantToInventoryResponse]
|
|
468
|
+
createOption *connect.Client[product.CreateOptionRequest, product.CreateOptionResponse]
|
|
469
|
+
createVariant *connect.Client[entities.CreateVariantRequest, entities.CreateVariantResponse]
|
|
470
|
+
patchVariantImage *connect.Client[entities.PatchVariantImageRequest, entities.PatchVariantImageResponse]
|
|
471
|
+
updateProductOption *connect.Client[entities.UpdateProductOptionRequest, entities.UpdateProductOptionResponse]
|
|
472
|
+
updateVariantInventory *connect.Client[entities.UpdateVariantInventoryRequest, entities.UpdateVariantInventoryResponse]
|
|
473
|
+
updateVariant *connect.Client[entities.UpdateVariantRequest, entities.UpdateVariantResponse]
|
|
474
|
+
deleteProduct *connect.Client[product.DeleteProductRequest, product.DeleteProductResponse]
|
|
475
|
+
deleteVariant *connect.Client[product.DeleteVariantRequest, product.DeleteVariantResponse]
|
|
476
|
+
deleteOption *connect.Client[product.DeleteOptionRequest, product.DeleteOptionResponse]
|
|
477
|
+
removeInventoryItem *connect.Client[product.RemoveInventoryItemRequest, product.RemoveInventoryItemResponse]
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// CreateCollection calls
|
|
481
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateCollection.
|
|
482
|
+
func (c *productsServiceClient) CreateCollection(ctx context.Context, req *connect.Request[entities.CreateCollectionRequest]) (*connect.Response[entities.CreateCollectionResponse], error) {
|
|
483
|
+
return c.createCollection.CallUnary(ctx, req)
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// GetCollectionByID calls
|
|
487
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetCollectionByID.
|
|
488
|
+
func (c *productsServiceClient) GetCollectionByID(ctx context.Context, req *connect.Request[entities.GetCollectionByIDRequest]) (*connect.Response[entities.GetCollectionByIDResponse], error) {
|
|
489
|
+
return c.getCollectionByID.CallUnary(ctx, req)
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// UpdateCollection calls
|
|
493
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateCollection.
|
|
494
|
+
func (c *productsServiceClient) UpdateCollection(ctx context.Context, req *connect.Request[entities.UpdateCollectionRequest]) (*connect.Response[entities.UpdateCollectionResponse], error) {
|
|
495
|
+
return c.updateCollection.CallUnary(ctx, req)
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// DeleteCollectionByID calls
|
|
499
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteCollectionByID.
|
|
500
|
+
func (c *productsServiceClient) DeleteCollectionByID(ctx context.Context, req *connect.Request[entities.DeleteCollectionByIDRequest]) (*connect.Response[entities.DeleteCollectionByIDResponse], error) {
|
|
501
|
+
return c.deleteCollectionByID.CallUnary(ctx, req)
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// CreateProductType calls
|
|
505
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateProductType.
|
|
506
|
+
func (c *productsServiceClient) CreateProductType(ctx context.Context, req *connect.Request[entities.CreateProductTypeRequest]) (*connect.Response[entities.CreateProductTypeResponse], error) {
|
|
507
|
+
return c.createProductType.CallUnary(ctx, req)
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// GetProductTypeByID calls
|
|
511
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetProductTypeByID.
|
|
512
|
+
func (c *productsServiceClient) GetProductTypeByID(ctx context.Context, req *connect.Request[entities.GetProductTypeByIDRequest]) (*connect.Response[entities.GetProductTypeByIDResponse], error) {
|
|
513
|
+
return c.getProductTypeByID.CallUnary(ctx, req)
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// UpdateProductType calls
|
|
517
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductType.
|
|
518
|
+
func (c *productsServiceClient) UpdateProductType(ctx context.Context, req *connect.Request[entities.UpdateProductTypeRequest]) (*connect.Response[entities.UpdateProductTypeResponse], error) {
|
|
519
|
+
return c.updateProductType.CallUnary(ctx, req)
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// DeleteProductTypeByID calls
|
|
523
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteProductTypeByID.
|
|
524
|
+
func (c *productsServiceClient) DeleteProductTypeByID(ctx context.Context, req *connect.Request[entities.DeleteProductTypeByIDRequest]) (*connect.Response[entities.DeleteProductTypeByIDResponse], error) {
|
|
525
|
+
return c.deleteProductTypeByID.CallUnary(ctx, req)
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// CreateProductCategory calls
|
|
529
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateProductCategory.
|
|
530
|
+
func (c *productsServiceClient) CreateProductCategory(ctx context.Context, req *connect.Request[entities.CreateProductCategoryRequest]) (*connect.Response[entities.CreateProductCategoryResponse], error) {
|
|
531
|
+
return c.createProductCategory.CallUnary(ctx, req)
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// GetProductCategoryByID calls
|
|
535
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetProductCategoryByID.
|
|
536
|
+
func (c *productsServiceClient) GetProductCategoryByID(ctx context.Context, req *connect.Request[entities.GetProductCategoryByIDRequest]) (*connect.Response[entities.GetProductCategoryByIDResponse], error) {
|
|
537
|
+
return c.getProductCategoryByID.CallUnary(ctx, req)
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// UpdateProductCategory calls
|
|
541
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductCategory.
|
|
542
|
+
func (c *productsServiceClient) UpdateProductCategory(ctx context.Context, req *connect.Request[entities.UpdateProductCategoryRequest]) (*connect.Response[entities.UpdateProductCategoryResponse], error) {
|
|
543
|
+
return c.updateProductCategory.CallUnary(ctx, req)
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// DeleteProductCategoryByID calls
|
|
547
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteProductCategoryByID.
|
|
548
|
+
func (c *productsServiceClient) DeleteProductCategoryByID(ctx context.Context, req *connect.Request[entities.DeleteProductCategoryByIDRequest]) (*connect.Response[entities.DeleteProductCategoryByIDResponse], error) {
|
|
549
|
+
return c.deleteProductCategoryByID.CallUnary(ctx, req)
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// UpdateProductCategoryTaxonomy calls
|
|
553
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductCategoryTaxonomy.
|
|
554
|
+
func (c *productsServiceClient) UpdateProductCategoryTaxonomy(ctx context.Context, req *connect.Request[entities.UpdateProductCategoryTaxonomyRequest]) (*connect.Response[entities.UpdateProductCategoryTaxonomyResponse], error) {
|
|
555
|
+
return c.updateProductCategoryTaxonomy.CallUnary(ctx, req)
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// CreateTag calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateTag.
|
|
559
|
+
func (c *productsServiceClient) CreateTag(ctx context.Context, req *connect.Request[entities.CreateTagRequest]) (*connect.Response[entities.CreateTagResponse], error) {
|
|
560
|
+
return c.createTag.CallUnary(ctx, req)
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// GetTagByID calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetTagByID.
|
|
564
|
+
func (c *productsServiceClient) GetTagByID(ctx context.Context, req *connect.Request[entities.GetTagByIDRequest]) (*connect.Response[entities.GetTagByIDResponse], error) {
|
|
565
|
+
return c.getTagByID.CallUnary(ctx, req)
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// UpdateTag calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateTag.
|
|
569
|
+
func (c *productsServiceClient) UpdateTag(ctx context.Context, req *connect.Request[entities.UpdateTagRequest]) (*connect.Response[entities.UpdateTagResponse], error) {
|
|
570
|
+
return c.updateTag.CallUnary(ctx, req)
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// DeleteTagByID calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteTagByID.
|
|
574
|
+
func (c *productsServiceClient) DeleteTagByID(ctx context.Context, req *connect.Request[entities.DeleteTagByIDRequest]) (*connect.Response[entities.DeleteTagByIDResponse], error) {
|
|
575
|
+
return c.deleteTagByID.CallUnary(ctx, req)
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
// ListTags calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.ListTags.
|
|
579
|
+
func (c *productsServiceClient) ListTags(ctx context.Context, req *connect.Request[entities.ListTagsRequest]) (*connect.Response[entities.ListTagsResponse], error) {
|
|
580
|
+
return c.listTags.CallUnary(ctx, req)
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
// SearchVerticals calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.SearchVerticals.
|
|
584
|
+
func (c *productsServiceClient) SearchVerticals(ctx context.Context, req *connect.Request[entities.SearchVerticalsRequest]) (*connect.Response[entities.SearchVerticalsResponse], error) {
|
|
585
|
+
return c.searchVerticals.CallUnary(ctx, req)
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
// SearchCategory calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.SearchCategory.
|
|
589
|
+
func (c *productsServiceClient) SearchCategory(ctx context.Context, req *connect.Request[entities.SearchCategoryRequest]) (*connect.Response[entities.SearchCategoryResponse], error) {
|
|
590
|
+
return c.searchCategory.CallUnary(ctx, req)
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
// GetVertical calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetVertical.
|
|
594
|
+
func (c *productsServiceClient) GetVertical(ctx context.Context, req *connect.Request[entities.GetVerticalRequest]) (*connect.Response[entities.GetVerticalResponse], error) {
|
|
595
|
+
return c.getVertical.CallUnary(ctx, req)
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// GetCategory calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetCategory.
|
|
599
|
+
func (c *productsServiceClient) GetCategory(ctx context.Context, req *connect.Request[entities.GetCategoryRequest]) (*connect.Response[entities.GetCategoryResponse], error) {
|
|
600
|
+
return c.getCategory.CallUnary(ctx, req)
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// GetAttribute calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetAttribute.
|
|
604
|
+
func (c *productsServiceClient) GetAttribute(ctx context.Context, req *connect.Request[entities.GetAttributeRequest]) (*connect.Response[entities.GetAttributeResponse], error) {
|
|
605
|
+
return c.getAttribute.CallUnary(ctx, req)
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// GetCategoryAttributes calls
|
|
609
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetCategoryAttributes.
|
|
610
|
+
func (c *productsServiceClient) GetCategoryAttributes(ctx context.Context, req *connect.Request[entities.GetCategoryAttributesRequest]) (*connect.Response[entities.GetCategoryAttributesResponse], error) {
|
|
611
|
+
return c.getCategoryAttributes.CallUnary(ctx, req)
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// CreateProduct calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateProduct.
|
|
615
|
+
func (c *productsServiceClient) CreateProduct(ctx context.Context, req *connect.Request[product.CreateProductRequest]) (*connect.Response[product.CreateProductResponse], error) {
|
|
616
|
+
return c.createProduct.CallUnary(ctx, req)
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// UpdateProduct calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProduct.
|
|
620
|
+
func (c *productsServiceClient) UpdateProduct(ctx context.Context, req *connect.Request[product.UpdateProductRequest]) (*connect.Response[product.UpdateProductResponse], error) {
|
|
621
|
+
return c.updateProduct.CallUnary(ctx, req)
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
// AssociateVariantToInventory calls
|
|
625
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.AssociateVariantToInventory.
|
|
626
|
+
func (c *productsServiceClient) AssociateVariantToInventory(ctx context.Context, req *connect.Request[entities.AssociateVariantToInventoryRequest]) (*connect.Response[entities.AssociateVariantToInventoryResponse], error) {
|
|
627
|
+
return c.associateVariantToInventory.CallUnary(ctx, req)
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// CreateOption calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateOption.
|
|
631
|
+
func (c *productsServiceClient) CreateOption(ctx context.Context, req *connect.Request[product.CreateOptionRequest]) (*connect.Response[product.CreateOptionResponse], error) {
|
|
632
|
+
return c.createOption.CallUnary(ctx, req)
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// CreateVariant calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateVariant.
|
|
636
|
+
func (c *productsServiceClient) CreateVariant(ctx context.Context, req *connect.Request[entities.CreateVariantRequest]) (*connect.Response[entities.CreateVariantResponse], error) {
|
|
637
|
+
return c.createVariant.CallUnary(ctx, req)
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// PatchVariantImage calls
|
|
641
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.PatchVariantImage.
|
|
642
|
+
func (c *productsServiceClient) PatchVariantImage(ctx context.Context, req *connect.Request[entities.PatchVariantImageRequest]) (*connect.Response[entities.PatchVariantImageResponse], error) {
|
|
643
|
+
return c.patchVariantImage.CallUnary(ctx, req)
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
// UpdateProductOption calls
|
|
647
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductOption.
|
|
648
|
+
func (c *productsServiceClient) UpdateProductOption(ctx context.Context, req *connect.Request[entities.UpdateProductOptionRequest]) (*connect.Response[entities.UpdateProductOptionResponse], error) {
|
|
649
|
+
return c.updateProductOption.CallUnary(ctx, req)
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// UpdateVariantInventory calls
|
|
653
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateVariantInventory.
|
|
654
|
+
func (c *productsServiceClient) UpdateVariantInventory(ctx context.Context, req *connect.Request[entities.UpdateVariantInventoryRequest]) (*connect.Response[entities.UpdateVariantInventoryResponse], error) {
|
|
655
|
+
return c.updateVariantInventory.CallUnary(ctx, req)
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
// UpdateVariant calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateVariant.
|
|
659
|
+
func (c *productsServiceClient) UpdateVariant(ctx context.Context, req *connect.Request[entities.UpdateVariantRequest]) (*connect.Response[entities.UpdateVariantResponse], error) {
|
|
660
|
+
return c.updateVariant.CallUnary(ctx, req)
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
// DeleteProduct calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteProduct.
|
|
664
|
+
func (c *productsServiceClient) DeleteProduct(ctx context.Context, req *connect.Request[product.DeleteProductRequest]) (*connect.Response[product.DeleteProductResponse], error) {
|
|
665
|
+
return c.deleteProduct.CallUnary(ctx, req)
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
// DeleteVariant calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteVariant.
|
|
669
|
+
func (c *productsServiceClient) DeleteVariant(ctx context.Context, req *connect.Request[product.DeleteVariantRequest]) (*connect.Response[product.DeleteVariantResponse], error) {
|
|
670
|
+
return c.deleteVariant.CallUnary(ctx, req)
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
// DeleteOption calls apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteOption.
|
|
674
|
+
func (c *productsServiceClient) DeleteOption(ctx context.Context, req *connect.Request[product.DeleteOptionRequest]) (*connect.Response[product.DeleteOptionResponse], error) {
|
|
675
|
+
return c.deleteOption.CallUnary(ctx, req)
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// RemoveInventoryItem calls
|
|
679
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService.RemoveInventoryItem.
|
|
680
|
+
func (c *productsServiceClient) RemoveInventoryItem(ctx context.Context, req *connect.Request[product.RemoveInventoryItemRequest]) (*connect.Response[product.RemoveInventoryItemResponse], error) {
|
|
681
|
+
return c.removeInventoryItem.CallUnary(ctx, req)
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
// ProductsServiceHandler is an implementation of the
|
|
685
|
+
// apps.enterprise.interfaces.rpc.products.v1.ProductsService service.
|
|
686
|
+
type ProductsServiceHandler interface {
|
|
687
|
+
CreateCollection(context.Context, *connect.Request[entities.CreateCollectionRequest]) (*connect.Response[entities.CreateCollectionResponse], error)
|
|
688
|
+
GetCollectionByID(context.Context, *connect.Request[entities.GetCollectionByIDRequest]) (*connect.Response[entities.GetCollectionByIDResponse], error)
|
|
689
|
+
UpdateCollection(context.Context, *connect.Request[entities.UpdateCollectionRequest]) (*connect.Response[entities.UpdateCollectionResponse], error)
|
|
690
|
+
DeleteCollectionByID(context.Context, *connect.Request[entities.DeleteCollectionByIDRequest]) (*connect.Response[entities.DeleteCollectionByIDResponse], error)
|
|
691
|
+
CreateProductType(context.Context, *connect.Request[entities.CreateProductTypeRequest]) (*connect.Response[entities.CreateProductTypeResponse], error)
|
|
692
|
+
GetProductTypeByID(context.Context, *connect.Request[entities.GetProductTypeByIDRequest]) (*connect.Response[entities.GetProductTypeByIDResponse], error)
|
|
693
|
+
UpdateProductType(context.Context, *connect.Request[entities.UpdateProductTypeRequest]) (*connect.Response[entities.UpdateProductTypeResponse], error)
|
|
694
|
+
DeleteProductTypeByID(context.Context, *connect.Request[entities.DeleteProductTypeByIDRequest]) (*connect.Response[entities.DeleteProductTypeByIDResponse], error)
|
|
695
|
+
CreateProductCategory(context.Context, *connect.Request[entities.CreateProductCategoryRequest]) (*connect.Response[entities.CreateProductCategoryResponse], error)
|
|
696
|
+
GetProductCategoryByID(context.Context, *connect.Request[entities.GetProductCategoryByIDRequest]) (*connect.Response[entities.GetProductCategoryByIDResponse], error)
|
|
697
|
+
UpdateProductCategory(context.Context, *connect.Request[entities.UpdateProductCategoryRequest]) (*connect.Response[entities.UpdateProductCategoryResponse], error)
|
|
698
|
+
DeleteProductCategoryByID(context.Context, *connect.Request[entities.DeleteProductCategoryByIDRequest]) (*connect.Response[entities.DeleteProductCategoryByIDResponse], error)
|
|
699
|
+
UpdateProductCategoryTaxonomy(context.Context, *connect.Request[entities.UpdateProductCategoryTaxonomyRequest]) (*connect.Response[entities.UpdateProductCategoryTaxonomyResponse], error)
|
|
700
|
+
CreateTag(context.Context, *connect.Request[entities.CreateTagRequest]) (*connect.Response[entities.CreateTagResponse], error)
|
|
701
|
+
GetTagByID(context.Context, *connect.Request[entities.GetTagByIDRequest]) (*connect.Response[entities.GetTagByIDResponse], error)
|
|
702
|
+
UpdateTag(context.Context, *connect.Request[entities.UpdateTagRequest]) (*connect.Response[entities.UpdateTagResponse], error)
|
|
703
|
+
DeleteTagByID(context.Context, *connect.Request[entities.DeleteTagByIDRequest]) (*connect.Response[entities.DeleteTagByIDResponse], error)
|
|
704
|
+
ListTags(context.Context, *connect.Request[entities.ListTagsRequest]) (*connect.Response[entities.ListTagsResponse], error)
|
|
705
|
+
SearchVerticals(context.Context, *connect.Request[entities.SearchVerticalsRequest]) (*connect.Response[entities.SearchVerticalsResponse], error)
|
|
706
|
+
SearchCategory(context.Context, *connect.Request[entities.SearchCategoryRequest]) (*connect.Response[entities.SearchCategoryResponse], error)
|
|
707
|
+
GetVertical(context.Context, *connect.Request[entities.GetVerticalRequest]) (*connect.Response[entities.GetVerticalResponse], error)
|
|
708
|
+
GetCategory(context.Context, *connect.Request[entities.GetCategoryRequest]) (*connect.Response[entities.GetCategoryResponse], error)
|
|
709
|
+
GetAttribute(context.Context, *connect.Request[entities.GetAttributeRequest]) (*connect.Response[entities.GetAttributeResponse], error)
|
|
710
|
+
GetCategoryAttributes(context.Context, *connect.Request[entities.GetCategoryAttributesRequest]) (*connect.Response[entities.GetCategoryAttributesResponse], error)
|
|
711
|
+
CreateProduct(context.Context, *connect.Request[product.CreateProductRequest]) (*connect.Response[product.CreateProductResponse], error)
|
|
712
|
+
UpdateProduct(context.Context, *connect.Request[product.UpdateProductRequest]) (*connect.Response[product.UpdateProductResponse], error)
|
|
713
|
+
AssociateVariantToInventory(context.Context, *connect.Request[entities.AssociateVariantToInventoryRequest]) (*connect.Response[entities.AssociateVariantToInventoryResponse], error)
|
|
714
|
+
CreateOption(context.Context, *connect.Request[product.CreateOptionRequest]) (*connect.Response[product.CreateOptionResponse], error)
|
|
715
|
+
CreateVariant(context.Context, *connect.Request[entities.CreateVariantRequest]) (*connect.Response[entities.CreateVariantResponse], error)
|
|
716
|
+
PatchVariantImage(context.Context, *connect.Request[entities.PatchVariantImageRequest]) (*connect.Response[entities.PatchVariantImageResponse], error)
|
|
717
|
+
UpdateProductOption(context.Context, *connect.Request[entities.UpdateProductOptionRequest]) (*connect.Response[entities.UpdateProductOptionResponse], error)
|
|
718
|
+
UpdateVariantInventory(context.Context, *connect.Request[entities.UpdateVariantInventoryRequest]) (*connect.Response[entities.UpdateVariantInventoryResponse], error)
|
|
719
|
+
UpdateVariant(context.Context, *connect.Request[entities.UpdateVariantRequest]) (*connect.Response[entities.UpdateVariantResponse], error)
|
|
720
|
+
DeleteProduct(context.Context, *connect.Request[product.DeleteProductRequest]) (*connect.Response[product.DeleteProductResponse], error)
|
|
721
|
+
DeleteVariant(context.Context, *connect.Request[product.DeleteVariantRequest]) (*connect.Response[product.DeleteVariantResponse], error)
|
|
722
|
+
DeleteOption(context.Context, *connect.Request[product.DeleteOptionRequest]) (*connect.Response[product.DeleteOptionResponse], error)
|
|
723
|
+
RemoveInventoryItem(context.Context, *connect.Request[product.RemoveInventoryItemRequest]) (*connect.Response[product.RemoveInventoryItemResponse], error)
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// NewProductsServiceHandler builds an HTTP handler from the service implementation. It returns the
|
|
727
|
+
// path on which to mount the handler and the handler itself.
|
|
728
|
+
//
|
|
729
|
+
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
|
730
|
+
// and JSON codecs. They also support gzip compression.
|
|
731
|
+
func NewProductsServiceHandler(svc ProductsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
|
732
|
+
productsServiceMethods := v1.File_src_proto_products_v1_service_proto.Services().ByName("ProductsService").Methods()
|
|
733
|
+
productsServiceCreateCollectionHandler := connect.NewUnaryHandler(
|
|
734
|
+
ProductsServiceCreateCollectionProcedure,
|
|
735
|
+
svc.CreateCollection,
|
|
736
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateCollection")),
|
|
737
|
+
connect.WithHandlerOptions(opts...),
|
|
738
|
+
)
|
|
739
|
+
productsServiceGetCollectionByIDHandler := connect.NewUnaryHandler(
|
|
740
|
+
ProductsServiceGetCollectionByIDProcedure,
|
|
741
|
+
svc.GetCollectionByID,
|
|
742
|
+
connect.WithSchema(productsServiceMethods.ByName("GetCollectionByID")),
|
|
743
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
744
|
+
connect.WithHandlerOptions(opts...),
|
|
745
|
+
)
|
|
746
|
+
productsServiceUpdateCollectionHandler := connect.NewUnaryHandler(
|
|
747
|
+
ProductsServiceUpdateCollectionProcedure,
|
|
748
|
+
svc.UpdateCollection,
|
|
749
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateCollection")),
|
|
750
|
+
connect.WithHandlerOptions(opts...),
|
|
751
|
+
)
|
|
752
|
+
productsServiceDeleteCollectionByIDHandler := connect.NewUnaryHandler(
|
|
753
|
+
ProductsServiceDeleteCollectionByIDProcedure,
|
|
754
|
+
svc.DeleteCollectionByID,
|
|
755
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteCollectionByID")),
|
|
756
|
+
connect.WithHandlerOptions(opts...),
|
|
757
|
+
)
|
|
758
|
+
productsServiceCreateProductTypeHandler := connect.NewUnaryHandler(
|
|
759
|
+
ProductsServiceCreateProductTypeProcedure,
|
|
760
|
+
svc.CreateProductType,
|
|
761
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateProductType")),
|
|
762
|
+
connect.WithHandlerOptions(opts...),
|
|
763
|
+
)
|
|
764
|
+
productsServiceGetProductTypeByIDHandler := connect.NewUnaryHandler(
|
|
765
|
+
ProductsServiceGetProductTypeByIDProcedure,
|
|
766
|
+
svc.GetProductTypeByID,
|
|
767
|
+
connect.WithSchema(productsServiceMethods.ByName("GetProductTypeByID")),
|
|
768
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
769
|
+
connect.WithHandlerOptions(opts...),
|
|
770
|
+
)
|
|
771
|
+
productsServiceUpdateProductTypeHandler := connect.NewUnaryHandler(
|
|
772
|
+
ProductsServiceUpdateProductTypeProcedure,
|
|
773
|
+
svc.UpdateProductType,
|
|
774
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductType")),
|
|
775
|
+
connect.WithHandlerOptions(opts...),
|
|
776
|
+
)
|
|
777
|
+
productsServiceDeleteProductTypeByIDHandler := connect.NewUnaryHandler(
|
|
778
|
+
ProductsServiceDeleteProductTypeByIDProcedure,
|
|
779
|
+
svc.DeleteProductTypeByID,
|
|
780
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteProductTypeByID")),
|
|
781
|
+
connect.WithHandlerOptions(opts...),
|
|
782
|
+
)
|
|
783
|
+
productsServiceCreateProductCategoryHandler := connect.NewUnaryHandler(
|
|
784
|
+
ProductsServiceCreateProductCategoryProcedure,
|
|
785
|
+
svc.CreateProductCategory,
|
|
786
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateProductCategory")),
|
|
787
|
+
connect.WithHandlerOptions(opts...),
|
|
788
|
+
)
|
|
789
|
+
productsServiceGetProductCategoryByIDHandler := connect.NewUnaryHandler(
|
|
790
|
+
ProductsServiceGetProductCategoryByIDProcedure,
|
|
791
|
+
svc.GetProductCategoryByID,
|
|
792
|
+
connect.WithSchema(productsServiceMethods.ByName("GetProductCategoryByID")),
|
|
793
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
794
|
+
connect.WithHandlerOptions(opts...),
|
|
795
|
+
)
|
|
796
|
+
productsServiceUpdateProductCategoryHandler := connect.NewUnaryHandler(
|
|
797
|
+
ProductsServiceUpdateProductCategoryProcedure,
|
|
798
|
+
svc.UpdateProductCategory,
|
|
799
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductCategory")),
|
|
800
|
+
connect.WithHandlerOptions(opts...),
|
|
801
|
+
)
|
|
802
|
+
productsServiceDeleteProductCategoryByIDHandler := connect.NewUnaryHandler(
|
|
803
|
+
ProductsServiceDeleteProductCategoryByIDProcedure,
|
|
804
|
+
svc.DeleteProductCategoryByID,
|
|
805
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteProductCategoryByID")),
|
|
806
|
+
connect.WithHandlerOptions(opts...),
|
|
807
|
+
)
|
|
808
|
+
productsServiceUpdateProductCategoryTaxonomyHandler := connect.NewUnaryHandler(
|
|
809
|
+
ProductsServiceUpdateProductCategoryTaxonomyProcedure,
|
|
810
|
+
svc.UpdateProductCategoryTaxonomy,
|
|
811
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductCategoryTaxonomy")),
|
|
812
|
+
connect.WithHandlerOptions(opts...),
|
|
813
|
+
)
|
|
814
|
+
productsServiceCreateTagHandler := connect.NewUnaryHandler(
|
|
815
|
+
ProductsServiceCreateTagProcedure,
|
|
816
|
+
svc.CreateTag,
|
|
817
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateTag")),
|
|
818
|
+
connect.WithHandlerOptions(opts...),
|
|
819
|
+
)
|
|
820
|
+
productsServiceGetTagByIDHandler := connect.NewUnaryHandler(
|
|
821
|
+
ProductsServiceGetTagByIDProcedure,
|
|
822
|
+
svc.GetTagByID,
|
|
823
|
+
connect.WithSchema(productsServiceMethods.ByName("GetTagByID")),
|
|
824
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
825
|
+
connect.WithHandlerOptions(opts...),
|
|
826
|
+
)
|
|
827
|
+
productsServiceUpdateTagHandler := connect.NewUnaryHandler(
|
|
828
|
+
ProductsServiceUpdateTagProcedure,
|
|
829
|
+
svc.UpdateTag,
|
|
830
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateTag")),
|
|
831
|
+
connect.WithHandlerOptions(opts...),
|
|
832
|
+
)
|
|
833
|
+
productsServiceDeleteTagByIDHandler := connect.NewUnaryHandler(
|
|
834
|
+
ProductsServiceDeleteTagByIDProcedure,
|
|
835
|
+
svc.DeleteTagByID,
|
|
836
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteTagByID")),
|
|
837
|
+
connect.WithHandlerOptions(opts...),
|
|
838
|
+
)
|
|
839
|
+
productsServiceListTagsHandler := connect.NewUnaryHandler(
|
|
840
|
+
ProductsServiceListTagsProcedure,
|
|
841
|
+
svc.ListTags,
|
|
842
|
+
connect.WithSchema(productsServiceMethods.ByName("ListTags")),
|
|
843
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
844
|
+
connect.WithHandlerOptions(opts...),
|
|
845
|
+
)
|
|
846
|
+
productsServiceSearchVerticalsHandler := connect.NewUnaryHandler(
|
|
847
|
+
ProductsServiceSearchVerticalsProcedure,
|
|
848
|
+
svc.SearchVerticals,
|
|
849
|
+
connect.WithSchema(productsServiceMethods.ByName("SearchVerticals")),
|
|
850
|
+
connect.WithHandlerOptions(opts...),
|
|
851
|
+
)
|
|
852
|
+
productsServiceSearchCategoryHandler := connect.NewUnaryHandler(
|
|
853
|
+
ProductsServiceSearchCategoryProcedure,
|
|
854
|
+
svc.SearchCategory,
|
|
855
|
+
connect.WithSchema(productsServiceMethods.ByName("SearchCategory")),
|
|
856
|
+
connect.WithHandlerOptions(opts...),
|
|
857
|
+
)
|
|
858
|
+
productsServiceGetVerticalHandler := connect.NewUnaryHandler(
|
|
859
|
+
ProductsServiceGetVerticalProcedure,
|
|
860
|
+
svc.GetVertical,
|
|
861
|
+
connect.WithSchema(productsServiceMethods.ByName("GetVertical")),
|
|
862
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
863
|
+
connect.WithHandlerOptions(opts...),
|
|
864
|
+
)
|
|
865
|
+
productsServiceGetCategoryHandler := connect.NewUnaryHandler(
|
|
866
|
+
ProductsServiceGetCategoryProcedure,
|
|
867
|
+
svc.GetCategory,
|
|
868
|
+
connect.WithSchema(productsServiceMethods.ByName("GetCategory")),
|
|
869
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
870
|
+
connect.WithHandlerOptions(opts...),
|
|
871
|
+
)
|
|
872
|
+
productsServiceGetAttributeHandler := connect.NewUnaryHandler(
|
|
873
|
+
ProductsServiceGetAttributeProcedure,
|
|
874
|
+
svc.GetAttribute,
|
|
875
|
+
connect.WithSchema(productsServiceMethods.ByName("GetAttribute")),
|
|
876
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
877
|
+
connect.WithHandlerOptions(opts...),
|
|
878
|
+
)
|
|
879
|
+
productsServiceGetCategoryAttributesHandler := connect.NewUnaryHandler(
|
|
880
|
+
ProductsServiceGetCategoryAttributesProcedure,
|
|
881
|
+
svc.GetCategoryAttributes,
|
|
882
|
+
connect.WithSchema(productsServiceMethods.ByName("GetCategoryAttributes")),
|
|
883
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
884
|
+
connect.WithHandlerOptions(opts...),
|
|
885
|
+
)
|
|
886
|
+
productsServiceCreateProductHandler := connect.NewUnaryHandler(
|
|
887
|
+
ProductsServiceCreateProductProcedure,
|
|
888
|
+
svc.CreateProduct,
|
|
889
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateProduct")),
|
|
890
|
+
connect.WithHandlerOptions(opts...),
|
|
891
|
+
)
|
|
892
|
+
productsServiceUpdateProductHandler := connect.NewUnaryHandler(
|
|
893
|
+
ProductsServiceUpdateProductProcedure,
|
|
894
|
+
svc.UpdateProduct,
|
|
895
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProduct")),
|
|
896
|
+
connect.WithHandlerOptions(opts...),
|
|
897
|
+
)
|
|
898
|
+
productsServiceAssociateVariantToInventoryHandler := connect.NewUnaryHandler(
|
|
899
|
+
ProductsServiceAssociateVariantToInventoryProcedure,
|
|
900
|
+
svc.AssociateVariantToInventory,
|
|
901
|
+
connect.WithSchema(productsServiceMethods.ByName("AssociateVariantToInventory")),
|
|
902
|
+
connect.WithHandlerOptions(opts...),
|
|
903
|
+
)
|
|
904
|
+
productsServiceCreateOptionHandler := connect.NewUnaryHandler(
|
|
905
|
+
ProductsServiceCreateOptionProcedure,
|
|
906
|
+
svc.CreateOption,
|
|
907
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateOption")),
|
|
908
|
+
connect.WithHandlerOptions(opts...),
|
|
909
|
+
)
|
|
910
|
+
productsServiceCreateVariantHandler := connect.NewUnaryHandler(
|
|
911
|
+
ProductsServiceCreateVariantProcedure,
|
|
912
|
+
svc.CreateVariant,
|
|
913
|
+
connect.WithSchema(productsServiceMethods.ByName("CreateVariant")),
|
|
914
|
+
connect.WithHandlerOptions(opts...),
|
|
915
|
+
)
|
|
916
|
+
productsServicePatchVariantImageHandler := connect.NewUnaryHandler(
|
|
917
|
+
ProductsServicePatchVariantImageProcedure,
|
|
918
|
+
svc.PatchVariantImage,
|
|
919
|
+
connect.WithSchema(productsServiceMethods.ByName("PatchVariantImage")),
|
|
920
|
+
connect.WithHandlerOptions(opts...),
|
|
921
|
+
)
|
|
922
|
+
productsServiceUpdateProductOptionHandler := connect.NewUnaryHandler(
|
|
923
|
+
ProductsServiceUpdateProductOptionProcedure,
|
|
924
|
+
svc.UpdateProductOption,
|
|
925
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateProductOption")),
|
|
926
|
+
connect.WithHandlerOptions(opts...),
|
|
927
|
+
)
|
|
928
|
+
productsServiceUpdateVariantInventoryHandler := connect.NewUnaryHandler(
|
|
929
|
+
ProductsServiceUpdateVariantInventoryProcedure,
|
|
930
|
+
svc.UpdateVariantInventory,
|
|
931
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateVariantInventory")),
|
|
932
|
+
connect.WithHandlerOptions(opts...),
|
|
933
|
+
)
|
|
934
|
+
productsServiceUpdateVariantHandler := connect.NewUnaryHandler(
|
|
935
|
+
ProductsServiceUpdateVariantProcedure,
|
|
936
|
+
svc.UpdateVariant,
|
|
937
|
+
connect.WithSchema(productsServiceMethods.ByName("UpdateVariant")),
|
|
938
|
+
connect.WithHandlerOptions(opts...),
|
|
939
|
+
)
|
|
940
|
+
productsServiceDeleteProductHandler := connect.NewUnaryHandler(
|
|
941
|
+
ProductsServiceDeleteProductProcedure,
|
|
942
|
+
svc.DeleteProduct,
|
|
943
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteProduct")),
|
|
944
|
+
connect.WithHandlerOptions(opts...),
|
|
945
|
+
)
|
|
946
|
+
productsServiceDeleteVariantHandler := connect.NewUnaryHandler(
|
|
947
|
+
ProductsServiceDeleteVariantProcedure,
|
|
948
|
+
svc.DeleteVariant,
|
|
949
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteVariant")),
|
|
950
|
+
connect.WithHandlerOptions(opts...),
|
|
951
|
+
)
|
|
952
|
+
productsServiceDeleteOptionHandler := connect.NewUnaryHandler(
|
|
953
|
+
ProductsServiceDeleteOptionProcedure,
|
|
954
|
+
svc.DeleteOption,
|
|
955
|
+
connect.WithSchema(productsServiceMethods.ByName("DeleteOption")),
|
|
956
|
+
connect.WithHandlerOptions(opts...),
|
|
957
|
+
)
|
|
958
|
+
productsServiceRemoveInventoryItemHandler := connect.NewUnaryHandler(
|
|
959
|
+
ProductsServiceRemoveInventoryItemProcedure,
|
|
960
|
+
svc.RemoveInventoryItem,
|
|
961
|
+
connect.WithSchema(productsServiceMethods.ByName("RemoveInventoryItem")),
|
|
962
|
+
connect.WithHandlerOptions(opts...),
|
|
963
|
+
)
|
|
964
|
+
return "/apps.enterprise.interfaces.rpc.products.v1.ProductsService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
965
|
+
switch r.URL.Path {
|
|
966
|
+
case ProductsServiceCreateCollectionProcedure:
|
|
967
|
+
productsServiceCreateCollectionHandler.ServeHTTP(w, r)
|
|
968
|
+
case ProductsServiceGetCollectionByIDProcedure:
|
|
969
|
+
productsServiceGetCollectionByIDHandler.ServeHTTP(w, r)
|
|
970
|
+
case ProductsServiceUpdateCollectionProcedure:
|
|
971
|
+
productsServiceUpdateCollectionHandler.ServeHTTP(w, r)
|
|
972
|
+
case ProductsServiceDeleteCollectionByIDProcedure:
|
|
973
|
+
productsServiceDeleteCollectionByIDHandler.ServeHTTP(w, r)
|
|
974
|
+
case ProductsServiceCreateProductTypeProcedure:
|
|
975
|
+
productsServiceCreateProductTypeHandler.ServeHTTP(w, r)
|
|
976
|
+
case ProductsServiceGetProductTypeByIDProcedure:
|
|
977
|
+
productsServiceGetProductTypeByIDHandler.ServeHTTP(w, r)
|
|
978
|
+
case ProductsServiceUpdateProductTypeProcedure:
|
|
979
|
+
productsServiceUpdateProductTypeHandler.ServeHTTP(w, r)
|
|
980
|
+
case ProductsServiceDeleteProductTypeByIDProcedure:
|
|
981
|
+
productsServiceDeleteProductTypeByIDHandler.ServeHTTP(w, r)
|
|
982
|
+
case ProductsServiceCreateProductCategoryProcedure:
|
|
983
|
+
productsServiceCreateProductCategoryHandler.ServeHTTP(w, r)
|
|
984
|
+
case ProductsServiceGetProductCategoryByIDProcedure:
|
|
985
|
+
productsServiceGetProductCategoryByIDHandler.ServeHTTP(w, r)
|
|
986
|
+
case ProductsServiceUpdateProductCategoryProcedure:
|
|
987
|
+
productsServiceUpdateProductCategoryHandler.ServeHTTP(w, r)
|
|
988
|
+
case ProductsServiceDeleteProductCategoryByIDProcedure:
|
|
989
|
+
productsServiceDeleteProductCategoryByIDHandler.ServeHTTP(w, r)
|
|
990
|
+
case ProductsServiceUpdateProductCategoryTaxonomyProcedure:
|
|
991
|
+
productsServiceUpdateProductCategoryTaxonomyHandler.ServeHTTP(w, r)
|
|
992
|
+
case ProductsServiceCreateTagProcedure:
|
|
993
|
+
productsServiceCreateTagHandler.ServeHTTP(w, r)
|
|
994
|
+
case ProductsServiceGetTagByIDProcedure:
|
|
995
|
+
productsServiceGetTagByIDHandler.ServeHTTP(w, r)
|
|
996
|
+
case ProductsServiceUpdateTagProcedure:
|
|
997
|
+
productsServiceUpdateTagHandler.ServeHTTP(w, r)
|
|
998
|
+
case ProductsServiceDeleteTagByIDProcedure:
|
|
999
|
+
productsServiceDeleteTagByIDHandler.ServeHTTP(w, r)
|
|
1000
|
+
case ProductsServiceListTagsProcedure:
|
|
1001
|
+
productsServiceListTagsHandler.ServeHTTP(w, r)
|
|
1002
|
+
case ProductsServiceSearchVerticalsProcedure:
|
|
1003
|
+
productsServiceSearchVerticalsHandler.ServeHTTP(w, r)
|
|
1004
|
+
case ProductsServiceSearchCategoryProcedure:
|
|
1005
|
+
productsServiceSearchCategoryHandler.ServeHTTP(w, r)
|
|
1006
|
+
case ProductsServiceGetVerticalProcedure:
|
|
1007
|
+
productsServiceGetVerticalHandler.ServeHTTP(w, r)
|
|
1008
|
+
case ProductsServiceGetCategoryProcedure:
|
|
1009
|
+
productsServiceGetCategoryHandler.ServeHTTP(w, r)
|
|
1010
|
+
case ProductsServiceGetAttributeProcedure:
|
|
1011
|
+
productsServiceGetAttributeHandler.ServeHTTP(w, r)
|
|
1012
|
+
case ProductsServiceGetCategoryAttributesProcedure:
|
|
1013
|
+
productsServiceGetCategoryAttributesHandler.ServeHTTP(w, r)
|
|
1014
|
+
case ProductsServiceCreateProductProcedure:
|
|
1015
|
+
productsServiceCreateProductHandler.ServeHTTP(w, r)
|
|
1016
|
+
case ProductsServiceUpdateProductProcedure:
|
|
1017
|
+
productsServiceUpdateProductHandler.ServeHTTP(w, r)
|
|
1018
|
+
case ProductsServiceAssociateVariantToInventoryProcedure:
|
|
1019
|
+
productsServiceAssociateVariantToInventoryHandler.ServeHTTP(w, r)
|
|
1020
|
+
case ProductsServiceCreateOptionProcedure:
|
|
1021
|
+
productsServiceCreateOptionHandler.ServeHTTP(w, r)
|
|
1022
|
+
case ProductsServiceCreateVariantProcedure:
|
|
1023
|
+
productsServiceCreateVariantHandler.ServeHTTP(w, r)
|
|
1024
|
+
case ProductsServicePatchVariantImageProcedure:
|
|
1025
|
+
productsServicePatchVariantImageHandler.ServeHTTP(w, r)
|
|
1026
|
+
case ProductsServiceUpdateProductOptionProcedure:
|
|
1027
|
+
productsServiceUpdateProductOptionHandler.ServeHTTP(w, r)
|
|
1028
|
+
case ProductsServiceUpdateVariantInventoryProcedure:
|
|
1029
|
+
productsServiceUpdateVariantInventoryHandler.ServeHTTP(w, r)
|
|
1030
|
+
case ProductsServiceUpdateVariantProcedure:
|
|
1031
|
+
productsServiceUpdateVariantHandler.ServeHTTP(w, r)
|
|
1032
|
+
case ProductsServiceDeleteProductProcedure:
|
|
1033
|
+
productsServiceDeleteProductHandler.ServeHTTP(w, r)
|
|
1034
|
+
case ProductsServiceDeleteVariantProcedure:
|
|
1035
|
+
productsServiceDeleteVariantHandler.ServeHTTP(w, r)
|
|
1036
|
+
case ProductsServiceDeleteOptionProcedure:
|
|
1037
|
+
productsServiceDeleteOptionHandler.ServeHTTP(w, r)
|
|
1038
|
+
case ProductsServiceRemoveInventoryItemProcedure:
|
|
1039
|
+
productsServiceRemoveInventoryItemHandler.ServeHTTP(w, r)
|
|
1040
|
+
default:
|
|
1041
|
+
http.NotFound(w, r)
|
|
1042
|
+
}
|
|
1043
|
+
})
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
// UnimplementedProductsServiceHandler returns CodeUnimplemented from all methods.
|
|
1047
|
+
type UnimplementedProductsServiceHandler struct{}
|
|
1048
|
+
|
|
1049
|
+
func (UnimplementedProductsServiceHandler) CreateCollection(context.Context, *connect.Request[entities.CreateCollectionRequest]) (*connect.Response[entities.CreateCollectionResponse], error) {
|
|
1050
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateCollection is not implemented"))
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
func (UnimplementedProductsServiceHandler) GetCollectionByID(context.Context, *connect.Request[entities.GetCollectionByIDRequest]) (*connect.Response[entities.GetCollectionByIDResponse], error) {
|
|
1054
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetCollectionByID is not implemented"))
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
func (UnimplementedProductsServiceHandler) UpdateCollection(context.Context, *connect.Request[entities.UpdateCollectionRequest]) (*connect.Response[entities.UpdateCollectionResponse], error) {
|
|
1058
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateCollection is not implemented"))
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
func (UnimplementedProductsServiceHandler) DeleteCollectionByID(context.Context, *connect.Request[entities.DeleteCollectionByIDRequest]) (*connect.Response[entities.DeleteCollectionByIDResponse], error) {
|
|
1062
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteCollectionByID is not implemented"))
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
func (UnimplementedProductsServiceHandler) CreateProductType(context.Context, *connect.Request[entities.CreateProductTypeRequest]) (*connect.Response[entities.CreateProductTypeResponse], error) {
|
|
1066
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateProductType is not implemented"))
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
func (UnimplementedProductsServiceHandler) GetProductTypeByID(context.Context, *connect.Request[entities.GetProductTypeByIDRequest]) (*connect.Response[entities.GetProductTypeByIDResponse], error) {
|
|
1070
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetProductTypeByID is not implemented"))
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
func (UnimplementedProductsServiceHandler) UpdateProductType(context.Context, *connect.Request[entities.UpdateProductTypeRequest]) (*connect.Response[entities.UpdateProductTypeResponse], error) {
|
|
1074
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductType is not implemented"))
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
func (UnimplementedProductsServiceHandler) DeleteProductTypeByID(context.Context, *connect.Request[entities.DeleteProductTypeByIDRequest]) (*connect.Response[entities.DeleteProductTypeByIDResponse], error) {
|
|
1078
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteProductTypeByID is not implemented"))
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
func (UnimplementedProductsServiceHandler) CreateProductCategory(context.Context, *connect.Request[entities.CreateProductCategoryRequest]) (*connect.Response[entities.CreateProductCategoryResponse], error) {
|
|
1082
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateProductCategory is not implemented"))
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
func (UnimplementedProductsServiceHandler) GetProductCategoryByID(context.Context, *connect.Request[entities.GetProductCategoryByIDRequest]) (*connect.Response[entities.GetProductCategoryByIDResponse], error) {
|
|
1086
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetProductCategoryByID is not implemented"))
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
func (UnimplementedProductsServiceHandler) UpdateProductCategory(context.Context, *connect.Request[entities.UpdateProductCategoryRequest]) (*connect.Response[entities.UpdateProductCategoryResponse], error) {
|
|
1090
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductCategory is not implemented"))
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
func (UnimplementedProductsServiceHandler) DeleteProductCategoryByID(context.Context, *connect.Request[entities.DeleteProductCategoryByIDRequest]) (*connect.Response[entities.DeleteProductCategoryByIDResponse], error) {
|
|
1094
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteProductCategoryByID is not implemented"))
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
func (UnimplementedProductsServiceHandler) UpdateProductCategoryTaxonomy(context.Context, *connect.Request[entities.UpdateProductCategoryTaxonomyRequest]) (*connect.Response[entities.UpdateProductCategoryTaxonomyResponse], error) {
|
|
1098
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductCategoryTaxonomy is not implemented"))
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
func (UnimplementedProductsServiceHandler) CreateTag(context.Context, *connect.Request[entities.CreateTagRequest]) (*connect.Response[entities.CreateTagResponse], error) {
|
|
1102
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateTag is not implemented"))
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
func (UnimplementedProductsServiceHandler) GetTagByID(context.Context, *connect.Request[entities.GetTagByIDRequest]) (*connect.Response[entities.GetTagByIDResponse], error) {
|
|
1106
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetTagByID is not implemented"))
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
func (UnimplementedProductsServiceHandler) UpdateTag(context.Context, *connect.Request[entities.UpdateTagRequest]) (*connect.Response[entities.UpdateTagResponse], error) {
|
|
1110
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateTag is not implemented"))
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
func (UnimplementedProductsServiceHandler) DeleteTagByID(context.Context, *connect.Request[entities.DeleteTagByIDRequest]) (*connect.Response[entities.DeleteTagByIDResponse], error) {
|
|
1114
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteTagByID is not implemented"))
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
func (UnimplementedProductsServiceHandler) ListTags(context.Context, *connect.Request[entities.ListTagsRequest]) (*connect.Response[entities.ListTagsResponse], error) {
|
|
1118
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.ListTags is not implemented"))
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
func (UnimplementedProductsServiceHandler) SearchVerticals(context.Context, *connect.Request[entities.SearchVerticalsRequest]) (*connect.Response[entities.SearchVerticalsResponse], error) {
|
|
1122
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.SearchVerticals is not implemented"))
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
func (UnimplementedProductsServiceHandler) SearchCategory(context.Context, *connect.Request[entities.SearchCategoryRequest]) (*connect.Response[entities.SearchCategoryResponse], error) {
|
|
1126
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.SearchCategory is not implemented"))
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
func (UnimplementedProductsServiceHandler) GetVertical(context.Context, *connect.Request[entities.GetVerticalRequest]) (*connect.Response[entities.GetVerticalResponse], error) {
|
|
1130
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetVertical is not implemented"))
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
func (UnimplementedProductsServiceHandler) GetCategory(context.Context, *connect.Request[entities.GetCategoryRequest]) (*connect.Response[entities.GetCategoryResponse], error) {
|
|
1134
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetCategory is not implemented"))
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
func (UnimplementedProductsServiceHandler) GetAttribute(context.Context, *connect.Request[entities.GetAttributeRequest]) (*connect.Response[entities.GetAttributeResponse], error) {
|
|
1138
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetAttribute is not implemented"))
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
func (UnimplementedProductsServiceHandler) GetCategoryAttributes(context.Context, *connect.Request[entities.GetCategoryAttributesRequest]) (*connect.Response[entities.GetCategoryAttributesResponse], error) {
|
|
1142
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.GetCategoryAttributes is not implemented"))
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
func (UnimplementedProductsServiceHandler) CreateProduct(context.Context, *connect.Request[product.CreateProductRequest]) (*connect.Response[product.CreateProductResponse], error) {
|
|
1146
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateProduct is not implemented"))
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
func (UnimplementedProductsServiceHandler) UpdateProduct(context.Context, *connect.Request[product.UpdateProductRequest]) (*connect.Response[product.UpdateProductResponse], error) {
|
|
1150
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProduct is not implemented"))
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
func (UnimplementedProductsServiceHandler) AssociateVariantToInventory(context.Context, *connect.Request[entities.AssociateVariantToInventoryRequest]) (*connect.Response[entities.AssociateVariantToInventoryResponse], error) {
|
|
1154
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.AssociateVariantToInventory is not implemented"))
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
func (UnimplementedProductsServiceHandler) CreateOption(context.Context, *connect.Request[product.CreateOptionRequest]) (*connect.Response[product.CreateOptionResponse], error) {
|
|
1158
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateOption is not implemented"))
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
func (UnimplementedProductsServiceHandler) CreateVariant(context.Context, *connect.Request[entities.CreateVariantRequest]) (*connect.Response[entities.CreateVariantResponse], error) {
|
|
1162
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.CreateVariant is not implemented"))
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
func (UnimplementedProductsServiceHandler) PatchVariantImage(context.Context, *connect.Request[entities.PatchVariantImageRequest]) (*connect.Response[entities.PatchVariantImageResponse], error) {
|
|
1166
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.PatchVariantImage is not implemented"))
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
func (UnimplementedProductsServiceHandler) UpdateProductOption(context.Context, *connect.Request[entities.UpdateProductOptionRequest]) (*connect.Response[entities.UpdateProductOptionResponse], error) {
|
|
1170
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateProductOption is not implemented"))
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
func (UnimplementedProductsServiceHandler) UpdateVariantInventory(context.Context, *connect.Request[entities.UpdateVariantInventoryRequest]) (*connect.Response[entities.UpdateVariantInventoryResponse], error) {
|
|
1174
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateVariantInventory is not implemented"))
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
func (UnimplementedProductsServiceHandler) UpdateVariant(context.Context, *connect.Request[entities.UpdateVariantRequest]) (*connect.Response[entities.UpdateVariantResponse], error) {
|
|
1178
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.UpdateVariant is not implemented"))
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
func (UnimplementedProductsServiceHandler) DeleteProduct(context.Context, *connect.Request[product.DeleteProductRequest]) (*connect.Response[product.DeleteProductResponse], error) {
|
|
1182
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteProduct is not implemented"))
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
func (UnimplementedProductsServiceHandler) DeleteVariant(context.Context, *connect.Request[product.DeleteVariantRequest]) (*connect.Response[product.DeleteVariantResponse], error) {
|
|
1186
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteVariant is not implemented"))
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
func (UnimplementedProductsServiceHandler) DeleteOption(context.Context, *connect.Request[product.DeleteOptionRequest]) (*connect.Response[product.DeleteOptionResponse], error) {
|
|
1190
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.DeleteOption is not implemented"))
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
func (UnimplementedProductsServiceHandler) RemoveInventoryItem(context.Context, *connect.Request[product.RemoveInventoryItemRequest]) (*connect.Response[product.RemoveInventoryItemResponse], error) {
|
|
1194
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.products.v1.ProductsService.RemoveInventoryItem is not implemented"))
|
|
1195
|
+
}
|