mollie-api-typescript 1.12.8 → 1.12.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/commonjs/funcs/customersGet.d.ts +2 -1
  2. package/dist/commonjs/funcs/customersGet.d.ts.map +1 -1
  3. package/dist/commonjs/funcs/customersGet.js +2 -2
  4. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/lib/config.js.map +1 -1
  8. package/dist/commonjs/models/entitywebhookevent.d.ts +8 -2
  9. package/dist/commonjs/models/entitywebhookevent.d.ts.map +1 -1
  10. package/dist/commonjs/models/entitywebhookevent.js +10 -0
  11. package/dist/commonjs/models/entitywebhookevent.js.map +1 -1
  12. package/dist/commonjs/models/index.d.ts +0 -1
  13. package/dist/commonjs/models/index.d.ts.map +1 -1
  14. package/dist/commonjs/models/index.js +0 -1
  15. package/dist/commonjs/models/index.js.map +1 -1
  16. package/dist/commonjs/models/operations/getcustomer.d.ts +0 -92
  17. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  18. package/dist/commonjs/models/operations/getcustomer.js +1 -38
  19. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  20. package/dist/commonjs/models/webhookeventtypes.d.ts +4 -0
  21. package/dist/commonjs/models/webhookeventtypes.d.ts.map +1 -1
  22. package/dist/commonjs/models/webhookeventtypes.js +4 -0
  23. package/dist/commonjs/models/webhookeventtypes.js.map +1 -1
  24. package/dist/commonjs/sdk/customers.d.ts +1 -1
  25. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  26. package/dist/esm/funcs/customersGet.d.ts +2 -1
  27. package/dist/esm/funcs/customersGet.d.ts.map +1 -1
  28. package/dist/esm/funcs/customersGet.js +2 -2
  29. package/dist/esm/funcs/customersGet.js.map +1 -1
  30. package/dist/esm/lib/config.d.ts +3 -3
  31. package/dist/esm/lib/config.js +3 -3
  32. package/dist/esm/lib/config.js.map +1 -1
  33. package/dist/esm/models/entitywebhookevent.d.ts +8 -2
  34. package/dist/esm/models/entitywebhookevent.d.ts.map +1 -1
  35. package/dist/esm/models/entitywebhookevent.js +10 -0
  36. package/dist/esm/models/entitywebhookevent.js.map +1 -1
  37. package/dist/esm/models/index.d.ts +0 -1
  38. package/dist/esm/models/index.d.ts.map +1 -1
  39. package/dist/esm/models/index.js +0 -1
  40. package/dist/esm/models/index.js.map +1 -1
  41. package/dist/esm/models/operations/getcustomer.d.ts +0 -92
  42. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  43. package/dist/esm/models/operations/getcustomer.js +0 -35
  44. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  45. package/dist/esm/models/webhookeventtypes.d.ts +4 -0
  46. package/dist/esm/models/webhookeventtypes.d.ts.map +1 -1
  47. package/dist/esm/models/webhookeventtypes.js +4 -0
  48. package/dist/esm/models/webhookeventtypes.js.map +1 -1
  49. package/dist/esm/sdk/customers.d.ts +1 -1
  50. package/dist/esm/sdk/customers.d.ts.map +1 -1
  51. package/jsr.json +1 -1
  52. package/package.json +1 -1
  53. package/src/funcs/customersGet.ts +5 -5
  54. package/src/lib/config.ts +3 -3
  55. package/src/models/entitywebhookevent.ts +20 -0
  56. package/src/models/index.ts +0 -1
  57. package/src/models/operations/getcustomer.ts +0 -146
  58. package/src/models/webhookeventtypes.ts +4 -0
  59. package/src/sdk/customers.ts +1 -1
  60. package/dist/commonjs/models/entityevent.d.ts +0 -33
  61. package/dist/commonjs/models/entityevent.d.ts.map +0 -1
  62. package/dist/commonjs/models/entityevent.js +0 -69
  63. package/dist/commonjs/models/entityevent.js.map +0 -1
  64. package/dist/esm/models/entityevent.d.ts +0 -33
  65. package/dist/esm/models/entityevent.d.ts.map +0 -1
  66. package/dist/esm/models/entityevent.js +0 -31
  67. package/dist/esm/models/entityevent.js.map +0 -1
  68. package/src/models/entityevent.ts +0 -81
@@ -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
- }
@@ -25,6 +25,10 @@ export const WebhookEventTypes = {
25
25
  RefundRefunded: "refund.refunded",
26
26
  RefundFailed: "refund.failed",
27
27
  RefundCanceled: "refund.canceled",
28
+ ChargebackReceived: "chargeback.received",
29
+ ChargebackReversed: "chargeback.reversed",
30
+ CaptureSucceeded: "capture.succeeded",
31
+ CaptureFailed: "capture.failed",
28
32
  PaymentLinkPaid: "payment-link.paid",
29
33
  BalanceTransactionCreated: "balance-transaction.created",
30
34
  PayoutInitiated: "payout.initiated",
@@ -65,7 +65,7 @@ export class Customers extends ClientSDK {
65
65
  async get(
66
66
  request: operations.GetCustomerRequest,
67
67
  options?: RequestOptions,
68
- ): Promise<operations.GetCustomerResponse> {
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"}
@@ -1,31 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 1488b1d1442d
4
- */
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../lib/primitives.js";
7
- import { safeParse } from "../lib/schemas.js";
8
- import { Url$inboundSchema } from "./url.js";
9
- /** @internal */
10
- export const EntityEventLinks$inboundSchema = z.object({
11
- url: Url$inboundSchema.optional(),
12
- });
13
- export function entityEventLinksFromJSON(jsonString) {
14
- return safeParse(jsonString, (x) => EntityEventLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntityEventLinks' from JSON`);
15
- }
16
- /** @internal */
17
- export const EntityEvent$inboundSchema = z.object({
18
- resource: z.string(),
19
- type: z.number().int(),
20
- createdAt: z.string(),
21
- message: z.string(),
22
- _links: z.lazy(() => EntityEventLinks$inboundSchema).optional(),
23
- }).transform((v) => {
24
- return remap$(v, {
25
- "_links": "links",
26
- });
27
- });
28
- export function entityEventFromJSON(jsonString) {
29
- return safeParse(jsonString, (x) => EntityEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntityEvent' from JSON`);
30
- }
31
- //# sourceMappingURL=entityevent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entityevent.js","sourceRoot":"","sources":["../../../src/models/entityevent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAAO,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA0BlD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,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,8BAA8B,CAAC,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
@@ -1,81 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 1488b1d1442d
4
- */
5
-
6
- import * as z from "zod/v3";
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 { Url, Url$inboundSchema } from "./url.js";
12
-
13
- /**
14
- * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
15
- */
16
- export type EntityEventLinks = {
17
- /**
18
- * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
19
- */
20
- url?: Url | undefined;
21
- };
22
-
23
- export type EntityEvent = {
24
- resource: string;
25
- type: number;
26
- /**
27
- * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
28
- */
29
- createdAt: string;
30
- message: string;
31
- /**
32
- * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
33
- */
34
- links?: EntityEventLinks | undefined;
35
- };
36
-
37
- /** @internal */
38
- export const EntityEventLinks$inboundSchema: z.ZodType<
39
- EntityEventLinks,
40
- z.ZodTypeDef,
41
- unknown
42
- > = z.object({
43
- url: Url$inboundSchema.optional(),
44
- });
45
-
46
- export function entityEventLinksFromJSON(
47
- jsonString: string,
48
- ): SafeParseResult<EntityEventLinks, SDKValidationError> {
49
- return safeParse(
50
- jsonString,
51
- (x) => EntityEventLinks$inboundSchema.parse(JSON.parse(x)),
52
- `Failed to parse 'EntityEventLinks' from JSON`,
53
- );
54
- }
55
-
56
- /** @internal */
57
- export const EntityEvent$inboundSchema: z.ZodType<
58
- EntityEvent,
59
- z.ZodTypeDef,
60
- unknown
61
- > = z.object({
62
- resource: z.string(),
63
- type: z.number().int(),
64
- createdAt: z.string(),
65
- message: z.string(),
66
- _links: z.lazy(() => EntityEventLinks$inboundSchema).optional(),
67
- }).transform((v) => {
68
- return remap$(v, {
69
- "_links": "links",
70
- });
71
- });
72
-
73
- export function entityEventFromJSON(
74
- jsonString: string,
75
- ): SafeParseResult<EntityEvent, SDKValidationError> {
76
- return safeParse(
77
- jsonString,
78
- (x) => EntityEvent$inboundSchema.parse(JSON.parse(x)),
79
- `Failed to parse 'EntityEvent' from JSON`,
80
- );
81
- }