@mittwald/api-client 3.1.19 → 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;
@@ -625,12 +634,14 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
625
634
  createdBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
626
635
  lastMessageAt?: string | undefined;
627
636
  lastMessageBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
637
+ mainUser: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser;
628
638
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
629
639
  relations?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[] | undefined;
630
640
  sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
631
641
  shortId: string;
632
642
  status: "open" | "answered" | "closed";
633
643
  title: string;
644
+ visibility: "shared" | "private";
634
645
  }>;
635
646
  /** Request an access token for the File belonging to the Conversation. */
636
647
  getFileAccessToken: (conf: {
@@ -1256,6 +1267,22 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1256
1267
  }) => import("@mittwald/react-use-promise/types").AsyncResource<string>;
1257
1268
  };
1258
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[]>;
1259
1286
  /** Get a DeliveryBox. */
1260
1287
  getDeliveryBox: (conf: {
1261
1288
  deliveryBoxId: string;
@@ -1313,22 +1340,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
1313
1340
  receivingDisabled: boolean;
1314
1341
  updatedAt: string;
1315
1342
  }>;
1316
- /** List DeliveryBoxes belonging to a Project. */
1317
- listDeliveryBoxes: (conf: {
1318
- projectId: string;
1319
- headers?: {
1320
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1321
- "x-access-token"?: string | undefined;
1322
- } | undefined;
1323
- }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailDeliverybox[]>;
1324
- /** List MailAddresses belonging to a Project. */
1325
- listMailAddresses: (conf: {
1326
- projectId: string;
1327
- headers?: {
1328
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1329
- "x-access-token"?: string | undefined;
1330
- } | undefined;
1331
- }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
1332
1343
  /** List mail settings of a Project. */
1333
1344
  listProjectMailSettings: (conf: {
1334
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,6 +113,8 @@ 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. */
@@ -213,14 +215,14 @@ const buildFileApi = (baseClient) => ({
213
215
  getFile: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource,
214
216
  });
215
217
  const buildMailApi = (baseClient) => ({
216
- /** Get a DeliveryBox. */
217
- getDeliveryBox: new react_1.ApiCallAsyncResourceFactory(descriptors.mailGetDeliveryBox, baseClient.mail.getDeliveryBox).getApiResource,
218
- /** Get a MailAddress. */
219
- getMailAddress: new react_1.ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
220
218
  /** List DeliveryBoxes belonging to a Project. */
221
219
  listDeliveryBoxes: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListDeliveryBoxes, baseClient.mail.listDeliveryBoxes).getApiResource,
222
220
  /** List MailAddresses belonging to a Project. */
223
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,
224
226
  /** List mail settings of a Project. */
225
227
  listProjectMailSettings: new react_1.ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
226
228
  });