@criipto/signatures 1.2.0 → 1.2.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/dist/graphql-sdk.d.ts +191 -6
- package/dist/graphql-sdk.js +4 -0
- package/dist/index.d.ts +89 -8
- package/package.json +1 -1
package/dist/graphql-sdk.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="whatwg-fetch" />
|
|
3
2
|
import { GraphQLClient } from 'graphql-request';
|
|
4
3
|
import * as Dom from 'graphql-request/dist/types.dom';
|
|
5
4
|
export type Maybe<T> = T | null;
|
|
@@ -251,15 +250,19 @@ export type DeleteSignatoryOutput = {
|
|
|
251
250
|
export type Document = {
|
|
252
251
|
blob?: Maybe<Scalars['Blob']>;
|
|
253
252
|
id: Scalars['ID'];
|
|
253
|
+
originalBlob?: Maybe<Scalars['Blob']>;
|
|
254
254
|
reference?: Maybe<Scalars['String']>;
|
|
255
255
|
signatoryViewerStatus?: Maybe<SignatoryDocumentStatus>;
|
|
256
256
|
signatures?: Maybe<Array<Signature>>;
|
|
257
257
|
title: Scalars['String'];
|
|
258
258
|
};
|
|
259
|
+
export type DocumentIdLocation = 'BOTTOM' | 'LEFT' | 'RIGHT' | 'TOP' | '%future added value';
|
|
259
260
|
export type DocumentInput = {
|
|
260
|
-
pdf
|
|
261
|
-
/** When enabled, will remove any existing signatures from the document before storing. */
|
|
261
|
+
pdf?: InputMaybe<PadesDocumentInput>;
|
|
262
|
+
/** When enabled, will remove any existing signatures from the document before storing. (PDF only) */
|
|
262
263
|
removePreviousSignatures?: InputMaybe<Scalars['Boolean']>;
|
|
264
|
+
/** XML signing is coming soon, reach out to learn more. */
|
|
265
|
+
xml?: InputMaybe<XadesDocumentInput>;
|
|
263
266
|
};
|
|
264
267
|
/** Document storage mode. Temporary documents will be deleted once completed. */
|
|
265
268
|
export type DocumentStorageMode =
|
|
@@ -459,6 +462,8 @@ export type OidcJwtSignatureEvidenceProvider = SignatureEvidenceProvider & {
|
|
|
459
462
|
};
|
|
460
463
|
export type PadesDocumentInput = {
|
|
461
464
|
blob: Scalars['Blob'];
|
|
465
|
+
/** Will add a unique identifier for the document to the specified margin of each page. Useful when printing signed documents. */
|
|
466
|
+
displayDocumentID?: InputMaybe<DocumentIdLocation>;
|
|
462
467
|
/** Will not be displayed to signatories, can be used as a reference to your own system. */
|
|
463
468
|
reference?: InputMaybe<Scalars['String']>;
|
|
464
469
|
storageMode: DocumentStorageMode;
|
|
@@ -480,6 +485,7 @@ export type PdfDocument = Document & {
|
|
|
480
485
|
__typename?: 'PdfDocument';
|
|
481
486
|
blob?: Maybe<Scalars['Blob']>;
|
|
482
487
|
id: Scalars['ID'];
|
|
488
|
+
originalBlob?: Maybe<Scalars['Blob']>;
|
|
483
489
|
reference?: Maybe<Scalars['String']>;
|
|
484
490
|
signatoryViewerStatus?: Maybe<SignatoryDocumentStatus>;
|
|
485
491
|
signatures?: Maybe<Array<Signature>>;
|
|
@@ -655,6 +661,7 @@ export type Signature = {
|
|
|
655
661
|
};
|
|
656
662
|
export type SignatureAppearanceInput = {
|
|
657
663
|
displayName?: InputMaybe<Array<SignatureAppearanceTemplateInput>>;
|
|
664
|
+
headerLeft?: InputMaybe<Array<SignatureAppearanceTemplateInput>>;
|
|
658
665
|
/** Render evidence claim as identifier in the signature appearance inside the document. You can supply multiple keys and they will be tried in order. If no key is found a GUID will be rendered. */
|
|
659
666
|
identifierFromEvidence: Array<Scalars['String']>;
|
|
660
667
|
};
|
|
@@ -723,7 +730,7 @@ export type SignatureOrderUiLogo = {
|
|
|
723
730
|
export type SignatureOrderUiLogoInput = {
|
|
724
731
|
/** Turns your logo into a link with the defined href. */
|
|
725
732
|
href?: InputMaybe<Scalars['String']>;
|
|
726
|
-
/** The image source for the logo. Must be an absolute HTTPS URL
|
|
733
|
+
/** The image source for the logo. Must be an absolute HTTPS URL or a valid data: url */
|
|
727
734
|
src: Scalars['String'];
|
|
728
735
|
};
|
|
729
736
|
export type SignatureOrderWebhook = {
|
|
@@ -859,12 +866,65 @@ export type WebhookTimeoutInvocation = WebhookInvocation & {
|
|
|
859
866
|
timestamp: Scalars['String'];
|
|
860
867
|
url: Scalars['String'];
|
|
861
868
|
};
|
|
862
|
-
export type
|
|
869
|
+
export type XadesDocumentInput = {
|
|
870
|
+
blob: Scalars['Blob'];
|
|
871
|
+
/** Will not be displayed to signatories, can be used as a reference to your own system. */
|
|
872
|
+
reference?: InputMaybe<Scalars['String']>;
|
|
873
|
+
storageMode: DocumentStorageMode;
|
|
874
|
+
title: Scalars['String'];
|
|
875
|
+
};
|
|
876
|
+
export type XmlDocument = Document & {
|
|
877
|
+
__typename?: 'XmlDocument';
|
|
878
|
+
blob?: Maybe<Scalars['Blob']>;
|
|
879
|
+
id: Scalars['ID'];
|
|
880
|
+
originalBlob?: Maybe<Scalars['Blob']>;
|
|
881
|
+
reference?: Maybe<Scalars['String']>;
|
|
882
|
+
signatoryViewerStatus?: Maybe<SignatoryDocumentStatus>;
|
|
883
|
+
signatures?: Maybe<Array<Signature>>;
|
|
884
|
+
title: Scalars['String'];
|
|
885
|
+
};
|
|
886
|
+
type BasicDocument_PdfDocument_Fragment = {
|
|
863
887
|
__typename: 'PdfDocument';
|
|
864
888
|
id: string;
|
|
889
|
+
title: string;
|
|
890
|
+
};
|
|
891
|
+
type BasicDocument_XmlDocument_Fragment = {
|
|
892
|
+
__typename: 'XmlDocument';
|
|
893
|
+
id: string;
|
|
894
|
+
title: string;
|
|
865
895
|
};
|
|
866
|
-
export type
|
|
896
|
+
export type BasicDocumentFragment = BasicDocument_PdfDocument_Fragment | BasicDocument_XmlDocument_Fragment;
|
|
897
|
+
type SignedDocument_PdfDocument_Fragment = {
|
|
867
898
|
__typename?: 'PdfDocument';
|
|
899
|
+
id: string;
|
|
900
|
+
title: string;
|
|
901
|
+
blob?: Buffer | null;
|
|
902
|
+
signatures?: Array<{
|
|
903
|
+
__typename: 'DrawableSignature';
|
|
904
|
+
signatory?: {
|
|
905
|
+
__typename?: 'Signatory';
|
|
906
|
+
id: string;
|
|
907
|
+
} | null;
|
|
908
|
+
} | {
|
|
909
|
+
__typename: 'EmptySignature';
|
|
910
|
+
signatory?: {
|
|
911
|
+
__typename?: 'Signatory';
|
|
912
|
+
id: string;
|
|
913
|
+
} | null;
|
|
914
|
+
} | {
|
|
915
|
+
__typename: 'JWTSignature';
|
|
916
|
+
jwt: string;
|
|
917
|
+
jwks: string;
|
|
918
|
+
signatory?: {
|
|
919
|
+
__typename?: 'Signatory';
|
|
920
|
+
id: string;
|
|
921
|
+
} | null;
|
|
922
|
+
}> | null;
|
|
923
|
+
};
|
|
924
|
+
type SignedDocument_XmlDocument_Fragment = {
|
|
925
|
+
__typename?: 'XmlDocument';
|
|
926
|
+
id: string;
|
|
927
|
+
title: string;
|
|
868
928
|
blob?: Buffer | null;
|
|
869
929
|
signatures?: Array<{
|
|
870
930
|
__typename: 'DrawableSignature';
|
|
@@ -888,6 +948,7 @@ export type SignedDocumentFragment = {
|
|
|
888
948
|
} | null;
|
|
889
949
|
}> | null;
|
|
890
950
|
};
|
|
951
|
+
export type SignedDocumentFragment = SignedDocument_PdfDocument_Fragment | SignedDocument_XmlDocument_Fragment;
|
|
891
952
|
export type BasicSignatoryFragment = {
|
|
892
953
|
__typename?: 'Signatory';
|
|
893
954
|
id: string;
|
|
@@ -917,6 +978,9 @@ export type BasicSignatoryFragment = {
|
|
|
917
978
|
node: {
|
|
918
979
|
__typename: 'PdfDocument';
|
|
919
980
|
id: string;
|
|
981
|
+
} | {
|
|
982
|
+
__typename: 'XmlDocument';
|
|
983
|
+
id: string;
|
|
920
984
|
};
|
|
921
985
|
}>;
|
|
922
986
|
};
|
|
@@ -925,6 +989,7 @@ export type BasicSignatureOrderFragment = {
|
|
|
925
989
|
__typename?: 'SignatureOrder';
|
|
926
990
|
id: string;
|
|
927
991
|
status: SignatureOrderStatus;
|
|
992
|
+
title?: string | null;
|
|
928
993
|
signatories: Array<{
|
|
929
994
|
__typename?: 'Signatory';
|
|
930
995
|
id: string;
|
|
@@ -954,6 +1019,9 @@ export type BasicSignatureOrderFragment = {
|
|
|
954
1019
|
node: {
|
|
955
1020
|
__typename: 'PdfDocument';
|
|
956
1021
|
id: string;
|
|
1022
|
+
} | {
|
|
1023
|
+
__typename: 'XmlDocument';
|
|
1024
|
+
id: string;
|
|
957
1025
|
};
|
|
958
1026
|
}>;
|
|
959
1027
|
};
|
|
@@ -983,9 +1051,15 @@ export type CreateSignatureOrderMutation = {
|
|
|
983
1051
|
__typename?: 'SignatureOrder';
|
|
984
1052
|
id: string;
|
|
985
1053
|
status: SignatureOrderStatus;
|
|
1054
|
+
title?: string | null;
|
|
986
1055
|
documents: Array<{
|
|
987
1056
|
__typename: 'PdfDocument';
|
|
988
1057
|
id: string;
|
|
1058
|
+
title: string;
|
|
1059
|
+
} | {
|
|
1060
|
+
__typename: 'XmlDocument';
|
|
1061
|
+
id: string;
|
|
1062
|
+
title: string;
|
|
989
1063
|
}>;
|
|
990
1064
|
signatories: Array<{
|
|
991
1065
|
__typename?: 'Signatory';
|
|
@@ -1016,6 +1090,9 @@ export type CreateSignatureOrderMutation = {
|
|
|
1016
1090
|
node: {
|
|
1017
1091
|
__typename: 'PdfDocument';
|
|
1018
1092
|
id: string;
|
|
1093
|
+
} | {
|
|
1094
|
+
__typename: 'XmlDocument';
|
|
1095
|
+
id: string;
|
|
1019
1096
|
};
|
|
1020
1097
|
}>;
|
|
1021
1098
|
};
|
|
@@ -1047,9 +1124,15 @@ export type CleanupSignatureOrderMutation = {
|
|
|
1047
1124
|
__typename?: 'SignatureOrder';
|
|
1048
1125
|
id: string;
|
|
1049
1126
|
status: SignatureOrderStatus;
|
|
1127
|
+
title?: string | null;
|
|
1050
1128
|
documents: Array<{
|
|
1051
1129
|
__typename: 'PdfDocument';
|
|
1052
1130
|
id: string;
|
|
1131
|
+
title: string;
|
|
1132
|
+
} | {
|
|
1133
|
+
__typename: 'XmlDocument';
|
|
1134
|
+
id: string;
|
|
1135
|
+
title: string;
|
|
1053
1136
|
}>;
|
|
1054
1137
|
signatories: Array<{
|
|
1055
1138
|
__typename?: 'Signatory';
|
|
@@ -1080,6 +1163,9 @@ export type CleanupSignatureOrderMutation = {
|
|
|
1080
1163
|
node: {
|
|
1081
1164
|
__typename: 'PdfDocument';
|
|
1082
1165
|
id: string;
|
|
1166
|
+
} | {
|
|
1167
|
+
__typename: 'XmlDocument';
|
|
1168
|
+
id: string;
|
|
1083
1169
|
};
|
|
1084
1170
|
}>;
|
|
1085
1171
|
};
|
|
@@ -1136,6 +1222,9 @@ export type AddSignatoryMutation = {
|
|
|
1136
1222
|
node: {
|
|
1137
1223
|
__typename: 'PdfDocument';
|
|
1138
1224
|
id: string;
|
|
1225
|
+
} | {
|
|
1226
|
+
__typename: 'XmlDocument';
|
|
1227
|
+
id: string;
|
|
1139
1228
|
};
|
|
1140
1229
|
}>;
|
|
1141
1230
|
};
|
|
@@ -1178,6 +1267,9 @@ export type AddSignatoriesMutation = {
|
|
|
1178
1267
|
node: {
|
|
1179
1268
|
__typename: 'PdfDocument';
|
|
1180
1269
|
id: string;
|
|
1270
|
+
} | {
|
|
1271
|
+
__typename: 'XmlDocument';
|
|
1272
|
+
id: string;
|
|
1181
1273
|
};
|
|
1182
1274
|
}>;
|
|
1183
1275
|
};
|
|
@@ -1220,6 +1312,9 @@ export type ChangeSignatoryMutation = {
|
|
|
1220
1312
|
node: {
|
|
1221
1313
|
__typename: 'PdfDocument';
|
|
1222
1314
|
id: string;
|
|
1315
|
+
} | {
|
|
1316
|
+
__typename: 'XmlDocument';
|
|
1317
|
+
id: string;
|
|
1223
1318
|
};
|
|
1224
1319
|
}>;
|
|
1225
1320
|
};
|
|
@@ -1237,9 +1332,37 @@ export type CloseSignatureOrderMutation = {
|
|
|
1237
1332
|
__typename?: 'SignatureOrder';
|
|
1238
1333
|
id: string;
|
|
1239
1334
|
status: SignatureOrderStatus;
|
|
1335
|
+
title?: string | null;
|
|
1240
1336
|
documents: Array<{
|
|
1241
1337
|
__typename: 'PdfDocument';
|
|
1242
1338
|
id: string;
|
|
1339
|
+
title: string;
|
|
1340
|
+
blob?: Buffer | null;
|
|
1341
|
+
signatures?: Array<{
|
|
1342
|
+
__typename: 'DrawableSignature';
|
|
1343
|
+
signatory?: {
|
|
1344
|
+
__typename?: 'Signatory';
|
|
1345
|
+
id: string;
|
|
1346
|
+
} | null;
|
|
1347
|
+
} | {
|
|
1348
|
+
__typename: 'EmptySignature';
|
|
1349
|
+
signatory?: {
|
|
1350
|
+
__typename?: 'Signatory';
|
|
1351
|
+
id: string;
|
|
1352
|
+
} | null;
|
|
1353
|
+
} | {
|
|
1354
|
+
__typename: 'JWTSignature';
|
|
1355
|
+
jwt: string;
|
|
1356
|
+
jwks: string;
|
|
1357
|
+
signatory?: {
|
|
1358
|
+
__typename?: 'Signatory';
|
|
1359
|
+
id: string;
|
|
1360
|
+
} | null;
|
|
1361
|
+
}> | null;
|
|
1362
|
+
} | {
|
|
1363
|
+
__typename: 'XmlDocument';
|
|
1364
|
+
id: string;
|
|
1365
|
+
title: string;
|
|
1243
1366
|
blob?: Buffer | null;
|
|
1244
1367
|
signatures?: Array<{
|
|
1245
1368
|
__typename: 'DrawableSignature';
|
|
@@ -1292,6 +1415,9 @@ export type CloseSignatureOrderMutation = {
|
|
|
1292
1415
|
node: {
|
|
1293
1416
|
__typename: 'PdfDocument';
|
|
1294
1417
|
id: string;
|
|
1418
|
+
} | {
|
|
1419
|
+
__typename: 'XmlDocument';
|
|
1420
|
+
id: string;
|
|
1295
1421
|
};
|
|
1296
1422
|
}>;
|
|
1297
1423
|
};
|
|
@@ -1323,9 +1449,15 @@ export type CancelSignatureOrderMutation = {
|
|
|
1323
1449
|
__typename?: 'SignatureOrder';
|
|
1324
1450
|
id: string;
|
|
1325
1451
|
status: SignatureOrderStatus;
|
|
1452
|
+
title?: string | null;
|
|
1326
1453
|
documents: Array<{
|
|
1327
1454
|
__typename: 'PdfDocument';
|
|
1328
1455
|
id: string;
|
|
1456
|
+
title: string;
|
|
1457
|
+
} | {
|
|
1458
|
+
__typename: 'XmlDocument';
|
|
1459
|
+
id: string;
|
|
1460
|
+
title: string;
|
|
1329
1461
|
}>;
|
|
1330
1462
|
signatories: Array<{
|
|
1331
1463
|
__typename?: 'Signatory';
|
|
@@ -1356,6 +1488,9 @@ export type CancelSignatureOrderMutation = {
|
|
|
1356
1488
|
node: {
|
|
1357
1489
|
__typename: 'PdfDocument';
|
|
1358
1490
|
id: string;
|
|
1491
|
+
} | {
|
|
1492
|
+
__typename: 'XmlDocument';
|
|
1493
|
+
id: string;
|
|
1359
1494
|
};
|
|
1360
1495
|
}>;
|
|
1361
1496
|
};
|
|
@@ -1412,6 +1547,9 @@ export type SignActingAsMutation = {
|
|
|
1412
1547
|
node: {
|
|
1413
1548
|
__typename: 'PdfDocument';
|
|
1414
1549
|
id: string;
|
|
1550
|
+
} | {
|
|
1551
|
+
__typename: 'XmlDocument';
|
|
1552
|
+
id: string;
|
|
1415
1553
|
};
|
|
1416
1554
|
}>;
|
|
1417
1555
|
};
|
|
@@ -1427,6 +1565,7 @@ export type SignatureOrderQuery = {
|
|
|
1427
1565
|
__typename?: 'SignatureOrder';
|
|
1428
1566
|
id: string;
|
|
1429
1567
|
status: SignatureOrderStatus;
|
|
1568
|
+
title?: string | null;
|
|
1430
1569
|
signatories: Array<{
|
|
1431
1570
|
__typename?: 'Signatory';
|
|
1432
1571
|
id: string;
|
|
@@ -1456,6 +1595,9 @@ export type SignatureOrderQuery = {
|
|
|
1456
1595
|
node: {
|
|
1457
1596
|
__typename: 'PdfDocument';
|
|
1458
1597
|
id: string;
|
|
1598
|
+
} | {
|
|
1599
|
+
__typename: 'XmlDocument';
|
|
1600
|
+
id: string;
|
|
1459
1601
|
};
|
|
1460
1602
|
}>;
|
|
1461
1603
|
};
|
|
@@ -1484,9 +1626,37 @@ export type SignatureOrderWithDocumentsQuery = {
|
|
|
1484
1626
|
__typename?: 'SignatureOrder';
|
|
1485
1627
|
id: string;
|
|
1486
1628
|
status: SignatureOrderStatus;
|
|
1629
|
+
title?: string | null;
|
|
1487
1630
|
documents: Array<{
|
|
1488
1631
|
__typename: 'PdfDocument';
|
|
1489
1632
|
id: string;
|
|
1633
|
+
title: string;
|
|
1634
|
+
blob?: Buffer | null;
|
|
1635
|
+
signatures?: Array<{
|
|
1636
|
+
__typename: 'DrawableSignature';
|
|
1637
|
+
signatory?: {
|
|
1638
|
+
__typename?: 'Signatory';
|
|
1639
|
+
id: string;
|
|
1640
|
+
} | null;
|
|
1641
|
+
} | {
|
|
1642
|
+
__typename: 'EmptySignature';
|
|
1643
|
+
signatory?: {
|
|
1644
|
+
__typename?: 'Signatory';
|
|
1645
|
+
id: string;
|
|
1646
|
+
} | null;
|
|
1647
|
+
} | {
|
|
1648
|
+
__typename: 'JWTSignature';
|
|
1649
|
+
jwt: string;
|
|
1650
|
+
jwks: string;
|
|
1651
|
+
signatory?: {
|
|
1652
|
+
__typename?: 'Signatory';
|
|
1653
|
+
id: string;
|
|
1654
|
+
} | null;
|
|
1655
|
+
}> | null;
|
|
1656
|
+
} | {
|
|
1657
|
+
__typename: 'XmlDocument';
|
|
1658
|
+
id: string;
|
|
1659
|
+
title: string;
|
|
1490
1660
|
blob?: Buffer | null;
|
|
1491
1661
|
signatures?: Array<{
|
|
1492
1662
|
__typename: 'DrawableSignature';
|
|
@@ -1539,6 +1709,9 @@ export type SignatureOrderWithDocumentsQuery = {
|
|
|
1539
1709
|
node: {
|
|
1540
1710
|
__typename: 'PdfDocument';
|
|
1541
1711
|
id: string;
|
|
1712
|
+
} | {
|
|
1713
|
+
__typename: 'XmlDocument';
|
|
1714
|
+
id: string;
|
|
1542
1715
|
};
|
|
1543
1716
|
}>;
|
|
1544
1717
|
};
|
|
@@ -1575,6 +1748,7 @@ export type SignatoryQuery = {
|
|
|
1575
1748
|
__typename?: 'SignatureOrder';
|
|
1576
1749
|
id: string;
|
|
1577
1750
|
status: SignatureOrderStatus;
|
|
1751
|
+
title?: string | null;
|
|
1578
1752
|
signatories: Array<{
|
|
1579
1753
|
__typename?: 'Signatory';
|
|
1580
1754
|
id: string;
|
|
@@ -1604,6 +1778,9 @@ export type SignatoryQuery = {
|
|
|
1604
1778
|
node: {
|
|
1605
1779
|
__typename: 'PdfDocument';
|
|
1606
1780
|
id: string;
|
|
1781
|
+
} | {
|
|
1782
|
+
__typename: 'XmlDocument';
|
|
1783
|
+
id: string;
|
|
1607
1784
|
};
|
|
1608
1785
|
}>;
|
|
1609
1786
|
};
|
|
@@ -1643,6 +1820,9 @@ export type SignatoryQuery = {
|
|
|
1643
1820
|
node: {
|
|
1644
1821
|
__typename: 'PdfDocument';
|
|
1645
1822
|
id: string;
|
|
1823
|
+
} | {
|
|
1824
|
+
__typename: 'XmlDocument';
|
|
1825
|
+
id: string;
|
|
1646
1826
|
};
|
|
1647
1827
|
}>;
|
|
1648
1828
|
};
|
|
@@ -1667,6 +1847,7 @@ export type SignatureOrdersQuery = {
|
|
|
1667
1847
|
__typename?: 'SignatureOrder';
|
|
1668
1848
|
id: string;
|
|
1669
1849
|
status: SignatureOrderStatus;
|
|
1850
|
+
title?: string | null;
|
|
1670
1851
|
signatories: Array<{
|
|
1671
1852
|
__typename?: 'Signatory';
|
|
1672
1853
|
id: string;
|
|
@@ -1696,6 +1877,9 @@ export type SignatureOrdersQuery = {
|
|
|
1696
1877
|
node: {
|
|
1697
1878
|
__typename: 'PdfDocument';
|
|
1698
1879
|
id: string;
|
|
1880
|
+
} | {
|
|
1881
|
+
__typename: 'XmlDocument';
|
|
1882
|
+
id: string;
|
|
1699
1883
|
};
|
|
1700
1884
|
}>;
|
|
1701
1885
|
};
|
|
@@ -1756,3 +1940,4 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
1756
1940
|
signatureOrders(variables: SignatureOrdersQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<SignatureOrdersQuery>;
|
|
1757
1941
|
};
|
|
1758
1942
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1943
|
+
export {};
|
package/dist/graphql-sdk.js
CHANGED
|
@@ -9,10 +9,13 @@ exports.BasicDocumentFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
9
9
|
fragment BasicDocument on Document {
|
|
10
10
|
__typename
|
|
11
11
|
id
|
|
12
|
+
title
|
|
12
13
|
}
|
|
13
14
|
`;
|
|
14
15
|
exports.SignedDocumentFragmentDoc = (0, graphql_tag_1.default) `
|
|
15
16
|
fragment SignedDocument on Document {
|
|
17
|
+
id
|
|
18
|
+
title
|
|
16
19
|
blob
|
|
17
20
|
signatures {
|
|
18
21
|
__typename
|
|
@@ -53,6 +56,7 @@ exports.BasicSignatureOrderFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
53
56
|
fragment BasicSignatureOrder on SignatureOrder {
|
|
54
57
|
id
|
|
55
58
|
status
|
|
59
|
+
title
|
|
56
60
|
signatories {
|
|
57
61
|
...BasicSignatory
|
|
58
62
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,10 +11,16 @@ export declare class CriiptoSignatures {
|
|
|
11
11
|
__typename?: "SignatureOrder" | undefined;
|
|
12
12
|
id: string;
|
|
13
13
|
status: Types.SignatureOrderStatus;
|
|
14
|
-
|
|
14
|
+
title?: string | null | undefined;
|
|
15
|
+
documents: ({
|
|
15
16
|
__typename: "PdfDocument";
|
|
16
17
|
id: string;
|
|
17
|
-
|
|
18
|
+
title: string;
|
|
19
|
+
} | {
|
|
20
|
+
__typename: "XmlDocument";
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
})[];
|
|
18
24
|
signatories: {
|
|
19
25
|
__typename?: "Signatory" | undefined;
|
|
20
26
|
id: string;
|
|
@@ -44,6 +50,9 @@ export declare class CriiptoSignatures {
|
|
|
44
50
|
node: {
|
|
45
51
|
__typename: "PdfDocument";
|
|
46
52
|
id: string;
|
|
53
|
+
} | {
|
|
54
|
+
__typename: "XmlDocument";
|
|
55
|
+
id: string;
|
|
47
56
|
};
|
|
48
57
|
}[];
|
|
49
58
|
};
|
|
@@ -91,6 +100,9 @@ export declare class CriiptoSignatures {
|
|
|
91
100
|
node: {
|
|
92
101
|
__typename: "PdfDocument";
|
|
93
102
|
id: string;
|
|
103
|
+
} | {
|
|
104
|
+
__typename: "XmlDocument";
|
|
105
|
+
id: string;
|
|
94
106
|
};
|
|
95
107
|
}[];
|
|
96
108
|
};
|
|
@@ -124,6 +136,9 @@ export declare class CriiptoSignatures {
|
|
|
124
136
|
node: {
|
|
125
137
|
__typename: "PdfDocument";
|
|
126
138
|
id: string;
|
|
139
|
+
} | {
|
|
140
|
+
__typename: "XmlDocument";
|
|
141
|
+
id: string;
|
|
127
142
|
};
|
|
128
143
|
}[];
|
|
129
144
|
};
|
|
@@ -157,6 +172,9 @@ export declare class CriiptoSignatures {
|
|
|
157
172
|
node: {
|
|
158
173
|
__typename: "PdfDocument";
|
|
159
174
|
id: string;
|
|
175
|
+
} | {
|
|
176
|
+
__typename: "XmlDocument";
|
|
177
|
+
id: string;
|
|
160
178
|
};
|
|
161
179
|
}[];
|
|
162
180
|
};
|
|
@@ -165,9 +183,11 @@ export declare class CriiptoSignatures {
|
|
|
165
183
|
__typename?: "SignatureOrder" | undefined;
|
|
166
184
|
id: string;
|
|
167
185
|
status: Types.SignatureOrderStatus;
|
|
168
|
-
|
|
186
|
+
title?: string | null | undefined;
|
|
187
|
+
documents: ({
|
|
169
188
|
__typename: "PdfDocument";
|
|
170
189
|
id: string;
|
|
190
|
+
title: string;
|
|
171
191
|
blob?: Buffer | null | undefined;
|
|
172
192
|
signatures?: ({
|
|
173
193
|
__typename: "DrawableSignature";
|
|
@@ -190,7 +210,33 @@ export declare class CriiptoSignatures {
|
|
|
190
210
|
id: string;
|
|
191
211
|
} | null | undefined;
|
|
192
212
|
})[] | null | undefined;
|
|
193
|
-
}
|
|
213
|
+
} | {
|
|
214
|
+
__typename: "XmlDocument";
|
|
215
|
+
id: string;
|
|
216
|
+
title: string;
|
|
217
|
+
blob?: Buffer | null | undefined;
|
|
218
|
+
signatures?: ({
|
|
219
|
+
__typename: "DrawableSignature";
|
|
220
|
+
signatory?: {
|
|
221
|
+
__typename?: "Signatory" | undefined;
|
|
222
|
+
id: string;
|
|
223
|
+
} | null | undefined;
|
|
224
|
+
} | {
|
|
225
|
+
__typename: "EmptySignature";
|
|
226
|
+
signatory?: {
|
|
227
|
+
__typename?: "Signatory" | undefined;
|
|
228
|
+
id: string;
|
|
229
|
+
} | null | undefined;
|
|
230
|
+
} | {
|
|
231
|
+
__typename: "JWTSignature";
|
|
232
|
+
jwt: string;
|
|
233
|
+
jwks: string;
|
|
234
|
+
signatory?: {
|
|
235
|
+
__typename?: "Signatory" | undefined;
|
|
236
|
+
id: string;
|
|
237
|
+
} | null | undefined;
|
|
238
|
+
})[] | null | undefined;
|
|
239
|
+
})[];
|
|
194
240
|
signatories: {
|
|
195
241
|
__typename?: "Signatory" | undefined;
|
|
196
242
|
id: string;
|
|
@@ -220,6 +266,9 @@ export declare class CriiptoSignatures {
|
|
|
220
266
|
node: {
|
|
221
267
|
__typename: "PdfDocument";
|
|
222
268
|
id: string;
|
|
269
|
+
} | {
|
|
270
|
+
__typename: "XmlDocument";
|
|
271
|
+
id: string;
|
|
223
272
|
};
|
|
224
273
|
}[];
|
|
225
274
|
};
|
|
@@ -242,10 +291,16 @@ export declare class CriiptoSignatures {
|
|
|
242
291
|
__typename?: "SignatureOrder" | undefined;
|
|
243
292
|
id: string;
|
|
244
293
|
status: Types.SignatureOrderStatus;
|
|
245
|
-
|
|
294
|
+
title?: string | null | undefined;
|
|
295
|
+
documents: ({
|
|
246
296
|
__typename: "PdfDocument";
|
|
247
297
|
id: string;
|
|
248
|
-
|
|
298
|
+
title: string;
|
|
299
|
+
} | {
|
|
300
|
+
__typename: "XmlDocument";
|
|
301
|
+
id: string;
|
|
302
|
+
title: string;
|
|
303
|
+
})[];
|
|
249
304
|
signatories: {
|
|
250
305
|
__typename?: "Signatory" | undefined;
|
|
251
306
|
id: string;
|
|
@@ -275,6 +330,9 @@ export declare class CriiptoSignatures {
|
|
|
275
330
|
node: {
|
|
276
331
|
__typename: "PdfDocument";
|
|
277
332
|
id: string;
|
|
333
|
+
} | {
|
|
334
|
+
__typename: "XmlDocument";
|
|
335
|
+
id: string;
|
|
278
336
|
};
|
|
279
337
|
}[];
|
|
280
338
|
};
|
|
@@ -297,10 +355,16 @@ export declare class CriiptoSignatures {
|
|
|
297
355
|
__typename?: "SignatureOrder" | undefined;
|
|
298
356
|
id: string;
|
|
299
357
|
status: Types.SignatureOrderStatus;
|
|
300
|
-
|
|
358
|
+
title?: string | null | undefined;
|
|
359
|
+
documents: ({
|
|
301
360
|
__typename: "PdfDocument";
|
|
302
361
|
id: string;
|
|
303
|
-
|
|
362
|
+
title: string;
|
|
363
|
+
} | {
|
|
364
|
+
__typename: "XmlDocument";
|
|
365
|
+
id: string;
|
|
366
|
+
title: string;
|
|
367
|
+
})[];
|
|
304
368
|
signatories: {
|
|
305
369
|
__typename?: "Signatory" | undefined;
|
|
306
370
|
id: string;
|
|
@@ -330,6 +394,9 @@ export declare class CriiptoSignatures {
|
|
|
330
394
|
node: {
|
|
331
395
|
__typename: "PdfDocument";
|
|
332
396
|
id: string;
|
|
397
|
+
} | {
|
|
398
|
+
__typename: "XmlDocument";
|
|
399
|
+
id: string;
|
|
333
400
|
};
|
|
334
401
|
}[];
|
|
335
402
|
};
|
|
@@ -377,6 +444,9 @@ export declare class CriiptoSignatures {
|
|
|
377
444
|
node: {
|
|
378
445
|
__typename: "PdfDocument";
|
|
379
446
|
id: string;
|
|
447
|
+
} | {
|
|
448
|
+
__typename: "XmlDocument";
|
|
449
|
+
id: string;
|
|
380
450
|
};
|
|
381
451
|
}[];
|
|
382
452
|
};
|
|
@@ -394,6 +464,7 @@ export declare class CriiptoSignatures {
|
|
|
394
464
|
__typename?: "SignatureOrder" | undefined;
|
|
395
465
|
id: string;
|
|
396
466
|
status: Types.SignatureOrderStatus;
|
|
467
|
+
title?: string | null | undefined;
|
|
397
468
|
signatories: {
|
|
398
469
|
__typename?: "Signatory" | undefined;
|
|
399
470
|
id: string;
|
|
@@ -423,6 +494,9 @@ export declare class CriiptoSignatures {
|
|
|
423
494
|
node: {
|
|
424
495
|
__typename: "PdfDocument";
|
|
425
496
|
id: string;
|
|
497
|
+
} | {
|
|
498
|
+
__typename: "XmlDocument";
|
|
499
|
+
id: string;
|
|
426
500
|
};
|
|
427
501
|
}[];
|
|
428
502
|
};
|
|
@@ -462,6 +536,9 @@ export declare class CriiptoSignatures {
|
|
|
462
536
|
node: {
|
|
463
537
|
__typename: "PdfDocument";
|
|
464
538
|
id: string;
|
|
539
|
+
} | {
|
|
540
|
+
__typename: "XmlDocument";
|
|
541
|
+
id: string;
|
|
465
542
|
};
|
|
466
543
|
}[];
|
|
467
544
|
};
|
|
@@ -474,6 +551,7 @@ export declare class CriiptoSignatures {
|
|
|
474
551
|
__typename?: "SignatureOrder" | undefined;
|
|
475
552
|
id: string;
|
|
476
553
|
status: Types.SignatureOrderStatus;
|
|
554
|
+
title?: string | null | undefined;
|
|
477
555
|
signatories: {
|
|
478
556
|
__typename?: "Signatory" | undefined;
|
|
479
557
|
id: string;
|
|
@@ -503,6 +581,9 @@ export declare class CriiptoSignatures {
|
|
|
503
581
|
node: {
|
|
504
582
|
__typename: "PdfDocument";
|
|
505
583
|
id: string;
|
|
584
|
+
} | {
|
|
585
|
+
__typename: "XmlDocument";
|
|
586
|
+
id: string;
|
|
506
587
|
};
|
|
507
588
|
}[];
|
|
508
589
|
};
|