@mittwald/api-client 3.0.21 → 3.0.22

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.
@@ -1234,17 +1234,25 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1234
1234
  }) => import("@mittwald/react-use-promise/types").AsyncResource<string>;
1235
1235
  };
1236
1236
  declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
1237
- /** Get all deliveryboxes by project ID */
1238
- deliveryboxList: (conf: {
1237
+ /** List DeliveryBoxes belonging to a Project. */
1238
+ listDeliveryBoxes: (conf: {
1239
1239
  projectId: string;
1240
1240
  headers?: {
1241
1241
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1242
1242
  "x-access-token"?: string | undefined;
1243
1243
  } | undefined;
1244
1244
  }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailDeliverybox[]>;
1245
- /** Get a specific deliverybox */
1246
- deliveryboxGetSpecific: (conf: {
1247
- id: string;
1245
+ /** List MailAddresses belonging to a Project. */
1246
+ listMailAddresses: (conf: {
1247
+ projectId: string;
1248
+ headers?: {
1249
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1250
+ "x-access-token"?: string | undefined;
1251
+ } | undefined;
1252
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
1253
+ /** Get a DeliveryBox. */
1254
+ getDeliveryBox: (conf: {
1255
+ deliveryBoxId: string;
1248
1256
  headers?: {
1249
1257
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1250
1258
  "x-access-token"?: string | undefined;
@@ -1259,17 +1267,9 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
1259
1267
  sendingEnabled: boolean;
1260
1268
  updatedAt: string;
1261
1269
  }>;
1262
- /** Get all mail addresses for a project ID */
1263
- mailaddressList: (conf: {
1264
- projectId: string;
1265
- headers?: {
1266
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1267
- "x-access-token"?: string | undefined;
1268
- } | undefined;
1269
- }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
1270
- /** Get a specific mail address */
1271
- mailaddressGetSpecific: (conf: {
1272
- id: string;
1270
+ /** Get a MailAddress. */
1271
+ getMailAddress: (conf: {
1272
+ mailAddressId: string;
1273
1273
  headers?: {
1274
1274
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1275
1275
  "x-access-token"?: string | undefined;
@@ -1307,8 +1307,8 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
1307
1307
  receivingDisabled: boolean;
1308
1308
  updatedAt: string;
1309
1309
  }>;
1310
- /** Get settings for a given project ID */
1311
- projectsettingGetSpecific: (conf: {
1310
+ /** List mail settings of a Project. */
1311
+ listProjectMailSettings: (conf: {
1312
1312
  projectId: string;
1313
1313
  headers?: {
1314
1314
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
@@ -211,16 +211,16 @@ const buildFileApi = (baseClient) => ({
211
211
  getFile: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource,
212
212
  });
213
213
  const buildMailApi = (baseClient) => ({
214
- /** Get all deliveryboxes by project ID */
215
- deliveryboxList: new react_1.ApiCallAsyncResourceFactory(descriptors.mailDeliveryboxList, baseClient.mail.deliveryboxList).getApiResource,
216
- /** Get a specific deliverybox */
217
- deliveryboxGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.mailDeliveryboxGetSpecific, baseClient.mail.deliveryboxGetSpecific).getApiResource,
218
- /** Get all mail addresses for a project ID */
219
- mailaddressList: new react_1.ApiCallAsyncResourceFactory(descriptors.mailMailaddressList, baseClient.mail.mailaddressList).getApiResource,
220
- /** Get a specific mail address */
221
- mailaddressGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.mailMailaddressGetSpecific, baseClient.mail.mailaddressGetSpecific).getApiResource,
222
- /** Get settings for a given project ID */
223
- projectsettingGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.mailProjectsettingGetSpecific, baseClient.mail.projectsettingGetSpecific).getApiResource,
214
+ /** List DeliveryBoxes belonging to a Project. */
215
+ listDeliveryBoxes: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListDeliveryBoxes, baseClient.mail.listDeliveryBoxes).getApiResource,
216
+ /** List MailAddresses belonging to a Project. */
217
+ listMailAddresses: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListMailAddresses, baseClient.mail.listMailAddresses).getApiResource,
218
+ /** Get a DeliveryBox. */
219
+ getDeliveryBox: new react_1.ApiCallAsyncResourceFactory(descriptors.mailGetDeliveryBox, baseClient.mail.getDeliveryBox).getApiResource,
220
+ /** Get a MailAddress. */
221
+ getMailAddress: new react_1.ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
222
+ /** List mail settings of a Project. */
223
+ listProjectMailSettings: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
224
224
  });
225
225
  const buildNotificationApi = (baseClient) => ({
226
226
  /** Getting the subscription status of the subscription. */