@producerflow/producerflowapi 0.0.1
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/README.md +58 -0
- package/dist/README.md +58 -0
- package/dist/buf/validate/validate_pb.d.ts +4638 -0
- package/dist/buf/validate/validate_pb.js +414 -0
- package/dist/google/type/dayofweek_pb.d.ts +64 -0
- package/dist/google/type/dayofweek_pb.js +81 -0
- package/dist/google/type/timeofday_pb.d.ts +47 -0
- package/dist/google/type/timeofday_pb.js +26 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -0
- package/dist/producerflow/appointment/v1/appointment_pb.d.ts +843 -0
- package/dist/producerflow/appointment/v1/appointment_pb.js +283 -0
- package/dist/producerflow/producer/v1/producer_pb.d.ts +3329 -0
- package/dist/producerflow/producer/v1/producer_pb.js +665 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# ProducerFlow API Types
|
|
2
|
+
|
|
3
|
+
This package contains generated TypeScript types for the ProducerFlow API, created from Protocol Buffer definitions using `protoc-gen-es`.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @producerflow/producerflowapi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import {
|
|
15
|
+
EntityType,
|
|
16
|
+
ProducerOnboardingState,
|
|
17
|
+
Producer,
|
|
18
|
+
Agency,
|
|
19
|
+
NewAgencyRequest,
|
|
20
|
+
// ... other types
|
|
21
|
+
} from '@producerflow/producerflowapi';
|
|
22
|
+
|
|
23
|
+
// Create a new agency request
|
|
24
|
+
const agencyRequest = new NewAgencyRequest({
|
|
25
|
+
agency: {
|
|
26
|
+
name: "Example Insurance Agency",
|
|
27
|
+
entityType: EntityType.AGENCY,
|
|
28
|
+
email: "contact@example.com",
|
|
29
|
+
// ... other fields
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// Convert to binary for transmission
|
|
34
|
+
const binaryData = agencyRequest.toBinary();
|
|
35
|
+
|
|
36
|
+
// Convert to JSON
|
|
37
|
+
const jsonData = agencyRequest.toJson();
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Development
|
|
41
|
+
|
|
42
|
+
This package is automatically generated from Protocol Buffer definitions. Do not edit the generated files directly.
|
|
43
|
+
|
|
44
|
+
To build the package:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm run build
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
To type-check:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm run typecheck
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Dependencies
|
|
57
|
+
|
|
58
|
+
- `@bufbuild/protobuf`: Protocol Buffers runtime for TypeScript.
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# ProducerFlow API Types
|
|
2
|
+
|
|
3
|
+
This package contains generated TypeScript types for the ProducerFlow API, created from Protocol Buffer definitions using `protoc-gen-es`.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @producerflow/producerflowapi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import {
|
|
15
|
+
EntityType,
|
|
16
|
+
ProducerOnboardingState,
|
|
17
|
+
Producer,
|
|
18
|
+
Agency,
|
|
19
|
+
NewAgencyRequest,
|
|
20
|
+
// ... other types
|
|
21
|
+
} from '@producerflow/producerflowapi';
|
|
22
|
+
|
|
23
|
+
// Create a new agency request
|
|
24
|
+
const agencyRequest = new NewAgencyRequest({
|
|
25
|
+
agency: {
|
|
26
|
+
name: "Example Insurance Agency",
|
|
27
|
+
entityType: EntityType.AGENCY,
|
|
28
|
+
email: "contact@example.com",
|
|
29
|
+
// ... other fields
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// Convert to binary for transmission
|
|
34
|
+
const binaryData = agencyRequest.toBinary();
|
|
35
|
+
|
|
36
|
+
// Convert to JSON
|
|
37
|
+
const jsonData = agencyRequest.toJson();
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Development
|
|
41
|
+
|
|
42
|
+
This package is automatically generated from Protocol Buffer definitions. Do not edit the generated files directly.
|
|
43
|
+
|
|
44
|
+
To build the package:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm run build
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
To type-check:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm run typecheck
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Dependencies
|
|
57
|
+
|
|
58
|
+
- `@bufbuild/protobuf`: Protocol Buffers runtime for TypeScript.
|