@bitgo/public-types 2.9.3 → 2.10.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/dist/src/schema/webhook/index.d.ts +1 -0
- package/dist/src/schema/webhook/index.d.ts.map +1 -1
- package/dist/src/schema/webhook/index.js +1 -0
- package/dist/src/schema/webhook/index.js.map +1 -1
- package/dist/src/schema/webhook/webhookNotification.d.ts +29 -0
- package/dist/src/schema/webhook/webhookNotification.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhookNotification.js +59 -0
- package/dist/src/schema/webhook/webhookNotification.js.map +1 -0
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./addWalletWebhookRequest"), exports);
|
18
18
|
__exportStar(require("./webhook"), exports);
|
19
|
+
__exportStar(require("./webhookNotification"), exports);
|
19
20
|
__exportStar(require("./webhookState"), exports);
|
20
21
|
__exportStar(require("./webhookType"), exports);
|
21
22
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,gDAA8B"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WebhookNotification: t.IntersectionC<[t.TypeC<{
|
3
|
+
id: t.StringC;
|
4
|
+
}>, t.PartialC<{
|
5
|
+
type: t.StringC;
|
6
|
+
wallet: t.StringC;
|
7
|
+
url: t.StringC;
|
8
|
+
hash: t.StringC;
|
9
|
+
coin: t.StringC;
|
10
|
+
coinChain: t.StringC;
|
11
|
+
transfer: t.StringC;
|
12
|
+
state: t.StringC;
|
13
|
+
simulation: t.BooleanC;
|
14
|
+
retries: t.NumberC;
|
15
|
+
webhook: t.StringC;
|
16
|
+
updatedAt: import("io-ts-types").DateFromISOStringC;
|
17
|
+
nextAttempt: import("io-ts-types").DateFromISOStringC;
|
18
|
+
version: t.NumberC;
|
19
|
+
allowBlockedHosts: t.BooleanC;
|
20
|
+
heightToConfirm: t.NumberC;
|
21
|
+
payload: t.StringC;
|
22
|
+
response: t.PartialC<{
|
23
|
+
code: t.UnknownC;
|
24
|
+
type: t.StringC;
|
25
|
+
body: t.StringC;
|
26
|
+
error: t.StringC;
|
27
|
+
}>;
|
28
|
+
}>]>;
|
29
|
+
//# sourceMappingURL=webhookNotification.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookNotification.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookNotification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;IA6B9B,CAAC"}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.WebhookNotification = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
exports.WebhookNotification = t.intersection([
|
30
|
+
t.type({
|
31
|
+
id: t.string,
|
32
|
+
}),
|
33
|
+
t.partial({
|
34
|
+
type: t.string,
|
35
|
+
wallet: t.string,
|
36
|
+
url: t.string,
|
37
|
+
hash: t.string,
|
38
|
+
coin: t.string,
|
39
|
+
coinChain: t.string,
|
40
|
+
transfer: t.string,
|
41
|
+
state: t.string,
|
42
|
+
simulation: t.boolean,
|
43
|
+
retries: t.number,
|
44
|
+
webhook: t.string,
|
45
|
+
updatedAt: io_ts_types_1.DateFromISOString,
|
46
|
+
nextAttempt: io_ts_types_1.DateFromISOString,
|
47
|
+
version: t.number,
|
48
|
+
allowBlockedHosts: t.boolean,
|
49
|
+
heightToConfirm: t.number,
|
50
|
+
payload: t.string,
|
51
|
+
response: t.partial({
|
52
|
+
code: t.unknown,
|
53
|
+
type: t.string,
|
54
|
+
body: t.string,
|
55
|
+
error: t.string,
|
56
|
+
}),
|
57
|
+
}),
|
58
|
+
]);
|
59
|
+
//# sourceMappingURL=webhookNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookNotification.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookNotification.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAEnC,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,CAAC,CAAC,IAAI,CAAC;QACL,EAAE,EAAE,CAAC,CAAC,MAAM;KACb,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,SAAS,EAAE,CAAC,CAAC,MAAM;QACnB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,UAAU,EAAE,CAAC,CAAC,OAAO;QACrB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,SAAS,EAAE,+BAAiB;QAC5B,WAAW,EAAE,+BAAiB;QAC9B,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,iBAAiB,EAAE,CAAC,CAAC,OAAO;QAC5B,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC;YAClB,IAAI,EAAE,CAAC,CAAC,OAAO;YACf,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,KAAK,EAAE,CAAC,CAAC,MAAM;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|