@pagopa/interop-outbound-models 1.4.1 → 1.4.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/CHANGELOG.md
CHANGED
|
@@ -28,26 +28,10 @@ export interface DelegationV2 {
|
|
|
28
28
|
* @generated from protobuf field: int64 createdAt = 5;
|
|
29
29
|
*/
|
|
30
30
|
createdAt: bigint;
|
|
31
|
-
/**
|
|
32
|
-
* @generated from protobuf field: int64 submittedAt = 6;
|
|
33
|
-
*/
|
|
34
|
-
submittedAt: bigint;
|
|
35
|
-
/**
|
|
36
|
-
* @generated from protobuf field: optional int64 approvedAt = 7;
|
|
37
|
-
*/
|
|
38
|
-
approvedAt?: bigint;
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf field: optional int64 rejectedAt = 8;
|
|
41
|
-
*/
|
|
42
|
-
rejectedAt?: bigint;
|
|
43
31
|
/**
|
|
44
32
|
* @generated from protobuf field: optional string rejectionReason = 9;
|
|
45
33
|
*/
|
|
46
34
|
rejectionReason?: string;
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: optional int64 revokedAt = 10;
|
|
49
|
-
*/
|
|
50
|
-
revokedAt?: bigint;
|
|
51
35
|
/**
|
|
52
36
|
* @generated from protobuf field: delegation.v2.DelegationStateV2 state = 11;
|
|
53
37
|
*/
|
|
@@ -68,6 +52,10 @@ export interface DelegationV2 {
|
|
|
68
52
|
* @generated from protobuf field: optional delegation.v2.DelegationContractDocumentV2 revocationContract = 15;
|
|
69
53
|
*/
|
|
70
54
|
revocationContract?: DelegationContractDocumentV2;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf field: optional int64 updatedAt = 16;
|
|
57
|
+
*/
|
|
58
|
+
updatedAt?: bigint;
|
|
71
59
|
}
|
|
72
60
|
/**
|
|
73
61
|
* @generated from protobuf message delegation.v2.DelegationContractDocumentV2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegation.d.ts","sourceRoot":"","sources":["../../../../src/gen/v2/delegation/delegation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"delegation.d.ts","sourceRoot":"","sources":["../../../../src/gen/v2/delegation/delegation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;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mB,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CASrH;AACD;;GAEG;AACH,eAAO,MAAM,iBAAiB,wBAA+B,CAAC;AAE9D,cAAM,uBAAwB,SAAQ,WAAW,CAAC,kBAAkB,CAAC;;IASjE,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;IAMtE,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,kBAAkB;IA4BtI,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAkBtH;AACD;;GAEG;AACH,eAAO,MAAM,kBAAkB,yBAAgC,CAAC"}
|
|
@@ -47,16 +47,13 @@ class DelegationV2$Type extends MessageType {
|
|
|
47
47
|
{ no: 3, name: "delegateId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
48
48
|
{ no: 4, name: "eserviceId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
49
49
|
{ no: 5, name: "createdAt", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
50
|
-
{ no: 6, name: "submittedAt", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
51
|
-
{ no: 7, name: "approvedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
52
|
-
{ no: 8, name: "rejectedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
53
50
|
{ no: 9, name: "rejectionReason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
54
|
-
{ no: 10, name: "revokedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
55
51
|
{ no: 11, name: "state", kind: "enum", T: () => ["delegation.v2.DelegationStateV2", DelegationStateV2] },
|
|
56
52
|
{ no: 12, name: "kind", kind: "enum", T: () => ["delegation.v2.DelegationKindV2", DelegationKindV2] },
|
|
57
53
|
{ no: 13, name: "stamps", kind: "message", T: () => DelegationStampsV2 },
|
|
58
54
|
{ no: 14, name: "activationContract", kind: "message", T: () => DelegationContractDocumentV2 },
|
|
59
|
-
{ no: 15, name: "revocationContract", kind: "message", T: () => DelegationContractDocumentV2 }
|
|
55
|
+
{ no: 15, name: "revocationContract", kind: "message", T: () => DelegationContractDocumentV2 },
|
|
56
|
+
{ no: 16, name: "updatedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
60
57
|
]);
|
|
61
58
|
}
|
|
62
59
|
create(value) {
|
|
@@ -66,7 +63,6 @@ class DelegationV2$Type extends MessageType {
|
|
|
66
63
|
message.delegateId = "";
|
|
67
64
|
message.eserviceId = "";
|
|
68
65
|
message.createdAt = 0n;
|
|
69
|
-
message.submittedAt = 0n;
|
|
70
66
|
message.state = 0;
|
|
71
67
|
message.kind = 0;
|
|
72
68
|
if (value !== undefined)
|
|
@@ -93,21 +89,9 @@ class DelegationV2$Type extends MessageType {
|
|
|
93
89
|
case /* int64 createdAt */ 5:
|
|
94
90
|
message.createdAt = reader.int64().toBigInt();
|
|
95
91
|
break;
|
|
96
|
-
case /* int64 submittedAt */ 6:
|
|
97
|
-
message.submittedAt = reader.int64().toBigInt();
|
|
98
|
-
break;
|
|
99
|
-
case /* optional int64 approvedAt */ 7:
|
|
100
|
-
message.approvedAt = reader.int64().toBigInt();
|
|
101
|
-
break;
|
|
102
|
-
case /* optional int64 rejectedAt */ 8:
|
|
103
|
-
message.rejectedAt = reader.int64().toBigInt();
|
|
104
|
-
break;
|
|
105
92
|
case /* optional string rejectionReason */ 9:
|
|
106
93
|
message.rejectionReason = reader.string();
|
|
107
94
|
break;
|
|
108
|
-
case /* optional int64 revokedAt */ 10:
|
|
109
|
-
message.revokedAt = reader.int64().toBigInt();
|
|
110
|
-
break;
|
|
111
95
|
case /* delegation.v2.DelegationStateV2 state */ 11:
|
|
112
96
|
message.state = reader.int32();
|
|
113
97
|
break;
|
|
@@ -123,6 +107,9 @@ class DelegationV2$Type extends MessageType {
|
|
|
123
107
|
case /* optional delegation.v2.DelegationContractDocumentV2 revocationContract */ 15:
|
|
124
108
|
message.revocationContract = DelegationContractDocumentV2.internalBinaryRead(reader, reader.uint32(), options, message.revocationContract);
|
|
125
109
|
break;
|
|
110
|
+
case /* optional int64 updatedAt */ 16:
|
|
111
|
+
message.updatedAt = reader.int64().toBigInt();
|
|
112
|
+
break;
|
|
126
113
|
default:
|
|
127
114
|
let u = options.readUnknownField;
|
|
128
115
|
if (u === "throw")
|
|
@@ -150,21 +137,9 @@ class DelegationV2$Type extends MessageType {
|
|
|
150
137
|
/* int64 createdAt = 5; */
|
|
151
138
|
if (message.createdAt !== 0n)
|
|
152
139
|
writer.tag(5, WireType.Varint).int64(message.createdAt);
|
|
153
|
-
/* int64 submittedAt = 6; */
|
|
154
|
-
if (message.submittedAt !== 0n)
|
|
155
|
-
writer.tag(6, WireType.Varint).int64(message.submittedAt);
|
|
156
|
-
/* optional int64 approvedAt = 7; */
|
|
157
|
-
if (message.approvedAt !== undefined)
|
|
158
|
-
writer.tag(7, WireType.Varint).int64(message.approvedAt);
|
|
159
|
-
/* optional int64 rejectedAt = 8; */
|
|
160
|
-
if (message.rejectedAt !== undefined)
|
|
161
|
-
writer.tag(8, WireType.Varint).int64(message.rejectedAt);
|
|
162
140
|
/* optional string rejectionReason = 9; */
|
|
163
141
|
if (message.rejectionReason !== undefined)
|
|
164
142
|
writer.tag(9, WireType.LengthDelimited).string(message.rejectionReason);
|
|
165
|
-
/* optional int64 revokedAt = 10; */
|
|
166
|
-
if (message.revokedAt !== undefined)
|
|
167
|
-
writer.tag(10, WireType.Varint).int64(message.revokedAt);
|
|
168
143
|
/* delegation.v2.DelegationStateV2 state = 11; */
|
|
169
144
|
if (message.state !== 0)
|
|
170
145
|
writer.tag(11, WireType.Varint).int32(message.state);
|
|
@@ -180,6 +155,9 @@ class DelegationV2$Type extends MessageType {
|
|
|
180
155
|
/* optional delegation.v2.DelegationContractDocumentV2 revocationContract = 15; */
|
|
181
156
|
if (message.revocationContract)
|
|
182
157
|
DelegationContractDocumentV2.internalBinaryWrite(message.revocationContract, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
158
|
+
/* optional int64 updatedAt = 16; */
|
|
159
|
+
if (message.updatedAt !== undefined)
|
|
160
|
+
writer.tag(16, WireType.Varint).int64(message.updatedAt);
|
|
183
161
|
let u = options.writeUnknownFields;
|
|
184
162
|
if (u !== false)
|
|
185
163
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/package.json
CHANGED
|
@@ -3,21 +3,19 @@ syntax = "proto3";
|
|
|
3
3
|
package delegation.v2;
|
|
4
4
|
|
|
5
5
|
message DelegationV2 {
|
|
6
|
+
reserved 6, 7, 8, 10;
|
|
6
7
|
string id = 1;
|
|
7
8
|
string delegatorId = 2;
|
|
8
9
|
string delegateId = 3;
|
|
9
10
|
string eserviceId = 4;
|
|
10
11
|
int64 createdAt = 5;
|
|
11
|
-
int64 submittedAt = 6;
|
|
12
|
-
optional int64 approvedAt = 7;
|
|
13
|
-
optional int64 rejectedAt = 8;
|
|
14
12
|
optional string rejectionReason = 9;
|
|
15
|
-
optional int64 revokedAt = 10;
|
|
16
13
|
DelegationStateV2 state = 11;
|
|
17
14
|
DelegationKindV2 kind = 12;
|
|
18
15
|
DelegationStampsV2 stamps = 13;
|
|
19
16
|
optional DelegationContractDocumentV2 activationContract = 14;
|
|
20
17
|
optional DelegationContractDocumentV2 revocationContract = 15;
|
|
18
|
+
optional int64 updatedAt = 16;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
message DelegationContractDocumentV2 {
|