mollie-api-typescript 1.12.8 → 1.12.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/dist/commonjs/funcs/customersGet.d.ts +2 -1
- package/dist/commonjs/funcs/customersGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersGet.js +2 -2
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/index.d.ts +0 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +0 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +0 -92
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +1 -38
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/sdk/customers.d.ts +1 -1
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/esm/funcs/customersGet.d.ts +2 -1
- package/dist/esm/funcs/customersGet.d.ts.map +1 -1
- package/dist/esm/funcs/customersGet.js +2 -2
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +0 -92
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +0 -35
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/sdk/customers.d.ts +1 -1
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customersGet.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/models/index.ts +0 -1
- package/src/models/operations/getcustomer.ts +0 -146
- package/src/sdk/customers.ts +1 -1
- package/dist/commonjs/models/entityevent.d.ts +0 -33
- package/dist/commonjs/models/entityevent.d.ts.map +0 -1
- package/dist/commonjs/models/entityevent.js +0 -69
- package/dist/commonjs/models/entityevent.js.map +0 -1
- package/dist/esm/models/entityevent.d.ts +0 -33
- package/dist/esm/models/entityevent.d.ts.map +0 -1
- package/dist/esm/models/entityevent.js +0 -31
- package/dist/esm/models/entityevent.js.map +0 -1
- package/src/models/entityevent.ts +0 -81
|
@@ -1,7 +1,4 @@
|
|
|
1
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 * as models from "../index.js";
|
|
5
2
|
export type GetCustomerGlobals = {
|
|
6
3
|
/**
|
|
7
4
|
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
@@ -19,10 +16,6 @@ export type GetCustomerRequest = {
|
|
|
19
16
|
* Provide the ID of the related customer.
|
|
20
17
|
*/
|
|
21
18
|
customerId: string;
|
|
22
|
-
/**
|
|
23
|
-
* This endpoint allows you to include additional information via the `include` query string parameter.
|
|
24
|
-
*/
|
|
25
|
-
include?: string | null | undefined;
|
|
26
19
|
/**
|
|
27
20
|
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
28
21
|
*
|
|
@@ -38,98 +31,13 @@ export type GetCustomerRequest = {
|
|
|
38
31
|
*/
|
|
39
32
|
idempotencyKey?: string | undefined;
|
|
40
33
|
};
|
|
41
|
-
/**
|
|
42
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
43
|
-
*/
|
|
44
|
-
export type GetCustomerLinks = {
|
|
45
|
-
/**
|
|
46
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
47
|
-
*/
|
|
48
|
-
self: models.Url;
|
|
49
|
-
/**
|
|
50
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
51
|
-
*/
|
|
52
|
-
dashboard: models.Url;
|
|
53
|
-
/**
|
|
54
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
55
|
-
*/
|
|
56
|
-
payments?: models.UrlNullable | null | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
59
|
-
*/
|
|
60
|
-
mandates?: models.UrlNullable | null | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
63
|
-
*/
|
|
64
|
-
subscriptions?: models.UrlNullable | null | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
67
|
-
*/
|
|
68
|
-
documentation: models.Url;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* The customer object.
|
|
72
|
-
*/
|
|
73
|
-
export type GetCustomerResponse = {
|
|
74
|
-
/**
|
|
75
|
-
* Indicates the response contains a customer object. Will always contain the string `customer` for this endpoint.
|
|
76
|
-
*/
|
|
77
|
-
resource: string;
|
|
78
|
-
/**
|
|
79
|
-
* The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
|
|
80
|
-
*/
|
|
81
|
-
id: string;
|
|
82
|
-
/**
|
|
83
|
-
* Whether this entity was created in live mode or in test mode.
|
|
84
|
-
*/
|
|
85
|
-
mode: models.Mode;
|
|
86
|
-
/**
|
|
87
|
-
* The full name of the customer.
|
|
88
|
-
*/
|
|
89
|
-
name: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* The email address of the customer.
|
|
92
|
-
*
|
|
93
|
-
* @remarks
|
|
94
|
-
*
|
|
95
|
-
* If the domain contains non-ASCII characters, encode it as Punycode per [RFC 3492](https://www.rfc-editor.org/rfc/rfc3492).
|
|
96
|
-
*/
|
|
97
|
-
email: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the language for customer-facing content and communications.
|
|
100
|
-
*/
|
|
101
|
-
locale: models.LocaleResponse | null;
|
|
102
|
-
/**
|
|
103
|
-
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
107
|
-
*/
|
|
108
|
-
metadata: models.Metadata | null;
|
|
109
|
-
/**
|
|
110
|
-
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
111
|
-
*/
|
|
112
|
-
createdAt: string;
|
|
113
|
-
/**
|
|
114
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
115
|
-
*/
|
|
116
|
-
links: GetCustomerLinks;
|
|
117
|
-
events?: Array<models.EntityEvent> | undefined;
|
|
118
|
-
};
|
|
119
34
|
/** @internal */
|
|
120
35
|
export type GetCustomerRequest$Outbound = {
|
|
121
36
|
customerId: string;
|
|
122
|
-
include?: string | null | undefined;
|
|
123
37
|
testmode?: boolean | undefined;
|
|
124
38
|
"idempotency-key"?: string | undefined;
|
|
125
39
|
};
|
|
126
40
|
/** @internal */
|
|
127
41
|
export declare const GetCustomerRequest$outboundSchema: z.ZodType<GetCustomerRequest$Outbound, z.ZodTypeDef, GetCustomerRequest>;
|
|
128
42
|
export declare function getCustomerRequestToJSON(getCustomerRequest: GetCustomerRequest): string;
|
|
129
|
-
/** @internal */
|
|
130
|
-
export declare const GetCustomerLinks$inboundSchema: z.ZodType<GetCustomerLinks, z.ZodTypeDef, unknown>;
|
|
131
|
-
export declare function getCustomerLinksFromJSON(jsonString: string): SafeParseResult<GetCustomerLinks, SDKValidationError>;
|
|
132
|
-
/** @internal */
|
|
133
|
-
export declare const GetCustomerResponse$inboundSchema: z.ZodType<GetCustomerResponse, z.ZodTypeDef, unknown>;
|
|
134
|
-
export declare function getCustomerResponseFromJSON(jsonString: string): SafeParseResult<GetCustomerResponse, SDKValidationError>;
|
|
135
43
|
//# sourceMappingURL=getcustomer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getcustomer.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getcustomer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,
|
|
1
|
+
{"version":3,"file":"getcustomer.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getcustomer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CASlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -4,12 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import * as models from "../index.js";
|
|
9
7
|
/** @internal */
|
|
10
8
|
export const GetCustomerRequest$outboundSchema = z.object({
|
|
11
9
|
customerId: z.string(),
|
|
12
|
-
include: z.nullable(z.string()).optional(),
|
|
13
10
|
testmode: z.boolean().optional(),
|
|
14
11
|
idempotencyKey: z.string().optional(),
|
|
15
12
|
}).transform((v) => {
|
|
@@ -20,36 +17,4 @@ export const GetCustomerRequest$outboundSchema = z.object({
|
|
|
20
17
|
export function getCustomerRequestToJSON(getCustomerRequest) {
|
|
21
18
|
return JSON.stringify(GetCustomerRequest$outboundSchema.parse(getCustomerRequest));
|
|
22
19
|
}
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const GetCustomerLinks$inboundSchema = z.object({
|
|
25
|
-
self: models.Url$inboundSchema,
|
|
26
|
-
dashboard: models.Url$inboundSchema,
|
|
27
|
-
payments: z.nullable(models.UrlNullable$inboundSchema).optional(),
|
|
28
|
-
mandates: z.nullable(models.UrlNullable$inboundSchema).optional(),
|
|
29
|
-
subscriptions: z.nullable(models.UrlNullable$inboundSchema).optional(),
|
|
30
|
-
documentation: models.Url$inboundSchema,
|
|
31
|
-
});
|
|
32
|
-
export function getCustomerLinksFromJSON(jsonString) {
|
|
33
|
-
return safeParse(jsonString, (x) => GetCustomerLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCustomerLinks' from JSON`);
|
|
34
|
-
}
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const GetCustomerResponse$inboundSchema = z.object({
|
|
37
|
-
resource: z.string(),
|
|
38
|
-
id: z.string(),
|
|
39
|
-
mode: models.Mode$inboundSchema,
|
|
40
|
-
name: z.nullable(z.string()),
|
|
41
|
-
email: z.nullable(z.string()),
|
|
42
|
-
locale: z.nullable(models.LocaleResponse$inboundSchema),
|
|
43
|
-
metadata: z.nullable(models.Metadata$inboundSchema),
|
|
44
|
-
createdAt: z.string(),
|
|
45
|
-
_links: z.lazy(() => GetCustomerLinks$inboundSchema),
|
|
46
|
-
events: z.array(models.EntityEvent$inboundSchema).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
"_links": "links",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
export function getCustomerResponseFromJSON(jsonString) {
|
|
53
|
-
return safeParse(jsonString, (x) => GetCustomerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCustomerResponse' from JSON`);
|
|
54
|
-
}
|
|
55
20
|
//# sourceMappingURL=getcustomer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getcustomer.js","sourceRoot":"","sources":["../../../../src/models/operations/getcustomer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"getcustomer.js","sourceRoot":"","sources":["../../../../src/models/operations/getcustomer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AA2C1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -30,7 +30,7 @@ export declare class Customers extends ClientSDK {
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Retrieve a single customer by its ID.
|
|
32
32
|
*/
|
|
33
|
-
get(request: operations.GetCustomerRequest, options?: RequestOptions): Promise<
|
|
33
|
+
get(request: operations.GetCustomerRequest, options?: RequestOptions): Promise<models.CustomerResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Update customer
|
|
36
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/sdk/customers.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAQnC;;;;;;;OAOG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,qBAAqB,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQ3E;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/sdk/customers.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAQnC;;;;;;;OAOG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,qBAAqB,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQ3E;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAQnC;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAQnC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;;;;;;;;;;OAeG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;IAQlC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,4BAA4B,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CACvE;CAOF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
import * as errors from "../models/errors/index.js";
|
|
24
24
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
25
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as models from "../models/index.js";
|
|
26
27
|
import * as operations from "../models/operations/index.js";
|
|
27
28
|
import { APICall, APIPromise } from "../types/async.js";
|
|
28
29
|
import { Result } from "../types/fp.js";
|
|
@@ -41,7 +42,7 @@ export function customersGet(
|
|
|
41
42
|
options?: RequestOptions,
|
|
42
43
|
): APIPromise<
|
|
43
44
|
Result<
|
|
44
|
-
|
|
45
|
+
models.CustomerResponse,
|
|
45
46
|
| errors.ErrorResponse
|
|
46
47
|
| ClientError
|
|
47
48
|
| ResponseValidationError
|
|
@@ -67,7 +68,7 @@ async function $do(
|
|
|
67
68
|
): Promise<
|
|
68
69
|
[
|
|
69
70
|
Result<
|
|
70
|
-
|
|
71
|
+
models.CustomerResponse,
|
|
71
72
|
| errors.ErrorResponse
|
|
72
73
|
| ClientError
|
|
73
74
|
| ResponseValidationError
|
|
@@ -101,7 +102,6 @@ async function $do(
|
|
|
101
102
|
const path = pathToFunc("/v2/customers/{customerId}")(pathParams);
|
|
102
103
|
|
|
103
104
|
const query = encodeFormQuery({
|
|
104
|
-
"include": payload.include,
|
|
105
105
|
"testmode": payload.testmode ?? client._options.testmode,
|
|
106
106
|
});
|
|
107
107
|
|
|
@@ -175,7 +175,7 @@ async function $do(
|
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
const [result] = await M.match<
|
|
178
|
-
|
|
178
|
+
models.CustomerResponse,
|
|
179
179
|
| errors.ErrorResponse
|
|
180
180
|
| ClientError
|
|
181
181
|
| ResponseValidationError
|
|
@@ -186,7 +186,7 @@ async function $do(
|
|
|
186
186
|
| UnexpectedClientError
|
|
187
187
|
| SDKValidationError
|
|
188
188
|
>(
|
|
189
|
-
M.json(200,
|
|
189
|
+
M.json(200, models.CustomerResponse$inboundSchema, {
|
|
190
190
|
ctype: "application/hal+json",
|
|
191
191
|
}),
|
|
192
192
|
M.jsonErr([404, 429], errors.ErrorResponse$inboundSchema, {
|
package/src/lib/config.ts
CHANGED
|
@@ -78,8 +78,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
78
78
|
export const SDK_METADATA = {
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "1.0.0",
|
|
81
|
-
sdkVersion: "1.12.
|
|
82
|
-
genVersion: "2.
|
|
81
|
+
sdkVersion: "1.12.9",
|
|
82
|
+
genVersion: "2.913.3",
|
|
83
83
|
userAgent:
|
|
84
|
-
"speakeasy-sdk/typescript 1.12.
|
|
84
|
+
"speakeasy-sdk/typescript 1.12.9 2.913.3 1.0.0 mollie-api-typescript",
|
|
85
85
|
} as const;
|
package/src/models/index.ts
CHANGED
|
@@ -56,7 +56,6 @@ export * from "./entitycapabilityrequirement.js";
|
|
|
56
56
|
export * from "./entitycapture.js";
|
|
57
57
|
export * from "./entitychargeback.js";
|
|
58
58
|
export * from "./entitycustomer.js";
|
|
59
|
-
export * from "./entityevent.js";
|
|
60
59
|
export * from "./entityinvoice.js";
|
|
61
60
|
export * from "./entitymethodget.js";
|
|
62
61
|
export * from "./entityonboardingstatus.js";
|
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v3";
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import * as models from "../index.js";
|
|
12
8
|
|
|
13
9
|
export type GetCustomerGlobals = {
|
|
14
10
|
/**
|
|
@@ -28,10 +24,6 @@ export type GetCustomerRequest = {
|
|
|
28
24
|
* Provide the ID of the related customer.
|
|
29
25
|
*/
|
|
30
26
|
customerId: string;
|
|
31
|
-
/**
|
|
32
|
-
* This endpoint allows you to include additional information via the `include` query string parameter.
|
|
33
|
-
*/
|
|
34
|
-
include?: string | null | undefined;
|
|
35
27
|
/**
|
|
36
28
|
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
37
29
|
*
|
|
@@ -48,90 +40,9 @@ export type GetCustomerRequest = {
|
|
|
48
40
|
idempotencyKey?: string | undefined;
|
|
49
41
|
};
|
|
50
42
|
|
|
51
|
-
/**
|
|
52
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
53
|
-
*/
|
|
54
|
-
export type GetCustomerLinks = {
|
|
55
|
-
/**
|
|
56
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
57
|
-
*/
|
|
58
|
-
self: models.Url;
|
|
59
|
-
/**
|
|
60
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
61
|
-
*/
|
|
62
|
-
dashboard: models.Url;
|
|
63
|
-
/**
|
|
64
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
65
|
-
*/
|
|
66
|
-
payments?: models.UrlNullable | null | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
69
|
-
*/
|
|
70
|
-
mandates?: models.UrlNullable | null | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
73
|
-
*/
|
|
74
|
-
subscriptions?: models.UrlNullable | null | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
77
|
-
*/
|
|
78
|
-
documentation: models.Url;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The customer object.
|
|
83
|
-
*/
|
|
84
|
-
export type GetCustomerResponse = {
|
|
85
|
-
/**
|
|
86
|
-
* Indicates the response contains a customer object. Will always contain the string `customer` for this endpoint.
|
|
87
|
-
*/
|
|
88
|
-
resource: string;
|
|
89
|
-
/**
|
|
90
|
-
* The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
|
|
91
|
-
*/
|
|
92
|
-
id: string;
|
|
93
|
-
/**
|
|
94
|
-
* Whether this entity was created in live mode or in test mode.
|
|
95
|
-
*/
|
|
96
|
-
mode: models.Mode;
|
|
97
|
-
/**
|
|
98
|
-
* The full name of the customer.
|
|
99
|
-
*/
|
|
100
|
-
name: string | null;
|
|
101
|
-
/**
|
|
102
|
-
* The email address of the customer.
|
|
103
|
-
*
|
|
104
|
-
* @remarks
|
|
105
|
-
*
|
|
106
|
-
* If the domain contains non-ASCII characters, encode it as Punycode per [RFC 3492](https://www.rfc-editor.org/rfc/rfc3492).
|
|
107
|
-
*/
|
|
108
|
-
email: string | null;
|
|
109
|
-
/**
|
|
110
|
-
* Sets the language for customer-facing content and communications.
|
|
111
|
-
*/
|
|
112
|
-
locale: models.LocaleResponse | null;
|
|
113
|
-
/**
|
|
114
|
-
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
115
|
-
*
|
|
116
|
-
* @remarks
|
|
117
|
-
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
118
|
-
*/
|
|
119
|
-
metadata: models.Metadata | null;
|
|
120
|
-
/**
|
|
121
|
-
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
122
|
-
*/
|
|
123
|
-
createdAt: string;
|
|
124
|
-
/**
|
|
125
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
126
|
-
*/
|
|
127
|
-
links: GetCustomerLinks;
|
|
128
|
-
events?: Array<models.EntityEvent> | undefined;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
43
|
/** @internal */
|
|
132
44
|
export type GetCustomerRequest$Outbound = {
|
|
133
45
|
customerId: string;
|
|
134
|
-
include?: string | null | undefined;
|
|
135
46
|
testmode?: boolean | undefined;
|
|
136
47
|
"idempotency-key"?: string | undefined;
|
|
137
48
|
};
|
|
@@ -143,7 +54,6 @@ export const GetCustomerRequest$outboundSchema: z.ZodType<
|
|
|
143
54
|
GetCustomerRequest
|
|
144
55
|
> = z.object({
|
|
145
56
|
customerId: z.string(),
|
|
146
|
-
include: z.nullable(z.string()).optional(),
|
|
147
57
|
testmode: z.boolean().optional(),
|
|
148
58
|
idempotencyKey: z.string().optional(),
|
|
149
59
|
}).transform((v) => {
|
|
@@ -159,59 +69,3 @@ export function getCustomerRequestToJSON(
|
|
|
159
69
|
GetCustomerRequest$outboundSchema.parse(getCustomerRequest),
|
|
160
70
|
);
|
|
161
71
|
}
|
|
162
|
-
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const GetCustomerLinks$inboundSchema: z.ZodType<
|
|
165
|
-
GetCustomerLinks,
|
|
166
|
-
z.ZodTypeDef,
|
|
167
|
-
unknown
|
|
168
|
-
> = z.object({
|
|
169
|
-
self: models.Url$inboundSchema,
|
|
170
|
-
dashboard: models.Url$inboundSchema,
|
|
171
|
-
payments: z.nullable(models.UrlNullable$inboundSchema).optional(),
|
|
172
|
-
mandates: z.nullable(models.UrlNullable$inboundSchema).optional(),
|
|
173
|
-
subscriptions: z.nullable(models.UrlNullable$inboundSchema).optional(),
|
|
174
|
-
documentation: models.Url$inboundSchema,
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
export function getCustomerLinksFromJSON(
|
|
178
|
-
jsonString: string,
|
|
179
|
-
): SafeParseResult<GetCustomerLinks, SDKValidationError> {
|
|
180
|
-
return safeParse(
|
|
181
|
-
jsonString,
|
|
182
|
-
(x) => GetCustomerLinks$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
-
`Failed to parse 'GetCustomerLinks' from JSON`,
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
export const GetCustomerResponse$inboundSchema: z.ZodType<
|
|
189
|
-
GetCustomerResponse,
|
|
190
|
-
z.ZodTypeDef,
|
|
191
|
-
unknown
|
|
192
|
-
> = z.object({
|
|
193
|
-
resource: z.string(),
|
|
194
|
-
id: z.string(),
|
|
195
|
-
mode: models.Mode$inboundSchema,
|
|
196
|
-
name: z.nullable(z.string()),
|
|
197
|
-
email: z.nullable(z.string()),
|
|
198
|
-
locale: z.nullable(models.LocaleResponse$inboundSchema),
|
|
199
|
-
metadata: z.nullable(models.Metadata$inboundSchema),
|
|
200
|
-
createdAt: z.string(),
|
|
201
|
-
_links: z.lazy(() => GetCustomerLinks$inboundSchema),
|
|
202
|
-
events: z.array(models.EntityEvent$inboundSchema).optional(),
|
|
203
|
-
}).transform((v) => {
|
|
204
|
-
return remap$(v, {
|
|
205
|
-
"_links": "links",
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
export function getCustomerResponseFromJSON(
|
|
210
|
-
jsonString: string,
|
|
211
|
-
): SafeParseResult<GetCustomerResponse, SDKValidationError> {
|
|
212
|
-
return safeParse(
|
|
213
|
-
jsonString,
|
|
214
|
-
(x) => GetCustomerResponse$inboundSchema.parse(JSON.parse(x)),
|
|
215
|
-
`Failed to parse 'GetCustomerResponse' from JSON`,
|
|
216
|
-
);
|
|
217
|
-
}
|
package/src/sdk/customers.ts
CHANGED
|
@@ -65,7 +65,7 @@ export class Customers extends ClientSDK {
|
|
|
65
65
|
async get(
|
|
66
66
|
request: operations.GetCustomerRequest,
|
|
67
67
|
options?: RequestOptions,
|
|
68
|
-
): Promise<
|
|
68
|
+
): Promise<models.CustomerResponse> {
|
|
69
69
|
return unwrapAsync(customersGet(
|
|
70
70
|
this,
|
|
71
71
|
request,
|
|
@@ -1,33 +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 { Url } from "./url.js";
|
|
5
|
-
/**
|
|
6
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
7
|
-
*/
|
|
8
|
-
export type EntityEventLinks = {
|
|
9
|
-
/**
|
|
10
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
11
|
-
*/
|
|
12
|
-
url?: Url | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type EntityEvent = {
|
|
15
|
-
resource: string;
|
|
16
|
-
type: number;
|
|
17
|
-
/**
|
|
18
|
-
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
19
|
-
*/
|
|
20
|
-
createdAt: string;
|
|
21
|
-
message: string;
|
|
22
|
-
/**
|
|
23
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
24
|
-
*/
|
|
25
|
-
links?: EntityEventLinks | undefined;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const EntityEventLinks$inboundSchema: z.ZodType<EntityEventLinks, z.ZodTypeDef, unknown>;
|
|
29
|
-
export declare function entityEventLinksFromJSON(jsonString: string): SafeParseResult<EntityEventLinks, SDKValidationError>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
export declare const EntityEvent$inboundSchema: z.ZodType<EntityEvent, z.ZodTypeDef, unknown>;
|
|
32
|
-
export declare function entityEventFromJSON(jsonString: string): SafeParseResult<EntityEvent, SDKValidationError>;
|
|
33
|
-
//# sourceMappingURL=entityevent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entityevent.d.ts","sourceRoot":"","sources":["../../../src/models/entityevent.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,GAAG,EAAqB,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
* @generated-id: 1488b1d1442d
|
|
5
|
-
*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
-
var ownKeys = function(o) {
|
|
24
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
-
var ar = [];
|
|
26
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
return ownKeys(o);
|
|
30
|
-
};
|
|
31
|
-
return function (mod) {
|
|
32
|
-
if (mod && mod.__esModule) return mod;
|
|
33
|
-
var result = {};
|
|
34
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
-
__setModuleDefault(result, mod);
|
|
36
|
-
return result;
|
|
37
|
-
};
|
|
38
|
-
})();
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.EntityEvent$inboundSchema = exports.EntityEventLinks$inboundSchema = void 0;
|
|
41
|
-
exports.entityEventLinksFromJSON = entityEventLinksFromJSON;
|
|
42
|
-
exports.entityEventFromJSON = entityEventFromJSON;
|
|
43
|
-
const z = __importStar(require("zod/v3"));
|
|
44
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
-
const url_js_1 = require("./url.js");
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.EntityEventLinks$inboundSchema = z.object({
|
|
49
|
-
url: url_js_1.Url$inboundSchema.optional(),
|
|
50
|
-
});
|
|
51
|
-
function entityEventLinksFromJSON(jsonString) {
|
|
52
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntityEventLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntityEventLinks' from JSON`);
|
|
53
|
-
}
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.EntityEvent$inboundSchema = z.object({
|
|
56
|
-
resource: z.string(),
|
|
57
|
-
type: z.number().int(),
|
|
58
|
-
createdAt: z.string(),
|
|
59
|
-
message: z.string(),
|
|
60
|
-
_links: z.lazy(() => exports.EntityEventLinks$inboundSchema).optional(),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return (0, primitives_js_1.remap)(v, {
|
|
63
|
-
"_links": "links",
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
function entityEventFromJSON(jsonString) {
|
|
67
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntityEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntityEvent' from JSON`);
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=entityevent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entityevent.js","sourceRoot":"","sources":["../../../src/models/entityevent.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,4DAQC;AAmBD,kDAQC;AA3ED,0CAA4B;AAC5B,wDAAuD;AACvD,kDAA8C;AAG9C,qCAAkD;AA0BlD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,0BAAiB,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAA8B,CAAC,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -1,33 +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 { Url } from "./url.js";
|
|
5
|
-
/**
|
|
6
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
7
|
-
*/
|
|
8
|
-
export type EntityEventLinks = {
|
|
9
|
-
/**
|
|
10
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
11
|
-
*/
|
|
12
|
-
url?: Url | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type EntityEvent = {
|
|
15
|
-
resource: string;
|
|
16
|
-
type: number;
|
|
17
|
-
/**
|
|
18
|
-
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
19
|
-
*/
|
|
20
|
-
createdAt: string;
|
|
21
|
-
message: string;
|
|
22
|
-
/**
|
|
23
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
24
|
-
*/
|
|
25
|
-
links?: EntityEventLinks | undefined;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const EntityEventLinks$inboundSchema: z.ZodType<EntityEventLinks, z.ZodTypeDef, unknown>;
|
|
29
|
-
export declare function entityEventLinksFromJSON(jsonString: string): SafeParseResult<EntityEventLinks, SDKValidationError>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
export declare const EntityEvent$inboundSchema: z.ZodType<EntityEvent, z.ZodTypeDef, unknown>;
|
|
32
|
-
export declare function entityEventFromJSON(jsonString: string): SafeParseResult<EntityEvent, SDKValidationError>;
|
|
33
|
-
//# sourceMappingURL=entityevent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entityevent.d.ts","sourceRoot":"","sources":["../../../src/models/entityevent.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,GAAG,EAAqB,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|