@gr4vy/sdk 2.4.4 → 2.4.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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/apikeypaircreate.d.ts +1 -1
- package/models/components/worldpayvapoptions.d.ts +5 -0
- package/models/components/worldpayvapoptions.d.ts.map +1 -1
- package/models/components/worldpayvapoptions.js +1 -0
- package/models/components/worldpayvapoptions.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/apikeypaircreate.ts +1 -1
- package/src/models/components/worldpayvapoptions.ts +6 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "2.4.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.4.
|
|
47
|
+
readonly sdkVersion: "2.4.6";
|
|
48
|
+
readonly genVersion: "2.927.0";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.4.6 2.927.0 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "2.4.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 2.4.
|
|
40
|
+
sdkVersion: "2.4.6",
|
|
41
|
+
genVersion: "2.927.0",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 2.4.6 2.927.0 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -11,7 +11,7 @@ export type APIKeyPairCreate = {
|
|
|
11
11
|
*/
|
|
12
12
|
active?: boolean | undefined;
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
14
|
+
* The IDs of the roles to assign to the API key pair. The caller can only assign roles whose scopes are a subset of its own.
|
|
15
15
|
*/
|
|
16
16
|
roleIds: Array<string>;
|
|
17
17
|
/**
|
|
@@ -4,10 +4,15 @@ export type WorldpayVapOptions = {
|
|
|
4
4
|
* Overrides the default report group to pass to the Worldpay VAP API.
|
|
5
5
|
*/
|
|
6
6
|
reportGroup?: string | null | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Overrides the `orderId` passed to the Worldpay VAP API, which defaults to the Gr4vy transaction ID.
|
|
9
|
+
*/
|
|
10
|
+
orderId?: string | null | undefined;
|
|
7
11
|
};
|
|
8
12
|
/** @internal */
|
|
9
13
|
export type WorldpayVapOptions$Outbound = {
|
|
10
14
|
reportGroup?: string | null | undefined;
|
|
15
|
+
orderId?: string | null | undefined;
|
|
11
16
|
};
|
|
12
17
|
/** @internal */
|
|
13
18
|
export declare const WorldpayVapOptions$outboundSchema: z.ZodType<WorldpayVapOptions$Outbound, z.ZodTypeDef, WorldpayVapOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worldpayvapoptions.d.ts","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"worldpayvapoptions.d.ts","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -42,6 +42,7 @@ const z = __importStar(require("zod/v3"));
|
|
|
42
42
|
/** @internal */
|
|
43
43
|
exports.WorldpayVapOptions$outboundSchema = z.object({
|
|
44
44
|
reportGroup: z.nullable(z.string()).optional(),
|
|
45
|
+
orderId: z.nullable(z.string()).optional(),
|
|
45
46
|
});
|
|
46
47
|
function worldpayVapOptionsToJSON(worldpayVapOptions) {
|
|
47
48
|
return JSON.stringify(exports.WorldpayVapOptions$outboundSchema.parse(worldpayVapOptions));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worldpayvapoptions.js","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"worldpayvapoptions.js","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,4DAMC;AAnCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "2.4.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 2.4.
|
|
80
|
+
sdkVersion: "2.4.6",
|
|
81
|
+
genVersion: "2.927.0",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 2.4.6 2.927.0 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -20,7 +20,7 @@ export type APIKeyPairCreate = {
|
|
|
20
20
|
*/
|
|
21
21
|
active?: boolean | undefined;
|
|
22
22
|
/**
|
|
23
|
-
* The
|
|
23
|
+
* The IDs of the roles to assign to the API key pair. The caller can only assign roles whose scopes are a subset of its own.
|
|
24
24
|
*/
|
|
25
25
|
roleIds: Array<string>;
|
|
26
26
|
/**
|
|
@@ -9,11 +9,16 @@ export type WorldpayVapOptions = {
|
|
|
9
9
|
* Overrides the default report group to pass to the Worldpay VAP API.
|
|
10
10
|
*/
|
|
11
11
|
reportGroup?: string | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Overrides the `orderId` passed to the Worldpay VAP API, which defaults to the Gr4vy transaction ID.
|
|
14
|
+
*/
|
|
15
|
+
orderId?: string | null | undefined;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type WorldpayVapOptions$Outbound = {
|
|
16
20
|
reportGroup?: string | null | undefined;
|
|
21
|
+
orderId?: string | null | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
/** @internal */
|
|
@@ -23,6 +28,7 @@ export const WorldpayVapOptions$outboundSchema: z.ZodType<
|
|
|
23
28
|
WorldpayVapOptions
|
|
24
29
|
> = z.object({
|
|
25
30
|
reportGroup: z.nullable(z.string()).optional(),
|
|
31
|
+
orderId: z.nullable(z.string()).optional(),
|
|
26
32
|
});
|
|
27
33
|
|
|
28
34
|
export function worldpayVapOptionsToJSON(
|