@moovio/sdk 26.5.8 → 26.5.10
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/bin/mcp-server.js +32 -9
- package/bin/mcp-server.js.map +14 -13
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/cardtransactionstatus.d.ts +1 -0
- package/models/components/cardtransactionstatus.d.ts.map +1 -1
- package/models/components/cardtransactionstatus.js +1 -0
- package/models/components/cardtransactionstatus.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcardauthorization.d.ts +5 -0
- package/models/components/issuedcardauthorization.d.ts.map +1 -1
- package/models/components/issuedcardauthorization.js +2 -0
- package/models/components/issuedcardauthorization.js.map +1 -1
- package/models/components/issuedcardtransaction.d.ts +5 -0
- package/models/components/issuedcardtransaction.d.ts.map +1 -1
- package/models/components/issuedcardtransaction.js +2 -0
- package/models/components/issuedcardtransaction.js.map +1 -1
- package/models/components/refundcardstatus.d.ts +1 -0
- package/models/components/refundcardstatus.d.ts.map +1 -1
- package/models/components/refundcardstatus.js +1 -0
- package/models/components/refundcardstatus.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +3 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataeventtest.d.ts +20 -0
- package/models/components/webhookdataeventtest.d.ts.map +1 -0
- package/models/components/webhookdataeventtest.js +58 -0
- package/models/components/webhookdataeventtest.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/issuedcardauthorization.ts +7 -0
- package/src/models/components/issuedcardtransaction.ts +7 -0
- package/src/models/components/refundcardstatus.ts +1 -0
- package/src/models/components/webhookdata.ts +12 -2
- package/src/models/components/webhookdataeventtest.ts +54 -0
- package/src/models/components/webhookeventtype.ts +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WebhookDataEventTest$outboundSchema = exports.WebhookDataEventTest$inboundSchema = void 0;
|
|
40
|
+
exports.webhookDataEventTestToJSON = webhookDataEventTestToJSON;
|
|
41
|
+
exports.webhookDataEventTestFromJSON = webhookDataEventTestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.WebhookDataEventTest$inboundSchema = z.object({
|
|
46
|
+
ping: z.boolean(),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.WebhookDataEventTest$outboundSchema = z.object({
|
|
50
|
+
ping: z.boolean(),
|
|
51
|
+
});
|
|
52
|
+
function webhookDataEventTestToJSON(webhookDataEventTest) {
|
|
53
|
+
return JSON.stringify(exports.WebhookDataEventTest$outboundSchema.parse(webhookDataEventTest));
|
|
54
|
+
}
|
|
55
|
+
function webhookDataEventTestFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookDataEventTest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookDataEventTest' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=webhookdataeventtest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookdataeventtest.js","sourceRoot":"","sources":["../../src/models/components/webhookdataeventtest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,gEAMC;AACD,oEAQC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -43,6 +43,7 @@ export declare const WebhookEventType: {
|
|
|
43
43
|
readonly WalletTransactionUpdated: "walletTransaction.updated";
|
|
44
44
|
readonly BillingStatementCreated: "billingStatement.created";
|
|
45
45
|
readonly AuthorizationExpiring: "authorization.expiring";
|
|
46
|
+
readonly EventTest: "event.test";
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* The type of event that occurred.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookeventtype.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"webhookeventtype.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCnB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AACnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC"}
|
|
@@ -81,6 +81,7 @@ exports.WebhookEventType = {
|
|
|
81
81
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
82
82
|
BillingStatementCreated: "billingStatement.created",
|
|
83
83
|
AuthorizationExpiring: "authorization.expiring",
|
|
84
|
+
EventTest: "event.test",
|
|
84
85
|
};
|
|
85
86
|
/** @internal */
|
|
86
87
|
exports.WebhookEventType$inboundSchema = z.nativeEnum(exports.WebhookEventType);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookeventtype.js","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,GAAG;IACb,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,mBAAmB,EAAE,sBAAsB;IAC3C,cAAc,EA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src/lib/config.ts
CHANGED
|
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "v2026.04.00",
|
|
76
|
-
sdkVersion: "26.5.
|
|
76
|
+
sdkVersion: "26.5.10",
|
|
77
77
|
genVersion: "2.935.1",
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 26.5.
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 26.5.10 2.935.1 v2026.04.00 @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -591,6 +591,7 @@ export * from "./webhookdatacapabilityupdated.js";
|
|
|
591
591
|
export * from "./webhookdatacardautoupdated.js";
|
|
592
592
|
export * from "./webhookdatadisputecreated.js";
|
|
593
593
|
export * from "./webhookdatadisputeupdated.js";
|
|
594
|
+
export * from "./webhookdataeventtest.js";
|
|
594
595
|
export * from "./webhookdatainvoicecreated.js";
|
|
595
596
|
export * from "./webhookdatainvoiceupdated.js";
|
|
596
597
|
export * from "./webhookdatanetworkidupdated.js";
|
|
@@ -26,6 +26,10 @@ import {
|
|
|
26
26
|
export type IssuedCardAuthorization = {
|
|
27
27
|
authorizationID: string;
|
|
28
28
|
issuedCardID: string;
|
|
29
|
+
/**
|
|
30
|
+
* Last four digits of the card number. Omitted for authorizations recorded before this was captured.
|
|
31
|
+
*/
|
|
32
|
+
lastFourCardNumber?: string | undefined;
|
|
29
33
|
fundingWalletID: string;
|
|
30
34
|
/**
|
|
31
35
|
* The name of the network a card transaction is routed through.
|
|
@@ -55,6 +59,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
|
|
|
55
59
|
> = z.object({
|
|
56
60
|
authorizationID: z.string(),
|
|
57
61
|
issuedCardID: z.string(),
|
|
62
|
+
lastFourCardNumber: z.string().optional(),
|
|
58
63
|
fundingWalletID: z.string(),
|
|
59
64
|
network: CardIssuingNetwork$inboundSchema,
|
|
60
65
|
authorizedAmount: z.string(),
|
|
@@ -67,6 +72,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
|
|
|
67
72
|
export type IssuedCardAuthorization$Outbound = {
|
|
68
73
|
authorizationID: string;
|
|
69
74
|
issuedCardID: string;
|
|
75
|
+
lastFourCardNumber?: string | undefined;
|
|
70
76
|
fundingWalletID: string;
|
|
71
77
|
network: string;
|
|
72
78
|
authorizedAmount: string;
|
|
@@ -84,6 +90,7 @@ export const IssuedCardAuthorization$outboundSchema: z.ZodType<
|
|
|
84
90
|
> = z.object({
|
|
85
91
|
authorizationID: z.string(),
|
|
86
92
|
issuedCardID: z.string(),
|
|
93
|
+
lastFourCardNumber: z.string().optional(),
|
|
87
94
|
fundingWalletID: z.string(),
|
|
88
95
|
network: CardIssuingNetwork$outboundSchema,
|
|
89
96
|
authorizedAmount: z.string(),
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
export type IssuedCardTransaction = {
|
|
17
17
|
cardTransactionID: string;
|
|
18
18
|
issuedCardID: string;
|
|
19
|
+
/**
|
|
20
|
+
* Last four digits of the card number. Omitted for transactions recorded before this was captured.
|
|
21
|
+
*/
|
|
22
|
+
lastFourCardNumber?: string | undefined;
|
|
19
23
|
fundingWalletID: string;
|
|
20
24
|
/**
|
|
21
25
|
* A decimal-formatted numerical string that represents up to 2 decimal place precision. In USD for example, 12.34 is $12.34 and 0.99 is $0.99.
|
|
@@ -35,6 +39,7 @@ export const IssuedCardTransaction$inboundSchema: z.ZodType<
|
|
|
35
39
|
> = z.object({
|
|
36
40
|
cardTransactionID: z.string(),
|
|
37
41
|
issuedCardID: z.string(),
|
|
42
|
+
lastFourCardNumber: z.string().optional(),
|
|
38
43
|
fundingWalletID: z.string(),
|
|
39
44
|
amount: z.string(),
|
|
40
45
|
authorizationID: z.string().optional(),
|
|
@@ -48,6 +53,7 @@ export const IssuedCardTransaction$inboundSchema: z.ZodType<
|
|
|
48
53
|
export type IssuedCardTransaction$Outbound = {
|
|
49
54
|
cardTransactionID: string;
|
|
50
55
|
issuedCardID: string;
|
|
56
|
+
lastFourCardNumber?: string | undefined;
|
|
51
57
|
fundingWalletID: string;
|
|
52
58
|
amount: string;
|
|
53
59
|
authorizationID?: string | undefined;
|
|
@@ -64,6 +70,7 @@ export const IssuedCardTransaction$outboundSchema: z.ZodType<
|
|
|
64
70
|
> = z.object({
|
|
65
71
|
cardTransactionID: z.string(),
|
|
66
72
|
issuedCardID: z.string(),
|
|
73
|
+
lastFourCardNumber: z.string().optional(),
|
|
67
74
|
fundingWalletID: z.string(),
|
|
68
75
|
amount: z.string(),
|
|
69
76
|
authorizationID: z.string().optional(),
|
|
@@ -102,6 +102,12 @@ import {
|
|
|
102
102
|
WebhookDataDisputeUpdated$Outbound,
|
|
103
103
|
WebhookDataDisputeUpdated$outboundSchema,
|
|
104
104
|
} from "./webhookdatadisputeupdated.js";
|
|
105
|
+
import {
|
|
106
|
+
WebhookDataEventTest,
|
|
107
|
+
WebhookDataEventTest$inboundSchema,
|
|
108
|
+
WebhookDataEventTest$Outbound,
|
|
109
|
+
WebhookDataEventTest$outboundSchema,
|
|
110
|
+
} from "./webhookdataeventtest.js";
|
|
105
111
|
import {
|
|
106
112
|
WebhookDataInvoiceCreated,
|
|
107
113
|
WebhookDataInvoiceCreated$inboundSchema,
|
|
@@ -276,7 +282,8 @@ export type WebhookData =
|
|
|
276
282
|
| WebhookDataAccountCreated
|
|
277
283
|
| WebhookDataAccountUpdated
|
|
278
284
|
| WebhookDataAccountDisconnected
|
|
279
|
-
| WebhookDataNetworkIDUpdated
|
|
285
|
+
| WebhookDataNetworkIDUpdated
|
|
286
|
+
| WebhookDataEventTest;
|
|
280
287
|
|
|
281
288
|
/** @internal */
|
|
282
289
|
export const WebhookData$inboundSchema: z.ZodType<
|
|
@@ -322,6 +329,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
322
329
|
WebhookDataAccountUpdated$inboundSchema,
|
|
323
330
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
324
331
|
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
332
|
+
WebhookDataEventTest$inboundSchema,
|
|
325
333
|
]);
|
|
326
334
|
/** @internal */
|
|
327
335
|
export type WebhookData$Outbound =
|
|
@@ -362,7 +370,8 @@ export type WebhookData$Outbound =
|
|
|
362
370
|
| WebhookDataAccountCreated$Outbound
|
|
363
371
|
| WebhookDataAccountUpdated$Outbound
|
|
364
372
|
| WebhookDataAccountDisconnected$Outbound
|
|
365
|
-
| WebhookDataNetworkIDUpdated$Outbound
|
|
373
|
+
| WebhookDataNetworkIDUpdated$Outbound
|
|
374
|
+
| WebhookDataEventTest$Outbound;
|
|
366
375
|
|
|
367
376
|
/** @internal */
|
|
368
377
|
export const WebhookData$outboundSchema: z.ZodType<
|
|
@@ -408,6 +417,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
408
417
|
WebhookDataAccountUpdated$outboundSchema,
|
|
409
418
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
410
419
|
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
420
|
+
WebhookDataEventTest$outboundSchema,
|
|
411
421
|
]);
|
|
412
422
|
|
|
413
423
|
export function webhookDataToJSON(webhookData: WebhookData): string {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The data payload sent for an `event.test` event, such as a webhook ping.
|
|
12
|
+
*/
|
|
13
|
+
export type WebhookDataEventTest = {
|
|
14
|
+
ping: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const WebhookDataEventTest$inboundSchema: z.ZodType<
|
|
19
|
+
WebhookDataEventTest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
ping: z.boolean(),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataEventTest$Outbound = {
|
|
27
|
+
ping: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const WebhookDataEventTest$outboundSchema: z.ZodType<
|
|
32
|
+
WebhookDataEventTest$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
WebhookDataEventTest
|
|
35
|
+
> = z.object({
|
|
36
|
+
ping: z.boolean(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function webhookDataEventTestToJSON(
|
|
40
|
+
webhookDataEventTest: WebhookDataEventTest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
WebhookDataEventTest$outboundSchema.parse(webhookDataEventTest),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export function webhookDataEventTestFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<WebhookDataEventTest, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => WebhookDataEventTest$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'WebhookDataEventTest' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -48,6 +48,7 @@ export const WebhookEventType = {
|
|
|
48
48
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
49
49
|
BillingStatementCreated: "billingStatement.created",
|
|
50
50
|
AuthorizationExpiring: "authorization.expiring",
|
|
51
|
+
EventTest: "event.test",
|
|
51
52
|
} as const;
|
|
52
53
|
/**
|
|
53
54
|
* The type of event that occurred.
|