@mittwald/api-client 3.1.20 → 3.1.21

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.
@@ -504,6 +504,18 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
504
504
  status?: import("./types.js").MittwaldAPIV2.Components.Schemas.InvoiceInvoiceSettingsStatus[] | undefined;
505
505
  targetDay?: number | undefined;
506
506
  }>;
507
+ /** Request an Access Token for the Invoice file. */
508
+ invoiceGetFileAccessToken: (conf: {
509
+ customerId: string;
510
+ invoiceId: string;
511
+ headers?: {
512
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
513
+ "x-access-token"?: string | undefined;
514
+ } | undefined;
515
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<{
516
+ accessToken: string;
517
+ expiresAt: string;
518
+ }>;
507
519
  /** List Invoices of a Customer. */
508
520
  invoiceListCustomerInvoices: (conf: {
509
521
  customerId: string;
@@ -574,18 +586,6 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
574
586
  templateNames?: string[] | undefined;
575
587
  } | undefined;
576
588
  }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
577
- /** Request an Access Token for the Invoice file. */
578
- invoiceGetFileAccessToken: (conf: {
579
- customerId: string;
580
- invoiceId: string;
581
- headers?: {
582
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
583
- "x-access-token"?: string | undefined;
584
- } | undefined;
585
- }) => import("@mittwald/react-use-promise/types").AsyncResource<{
586
- accessToken: string;
587
- expiresAt: string;
588
- }>;
589
589
  };
590
590
  declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
591
591
  /** Get all conversation the authenticated user has created or has access to. */
@@ -612,6 +612,15 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
612
612
  name: string;
613
613
  referenceType: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationCategoryReferenceType;
614
614
  }>;
615
+ /** Get members of a support conversation. */
616
+ getConversationMembers: (conf: {
617
+ conversationId: string;
618
+ headers?: {
619
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
620
+ } | undefined;
621
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<(import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser & {
622
+ active: boolean;
623
+ })[]>;
615
624
  /** Get a support conversation. */
616
625
  getConversation: (conf: {
617
626
  conversationId: string;
@@ -651,15 +660,6 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
651
660
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
652
661
  } | undefined;
653
662
  } | null | undefined) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationCategory[]>;
654
- /** Get members of a support conversation. */
655
- getConversationMembers: (conf: {
656
- conversationId: string;
657
- headers?: {
658
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
659
- } | undefined;
660
- }) => import("@mittwald/react-use-promise/types").AsyncResource<(import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser & {
661
- active: boolean;
662
- })[]>;
663
663
  };
664
664
  declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
665
665
  /** List Cronjobs belonging to a Project. */
@@ -1267,6 +1267,22 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1267
1267
  }) => import("@mittwald/react-use-promise/types").AsyncResource<string>;
1268
1268
  };
1269
1269
  declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
1270
+ /** List DeliveryBoxes belonging to a Project. */
1271
+ listDeliveryBoxes: (conf: {
1272
+ projectId: string;
1273
+ headers?: {
1274
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1275
+ "x-access-token"?: string | undefined;
1276
+ } | undefined;
1277
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailDeliverybox[]>;
1278
+ /** List MailAddresses belonging to a Project. */
1279
+ listMailAddresses: (conf: {
1280
+ projectId: string;
1281
+ headers?: {
1282
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1283
+ "x-access-token"?: string | undefined;
1284
+ } | undefined;
1285
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
1270
1286
  /** Get a DeliveryBox. */
1271
1287
  getDeliveryBox: (conf: {
1272
1288
  deliveryBoxId: string;
@@ -1324,22 +1340,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
1324
1340
  receivingDisabled: boolean;
1325
1341
  updatedAt: string;
1326
1342
  }>;
1327
- /** List DeliveryBoxes belonging to a Project. */
1328
- listDeliveryBoxes: (conf: {
1329
- projectId: string;
1330
- headers?: {
1331
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1332
- "x-access-token"?: string | undefined;
1333
- } | undefined;
1334
- }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailDeliverybox[]>;
1335
- /** List MailAddresses belonging to a Project. */
1336
- listMailAddresses: (conf: {
1337
- projectId: string;
1338
- headers?: {
1339
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1340
- "x-access-token"?: string | undefined;
1341
- } | undefined;
1342
- }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
1343
1343
  /** List mail settings of a Project. */
1344
1344
  listProjectMailSettings: (conf: {
1345
1345
  projectId: string;
@@ -95,6 +95,8 @@ const buildContractApi = (baseClient) => ({
95
95
  invoiceDetailOfInvoice: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceDetailOfInvoice, baseClient.contract.invoiceDetailOfInvoice).getApiResource,
96
96
  /** Get InvoiceSettings of a Customer. */
97
97
  invoiceGetDetailOfInvoiceSettings: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceGetDetailOfInvoiceSettings, baseClient.contract.invoiceGetDetailOfInvoiceSettings).getApiResource,
98
+ /** Request an Access Token for the Invoice file. */
99
+ invoiceGetFileAccessToken: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceGetFileAccessToken, baseClient.contract.invoiceGetFileAccessToken).getApiResource,
98
100
  /** List Invoices of a Customer. */
99
101
  invoiceListCustomerInvoices: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceListCustomerInvoices, baseClient.contract.invoiceListCustomerInvoices).getApiResource,
100
102
  /** Get Order for Customer. */
@@ -103,8 +105,6 @@ const buildContractApi = (baseClient) => ({
103
105
  orderListCustomerOrders: new react_1.ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
104
106
  /** Get list of Orders of a Project. */
105
107
  orderListProjectOrders: new react_1.ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
106
- /** Request an Access Token for the Invoice file. */
107
- invoiceGetFileAccessToken: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceGetFileAccessToken, baseClient.contract.invoiceGetFileAccessToken).getApiResource,
108
108
  });
109
109
  const buildConversationApi = (baseClient) => ({
110
110
  /** Get all conversation the authenticated user has created or has access to. */
@@ -113,14 +113,14 @@ const buildConversationApi = (baseClient) => ({
113
113
  listMessagesByConversation: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationListMessagesByConversation, baseClient.conversation.listMessagesByConversation).getApiResource,
114
114
  /** Get a specific conversation category. */
115
115
  getCategory: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetCategory, baseClient.conversation.getCategory).getApiResource,
116
+ /** Get members of a support conversation. */
117
+ getConversationMembers: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetConversationMembers, baseClient.conversation.getConversationMembers).getApiResource,
116
118
  /** Get a support conversation. */
117
119
  getConversation: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetConversation, baseClient.conversation.getConversation).getApiResource,
118
120
  /** Request an access token for the File belonging to the Conversation. */
119
121
  getFileAccessToken: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetFileAccessToken, baseClient.conversation.getFileAccessToken).getApiResource,
120
122
  /** Get all conversation categories. */
121
123
  listCategories: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationListCategories, baseClient.conversation.listCategories).getApiResource,
122
- /** Get members of a support conversation. */
123
- getConversationMembers: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetConversationMembers, baseClient.conversation.getConversationMembers).getApiResource,
124
124
  });
125
125
  const buildCronjobApi = (baseClient) => ({
126
126
  /** List Cronjobs belonging to a Project. */
@@ -215,14 +215,14 @@ const buildFileApi = (baseClient) => ({
215
215
  getFile: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource,
216
216
  });
217
217
  const buildMailApi = (baseClient) => ({
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
218
  /** List DeliveryBoxes belonging to a Project. */
223
219
  listDeliveryBoxes: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListDeliveryBoxes, baseClient.mail.listDeliveryBoxes).getApiResource,
224
220
  /** List MailAddresses belonging to a Project. */
225
221
  listMailAddresses: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListMailAddresses, baseClient.mail.listMailAddresses).getApiResource,
222
+ /** Get a DeliveryBox. */
223
+ getDeliveryBox: new react_1.ApiCallAsyncResourceFactory(descriptors.mailGetDeliveryBox, baseClient.mail.getDeliveryBox).getApiResource,
224
+ /** Get a MailAddress. */
225
+ getMailAddress: new react_1.ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
226
226
  /** List mail settings of a Project. */
227
227
  listProjectMailSettings: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
228
228
  });