@mittwald/api-client 3.1.14 → 3.1.16
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/cjs/generated/v2/client-react.d.ts +16 -16
- package/dist/cjs/generated/v2/client-react.js +4 -4
- package/dist/cjs/generated/v2/client.d.ts +63 -174
- package/dist/cjs/generated/v2/client.js +4 -8
- package/dist/cjs/generated/v2/descriptors.d.ts +4 -8
- package/dist/cjs/generated/v2/descriptors.js +15 -27
- package/dist/cjs/generated/v2/types.d.ts +32 -165
- package/dist/esm/generated/v2/client-react.d.ts +16 -16
- package/dist/esm/generated/v2/client-react.js +4 -4
- package/dist/esm/generated/v2/client.d.ts +63 -174
- package/dist/esm/generated/v2/client.js +4 -8
- package/dist/esm/generated/v2/descriptors.d.ts +4 -8
- package/dist/esm/generated/v2/descriptors.js +12 -24
- package/dist/esm/generated/v2/types.d.ts +32 -165
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -646,22 +646,6 @@ export declare module MittwaldAPIV2 {
|
|
|
646
646
|
type RequestData = InferredRequestData<typeof descriptors.invoiceListCustomerInvoices>;
|
|
647
647
|
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.invoiceListCustomerInvoices, TStatus>;
|
|
648
648
|
}
|
|
649
|
-
namespace MailListDeliveryBoxes {
|
|
650
|
-
type RequestData = InferredRequestData<typeof descriptors.mailListDeliveryBoxes>;
|
|
651
|
-
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailListDeliveryBoxes, TStatus>;
|
|
652
|
-
}
|
|
653
|
-
namespace MailCreateDeliverybox {
|
|
654
|
-
type RequestData = InferredRequestData<typeof descriptors.mailCreateDeliverybox>;
|
|
655
|
-
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailCreateDeliverybox, TStatus>;
|
|
656
|
-
}
|
|
657
|
-
namespace MailListMailAddresses {
|
|
658
|
-
type RequestData = InferredRequestData<typeof descriptors.mailListMailAddresses>;
|
|
659
|
-
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailListMailAddresses, TStatus>;
|
|
660
|
-
}
|
|
661
|
-
namespace MailCreateMailAddress {
|
|
662
|
-
type RequestData = InferredRequestData<typeof descriptors.mailCreateMailAddress>;
|
|
663
|
-
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailCreateMailAddress, TStatus>;
|
|
664
|
-
}
|
|
665
649
|
namespace MailGetDeliveryBox {
|
|
666
650
|
type RequestData = InferredRequestData<typeof descriptors.mailGetDeliveryBox>;
|
|
667
651
|
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailGetDeliveryBox, TStatus>;
|
|
@@ -678,6 +662,14 @@ export declare module MittwaldAPIV2 {
|
|
|
678
662
|
type RequestData = InferredRequestData<typeof descriptors.mailDeleteMailAddress>;
|
|
679
663
|
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailDeleteMailAddress, TStatus>;
|
|
680
664
|
}
|
|
665
|
+
namespace MailListDeliveryBoxes {
|
|
666
|
+
type RequestData = InferredRequestData<typeof descriptors.mailListDeliveryBoxes>;
|
|
667
|
+
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailListDeliveryBoxes, TStatus>;
|
|
668
|
+
}
|
|
669
|
+
namespace MailListMailAddresses {
|
|
670
|
+
type RequestData = InferredRequestData<typeof descriptors.mailListMailAddresses>;
|
|
671
|
+
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailListMailAddresses, TStatus>;
|
|
672
|
+
}
|
|
681
673
|
namespace MailListProjectMailSettings {
|
|
682
674
|
type RequestData = InferredRequestData<typeof descriptors.mailListProjectMailSettings>;
|
|
683
675
|
type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.mailListProjectMailSettings, TStatus>;
|
|
@@ -9331,12 +9323,12 @@ export declare module MittwaldAPIV2 {
|
|
|
9331
9323
|
}
|
|
9332
9324
|
}
|
|
9333
9325
|
}
|
|
9334
|
-
namespace
|
|
9335
|
-
namespace
|
|
9326
|
+
namespace V2DeliveryboxesDeliveryBoxId { }
|
|
9327
|
+
namespace V2DeliveryBoxesDeliveryBoxId {
|
|
9336
9328
|
namespace Get {
|
|
9337
9329
|
namespace Parameters {
|
|
9338
9330
|
type Path = {
|
|
9339
|
-
|
|
9331
|
+
deliveryBoxId: string;
|
|
9340
9332
|
};
|
|
9341
9333
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9342
9334
|
type Query = {};
|
|
@@ -9344,71 +9336,7 @@ export declare module MittwaldAPIV2 {
|
|
|
9344
9336
|
namespace Responses {
|
|
9345
9337
|
namespace $200 {
|
|
9346
9338
|
namespace Content {
|
|
9347
|
-
type ApplicationJson = MittwaldAPIV2.Components.Schemas.MailDeliverybox
|
|
9348
|
-
}
|
|
9349
|
-
}
|
|
9350
|
-
namespace $400 {
|
|
9351
|
-
namespace Content {
|
|
9352
|
-
interface ApplicationJson {
|
|
9353
|
-
[k: string]: unknown;
|
|
9354
|
-
}
|
|
9355
|
-
}
|
|
9356
|
-
}
|
|
9357
|
-
namespace $403 {
|
|
9358
|
-
namespace Content {
|
|
9359
|
-
interface ApplicationJson {
|
|
9360
|
-
[k: string]: unknown;
|
|
9361
|
-
}
|
|
9362
|
-
}
|
|
9363
|
-
}
|
|
9364
|
-
namespace $404 {
|
|
9365
|
-
namespace Content {
|
|
9366
|
-
interface ApplicationJson {
|
|
9367
|
-
[k: string]: unknown;
|
|
9368
|
-
}
|
|
9369
|
-
}
|
|
9370
|
-
}
|
|
9371
|
-
namespace $500 {
|
|
9372
|
-
namespace Content {
|
|
9373
|
-
interface ApplicationJson {
|
|
9374
|
-
[k: string]: unknown;
|
|
9375
|
-
}
|
|
9376
|
-
}
|
|
9377
|
-
}
|
|
9378
|
-
namespace $503 {
|
|
9379
|
-
namespace Content {
|
|
9380
|
-
interface ApplicationJson {
|
|
9381
|
-
[k: string]: unknown;
|
|
9382
|
-
}
|
|
9383
|
-
}
|
|
9384
|
-
}
|
|
9385
|
-
namespace Default {
|
|
9386
|
-
namespace Content {
|
|
9387
|
-
interface ApplicationJson {
|
|
9388
|
-
[k: string]: unknown;
|
|
9389
|
-
}
|
|
9390
|
-
}
|
|
9391
|
-
}
|
|
9392
|
-
}
|
|
9393
|
-
}
|
|
9394
|
-
namespace Post {
|
|
9395
|
-
namespace Parameters {
|
|
9396
|
-
type Path = {
|
|
9397
|
-
projectId: string;
|
|
9398
|
-
};
|
|
9399
|
-
interface RequestBody {
|
|
9400
|
-
description: string;
|
|
9401
|
-
password: string;
|
|
9402
|
-
}
|
|
9403
|
-
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9404
|
-
type Query = {};
|
|
9405
|
-
}
|
|
9406
|
-
namespace Responses {
|
|
9407
|
-
namespace $201 {
|
|
9408
|
-
namespace Content {
|
|
9409
|
-
interface ApplicationJson {
|
|
9410
|
-
id: string;
|
|
9411
|
-
}
|
|
9339
|
+
type ApplicationJson = MittwaldAPIV2.Components.Schemas.MailDeliverybox;
|
|
9412
9340
|
}
|
|
9413
9341
|
}
|
|
9414
9342
|
namespace $400 {
|
|
@@ -9455,13 +9383,10 @@ export declare module MittwaldAPIV2 {
|
|
|
9455
9383
|
}
|
|
9456
9384
|
}
|
|
9457
9385
|
}
|
|
9458
|
-
|
|
9459
|
-
namespace V2ProjectsProjectIdMailaddresses { }
|
|
9460
|
-
namespace V2ProjectsProjectIdMailAddresses {
|
|
9461
|
-
namespace Get {
|
|
9386
|
+
namespace Delete {
|
|
9462
9387
|
namespace Parameters {
|
|
9463
9388
|
type Path = {
|
|
9464
|
-
|
|
9389
|
+
deliveryBoxId: string;
|
|
9465
9390
|
};
|
|
9466
9391
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9467
9392
|
type Query = {};
|
|
@@ -9469,68 +9394,7 @@ export declare module MittwaldAPIV2 {
|
|
|
9469
9394
|
namespace Responses {
|
|
9470
9395
|
namespace $200 {
|
|
9471
9396
|
namespace Content {
|
|
9472
|
-
type
|
|
9473
|
-
}
|
|
9474
|
-
}
|
|
9475
|
-
namespace $400 {
|
|
9476
|
-
namespace Content {
|
|
9477
|
-
interface ApplicationJson {
|
|
9478
|
-
[k: string]: unknown;
|
|
9479
|
-
}
|
|
9480
|
-
}
|
|
9481
|
-
}
|
|
9482
|
-
namespace $403 {
|
|
9483
|
-
namespace Content {
|
|
9484
|
-
interface ApplicationJson {
|
|
9485
|
-
[k: string]: unknown;
|
|
9486
|
-
}
|
|
9487
|
-
}
|
|
9488
|
-
}
|
|
9489
|
-
namespace $404 {
|
|
9490
|
-
namespace Content {
|
|
9491
|
-
interface ApplicationJson {
|
|
9492
|
-
[k: string]: unknown;
|
|
9493
|
-
}
|
|
9494
|
-
}
|
|
9495
|
-
}
|
|
9496
|
-
namespace $500 {
|
|
9497
|
-
namespace Content {
|
|
9498
|
-
interface ApplicationJson {
|
|
9499
|
-
[k: string]: unknown;
|
|
9500
|
-
}
|
|
9501
|
-
}
|
|
9502
|
-
}
|
|
9503
|
-
namespace $503 {
|
|
9504
|
-
namespace Content {
|
|
9505
|
-
interface ApplicationJson {
|
|
9506
|
-
[k: string]: unknown;
|
|
9507
|
-
}
|
|
9508
|
-
}
|
|
9509
|
-
}
|
|
9510
|
-
namespace Default {
|
|
9511
|
-
namespace Content {
|
|
9512
|
-
interface ApplicationJson {
|
|
9513
|
-
[k: string]: unknown;
|
|
9514
|
-
}
|
|
9515
|
-
}
|
|
9516
|
-
}
|
|
9517
|
-
}
|
|
9518
|
-
}
|
|
9519
|
-
namespace Post {
|
|
9520
|
-
namespace Parameters {
|
|
9521
|
-
type Path = {
|
|
9522
|
-
projectId: string;
|
|
9523
|
-
};
|
|
9524
|
-
type RequestBody = MittwaldAPIV2.Components.Schemas.MailCreateForwardAddress | MittwaldAPIV2.Components.Schemas.MailCreateMailAddress;
|
|
9525
|
-
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9526
|
-
type Query = {};
|
|
9527
|
-
}
|
|
9528
|
-
namespace Responses {
|
|
9529
|
-
namespace $201 {
|
|
9530
|
-
namespace Content {
|
|
9531
|
-
interface ApplicationJson {
|
|
9532
|
-
id: string;
|
|
9533
|
-
}
|
|
9397
|
+
type Empty = unknown;
|
|
9534
9398
|
}
|
|
9535
9399
|
}
|
|
9536
9400
|
namespace $400 {
|
|
@@ -9578,12 +9442,12 @@ export declare module MittwaldAPIV2 {
|
|
|
9578
9442
|
}
|
|
9579
9443
|
}
|
|
9580
9444
|
}
|
|
9581
|
-
namespace
|
|
9582
|
-
namespace
|
|
9445
|
+
namespace V2MailaddressesMailAddressId { }
|
|
9446
|
+
namespace V2MailAddressesMailAddressId {
|
|
9583
9447
|
namespace Get {
|
|
9584
9448
|
namespace Parameters {
|
|
9585
9449
|
type Path = {
|
|
9586
|
-
|
|
9450
|
+
mailAddressId: string;
|
|
9587
9451
|
};
|
|
9588
9452
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9589
9453
|
type Query = {};
|
|
@@ -9591,7 +9455,7 @@ export declare module MittwaldAPIV2 {
|
|
|
9591
9455
|
namespace Responses {
|
|
9592
9456
|
namespace $200 {
|
|
9593
9457
|
namespace Content {
|
|
9594
|
-
type ApplicationJson = MittwaldAPIV2.Components.Schemas.
|
|
9458
|
+
type ApplicationJson = MittwaldAPIV2.Components.Schemas.MailMailAddress;
|
|
9595
9459
|
}
|
|
9596
9460
|
}
|
|
9597
9461
|
namespace $400 {
|
|
@@ -9641,7 +9505,7 @@ export declare module MittwaldAPIV2 {
|
|
|
9641
9505
|
namespace Delete {
|
|
9642
9506
|
namespace Parameters {
|
|
9643
9507
|
type Path = {
|
|
9644
|
-
|
|
9508
|
+
mailAddressId: string;
|
|
9645
9509
|
};
|
|
9646
9510
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9647
9511
|
type Query = {};
|
|
@@ -9697,12 +9561,14 @@ export declare module MittwaldAPIV2 {
|
|
|
9697
9561
|
}
|
|
9698
9562
|
}
|
|
9699
9563
|
}
|
|
9700
|
-
namespace
|
|
9701
|
-
namespace
|
|
9564
|
+
namespace V2DeliveryboxesIdDescription { }
|
|
9565
|
+
namespace V2DeliveryboxesIdPassword { }
|
|
9566
|
+
namespace V2ProjectsProjectIdDeliveryboxes { }
|
|
9567
|
+
namespace V2ProjectsProjectIdDeliveryBoxes {
|
|
9702
9568
|
namespace Get {
|
|
9703
9569
|
namespace Parameters {
|
|
9704
9570
|
type Path = {
|
|
9705
|
-
|
|
9571
|
+
projectId: string;
|
|
9706
9572
|
};
|
|
9707
9573
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9708
9574
|
type Query = {};
|
|
@@ -9710,7 +9576,7 @@ export declare module MittwaldAPIV2 {
|
|
|
9710
9576
|
namespace Responses {
|
|
9711
9577
|
namespace $200 {
|
|
9712
9578
|
namespace Content {
|
|
9713
|
-
type ApplicationJson = MittwaldAPIV2.Components.Schemas.
|
|
9579
|
+
type ApplicationJson = MittwaldAPIV2.Components.Schemas.MailDeliverybox[];
|
|
9714
9580
|
}
|
|
9715
9581
|
}
|
|
9716
9582
|
namespace $400 {
|
|
@@ -9757,10 +9623,13 @@ export declare module MittwaldAPIV2 {
|
|
|
9757
9623
|
}
|
|
9758
9624
|
}
|
|
9759
9625
|
}
|
|
9760
|
-
|
|
9626
|
+
}
|
|
9627
|
+
namespace V2ProjectsProjectIdMailaddresses { }
|
|
9628
|
+
namespace V2ProjectsProjectIdMailAddresses {
|
|
9629
|
+
namespace Get {
|
|
9761
9630
|
namespace Parameters {
|
|
9762
9631
|
type Path = {
|
|
9763
|
-
|
|
9632
|
+
projectId: string;
|
|
9764
9633
|
};
|
|
9765
9634
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
9766
9635
|
type Query = {};
|
|
@@ -9768,7 +9637,7 @@ export declare module MittwaldAPIV2 {
|
|
|
9768
9637
|
namespace Responses {
|
|
9769
9638
|
namespace $200 {
|
|
9770
9639
|
namespace Content {
|
|
9771
|
-
type
|
|
9640
|
+
type ApplicationJson = MittwaldAPIV2.Components.Schemas.MailMailAddress[];
|
|
9772
9641
|
}
|
|
9773
9642
|
}
|
|
9774
9643
|
namespace $400 {
|
|
@@ -9816,8 +9685,6 @@ export declare module MittwaldAPIV2 {
|
|
|
9816
9685
|
}
|
|
9817
9686
|
}
|
|
9818
9687
|
}
|
|
9819
|
-
namespace V2DeliveryboxesIdDescription { }
|
|
9820
|
-
namespace V2DeliveryboxesIdPassword { }
|
|
9821
9688
|
namespace V2ProjectsProjectIdMailsettings { }
|
|
9822
9689
|
namespace V2ProjectsProjectIdMailSettings {
|
|
9823
9690
|
namespace Get {
|
|
@@ -1244,22 +1244,6 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1244
1244
|
}>;
|
|
1245
1245
|
};
|
|
1246
1246
|
declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
|
|
1247
|
-
/** List DeliveryBoxes belonging to a Project. */
|
|
1248
|
-
listDeliveryBoxes: (conf: {
|
|
1249
|
-
projectId: string;
|
|
1250
|
-
headers?: {
|
|
1251
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1252
|
-
"x-access-token"?: string | undefined;
|
|
1253
|
-
} | undefined;
|
|
1254
|
-
}) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailDeliverybox[]>;
|
|
1255
|
-
/** List MailAddresses belonging to a Project. */
|
|
1256
|
-
listMailAddresses: (conf: {
|
|
1257
|
-
projectId: string;
|
|
1258
|
-
headers?: {
|
|
1259
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1260
|
-
"x-access-token"?: string | undefined;
|
|
1261
|
-
} | undefined;
|
|
1262
|
-
}) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
|
|
1263
1247
|
/** Get a DeliveryBox. */
|
|
1264
1248
|
getDeliveryBox: (conf: {
|
|
1265
1249
|
deliveryBoxId: string;
|
|
@@ -1317,6 +1301,22 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1317
1301
|
receivingDisabled: boolean;
|
|
1318
1302
|
updatedAt: string;
|
|
1319
1303
|
}>;
|
|
1304
|
+
/** List DeliveryBoxes belonging to a Project. */
|
|
1305
|
+
listDeliveryBoxes: (conf: {
|
|
1306
|
+
projectId: string;
|
|
1307
|
+
headers?: {
|
|
1308
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1309
|
+
"x-access-token"?: string | undefined;
|
|
1310
|
+
} | undefined;
|
|
1311
|
+
}) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailDeliverybox[]>;
|
|
1312
|
+
/** List MailAddresses belonging to a Project. */
|
|
1313
|
+
listMailAddresses: (conf: {
|
|
1314
|
+
projectId: string;
|
|
1315
|
+
headers?: {
|
|
1316
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1317
|
+
"x-access-token"?: string | undefined;
|
|
1318
|
+
} | undefined;
|
|
1319
|
+
}) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
|
|
1320
1320
|
/** List mail settings of a Project. */
|
|
1321
1321
|
listProjectMailSettings: (conf: {
|
|
1322
1322
|
projectId: string;
|
|
@@ -182,14 +182,14 @@ const buildFileApi = (baseClient) => ({
|
|
|
182
182
|
getFileUploadTypeRules: new ApiCallAsyncResourceFactory(descriptors.fileGetFileUploadTypeRules, baseClient.file.getFileUploadTypeRules).getApiResource,
|
|
183
183
|
});
|
|
184
184
|
const buildMailApi = (baseClient) => ({
|
|
185
|
-
/** List DeliveryBoxes belonging to a Project. */
|
|
186
|
-
listDeliveryBoxes: new ApiCallAsyncResourceFactory(descriptors.mailListDeliveryBoxes, baseClient.mail.listDeliveryBoxes).getApiResource,
|
|
187
|
-
/** List MailAddresses belonging to a Project. */
|
|
188
|
-
listMailAddresses: new ApiCallAsyncResourceFactory(descriptors.mailListMailAddresses, baseClient.mail.listMailAddresses).getApiResource,
|
|
189
185
|
/** Get a DeliveryBox. */
|
|
190
186
|
getDeliveryBox: new ApiCallAsyncResourceFactory(descriptors.mailGetDeliveryBox, baseClient.mail.getDeliveryBox).getApiResource,
|
|
191
187
|
/** Get a MailAddress. */
|
|
192
188
|
getMailAddress: new ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
|
|
189
|
+
/** List DeliveryBoxes belonging to a Project. */
|
|
190
|
+
listDeliveryBoxes: new ApiCallAsyncResourceFactory(descriptors.mailListDeliveryBoxes, baseClient.mail.listDeliveryBoxes).getApiResource,
|
|
191
|
+
/** List MailAddresses belonging to a Project. */
|
|
192
|
+
listMailAddresses: new ApiCallAsyncResourceFactory(descriptors.mailListMailAddresses, baseClient.mail.listMailAddresses).getApiResource,
|
|
193
193
|
/** List mail settings of a Project. */
|
|
194
194
|
listProjectMailSettings: new ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
|
|
195
195
|
});
|