@bitgo/public-types 2.15.0 → 2.16.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.
@@ -10,14 +10,14 @@ export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
10
10
  label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
11
11
  }>;
12
12
  export type AddEnterpriseWebhookRequestBody = t.TypeOf<typeof AddEnterpriseWebhookRequestBodyC>;
13
- export declare const ListEnterpriseWebhooksRequestBody: {
13
+ export declare const ListEnterpriseWebhooksRequestBodyC: t.IntersectionC<[t.TypeC<{
14
14
  type: t.UnionC<[t.Type<"bankAccount", "bankAccount", unknown>, t.UndefinedC]>;
15
- };
16
- export declare const ListEnterpriseWebhooksRequestBodyC: t.TypeC<{
17
- type: t.UnionC<[t.Type<"bankAccount", "bankAccount", unknown>, t.UndefinedC]>;
18
- }>;
15
+ }>, t.PartialC<{
16
+ limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
17
+ prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18
+ }>]>;
19
19
  export type ListEnterpriseWebhooksRequestBody = t.TypeOf<typeof ListEnterpriseWebhooksRequestBodyC>;
20
- export declare const ListEnterpriseWebhooksResponse: t.TypeC<{
20
+ export declare const ListEnterpriseWebhooksResponse: t.IntersectionC<[t.TypeC<{
21
21
  webhooks: t.ArrayC<t.IntersectionC<[t.TypeC<{
22
22
  id: t.StringC;
23
23
  created: import("io-ts-types").DateFromISOStringC;
@@ -68,6 +68,8 @@ export declare const ListEnterpriseWebhooksResponse: t.TypeC<{
68
68
  rejected: number;
69
69
  }>>;
70
70
  }>]>>;
71
- }>;
71
+ }>, t.PartialC<{
72
+ nextBatchPrevId: t.UnionC<[t.Type<string | undefined, string | undefined, unknown>, t.UndefinedC]>;
73
+ }>]>;
72
74
  export type ListEnterpriseWebhooksResponse = t.TypeOf<typeof ListEnterpriseWebhooksResponse>;
73
75
  //# sourceMappingURL=enterpriseWebhooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enterpriseWebhooks.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;EAE3C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;CAE7C,CAAC;AACF,eAAO,MAAM,kCAAkC;;EAE7C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CACtD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC"}
1
+ {"version":3,"file":"enterpriseWebhooks.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;EAE3C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;IAQ7C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CACtD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOzC,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ListEnterpriseWebhooksResponse = exports.ListEnterpriseWebhooksRequestBodyC = exports.ListEnterpriseWebhooksRequestBody = exports.AddEnterpriseWebhookRequestBodyC = exports.AddEnterpriseWebhookRequestBody = void 0;
26
+ exports.ListEnterpriseWebhooksResponse = exports.ListEnterpriseWebhooksRequestBodyC = exports.AddEnterpriseWebhookRequestBodyC = exports.AddEnterpriseWebhookRequestBody = void 0;
27
27
  const webhookType_1 = require("./webhookType");
28
28
  const io_ts_types_1 = require("io-ts-types");
29
29
  const utils_1 = require("../../utils");
@@ -37,13 +37,21 @@ exports.AddEnterpriseWebhookRequestBody = {
37
37
  exports.AddEnterpriseWebhookRequestBodyC = t.type({
38
38
  ...exports.AddEnterpriseWebhookRequestBody,
39
39
  });
40
- exports.ListEnterpriseWebhooksRequestBody = {
41
- type: (0, utils_1.Optional)(webhookType_1.EnterpriseWebhookType),
42
- };
43
- exports.ListEnterpriseWebhooksRequestBodyC = t.type({
44
- ...exports.ListEnterpriseWebhooksRequestBody,
45
- });
46
- exports.ListEnterpriseWebhooksResponse = t.type({
47
- webhooks: t.array(webhook_1.Webhook),
48
- });
40
+ exports.ListEnterpriseWebhooksRequestBodyC = t.intersection([
41
+ t.type({
42
+ type: (0, utils_1.Optional)(webhookType_1.EnterpriseWebhookType),
43
+ }),
44
+ t.partial({
45
+ limit: utils_1.optionalStringOrNumber,
46
+ prevId: utils_1.optionalString,
47
+ }),
48
+ ]);
49
+ exports.ListEnterpriseWebhooksResponse = t.intersection([
50
+ t.type({
51
+ webhooks: t.array(webhook_1.Webhook),
52
+ }),
53
+ t.partial({
54
+ nextBatchPrevId: (0, utils_1.Optional)(t.union([t.string, t.undefined])),
55
+ }),
56
+ ]);
49
57
  //# sourceMappingURL=enterpriseWebhooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enterpriseWebhooks.js","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsD;AACtD,6CAA6C;AAC7C,uCAAuC;AACvC,yCAA2B;AAC3B,uCAAoC;AAEvB,QAAA,+BAA+B,GAAG;IAC7C,IAAI,EAAE,mCAAqB;IAC3B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACrD,GAAG,uCAA+B;CACnC,CAAC,CAAC;AAMU,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,IAAA,gBAAQ,EAAC,mCAAqB,CAAC;CACtC,CAAC;AACW,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,GAAG,yCAAiC;CACrC,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAO,CAAC;CAC3B,CAAC,CAAC"}
1
+ {"version":3,"file":"enterpriseWebhooks.js","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsD;AACtD,6CAA6C;AAC7C,uCAA+E;AAC/E,yCAA2B;AAC3B,uCAAoC;AAEvB,QAAA,+BAA+B,GAAG;IAC7C,IAAI,EAAE,mCAAqB;IAC3B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACrD,GAAG,uCAA+B;CACnC,CAAC,CAAC;AAMU,QAAA,kCAAkC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/D,CAAC,CAAC,IAAI,CAAC;QACL,IAAI,EAAE,IAAA,gBAAQ,EAAC,mCAAqB,CAAC;KACtC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,8BAAsB;QAC7B,MAAM,EAAE,sBAAc;KACvB,CAAC;CACH,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAO,CAAC;KAC3B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,eAAe,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;KAC5D,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",