@opsregistry/contracts 0.6.0 → 0.8.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/README.md +18 -0
- package/dist/documents/exchange-document-accept-cancellation.d.ts +167 -0
- package/dist/documents/exchange-document-accept-cancellation.d.ts.map +1 -0
- package/dist/documents/exchange-document-accept-cancellation.js +30 -0
- package/dist/documents/exchange-document-accept-cancellation.js.map +1 -0
- package/dist/documents/exchange-document-accept.d.ts +7 -1
- package/dist/documents/exchange-document-accept.d.ts.map +1 -1
- package/dist/documents/exchange-document-common.d.ts +17 -3
- package/dist/documents/exchange-document-common.d.ts.map +1 -1
- package/dist/documents/exchange-document-common.js +5 -1
- package/dist/documents/exchange-document-common.js.map +1 -1
- package/dist/documents/exchange-document-complete-signing.d.ts +187 -0
- package/dist/documents/exchange-document-complete-signing.d.ts.map +1 -0
- package/dist/documents/exchange-document-complete-signing.js +25 -0
- package/dist/documents/exchange-document-complete-signing.js.map +1 -0
- package/dist/documents/exchange-document-create.d.ts +7 -1
- package/dist/documents/exchange-document-create.d.ts.map +1 -1
- package/dist/documents/exchange-document-get.d.ts +7 -1
- package/dist/documents/exchange-document-get.d.ts.map +1 -1
- package/dist/documents/exchange-document-list-changes.d.ts +18 -2
- package/dist/documents/exchange-document-list-changes.d.ts.map +1 -1
- package/dist/documents/exchange-document-list.d.ts +9 -1
- package/dist/documents/exchange-document-list.d.ts.map +1 -1
- package/dist/documents/exchange-document-prepare-signing.d.ts +205 -0
- package/dist/documents/exchange-document-prepare-signing.d.ts.map +1 -0
- package/dist/documents/exchange-document-prepare-signing.js +25 -0
- package/dist/documents/exchange-document-prepare-signing.js.map +1 -0
- package/dist/documents/exchange-document-reject-cancellation.d.ts +167 -0
- package/dist/documents/exchange-document-reject-cancellation.d.ts.map +1 -0
- package/dist/documents/exchange-document-reject-cancellation.js +30 -0
- package/dist/documents/exchange-document-reject-cancellation.js.map +1 -0
- package/dist/documents/exchange-document-reject.d.ts +7 -1
- package/dist/documents/exchange-document-reject.d.ts.map +1 -1
- package/dist/documents/exchange-document-request-cancellation.d.ts +167 -0
- package/dist/documents/exchange-document-request-cancellation.d.ts.map +1 -0
- package/dist/documents/exchange-document-request-cancellation.js +30 -0
- package/dist/documents/exchange-document-request-cancellation.js.map +1 -0
- package/dist/documents/exchange-document-send.d.ts +7 -1
- package/dist/documents/exchange-document-send.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/trust/certificate-list.d.ts +61 -0
- package/dist/trust/certificate-list.d.ts.map +1 -0
- package/dist/trust/certificate-list.js +35 -0
- package/dist/trust/certificate-list.js.map +1 -0
- package/dist/trust/digital-signature-create.d.ts +64 -0
- package/dist/trust/digital-signature-create.d.ts.map +1 -0
- package/dist/trust/digital-signature-create.js +20 -0
- package/dist/trust/digital-signature-create.js.map +1 -0
- package/dist/trust/signature-common.d.ts +62 -0
- package/dist/trust/signature-common.d.ts.map +1 -0
- package/dist/trust/signature-common.js +39 -0
- package/dist/trust/signature-common.js.map +1 -0
- package/package.json +33 -1
|
@@ -79,6 +79,8 @@ export declare const exchangeDocumentCreateResultSchema: z.ZodObject<{
|
|
|
79
79
|
}>>;
|
|
80
80
|
status: z.ZodDefault<z.ZodEnum<{
|
|
81
81
|
accepted: "accepted";
|
|
82
|
+
cancellationPending: "cancellationPending";
|
|
83
|
+
cancellationRejected: "cancellationRejected";
|
|
82
84
|
cancelled: "cancelled";
|
|
83
85
|
deleted: "deleted";
|
|
84
86
|
delivered: "delivered";
|
|
@@ -136,9 +138,11 @@ export declare const exchangeDocumentCreateResultSchema: z.ZodObject<{
|
|
|
136
138
|
stageId: z.ZodOptional<z.ZodString>;
|
|
137
139
|
kind: z.ZodEnum<{
|
|
138
140
|
accept: "accept";
|
|
139
|
-
|
|
141
|
+
acceptCancellation: "acceptCancellation";
|
|
140
142
|
other: "other";
|
|
141
143
|
reject: "reject";
|
|
144
|
+
rejectCancellation: "rejectCancellation";
|
|
145
|
+
requestCancellation: "requestCancellation";
|
|
142
146
|
send: "send";
|
|
143
147
|
sign: "sign";
|
|
144
148
|
}>;
|
|
@@ -156,6 +160,8 @@ export declare const exchangeDocumentCreateResultSchema: z.ZodObject<{
|
|
|
156
160
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
157
161
|
status: z.ZodOptional<z.ZodEnum<{
|
|
158
162
|
accepted: "accepted";
|
|
163
|
+
cancellationPending: "cancellationPending";
|
|
164
|
+
cancellationRejected: "cancellationRejected";
|
|
159
165
|
cancelled: "cancelled";
|
|
160
166
|
deleted: "deleted";
|
|
161
167
|
delivered: "delivered";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-document-create.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,aAAa,EAAG,mCAA4C,CAAC;AAE1E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB5C,CAAC;AAEH,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"exchange-document-create.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,aAAa,EAAG,mCAA4C,CAAC;AAE1E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB5C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS7C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,iCAAiC,CACxC,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAC3D,OAAO,iCAAiC,CACxC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,kCAAkC,CACzC,CAAC"}
|
|
@@ -30,6 +30,8 @@ export declare const exchangeDocumentGetResultSchema: z.ZodObject<{
|
|
|
30
30
|
}>>;
|
|
31
31
|
status: z.ZodDefault<z.ZodEnum<{
|
|
32
32
|
accepted: "accepted";
|
|
33
|
+
cancellationPending: "cancellationPending";
|
|
34
|
+
cancellationRejected: "cancellationRejected";
|
|
33
35
|
cancelled: "cancelled";
|
|
34
36
|
deleted: "deleted";
|
|
35
37
|
delivered: "delivered";
|
|
@@ -87,9 +89,11 @@ export declare const exchangeDocumentGetResultSchema: z.ZodObject<{
|
|
|
87
89
|
stageId: z.ZodOptional<z.ZodString>;
|
|
88
90
|
kind: z.ZodEnum<{
|
|
89
91
|
accept: "accept";
|
|
90
|
-
|
|
92
|
+
acceptCancellation: "acceptCancellation";
|
|
91
93
|
other: "other";
|
|
92
94
|
reject: "reject";
|
|
95
|
+
rejectCancellation: "rejectCancellation";
|
|
96
|
+
requestCancellation: "requestCancellation";
|
|
93
97
|
send: "send";
|
|
94
98
|
sign: "sign";
|
|
95
99
|
}>;
|
|
@@ -107,6 +111,8 @@ export declare const exchangeDocumentGetResultSchema: z.ZodObject<{
|
|
|
107
111
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
108
112
|
status: z.ZodOptional<z.ZodEnum<{
|
|
109
113
|
accepted: "accepted";
|
|
114
|
+
cancellationPending: "cancellationPending";
|
|
115
|
+
cancellationRejected: "cancellationRejected";
|
|
110
116
|
cancelled: "cancelled";
|
|
111
117
|
deleted: "deleted";
|
|
112
118
|
delivered: "delivered";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-document-get.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,aAAa,EAAG,gCAAyC,CAAC;AAEvE,eAAO,MAAM,8BAA8B;;;;;;iBAWzC,CAAC;AAEH,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"exchange-document-get.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,aAAa,EAAG,gCAAyC,CAAC;AAEvE,eAAO,MAAM,8BAA8B;;;;;;iBAWzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACjG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -40,6 +40,8 @@ export declare const exchangeDocumentChangeSchema: z.ZodObject<{
|
|
|
40
40
|
}>>;
|
|
41
41
|
status: z.ZodDefault<z.ZodEnum<{
|
|
42
42
|
accepted: "accepted";
|
|
43
|
+
cancellationPending: "cancellationPending";
|
|
44
|
+
cancellationRejected: "cancellationRejected";
|
|
43
45
|
cancelled: "cancelled";
|
|
44
46
|
deleted: "deleted";
|
|
45
47
|
delivered: "delivered";
|
|
@@ -97,9 +99,11 @@ export declare const exchangeDocumentChangeSchema: z.ZodObject<{
|
|
|
97
99
|
stageId: z.ZodOptional<z.ZodString>;
|
|
98
100
|
kind: z.ZodEnum<{
|
|
99
101
|
accept: "accept";
|
|
100
|
-
|
|
102
|
+
acceptCancellation: "acceptCancellation";
|
|
101
103
|
other: "other";
|
|
102
104
|
reject: "reject";
|
|
105
|
+
rejectCancellation: "rejectCancellation";
|
|
106
|
+
requestCancellation: "requestCancellation";
|
|
103
107
|
send: "send";
|
|
104
108
|
sign: "sign";
|
|
105
109
|
}>;
|
|
@@ -117,6 +121,8 @@ export declare const exchangeDocumentChangeSchema: z.ZodObject<{
|
|
|
117
121
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
118
122
|
status: z.ZodOptional<z.ZodEnum<{
|
|
119
123
|
accepted: "accepted";
|
|
124
|
+
cancellationPending: "cancellationPending";
|
|
125
|
+
cancellationRejected: "cancellationRejected";
|
|
120
126
|
cancelled: "cancelled";
|
|
121
127
|
deleted: "deleted";
|
|
122
128
|
delivered: "delivered";
|
|
@@ -151,6 +157,8 @@ export declare const exchangeDocumentChangeSchema: z.ZodObject<{
|
|
|
151
157
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
152
158
|
status: z.ZodOptional<z.ZodEnum<{
|
|
153
159
|
accepted: "accepted";
|
|
160
|
+
cancellationPending: "cancellationPending";
|
|
161
|
+
cancellationRejected: "cancellationRejected";
|
|
154
162
|
cancelled: "cancelled";
|
|
155
163
|
deleted: "deleted";
|
|
156
164
|
delivered: "delivered";
|
|
@@ -194,6 +202,8 @@ export declare const exchangeDocumentListChangesResultSchema: z.ZodObject<{
|
|
|
194
202
|
}>>;
|
|
195
203
|
status: z.ZodDefault<z.ZodEnum<{
|
|
196
204
|
accepted: "accepted";
|
|
205
|
+
cancellationPending: "cancellationPending";
|
|
206
|
+
cancellationRejected: "cancellationRejected";
|
|
197
207
|
cancelled: "cancelled";
|
|
198
208
|
deleted: "deleted";
|
|
199
209
|
delivered: "delivered";
|
|
@@ -251,9 +261,11 @@ export declare const exchangeDocumentListChangesResultSchema: z.ZodObject<{
|
|
|
251
261
|
stageId: z.ZodOptional<z.ZodString>;
|
|
252
262
|
kind: z.ZodEnum<{
|
|
253
263
|
accept: "accept";
|
|
254
|
-
|
|
264
|
+
acceptCancellation: "acceptCancellation";
|
|
255
265
|
other: "other";
|
|
256
266
|
reject: "reject";
|
|
267
|
+
rejectCancellation: "rejectCancellation";
|
|
268
|
+
requestCancellation: "requestCancellation";
|
|
257
269
|
send: "send";
|
|
258
270
|
sign: "sign";
|
|
259
271
|
}>;
|
|
@@ -271,6 +283,8 @@ export declare const exchangeDocumentListChangesResultSchema: z.ZodObject<{
|
|
|
271
283
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
272
284
|
status: z.ZodOptional<z.ZodEnum<{
|
|
273
285
|
accepted: "accepted";
|
|
286
|
+
cancellationPending: "cancellationPending";
|
|
287
|
+
cancellationRejected: "cancellationRejected";
|
|
274
288
|
cancelled: "cancelled";
|
|
275
289
|
deleted: "deleted";
|
|
276
290
|
delivered: "delivered";
|
|
@@ -305,6 +319,8 @@ export declare const exchangeDocumentListChangesResultSchema: z.ZodObject<{
|
|
|
305
319
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
306
320
|
status: z.ZodOptional<z.ZodEnum<{
|
|
307
321
|
accepted: "accepted";
|
|
322
|
+
cancellationPending: "cancellationPending";
|
|
323
|
+
cancellationRejected: "cancellationRejected";
|
|
308
324
|
cancelled: "cancelled";
|
|
309
325
|
deleted: "deleted";
|
|
310
326
|
delivered: "delivered";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-document-list-changes.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-list-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,aAAa,EAAG,wCAAiD,CAAC;AAE/E,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;iBAwBjD,CAAC;AAEH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"exchange-document-list-changes.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-list-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,aAAa,EAAG,wCAAiD,CAAC;AAE/E,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;iBAwBjD,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASlD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,sCAAsC,CAC7C,CAAC;AACF,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,MAAM,CAChE,OAAO,sCAAsC,CAC7C,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,uCAAuC,CAC9C,CAAC"}
|
|
@@ -11,6 +11,8 @@ export declare const exchangeDocumentListInputSchema: z.ZodObject<{
|
|
|
11
11
|
}>>;
|
|
12
12
|
status: z.ZodOptional<z.ZodEnum<{
|
|
13
13
|
accepted: "accepted";
|
|
14
|
+
cancellationPending: "cancellationPending";
|
|
15
|
+
cancellationRejected: "cancellationRejected";
|
|
14
16
|
cancelled: "cancelled";
|
|
15
17
|
deleted: "deleted";
|
|
16
18
|
delivered: "delivered";
|
|
@@ -70,6 +72,8 @@ export declare const exchangeDocumentListResultSchema: z.ZodObject<{
|
|
|
70
72
|
}>>;
|
|
71
73
|
status: z.ZodDefault<z.ZodEnum<{
|
|
72
74
|
accepted: "accepted";
|
|
75
|
+
cancellationPending: "cancellationPending";
|
|
76
|
+
cancellationRejected: "cancellationRejected";
|
|
73
77
|
cancelled: "cancelled";
|
|
74
78
|
deleted: "deleted";
|
|
75
79
|
delivered: "delivered";
|
|
@@ -127,9 +131,11 @@ export declare const exchangeDocumentListResultSchema: z.ZodObject<{
|
|
|
127
131
|
stageId: z.ZodOptional<z.ZodString>;
|
|
128
132
|
kind: z.ZodEnum<{
|
|
129
133
|
accept: "accept";
|
|
130
|
-
|
|
134
|
+
acceptCancellation: "acceptCancellation";
|
|
131
135
|
other: "other";
|
|
132
136
|
reject: "reject";
|
|
137
|
+
rejectCancellation: "rejectCancellation";
|
|
138
|
+
requestCancellation: "requestCancellation";
|
|
133
139
|
send: "send";
|
|
134
140
|
sign: "sign";
|
|
135
141
|
}>;
|
|
@@ -147,6 +153,8 @@ export declare const exchangeDocumentListResultSchema: z.ZodObject<{
|
|
|
147
153
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
148
154
|
status: z.ZodOptional<z.ZodEnum<{
|
|
149
155
|
accepted: "accepted";
|
|
156
|
+
cancellationPending: "cancellationPending";
|
|
157
|
+
cancellationRejected: "cancellationRejected";
|
|
150
158
|
cancelled: "cancelled";
|
|
151
159
|
deleted: "deleted";
|
|
152
160
|
delivered: "delivered";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-document-list.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa,EAAG,iCAA0C,CAAC;AAExE,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"exchange-document-list.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa,EAAG,iCAA0C,CAAC;AAExE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBzC,CAAC;AAEJ,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ3C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACnG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const operationCode: 'documents.exchangeDocument.prepareSigning';
|
|
3
|
+
export declare const exchangeDocumentPrepareSigningInputSchema: z.ZodObject<{
|
|
4
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
|
+
actionKind: z.ZodEnum<{
|
|
8
|
+
accept: "accept";
|
|
9
|
+
acceptCancellation: "acceptCancellation";
|
|
10
|
+
other: "other";
|
|
11
|
+
reject: "reject";
|
|
12
|
+
rejectCancellation: "rejectCancellation";
|
|
13
|
+
requestCancellation: "requestCancellation";
|
|
14
|
+
send: "send";
|
|
15
|
+
sign: "sign";
|
|
16
|
+
}>;
|
|
17
|
+
action: z.ZodObject<{
|
|
18
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
stageId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
name: z.ZodOptional<z.ZodString>;
|
|
21
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
attachmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
25
|
+
certificate: z.ZodObject<{
|
|
26
|
+
certificateRef: z.ZodOptional<z.ZodString>;
|
|
27
|
+
thumbprint: z.ZodOptional<z.ZodString>;
|
|
28
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const exchangeDocumentPrepareSigningResultSchema: z.ZodObject<{
|
|
33
|
+
operationCode: z.ZodLiteral<"documents.exchangeDocument.prepareSigning">;
|
|
34
|
+
accessModeUsed: z.ZodLiteral<"authorized">;
|
|
35
|
+
providerCode: z.ZodString;
|
|
36
|
+
document: z.ZodObject<{
|
|
37
|
+
documentId: z.ZodString;
|
|
38
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
number: z.ZodOptional<z.ZodString>;
|
|
40
|
+
issuedAt: z.ZodOptional<z.ZodISODate>;
|
|
41
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
42
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
43
|
+
documentType: z.ZodString;
|
|
44
|
+
documentSubtype: z.ZodOptional<z.ZodString>;
|
|
45
|
+
title: z.ZodOptional<z.ZodString>;
|
|
46
|
+
note: z.ZodOptional<z.ZodString>;
|
|
47
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
48
|
+
incoming: "incoming";
|
|
49
|
+
internal: "internal";
|
|
50
|
+
outgoing: "outgoing";
|
|
51
|
+
unknown: "unknown";
|
|
52
|
+
}>>;
|
|
53
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
accepted: "accepted";
|
|
55
|
+
cancellationPending: "cancellationPending";
|
|
56
|
+
cancellationRejected: "cancellationRejected";
|
|
57
|
+
cancelled: "cancelled";
|
|
58
|
+
deleted: "deleted";
|
|
59
|
+
delivered: "delivered";
|
|
60
|
+
draft: "draft";
|
|
61
|
+
failed: "failed";
|
|
62
|
+
pendingSignature: "pendingSignature";
|
|
63
|
+
readyToSend: "readyToSend";
|
|
64
|
+
received: "received";
|
|
65
|
+
rejected: "rejected";
|
|
66
|
+
sent: "sent";
|
|
67
|
+
unknown: "unknown";
|
|
68
|
+
}>>;
|
|
69
|
+
statusCode: z.ZodOptional<z.ZodString>;
|
|
70
|
+
statusText: z.ZodOptional<z.ZodString>;
|
|
71
|
+
amount: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
amountMinor: z.ZodNumber;
|
|
73
|
+
currency: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
ourOrganization: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
partyId: z.ZodOptional<z.ZodString>;
|
|
77
|
+
name: z.ZodOptional<z.ZodString>;
|
|
78
|
+
taxId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
registrationReasonCode: z.ZodOptional<z.ZodString>;
|
|
80
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
81
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
counterparty: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
partyId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
name: z.ZodOptional<z.ZodString>;
|
|
86
|
+
taxId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
registrationReasonCode: z.ZodOptional<z.ZodString>;
|
|
88
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
89
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
92
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
documentType: z.ZodOptional<z.ZodString>;
|
|
95
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
incoming: "incoming";
|
|
97
|
+
internal: "internal";
|
|
98
|
+
outgoing: "outgoing";
|
|
99
|
+
unknown: "unknown";
|
|
100
|
+
}>>;
|
|
101
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
102
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
downloadUrl: z.ZodOptional<z.ZodURL>;
|
|
104
|
+
downloadUrlExpiresAt: z.ZodOptional<z.ZodISODateTime>;
|
|
105
|
+
isService: z.ZodDefault<z.ZodBoolean>;
|
|
106
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
107
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
availableActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
110
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
stageId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
kind: z.ZodEnum<{
|
|
113
|
+
accept: "accept";
|
|
114
|
+
acceptCancellation: "acceptCancellation";
|
|
115
|
+
other: "other";
|
|
116
|
+
reject: "reject";
|
|
117
|
+
rejectCancellation: "rejectCancellation";
|
|
118
|
+
requestCancellation: "requestCancellation";
|
|
119
|
+
send: "send";
|
|
120
|
+
sign: "sign";
|
|
121
|
+
}>;
|
|
122
|
+
name: z.ZodOptional<z.ZodString>;
|
|
123
|
+
requiresSignature: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
requiresComment: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
126
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
|
+
}, z.core.$strip>>>;
|
|
128
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
129
|
+
eventId: z.ZodString;
|
|
130
|
+
eventType: z.ZodString;
|
|
131
|
+
title: z.ZodOptional<z.ZodString>;
|
|
132
|
+
description: z.ZodOptional<z.ZodString>;
|
|
133
|
+
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
134
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
accepted: "accepted";
|
|
136
|
+
cancellationPending: "cancellationPending";
|
|
137
|
+
cancellationRejected: "cancellationRejected";
|
|
138
|
+
cancelled: "cancelled";
|
|
139
|
+
deleted: "deleted";
|
|
140
|
+
delivered: "delivered";
|
|
141
|
+
draft: "draft";
|
|
142
|
+
failed: "failed";
|
|
143
|
+
pendingSignature: "pendingSignature";
|
|
144
|
+
readyToSend: "readyToSend";
|
|
145
|
+
received: "received";
|
|
146
|
+
rejected: "rejected";
|
|
147
|
+
sent: "sent";
|
|
148
|
+
unknown: "unknown";
|
|
149
|
+
}>>;
|
|
150
|
+
statusCode: z.ZodOptional<z.ZodString>;
|
|
151
|
+
statusText: z.ZodOptional<z.ZodString>;
|
|
152
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
153
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
154
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
|
+
}, z.core.$strip>>>;
|
|
156
|
+
deleted: z.ZodDefault<z.ZodBoolean>;
|
|
157
|
+
partialData: z.ZodDefault<z.ZodBoolean>;
|
|
158
|
+
webUrl: z.ZodOptional<z.ZodURL>;
|
|
159
|
+
archiveUrl: z.ZodOptional<z.ZodURL>;
|
|
160
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
161
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
162
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
actionKind: z.ZodEnum<{
|
|
165
|
+
accept: "accept";
|
|
166
|
+
acceptCancellation: "acceptCancellation";
|
|
167
|
+
other: "other";
|
|
168
|
+
reject: "reject";
|
|
169
|
+
rejectCancellation: "rejectCancellation";
|
|
170
|
+
requestCancellation: "requestCancellation";
|
|
171
|
+
send: "send";
|
|
172
|
+
sign: "sign";
|
|
173
|
+
}>;
|
|
174
|
+
action: z.ZodObject<{
|
|
175
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
176
|
+
stageId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
name: z.ZodOptional<z.ZodString>;
|
|
178
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
181
|
+
targetId: z.ZodString;
|
|
182
|
+
name: z.ZodOptional<z.ZodString>;
|
|
183
|
+
digest: z.ZodObject<{
|
|
184
|
+
valueBase64: z.ZodString;
|
|
185
|
+
algorithm: z.ZodOptional<z.ZodString>;
|
|
186
|
+
providerAlgorithmCode: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
contentUrl: z.ZodOptional<z.ZodURL>;
|
|
189
|
+
signatureFormat: z.ZodDefault<z.ZodEnum<{
|
|
190
|
+
cadesBes: "cadesBes";
|
|
191
|
+
cmsDetached: "cmsDetached";
|
|
192
|
+
providerDefined: "providerDefined";
|
|
193
|
+
raw: "raw";
|
|
194
|
+
xmlDsig: "xmlDsig";
|
|
195
|
+
}>>;
|
|
196
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
messages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
199
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
200
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
export type ExchangeDocumentPrepareSigningInput = z.input<typeof exchangeDocumentPrepareSigningInputSchema>;
|
|
203
|
+
export type NormalizedExchangeDocumentPrepareSigningInput = z.output<typeof exchangeDocumentPrepareSigningInputSchema>;
|
|
204
|
+
export type ExchangeDocumentPrepareSigningResult = z.infer<typeof exchangeDocumentPrepareSigningResultSchema>;
|
|
205
|
+
//# sourceMappingURL=exchange-document-prepare-signing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-document-prepare-signing.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-prepare-signing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,aAAa,EAAG,2CAAoD,CAAC;AAElF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOpD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWrD,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,yCAAyC,CAChD,CAAC;AACF,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,MAAM,CACnE,OAAO,yCAAyC,CAChD,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,0CAA0C,CACjD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { documentAccessModeSchema, documentMetadataSchema, exchangeDocumentActionKindSchema, exchangeDocumentActionRefSchema, exchangeDocumentIdentifierSchema, exchangeDocumentSchema } from './exchange-document-common.js';
|
|
3
|
+
import { signatureTargetSchema, signingCertificateRefSchema } from '../trust/signature-common.js';
|
|
4
|
+
export const operationCode = 'documents.exchangeDocument.prepareSigning';
|
|
5
|
+
export const exchangeDocumentPrepareSigningInputSchema = exchangeDocumentIdentifierSchema.extend({
|
|
6
|
+
actionKind: exchangeDocumentActionKindSchema,
|
|
7
|
+
action: exchangeDocumentActionRefSchema,
|
|
8
|
+
attachmentIds: z.array(z.string().min(1)).min(1).optional(),
|
|
9
|
+
comment: z.string().min(1).optional(),
|
|
10
|
+
certificate: signingCertificateRefSchema,
|
|
11
|
+
metadata: documentMetadataSchema
|
|
12
|
+
});
|
|
13
|
+
export const exchangeDocumentPrepareSigningResultSchema = z.object({
|
|
14
|
+
operationCode: z.literal(operationCode),
|
|
15
|
+
accessModeUsed: documentAccessModeSchema,
|
|
16
|
+
providerCode: z.string().min(1),
|
|
17
|
+
document: exchangeDocumentSchema,
|
|
18
|
+
actionKind: exchangeDocumentActionKindSchema,
|
|
19
|
+
action: exchangeDocumentActionRefSchema,
|
|
20
|
+
targets: z.array(signatureTargetSchema).min(1),
|
|
21
|
+
messages: z.array(z.string().min(1)).default([]),
|
|
22
|
+
raw: z.unknown().optional(),
|
|
23
|
+
metadata: documentMetadataSchema
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=exchange-document-prepare-signing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-document-prepare-signing.js","sourceRoot":"","sources":["../../src/documents/exchange-document-prepare-signing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACN,wBAAwB,EACxB,sBAAsB,EACtB,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,sBAAsB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,qBAAqB,EACrB,2BAA2B,EAC3B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,MAAM,aAAa,GAAG,2CAAoD,CAAC;AAElF,MAAM,CAAC,MAAM,yCAAyC,GAAG,gCAAgC,CAAC,MAAM,CAAC;IAChG,UAAU,EAAE,gCAAgC;IAC5C,MAAM,EAAE,+BAA+B;IACvC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,sBAAsB;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,MAAM,CAAC;IAClE,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,cAAc,EAAE,wBAAwB;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,QAAQ,EAAE,sBAAsB;IAChC,UAAU,EAAE,gCAAgC;IAC5C,MAAM,EAAE,+BAA+B;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,sBAAsB;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const operationCode: 'documents.exchangeDocument.rejectCancellation';
|
|
3
|
+
export declare const exchangeDocumentRejectCancellationInputSchema: z.ZodObject<{
|
|
4
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
|
+
action: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
stageId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
attachmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
reason: z.ZodString;
|
|
15
|
+
signingMode: z.ZodEnum<{
|
|
16
|
+
deferred: "deferred";
|
|
17
|
+
deferredWithConfirmation: "deferredWithConfirmation";
|
|
18
|
+
providerManaged: "providerManaged";
|
|
19
|
+
withoutSignature: "withoutSignature";
|
|
20
|
+
}>;
|
|
21
|
+
certificateRef: z.ZodOptional<z.ZodString>;
|
|
22
|
+
confirmLegalAction: z.ZodLiteral<true>;
|
|
23
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
24
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const exchangeDocumentRejectCancellationResultSchema: z.ZodObject<{
|
|
27
|
+
operationCode: z.ZodLiteral<"documents.exchangeDocument.rejectCancellation">;
|
|
28
|
+
accessModeUsed: z.ZodLiteral<"authorized">;
|
|
29
|
+
providerCode: z.ZodString;
|
|
30
|
+
document: z.ZodObject<{
|
|
31
|
+
documentId: z.ZodString;
|
|
32
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
number: z.ZodOptional<z.ZodString>;
|
|
34
|
+
issuedAt: z.ZodOptional<z.ZodISODate>;
|
|
35
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
36
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
37
|
+
documentType: z.ZodString;
|
|
38
|
+
documentSubtype: z.ZodOptional<z.ZodString>;
|
|
39
|
+
title: z.ZodOptional<z.ZodString>;
|
|
40
|
+
note: z.ZodOptional<z.ZodString>;
|
|
41
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
incoming: "incoming";
|
|
43
|
+
internal: "internal";
|
|
44
|
+
outgoing: "outgoing";
|
|
45
|
+
unknown: "unknown";
|
|
46
|
+
}>>;
|
|
47
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
48
|
+
accepted: "accepted";
|
|
49
|
+
cancellationPending: "cancellationPending";
|
|
50
|
+
cancellationRejected: "cancellationRejected";
|
|
51
|
+
cancelled: "cancelled";
|
|
52
|
+
deleted: "deleted";
|
|
53
|
+
delivered: "delivered";
|
|
54
|
+
draft: "draft";
|
|
55
|
+
failed: "failed";
|
|
56
|
+
pendingSignature: "pendingSignature";
|
|
57
|
+
readyToSend: "readyToSend";
|
|
58
|
+
received: "received";
|
|
59
|
+
rejected: "rejected";
|
|
60
|
+
sent: "sent";
|
|
61
|
+
unknown: "unknown";
|
|
62
|
+
}>>;
|
|
63
|
+
statusCode: z.ZodOptional<z.ZodString>;
|
|
64
|
+
statusText: z.ZodOptional<z.ZodString>;
|
|
65
|
+
amount: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
amountMinor: z.ZodNumber;
|
|
67
|
+
currency: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
ourOrganization: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
partyId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
name: z.ZodOptional<z.ZodString>;
|
|
72
|
+
taxId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
registrationReasonCode: z.ZodOptional<z.ZodString>;
|
|
74
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
75
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
counterparty: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
partyId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
name: z.ZodOptional<z.ZodString>;
|
|
80
|
+
taxId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
registrationReasonCode: z.ZodOptional<z.ZodString>;
|
|
82
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
83
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
documentType: z.ZodOptional<z.ZodString>;
|
|
89
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
90
|
+
incoming: "incoming";
|
|
91
|
+
internal: "internal";
|
|
92
|
+
outgoing: "outgoing";
|
|
93
|
+
unknown: "unknown";
|
|
94
|
+
}>>;
|
|
95
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
96
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
downloadUrl: z.ZodOptional<z.ZodURL>;
|
|
98
|
+
downloadUrlExpiresAt: z.ZodOptional<z.ZodISODateTime>;
|
|
99
|
+
isService: z.ZodDefault<z.ZodBoolean>;
|
|
100
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
101
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
availableActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
104
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
stageId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
kind: z.ZodEnum<{
|
|
107
|
+
accept: "accept";
|
|
108
|
+
acceptCancellation: "acceptCancellation";
|
|
109
|
+
other: "other";
|
|
110
|
+
reject: "reject";
|
|
111
|
+
rejectCancellation: "rejectCancellation";
|
|
112
|
+
requestCancellation: "requestCancellation";
|
|
113
|
+
send: "send";
|
|
114
|
+
sign: "sign";
|
|
115
|
+
}>;
|
|
116
|
+
name: z.ZodOptional<z.ZodString>;
|
|
117
|
+
requiresSignature: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
requiresComment: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
120
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
123
|
+
eventId: z.ZodString;
|
|
124
|
+
eventType: z.ZodString;
|
|
125
|
+
title: z.ZodOptional<z.ZodString>;
|
|
126
|
+
description: z.ZodOptional<z.ZodString>;
|
|
127
|
+
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
128
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
accepted: "accepted";
|
|
130
|
+
cancellationPending: "cancellationPending";
|
|
131
|
+
cancellationRejected: "cancellationRejected";
|
|
132
|
+
cancelled: "cancelled";
|
|
133
|
+
deleted: "deleted";
|
|
134
|
+
delivered: "delivered";
|
|
135
|
+
draft: "draft";
|
|
136
|
+
failed: "failed";
|
|
137
|
+
pendingSignature: "pendingSignature";
|
|
138
|
+
readyToSend: "readyToSend";
|
|
139
|
+
received: "received";
|
|
140
|
+
rejected: "rejected";
|
|
141
|
+
sent: "sent";
|
|
142
|
+
unknown: "unknown";
|
|
143
|
+
}>>;
|
|
144
|
+
statusCode: z.ZodOptional<z.ZodString>;
|
|
145
|
+
statusText: z.ZodOptional<z.ZodString>;
|
|
146
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
147
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
148
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
149
|
+
}, z.core.$strip>>>;
|
|
150
|
+
deleted: z.ZodDefault<z.ZodBoolean>;
|
|
151
|
+
partialData: z.ZodDefault<z.ZodBoolean>;
|
|
152
|
+
webUrl: z.ZodOptional<z.ZodURL>;
|
|
153
|
+
archiveUrl: z.ZodOptional<z.ZodURL>;
|
|
154
|
+
externalIds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
155
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
156
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
completed: z.ZodBoolean;
|
|
159
|
+
affectedAttachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
160
|
+
messages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
161
|
+
raw: z.ZodOptional<z.ZodUnknown>;
|
|
162
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export type ExchangeDocumentRejectCancellationInput = z.input<typeof exchangeDocumentRejectCancellationInputSchema>;
|
|
165
|
+
export type NormalizedExchangeDocumentRejectCancellationInput = z.output<typeof exchangeDocumentRejectCancellationInputSchema>;
|
|
166
|
+
export type ExchangeDocumentRejectCancellationResult = z.infer<typeof exchangeDocumentRejectCancellationResultSchema>;
|
|
167
|
+
//# sourceMappingURL=exchange-document-reject-cancellation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-document-reject-cancellation.d.ts","sourceRoot":"","sources":["../../src/documents/exchange-document-reject-cancellation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,aAAa,EACzB,+CAAwD,CAAC;AAE1D,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;iBAkBvD,CAAC;AAEJ,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUzD,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,6CAA6C,CACpD,CAAC;AACF,MAAM,MAAM,iDAAiD,GAAG,CAAC,CAAC,MAAM,CACvE,OAAO,6CAA6C,CACpD,CAAC;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,8CAA8C,CACrD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { documentAccessModeSchema, documentMetadataSchema, exchangeDocumentActionRefSchema, exchangeDocumentIdentifierSchema, exchangeDocumentSchema, exchangeDocumentSigningModeSchema } from './exchange-document-common.js';
|
|
3
|
+
export const operationCode = 'documents.exchangeDocument.rejectCancellation';
|
|
4
|
+
export const exchangeDocumentRejectCancellationInputSchema = exchangeDocumentIdentifierSchema
|
|
5
|
+
.extend({
|
|
6
|
+
action: exchangeDocumentActionRefSchema.optional(),
|
|
7
|
+
attachmentIds: z.array(z.string().min(1)).min(1).optional(),
|
|
8
|
+
reason: z.string().min(1),
|
|
9
|
+
signingMode: exchangeDocumentSigningModeSchema,
|
|
10
|
+
certificateRef: z.string().min(1).optional(),
|
|
11
|
+
confirmLegalAction: z.literal(true),
|
|
12
|
+
idempotencyKey: z.string().min(1).optional(),
|
|
13
|
+
metadata: documentMetadataSchema
|
|
14
|
+
})
|
|
15
|
+
.refine((value) => value.signingMode === 'providerManaged' || !value.certificateRef, {
|
|
16
|
+
message: 'certificateRef is only valid with providerManaged signing',
|
|
17
|
+
path: ['certificateRef']
|
|
18
|
+
});
|
|
19
|
+
export const exchangeDocumentRejectCancellationResultSchema = z.object({
|
|
20
|
+
operationCode: z.literal(operationCode),
|
|
21
|
+
accessModeUsed: documentAccessModeSchema,
|
|
22
|
+
providerCode: z.string().min(1),
|
|
23
|
+
document: exchangeDocumentSchema,
|
|
24
|
+
completed: z.boolean(),
|
|
25
|
+
affectedAttachmentIds: z.array(z.string().min(1)).default([]),
|
|
26
|
+
messages: z.array(z.string().min(1)).default([]),
|
|
27
|
+
raw: z.unknown().optional(),
|
|
28
|
+
metadata: documentMetadataSchema
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=exchange-document-reject-cancellation.js.map
|