@moovio/sdk 0.14.7 → 0.14.9
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 +45 -37
- package/bin/mcp-server.js +395 -165
- package/bin/mcp-server.js.map +19 -14
- package/docs/sdks/terminalapplications/README.md +102 -9
- package/examples/package-lock.json +1 -1
- package/funcs/terminalApplicationsCreateVersion.d.ts +18 -0
- package/funcs/terminalApplicationsCreateVersion.d.ts.map +1 -0
- package/funcs/terminalApplicationsCreateVersion.js +137 -0
- package/funcs/terminalApplicationsCreateVersion.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/tools/terminalApplicationsCreateVersion.d.ts +8 -0
- package/mcp-server/tools/terminalApplicationsCreateVersion.d.ts.map +1 -0
- package/mcp-server/tools/terminalApplicationsCreateVersion.js +65 -0
- package/mcp-server/tools/terminalApplicationsCreateVersion.js.map +1 -0
- package/models/components/accountterminalapplication.d.ts +40 -0
- package/models/components/accountterminalapplication.d.ts.map +1 -0
- package/models/components/accountterminalapplication.js +71 -0
- package/models/components/accountterminalapplication.js.map +1 -0
- package/models/components/createterminalapplication.d.ts +2 -2
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/institutionssearchresponse.d.ts +6 -6
- package/models/components/institutionssearchresponse.d.ts.map +1 -1
- package/models/components/institutionssearchresponse.js +6 -6
- package/models/components/institutionssearchresponse.js.map +1 -1
- package/models/components/terminalapplication.d.ts +2 -2
- package/models/components/terminalapplicationversion.d.ts +35 -0
- package/models/components/terminalapplicationversion.d.ts.map +1 -0
- package/models/components/terminalapplicationversion.js +69 -0
- package/models/components/terminalapplicationversion.js.map +1 -0
- package/models/operations/createterminalapplicationversion.d.ts +101 -0
- package/models/operations/createterminalapplicationversion.d.ts.map +1 -0
- package/models/operations/createterminalapplicationversion.js +155 -0
- package/models/operations/createterminalapplicationversion.js.map +1 -0
- package/models/operations/getaccountterminalapplication.d.ts +2 -2
- package/models/operations/getaccountterminalapplication.d.ts.map +1 -1
- package/models/operations/getaccountterminalapplication.js +2 -2
- package/models/operations/getaccountterminalapplication.js.map +1 -1
- 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/models/operations/linkaccountterminalapplication.d.ts +2 -2
- package/models/operations/linkaccountterminalapplication.d.ts.map +1 -1
- package/models/operations/linkaccountterminalapplication.js +2 -2
- package/models/operations/linkaccountterminalapplication.js.map +1 -1
- package/models/operations/listaccountterminalapplications.d.ts +2 -2
- package/models/operations/listaccountterminalapplications.d.ts.map +1 -1
- package/models/operations/listaccountterminalapplications.js +2 -2
- package/models/operations/listaccountterminalapplications.js.map +1 -1
- package/package.json +1 -1
- package/sdk/terminalapplications.d.ts +7 -0
- package/sdk/terminalapplications.d.ts.map +1 -1
- package/sdk/terminalapplications.js +10 -0
- package/sdk/terminalapplications.js.map +1 -1
- package/src/funcs/terminalApplicationsCreateVersion.ts +212 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/terminalApplicationsCreateVersion.ts +41 -0
- package/src/models/components/accountterminalapplication.ts +79 -0
- package/src/models/components/createterminalapplication.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/institutionssearchresponse.ts +12 -12
- package/src/models/components/terminalapplication.ts +2 -2
- package/src/models/components/terminalapplicationversion.ts +72 -0
- package/src/models/operations/createterminalapplicationversion.ts +266 -0
- package/src/models/operations/getaccountterminalapplication.ts +4 -4
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/linkaccountterminalapplication.ts +4 -4
- package/src/models/operations/listaccountterminalapplications.ts +4 -4
- package/src/sdk/terminalapplications.ts +18 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
* Describes link between an account and a terminal application.
|
|
12
|
+
*/
|
|
13
|
+
export type AccountTerminalApplication = {
|
|
14
|
+
/**
|
|
15
|
+
* ID of the merchant account.
|
|
16
|
+
*/
|
|
17
|
+
accountID: string;
|
|
18
|
+
/**
|
|
19
|
+
* ID of the terminal application.
|
|
20
|
+
*/
|
|
21
|
+
terminalApplicationID: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AccountTerminalApplication$inboundSchema: z.ZodType<
|
|
26
|
+
AccountTerminalApplication,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
accountID: z.string(),
|
|
31
|
+
terminalApplicationID: z.string(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type AccountTerminalApplication$Outbound = {
|
|
36
|
+
accountID: string;
|
|
37
|
+
terminalApplicationID: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const AccountTerminalApplication$outboundSchema: z.ZodType<
|
|
42
|
+
AccountTerminalApplication$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
AccountTerminalApplication
|
|
45
|
+
> = z.object({
|
|
46
|
+
accountID: z.string(),
|
|
47
|
+
terminalApplicationID: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace AccountTerminalApplication$ {
|
|
55
|
+
/** @deprecated use `AccountTerminalApplication$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = AccountTerminalApplication$inboundSchema;
|
|
57
|
+
/** @deprecated use `AccountTerminalApplication$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = AccountTerminalApplication$outboundSchema;
|
|
59
|
+
/** @deprecated use `AccountTerminalApplication$Outbound` instead. */
|
|
60
|
+
export type Outbound = AccountTerminalApplication$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function accountTerminalApplicationToJSON(
|
|
64
|
+
accountTerminalApplication: AccountTerminalApplication,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
AccountTerminalApplication$outboundSchema.parse(accountTerminalApplication),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function accountTerminalApplicationFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<AccountTerminalApplication, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => AccountTerminalApplication$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'AccountTerminalApplication' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -29,11 +29,11 @@ export type CreateTerminalApplication = {
|
|
|
29
29
|
*/
|
|
30
30
|
packageName?: string | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* The
|
|
32
|
+
* The SHA-256 digest of the signing key for the application. Required if platform is `android`.
|
|
33
33
|
*/
|
|
34
34
|
sha256Digest?: string | undefined;
|
|
35
35
|
/**
|
|
36
|
-
* The
|
|
36
|
+
* The version code of the Android application. Required if platform is `android`.
|
|
37
37
|
*/
|
|
38
38
|
versionCode?: string | undefined;
|
|
39
39
|
};
|
|
@@ -6,6 +6,7 @@ export * from "./account.js";
|
|
|
6
6
|
export * from "./accountcapability.js";
|
|
7
7
|
export * from "./accountcountries.js";
|
|
8
8
|
export * from "./accountnameverification.js";
|
|
9
|
+
export * from "./accountterminalapplication.js";
|
|
9
10
|
export * from "./accounttype.js";
|
|
10
11
|
export * from "./accountverificationstatus.js";
|
|
11
12
|
export * from "./achcreditsamedaypaymentmethod.js";
|
|
@@ -365,6 +366,7 @@ export * from "./taxidupdate.js";
|
|
|
365
366
|
export * from "./terminalapplication.js";
|
|
366
367
|
export * from "./terminalapplicationplatform.js";
|
|
367
368
|
export * from "./terminalapplicationstatus.js";
|
|
369
|
+
export * from "./terminalapplicationversion.js";
|
|
368
370
|
export * from "./terminalcard.js";
|
|
369
371
|
export * from "./terminalconfiguration.js";
|
|
370
372
|
export * from "./termsofservice.js";
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
} from "./wireinstitution.js";
|
|
27
27
|
|
|
28
28
|
export type InstitutionsSearchResponse = {
|
|
29
|
-
ach: Array<ACHInstitution
|
|
30
|
-
rtp: Array<RTPInstitution
|
|
31
|
-
wire: Array<WireInstitution
|
|
29
|
+
ach: Array<ACHInstitution> | null;
|
|
30
|
+
rtp: Array<RTPInstitution> | null;
|
|
31
|
+
wire: Array<WireInstitution> | null;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
@@ -37,16 +37,16 @@ export const InstitutionsSearchResponse$inboundSchema: z.ZodType<
|
|
|
37
37
|
z.ZodTypeDef,
|
|
38
38
|
unknown
|
|
39
39
|
> = z.object({
|
|
40
|
-
ach: z.array(ACHInstitution$inboundSchema),
|
|
41
|
-
rtp: z.array(RTPInstitution$inboundSchema),
|
|
42
|
-
wire: z.array(WireInstitution$inboundSchema),
|
|
40
|
+
ach: z.nullable(z.array(ACHInstitution$inboundSchema)),
|
|
41
|
+
rtp: z.nullable(z.array(RTPInstitution$inboundSchema)),
|
|
42
|
+
wire: z.nullable(z.array(WireInstitution$inboundSchema)),
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type InstitutionsSearchResponse$Outbound = {
|
|
47
|
-
ach: Array<ACHInstitution$Outbound
|
|
48
|
-
rtp: Array<RTPInstitution$Outbound
|
|
49
|
-
wire: Array<WireInstitution$Outbound
|
|
47
|
+
ach: Array<ACHInstitution$Outbound> | null;
|
|
48
|
+
rtp: Array<RTPInstitution$Outbound> | null;
|
|
49
|
+
wire: Array<WireInstitution$Outbound> | null;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/** @internal */
|
|
@@ -55,9 +55,9 @@ export const InstitutionsSearchResponse$outboundSchema: z.ZodType<
|
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
InstitutionsSearchResponse
|
|
57
57
|
> = z.object({
|
|
58
|
-
ach: z.array(ACHInstitution$outboundSchema),
|
|
59
|
-
rtp: z.array(RTPInstitution$outboundSchema),
|
|
60
|
-
wire: z.array(WireInstitution$outboundSchema),
|
|
58
|
+
ach: z.nullable(z.array(ACHInstitution$outboundSchema)),
|
|
59
|
+
rtp: z.nullable(z.array(RTPInstitution$outboundSchema)),
|
|
60
|
+
wire: z.nullable(z.array(WireInstitution$outboundSchema)),
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -42,11 +42,11 @@ export type TerminalApplication = {
|
|
|
42
42
|
*/
|
|
43
43
|
packageName?: string | undefined;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* A cryptographic hash of the signing key for the application. Will be returned if platform is `android`.
|
|
46
46
|
*/
|
|
47
47
|
sha256Digest?: string | undefined;
|
|
48
48
|
/**
|
|
49
|
-
* The app version of the terminal application Will be returned if platform is `android`.
|
|
49
|
+
* The app version code of the terminal application. Will be returned if platform is `android`.
|
|
50
50
|
*/
|
|
51
51
|
versionCode?: string | undefined;
|
|
52
52
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
* Describes a terminal application version.
|
|
12
|
+
*/
|
|
13
|
+
export type TerminalApplicationVersion = {
|
|
14
|
+
/**
|
|
15
|
+
* The app version of the terminal application (version code for Android terminal application).
|
|
16
|
+
*/
|
|
17
|
+
version: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const TerminalApplicationVersion$inboundSchema: z.ZodType<
|
|
22
|
+
TerminalApplicationVersion,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
version: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type TerminalApplicationVersion$Outbound = {
|
|
31
|
+
version: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const TerminalApplicationVersion$outboundSchema: z.ZodType<
|
|
36
|
+
TerminalApplicationVersion$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
TerminalApplicationVersion
|
|
39
|
+
> = z.object({
|
|
40
|
+
version: z.string(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace TerminalApplicationVersion$ {
|
|
48
|
+
/** @deprecated use `TerminalApplicationVersion$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = TerminalApplicationVersion$inboundSchema;
|
|
50
|
+
/** @deprecated use `TerminalApplicationVersion$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = TerminalApplicationVersion$outboundSchema;
|
|
52
|
+
/** @deprecated use `TerminalApplicationVersion$Outbound` instead. */
|
|
53
|
+
export type Outbound = TerminalApplicationVersion$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function terminalApplicationVersionToJSON(
|
|
57
|
+
terminalApplicationVersion: TerminalApplicationVersion,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
TerminalApplicationVersion$outboundSchema.parse(terminalApplicationVersion),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function terminalApplicationVersionFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<TerminalApplicationVersion, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => TerminalApplicationVersion$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'TerminalApplicationVersion' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CreateTerminalApplicationVersionGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Specify an API version.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
* - `YYYY` is the year
|
|
20
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
*
|
|
24
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type CreateTerminalApplicationVersionRequest = {
|
|
30
|
+
terminalApplicationID: string;
|
|
31
|
+
terminalApplicationVersion: components.TerminalApplicationVersion;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type CreateTerminalApplicationVersionResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.TerminalApplicationVersion;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CreateTerminalApplicationVersionGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
CreateTerminalApplicationVersionGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"x-moov-version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type CreateTerminalApplicationVersionGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CreateTerminalApplicationVersionGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
CreateTerminalApplicationVersionGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
CreateTerminalApplicationVersionGlobals
|
|
62
|
+
> = z.object({
|
|
63
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
xMoovVersion: "x-moov-version",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace CreateTerminalApplicationVersionGlobals$ {
|
|
75
|
+
/** @deprecated use `CreateTerminalApplicationVersionGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema =
|
|
77
|
+
CreateTerminalApplicationVersionGlobals$inboundSchema;
|
|
78
|
+
/** @deprecated use `CreateTerminalApplicationVersionGlobals$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema =
|
|
80
|
+
CreateTerminalApplicationVersionGlobals$outboundSchema;
|
|
81
|
+
/** @deprecated use `CreateTerminalApplicationVersionGlobals$Outbound` instead. */
|
|
82
|
+
export type Outbound = CreateTerminalApplicationVersionGlobals$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function createTerminalApplicationVersionGlobalsToJSON(
|
|
86
|
+
createTerminalApplicationVersionGlobals:
|
|
87
|
+
CreateTerminalApplicationVersionGlobals,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
CreateTerminalApplicationVersionGlobals$outboundSchema.parse(
|
|
91
|
+
createTerminalApplicationVersionGlobals,
|
|
92
|
+
),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function createTerminalApplicationVersionGlobalsFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<
|
|
99
|
+
CreateTerminalApplicationVersionGlobals,
|
|
100
|
+
SDKValidationError
|
|
101
|
+
> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) =>
|
|
105
|
+
CreateTerminalApplicationVersionGlobals$inboundSchema.parse(
|
|
106
|
+
JSON.parse(x),
|
|
107
|
+
),
|
|
108
|
+
`Failed to parse 'CreateTerminalApplicationVersionGlobals' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const CreateTerminalApplicationVersionRequest$inboundSchema: z.ZodType<
|
|
114
|
+
CreateTerminalApplicationVersionRequest,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
unknown
|
|
117
|
+
> = z.object({
|
|
118
|
+
terminalApplicationID: z.string(),
|
|
119
|
+
TerminalApplicationVersion:
|
|
120
|
+
components.TerminalApplicationVersion$inboundSchema,
|
|
121
|
+
}).transform((v) => {
|
|
122
|
+
return remap$(v, {
|
|
123
|
+
"TerminalApplicationVersion": "terminalApplicationVersion",
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export type CreateTerminalApplicationVersionRequest$Outbound = {
|
|
129
|
+
terminalApplicationID: string;
|
|
130
|
+
TerminalApplicationVersion: components.TerminalApplicationVersion$Outbound;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const CreateTerminalApplicationVersionRequest$outboundSchema: z.ZodType<
|
|
135
|
+
CreateTerminalApplicationVersionRequest$Outbound,
|
|
136
|
+
z.ZodTypeDef,
|
|
137
|
+
CreateTerminalApplicationVersionRequest
|
|
138
|
+
> = z.object({
|
|
139
|
+
terminalApplicationID: z.string(),
|
|
140
|
+
terminalApplicationVersion:
|
|
141
|
+
components.TerminalApplicationVersion$outboundSchema,
|
|
142
|
+
}).transform((v) => {
|
|
143
|
+
return remap$(v, {
|
|
144
|
+
terminalApplicationVersion: "TerminalApplicationVersion",
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
+
*/
|
|
152
|
+
export namespace CreateTerminalApplicationVersionRequest$ {
|
|
153
|
+
/** @deprecated use `CreateTerminalApplicationVersionRequest$inboundSchema` instead. */
|
|
154
|
+
export const inboundSchema =
|
|
155
|
+
CreateTerminalApplicationVersionRequest$inboundSchema;
|
|
156
|
+
/** @deprecated use `CreateTerminalApplicationVersionRequest$outboundSchema` instead. */
|
|
157
|
+
export const outboundSchema =
|
|
158
|
+
CreateTerminalApplicationVersionRequest$outboundSchema;
|
|
159
|
+
/** @deprecated use `CreateTerminalApplicationVersionRequest$Outbound` instead. */
|
|
160
|
+
export type Outbound = CreateTerminalApplicationVersionRequest$Outbound;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function createTerminalApplicationVersionRequestToJSON(
|
|
164
|
+
createTerminalApplicationVersionRequest:
|
|
165
|
+
CreateTerminalApplicationVersionRequest,
|
|
166
|
+
): string {
|
|
167
|
+
return JSON.stringify(
|
|
168
|
+
CreateTerminalApplicationVersionRequest$outboundSchema.parse(
|
|
169
|
+
createTerminalApplicationVersionRequest,
|
|
170
|
+
),
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function createTerminalApplicationVersionRequestFromJSON(
|
|
175
|
+
jsonString: string,
|
|
176
|
+
): SafeParseResult<
|
|
177
|
+
CreateTerminalApplicationVersionRequest,
|
|
178
|
+
SDKValidationError
|
|
179
|
+
> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) =>
|
|
183
|
+
CreateTerminalApplicationVersionRequest$inboundSchema.parse(
|
|
184
|
+
JSON.parse(x),
|
|
185
|
+
),
|
|
186
|
+
`Failed to parse 'CreateTerminalApplicationVersionRequest' from JSON`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const CreateTerminalApplicationVersionResponse$inboundSchema: z.ZodType<
|
|
192
|
+
CreateTerminalApplicationVersionResponse,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
unknown
|
|
195
|
+
> = z.object({
|
|
196
|
+
Headers: z.record(z.array(z.string())),
|
|
197
|
+
Result: components.TerminalApplicationVersion$inboundSchema,
|
|
198
|
+
}).transform((v) => {
|
|
199
|
+
return remap$(v, {
|
|
200
|
+
"Headers": "headers",
|
|
201
|
+
"Result": "result",
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export type CreateTerminalApplicationVersionResponse$Outbound = {
|
|
207
|
+
Headers: { [k: string]: Array<string> };
|
|
208
|
+
Result: components.TerminalApplicationVersion$Outbound;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const CreateTerminalApplicationVersionResponse$outboundSchema: z.ZodType<
|
|
213
|
+
CreateTerminalApplicationVersionResponse$Outbound,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
CreateTerminalApplicationVersionResponse
|
|
216
|
+
> = z.object({
|
|
217
|
+
headers: z.record(z.array(z.string())),
|
|
218
|
+
result: components.TerminalApplicationVersion$outboundSchema,
|
|
219
|
+
}).transform((v) => {
|
|
220
|
+
return remap$(v, {
|
|
221
|
+
headers: "Headers",
|
|
222
|
+
result: "Result",
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
229
|
+
*/
|
|
230
|
+
export namespace CreateTerminalApplicationVersionResponse$ {
|
|
231
|
+
/** @deprecated use `CreateTerminalApplicationVersionResponse$inboundSchema` instead. */
|
|
232
|
+
export const inboundSchema =
|
|
233
|
+
CreateTerminalApplicationVersionResponse$inboundSchema;
|
|
234
|
+
/** @deprecated use `CreateTerminalApplicationVersionResponse$outboundSchema` instead. */
|
|
235
|
+
export const outboundSchema =
|
|
236
|
+
CreateTerminalApplicationVersionResponse$outboundSchema;
|
|
237
|
+
/** @deprecated use `CreateTerminalApplicationVersionResponse$Outbound` instead. */
|
|
238
|
+
export type Outbound = CreateTerminalApplicationVersionResponse$Outbound;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function createTerminalApplicationVersionResponseToJSON(
|
|
242
|
+
createTerminalApplicationVersionResponse:
|
|
243
|
+
CreateTerminalApplicationVersionResponse,
|
|
244
|
+
): string {
|
|
245
|
+
return JSON.stringify(
|
|
246
|
+
CreateTerminalApplicationVersionResponse$outboundSchema.parse(
|
|
247
|
+
createTerminalApplicationVersionResponse,
|
|
248
|
+
),
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export function createTerminalApplicationVersionResponseFromJSON(
|
|
253
|
+
jsonString: string,
|
|
254
|
+
): SafeParseResult<
|
|
255
|
+
CreateTerminalApplicationVersionResponse,
|
|
256
|
+
SDKValidationError
|
|
257
|
+
> {
|
|
258
|
+
return safeParse(
|
|
259
|
+
jsonString,
|
|
260
|
+
(x) =>
|
|
261
|
+
CreateTerminalApplicationVersionResponse$inboundSchema.parse(
|
|
262
|
+
JSON.parse(x),
|
|
263
|
+
),
|
|
264
|
+
`Failed to parse 'CreateTerminalApplicationVersionResponse' from JSON`,
|
|
265
|
+
);
|
|
266
|
+
}
|
|
@@ -33,7 +33,7 @@ export type GetAccountTerminalApplicationRequest = {
|
|
|
33
33
|
|
|
34
34
|
export type GetAccountTerminalApplicationResponse = {
|
|
35
35
|
headers: { [k: string]: Array<string> };
|
|
36
|
-
result: components.
|
|
36
|
+
result: components.AccountTerminalApplication;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
@@ -172,7 +172,7 @@ export const GetAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
|
172
172
|
unknown
|
|
173
173
|
> = z.object({
|
|
174
174
|
Headers: z.record(z.array(z.string())),
|
|
175
|
-
Result: components.
|
|
175
|
+
Result: components.AccountTerminalApplication$inboundSchema,
|
|
176
176
|
}).transform((v) => {
|
|
177
177
|
return remap$(v, {
|
|
178
178
|
"Headers": "headers",
|
|
@@ -183,7 +183,7 @@ export const GetAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
|
183
183
|
/** @internal */
|
|
184
184
|
export type GetAccountTerminalApplicationResponse$Outbound = {
|
|
185
185
|
Headers: { [k: string]: Array<string> };
|
|
186
|
-
Result: components.
|
|
186
|
+
Result: components.AccountTerminalApplication$Outbound;
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
/** @internal */
|
|
@@ -193,7 +193,7 @@ export const GetAccountTerminalApplicationResponse$outboundSchema: z.ZodType<
|
|
|
193
193
|
GetAccountTerminalApplicationResponse
|
|
194
194
|
> = z.object({
|
|
195
195
|
headers: z.record(z.array(z.string())),
|
|
196
|
-
result: components.
|
|
196
|
+
result: components.AccountTerminalApplication$outboundSchema,
|
|
197
197
|
}).transform((v) => {
|
|
198
198
|
return remap$(v, {
|
|
199
199
|
headers: "Headers",
|
|
@@ -21,6 +21,7 @@ export * from "./createreversal.js";
|
|
|
21
21
|
export * from "./createschedule.js";
|
|
22
22
|
export * from "./createsweepconfig.js";
|
|
23
23
|
export * from "./createterminalapplication.js";
|
|
24
|
+
export * from "./createterminalapplicationversion.js";
|
|
24
25
|
export * from "./createticket.js";
|
|
25
26
|
export * from "./createtransfer.js";
|
|
26
27
|
export * from "./createtransferoptions.js";
|
|
@@ -33,7 +33,7 @@ export type LinkAccountTerminalApplicationRequest = {
|
|
|
33
33
|
|
|
34
34
|
export type LinkAccountTerminalApplicationResponse = {
|
|
35
35
|
headers: { [k: string]: Array<string> };
|
|
36
|
-
result: components.
|
|
36
|
+
result: components.AccountTerminalApplication;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
@@ -183,7 +183,7 @@ export const LinkAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
|
183
183
|
unknown
|
|
184
184
|
> = z.object({
|
|
185
185
|
Headers: z.record(z.array(z.string())),
|
|
186
|
-
Result: components.
|
|
186
|
+
Result: components.AccountTerminalApplication$inboundSchema,
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
189
189
|
"Headers": "headers",
|
|
@@ -194,7 +194,7 @@ export const LinkAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
|
194
194
|
/** @internal */
|
|
195
195
|
export type LinkAccountTerminalApplicationResponse$Outbound = {
|
|
196
196
|
Headers: { [k: string]: Array<string> };
|
|
197
|
-
Result: components.
|
|
197
|
+
Result: components.AccountTerminalApplication$Outbound;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
/** @internal */
|
|
@@ -204,7 +204,7 @@ export const LinkAccountTerminalApplicationResponse$outboundSchema: z.ZodType<
|
|
|
204
204
|
LinkAccountTerminalApplicationResponse
|
|
205
205
|
> = z.object({
|
|
206
206
|
headers: z.record(z.array(z.string())),
|
|
207
|
-
result: components.
|
|
207
|
+
result: components.AccountTerminalApplication$outboundSchema,
|
|
208
208
|
}).transform((v) => {
|
|
209
209
|
return remap$(v, {
|
|
210
210
|
headers: "Headers",
|
|
@@ -32,7 +32,7 @@ export type ListAccountTerminalApplicationsRequest = {
|
|
|
32
32
|
|
|
33
33
|
export type ListAccountTerminalApplicationsResponse = {
|
|
34
34
|
headers: { [k: string]: Array<string> };
|
|
35
|
-
result: Array<components.
|
|
35
|
+
result: Array<components.AccountTerminalApplication>;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/** @internal */
|
|
@@ -170,7 +170,7 @@ export const ListAccountTerminalApplicationsResponse$inboundSchema: z.ZodType<
|
|
|
170
170
|
unknown
|
|
171
171
|
> = z.object({
|
|
172
172
|
Headers: z.record(z.array(z.string())),
|
|
173
|
-
Result: z.array(components.
|
|
173
|
+
Result: z.array(components.AccountTerminalApplication$inboundSchema),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|
|
176
176
|
"Headers": "headers",
|
|
@@ -181,7 +181,7 @@ export const ListAccountTerminalApplicationsResponse$inboundSchema: z.ZodType<
|
|
|
181
181
|
/** @internal */
|
|
182
182
|
export type ListAccountTerminalApplicationsResponse$Outbound = {
|
|
183
183
|
Headers: { [k: string]: Array<string> };
|
|
184
|
-
Result: Array<components.
|
|
184
|
+
Result: Array<components.AccountTerminalApplication$Outbound>;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
/** @internal */
|
|
@@ -191,7 +191,7 @@ export const ListAccountTerminalApplicationsResponse$outboundSchema: z.ZodType<
|
|
|
191
191
|
ListAccountTerminalApplicationsResponse
|
|
192
192
|
> = z.object({
|
|
193
193
|
headers: z.record(z.array(z.string())),
|
|
194
|
-
result: z.array(components.
|
|
194
|
+
result: z.array(components.AccountTerminalApplication$outboundSchema),
|
|
195
195
|
}).transform((v) => {
|
|
196
196
|
return remap$(v, {
|
|
197
197
|
headers: "Headers",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { terminalApplicationsCreate } from "../funcs/terminalApplicationsCreate.js";
|
|
6
|
+
import { terminalApplicationsCreateVersion } from "../funcs/terminalApplicationsCreateVersion.js";
|
|
6
7
|
import { terminalApplicationsDelete } from "../funcs/terminalApplicationsDelete.js";
|
|
7
8
|
import { terminalApplicationsGet } from "../funcs/terminalApplicationsGet.js";
|
|
8
9
|
import { terminalApplicationsList } from "../funcs/terminalApplicationsList.js";
|
|
@@ -79,4 +80,21 @@ export class TerminalApplications extends ClientSDK {
|
|
|
79
80
|
options,
|
|
80
81
|
));
|
|
81
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Register a new version of a terminal application. For Android applications, this is used to register a new version code of the application.
|
|
86
|
+
*
|
|
87
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
88
|
+
* you'll need to specify the `/terminal-applications.write` scope.
|
|
89
|
+
*/
|
|
90
|
+
async createVersion(
|
|
91
|
+
request: operations.CreateTerminalApplicationVersionRequest,
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): Promise<operations.CreateTerminalApplicationVersionResponse> {
|
|
94
|
+
return unwrapAsync(terminalApplicationsCreateVersion(
|
|
95
|
+
this,
|
|
96
|
+
request,
|
|
97
|
+
options,
|
|
98
|
+
));
|
|
99
|
+
}
|
|
82
100
|
}
|