@pagopa/interop-outbound-models 1.4.2 → 1.5.0
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/CHANGELOG.md +38 -0
- package/dist/eservice/eventsV2.d.ts +127 -1
- package/dist/eservice/eventsV2.d.ts.map +1 -1
- package/dist/eservice/eventsV2.js +55 -1
- package/dist/eservice/index.d.ts +42 -0
- package/dist/eservice/index.d.ts.map +1 -1
- package/dist/eservice-template/eventsV2.d.ts +426 -0
- package/dist/eservice-template/eventsV2.d.ts.map +1 -0
- package/dist/eservice-template/eventsV2.js +190 -0
- package/dist/eservice-template/index.d.ts +165 -0
- package/dist/eservice-template/index.d.ts.map +1 -0
- package/dist/eservice-template/index.js +36 -0
- package/dist/gen/v2/eservice/eservice.d.ts +89 -0
- package/dist/gen/v2/eservice/eservice.d.ts.map +1 -1
- package/dist/gen/v2/eservice/eservice.js +203 -2
- package/dist/gen/v2/eservice/events.d.ts +169 -0
- package/dist/gen/v2/eservice/events.d.ts.map +1 -1
- package/dist/gen/v2/eservice/events.js +394 -0
- package/dist/gen/v2/eservice-template/eservice-template.d.ts +164 -0
- package/dist/gen/v2/eservice-template/eservice-template.d.ts.map +1 -0
- package/dist/gen/v2/eservice-template/eservice-template.js +299 -0
- package/dist/gen/v2/eservice-template/events.d.ts +473 -0
- package/dist/gen/v2/eservice-template/events.d.ts.map +1 -0
- package/dist/gen/v2/eservice-template/events.js +1093 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/proto/v2/eservice/eservice.proto +21 -0
- package/proto/v2/eservice/events.proto +38 -0
- package/proto/v2/eservice-template/eservice-template.proto +43 -0
- package/proto/v2/eservice-template/events.proto +106 -0
- package/src/eservice/eventsV2.ts +84 -0
- package/src/eservice-template/eventsV2.ts +257 -0
- package/src/eservice-template/index.ts +53 -0
- package/src/index.ts +4 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { EServiceModeV2 } from "../eservice/eservice.js";
|
|
8
|
+
import { EServiceTechnologyV2 } from "../eservice/eservice.js";
|
|
9
|
+
import { EServiceAttributesV2 } from "../eservice/eservice.js";
|
|
10
|
+
import { AgreementApprovalPolicyV2 } from "../eservice/eservice.js";
|
|
11
|
+
import { EServiceDocumentV2 } from "../eservice/eservice.js";
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf message eservice.template.v2.EServiceTemplateVersionV2
|
|
14
|
+
*/
|
|
15
|
+
export interface EServiceTemplateVersionV2 {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf field: string id = 1;
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: int64 version = 2;
|
|
22
|
+
*/
|
|
23
|
+
version: bigint;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: optional string description = 3;
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: repeated eservice.v2.EServiceDocumentV2 docs = 4;
|
|
30
|
+
*/
|
|
31
|
+
docs: EServiceDocumentV2[];
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: eservice.template.v2.EServiceTemplateVersionStateV2 state = 5;
|
|
34
|
+
*/
|
|
35
|
+
state: EServiceTemplateVersionStateV2;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: optional eservice.v2.EServiceDocumentV2 interface = 6;
|
|
38
|
+
*/
|
|
39
|
+
interface?: EServiceDocumentV2;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: int32 voucherLifespan = 7;
|
|
42
|
+
*/
|
|
43
|
+
voucherLifespan: number;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: optional int32 dailyCallsPerConsumer = 8;
|
|
46
|
+
*/
|
|
47
|
+
dailyCallsPerConsumer?: number;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: optional int32 dailyCallsTotal = 9;
|
|
50
|
+
*/
|
|
51
|
+
dailyCallsTotal?: number;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: optional eservice.v2.AgreementApprovalPolicyV2 agreementApprovalPolicy = 10;
|
|
54
|
+
*/
|
|
55
|
+
agreementApprovalPolicy?: AgreementApprovalPolicyV2;
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: eservice.v2.EServiceAttributesV2 attributes = 11;
|
|
58
|
+
*/
|
|
59
|
+
attributes?: EServiceAttributesV2;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf field: int64 createdAt = 12;
|
|
62
|
+
*/
|
|
63
|
+
createdAt: bigint;
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: optional int64 publishedAt = 13;
|
|
66
|
+
*/
|
|
67
|
+
publishedAt?: bigint;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf field: optional int64 suspendedAt = 14;
|
|
70
|
+
*/
|
|
71
|
+
suspendedAt?: bigint;
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf field: optional int64 deprecatedAt = 15;
|
|
74
|
+
*/
|
|
75
|
+
deprecatedAt?: bigint;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf message eservice.template.v2.EServiceTemplateV2
|
|
79
|
+
*/
|
|
80
|
+
export interface EServiceTemplateV2 {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf field: string id = 1;
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf field: string creatorId = 2;
|
|
87
|
+
*/
|
|
88
|
+
creatorId: string;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: string name = 3;
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: string intendedTarget = 4;
|
|
95
|
+
*/
|
|
96
|
+
intendedTarget: string;
|
|
97
|
+
/**
|
|
98
|
+
* @generated from protobuf field: string description = 5;
|
|
99
|
+
*/
|
|
100
|
+
description: string;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf field: eservice.v2.EServiceTechnologyV2 technology = 6;
|
|
103
|
+
*/
|
|
104
|
+
technology: EServiceTechnologyV2;
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf field: repeated eservice.template.v2.EServiceTemplateVersionV2 versions = 7;
|
|
107
|
+
*/
|
|
108
|
+
versions: EServiceTemplateVersionV2[];
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf field: int64 createdAt = 8;
|
|
111
|
+
*/
|
|
112
|
+
createdAt: bigint;
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf field: eservice.v2.EServiceModeV2 mode = 9;
|
|
115
|
+
*/
|
|
116
|
+
mode: EServiceModeV2;
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf field: optional bool isSignalHubEnabled = 10;
|
|
119
|
+
*/
|
|
120
|
+
isSignalHubEnabled?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf enum eservice.template.v2.EServiceTemplateVersionStateV2
|
|
124
|
+
*/
|
|
125
|
+
export declare enum EServiceTemplateVersionStateV2 {
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf enum value: DRAFT = 0;
|
|
128
|
+
*/
|
|
129
|
+
DRAFT = 0,
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf enum value: PUBLISHED = 1;
|
|
132
|
+
*/
|
|
133
|
+
PUBLISHED = 1,
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf enum value: DEPRECATED = 2;
|
|
136
|
+
*/
|
|
137
|
+
DEPRECATED = 2,
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf enum value: SUSPENDED = 3;
|
|
140
|
+
*/
|
|
141
|
+
SUSPENDED = 3
|
|
142
|
+
}
|
|
143
|
+
declare class EServiceTemplateVersionV2$Type extends MessageType<EServiceTemplateVersionV2> {
|
|
144
|
+
constructor();
|
|
145
|
+
create(value?: PartialMessage<EServiceTemplateVersionV2>): EServiceTemplateVersionV2;
|
|
146
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EServiceTemplateVersionV2): EServiceTemplateVersionV2;
|
|
147
|
+
internalBinaryWrite(message: EServiceTemplateVersionV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @generated MessageType for protobuf message eservice.template.v2.EServiceTemplateVersionV2
|
|
151
|
+
*/
|
|
152
|
+
export declare const EServiceTemplateVersionV2: EServiceTemplateVersionV2$Type;
|
|
153
|
+
declare class EServiceTemplateV2$Type extends MessageType<EServiceTemplateV2> {
|
|
154
|
+
constructor();
|
|
155
|
+
create(value?: PartialMessage<EServiceTemplateV2>): EServiceTemplateV2;
|
|
156
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EServiceTemplateV2): EServiceTemplateV2;
|
|
157
|
+
internalBinaryWrite(message: EServiceTemplateV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @generated MessageType for protobuf message eservice.template.v2.EServiceTemplateV2
|
|
161
|
+
*/
|
|
162
|
+
export declare const EServiceTemplateV2: EServiceTemplateV2$Type;
|
|
163
|
+
export {};
|
|
164
|
+
//# sourceMappingURL=eservice-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eservice-template.d.ts","sourceRoot":"","sources":["../../../../src/gen/v2/eservice-template/eservice-template.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { EServiceModeV2 } from "../eservice/eservice.js";
|
|
6
|
+
import { EServiceTechnologyV2 } from "../eservice/eservice.js";
|
|
7
|
+
import { EServiceAttributesV2 } from "../eservice/eservice.js";
|
|
8
|
+
import { AgreementApprovalPolicyV2 } from "../eservice/eservice.js";
|
|
9
|
+
import { EServiceDocumentV2 } from "../eservice/eservice.js";
|
|
10
|
+
/**
|
|
11
|
+
* @generated from protobuf enum eservice.template.v2.EServiceTemplateVersionStateV2
|
|
12
|
+
*/
|
|
13
|
+
export var EServiceTemplateVersionStateV2;
|
|
14
|
+
(function (EServiceTemplateVersionStateV2) {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf enum value: DRAFT = 0;
|
|
17
|
+
*/
|
|
18
|
+
EServiceTemplateVersionStateV2[EServiceTemplateVersionStateV2["DRAFT"] = 0] = "DRAFT";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf enum value: PUBLISHED = 1;
|
|
21
|
+
*/
|
|
22
|
+
EServiceTemplateVersionStateV2[EServiceTemplateVersionStateV2["PUBLISHED"] = 1] = "PUBLISHED";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf enum value: DEPRECATED = 2;
|
|
25
|
+
*/
|
|
26
|
+
EServiceTemplateVersionStateV2[EServiceTemplateVersionStateV2["DEPRECATED"] = 2] = "DEPRECATED";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf enum value: SUSPENDED = 3;
|
|
29
|
+
*/
|
|
30
|
+
EServiceTemplateVersionStateV2[EServiceTemplateVersionStateV2["SUSPENDED"] = 3] = "SUSPENDED";
|
|
31
|
+
})(EServiceTemplateVersionStateV2 || (EServiceTemplateVersionStateV2 = {}));
|
|
32
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
33
|
+
class EServiceTemplateVersionV2$Type extends MessageType {
|
|
34
|
+
constructor() {
|
|
35
|
+
super("eservice.template.v2.EServiceTemplateVersionV2", [
|
|
36
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
37
|
+
{ no: 2, name: "version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
38
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
39
|
+
{ no: 4, name: "docs", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => EServiceDocumentV2 },
|
|
40
|
+
{ no: 5, name: "state", kind: "enum", T: () => ["eservice.template.v2.EServiceTemplateVersionStateV2", EServiceTemplateVersionStateV2] },
|
|
41
|
+
{ no: 6, name: "interface", kind: "message", T: () => EServiceDocumentV2 },
|
|
42
|
+
{ no: 7, name: "voucherLifespan", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
43
|
+
{ no: 8, name: "dailyCallsPerConsumer", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
44
|
+
{ no: 9, name: "dailyCallsTotal", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
45
|
+
{ no: 10, name: "agreementApprovalPolicy", kind: "enum", opt: true, T: () => ["eservice.v2.AgreementApprovalPolicyV2", AgreementApprovalPolicyV2] },
|
|
46
|
+
{ no: 11, name: "attributes", kind: "message", T: () => EServiceAttributesV2 },
|
|
47
|
+
{ no: 12, name: "createdAt", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
48
|
+
{ no: 13, name: "publishedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
49
|
+
{ no: 14, name: "suspendedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
50
|
+
{ no: 15, name: "deprecatedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
create(value) {
|
|
54
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
55
|
+
message.id = "";
|
|
56
|
+
message.version = 0n;
|
|
57
|
+
message.docs = [];
|
|
58
|
+
message.state = 0;
|
|
59
|
+
message.voucherLifespan = 0;
|
|
60
|
+
message.createdAt = 0n;
|
|
61
|
+
if (value !== undefined)
|
|
62
|
+
reflectionMergePartial(this, message, value);
|
|
63
|
+
return message;
|
|
64
|
+
}
|
|
65
|
+
internalBinaryRead(reader, length, options, target) {
|
|
66
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
67
|
+
while (reader.pos < end) {
|
|
68
|
+
let [fieldNo, wireType] = reader.tag();
|
|
69
|
+
switch (fieldNo) {
|
|
70
|
+
case /* string id */ 1:
|
|
71
|
+
message.id = reader.string();
|
|
72
|
+
break;
|
|
73
|
+
case /* int64 version */ 2:
|
|
74
|
+
message.version = reader.int64().toBigInt();
|
|
75
|
+
break;
|
|
76
|
+
case /* optional string description */ 3:
|
|
77
|
+
message.description = reader.string();
|
|
78
|
+
break;
|
|
79
|
+
case /* repeated eservice.v2.EServiceDocumentV2 docs */ 4:
|
|
80
|
+
message.docs.push(EServiceDocumentV2.internalBinaryRead(reader, reader.uint32(), options));
|
|
81
|
+
break;
|
|
82
|
+
case /* eservice.template.v2.EServiceTemplateVersionStateV2 state */ 5:
|
|
83
|
+
message.state = reader.int32();
|
|
84
|
+
break;
|
|
85
|
+
case /* optional eservice.v2.EServiceDocumentV2 interface */ 6:
|
|
86
|
+
message.interface = EServiceDocumentV2.internalBinaryRead(reader, reader.uint32(), options, message.interface);
|
|
87
|
+
break;
|
|
88
|
+
case /* int32 voucherLifespan */ 7:
|
|
89
|
+
message.voucherLifespan = reader.int32();
|
|
90
|
+
break;
|
|
91
|
+
case /* optional int32 dailyCallsPerConsumer */ 8:
|
|
92
|
+
message.dailyCallsPerConsumer = reader.int32();
|
|
93
|
+
break;
|
|
94
|
+
case /* optional int32 dailyCallsTotal */ 9:
|
|
95
|
+
message.dailyCallsTotal = reader.int32();
|
|
96
|
+
break;
|
|
97
|
+
case /* optional eservice.v2.AgreementApprovalPolicyV2 agreementApprovalPolicy */ 10:
|
|
98
|
+
message.agreementApprovalPolicy = reader.int32();
|
|
99
|
+
break;
|
|
100
|
+
case /* eservice.v2.EServiceAttributesV2 attributes */ 11:
|
|
101
|
+
message.attributes = EServiceAttributesV2.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
102
|
+
break;
|
|
103
|
+
case /* int64 createdAt */ 12:
|
|
104
|
+
message.createdAt = reader.int64().toBigInt();
|
|
105
|
+
break;
|
|
106
|
+
case /* optional int64 publishedAt */ 13:
|
|
107
|
+
message.publishedAt = reader.int64().toBigInt();
|
|
108
|
+
break;
|
|
109
|
+
case /* optional int64 suspendedAt */ 14:
|
|
110
|
+
message.suspendedAt = reader.int64().toBigInt();
|
|
111
|
+
break;
|
|
112
|
+
case /* optional int64 deprecatedAt */ 15:
|
|
113
|
+
message.deprecatedAt = reader.int64().toBigInt();
|
|
114
|
+
break;
|
|
115
|
+
default:
|
|
116
|
+
let u = options.readUnknownField;
|
|
117
|
+
if (u === "throw")
|
|
118
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
119
|
+
let d = reader.skip(wireType);
|
|
120
|
+
if (u !== false)
|
|
121
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
}
|
|
126
|
+
internalBinaryWrite(message, writer, options) {
|
|
127
|
+
/* string id = 1; */
|
|
128
|
+
if (message.id !== "")
|
|
129
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
130
|
+
/* int64 version = 2; */
|
|
131
|
+
if (message.version !== 0n)
|
|
132
|
+
writer.tag(2, WireType.Varint).int64(message.version);
|
|
133
|
+
/* optional string description = 3; */
|
|
134
|
+
if (message.description !== undefined)
|
|
135
|
+
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
136
|
+
/* repeated eservice.v2.EServiceDocumentV2 docs = 4; */
|
|
137
|
+
for (let i = 0; i < message.docs.length; i++)
|
|
138
|
+
EServiceDocumentV2.internalBinaryWrite(message.docs[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
139
|
+
/* eservice.template.v2.EServiceTemplateVersionStateV2 state = 5; */
|
|
140
|
+
if (message.state !== 0)
|
|
141
|
+
writer.tag(5, WireType.Varint).int32(message.state);
|
|
142
|
+
/* optional eservice.v2.EServiceDocumentV2 interface = 6; */
|
|
143
|
+
if (message.interface)
|
|
144
|
+
EServiceDocumentV2.internalBinaryWrite(message.interface, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
145
|
+
/* int32 voucherLifespan = 7; */
|
|
146
|
+
if (message.voucherLifespan !== 0)
|
|
147
|
+
writer.tag(7, WireType.Varint).int32(message.voucherLifespan);
|
|
148
|
+
/* optional int32 dailyCallsPerConsumer = 8; */
|
|
149
|
+
if (message.dailyCallsPerConsumer !== undefined)
|
|
150
|
+
writer.tag(8, WireType.Varint).int32(message.dailyCallsPerConsumer);
|
|
151
|
+
/* optional int32 dailyCallsTotal = 9; */
|
|
152
|
+
if (message.dailyCallsTotal !== undefined)
|
|
153
|
+
writer.tag(9, WireType.Varint).int32(message.dailyCallsTotal);
|
|
154
|
+
/* optional eservice.v2.AgreementApprovalPolicyV2 agreementApprovalPolicy = 10; */
|
|
155
|
+
if (message.agreementApprovalPolicy !== undefined)
|
|
156
|
+
writer.tag(10, WireType.Varint).int32(message.agreementApprovalPolicy);
|
|
157
|
+
/* eservice.v2.EServiceAttributesV2 attributes = 11; */
|
|
158
|
+
if (message.attributes)
|
|
159
|
+
EServiceAttributesV2.internalBinaryWrite(message.attributes, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
160
|
+
/* int64 createdAt = 12; */
|
|
161
|
+
if (message.createdAt !== 0n)
|
|
162
|
+
writer.tag(12, WireType.Varint).int64(message.createdAt);
|
|
163
|
+
/* optional int64 publishedAt = 13; */
|
|
164
|
+
if (message.publishedAt !== undefined)
|
|
165
|
+
writer.tag(13, WireType.Varint).int64(message.publishedAt);
|
|
166
|
+
/* optional int64 suspendedAt = 14; */
|
|
167
|
+
if (message.suspendedAt !== undefined)
|
|
168
|
+
writer.tag(14, WireType.Varint).int64(message.suspendedAt);
|
|
169
|
+
/* optional int64 deprecatedAt = 15; */
|
|
170
|
+
if (message.deprecatedAt !== undefined)
|
|
171
|
+
writer.tag(15, WireType.Varint).int64(message.deprecatedAt);
|
|
172
|
+
let u = options.writeUnknownFields;
|
|
173
|
+
if (u !== false)
|
|
174
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
175
|
+
return writer;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @generated MessageType for protobuf message eservice.template.v2.EServiceTemplateVersionV2
|
|
180
|
+
*/
|
|
181
|
+
export const EServiceTemplateVersionV2 = new EServiceTemplateVersionV2$Type();
|
|
182
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
183
|
+
class EServiceTemplateV2$Type extends MessageType {
|
|
184
|
+
constructor() {
|
|
185
|
+
super("eservice.template.v2.EServiceTemplateV2", [
|
|
186
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
187
|
+
{ no: 2, name: "creatorId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
188
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
189
|
+
{ no: 4, name: "intendedTarget", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
190
|
+
{ no: 5, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
191
|
+
{ no: 6, name: "technology", kind: "enum", T: () => ["eservice.v2.EServiceTechnologyV2", EServiceTechnologyV2] },
|
|
192
|
+
{ no: 7, name: "versions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => EServiceTemplateVersionV2 },
|
|
193
|
+
{ no: 8, name: "createdAt", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
194
|
+
{ no: 9, name: "mode", kind: "enum", T: () => ["eservice.v2.EServiceModeV2", EServiceModeV2] },
|
|
195
|
+
{ no: 10, name: "isSignalHubEnabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
196
|
+
]);
|
|
197
|
+
}
|
|
198
|
+
create(value) {
|
|
199
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
200
|
+
message.id = "";
|
|
201
|
+
message.creatorId = "";
|
|
202
|
+
message.name = "";
|
|
203
|
+
message.intendedTarget = "";
|
|
204
|
+
message.description = "";
|
|
205
|
+
message.technology = 0;
|
|
206
|
+
message.versions = [];
|
|
207
|
+
message.createdAt = 0n;
|
|
208
|
+
message.mode = 0;
|
|
209
|
+
if (value !== undefined)
|
|
210
|
+
reflectionMergePartial(this, message, value);
|
|
211
|
+
return message;
|
|
212
|
+
}
|
|
213
|
+
internalBinaryRead(reader, length, options, target) {
|
|
214
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
215
|
+
while (reader.pos < end) {
|
|
216
|
+
let [fieldNo, wireType] = reader.tag();
|
|
217
|
+
switch (fieldNo) {
|
|
218
|
+
case /* string id */ 1:
|
|
219
|
+
message.id = reader.string();
|
|
220
|
+
break;
|
|
221
|
+
case /* string creatorId */ 2:
|
|
222
|
+
message.creatorId = reader.string();
|
|
223
|
+
break;
|
|
224
|
+
case /* string name */ 3:
|
|
225
|
+
message.name = reader.string();
|
|
226
|
+
break;
|
|
227
|
+
case /* string intendedTarget */ 4:
|
|
228
|
+
message.intendedTarget = reader.string();
|
|
229
|
+
break;
|
|
230
|
+
case /* string description */ 5:
|
|
231
|
+
message.description = reader.string();
|
|
232
|
+
break;
|
|
233
|
+
case /* eservice.v2.EServiceTechnologyV2 technology */ 6:
|
|
234
|
+
message.technology = reader.int32();
|
|
235
|
+
break;
|
|
236
|
+
case /* repeated eservice.template.v2.EServiceTemplateVersionV2 versions */ 7:
|
|
237
|
+
message.versions.push(EServiceTemplateVersionV2.internalBinaryRead(reader, reader.uint32(), options));
|
|
238
|
+
break;
|
|
239
|
+
case /* int64 createdAt */ 8:
|
|
240
|
+
message.createdAt = reader.int64().toBigInt();
|
|
241
|
+
break;
|
|
242
|
+
case /* eservice.v2.EServiceModeV2 mode */ 9:
|
|
243
|
+
message.mode = reader.int32();
|
|
244
|
+
break;
|
|
245
|
+
case /* optional bool isSignalHubEnabled */ 10:
|
|
246
|
+
message.isSignalHubEnabled = reader.bool();
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
let u = options.readUnknownField;
|
|
250
|
+
if (u === "throw")
|
|
251
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
252
|
+
let d = reader.skip(wireType);
|
|
253
|
+
if (u !== false)
|
|
254
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return message;
|
|
258
|
+
}
|
|
259
|
+
internalBinaryWrite(message, writer, options) {
|
|
260
|
+
/* string id = 1; */
|
|
261
|
+
if (message.id !== "")
|
|
262
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
263
|
+
/* string creatorId = 2; */
|
|
264
|
+
if (message.creatorId !== "")
|
|
265
|
+
writer.tag(2, WireType.LengthDelimited).string(message.creatorId);
|
|
266
|
+
/* string name = 3; */
|
|
267
|
+
if (message.name !== "")
|
|
268
|
+
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
269
|
+
/* string intendedTarget = 4; */
|
|
270
|
+
if (message.intendedTarget !== "")
|
|
271
|
+
writer.tag(4, WireType.LengthDelimited).string(message.intendedTarget);
|
|
272
|
+
/* string description = 5; */
|
|
273
|
+
if (message.description !== "")
|
|
274
|
+
writer.tag(5, WireType.LengthDelimited).string(message.description);
|
|
275
|
+
/* eservice.v2.EServiceTechnologyV2 technology = 6; */
|
|
276
|
+
if (message.technology !== 0)
|
|
277
|
+
writer.tag(6, WireType.Varint).int32(message.technology);
|
|
278
|
+
/* repeated eservice.template.v2.EServiceTemplateVersionV2 versions = 7; */
|
|
279
|
+
for (let i = 0; i < message.versions.length; i++)
|
|
280
|
+
EServiceTemplateVersionV2.internalBinaryWrite(message.versions[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
281
|
+
/* int64 createdAt = 8; */
|
|
282
|
+
if (message.createdAt !== 0n)
|
|
283
|
+
writer.tag(8, WireType.Varint).int64(message.createdAt);
|
|
284
|
+
/* eservice.v2.EServiceModeV2 mode = 9; */
|
|
285
|
+
if (message.mode !== 0)
|
|
286
|
+
writer.tag(9, WireType.Varint).int32(message.mode);
|
|
287
|
+
/* optional bool isSignalHubEnabled = 10; */
|
|
288
|
+
if (message.isSignalHubEnabled !== undefined)
|
|
289
|
+
writer.tag(10, WireType.Varint).bool(message.isSignalHubEnabled);
|
|
290
|
+
let u = options.writeUnknownFields;
|
|
291
|
+
if (u !== false)
|
|
292
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
293
|
+
return writer;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @generated MessageType for protobuf message eservice.template.v2.EServiceTemplateV2
|
|
298
|
+
*/
|
|
299
|
+
export const EServiceTemplateV2 = new EServiceTemplateV2$Type();
|