mollie-api-typescript 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/mcp-server.js +104 -31
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/entitysettlement.d.ts +206 -16
- package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/entitysettlement.js +159 -17
- package/dist/commonjs/models/entitysettlement.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlements.d.ts +8 -8
- package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlements.js +8 -8
- package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/entitysettlement.d.ts +206 -16
- package/dist/esm/models/entitysettlement.d.ts.map +1 -1
- package/dist/esm/models/entitysettlement.js +150 -16
- package/dist/esm/models/entitysettlement.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/listsettlements.d.ts +8 -8
- package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlements.js +8 -8
- package/dist/esm/models/operations/listsettlements.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/entitysettlement.ts +355 -32
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/listsettlements.ts +16 -16
package/README.md
CHANGED
|
@@ -812,7 +812,7 @@ httpClient.addHook("requestError", (error, request) => {
|
|
|
812
812
|
console.groupEnd();
|
|
813
813
|
});
|
|
814
814
|
|
|
815
|
-
const sdk = new Client({ httpClient });
|
|
815
|
+
const sdk = new Client({ httpClient: httpClient });
|
|
816
816
|
```
|
|
817
817
|
<!-- End Custom HTTP Client [http-client] -->
|
|
818
818
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -34295,9 +34295,9 @@ var init_config = __esm(() => {
|
|
|
34295
34295
|
SDK_METADATA = {
|
|
34296
34296
|
language: "typescript",
|
|
34297
34297
|
openapiDocVersion: "1.0.0",
|
|
34298
|
-
sdkVersion: "0.2.
|
|
34299
|
-
genVersion: "2.
|
|
34300
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
34298
|
+
sdkVersion: "0.2.6",
|
|
34299
|
+
genVersion: "2.709.0",
|
|
34300
|
+
userAgent: "speakeasy-sdk/typescript 0.2.6 2.709.0 1.0.0 mollie-api-typescript"
|
|
34301
34301
|
};
|
|
34302
34302
|
});
|
|
34303
34303
|
|
|
@@ -40333,16 +40333,88 @@ var init_settlementstatus = __esm(() => {
|
|
|
40333
40333
|
});
|
|
40334
40334
|
|
|
40335
40335
|
// src/models/entitysettlement.ts
|
|
40336
|
-
var EntitySettlementLinks$inboundSchema, EntitySettlementLinks$outboundSchema, EntitySettlementLinks$, EntitySettlement$inboundSchema, EntitySettlement$outboundSchema, EntitySettlement$;
|
|
40336
|
+
var Rate$inboundSchema, Rate$outboundSchema, Rate$, Cost$inboundSchema, Cost$outboundSchema, Cost$, Revenue$inboundSchema, Revenue$outboundSchema, Revenue$, Periods$inboundSchema, Periods$outboundSchema, Periods$, EntitySettlementLinks$inboundSchema, EntitySettlementLinks$outboundSchema, EntitySettlementLinks$, EntitySettlement$inboundSchema, EntitySettlement$outboundSchema, EntitySettlement$;
|
|
40337
40337
|
var init_entitysettlement = __esm(() => {
|
|
40338
40338
|
init_esm();
|
|
40339
40339
|
init_primitives();
|
|
40340
40340
|
init_amount();
|
|
40341
|
+
init_amountnullable();
|
|
40342
|
+
init_paymentmethod();
|
|
40341
40343
|
init_settlementstatus();
|
|
40342
40344
|
init_url2();
|
|
40343
40345
|
init_urlnullable();
|
|
40346
|
+
Rate$inboundSchema = objectType({
|
|
40347
|
+
fixed: Amount$inboundSchema.optional(),
|
|
40348
|
+
percentage: stringType().optional()
|
|
40349
|
+
});
|
|
40350
|
+
Rate$outboundSchema = objectType({
|
|
40351
|
+
fixed: Amount$outboundSchema.optional(),
|
|
40352
|
+
percentage: stringType().optional()
|
|
40353
|
+
});
|
|
40354
|
+
((Rate$) => {
|
|
40355
|
+
Rate$.inboundSchema = Rate$inboundSchema;
|
|
40356
|
+
Rate$.outboundSchema = Rate$outboundSchema;
|
|
40357
|
+
})(Rate$ ||= {});
|
|
40358
|
+
Cost$inboundSchema = objectType({
|
|
40359
|
+
description: stringType(),
|
|
40360
|
+
method: nullableType(PaymentMethod$inboundSchema),
|
|
40361
|
+
count: numberType().int(),
|
|
40362
|
+
rate: lazyType(() => Rate$inboundSchema),
|
|
40363
|
+
amountNet: Amount$inboundSchema,
|
|
40364
|
+
amountVat: Amount$inboundSchema,
|
|
40365
|
+
amountGross: Amount$inboundSchema
|
|
40366
|
+
});
|
|
40367
|
+
Cost$outboundSchema = objectType({
|
|
40368
|
+
description: stringType(),
|
|
40369
|
+
method: nullableType(PaymentMethod$outboundSchema),
|
|
40370
|
+
count: numberType().int(),
|
|
40371
|
+
rate: lazyType(() => Rate$outboundSchema),
|
|
40372
|
+
amountNet: Amount$outboundSchema,
|
|
40373
|
+
amountVat: Amount$outboundSchema,
|
|
40374
|
+
amountGross: Amount$outboundSchema
|
|
40375
|
+
});
|
|
40376
|
+
((Cost$) => {
|
|
40377
|
+
Cost$.inboundSchema = Cost$inboundSchema;
|
|
40378
|
+
Cost$.outboundSchema = Cost$outboundSchema;
|
|
40379
|
+
})(Cost$ ||= {});
|
|
40380
|
+
Revenue$inboundSchema = objectType({
|
|
40381
|
+
description: stringType(),
|
|
40382
|
+
method: nullableType(PaymentMethod$inboundSchema),
|
|
40383
|
+
count: numberType().int(),
|
|
40384
|
+
amountNet: Amount$inboundSchema,
|
|
40385
|
+
amountVat: nullableType(AmountNullable$inboundSchema),
|
|
40386
|
+
amountGross: Amount$inboundSchema
|
|
40387
|
+
});
|
|
40388
|
+
Revenue$outboundSchema = objectType({
|
|
40389
|
+
description: stringType(),
|
|
40390
|
+
method: nullableType(PaymentMethod$outboundSchema),
|
|
40391
|
+
count: numberType().int(),
|
|
40392
|
+
amountNet: Amount$outboundSchema,
|
|
40393
|
+
amountVat: nullableType(AmountNullable$outboundSchema),
|
|
40394
|
+
amountGross: Amount$outboundSchema
|
|
40395
|
+
});
|
|
40396
|
+
((Revenue$) => {
|
|
40397
|
+
Revenue$.inboundSchema = Revenue$inboundSchema;
|
|
40398
|
+
Revenue$.outboundSchema = Revenue$outboundSchema;
|
|
40399
|
+
})(Revenue$ ||= {});
|
|
40400
|
+
Periods$inboundSchema = objectType({
|
|
40401
|
+
costs: arrayType(lazyType(() => Cost$inboundSchema)).optional(),
|
|
40402
|
+
revenue: arrayType(lazyType(() => Revenue$inboundSchema)).optional(),
|
|
40403
|
+
invoiceId: stringType().optional(),
|
|
40404
|
+
invoiceReference: nullableType(stringType()).optional()
|
|
40405
|
+
});
|
|
40406
|
+
Periods$outboundSchema = objectType({
|
|
40407
|
+
costs: arrayType(lazyType(() => Cost$outboundSchema)).optional(),
|
|
40408
|
+
revenue: arrayType(lazyType(() => Revenue$outboundSchema)).optional(),
|
|
40409
|
+
invoiceId: stringType().optional(),
|
|
40410
|
+
invoiceReference: nullableType(stringType()).optional()
|
|
40411
|
+
});
|
|
40412
|
+
((Periods$) => {
|
|
40413
|
+
Periods$.inboundSchema = Periods$inboundSchema;
|
|
40414
|
+
Periods$.outboundSchema = Periods$outboundSchema;
|
|
40415
|
+
})(Periods$ ||= {});
|
|
40344
40416
|
EntitySettlementLinks$inboundSchema = objectType({
|
|
40345
|
-
self: Url$inboundSchema
|
|
40417
|
+
self: Url$inboundSchema,
|
|
40346
40418
|
payments: Url$inboundSchema.optional(),
|
|
40347
40419
|
captures: Url$inboundSchema.optional(),
|
|
40348
40420
|
refunds: Url$inboundSchema.optional(),
|
|
@@ -40351,7 +40423,7 @@ var init_entitysettlement = __esm(() => {
|
|
|
40351
40423
|
documentation: Url$inboundSchema.optional()
|
|
40352
40424
|
});
|
|
40353
40425
|
EntitySettlementLinks$outboundSchema = objectType({
|
|
40354
|
-
self: Url$outboundSchema
|
|
40426
|
+
self: Url$outboundSchema,
|
|
40355
40427
|
payments: Url$outboundSchema.optional(),
|
|
40356
40428
|
captures: Url$outboundSchema.optional(),
|
|
40357
40429
|
refunds: Url$outboundSchema.optional(),
|
|
@@ -40364,34 +40436,34 @@ var init_entitysettlement = __esm(() => {
|
|
|
40364
40436
|
EntitySettlementLinks$.outboundSchema = EntitySettlementLinks$outboundSchema;
|
|
40365
40437
|
})(EntitySettlementLinks$ ||= {});
|
|
40366
40438
|
EntitySettlement$inboundSchema = objectType({
|
|
40367
|
-
resource: stringType()
|
|
40368
|
-
id: stringType()
|
|
40439
|
+
resource: stringType(),
|
|
40440
|
+
id: stringType(),
|
|
40369
40441
|
createdAt: stringType().optional(),
|
|
40370
40442
|
reference: nullableType(stringType()).optional(),
|
|
40371
40443
|
settledAt: nullableType(stringType()).optional(),
|
|
40372
|
-
status: SettlementStatus$inboundSchema
|
|
40373
|
-
amount: Amount$inboundSchema
|
|
40374
|
-
balanceId: stringType()
|
|
40444
|
+
status: SettlementStatus$inboundSchema,
|
|
40445
|
+
amount: Amount$inboundSchema,
|
|
40446
|
+
balanceId: stringType(),
|
|
40375
40447
|
invoiceId: stringType().optional(),
|
|
40376
|
-
periods: recordType(
|
|
40377
|
-
_links: lazyType(() => EntitySettlementLinks$inboundSchema)
|
|
40448
|
+
periods: recordType(recordType(lazyType(() => Periods$inboundSchema))).optional(),
|
|
40449
|
+
_links: lazyType(() => EntitySettlementLinks$inboundSchema)
|
|
40378
40450
|
}).transform((v2) => {
|
|
40379
40451
|
return remap(v2, {
|
|
40380
40452
|
_links: "links"
|
|
40381
40453
|
});
|
|
40382
40454
|
});
|
|
40383
40455
|
EntitySettlement$outboundSchema = objectType({
|
|
40384
|
-
resource: stringType()
|
|
40385
|
-
id: stringType()
|
|
40456
|
+
resource: stringType(),
|
|
40457
|
+
id: stringType(),
|
|
40386
40458
|
createdAt: stringType().optional(),
|
|
40387
40459
|
reference: nullableType(stringType()).optional(),
|
|
40388
40460
|
settledAt: nullableType(stringType()).optional(),
|
|
40389
|
-
status: SettlementStatus$outboundSchema
|
|
40390
|
-
amount: Amount$outboundSchema
|
|
40391
|
-
balanceId: stringType()
|
|
40461
|
+
status: SettlementStatus$outboundSchema,
|
|
40462
|
+
amount: Amount$outboundSchema,
|
|
40463
|
+
balanceId: stringType(),
|
|
40392
40464
|
invoiceId: stringType().optional(),
|
|
40393
|
-
periods: recordType(
|
|
40394
|
-
links: lazyType(() => EntitySettlementLinks$outboundSchema)
|
|
40465
|
+
periods: recordType(recordType(lazyType(() => Periods$outboundSchema))).optional(),
|
|
40466
|
+
links: lazyType(() => EntitySettlementLinks$outboundSchema)
|
|
40395
40467
|
}).transform((v2) => {
|
|
40396
40468
|
return remap(v2, {
|
|
40397
40469
|
links: "_links"
|
|
@@ -43142,6 +43214,7 @@ var init_errorresponse2 = __esm(() => {
|
|
|
43142
43214
|
// src/models/errors/index.ts
|
|
43143
43215
|
var init_errors2 = __esm(() => {
|
|
43144
43216
|
init_clientdefaulterror();
|
|
43217
|
+
init_clienterror();
|
|
43145
43218
|
init_errorresponse2();
|
|
43146
43219
|
init_httpclienterrors();
|
|
43147
43220
|
init_responsevalidationerror();
|
|
@@ -46934,19 +47007,19 @@ var init_listsettlements = __esm(() => {
|
|
|
46934
47007
|
ListSettlementsRequest$.outboundSchema = ListSettlementsRequest$outboundSchema;
|
|
46935
47008
|
})(ListSettlementsRequest$ ||= {});
|
|
46936
47009
|
ListSettlementsEmbedded$inboundSchema = objectType({
|
|
46937
|
-
settlements: arrayType(EntitySettlement$inboundSchema)
|
|
47010
|
+
settlements: arrayType(EntitySettlement$inboundSchema)
|
|
46938
47011
|
});
|
|
46939
47012
|
ListSettlementsEmbedded$outboundSchema = objectType({
|
|
46940
|
-
settlements: arrayType(EntitySettlement$outboundSchema)
|
|
47013
|
+
settlements: arrayType(EntitySettlement$outboundSchema)
|
|
46941
47014
|
});
|
|
46942
47015
|
((ListSettlementsEmbedded$) => {
|
|
46943
47016
|
ListSettlementsEmbedded$.inboundSchema = ListSettlementsEmbedded$inboundSchema;
|
|
46944
47017
|
ListSettlementsEmbedded$.outboundSchema = ListSettlementsEmbedded$outboundSchema;
|
|
46945
47018
|
})(ListSettlementsEmbedded$ ||= {});
|
|
46946
47019
|
ListSettlementsResponse$inboundSchema = objectType({
|
|
46947
|
-
count: numberType().int()
|
|
46948
|
-
_embedded: lazyType(() => ListSettlementsEmbedded$inboundSchema)
|
|
46949
|
-
_links: ListLinks$inboundSchema
|
|
47020
|
+
count: numberType().int(),
|
|
47021
|
+
_embedded: lazyType(() => ListSettlementsEmbedded$inboundSchema),
|
|
47022
|
+
_links: ListLinks$inboundSchema
|
|
46950
47023
|
}).transform((v2) => {
|
|
46951
47024
|
return remap(v2, {
|
|
46952
47025
|
_embedded: "embedded",
|
|
@@ -46954,9 +47027,9 @@ var init_listsettlements = __esm(() => {
|
|
|
46954
47027
|
});
|
|
46955
47028
|
});
|
|
46956
47029
|
ListSettlementsResponse$outboundSchema = objectType({
|
|
46957
|
-
count: numberType().int()
|
|
46958
|
-
embedded: lazyType(() => ListSettlementsEmbedded$outboundSchema)
|
|
46959
|
-
links: ListLinks$outboundSchema
|
|
47030
|
+
count: numberType().int(),
|
|
47031
|
+
embedded: lazyType(() => ListSettlementsEmbedded$outboundSchema),
|
|
47032
|
+
links: ListLinks$outboundSchema
|
|
46960
47033
|
}).transform((v2) => {
|
|
46961
47034
|
return remap(v2, {
|
|
46962
47035
|
embedded: "_embedded",
|
|
@@ -59927,7 +60000,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
59927
60000
|
function createMCPServer(deps) {
|
|
59928
60001
|
const server = new McpServer({
|
|
59929
60002
|
name: "Client",
|
|
59930
|
-
version: "0.2.
|
|
60003
|
+
version: "0.2.6"
|
|
59931
60004
|
});
|
|
59932
60005
|
const client = new ClientCore({
|
|
59933
60006
|
security: deps.security,
|
|
@@ -61316,7 +61389,7 @@ var routes = an({
|
|
|
61316
61389
|
var app = He(routes, {
|
|
61317
61390
|
name: "mcp",
|
|
61318
61391
|
versionInfo: {
|
|
61319
|
-
currentVersion: "0.2.
|
|
61392
|
+
currentVersion: "0.2.6"
|
|
61320
61393
|
}
|
|
61321
61394
|
});
|
|
61322
61395
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -61324,5 +61397,5 @@ export {
|
|
|
61324
61397
|
app
|
|
61325
61398
|
};
|
|
61326
61399
|
|
|
61327
|
-
//# debugId=
|
|
61400
|
+
//# debugId=D1E0F12A50E826CD64756E2164756E21
|
|
61328
61401
|
//# sourceMappingURL=mcp-server.js.map
|