@paakd/api 0.0.3 → 0.0.4
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/package.json +7 -9
- package/buf/validate/validate_pb.ts +0 -5001
- package/gen/buf/validate/validate_pb.ts +0 -4799
- package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
- package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
- package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
- package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
- package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
- package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
- package/gen/src/proto/auth/v1/service.pb.go +0 -119
- package/gen/src/proto/auth/v1/service_pb.ts +0 -152
- package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
- package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
- package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
- package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
- package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
- package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
- package/gen/src/proto/customers/v1/service.pb.go +0 -110
- package/gen/src/proto/customers/v1/service_pb.ts +0 -121
- package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
- package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
- package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
- package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
- package/gen/src/proto/files/v1/service.pb.go +0 -85
- package/gen/src/proto/files/v1/service_pb.ts +0 -65
- package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
- package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
- package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
- package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
- package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
- package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
- package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
- package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
- package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
- package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
- package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
- package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
- package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
- package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
- package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
- package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
- package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
- package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
- package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
- package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
- package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
- package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
- package/gen/src/proto/products/v1/service.pb.go +0 -250
- package/gen/src/proto/products/v1/service_pb.ts +0 -429
- package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
- package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
- package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
- package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
- package/gen/src/proto/promotions/v1/service.pb.go +0 -98
- package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
- package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
- package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
- package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
- package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
- package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
- package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
2
|
-
// @generated from file src/proto/products/v1/entities/collection.proto (syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import type { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2'
|
|
6
|
-
import { fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2'
|
|
7
|
-
import { file_buf_validate_validate } from '../../../../../buf/validate/validate_pb'
|
|
8
|
-
import type { Message } from '@bufbuild/protobuf'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Describes the file src/proto/products/v1/entities/collection.proto.
|
|
12
|
-
*/
|
|
13
|
-
export const file_src_proto_products_v1_entities_collection: GenFile =
|
|
14
|
-
/*@__PURE__*/
|
|
15
|
-
fileDesc(
|
|
16
|
-
'Ci9zcmMvcHJvdG8vcHJvZHVjdHMvdjEvZW50aXRpZXMvY29sbGVjdGlvbi5wcm90byKcAQoXQ3JlYXRlQ29sbGVjdGlvblJlcXVlc3QSGAoFdGl0bGUYASABKAlCCbpIBnIEEAEYZBIiCgtkZXNjcmlwdGlvbhgCIAEoCUIIukgFcgMY9ANIAIgBARIzCgRzbHVnGAMgASgJQiW6SCJyIBADGDIyGl5bYS16MC05XSsoPzotW2EtejAtOV0rKSokQg4KDF9kZXNjcmlwdGlvbiImChhDcmVhdGVDb2xsZWN0aW9uUmVzcG9uc2USCgoCaWQYASABKAkiMQoYR2V0Q29sbGVjdGlvbkJ5SURSZXF1ZXN0EhUKAmlkGAEgASgJQgm6SAZyBBABGGQiZwoZR2V0Q29sbGVjdGlvbkJ5SURSZXNwb25zZRIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIMCgRzbHVnGAQgASgJEgwKBHRhZ3MYBSADKAkiwQEKF1VwZGF0ZUNvbGxlY3Rpb25SZXF1ZXN0EhUKAmlkGAEgASgJQgm6SAZyBBABGGQSGAoFdGl0bGUYAiABKAlCCbpIBnIEEAEYZBIiCgtkZXNjcmlwdGlvbhgDIAEoCUIIukgFcgMY9ANIAIgBARIzCgRzbHVnGAQgASgJQiW6SCJyIBADGDIyGl5bYS16MC05XSsoPzotW2EtejAtOV0rKSokEgwKBHRhZ3MYBSADKAlCDgoMX2Rlc2NyaXB0aW9uIhoKGFVwZGF0ZUNvbGxlY3Rpb25SZXNwb25zZSI0ChtEZWxldGVDb2xsZWN0aW9uQnlJRFJlcXVlc3QSFQoCaWQYASABKAlCCbpIBnIEEAEYZCIeChxEZWxldGVDb2xsZWN0aW9uQnlJRFJlc3BvbnNlQk5CD0NvbGxlY3Rpb25Qcm90b1ABWjlwYWFrZC5jb20vcGFja2FnZXMvYXBpL2dlbi9zcmMvcHJvdG8vcHJvZHVjdHMvdjEvZW50aXRpZXNiBnByb3RvMw',
|
|
17
|
-
[file_buf_validate_validate]
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @generated from message CreateCollectionRequest
|
|
22
|
-
*/
|
|
23
|
-
export type CreateCollectionRequest = Message<'CreateCollectionRequest'> & {
|
|
24
|
-
/**
|
|
25
|
-
* @generated from field: string title = 1;
|
|
26
|
-
*/
|
|
27
|
-
title: string
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @generated from field: optional string description = 2;
|
|
31
|
-
*/
|
|
32
|
-
description?: string
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @generated from field: string slug = 3;
|
|
36
|
-
*/
|
|
37
|
-
slug: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Describes the message CreateCollectionRequest.
|
|
42
|
-
* Use `create(CreateCollectionRequestSchema)` to create a new message.
|
|
43
|
-
*/
|
|
44
|
-
export const CreateCollectionRequestSchema: GenMessage<CreateCollectionRequest> =
|
|
45
|
-
/*@__PURE__*/
|
|
46
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 0)
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @generated from message CreateCollectionResponse
|
|
50
|
-
*/
|
|
51
|
-
export type CreateCollectionResponse = Message<'CreateCollectionResponse'> & {
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: string id = 1;
|
|
54
|
-
*/
|
|
55
|
-
id: string
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Describes the message CreateCollectionResponse.
|
|
60
|
-
* Use `create(CreateCollectionResponseSchema)` to create a new message.
|
|
61
|
-
*/
|
|
62
|
-
export const CreateCollectionResponseSchema: GenMessage<CreateCollectionResponse> =
|
|
63
|
-
/*@__PURE__*/
|
|
64
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 1)
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @generated from message GetCollectionByIDRequest
|
|
68
|
-
*/
|
|
69
|
-
export type GetCollectionByIDRequest = Message<'GetCollectionByIDRequest'> & {
|
|
70
|
-
/**
|
|
71
|
-
* @generated from field: string id = 1;
|
|
72
|
-
*/
|
|
73
|
-
id: string
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Describes the message GetCollectionByIDRequest.
|
|
78
|
-
* Use `create(GetCollectionByIDRequestSchema)` to create a new message.
|
|
79
|
-
*/
|
|
80
|
-
export const GetCollectionByIDRequestSchema: GenMessage<GetCollectionByIDRequest> =
|
|
81
|
-
/*@__PURE__*/
|
|
82
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 2)
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @generated from message GetCollectionByIDResponse
|
|
86
|
-
*/
|
|
87
|
-
export type GetCollectionByIDResponse = Message<'GetCollectionByIDResponse'> & {
|
|
88
|
-
/**
|
|
89
|
-
* ID of the collection
|
|
90
|
-
*
|
|
91
|
-
* @generated from field: string id = 1;
|
|
92
|
-
*/
|
|
93
|
-
id: string
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Name of the collection
|
|
97
|
-
*
|
|
98
|
-
* @generated from field: string title = 2;
|
|
99
|
-
*/
|
|
100
|
-
title: string
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Description of the collection
|
|
104
|
-
*
|
|
105
|
-
* @generated from field: string description = 3;
|
|
106
|
-
*/
|
|
107
|
-
description: string
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* URL slug of the collection
|
|
111
|
-
*
|
|
112
|
-
* @generated from field: string slug = 4;
|
|
113
|
-
*/
|
|
114
|
-
slug: string
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Tags associated with the collection
|
|
118
|
-
*
|
|
119
|
-
* @generated from field: repeated string tags = 5;
|
|
120
|
-
*/
|
|
121
|
-
tags: string[]
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Describes the message GetCollectionByIDResponse.
|
|
126
|
-
* Use `create(GetCollectionByIDResponseSchema)` to create a new message.
|
|
127
|
-
*/
|
|
128
|
-
export const GetCollectionByIDResponseSchema: GenMessage<GetCollectionByIDResponse> =
|
|
129
|
-
/*@__PURE__*/
|
|
130
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 3)
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @generated from message UpdateCollectionRequest
|
|
134
|
-
*/
|
|
135
|
-
export type UpdateCollectionRequest = Message<'UpdateCollectionRequest'> & {
|
|
136
|
-
/**
|
|
137
|
-
* @generated from field: string id = 1;
|
|
138
|
-
*/
|
|
139
|
-
id: string
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @generated from field: string title = 2;
|
|
143
|
-
*/
|
|
144
|
-
title: string
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @generated from field: optional string description = 3;
|
|
148
|
-
*/
|
|
149
|
-
description?: string
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @generated from field: string slug = 4;
|
|
153
|
-
*/
|
|
154
|
-
slug: string
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @generated from field: repeated string tags = 5;
|
|
158
|
-
*/
|
|
159
|
-
tags: string[]
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Describes the message UpdateCollectionRequest.
|
|
164
|
-
* Use `create(UpdateCollectionRequestSchema)` to create a new message.
|
|
165
|
-
*/
|
|
166
|
-
export const UpdateCollectionRequestSchema: GenMessage<UpdateCollectionRequest> =
|
|
167
|
-
/*@__PURE__*/
|
|
168
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 4)
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @generated from message UpdateCollectionResponse
|
|
172
|
-
*/
|
|
173
|
-
export type UpdateCollectionResponse = Message<'UpdateCollectionResponse'> & {}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Describes the message UpdateCollectionResponse.
|
|
177
|
-
* Use `create(UpdateCollectionResponseSchema)` to create a new message.
|
|
178
|
-
*/
|
|
179
|
-
export const UpdateCollectionResponseSchema: GenMessage<UpdateCollectionResponse> =
|
|
180
|
-
/*@__PURE__*/
|
|
181
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 5)
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @generated from message DeleteCollectionByIDRequest
|
|
185
|
-
*/
|
|
186
|
-
export type DeleteCollectionByIDRequest =
|
|
187
|
-
Message<'DeleteCollectionByIDRequest'> & {
|
|
188
|
-
/**
|
|
189
|
-
* @generated from field: string id = 1;
|
|
190
|
-
*/
|
|
191
|
-
id: string
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Describes the message DeleteCollectionByIDRequest.
|
|
196
|
-
* Use `create(DeleteCollectionByIDRequestSchema)` to create a new message.
|
|
197
|
-
*/
|
|
198
|
-
export const DeleteCollectionByIDRequestSchema: GenMessage<DeleteCollectionByIDRequest> =
|
|
199
|
-
/*@__PURE__*/
|
|
200
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 6)
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @generated from message DeleteCollectionByIDResponse
|
|
204
|
-
*/
|
|
205
|
-
export type DeleteCollectionByIDResponse =
|
|
206
|
-
Message<'DeleteCollectionByIDResponse'> & {}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Describes the message DeleteCollectionByIDResponse.
|
|
210
|
-
* Use `create(DeleteCollectionByIDResponseSchema)` to create a new message.
|
|
211
|
-
*/
|
|
212
|
-
export const DeleteCollectionByIDResponseSchema: GenMessage<DeleteCollectionByIDResponse> =
|
|
213
|
-
/*@__PURE__*/
|
|
214
|
-
messageDesc(file_src_proto_products_v1_entities_collection, 7)
|
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-go v1.36.6
|
|
4
|
-
// protoc (unknown)
|
|
5
|
-
// source: src/proto/products/v1/entities/product/create.proto
|
|
6
|
-
|
|
7
|
-
package product
|
|
8
|
-
|
|
9
|
-
import (
|
|
10
|
-
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
|
|
11
|
-
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
12
|
-
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
13
|
-
reflect "reflect"
|
|
14
|
-
sync "sync"
|
|
15
|
-
unsafe "unsafe"
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
const (
|
|
19
|
-
// Verify that this generated code is sufficiently up-to-date.
|
|
20
|
-
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
21
|
-
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
22
|
-
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
type CreateProductRequest struct {
|
|
26
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
27
|
-
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
|
28
|
-
Subtitle *string `protobuf:"bytes,2,opt,name=subtitle,proto3,oneof" json:"subtitle,omitempty"`
|
|
29
|
-
Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
30
|
-
Slug *string `protobuf:"bytes,4,opt,name=slug,proto3,oneof" json:"slug,omitempty"`
|
|
31
|
-
IsPublished *bool `protobuf:"varint,5,opt,name=is_published,json=isPublished,proto3,oneof" json:"is_published,omitempty"`
|
|
32
|
-
IsGiftcard *bool `protobuf:"varint,6,opt,name=is_giftcard,json=isGiftcard,proto3,oneof" json:"is_giftcard,omitempty"`
|
|
33
|
-
Thumbnail *string `protobuf:"bytes,7,opt,name=thumbnail,proto3,oneof" json:"thumbnail,omitempty"`
|
|
34
|
-
Status *ProductStatus `protobuf:"varint,8,opt,name=status,proto3,enum=ProductStatus,oneof" json:"status,omitempty"`
|
|
35
|
-
ProductTypeId *string `protobuf:"bytes,9,opt,name=product_type_id,json=productTypeId,proto3,oneof" json:"product_type_id,omitempty"`
|
|
36
|
-
CollectionId []string `protobuf:"bytes,10,rep,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
|
|
37
|
-
CategoryIds []string `protobuf:"bytes,11,rep,name=category_ids,json=categoryIds,proto3" json:"category_ids,omitempty"`
|
|
38
|
-
ImageIds []string `protobuf:"bytes,12,rep,name=image_ids,json=imageIds,proto3" json:"image_ids,omitempty"`
|
|
39
|
-
TagIds []string `protobuf:"bytes,13,rep,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"`
|
|
40
|
-
Variants []*Variant `protobuf:"bytes,14,rep,name=variants,proto3" json:"variants,omitempty"`
|
|
41
|
-
Options []*ProductOption `protobuf:"bytes,15,rep,name=options,proto3" json:"options,omitempty"`
|
|
42
|
-
Metadata map[string]string `protobuf:"bytes,16,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
43
|
-
Weight *float32 `protobuf:"fixed32,17,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
|
|
44
|
-
Length *float32 `protobuf:"fixed32,18,opt,name=length,proto3,oneof" json:"length,omitempty"`
|
|
45
|
-
Width *float32 `protobuf:"fixed32,19,opt,name=width,proto3,oneof" json:"width,omitempty"`
|
|
46
|
-
Height *float32 `protobuf:"fixed32,20,opt,name=height,proto3,oneof" json:"height,omitempty"`
|
|
47
|
-
HsCode *string `protobuf:"bytes,21,opt,name=hs_code,json=hsCode,proto3,oneof" json:"hs_code,omitempty"`
|
|
48
|
-
OriginCountry *string `protobuf:"bytes,22,opt,name=origin_country,json=originCountry,proto3,oneof" json:"origin_country,omitempty"`
|
|
49
|
-
ManufacturerId *string `protobuf:"bytes,23,opt,name=manufacturer_id,json=manufacturerId,proto3,oneof" json:"manufacturer_id,omitempty"`
|
|
50
|
-
Returnable *bool `protobuf:"varint,24,opt,name=returnable,proto3,oneof" json:"returnable,omitempty"`
|
|
51
|
-
SalesChannelIds []string `protobuf:"bytes,25,rep,name=sales_channel_ids,json=salesChannelIds,proto3" json:"sales_channel_ids,omitempty"`
|
|
52
|
-
AttributeIds []string `protobuf:"bytes,26,rep,name=attribute_ids,json=attributeIds,proto3" json:"attribute_ids,omitempty"`
|
|
53
|
-
ExternalId string `protobuf:"bytes,27,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
|
|
54
|
-
ShippingProfileId string `protobuf:"bytes,28,opt,name=shipping_profile_id,json=shippingProfileId,proto3" json:"shipping_profile_id,omitempty"`
|
|
55
|
-
unknownFields protoimpl.UnknownFields
|
|
56
|
-
sizeCache protoimpl.SizeCache
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
func (x *CreateProductRequest) Reset() {
|
|
60
|
-
*x = CreateProductRequest{}
|
|
61
|
-
mi := &file_src_proto_products_v1_entities_product_create_proto_msgTypes[0]
|
|
62
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
63
|
-
ms.StoreMessageInfo(mi)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
func (x *CreateProductRequest) String() string {
|
|
67
|
-
return protoimpl.X.MessageStringOf(x)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
func (*CreateProductRequest) ProtoMessage() {}
|
|
71
|
-
|
|
72
|
-
func (x *CreateProductRequest) ProtoReflect() protoreflect.Message {
|
|
73
|
-
mi := &file_src_proto_products_v1_entities_product_create_proto_msgTypes[0]
|
|
74
|
-
if x != nil {
|
|
75
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
76
|
-
if ms.LoadMessageInfo() == nil {
|
|
77
|
-
ms.StoreMessageInfo(mi)
|
|
78
|
-
}
|
|
79
|
-
return ms
|
|
80
|
-
}
|
|
81
|
-
return mi.MessageOf(x)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Deprecated: Use CreateProductRequest.ProtoReflect.Descriptor instead.
|
|
85
|
-
func (*CreateProductRequest) Descriptor() ([]byte, []int) {
|
|
86
|
-
return file_src_proto_products_v1_entities_product_create_proto_rawDescGZIP(), []int{0}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
func (x *CreateProductRequest) GetTitle() string {
|
|
90
|
-
if x != nil {
|
|
91
|
-
return x.Title
|
|
92
|
-
}
|
|
93
|
-
return ""
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
func (x *CreateProductRequest) GetSubtitle() string {
|
|
97
|
-
if x != nil && x.Subtitle != nil {
|
|
98
|
-
return *x.Subtitle
|
|
99
|
-
}
|
|
100
|
-
return ""
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
func (x *CreateProductRequest) GetDescription() string {
|
|
104
|
-
if x != nil && x.Description != nil {
|
|
105
|
-
return *x.Description
|
|
106
|
-
}
|
|
107
|
-
return ""
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
func (x *CreateProductRequest) GetSlug() string {
|
|
111
|
-
if x != nil && x.Slug != nil {
|
|
112
|
-
return *x.Slug
|
|
113
|
-
}
|
|
114
|
-
return ""
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
func (x *CreateProductRequest) GetIsPublished() bool {
|
|
118
|
-
if x != nil && x.IsPublished != nil {
|
|
119
|
-
return *x.IsPublished
|
|
120
|
-
}
|
|
121
|
-
return false
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
func (x *CreateProductRequest) GetIsGiftcard() bool {
|
|
125
|
-
if x != nil && x.IsGiftcard != nil {
|
|
126
|
-
return *x.IsGiftcard
|
|
127
|
-
}
|
|
128
|
-
return false
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
func (x *CreateProductRequest) GetThumbnail() string {
|
|
132
|
-
if x != nil && x.Thumbnail != nil {
|
|
133
|
-
return *x.Thumbnail
|
|
134
|
-
}
|
|
135
|
-
return ""
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
func (x *CreateProductRequest) GetStatus() ProductStatus {
|
|
139
|
-
if x != nil && x.Status != nil {
|
|
140
|
-
return *x.Status
|
|
141
|
-
}
|
|
142
|
-
return ProductStatus_DRAFT
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
func (x *CreateProductRequest) GetProductTypeId() string {
|
|
146
|
-
if x != nil && x.ProductTypeId != nil {
|
|
147
|
-
return *x.ProductTypeId
|
|
148
|
-
}
|
|
149
|
-
return ""
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
func (x *CreateProductRequest) GetCollectionId() []string {
|
|
153
|
-
if x != nil {
|
|
154
|
-
return x.CollectionId
|
|
155
|
-
}
|
|
156
|
-
return nil
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
func (x *CreateProductRequest) GetCategoryIds() []string {
|
|
160
|
-
if x != nil {
|
|
161
|
-
return x.CategoryIds
|
|
162
|
-
}
|
|
163
|
-
return nil
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
func (x *CreateProductRequest) GetImageIds() []string {
|
|
167
|
-
if x != nil {
|
|
168
|
-
return x.ImageIds
|
|
169
|
-
}
|
|
170
|
-
return nil
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
func (x *CreateProductRequest) GetTagIds() []string {
|
|
174
|
-
if x != nil {
|
|
175
|
-
return x.TagIds
|
|
176
|
-
}
|
|
177
|
-
return nil
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
func (x *CreateProductRequest) GetVariants() []*Variant {
|
|
181
|
-
if x != nil {
|
|
182
|
-
return x.Variants
|
|
183
|
-
}
|
|
184
|
-
return nil
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
func (x *CreateProductRequest) GetOptions() []*ProductOption {
|
|
188
|
-
if x != nil {
|
|
189
|
-
return x.Options
|
|
190
|
-
}
|
|
191
|
-
return nil
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
func (x *CreateProductRequest) GetMetadata() map[string]string {
|
|
195
|
-
if x != nil {
|
|
196
|
-
return x.Metadata
|
|
197
|
-
}
|
|
198
|
-
return nil
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
func (x *CreateProductRequest) GetWeight() float32 {
|
|
202
|
-
if x != nil && x.Weight != nil {
|
|
203
|
-
return *x.Weight
|
|
204
|
-
}
|
|
205
|
-
return 0
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
func (x *CreateProductRequest) GetLength() float32 {
|
|
209
|
-
if x != nil && x.Length != nil {
|
|
210
|
-
return *x.Length
|
|
211
|
-
}
|
|
212
|
-
return 0
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
func (x *CreateProductRequest) GetWidth() float32 {
|
|
216
|
-
if x != nil && x.Width != nil {
|
|
217
|
-
return *x.Width
|
|
218
|
-
}
|
|
219
|
-
return 0
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
func (x *CreateProductRequest) GetHeight() float32 {
|
|
223
|
-
if x != nil && x.Height != nil {
|
|
224
|
-
return *x.Height
|
|
225
|
-
}
|
|
226
|
-
return 0
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
func (x *CreateProductRequest) GetHsCode() string {
|
|
230
|
-
if x != nil && x.HsCode != nil {
|
|
231
|
-
return *x.HsCode
|
|
232
|
-
}
|
|
233
|
-
return ""
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
func (x *CreateProductRequest) GetOriginCountry() string {
|
|
237
|
-
if x != nil && x.OriginCountry != nil {
|
|
238
|
-
return *x.OriginCountry
|
|
239
|
-
}
|
|
240
|
-
return ""
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
func (x *CreateProductRequest) GetManufacturerId() string {
|
|
244
|
-
if x != nil && x.ManufacturerId != nil {
|
|
245
|
-
return *x.ManufacturerId
|
|
246
|
-
}
|
|
247
|
-
return ""
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
func (x *CreateProductRequest) GetReturnable() bool {
|
|
251
|
-
if x != nil && x.Returnable != nil {
|
|
252
|
-
return *x.Returnable
|
|
253
|
-
}
|
|
254
|
-
return false
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
func (x *CreateProductRequest) GetSalesChannelIds() []string {
|
|
258
|
-
if x != nil {
|
|
259
|
-
return x.SalesChannelIds
|
|
260
|
-
}
|
|
261
|
-
return nil
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
func (x *CreateProductRequest) GetAttributeIds() []string {
|
|
265
|
-
if x != nil {
|
|
266
|
-
return x.AttributeIds
|
|
267
|
-
}
|
|
268
|
-
return nil
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
func (x *CreateProductRequest) GetExternalId() string {
|
|
272
|
-
if x != nil {
|
|
273
|
-
return x.ExternalId
|
|
274
|
-
}
|
|
275
|
-
return ""
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
func (x *CreateProductRequest) GetShippingProfileId() string {
|
|
279
|
-
if x != nil {
|
|
280
|
-
return x.ShippingProfileId
|
|
281
|
-
}
|
|
282
|
-
return ""
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
type CreateProductResponse struct {
|
|
286
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
287
|
-
Product *ProductResponse `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
|
288
|
-
unknownFields protoimpl.UnknownFields
|
|
289
|
-
sizeCache protoimpl.SizeCache
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
func (x *CreateProductResponse) Reset() {
|
|
293
|
-
*x = CreateProductResponse{}
|
|
294
|
-
mi := &file_src_proto_products_v1_entities_product_create_proto_msgTypes[1]
|
|
295
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
296
|
-
ms.StoreMessageInfo(mi)
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
func (x *CreateProductResponse) String() string {
|
|
300
|
-
return protoimpl.X.MessageStringOf(x)
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
func (*CreateProductResponse) ProtoMessage() {}
|
|
304
|
-
|
|
305
|
-
func (x *CreateProductResponse) ProtoReflect() protoreflect.Message {
|
|
306
|
-
mi := &file_src_proto_products_v1_entities_product_create_proto_msgTypes[1]
|
|
307
|
-
if x != nil {
|
|
308
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
309
|
-
if ms.LoadMessageInfo() == nil {
|
|
310
|
-
ms.StoreMessageInfo(mi)
|
|
311
|
-
}
|
|
312
|
-
return ms
|
|
313
|
-
}
|
|
314
|
-
return mi.MessageOf(x)
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
// Deprecated: Use CreateProductResponse.ProtoReflect.Descriptor instead.
|
|
318
|
-
func (*CreateProductResponse) Descriptor() ([]byte, []int) {
|
|
319
|
-
return file_src_proto_products_v1_entities_product_create_proto_rawDescGZIP(), []int{1}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
func (x *CreateProductResponse) GetProduct() *ProductResponse {
|
|
323
|
-
if x != nil {
|
|
324
|
-
return x.Product
|
|
325
|
-
}
|
|
326
|
-
return nil
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
var File_src_proto_products_v1_entities_product_create_proto protoreflect.FileDescriptor
|
|
330
|
-
|
|
331
|
-
const file_src_proto_products_v1_entities_product_create_proto_rawDesc = "" +
|
|
332
|
-
"\n" +
|
|
333
|
-
"3src/proto/products/v1/entities/product/create.proto\x1a\x1bbuf/validate/validate.proto\x1a3src/proto/products/v1/entities/product/shared.proto\"\xb6\n" +
|
|
334
|
-
"\n" +
|
|
335
|
-
"\x14CreateProductRequest\x12\x14\n" +
|
|
336
|
-
"\x05title\x18\x01 \x01(\tR\x05title\x12\x1f\n" +
|
|
337
|
-
"\bsubtitle\x18\x02 \x01(\tH\x00R\bsubtitle\x88\x01\x01\x12%\n" +
|
|
338
|
-
"\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12\x17\n" +
|
|
339
|
-
"\x04slug\x18\x04 \x01(\tH\x02R\x04slug\x88\x01\x01\x12&\n" +
|
|
340
|
-
"\fis_published\x18\x05 \x01(\bH\x03R\visPublished\x88\x01\x01\x12$\n" +
|
|
341
|
-
"\vis_giftcard\x18\x06 \x01(\bH\x04R\n" +
|
|
342
|
-
"isGiftcard\x88\x01\x01\x12!\n" +
|
|
343
|
-
"\tthumbnail\x18\a \x01(\tH\x05R\tthumbnail\x88\x01\x01\x12+\n" +
|
|
344
|
-
"\x06status\x18\b \x01(\x0e2\x0e.ProductStatusH\x06R\x06status\x88\x01\x01\x12+\n" +
|
|
345
|
-
"\x0fproduct_type_id\x18\t \x01(\tH\aR\rproductTypeId\x88\x01\x01\x12#\n" +
|
|
346
|
-
"\rcollection_id\x18\n" +
|
|
347
|
-
" \x03(\tR\fcollectionId\x12!\n" +
|
|
348
|
-
"\fcategory_ids\x18\v \x03(\tR\vcategoryIds\x12\x1b\n" +
|
|
349
|
-
"\timage_ids\x18\f \x03(\tR\bimageIds\x12\x17\n" +
|
|
350
|
-
"\atag_ids\x18\r \x03(\tR\x06tagIds\x12$\n" +
|
|
351
|
-
"\bvariants\x18\x0e \x03(\v2\b.VariantR\bvariants\x12(\n" +
|
|
352
|
-
"\aoptions\x18\x0f \x03(\v2\x0e.ProductOptionR\aoptions\x12?\n" +
|
|
353
|
-
"\bmetadata\x18\x10 \x03(\v2#.CreateProductRequest.MetadataEntryR\bmetadata\x12\x1b\n" +
|
|
354
|
-
"\x06weight\x18\x11 \x01(\x02H\bR\x06weight\x88\x01\x01\x12\x1b\n" +
|
|
355
|
-
"\x06length\x18\x12 \x01(\x02H\tR\x06length\x88\x01\x01\x12\x19\n" +
|
|
356
|
-
"\x05width\x18\x13 \x01(\x02H\n" +
|
|
357
|
-
"R\x05width\x88\x01\x01\x12\x1b\n" +
|
|
358
|
-
"\x06height\x18\x14 \x01(\x02H\vR\x06height\x88\x01\x01\x12\x1c\n" +
|
|
359
|
-
"\ahs_code\x18\x15 \x01(\tH\fR\x06hsCode\x88\x01\x01\x12*\n" +
|
|
360
|
-
"\x0eorigin_country\x18\x16 \x01(\tH\rR\roriginCountry\x88\x01\x01\x12,\n" +
|
|
361
|
-
"\x0fmanufacturer_id\x18\x17 \x01(\tH\x0eR\x0emanufacturerId\x88\x01\x01\x12#\n" +
|
|
362
|
-
"\n" +
|
|
363
|
-
"returnable\x18\x18 \x01(\bH\x0fR\n" +
|
|
364
|
-
"returnable\x88\x01\x01\x12*\n" +
|
|
365
|
-
"\x11sales_channel_ids\x18\x19 \x03(\tR\x0fsalesChannelIds\x12#\n" +
|
|
366
|
-
"\rattribute_ids\x18\x1a \x03(\tR\fattributeIds\x12\x1f\n" +
|
|
367
|
-
"\vexternal_id\x18\x1b \x01(\tR\n" +
|
|
368
|
-
"externalId\x12.\n" +
|
|
369
|
-
"\x13shipping_profile_id\x18\x1c \x01(\tR\x11shippingProfileId\x1a;\n" +
|
|
370
|
-
"\rMetadataEntry\x12\x10\n" +
|
|
371
|
-
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
372
|
-
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\v\n" +
|
|
373
|
-
"\t_subtitleB\x0e\n" +
|
|
374
|
-
"\f_descriptionB\a\n" +
|
|
375
|
-
"\x05_slugB\x0f\n" +
|
|
376
|
-
"\r_is_publishedB\x0e\n" +
|
|
377
|
-
"\f_is_giftcardB\f\n" +
|
|
378
|
-
"\n" +
|
|
379
|
-
"_thumbnailB\t\n" +
|
|
380
|
-
"\a_statusB\x12\n" +
|
|
381
|
-
"\x10_product_type_idB\t\n" +
|
|
382
|
-
"\a_weightB\t\n" +
|
|
383
|
-
"\a_lengthB\b\n" +
|
|
384
|
-
"\x06_widthB\t\n" +
|
|
385
|
-
"\a_heightB\n" +
|
|
386
|
-
"\n" +
|
|
387
|
-
"\b_hs_codeB\x11\n" +
|
|
388
|
-
"\x0f_origin_countryB\x12\n" +
|
|
389
|
-
"\x10_manufacturer_idB\r\n" +
|
|
390
|
-
"\v_returnable\"C\n" +
|
|
391
|
-
"\x15CreateProductResponse\x12*\n" +
|
|
392
|
-
"\aproduct\x18\x01 \x01(\v2\x10.ProductResponseR\aproductBRB\vCreateProtoP\x01ZApaakd.com/packages/api/gen/src/proto/products/v1/entities/productb\x06proto3"
|
|
393
|
-
|
|
394
|
-
var (
|
|
395
|
-
file_src_proto_products_v1_entities_product_create_proto_rawDescOnce sync.Once
|
|
396
|
-
file_src_proto_products_v1_entities_product_create_proto_rawDescData []byte
|
|
397
|
-
)
|
|
398
|
-
|
|
399
|
-
func file_src_proto_products_v1_entities_product_create_proto_rawDescGZIP() []byte {
|
|
400
|
-
file_src_proto_products_v1_entities_product_create_proto_rawDescOnce.Do(func() {
|
|
401
|
-
file_src_proto_products_v1_entities_product_create_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_create_proto_rawDesc), len(file_src_proto_products_v1_entities_product_create_proto_rawDesc)))
|
|
402
|
-
})
|
|
403
|
-
return file_src_proto_products_v1_entities_product_create_proto_rawDescData
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
var file_src_proto_products_v1_entities_product_create_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
407
|
-
var file_src_proto_products_v1_entities_product_create_proto_goTypes = []any{
|
|
408
|
-
(*CreateProductRequest)(nil), // 0: CreateProductRequest
|
|
409
|
-
(*CreateProductResponse)(nil), // 1: CreateProductResponse
|
|
410
|
-
nil, // 2: CreateProductRequest.MetadataEntry
|
|
411
|
-
(ProductStatus)(0), // 3: ProductStatus
|
|
412
|
-
(*Variant)(nil), // 4: Variant
|
|
413
|
-
(*ProductOption)(nil), // 5: ProductOption
|
|
414
|
-
(*ProductResponse)(nil), // 6: ProductResponse
|
|
415
|
-
}
|
|
416
|
-
var file_src_proto_products_v1_entities_product_create_proto_depIdxs = []int32{
|
|
417
|
-
3, // 0: CreateProductRequest.status:type_name -> ProductStatus
|
|
418
|
-
4, // 1: CreateProductRequest.variants:type_name -> Variant
|
|
419
|
-
5, // 2: CreateProductRequest.options:type_name -> ProductOption
|
|
420
|
-
2, // 3: CreateProductRequest.metadata:type_name -> CreateProductRequest.MetadataEntry
|
|
421
|
-
6, // 4: CreateProductResponse.product:type_name -> ProductResponse
|
|
422
|
-
5, // [5:5] is the sub-list for method output_type
|
|
423
|
-
5, // [5:5] is the sub-list for method input_type
|
|
424
|
-
5, // [5:5] is the sub-list for extension type_name
|
|
425
|
-
5, // [5:5] is the sub-list for extension extendee
|
|
426
|
-
0, // [0:5] is the sub-list for field type_name
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
func init() { file_src_proto_products_v1_entities_product_create_proto_init() }
|
|
430
|
-
func file_src_proto_products_v1_entities_product_create_proto_init() {
|
|
431
|
-
if File_src_proto_products_v1_entities_product_create_proto != nil {
|
|
432
|
-
return
|
|
433
|
-
}
|
|
434
|
-
file_src_proto_products_v1_entities_product_shared_proto_init()
|
|
435
|
-
file_src_proto_products_v1_entities_product_create_proto_msgTypes[0].OneofWrappers = []any{}
|
|
436
|
-
type x struct{}
|
|
437
|
-
out := protoimpl.TypeBuilder{
|
|
438
|
-
File: protoimpl.DescBuilder{
|
|
439
|
-
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
440
|
-
RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_create_proto_rawDesc), len(file_src_proto_products_v1_entities_product_create_proto_rawDesc)),
|
|
441
|
-
NumEnums: 0,
|
|
442
|
-
NumMessages: 3,
|
|
443
|
-
NumExtensions: 0,
|
|
444
|
-
NumServices: 0,
|
|
445
|
-
},
|
|
446
|
-
GoTypes: file_src_proto_products_v1_entities_product_create_proto_goTypes,
|
|
447
|
-
DependencyIndexes: file_src_proto_products_v1_entities_product_create_proto_depIdxs,
|
|
448
|
-
MessageInfos: file_src_proto_products_v1_entities_product_create_proto_msgTypes,
|
|
449
|
-
}.Build()
|
|
450
|
-
File_src_proto_products_v1_entities_product_create_proto = out.File
|
|
451
|
-
file_src_proto_products_v1_entities_product_create_proto_goTypes = nil
|
|
452
|
-
file_src_proto_products_v1_entities_product_create_proto_depIdxs = nil
|
|
453
|
-
}
|