@bitgo/public-types 2.12.0 → 2.13.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 +2 -0
- package/dist/src/schema/webhook/index.d.ts.map +1 -1
- package/dist/src/schema/webhook/index.js +2 -0
- package/dist/src/schema/webhook/index.js.map +1 -1
- package/dist/src/schema/webhook/webhook.d.ts +2 -0
- package/dist/src/schema/webhook/webhook.d.ts.map +1 -1
- package/dist/src/schema/webhook/webhook.js +3 -0
- package/dist/src/schema/webhook/webhook.js.map +1 -1
- package/dist/src/schema/webhook/webhookScope.d.ts +9 -0
- package/dist/src/schema/webhook/webhookScope.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhookScope.js +35 -0
- package/dist/src/schema/webhook/webhookScope.js.map +1 -0
- package/package.json +1 -1
@@ -1,6 +1,8 @@
|
|
1
|
+
export * from "./addEnterpriseWebhookRequest";
|
1
2
|
export * from "./addWalletWebhookRequest";
|
2
3
|
export * from "./webhook";
|
3
4
|
export * from "./webhookNotification";
|
5
|
+
export * from "./webhookScope";
|
4
6
|
export * from "./webhookState";
|
5
7
|
export * from "./webhookType";
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,uBAAuB,CAAC;AACtC,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,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./addEnterpriseWebhookRequest"), exports);
|
17
18
|
__exportStar(require("./addWalletWebhookRequest"), exports);
|
18
19
|
__exportStar(require("./webhook"), exports);
|
19
20
|
__exportStar(require("./webhookNotification"), exports);
|
21
|
+
__exportStar(require("./webhookScope"), exports);
|
20
22
|
__exportStar(require("./webhookState"), exports);
|
21
23
|
__exportStar(require("./webhookType"), exports);
|
22
24
|
//# 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,wDAAsC;AACtC,iDAA+B;AAC/B,gDAA8B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B"}
|
@@ -12,6 +12,8 @@ export declare const Webhook: t.IntersectionC<[t.TypeC<{
|
|
12
12
|
label: t.StringC;
|
13
13
|
walletId: t.StringC;
|
14
14
|
enterpriseId: t.StringC;
|
15
|
+
organizationId: t.StringC;
|
16
|
+
scope: t.KeyofC<typeof import("./webhookScope").WebhookScopeEnum>;
|
15
17
|
userId: t.StringC;
|
16
18
|
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
|
17
19
|
numConfirmations: t.NumberC;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAQ3B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BlB,CAAC"}
|
@@ -30,6 +30,7 @@ const transactionRequestState_1 = require("../transactionRequest/transactionRequ
|
|
30
30
|
const transactionState_1 = require("../transactionRequest/transactionState");
|
31
31
|
const webhookState_1 = require("./webhookState");
|
32
32
|
const webhookType_1 = require("./webhookType");
|
33
|
+
const webhookScope_1 = require("./webhookScope");
|
33
34
|
exports.Webhook = t.intersection([
|
34
35
|
t.type({
|
35
36
|
id: t.string,
|
@@ -45,6 +46,8 @@ exports.Webhook = t.intersection([
|
|
45
46
|
label: t.string,
|
46
47
|
walletId: t.string,
|
47
48
|
enterpriseId: t.string,
|
49
|
+
organizationId: t.string,
|
50
|
+
scope: webhookScope_1.WebhookScope,
|
48
51
|
userId: t.string,
|
49
52
|
type: webhookType_1.WebhookType,
|
50
53
|
numConfirmations: t.number,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,2FAAwF;AACxF,6EAA0E;AAC1E,iDAA8C;AAC9C,+CAA4C;
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,2FAAwF;AACxF,6EAA0E;AAC1E,iDAA8C;AAC9C,+CAA4C;AAC5C,iDAA8C;AAEjC,QAAA,OAAO,GAAG,CAAC,CAAC,YAAY,CAAC;IACpC,CAAC,CAAC,IAAI,CAAC;QACL,EAAE,EAAE,CAAC,CAAC,MAAM;QACZ,OAAO,EAAE,+BAAiB;QAC1B,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,KAAK,EAAE,2BAAY;QACnB,wBAAwB,EAAE,CAAC,CAAC,MAAM;QAClC,qBAAqB,EAAE,CAAC,CAAC,OAAO;KACjC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,KAAK,EAAE,2BAAY;QACnB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,IAAI,EAAE,yBAAW;QACjB,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,WAAW,EAAE,+BAAiB;QAC9B,YAAY,EAAE,+BAAiB;QAC/B,QAAQ,EAAE,CAAC,CAAC,OAAO;QACnB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,iDAAuB,CAAC;QACjD,0BAA0B,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAgB,CAAC;KACtD,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare enum WebhookScopeEnum {
|
3
|
+
"wallet" = "wallet",
|
4
|
+
"enterprise" = "enterprise",
|
5
|
+
"organization" = "organization"
|
6
|
+
}
|
7
|
+
export declare const WebhookScope: t.KeyofC<typeof WebhookScopeEnum>;
|
8
|
+
export type WebhookScope = t.TypeOf<typeof WebhookScope>;
|
9
|
+
//# sourceMappingURL=webhookScope.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookScope.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,oBAAY,gBAAgB;IAC1B,QAAQ,WAAW;IACnB,YAAY,eAAe;IAC3B,cAAc,iBAAiB;CAChC;AAED,eAAO,MAAM,YAAY,mCAA4C,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
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.WebhookScope = exports.WebhookScopeEnum = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
var WebhookScopeEnum;
|
29
|
+
(function (WebhookScopeEnum) {
|
30
|
+
WebhookScopeEnum["wallet"] = "wallet";
|
31
|
+
WebhookScopeEnum["enterprise"] = "enterprise";
|
32
|
+
WebhookScopeEnum["organization"] = "organization";
|
33
|
+
})(WebhookScopeEnum || (exports.WebhookScopeEnum = WebhookScopeEnum = {}));
|
34
|
+
exports.WebhookScope = t.keyof(WebhookScopeEnum, "WebhookScope");
|
35
|
+
//# sourceMappingURL=webhookScope.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookScope.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookScope.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;AACjC,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAEY,QAAA,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC"}
|