@moovio/sdk 0.0.0-dev.4 → 0.0.0-dev.6
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/README.md +74 -54
- package/bin/mcp-server.js +816 -678
- package/bin/mcp-server.js.map +25 -25
- package/funcs/disputesUploadEvidenceFile.js +6 -0
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/filesUpload.js +6 -0
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/imagesUpdate.js +7 -0
- package/funcs/imagesUpdate.js.map +1 -1
- package/funcs/imagesUpload.js +7 -0
- package/funcs/imagesUpload.js.map +1 -1
- package/funcs/invoicesDelete.d.ts +24 -0
- package/funcs/invoicesDelete.d.ts.map +1 -0
- package/funcs/invoicesDelete.js +146 -0
- package/funcs/invoicesDelete.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/shared.js +1 -1
- package/mcp-server/shared.js.map +1 -1
- package/mcp-server/tools/invoicesDelete.d.ts +8 -0
- package/mcp-server/tools/invoicesDelete.d.ts.map +1 -0
- package/{models/components/rtpfailurecode.js → mcp-server/tools/invoicesDelete.js} +31 -21
- package/mcp-server/tools/invoicesDelete.js.map +1 -0
- package/models/components/createinvoicelineitem.d.ts +2 -1
- package/models/components/createinvoicelineitem.d.ts.map +1 -1
- package/models/components/createinvoicelineitem.js.map +1 -1
- package/models/components/createpaymentlinklineitem.d.ts +2 -1
- package/models/components/createpaymentlinklineitem.d.ts.map +1 -1
- package/models/components/createpaymentlinklineitem.js.map +1 -1
- package/models/components/feecategory.d.ts +1 -0
- package/models/components/feecategory.d.ts.map +1 -1
- package/models/components/feecategory.js +1 -0
- package/models/components/feecategory.js.map +1 -1
- package/models/components/index.d.ts +0 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -3
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +12 -0
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +6 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoicelineitem.d.ts +2 -1
- package/models/components/invoicelineitem.d.ts.map +1 -1
- package/models/components/invoicelineitem.js.map +1 -1
- package/models/components/transferdestination.d.ts +0 -6
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +0 -3
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/updateinvoice.d.ts +4 -1
- package/models/components/updateinvoice.d.ts.map +1 -1
- package/models/components/updateinvoice.js.map +1 -1
- package/models/operations/deleteinvoice.d.ts +63 -0
- package/models/operations/deleteinvoice.d.ts.map +1 -0
- package/models/operations/deleteinvoice.js +109 -0
- package/models/operations/deleteinvoice.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/invoices.d.ts +13 -0
- package/sdk/invoices.d.ts.map +1 -1
- package/sdk/invoices.js +16 -0
- package/sdk/invoices.js.map +1 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +15 -0
- package/src/funcs/filesUpload.ts +15 -0
- package/src/funcs/imagesUpdate.ts +16 -0
- package/src/funcs/imagesUpload.ts +16 -0
- package/src/funcs/invoicesDelete.ts +206 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/shared.ts +2 -2
- package/src/mcp-server/tools/invoicesDelete.ts +43 -0
- package/src/models/components/createinvoicelineitem.ts +2 -1
- package/src/models/components/createpaymentlinklineitem.ts +2 -1
- package/src/models/components/feecategory.ts +1 -0
- package/src/models/components/index.ts +0 -3
- package/src/models/components/invoice.ts +20 -0
- package/src/models/components/invoicelineitem.ts +2 -1
- package/src/models/components/transferdestination.ts +0 -13
- package/src/models/components/updateinvoice.ts +4 -1
- package/src/models/operations/deleteinvoice.ts +172 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/invoices.ts +24 -0
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/examples/package-lock.json +0 -620
- package/examples/package.json +0 -18
- package/models/components/rtpfailurecode.d.ts +0 -26
- package/models/components/rtpfailurecode.d.ts.map +0 -1
- package/models/components/rtpfailurecode.js.map +0 -1
- package/models/components/rtptransactiondetails.d.ts +0 -43
- package/models/components/rtptransactiondetails.d.ts.map +0 -1
- package/models/components/rtptransactiondetails.js +0 -75
- package/models/components/rtptransactiondetails.js.map +0 -1
- package/models/components/rtptransactionstatus.d.ts +0 -20
- package/models/components/rtptransactionstatus.d.ts.map +0 -1
- package/models/components/rtptransactionstatus.js +0 -54
- package/models/components/rtptransactionstatus.js.map +0 -1
- package/renovate.json +0 -30
- package/src/models/components/rtpfailurecode.ts +0 -35
- package/src/models/components/rtptransactiondetails.ts +0 -102
- package/src/models/components/rtptransactionstatus.ts +0 -29
- package/test/package.json +0 -27
- package/test/tsconfig.json +0 -30
- package/tsconfig.json +0 -40
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { RTPFailureCode } from "./rtpfailurecode.js";
|
|
5
|
-
import { RTPTransactionStatus } from "./rtptransactionstatus.js";
|
|
6
|
-
/**
|
|
7
|
-
* RTP specific details about the transaction.
|
|
8
|
-
*/
|
|
9
|
-
export type RTPTransactionDetails = {
|
|
10
|
-
/**
|
|
11
|
-
* Status of a transaction within the RTP lifecycle.
|
|
12
|
-
*/
|
|
13
|
-
status?: RTPTransactionStatus | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Response code returned by network on failure.
|
|
16
|
-
*/
|
|
17
|
-
networkResponseCode?: string | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Status codes for RTP failures.
|
|
20
|
-
*/
|
|
21
|
-
failureCode?: RTPFailureCode | undefined;
|
|
22
|
-
initiatedOn?: Date | undefined;
|
|
23
|
-
completedOn?: Date | undefined;
|
|
24
|
-
failedOn?: Date | undefined;
|
|
25
|
-
acceptedWithoutPostingOn?: Date | undefined;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const RTPTransactionDetails$inboundSchema: z.ZodType<RTPTransactionDetails, z.ZodTypeDef, unknown>;
|
|
29
|
-
/** @internal */
|
|
30
|
-
export type RTPTransactionDetails$Outbound = {
|
|
31
|
-
status?: string | undefined;
|
|
32
|
-
networkResponseCode?: string | undefined;
|
|
33
|
-
failureCode?: string | undefined;
|
|
34
|
-
initiatedOn?: string | undefined;
|
|
35
|
-
completedOn?: string | undefined;
|
|
36
|
-
failedOn?: string | undefined;
|
|
37
|
-
acceptedWithoutPostingOn?: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const RTPTransactionDetails$outboundSchema: z.ZodType<RTPTransactionDetails$Outbound, z.ZodTypeDef, RTPTransactionDetails>;
|
|
41
|
-
export declare function rtpTransactionDetailsToJSON(rtpTransactionDetails: RTPTransactionDetails): string;
|
|
42
|
-
export declare function rtpTransactionDetailsFromJSON(jsonString: string): SafeParseResult<RTPTransactionDetails, SDKValidationError>;
|
|
43
|
-
//# sourceMappingURL=rtptransactiondetails.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rtptransactiondetails.d.ts","sourceR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9B,wBAAwB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CASrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AACD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -1,75 +0,0 @@
|
|
|
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.RTPTransactionDetails$outboundSchema = exports.RTPTransactionDetails$inboundSchema = void 0;
|
|
40
|
-
exports.rtpTransactionDetailsToJSON = rtpTransactionDetailsToJSON;
|
|
41
|
-
exports.rtpTransactionDetailsFromJSON = rtpTransactionDetailsFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const rtpfailurecode_js_1 = require("./rtpfailurecode.js");
|
|
45
|
-
const rtptransactionstatus_js_1 = require("./rtptransactionstatus.js");
|
|
46
|
-
/** @internal */
|
|
47
|
-
exports.RTPTransactionDetails$inboundSchema = z.object({
|
|
48
|
-
status: rtptransactionstatus_js_1.RTPTransactionStatus$inboundSchema.optional(),
|
|
49
|
-
networkResponseCode: z.string().optional(),
|
|
50
|
-
failureCode: rtpfailurecode_js_1.RTPFailureCode$inboundSchema.optional(),
|
|
51
|
-
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
52
|
-
.optional(),
|
|
53
|
-
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
54
|
-
.optional(),
|
|
55
|
-
failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
|
-
.optional(),
|
|
57
|
-
acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
58
|
-
});
|
|
59
|
-
/** @internal */
|
|
60
|
-
exports.RTPTransactionDetails$outboundSchema = z.object({
|
|
61
|
-
status: rtptransactionstatus_js_1.RTPTransactionStatus$outboundSchema.optional(),
|
|
62
|
-
networkResponseCode: z.string().optional(),
|
|
63
|
-
failureCode: rtpfailurecode_js_1.RTPFailureCode$outboundSchema.optional(),
|
|
64
|
-
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
65
|
-
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
66
|
-
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
67
|
-
acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
|
|
68
|
-
});
|
|
69
|
-
function rtpTransactionDetailsToJSON(rtpTransactionDetails) {
|
|
70
|
-
return JSON.stringify(exports.RTPTransactionDetails$outboundSchema.parse(rtpTransactionDetails));
|
|
71
|
-
}
|
|
72
|
-
function rtpTransactionDetailsFromJSON(jsonString) {
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RTPTransactionDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RTPTransactionDetails' from JSON`);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=rtptransactiondetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rtptransactiondetails.js","sourceRoot":"","sources":["../../src/models/components/rtptransactiondetails.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFH,kEAMC;AACD,sEAQC;AAjGD,0CAA4B;AAC5B,qDAAiD;AAGjD,2DAI6B;AAC7B,uEAImC;AAwBnC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IACrD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,gDAA4B,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,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChE,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7D,wBAAwB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9E,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AACD,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* Status of a transaction within the RTP lifecycle.
|
|
5
|
-
*/
|
|
6
|
-
export declare const RTPTransactionStatus: {
|
|
7
|
-
readonly Initiated: "initiated";
|
|
8
|
-
readonly Completed: "completed";
|
|
9
|
-
readonly Failed: "failed";
|
|
10
|
-
readonly AcceptedWithoutPosting: "accepted-without-posting";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Status of a transaction within the RTP lifecycle.
|
|
14
|
-
*/
|
|
15
|
-
export type RTPTransactionStatus = ClosedEnum<typeof RTPTransactionStatus>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const RTPTransactionStatus$inboundSchema: z.ZodNativeEnum<typeof RTPTransactionStatus>;
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const RTPTransactionStatus$outboundSchema: z.ZodNativeEnum<typeof RTPTransactionStatus>;
|
|
20
|
-
//# sourceMappingURL=rtptransactionstatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rtptransactionstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/rtptransactionstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,oBAAoB,CACS,CAAC;AACvC,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
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.RTPTransactionStatus$outboundSchema = exports.RTPTransactionStatus$inboundSchema = exports.RTPTransactionStatus = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
/**
|
|
42
|
-
* Status of a transaction within the RTP lifecycle.
|
|
43
|
-
*/
|
|
44
|
-
exports.RTPTransactionStatus = {
|
|
45
|
-
Initiated: "initiated",
|
|
46
|
-
Completed: "completed",
|
|
47
|
-
Failed: "failed",
|
|
48
|
-
AcceptedWithoutPosting: "accepted-without-posting",
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.RTPTransactionStatus$inboundSchema = z.nativeEnum(exports.RTPTransactionStatus);
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.RTPTransactionStatus$outboundSchema = exports.RTPTransactionStatus$inboundSchema;
|
|
54
|
-
//# sourceMappingURL=rtptransactionstatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rtptransactionstatus.js","sourceRoot":"","sources":["../../src/models/components/rtptransactionstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,0BAA0B;CAC1C,CAAC;AAMX,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AACvC,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,0CAAkC,CAAC"}
|
package/renovate.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
-
"extends": [
|
|
4
|
-
"config:recommended",
|
|
5
|
-
"npm:unpublishSafe",
|
|
6
|
-
":automergeStableNonMajor",
|
|
7
|
-
":automergeRequireAllStatusChecks",
|
|
8
|
-
":automergeTypes",
|
|
9
|
-
":automergeTesters",
|
|
10
|
-
":pinAllExceptPeerDependencies"
|
|
11
|
-
],
|
|
12
|
-
"timezone": "America/Chicago",
|
|
13
|
-
"schedule": ["after 2pm every weekday", "before 5am every weekday", "every weekend"],
|
|
14
|
-
"automergeSchedule": ["after 6pm every weekday", "before 9am every weekday", "every weekend"],
|
|
15
|
-
"prConcurrentLimit": 12,
|
|
16
|
-
"prHourlyLimit": 0,
|
|
17
|
-
"reviewers": ["team:frontend", "atonks2"],
|
|
18
|
-
"packageRules": [
|
|
19
|
-
{
|
|
20
|
-
"description": "Automerge devDependencies if the tests pass",
|
|
21
|
-
"matchDepTypes": ["devDependencies"],
|
|
22
|
-
"automerge": true
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"groupName": "Typespec Packages",
|
|
26
|
-
"matchPackagePatterns": ["^@typespec"]
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"commitMessagePrefix": "♻️"
|
|
30
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Status codes for RTP failures.
|
|
10
|
-
*/
|
|
11
|
-
export const RTPFailureCode = {
|
|
12
|
-
ProcessingError: "processing-error",
|
|
13
|
-
InvalidAccount: "invalid-account",
|
|
14
|
-
AccountClosed: "account-closed",
|
|
15
|
-
AccountBlocked: "account-blocked",
|
|
16
|
-
InvalidField: "invalid-field",
|
|
17
|
-
TransactionNotSupported: "transaction-not-supported",
|
|
18
|
-
LimitExceeded: "limit-exceeded",
|
|
19
|
-
InvalidAmount: "invalid-amount",
|
|
20
|
-
CustomerDeceased: "customer-deceased",
|
|
21
|
-
Other: "other",
|
|
22
|
-
} as const;
|
|
23
|
-
/**
|
|
24
|
-
* Status codes for RTP failures.
|
|
25
|
-
*/
|
|
26
|
-
export type RTPFailureCode = ClosedEnum<typeof RTPFailureCode>;
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const RTPFailureCode$inboundSchema: z.ZodNativeEnum<
|
|
30
|
-
typeof RTPFailureCode
|
|
31
|
-
> = z.nativeEnum(RTPFailureCode);
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const RTPFailureCode$outboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof RTPFailureCode
|
|
35
|
-
> = RTPFailureCode$inboundSchema;
|
|
@@ -1,102 +0,0 @@
|
|
|
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
|
-
import {
|
|
10
|
-
RTPFailureCode,
|
|
11
|
-
RTPFailureCode$inboundSchema,
|
|
12
|
-
RTPFailureCode$outboundSchema,
|
|
13
|
-
} from "./rtpfailurecode.js";
|
|
14
|
-
import {
|
|
15
|
-
RTPTransactionStatus,
|
|
16
|
-
RTPTransactionStatus$inboundSchema,
|
|
17
|
-
RTPTransactionStatus$outboundSchema,
|
|
18
|
-
} from "./rtptransactionstatus.js";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* RTP specific details about the transaction.
|
|
22
|
-
*/
|
|
23
|
-
export type RTPTransactionDetails = {
|
|
24
|
-
/**
|
|
25
|
-
* Status of a transaction within the RTP lifecycle.
|
|
26
|
-
*/
|
|
27
|
-
status?: RTPTransactionStatus | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Response code returned by network on failure.
|
|
30
|
-
*/
|
|
31
|
-
networkResponseCode?: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Status codes for RTP failures.
|
|
34
|
-
*/
|
|
35
|
-
failureCode?: RTPFailureCode | undefined;
|
|
36
|
-
initiatedOn?: Date | undefined;
|
|
37
|
-
completedOn?: Date | undefined;
|
|
38
|
-
failedOn?: Date | undefined;
|
|
39
|
-
acceptedWithoutPostingOn?: Date | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const RTPTransactionDetails$inboundSchema: z.ZodType<
|
|
44
|
-
RTPTransactionDetails,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
unknown
|
|
47
|
-
> = z.object({
|
|
48
|
-
status: RTPTransactionStatus$inboundSchema.optional(),
|
|
49
|
-
networkResponseCode: z.string().optional(),
|
|
50
|
-
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
51
|
-
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
52
|
-
.optional(),
|
|
53
|
-
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
54
|
-
.optional(),
|
|
55
|
-
failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
|
-
.optional(),
|
|
57
|
-
acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
|
|
58
|
-
new Date(v)
|
|
59
|
-
).optional(),
|
|
60
|
-
});
|
|
61
|
-
/** @internal */
|
|
62
|
-
export type RTPTransactionDetails$Outbound = {
|
|
63
|
-
status?: string | undefined;
|
|
64
|
-
networkResponseCode?: string | undefined;
|
|
65
|
-
failureCode?: string | undefined;
|
|
66
|
-
initiatedOn?: string | undefined;
|
|
67
|
-
completedOn?: string | undefined;
|
|
68
|
-
failedOn?: string | undefined;
|
|
69
|
-
acceptedWithoutPostingOn?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const RTPTransactionDetails$outboundSchema: z.ZodType<
|
|
74
|
-
RTPTransactionDetails$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
RTPTransactionDetails
|
|
77
|
-
> = z.object({
|
|
78
|
-
status: RTPTransactionStatus$outboundSchema.optional(),
|
|
79
|
-
networkResponseCode: z.string().optional(),
|
|
80
|
-
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
81
|
-
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
82
|
-
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
83
|
-
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
84
|
-
acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
export function rtpTransactionDetailsToJSON(
|
|
88
|
-
rtpTransactionDetails: RTPTransactionDetails,
|
|
89
|
-
): string {
|
|
90
|
-
return JSON.stringify(
|
|
91
|
-
RTPTransactionDetails$outboundSchema.parse(rtpTransactionDetails),
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
export function rtpTransactionDetailsFromJSON(
|
|
95
|
-
jsonString: string,
|
|
96
|
-
): SafeParseResult<RTPTransactionDetails, SDKValidationError> {
|
|
97
|
-
return safeParse(
|
|
98
|
-
jsonString,
|
|
99
|
-
(x) => RTPTransactionDetails$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
-
`Failed to parse 'RTPTransactionDetails' from JSON`,
|
|
101
|
-
);
|
|
102
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Status of a transaction within the RTP lifecycle.
|
|
10
|
-
*/
|
|
11
|
-
export const RTPTransactionStatus = {
|
|
12
|
-
Initiated: "initiated",
|
|
13
|
-
Completed: "completed",
|
|
14
|
-
Failed: "failed",
|
|
15
|
-
AcceptedWithoutPosting: "accepted-without-posting",
|
|
16
|
-
} as const;
|
|
17
|
-
/**
|
|
18
|
-
* Status of a transaction within the RTP lifecycle.
|
|
19
|
-
*/
|
|
20
|
-
export type RTPTransactionStatus = ClosedEnum<typeof RTPTransactionStatus>;
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const RTPTransactionStatus$inboundSchema: z.ZodNativeEnum<
|
|
24
|
-
typeof RTPTransactionStatus
|
|
25
|
-
> = z.nativeEnum(RTPTransactionStatus);
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const RTPTransactionStatus$outboundSchema: z.ZodNativeEnum<
|
|
28
|
-
typeof RTPTransactionStatus
|
|
29
|
-
> = RTPTransactionStatus$inboundSchema;
|
package/test/package.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "moov-typescript-test",
|
|
3
|
-
"module": "index.ts",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"format": "prettier --write \"**/*.{ts,tsx,md,json}\"",
|
|
7
|
-
"format:check": "prettier --check \"**/*.{ts,tsx,md,json}\"",
|
|
8
|
-
"setup": "cd .. && bun i && bun link && bun run build && cd test && bun link @moovio/sdk && bun i",
|
|
9
|
-
"pretest": "cd .. && bun run build",
|
|
10
|
-
"test": "bun test --timeout 20000",
|
|
11
|
-
"test:verbose": "VERBOSE=1 bun test --timeout 20000"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@types/bun": "latest",
|
|
15
|
-
"@types/chance": "^1.1.6",
|
|
16
|
-
"bun-types": "^1.2.2",
|
|
17
|
-
"chance": "^1.1.12",
|
|
18
|
-
"prettier": "^3.1.0",
|
|
19
|
-
"@moovio/sdk": "link:@moovio/sdk"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"typescript": "^5.0.0"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"remeda": "^2.20.1"
|
|
26
|
-
}
|
|
27
|
-
}
|
package/test/tsconfig.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Enable latest features
|
|
4
|
-
"lib": ["ESNext", "DOM"],
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
|
|
11
|
-
// Bundler mode
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
// Best practices
|
|
18
|
-
"strict": true,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
|
|
22
|
-
// Some stricter flags (disabled by default)
|
|
23
|
-
"noUnusedLocals": false,
|
|
24
|
-
"noUnusedParameters": false,
|
|
25
|
-
"noPropertyAccessFromIndexSignature": false,
|
|
26
|
-
|
|
27
|
-
// Add Bun types
|
|
28
|
-
"types": ["bun-types"]
|
|
29
|
-
}
|
|
30
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"incremental": false,
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
-
"jsx": "react-jsx",
|
|
7
|
-
|
|
8
|
-
"module": "Node16",
|
|
9
|
-
"moduleResolution": "Node16",
|
|
10
|
-
|
|
11
|
-
"allowJs": true,
|
|
12
|
-
|
|
13
|
-
"declaration": true,
|
|
14
|
-
"declarationMap": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"outDir": ".",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// https://github.com/tsconfig/bases/blob/a1bf7c0fa2e094b068ca3e1448ca2ece4157977e/bases/strictest.json
|
|
20
|
-
"strict": true,
|
|
21
|
-
"allowUnusedLabels": false,
|
|
22
|
-
"allowUnreachableCode": false,
|
|
23
|
-
"exactOptionalPropertyTypes": true,
|
|
24
|
-
"useUnknownInCatchVariables": true,
|
|
25
|
-
"noFallthroughCasesInSwitch": true,
|
|
26
|
-
"noImplicitOverride": true,
|
|
27
|
-
"noImplicitReturns": true,
|
|
28
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
29
|
-
"noUncheckedIndexedAccess": true,
|
|
30
|
-
"noUnusedLocals": true,
|
|
31
|
-
"noUnusedParameters": true,
|
|
32
|
-
"isolatedModules": true,
|
|
33
|
-
"checkJs": true,
|
|
34
|
-
"esModuleInterop": true,
|
|
35
|
-
"skipLibCheck": true,
|
|
36
|
-
"forceConsistentCasingInFileNames": true
|
|
37
|
-
},
|
|
38
|
-
"include": ["src"],
|
|
39
|
-
"exclude": ["node_modules"]
|
|
40
|
-
}
|