mollie-api-typescript 1.1.0 → 1.1.1

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 (96) hide show
  1. package/bin/mcp-server.js +62 -66
  2. package/bin/mcp-server.js.map +15 -16
  3. package/dist/commonjs/funcs/customersUpdate.js +1 -3
  4. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  5. package/dist/commonjs/funcs/salesInvoicesUpdate.js +1 -3
  6. package/dist/commonjs/funcs/salesInvoicesUpdate.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/models/index.d.ts +0 -1
  12. package/dist/commonjs/models/index.d.ts.map +1 -1
  13. package/dist/commonjs/models/index.js +0 -1
  14. package/dist/commonjs/models/index.js.map +1 -1
  15. package/dist/commonjs/models/operations/updatecustomer.d.ts +47 -2
  16. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/updatecustomer.js +30 -5
  18. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  19. package/dist/commonjs/models/operations/updatepayment.d.ts +3 -3
  20. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/updatepayment.js +2 -2
  22. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  23. package/dist/commonjs/models/operations/updatepaymentlink.d.ts +6 -5
  24. package/dist/commonjs/models/operations/updatepaymentlink.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/updatepaymentlink.js +2 -2
  26. package/dist/commonjs/models/operations/updatepaymentlink.js.map +1 -1
  27. package/dist/commonjs/models/operations/updatesalesinvoice.d.ts +80 -2
  28. package/dist/commonjs/models/operations/updatesalesinvoice.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/updatesalesinvoice.js +45 -5
  30. package/dist/commonjs/models/operations/updatesalesinvoice.js.map +1 -1
  31. package/dist/commonjs/models/operations/updatesubscription.d.ts +6 -5
  32. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/updatesubscription.js +2 -2
  34. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  35. package/dist/commonjs/models/operations/updatewebhook.d.ts +4 -2
  36. package/dist/commonjs/models/operations/updatewebhook.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/updatewebhook.js.map +1 -1
  38. package/dist/esm/funcs/customersUpdate.js +1 -3
  39. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  40. package/dist/esm/funcs/salesInvoicesUpdate.js +1 -3
  41. package/dist/esm/funcs/salesInvoicesUpdate.js.map +1 -1
  42. package/dist/esm/lib/config.d.ts +3 -3
  43. package/dist/esm/lib/config.js +3 -3
  44. package/dist/esm/mcp-server/mcp-server.js +1 -1
  45. package/dist/esm/mcp-server/server.js +1 -1
  46. package/dist/esm/models/index.d.ts +0 -1
  47. package/dist/esm/models/index.d.ts.map +1 -1
  48. package/dist/esm/models/index.js +0 -1
  49. package/dist/esm/models/index.js.map +1 -1
  50. package/dist/esm/models/operations/updatecustomer.d.ts +47 -2
  51. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  52. package/dist/esm/models/operations/updatecustomer.js +27 -4
  53. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  54. package/dist/esm/models/operations/updatepayment.d.ts +3 -3
  55. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  56. package/dist/esm/models/operations/updatepayment.js +2 -2
  57. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  58. package/dist/esm/models/operations/updatepaymentlink.d.ts +6 -5
  59. package/dist/esm/models/operations/updatepaymentlink.d.ts.map +1 -1
  60. package/dist/esm/models/operations/updatepaymentlink.js +2 -2
  61. package/dist/esm/models/operations/updatepaymentlink.js.map +1 -1
  62. package/dist/esm/models/operations/updatesalesinvoice.d.ts +80 -2
  63. package/dist/esm/models/operations/updatesalesinvoice.d.ts.map +1 -1
  64. package/dist/esm/models/operations/updatesalesinvoice.js +42 -4
  65. package/dist/esm/models/operations/updatesalesinvoice.js.map +1 -1
  66. package/dist/esm/models/operations/updatesubscription.d.ts +6 -5
  67. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  68. package/dist/esm/models/operations/updatesubscription.js +2 -2
  69. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  70. package/dist/esm/models/operations/updatewebhook.d.ts +4 -2
  71. package/dist/esm/models/operations/updatewebhook.d.ts.map +1 -1
  72. package/dist/esm/models/operations/updatewebhook.js.map +1 -1
  73. package/examples/package-lock.json +3 -3
  74. package/jsr.json +1 -1
  75. package/package.json +3 -3
  76. package/src/funcs/customersUpdate.ts +1 -3
  77. package/src/funcs/salesInvoicesUpdate.ts +1 -3
  78. package/src/lib/config.ts +3 -3
  79. package/src/mcp-server/mcp-server.ts +1 -1
  80. package/src/mcp-server/server.ts +1 -1
  81. package/src/models/index.ts +0 -1
  82. package/src/models/operations/updatecustomer.ts +90 -6
  83. package/src/models/operations/updatepayment.ts +5 -5
  84. package/src/models/operations/updatepaymentlink.ts +8 -7
  85. package/src/models/operations/updatesalesinvoice.ts +140 -8
  86. package/src/models/operations/updatesubscription.ts +8 -7
  87. package/src/models/operations/updatewebhook.ts +4 -2
  88. package/dist/commonjs/models/updatevaluessalesinvoice.d.ts +0 -88
  89. package/dist/commonjs/models/updatevaluessalesinvoice.d.ts.map +0 -1
  90. package/dist/commonjs/models/updatevaluessalesinvoice.js +0 -83
  91. package/dist/commonjs/models/updatevaluessalesinvoice.js.map +0 -1
  92. package/dist/esm/models/updatevaluessalesinvoice.d.ts +0 -88
  93. package/dist/esm/models/updatevaluessalesinvoice.d.ts.map +0 -1
  94. package/dist/esm/models/updatevaluessalesinvoice.js +0 -45
  95. package/dist/esm/models/updatevaluessalesinvoice.js.map +0 -1
  96. package/src/models/updatevaluessalesinvoice.ts +0 -173
package/bin/mcp-server.js CHANGED
@@ -52403,9 +52403,9 @@ var init_config = __esm(() => {
52403
52403
  SDK_METADATA = {
52404
52404
  language: "typescript",
52405
52405
  openapiDocVersion: "1.0.0",
52406
- sdkVersion: "1.1.0",
52407
- genVersion: "2.803.3",
52408
- userAgent: "speakeasy-sdk/typescript 1.1.0 2.803.3 1.0.0 mollie-api-typescript"
52406
+ sdkVersion: "1.1.1",
52407
+ genVersion: "2.806.4",
52408
+ userAgent: "speakeasy-sdk/typescript 1.1.1 2.806.4 1.0.0 mollie-api-typescript"
52409
52409
  };
52410
52410
  });
52411
52411
 
@@ -62154,43 +62154,6 @@ var init_subscriptionresponse = __esm(() => {
62154
62154
  });
62155
62155
  });
62156
62156
 
62157
- // src/models/updatevaluessalesinvoice.ts
62158
- var UpdateValuesSalesInvoice$inboundSchema, UpdateValuesSalesInvoice$outboundSchema;
62159
- var init_updatevaluessalesinvoice = __esm(() => {
62160
- init_esm();
62161
- init_salesinvoicediscount();
62162
- init_salesinvoiceemaildetails();
62163
- init_salesinvoicelineitem();
62164
- init_salesinvoicepaymentdetails();
62165
- init_salesinvoicepaymentterm();
62166
- init_salesinvoicerecipient();
62167
- init_salesinvoicestatus();
62168
- UpdateValuesSalesInvoice$inboundSchema = objectType({
62169
- testmode: nullableType(booleanType()).optional(),
62170
- status: SalesInvoiceStatus$inboundSchema.optional(),
62171
- memo: nullableType(stringType()).optional(),
62172
- paymentTerm: nullableType(SalesInvoicePaymentTerm$inboundSchema).optional(),
62173
- paymentDetails: SalesInvoicePaymentDetails$inboundSchema.optional(),
62174
- emailDetails: nullableType(SalesInvoiceEmailDetails$inboundSchema).optional(),
62175
- recipientIdentifier: stringType().optional(),
62176
- recipient: nullableType(SalesInvoiceRecipient$inboundSchema).optional(),
62177
- lines: nullableType(arrayType(SalesInvoiceLineItem$inboundSchema)).optional(),
62178
- discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional()
62179
- });
62180
- UpdateValuesSalesInvoice$outboundSchema = objectType({
62181
- testmode: nullableType(booleanType()).optional(),
62182
- status: SalesInvoiceStatus$outboundSchema.optional(),
62183
- memo: nullableType(stringType()).optional(),
62184
- paymentTerm: nullableType(SalesInvoicePaymentTerm$outboundSchema).optional(),
62185
- paymentDetails: SalesInvoicePaymentDetails$outboundSchema.optional(),
62186
- emailDetails: nullableType(SalesInvoiceEmailDetails$outboundSchema).optional(),
62187
- recipientIdentifier: stringType().optional(),
62188
- recipient: nullableType(SalesInvoiceRecipient$outboundSchema).optional(),
62189
- lines: nullableType(arrayType(SalesInvoiceLineItem$outboundSchema)).optional(),
62190
- discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional()
62191
- });
62192
- });
62193
-
62194
62157
  // src/models/index.ts
62195
62158
  var init_models = __esm(() => {
62196
62159
  init_address();
@@ -62362,7 +62325,6 @@ var init_models = __esm(() => {
62362
62325
  init_subtotals();
62363
62326
  init_terminalbrand();
62364
62327
  init_terminalmodel();
62365
- init_updatevaluessalesinvoice();
62366
62328
  init_url2();
62367
62329
  init_urlnullable();
62368
62330
  init_webhookeventtypes();
@@ -66535,29 +66497,43 @@ var init_testwebhook = __esm(() => {
66535
66497
  });
66536
66498
 
66537
66499
  // src/models/operations/updatecustomer.ts
66538
- var UpdateCustomerRequest$inboundSchema, UpdateCustomerRequest$outboundSchema;
66500
+ var UpdateCustomerRequestBody$inboundSchema, UpdateCustomerRequestBody$outboundSchema, UpdateCustomerRequest$inboundSchema, UpdateCustomerRequest$outboundSchema;
66539
66501
  var init_updatecustomer = __esm(() => {
66540
66502
  init_esm();
66541
66503
  init_primitives();
66542
66504
  init_models();
66505
+ UpdateCustomerRequestBody$inboundSchema = objectType({
66506
+ name: nullableType(stringType()).optional(),
66507
+ email: nullableType(stringType()).optional(),
66508
+ locale: nullableType(LocaleResponse$inboundSchema).optional(),
66509
+ metadata: nullableType(Metadata$inboundSchema).optional(),
66510
+ testmode: booleanType().optional()
66511
+ });
66512
+ UpdateCustomerRequestBody$outboundSchema = objectType({
66513
+ name: nullableType(stringType()).optional(),
66514
+ email: nullableType(stringType()).optional(),
66515
+ locale: nullableType(LocaleResponse$outboundSchema).optional(),
66516
+ metadata: nullableType(Metadata$outboundSchema).optional(),
66517
+ testmode: booleanType().optional()
66518
+ });
66543
66519
  UpdateCustomerRequest$inboundSchema = objectType({
66544
66520
  customerId: stringType(),
66545
66521
  "idempotency-key": stringType().optional(),
66546
- "entity-customer": EntityCustomer$inboundSchema.optional()
66522
+ RequestBody: lazyType(() => UpdateCustomerRequestBody$inboundSchema).optional()
66547
66523
  }).transform((v2) => {
66548
66524
  return remap(v2, {
66549
66525
  "idempotency-key": "idempotencyKey",
66550
- "entity-customer": "entityCustomer"
66526
+ RequestBody: "requestBody"
66551
66527
  });
66552
66528
  });
66553
66529
  UpdateCustomerRequest$outboundSchema = objectType({
66554
66530
  customerId: stringType(),
66555
66531
  idempotencyKey: stringType().optional(),
66556
- entityCustomer: EntityCustomer$outboundSchema.optional()
66532
+ requestBody: lazyType(() => UpdateCustomerRequestBody$outboundSchema).optional()
66557
66533
  }).transform((v2) => {
66558
66534
  return remap(v2, {
66559
66535
  idempotencyKey: "idempotency-key",
66560
- entityCustomer: "entity-customer"
66536
+ requestBody: "RequestBody"
66561
66537
  });
66562
66538
  });
66563
66539
  });
@@ -66578,7 +66554,7 @@ var init_updatepayment = __esm(() => {
66578
66554
  locale: nullableType(Locale$inboundSchema).optional(),
66579
66555
  dueDate: stringType().optional(),
66580
66556
  restrictPaymentMethodsToCountry: nullableType(stringType()).optional(),
66581
- testmode: nullableType(booleanType()).optional(),
66557
+ testmode: booleanType().optional(),
66582
66558
  issuer: nullableType(stringType()).optional(),
66583
66559
  billingAddress: BillingAddress$inboundSchema.optional(),
66584
66560
  shippingAddress: PaymentAddress$inboundSchema.optional(),
@@ -66594,7 +66570,7 @@ var init_updatepayment = __esm(() => {
66594
66570
  locale: nullableType(Locale$outboundSchema).optional(),
66595
66571
  dueDate: stringType().optional(),
66596
66572
  restrictPaymentMethodsToCountry: nullableType(stringType()).optional(),
66597
- testmode: nullableType(booleanType()).optional(),
66573
+ testmode: booleanType().optional(),
66598
66574
  issuer: nullableType(stringType()).optional(),
66599
66575
  billingAddress: BillingAddress$outboundSchema.optional(),
66600
66576
  shippingAddress: PaymentAddress$outboundSchema.optional(),
@@ -66636,7 +66612,7 @@ var init_updatepaymentlink = __esm(() => {
66636
66612
  lines: nullableType(arrayType(PaymentLineItem$inboundSchema)).optional(),
66637
66613
  billingAddress: PaymentAddress$inboundSchema.optional(),
66638
66614
  shippingAddress: PaymentAddress$inboundSchema.optional(),
66639
- testmode: nullableType(booleanType()).optional()
66615
+ testmode: booleanType().optional()
66640
66616
  });
66641
66617
  UpdatePaymentLinkRequestBody$outboundSchema = objectType({
66642
66618
  description: stringType().optional(),
@@ -66646,7 +66622,7 @@ var init_updatepaymentlink = __esm(() => {
66646
66622
  lines: nullableType(arrayType(PaymentLineItem$outboundSchema)).optional(),
66647
66623
  billingAddress: PaymentAddress$outboundSchema.optional(),
66648
66624
  shippingAddress: PaymentAddress$outboundSchema.optional(),
66649
- testmode: nullableType(booleanType()).optional()
66625
+ testmode: booleanType().optional()
66650
66626
  });
66651
66627
  UpdatePaymentLinkRequest$inboundSchema = objectType({
66652
66628
  paymentLinkId: stringType(),
@@ -66716,29 +66692,53 @@ var init_updateprofile = __esm(() => {
66716
66692
  });
66717
66693
 
66718
66694
  // src/models/operations/updatesalesinvoice.ts
66719
- var UpdateSalesInvoiceRequest$inboundSchema, UpdateSalesInvoiceRequest$outboundSchema;
66695
+ var UpdateSalesInvoiceRequestBody$inboundSchema, UpdateSalesInvoiceRequestBody$outboundSchema, UpdateSalesInvoiceRequest$inboundSchema, UpdateSalesInvoiceRequest$outboundSchema;
66720
66696
  var init_updatesalesinvoice = __esm(() => {
66721
66697
  init_esm();
66722
66698
  init_primitives();
66723
66699
  init_models();
66700
+ UpdateSalesInvoiceRequestBody$inboundSchema = objectType({
66701
+ testmode: booleanType().optional(),
66702
+ status: SalesInvoiceStatus$inboundSchema.optional(),
66703
+ memo: nullableType(stringType()).optional(),
66704
+ paymentTerm: nullableType(SalesInvoicePaymentTerm$inboundSchema).optional(),
66705
+ paymentDetails: SalesInvoicePaymentDetails$inboundSchema.optional(),
66706
+ emailDetails: nullableType(SalesInvoiceEmailDetails$inboundSchema).optional(),
66707
+ recipientIdentifier: stringType().optional(),
66708
+ recipient: nullableType(SalesInvoiceRecipient$inboundSchema).optional(),
66709
+ lines: nullableType(arrayType(SalesInvoiceLineItem$inboundSchema)).optional(),
66710
+ discount: nullableType(SalesInvoiceDiscount$inboundSchema).optional()
66711
+ });
66712
+ UpdateSalesInvoiceRequestBody$outboundSchema = objectType({
66713
+ testmode: booleanType().optional(),
66714
+ status: SalesInvoiceStatus$outboundSchema.optional(),
66715
+ memo: nullableType(stringType()).optional(),
66716
+ paymentTerm: nullableType(SalesInvoicePaymentTerm$outboundSchema).optional(),
66717
+ paymentDetails: SalesInvoicePaymentDetails$outboundSchema.optional(),
66718
+ emailDetails: nullableType(SalesInvoiceEmailDetails$outboundSchema).optional(),
66719
+ recipientIdentifier: stringType().optional(),
66720
+ recipient: nullableType(SalesInvoiceRecipient$outboundSchema).optional(),
66721
+ lines: nullableType(arrayType(SalesInvoiceLineItem$outboundSchema)).optional(),
66722
+ discount: nullableType(SalesInvoiceDiscount$outboundSchema).optional()
66723
+ });
66724
66724
  UpdateSalesInvoiceRequest$inboundSchema = objectType({
66725
66725
  salesInvoiceId: stringType(),
66726
66726
  "idempotency-key": stringType().optional(),
66727
- "update-values-sales-invoice": UpdateValuesSalesInvoice$inboundSchema.optional()
66727
+ RequestBody: lazyType(() => UpdateSalesInvoiceRequestBody$inboundSchema).optional()
66728
66728
  }).transform((v2) => {
66729
66729
  return remap(v2, {
66730
66730
  "idempotency-key": "idempotencyKey",
66731
- "update-values-sales-invoice": "updateValuesSalesInvoice"
66731
+ RequestBody: "requestBody"
66732
66732
  });
66733
66733
  });
66734
66734
  UpdateSalesInvoiceRequest$outboundSchema = objectType({
66735
66735
  salesInvoiceId: stringType(),
66736
66736
  idempotencyKey: stringType().optional(),
66737
- updateValuesSalesInvoice: UpdateValuesSalesInvoice$outboundSchema.optional()
66737
+ requestBody: lazyType(() => UpdateSalesInvoiceRequestBody$outboundSchema).optional()
66738
66738
  }).transform((v2) => {
66739
66739
  return remap(v2, {
66740
66740
  idempotencyKey: "idempotency-key",
66741
- updateValuesSalesInvoice: "update-values-sales-invoice"
66741
+ requestBody: "RequestBody"
66742
66742
  });
66743
66743
  });
66744
66744
  });
@@ -66758,7 +66758,7 @@ var init_updatesubscription = __esm(() => {
66758
66758
  metadata: nullableType(Metadata$inboundSchema).optional(),
66759
66759
  webhookUrl: stringType().optional(),
66760
66760
  mandateId: stringType().optional(),
66761
- testmode: nullableType(booleanType()).optional()
66761
+ testmode: booleanType().optional()
66762
66762
  });
66763
66763
  UpdateSubscriptionRequestBody$outboundSchema = objectType({
66764
66764
  amount: Amount$outboundSchema.optional(),
@@ -66769,7 +66769,7 @@ var init_updatesubscription = __esm(() => {
66769
66769
  metadata: nullableType(Metadata$outboundSchema).optional(),
66770
66770
  webhookUrl: stringType().optional(),
66771
66771
  mandateId: stringType().optional(),
66772
- testmode: nullableType(booleanType()).optional()
66772
+ testmode: booleanType().optional()
66773
66773
  });
66774
66774
  UpdateSubscriptionRequest$inboundSchema = objectType({
66775
66775
  customerId: stringType(),
@@ -70078,9 +70078,7 @@ async function $do25(client, request, options) {
70078
70078
  return [parsed, { status: "invalid" }];
70079
70079
  }
70080
70080
  const payload = parsed.value;
70081
- const body = encodeJSON("body", payload["entity-customer"], {
70082
- explode: true
70083
- });
70081
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
70084
70082
  const pathParams = {
70085
70083
  customerId: encodeSimple("customerId", payload.customerId, {
70086
70084
  explode: false,
@@ -75855,9 +75853,7 @@ async function $do71(client, request, options) {
75855
75853
  return [parsed, { status: "invalid" }];
75856
75854
  }
75857
75855
  const payload = parsed.value;
75858
- const body = encodeJSON("body", payload["update-values-sales-invoice"], {
75859
- explode: true
75860
- });
75856
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
75861
75857
  const pathParams = {
75862
75858
  salesInvoiceId: encodeSimple("salesInvoiceId", payload.salesInvoiceId, {
75863
75859
  explode: false,
@@ -79154,7 +79150,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
79154
79150
  function createMCPServer(deps) {
79155
79151
  const server = new McpServer({
79156
79152
  name: "Client",
79157
- version: "1.1.0"
79153
+ version: "1.1.1"
79158
79154
  });
79159
79155
  const client = new ClientCore({
79160
79156
  security: deps.security,
@@ -80582,7 +80578,7 @@ var routes = an({
80582
80578
  var app = He(routes, {
80583
80579
  name: "mcp",
80584
80580
  versionInfo: {
80585
- currentVersion: "1.1.0"
80581
+ currentVersion: "1.1.1"
80586
80582
  }
80587
80583
  });
80588
80584
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -80590,5 +80586,5 @@ export {
80590
80586
  app
80591
80587
  };
80592
80588
 
80593
- //# debugId=D62F37459777AF4064756E2164756E21
80589
+ //# debugId=8D0CC15897E173C564756E2164756E21
80594
80590
  //# sourceMappingURL=mcp-server.js.map