@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,265 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file src/proto/files/v1/entities/file.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/files/v1/entities/file.proto.
|
|
12
|
+
*/
|
|
13
|
+
export const file_src_proto_files_v1_entities_file: GenFile =
|
|
14
|
+
/*@__PURE__*/
|
|
15
|
+
fileDesc(
|
|
16
|
+
'CiZzcmMvcHJvdG8vZmlsZXMvdjEvZW50aXRpZXMvZmlsZS5wcm90byLbAQoQTGlzdEZpbGVzUmVxdWVzdBIXCgZvZmZzZXQYASABKAVCB7pIBBoCKAASGAoFbGltaXQYAiABKA1CCbpIBioEGGQoARIVCghvcmRlcl9ieRgDIAEoCUgAiAEBEhMKBmZpbHRlchgEIAEoCUgBiAEBEhYKCWFzY2VuZGluZxgFIAEoCEgCiAEBEhkKDHJlcXVlc3RfcGF0aBgGIAEoCUgDiAEBQgsKCV9vcmRlcl9ieUIJCgdfZmlsdGVyQgwKCl9hc2NlbmRpbmdCDwoNX3JlcXVlc3RfcGF0aCIxChFMaXN0RmlsZXNSZXNwb25zZRIcCgVmaWxlcxgBIAMoCzINLkZpbGVSZXNwb25zZSIcCg5HZXRGaWxlUmVxdWVzdBIKCgJpZBgBIAEoCSIuCg9HZXRGaWxlUmVzcG9uc2USGwoEZmlsZRgBIAEoCzINLkZpbGVSZXNwb25zZSIfChFEZWxldGVGaWxlUmVxdWVzdBIKCgJpZBgBIAEoCSIUChJEZWxldGVGaWxlUmVzcG9uc2UiwwIKEVVwZGF0ZUZpbGVSZXF1ZXN0EgoKAmlkGAEgASgJEhkKDGxpbmVfaXRlbV9pZBgCIAEoCUgAiAEBEh0KEHZpZGVvX3Byb2R1Y3RfaWQYAyABKAlIAYgBARIlChh2aWRlb19wcm9kdWN0X3ZhcmlhbnRfaWQYBCABKAlIAogBARIgChNwcm9kdWN0X2NhdGVnb3J5X2lkGAUgASgJSAOIAQESJgoZdmlkZW9fcHJvZHVjdF9jYXRlZ29yeV9pZBgGIAEoCUgEiAEBQg8KDV9saW5lX2l0ZW1faWRCEwoRX3ZpZGVvX3Byb2R1Y3RfaWRCGwoZX3ZpZGVvX3Byb2R1Y3RfdmFyaWFudF9pZEIWChRfcHJvZHVjdF9jYXRlZ29yeV9pZEIcChpfdmlkZW9fcHJvZHVjdF9jYXRlZ29yeV9pZCIUChJVcGRhdGVGaWxlUmVzcG9uc2Ui5gEKDEZpbGVSZXNwb25zZRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEgwKBHBhdGgYAyABKAkSDAoEdHlwZRgEIAEoCRIOCgZzb3VyY2UYBSABKAkSFAoMbGluZV9pdGVtX2lkGAYgASgJEhgKEHZpZGVvX3Byb2R1Y3RfaWQYByABKAkSIAoYdmlkZW9fcHJvZHVjdF92YXJpYW50X2lkGAggASgJEhsKE3Byb2R1Y3RfY2F0ZWdvcnlfaWQYCSABKAkSIQoZdmlkZW9fcHJvZHVjdF9jYXRlZ29yeV9pZBgKIAEoCUJFQglGaWxlUHJvdG9QAVo2cGFha2QuY29tL3BhY2thZ2VzL2FwaS9nZW4vc3JjL3Byb3RvL2ZpbGVzL3YxL2VudGl0aWVzYgZwcm90bzM',
|
|
17
|
+
[file_buf_validate_validate]
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from message ListFilesRequest
|
|
22
|
+
*/
|
|
23
|
+
export type ListFilesRequest = Message<'ListFilesRequest'> & {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from field: int32 offset = 1;
|
|
26
|
+
*/
|
|
27
|
+
offset: number
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: uint32 limit = 2;
|
|
31
|
+
*/
|
|
32
|
+
limit: number
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: optional string order_by = 3;
|
|
36
|
+
*/
|
|
37
|
+
orderBy?: string
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: optional string filter = 4;
|
|
41
|
+
*/
|
|
42
|
+
filter?: string
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: optional bool ascending = 5;
|
|
46
|
+
*/
|
|
47
|
+
ascending?: boolean
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: optional string request_path = 6;
|
|
51
|
+
*/
|
|
52
|
+
requestPath?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message ListFilesRequest.
|
|
57
|
+
* Use `create(ListFilesRequestSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const ListFilesRequestSchema: GenMessage<ListFilesRequest> =
|
|
60
|
+
/*@__PURE__*/
|
|
61
|
+
messageDesc(file_src_proto_files_v1_entities_file, 0)
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from message ListFilesResponse
|
|
65
|
+
*/
|
|
66
|
+
export type ListFilesResponse = Message<'ListFilesResponse'> & {
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: repeated FileResponse files = 1;
|
|
69
|
+
*/
|
|
70
|
+
files: FileResponse[]
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Describes the message ListFilesResponse.
|
|
75
|
+
* Use `create(ListFilesResponseSchema)` to create a new message.
|
|
76
|
+
*/
|
|
77
|
+
export const ListFilesResponseSchema: GenMessage<ListFilesResponse> =
|
|
78
|
+
/*@__PURE__*/
|
|
79
|
+
messageDesc(file_src_proto_files_v1_entities_file, 1)
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @generated from message GetFileRequest
|
|
83
|
+
*/
|
|
84
|
+
export type GetFileRequest = Message<'GetFileRequest'> & {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string id = 1;
|
|
87
|
+
*/
|
|
88
|
+
id: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message GetFileRequest.
|
|
93
|
+
* Use `create(GetFileRequestSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export const GetFileRequestSchema: GenMessage<GetFileRequest> =
|
|
96
|
+
/*@__PURE__*/
|
|
97
|
+
messageDesc(file_src_proto_files_v1_entities_file, 2)
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message GetFileResponse
|
|
101
|
+
*/
|
|
102
|
+
export type GetFileResponse = Message<'GetFileResponse'> & {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: FileResponse file = 1;
|
|
105
|
+
*/
|
|
106
|
+
file?: FileResponse
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message GetFileResponse.
|
|
111
|
+
* Use `create(GetFileResponseSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export const GetFileResponseSchema: GenMessage<GetFileResponse> =
|
|
114
|
+
/*@__PURE__*/
|
|
115
|
+
messageDesc(file_src_proto_files_v1_entities_file, 3)
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @generated from message DeleteFileRequest
|
|
119
|
+
*/
|
|
120
|
+
export type DeleteFileRequest = Message<'DeleteFileRequest'> & {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: string id = 1;
|
|
123
|
+
*/
|
|
124
|
+
id: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message DeleteFileRequest.
|
|
129
|
+
* Use `create(DeleteFileRequestSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export const DeleteFileRequestSchema: GenMessage<DeleteFileRequest> =
|
|
132
|
+
/*@__PURE__*/
|
|
133
|
+
messageDesc(file_src_proto_files_v1_entities_file, 4)
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from message DeleteFileResponse
|
|
137
|
+
*/
|
|
138
|
+
export type DeleteFileResponse = Message<'DeleteFileResponse'> & {}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Describes the message DeleteFileResponse.
|
|
142
|
+
* Use `create(DeleteFileResponseSchema)` to create a new message.
|
|
143
|
+
*/
|
|
144
|
+
export const DeleteFileResponseSchema: GenMessage<DeleteFileResponse> =
|
|
145
|
+
/*@__PURE__*/
|
|
146
|
+
messageDesc(file_src_proto_files_v1_entities_file, 5)
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @generated from message UpdateFileRequest
|
|
150
|
+
*/
|
|
151
|
+
export type UpdateFileRequest = Message<'UpdateFileRequest'> & {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string id = 1;
|
|
154
|
+
*/
|
|
155
|
+
id: string
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: optional string line_item_id = 2;
|
|
159
|
+
*/
|
|
160
|
+
lineItemId?: string
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: optional string video_product_id = 3;
|
|
164
|
+
*/
|
|
165
|
+
videoProductId?: string
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: optional string video_product_variant_id = 4;
|
|
169
|
+
*/
|
|
170
|
+
videoProductVariantId?: string
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: optional string product_category_id = 5;
|
|
174
|
+
*/
|
|
175
|
+
productCategoryId?: string
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: optional string video_product_category_id = 6;
|
|
179
|
+
*/
|
|
180
|
+
videoProductCategoryId?: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Describes the message UpdateFileRequest.
|
|
185
|
+
* Use `create(UpdateFileRequestSchema)` to create a new message.
|
|
186
|
+
*/
|
|
187
|
+
export const UpdateFileRequestSchema: GenMessage<UpdateFileRequest> =
|
|
188
|
+
/*@__PURE__*/
|
|
189
|
+
messageDesc(file_src_proto_files_v1_entities_file, 6)
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from message UpdateFileResponse
|
|
193
|
+
*/
|
|
194
|
+
export type UpdateFileResponse = Message<'UpdateFileResponse'> & {}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Describes the message UpdateFileResponse.
|
|
198
|
+
* Use `create(UpdateFileResponseSchema)` to create a new message.
|
|
199
|
+
*/
|
|
200
|
+
export const UpdateFileResponseSchema: GenMessage<UpdateFileResponse> =
|
|
201
|
+
/*@__PURE__*/
|
|
202
|
+
messageDesc(file_src_proto_files_v1_entities_file, 7)
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message FileResponse
|
|
206
|
+
*/
|
|
207
|
+
export type FileResponse = Message<'FileResponse'> & {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: string id = 1;
|
|
210
|
+
*/
|
|
211
|
+
id: string
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @generated from field: string name = 2;
|
|
215
|
+
*/
|
|
216
|
+
name: string
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: string path = 3;
|
|
220
|
+
*/
|
|
221
|
+
path: string
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: string type = 4;
|
|
225
|
+
*/
|
|
226
|
+
type: string
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @generated from field: string source = 5;
|
|
230
|
+
*/
|
|
231
|
+
source: string
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: string line_item_id = 6;
|
|
235
|
+
*/
|
|
236
|
+
lineItemId: string
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string video_product_id = 7;
|
|
240
|
+
*/
|
|
241
|
+
videoProductId: string
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: string video_product_variant_id = 8;
|
|
245
|
+
*/
|
|
246
|
+
videoProductVariantId: string
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @generated from field: string product_category_id = 9;
|
|
250
|
+
*/
|
|
251
|
+
productCategoryId: string
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: string video_product_category_id = 10;
|
|
255
|
+
*/
|
|
256
|
+
videoProductCategoryId: string
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Describes the message FileResponse.
|
|
261
|
+
* Use `create(FileResponseSchema)` to create a new message.
|
|
262
|
+
*/
|
|
263
|
+
export const FileResponseSchema: GenMessage<FileResponse> =
|
|
264
|
+
/*@__PURE__*/
|
|
265
|
+
messageDesc(file_src_proto_files_v1_entities_file, 8)
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// Code generated by protoc-gen-connect-go. DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// Source: src/proto/files/v1/service.proto
|
|
4
|
+
|
|
5
|
+
package filesv1connect
|
|
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/files/v1"
|
|
13
|
+
entities "paakd.com/packages/api/gen/src/proto/files/v1/entities"
|
|
14
|
+
strings "strings"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
// This is a compile-time assertion to ensure that this generated file and the connect package are
|
|
18
|
+
// compatible. If you get a compiler error that this constant is not defined, this code was
|
|
19
|
+
// generated with a version of connect newer than the one compiled into your binary. You can fix the
|
|
20
|
+
// problem by either regenerating this code with an older version of connect or updating the connect
|
|
21
|
+
// version compiled into your binary.
|
|
22
|
+
const _ = connect.IsAtLeastVersion1_13_0
|
|
23
|
+
|
|
24
|
+
const (
|
|
25
|
+
// FileServiceName is the fully-qualified name of the FileService service.
|
|
26
|
+
FileServiceName = "apps.enterprise.interfaces.rpc.files.v1.FileService"
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
// These constants are the fully-qualified names of the RPCs defined in this package. They're
|
|
30
|
+
// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
|
|
31
|
+
//
|
|
32
|
+
// Note that these are different from the fully-qualified method names used by
|
|
33
|
+
// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
|
|
34
|
+
// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
|
|
35
|
+
// period.
|
|
36
|
+
const (
|
|
37
|
+
// FileServiceUpdateFileProcedure is the fully-qualified name of the FileService's UpdateFile RPC.
|
|
38
|
+
FileServiceUpdateFileProcedure = "/apps.enterprise.interfaces.rpc.files.v1.FileService/UpdateFile"
|
|
39
|
+
// FileServiceDeleteFileProcedure is the fully-qualified name of the FileService's DeleteFile RPC.
|
|
40
|
+
FileServiceDeleteFileProcedure = "/apps.enterprise.interfaces.rpc.files.v1.FileService/DeleteFile"
|
|
41
|
+
// FileServiceListFilesProcedure is the fully-qualified name of the FileService's ListFiles RPC.
|
|
42
|
+
FileServiceListFilesProcedure = "/apps.enterprise.interfaces.rpc.files.v1.FileService/ListFiles"
|
|
43
|
+
// FileServiceGetFileProcedure is the fully-qualified name of the FileService's GetFile RPC.
|
|
44
|
+
FileServiceGetFileProcedure = "/apps.enterprise.interfaces.rpc.files.v1.FileService/GetFile"
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
// FileServiceClient is a client for the apps.enterprise.interfaces.rpc.files.v1.FileService
|
|
48
|
+
// service.
|
|
49
|
+
type FileServiceClient interface {
|
|
50
|
+
UpdateFile(context.Context, *connect.Request[entities.UpdateFileRequest]) (*connect.Response[entities.UpdateFileResponse], error)
|
|
51
|
+
DeleteFile(context.Context, *connect.Request[entities.DeleteFileRequest]) (*connect.Response[entities.DeleteFileResponse], error)
|
|
52
|
+
ListFiles(context.Context, *connect.Request[entities.ListFilesRequest]) (*connect.Response[entities.ListFilesResponse], error)
|
|
53
|
+
GetFile(context.Context, *connect.Request[entities.GetFileRequest]) (*connect.Response[entities.GetFileResponse], error)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// NewFileServiceClient constructs a client for the
|
|
57
|
+
// apps.enterprise.interfaces.rpc.files.v1.FileService service. By default, it uses the Connect
|
|
58
|
+
// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed
|
|
59
|
+
// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
|
|
60
|
+
// connect.WithGRPCWeb() options.
|
|
61
|
+
//
|
|
62
|
+
// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
|
|
63
|
+
// http://api.acme.com or https://acme.com/grpc).
|
|
64
|
+
func NewFileServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) FileServiceClient {
|
|
65
|
+
baseURL = strings.TrimRight(baseURL, "/")
|
|
66
|
+
fileServiceMethods := v1.File_src_proto_files_v1_service_proto.Services().ByName("FileService").Methods()
|
|
67
|
+
return &fileServiceClient{
|
|
68
|
+
updateFile: connect.NewClient[entities.UpdateFileRequest, entities.UpdateFileResponse](
|
|
69
|
+
httpClient,
|
|
70
|
+
baseURL+FileServiceUpdateFileProcedure,
|
|
71
|
+
connect.WithSchema(fileServiceMethods.ByName("UpdateFile")),
|
|
72
|
+
connect.WithClientOptions(opts...),
|
|
73
|
+
),
|
|
74
|
+
deleteFile: connect.NewClient[entities.DeleteFileRequest, entities.DeleteFileResponse](
|
|
75
|
+
httpClient,
|
|
76
|
+
baseURL+FileServiceDeleteFileProcedure,
|
|
77
|
+
connect.WithSchema(fileServiceMethods.ByName("DeleteFile")),
|
|
78
|
+
connect.WithClientOptions(opts...),
|
|
79
|
+
),
|
|
80
|
+
listFiles: connect.NewClient[entities.ListFilesRequest, entities.ListFilesResponse](
|
|
81
|
+
httpClient,
|
|
82
|
+
baseURL+FileServiceListFilesProcedure,
|
|
83
|
+
connect.WithSchema(fileServiceMethods.ByName("ListFiles")),
|
|
84
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
85
|
+
connect.WithClientOptions(opts...),
|
|
86
|
+
),
|
|
87
|
+
getFile: connect.NewClient[entities.GetFileRequest, entities.GetFileResponse](
|
|
88
|
+
httpClient,
|
|
89
|
+
baseURL+FileServiceGetFileProcedure,
|
|
90
|
+
connect.WithSchema(fileServiceMethods.ByName("GetFile")),
|
|
91
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
92
|
+
connect.WithClientOptions(opts...),
|
|
93
|
+
),
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// fileServiceClient implements FileServiceClient.
|
|
98
|
+
type fileServiceClient struct {
|
|
99
|
+
updateFile *connect.Client[entities.UpdateFileRequest, entities.UpdateFileResponse]
|
|
100
|
+
deleteFile *connect.Client[entities.DeleteFileRequest, entities.DeleteFileResponse]
|
|
101
|
+
listFiles *connect.Client[entities.ListFilesRequest, entities.ListFilesResponse]
|
|
102
|
+
getFile *connect.Client[entities.GetFileRequest, entities.GetFileResponse]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// UpdateFile calls apps.enterprise.interfaces.rpc.files.v1.FileService.UpdateFile.
|
|
106
|
+
func (c *fileServiceClient) UpdateFile(ctx context.Context, req *connect.Request[entities.UpdateFileRequest]) (*connect.Response[entities.UpdateFileResponse], error) {
|
|
107
|
+
return c.updateFile.CallUnary(ctx, req)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// DeleteFile calls apps.enterprise.interfaces.rpc.files.v1.FileService.DeleteFile.
|
|
111
|
+
func (c *fileServiceClient) DeleteFile(ctx context.Context, req *connect.Request[entities.DeleteFileRequest]) (*connect.Response[entities.DeleteFileResponse], error) {
|
|
112
|
+
return c.deleteFile.CallUnary(ctx, req)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ListFiles calls apps.enterprise.interfaces.rpc.files.v1.FileService.ListFiles.
|
|
116
|
+
func (c *fileServiceClient) ListFiles(ctx context.Context, req *connect.Request[entities.ListFilesRequest]) (*connect.Response[entities.ListFilesResponse], error) {
|
|
117
|
+
return c.listFiles.CallUnary(ctx, req)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// GetFile calls apps.enterprise.interfaces.rpc.files.v1.FileService.GetFile.
|
|
121
|
+
func (c *fileServiceClient) GetFile(ctx context.Context, req *connect.Request[entities.GetFileRequest]) (*connect.Response[entities.GetFileResponse], error) {
|
|
122
|
+
return c.getFile.CallUnary(ctx, req)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// FileServiceHandler is an implementation of the
|
|
126
|
+
// apps.enterprise.interfaces.rpc.files.v1.FileService service.
|
|
127
|
+
type FileServiceHandler interface {
|
|
128
|
+
UpdateFile(context.Context, *connect.Request[entities.UpdateFileRequest]) (*connect.Response[entities.UpdateFileResponse], error)
|
|
129
|
+
DeleteFile(context.Context, *connect.Request[entities.DeleteFileRequest]) (*connect.Response[entities.DeleteFileResponse], error)
|
|
130
|
+
ListFiles(context.Context, *connect.Request[entities.ListFilesRequest]) (*connect.Response[entities.ListFilesResponse], error)
|
|
131
|
+
GetFile(context.Context, *connect.Request[entities.GetFileRequest]) (*connect.Response[entities.GetFileResponse], error)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// NewFileServiceHandler builds an HTTP handler from the service implementation. It returns the path
|
|
135
|
+
// on which to mount the handler and the handler itself.
|
|
136
|
+
//
|
|
137
|
+
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
|
138
|
+
// and JSON codecs. They also support gzip compression.
|
|
139
|
+
func NewFileServiceHandler(svc FileServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
|
140
|
+
fileServiceMethods := v1.File_src_proto_files_v1_service_proto.Services().ByName("FileService").Methods()
|
|
141
|
+
fileServiceUpdateFileHandler := connect.NewUnaryHandler(
|
|
142
|
+
FileServiceUpdateFileProcedure,
|
|
143
|
+
svc.UpdateFile,
|
|
144
|
+
connect.WithSchema(fileServiceMethods.ByName("UpdateFile")),
|
|
145
|
+
connect.WithHandlerOptions(opts...),
|
|
146
|
+
)
|
|
147
|
+
fileServiceDeleteFileHandler := connect.NewUnaryHandler(
|
|
148
|
+
FileServiceDeleteFileProcedure,
|
|
149
|
+
svc.DeleteFile,
|
|
150
|
+
connect.WithSchema(fileServiceMethods.ByName("DeleteFile")),
|
|
151
|
+
connect.WithHandlerOptions(opts...),
|
|
152
|
+
)
|
|
153
|
+
fileServiceListFilesHandler := connect.NewUnaryHandler(
|
|
154
|
+
FileServiceListFilesProcedure,
|
|
155
|
+
svc.ListFiles,
|
|
156
|
+
connect.WithSchema(fileServiceMethods.ByName("ListFiles")),
|
|
157
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
158
|
+
connect.WithHandlerOptions(opts...),
|
|
159
|
+
)
|
|
160
|
+
fileServiceGetFileHandler := connect.NewUnaryHandler(
|
|
161
|
+
FileServiceGetFileProcedure,
|
|
162
|
+
svc.GetFile,
|
|
163
|
+
connect.WithSchema(fileServiceMethods.ByName("GetFile")),
|
|
164
|
+
connect.WithIdempotency(connect.IdempotencyNoSideEffects),
|
|
165
|
+
connect.WithHandlerOptions(opts...),
|
|
166
|
+
)
|
|
167
|
+
return "/apps.enterprise.interfaces.rpc.files.v1.FileService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
168
|
+
switch r.URL.Path {
|
|
169
|
+
case FileServiceUpdateFileProcedure:
|
|
170
|
+
fileServiceUpdateFileHandler.ServeHTTP(w, r)
|
|
171
|
+
case FileServiceDeleteFileProcedure:
|
|
172
|
+
fileServiceDeleteFileHandler.ServeHTTP(w, r)
|
|
173
|
+
case FileServiceListFilesProcedure:
|
|
174
|
+
fileServiceListFilesHandler.ServeHTTP(w, r)
|
|
175
|
+
case FileServiceGetFileProcedure:
|
|
176
|
+
fileServiceGetFileHandler.ServeHTTP(w, r)
|
|
177
|
+
default:
|
|
178
|
+
http.NotFound(w, r)
|
|
179
|
+
}
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// UnimplementedFileServiceHandler returns CodeUnimplemented from all methods.
|
|
184
|
+
type UnimplementedFileServiceHandler struct{}
|
|
185
|
+
|
|
186
|
+
func (UnimplementedFileServiceHandler) UpdateFile(context.Context, *connect.Request[entities.UpdateFileRequest]) (*connect.Response[entities.UpdateFileResponse], error) {
|
|
187
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.files.v1.FileService.UpdateFile is not implemented"))
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
func (UnimplementedFileServiceHandler) DeleteFile(context.Context, *connect.Request[entities.DeleteFileRequest]) (*connect.Response[entities.DeleteFileResponse], error) {
|
|
191
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.files.v1.FileService.DeleteFile is not implemented"))
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
func (UnimplementedFileServiceHandler) ListFiles(context.Context, *connect.Request[entities.ListFilesRequest]) (*connect.Response[entities.ListFilesResponse], error) {
|
|
195
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.files.v1.FileService.ListFiles is not implemented"))
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
func (UnimplementedFileServiceHandler) GetFile(context.Context, *connect.Request[entities.GetFileRequest]) (*connect.Response[entities.GetFileResponse], error) {
|
|
199
|
+
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("apps.enterprise.interfaces.rpc.files.v1.FileService.GetFile is not implemented"))
|
|
200
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v2.2.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file src/proto/files/v1/service.proto (package apps.enterprise.interfaces.rpc.files.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { FileService } from './service_pb'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.UpdateFile
|
|
9
|
+
*/
|
|
10
|
+
export const updateFile = FileService.method.updateFile
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.DeleteFile
|
|
14
|
+
*/
|
|
15
|
+
export const deleteFile = FileService.method.deleteFile
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.ListFiles
|
|
19
|
+
*/
|
|
20
|
+
export const listFiles = FileService.method.listFiles
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.GetFile
|
|
24
|
+
*/
|
|
25
|
+
export const getFile = FileService.method.getFile
|
|
@@ -0,0 +1,85 @@
|
|
|
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/files/v1/service.proto
|
|
6
|
+
|
|
7
|
+
package filesv1
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
11
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
12
|
+
entities "paakd.com/packages/api/gen/src/proto/files/v1/entities"
|
|
13
|
+
reflect "reflect"
|
|
14
|
+
unsafe "unsafe"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
const (
|
|
18
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
19
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
20
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
21
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
var File_src_proto_files_v1_service_proto protoreflect.FileDescriptor
|
|
25
|
+
|
|
26
|
+
const file_src_proto_files_v1_service_proto_rawDesc = "" +
|
|
27
|
+
"\n" +
|
|
28
|
+
" src/proto/files/v1/service.proto\x12'apps.enterprise.interfaces.rpc.files.v1\x1a&src/proto/files/v1/entities/file.proto2\xeb\x01\n" +
|
|
29
|
+
"\vFileService\x127\n" +
|
|
30
|
+
"\n" +
|
|
31
|
+
"UpdateFile\x12\x12.UpdateFileRequest\x1a\x13.UpdateFileResponse\"\x00\x127\n" +
|
|
32
|
+
"\n" +
|
|
33
|
+
"DeleteFile\x12\x12.DeleteFileRequest\x1a\x13.DeleteFileResponse\"\x00\x127\n" +
|
|
34
|
+
"\tListFiles\x12\x11.ListFilesRequest\x1a\x12.ListFilesResponse\"\x03\x90\x02\x01\x121\n" +
|
|
35
|
+
"\aGetFile\x12\x0f.GetFileRequest\x1a\x10.GetFileResponse\"\x03\x90\x02\x01B\xb5\x02\n" +
|
|
36
|
+
"+com.apps.enterprise.interfaces.rpc.files.v1B\fServiceProtoP\x01Z5paakd.com/packages/api/gen/src/proto/files/v1;filesv1\xa2\x02\x05AEIRF\xaa\x02'Apps.Enterprise.Interfaces.Rpc.Files.V1\xca\x02'Apps\\Enterprise\\Interfaces\\Rpc\\Files\\V1\xe2\x023Apps\\Enterprise\\Interfaces\\Rpc\\Files\\V1\\GPBMetadata\xea\x02,Apps::Enterprise::Interfaces::Rpc::Files::V1b\x06proto3"
|
|
37
|
+
|
|
38
|
+
var file_src_proto_files_v1_service_proto_goTypes = []any{
|
|
39
|
+
(*entities.UpdateFileRequest)(nil), // 0: UpdateFileRequest
|
|
40
|
+
(*entities.DeleteFileRequest)(nil), // 1: DeleteFileRequest
|
|
41
|
+
(*entities.ListFilesRequest)(nil), // 2: ListFilesRequest
|
|
42
|
+
(*entities.GetFileRequest)(nil), // 3: GetFileRequest
|
|
43
|
+
(*entities.UpdateFileResponse)(nil), // 4: UpdateFileResponse
|
|
44
|
+
(*entities.DeleteFileResponse)(nil), // 5: DeleteFileResponse
|
|
45
|
+
(*entities.ListFilesResponse)(nil), // 6: ListFilesResponse
|
|
46
|
+
(*entities.GetFileResponse)(nil), // 7: GetFileResponse
|
|
47
|
+
}
|
|
48
|
+
var file_src_proto_files_v1_service_proto_depIdxs = []int32{
|
|
49
|
+
0, // 0: apps.enterprise.interfaces.rpc.files.v1.FileService.UpdateFile:input_type -> UpdateFileRequest
|
|
50
|
+
1, // 1: apps.enterprise.interfaces.rpc.files.v1.FileService.DeleteFile:input_type -> DeleteFileRequest
|
|
51
|
+
2, // 2: apps.enterprise.interfaces.rpc.files.v1.FileService.ListFiles:input_type -> ListFilesRequest
|
|
52
|
+
3, // 3: apps.enterprise.interfaces.rpc.files.v1.FileService.GetFile:input_type -> GetFileRequest
|
|
53
|
+
4, // 4: apps.enterprise.interfaces.rpc.files.v1.FileService.UpdateFile:output_type -> UpdateFileResponse
|
|
54
|
+
5, // 5: apps.enterprise.interfaces.rpc.files.v1.FileService.DeleteFile:output_type -> DeleteFileResponse
|
|
55
|
+
6, // 6: apps.enterprise.interfaces.rpc.files.v1.FileService.ListFiles:output_type -> ListFilesResponse
|
|
56
|
+
7, // 7: apps.enterprise.interfaces.rpc.files.v1.FileService.GetFile:output_type -> GetFileResponse
|
|
57
|
+
4, // [4:8] is the sub-list for method output_type
|
|
58
|
+
0, // [0:4] is the sub-list for method input_type
|
|
59
|
+
0, // [0:0] is the sub-list for extension type_name
|
|
60
|
+
0, // [0:0] is the sub-list for extension extendee
|
|
61
|
+
0, // [0:0] is the sub-list for field type_name
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
func init() { file_src_proto_files_v1_service_proto_init() }
|
|
65
|
+
func file_src_proto_files_v1_service_proto_init() {
|
|
66
|
+
if File_src_proto_files_v1_service_proto != nil {
|
|
67
|
+
return
|
|
68
|
+
}
|
|
69
|
+
type x struct{}
|
|
70
|
+
out := protoimpl.TypeBuilder{
|
|
71
|
+
File: protoimpl.DescBuilder{
|
|
72
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
73
|
+
RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_files_v1_service_proto_rawDesc), len(file_src_proto_files_v1_service_proto_rawDesc)),
|
|
74
|
+
NumEnums: 0,
|
|
75
|
+
NumMessages: 0,
|
|
76
|
+
NumExtensions: 0,
|
|
77
|
+
NumServices: 1,
|
|
78
|
+
},
|
|
79
|
+
GoTypes: file_src_proto_files_v1_service_proto_goTypes,
|
|
80
|
+
DependencyIndexes: file_src_proto_files_v1_service_proto_depIdxs,
|
|
81
|
+
}.Build()
|
|
82
|
+
File_src_proto_files_v1_service_proto = out.File
|
|
83
|
+
file_src_proto_files_v1_service_proto_goTypes = nil
|
|
84
|
+
file_src_proto_files_v1_service_proto_depIdxs = nil
|
|
85
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file src/proto/files/v1/service.proto (package apps.enterprise.interfaces.rpc.files.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenService } from '@bufbuild/protobuf/codegenv2'
|
|
6
|
+
import { fileDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2'
|
|
7
|
+
import type {
|
|
8
|
+
DeleteFileRequestSchema,
|
|
9
|
+
DeleteFileResponseSchema,
|
|
10
|
+
GetFileRequestSchema,
|
|
11
|
+
GetFileResponseSchema,
|
|
12
|
+
ListFilesRequestSchema,
|
|
13
|
+
ListFilesResponseSchema,
|
|
14
|
+
UpdateFileRequestSchema,
|
|
15
|
+
UpdateFileResponseSchema,
|
|
16
|
+
} from './entities/file_pb'
|
|
17
|
+
import { file_src_proto_files_v1_entities_file } from './entities/file_pb'
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file src/proto/files/v1/service.proto.
|
|
21
|
+
*/
|
|
22
|
+
export const file_src_proto_files_v1_service: GenFile =
|
|
23
|
+
/*@__PURE__*/
|
|
24
|
+
fileDesc(
|
|
25
|
+
'CiBzcmMvcHJvdG8vZmlsZXMvdjEvc2VydmljZS5wcm90bxInYXBwcy5lbnRlcnByaXNlLmludGVyZmFjZXMucnBjLmZpbGVzLnYxMusBCgtGaWxlU2VydmljZRI3CgpVcGRhdGVGaWxlEhIuVXBkYXRlRmlsZVJlcXVlc3QaEy5VcGRhdGVGaWxlUmVzcG9uc2UiABI3CgpEZWxldGVGaWxlEhIuRGVsZXRlRmlsZVJlcXVlc3QaEy5EZWxldGVGaWxlUmVzcG9uc2UiABI3CglMaXN0RmlsZXMSES5MaXN0RmlsZXNSZXF1ZXN0GhIuTGlzdEZpbGVzUmVzcG9uc2UiA5ACARIxCgdHZXRGaWxlEg8uR2V0RmlsZVJlcXVlc3QaEC5HZXRGaWxlUmVzcG9uc2UiA5ACAUK1AgorY29tLmFwcHMuZW50ZXJwcmlzZS5pbnRlcmZhY2VzLnJwYy5maWxlcy52MUIMU2VydmljZVByb3RvUAFaNXBhYWtkLmNvbS9wYWNrYWdlcy9hcGkvZ2VuL3NyYy9wcm90by9maWxlcy92MTtmaWxlc3YxogIFQUVJUkaqAidBcHBzLkVudGVycHJpc2UuSW50ZXJmYWNlcy5ScGMuRmlsZXMuVjHKAidBcHBzXEVudGVycHJpc2VcSW50ZXJmYWNlc1xScGNcRmlsZXNcVjHiAjNBcHBzXEVudGVycHJpc2VcSW50ZXJmYWNlc1xScGNcRmlsZXNcVjFcR1BCTWV0YWRhdGHqAixBcHBzOjpFbnRlcnByaXNlOjpJbnRlcmZhY2VzOjpScGM6OkZpbGVzOjpWMWIGcHJvdG8z',
|
|
26
|
+
[file_src_proto_files_v1_entities_file]
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @generated from service apps.enterprise.interfaces.rpc.files.v1.FileService
|
|
31
|
+
*/
|
|
32
|
+
export const FileService: GenService<{
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.UpdateFile
|
|
35
|
+
*/
|
|
36
|
+
updateFile: {
|
|
37
|
+
methodKind: 'unary'
|
|
38
|
+
input: typeof UpdateFileRequestSchema
|
|
39
|
+
output: typeof UpdateFileResponseSchema
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.DeleteFile
|
|
43
|
+
*/
|
|
44
|
+
deleteFile: {
|
|
45
|
+
methodKind: 'unary'
|
|
46
|
+
input: typeof DeleteFileRequestSchema
|
|
47
|
+
output: typeof DeleteFileResponseSchema
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.ListFiles
|
|
51
|
+
*/
|
|
52
|
+
listFiles: {
|
|
53
|
+
methodKind: 'unary'
|
|
54
|
+
input: typeof ListFilesRequestSchema
|
|
55
|
+
output: typeof ListFilesResponseSchema
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @generated from rpc apps.enterprise.interfaces.rpc.files.v1.FileService.GetFile
|
|
59
|
+
*/
|
|
60
|
+
getFile: {
|
|
61
|
+
methodKind: 'unary'
|
|
62
|
+
input: typeof GetFileRequestSchema
|
|
63
|
+
output: typeof GetFileResponseSchema
|
|
64
|
+
}
|
|
65
|
+
}> = /*@__PURE__*/ serviceDesc(file_src_proto_files_v1_service, 0)
|