@mittwald/api-client 3.1.46 → 3.1.47

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/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { assertStatus } from '@mittwald/api-client-commons';
2
- import { M as MittwaldAPIV2Client } from './shared/api-client.c61312b7.mjs';
3
- export { a as MittwaldAPIV2 } from './shared/api-client.c61312b7.mjs';
2
+ import { M as MittwaldAPIV2Client } from './shared/api-client.858a0957.mjs';
3
+ export { a as MittwaldAPIV2 } from './shared/api-client.858a0957.mjs';
4
4
  import 'axios';
5
5
 
6
6
  declare class MittwaldAPIClient extends MittwaldAPIV2Client {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { assertStatus } from '@mittwald/api-client-commons';
2
- import { M as MittwaldAPIV2Client } from './shared/api-client.c61312b7.js';
3
- export { a as MittwaldAPIV2 } from './shared/api-client.c61312b7.js';
2
+ import { M as MittwaldAPIV2Client } from './shared/api-client.858a0957.js';
3
+ export { a as MittwaldAPIV2 } from './shared/api-client.858a0957.js';
4
4
  import 'axios';
5
5
 
6
6
  declare class MittwaldAPIClient extends MittwaldAPIV2Client {
package/dist/react.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _mittwald_react_use_promise from '@mittwald/react-use-promise';
2
- import { M as MittwaldAPIV2Client, a as MittwaldAPIV2 } from './shared/api-client.c61312b7.mjs';
2
+ import { M as MittwaldAPIV2Client, a as MittwaldAPIV2 } from './shared/api-client.858a0957.mjs';
3
3
  import '@mittwald/api-client-commons';
4
4
  import 'axios';
5
5
 
@@ -732,7 +732,7 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
732
732
  abortedBy?: {
733
733
  id?: string | undefined;
734
734
  } | undefined;
735
- durationInMilliseconds: number;
735
+ durationInMilliseconds?: number | undefined;
736
736
  end?: string | undefined;
737
737
  executionEnd?: string | undefined;
738
738
  executionStart?: string | undefined;
@@ -792,7 +792,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
792
792
  "x-access-token"?: string | undefined;
793
793
  } | undefined;
794
794
  }) => _mittwald_react_use_promise.AsyncResource<{
795
- avatarRefId: string;
795
+ avatarRefId?: string | undefined;
796
796
  customerId: string;
797
797
  customerName: string;
798
798
  id: string;
@@ -813,7 +813,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
813
813
  customerId: string;
814
814
  expiresAt?: string | undefined;
815
815
  id: string;
816
- inviteId: string;
816
+ inviteId?: string | undefined;
817
817
  memberSince?: string | undefined;
818
818
  role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
819
819
  userId: string;
@@ -851,7 +851,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
851
851
  "x-access-token"?: string | undefined;
852
852
  };
853
853
  }) => _mittwald_react_use_promise.AsyncResource<{
854
- avatarRefId: string;
854
+ avatarRefId?: string | undefined;
855
855
  customerId: string;
856
856
  customerName: string;
857
857
  id: string;
@@ -1193,6 +1193,7 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1193
1193
  }) => _mittwald_react_use_promise.AsyncResource<{
1194
1194
  friendlyURL: string;
1195
1195
  id: string;
1196
+ mimeType: string;
1196
1197
  name: string;
1197
1198
  sizeInBytes: number;
1198
1199
  type: string;
@@ -1204,6 +1205,7 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1204
1205
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1205
1206
  } | undefined;
1206
1207
  }) => _mittwald_react_use_promise.AsyncResource<{
1208
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
1207
1209
  maxSizeInKB: number;
1208
1210
  mimeTypes: string[];
1209
1211
  properties?: {
@@ -1226,6 +1228,7 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1226
1228
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1227
1229
  } | undefined;
1228
1230
  }) => _mittwald_react_use_promise.AsyncResource<{
1231
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
1229
1232
  maxSizeInKB: number;
1230
1233
  mimeTypes: string[];
1231
1234
  properties?: {
@@ -1678,7 +1681,7 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
1678
1681
  expiresAt?: string | undefined;
1679
1682
  id: string;
1680
1683
  inherited: boolean;
1681
- inviteId: string;
1684
+ inviteId?: string | undefined;
1682
1685
  memberSince?: string | undefined;
1683
1686
  projectId: string;
1684
1687
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
@@ -1743,7 +1746,7 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
1743
1746
  expiresAt?: string | undefined;
1744
1747
  id: string;
1745
1748
  inherited: boolean;
1746
- inviteId: string;
1749
+ inviteId?: string | undefined;
1747
1750
  memberSince?: string | undefined;
1748
1751
  projectId: string;
1749
1752
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _mittwald_react_use_promise from '@mittwald/react-use-promise';
2
- import { M as MittwaldAPIV2Client, a as MittwaldAPIV2 } from './shared/api-client.c61312b7.js';
2
+ import { M as MittwaldAPIV2Client, a as MittwaldAPIV2 } from './shared/api-client.858a0957.js';
3
3
  import '@mittwald/api-client-commons';
4
4
  import 'axios';
5
5
 
@@ -732,7 +732,7 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
732
732
  abortedBy?: {
733
733
  id?: string | undefined;
734
734
  } | undefined;
735
- durationInMilliseconds: number;
735
+ durationInMilliseconds?: number | undefined;
736
736
  end?: string | undefined;
737
737
  executionEnd?: string | undefined;
738
738
  executionStart?: string | undefined;
@@ -792,7 +792,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
792
792
  "x-access-token"?: string | undefined;
793
793
  } | undefined;
794
794
  }) => _mittwald_react_use_promise.AsyncResource<{
795
- avatarRefId: string;
795
+ avatarRefId?: string | undefined;
796
796
  customerId: string;
797
797
  customerName: string;
798
798
  id: string;
@@ -813,7 +813,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
813
813
  customerId: string;
814
814
  expiresAt?: string | undefined;
815
815
  id: string;
816
- inviteId: string;
816
+ inviteId?: string | undefined;
817
817
  memberSince?: string | undefined;
818
818
  role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
819
819
  userId: string;
@@ -851,7 +851,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
851
851
  "x-access-token"?: string | undefined;
852
852
  };
853
853
  }) => _mittwald_react_use_promise.AsyncResource<{
854
- avatarRefId: string;
854
+ avatarRefId?: string | undefined;
855
855
  customerId: string;
856
856
  customerName: string;
857
857
  id: string;
@@ -1193,6 +1193,7 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1193
1193
  }) => _mittwald_react_use_promise.AsyncResource<{
1194
1194
  friendlyURL: string;
1195
1195
  id: string;
1196
+ mimeType: string;
1196
1197
  name: string;
1197
1198
  sizeInBytes: number;
1198
1199
  type: string;
@@ -1204,6 +1205,7 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1204
1205
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1205
1206
  } | undefined;
1206
1207
  }) => _mittwald_react_use_promise.AsyncResource<{
1208
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
1207
1209
  maxSizeInKB: number;
1208
1210
  mimeTypes: string[];
1209
1211
  properties?: {
@@ -1226,6 +1228,7 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1226
1228
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1227
1229
  } | undefined;
1228
1230
  }) => _mittwald_react_use_promise.AsyncResource<{
1231
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
1229
1232
  maxSizeInKB: number;
1230
1233
  mimeTypes: string[];
1231
1234
  properties?: {
@@ -1678,7 +1681,7 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
1678
1681
  expiresAt?: string | undefined;
1679
1682
  id: string;
1680
1683
  inherited: boolean;
1681
- inviteId: string;
1684
+ inviteId?: string | undefined;
1682
1685
  memberSince?: string | undefined;
1683
1686
  projectId: string;
1684
1687
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
@@ -1743,7 +1746,7 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
1743
1746
  expiresAt?: string | undefined;
1744
1747
  id: string;
1745
1748
  inherited: boolean;
1746
- inviteId: string;
1749
+ inviteId?: string | undefined;
1747
1750
  memberSince?: string | undefined;
1748
1751
  projectId: string;
1749
1752
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
@@ -200,7 +200,7 @@ declare const customerListOfCustomerCategories: OpenAPIOperation$1<RequestType$1
200
200
  /** Create a new customer category. */
201
201
  declare const customerCreateCategory: OpenAPIOperation$1<RequestType$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
202
202
  /** Create a CustomerInvite. */
203
- declare const customerCreateCustomerInvite: OpenAPIOperation$1<RequestType$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
203
+ declare const customerCreateCustomerInvite: OpenAPIOperation$1<RequestType$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
204
204
  /** Get all customer profiles the authenticated user has access to. */
205
205
  declare const customerListCustomers: OpenAPIOperation$1<RequestType$1<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
206
206
  /** Create a new customer profile. */
@@ -2491,7 +2491,7 @@ declare namespace MittwaldAPIV2 {
2491
2491
  abortedBy?: {
2492
2492
  id?: string;
2493
2493
  };
2494
- durationInMilliseconds: number;
2494
+ durationInMilliseconds?: number;
2495
2495
  end?: string;
2496
2496
  /**
2497
2497
  * @deprecated
@@ -2830,11 +2830,17 @@ declare namespace MittwaldAPIV2 {
2830
2830
  interface FileFileMeta {
2831
2831
  friendlyURL: string;
2832
2832
  id: string;
2833
+ mimeType: string;
2833
2834
  name: string;
2834
2835
  sizeInBytes: number;
2836
+ /**
2837
+ * @deprecated
2838
+ * deprecated, see mimeType
2839
+ */
2835
2840
  type: string;
2836
2841
  }
2837
2842
  interface FileFileUploadRules {
2843
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
2838
2844
  maxSizeInKB: number;
2839
2845
  mimeTypes: string[];
2840
2846
  properties?: {
@@ -3148,7 +3154,7 @@ declare namespace MittwaldAPIV2 {
3148
3154
  /**
3149
3155
  * Reference to the Customer's avatar.
3150
3156
  */
3151
- avatarRefId: string;
3157
+ avatarRefId?: string;
3152
3158
  /**
3153
3159
  * ID of the Customer the invite is for.
3154
3160
  */
@@ -3192,7 +3198,7 @@ declare namespace MittwaldAPIV2 {
3192
3198
  /**
3193
3199
  * ID of the CustomerInvite the membership was created from.
3194
3200
  */
3195
- inviteId: string;
3201
+ inviteId?: string;
3196
3202
  /**
3197
3203
  * Date the CustomerMembership was created at.
3198
3204
  */
@@ -3203,12 +3209,12 @@ declare namespace MittwaldAPIV2 {
3203
3209
  */
3204
3210
  userId: string;
3205
3211
  }
3206
- type MembershipCustomerRoles = "owner" | "member" | "accountant";
3212
+ type MembershipCustomerRoles = "notset" | "owner" | "member" | "accountant";
3207
3213
  interface MembershipInviteInformation {
3208
3214
  /**
3209
3215
  * Token for authentication purposes.
3210
3216
  */
3211
- invitationToken: string;
3217
+ invitationToken?: string;
3212
3218
  /**
3213
3219
  * ID of the user that created the invite.
3214
3220
  */
@@ -3216,7 +3222,7 @@ declare namespace MittwaldAPIV2 {
3216
3222
  /**
3217
3223
  * ID of the user this invite is for.
3218
3224
  */
3219
- userId: string;
3225
+ userId?: string;
3220
3226
  }
3221
3227
  interface MembershipProjectInvite {
3222
3228
  /**
@@ -3262,7 +3268,7 @@ declare namespace MittwaldAPIV2 {
3262
3268
  /**
3263
3269
  * ID of the ProjectInvite the membership was created from.
3264
3270
  */
3265
- inviteId: string;
3271
+ inviteId?: string;
3266
3272
  /**
3267
3273
  * Date the projectMembership was created at.
3268
3274
  */
@@ -3363,7 +3369,6 @@ declare namespace MittwaldAPIV2 {
3363
3369
  }
3364
3370
  interface OrderOrderItem {
3365
3371
  addons?: MittwaldAPIV2.Components.Schemas.OrderAddons[];
3366
- amount: number;
3367
3372
  articleId: string;
3368
3373
  articleName?: string;
3369
3374
  articleTemplateName?: string;
@@ -3390,9 +3395,9 @@ declare namespace MittwaldAPIV2 {
3390
3395
  }
3391
3396
  type OrderOrderType = "NEW_ORDER" | "CONTRACT_CHANGE";
3392
3397
  interface OrderDomainOrderPreviewResponse {
3393
- domainPrice?: number;
3394
- feePrice?: number;
3395
- totalPrice?: number;
3398
+ domainPrice: number;
3399
+ feePrice: number;
3400
+ totalPrice: number;
3396
3401
  }
3397
3402
  interface OrderHostingOrderPreviewResponse {
3398
3403
  machineTypePrice: number;
@@ -3751,6 +3756,10 @@ declare namespace MittwaldAPIV2 {
3751
3756
  location?: MittwaldAPIV2.Components.Schemas.SignupLocation;
3752
3757
  tokenId: string;
3753
3758
  }
3759
+ interface FileFileType {
3760
+ extensions: string[];
3761
+ mimeType: string;
3762
+ }
3754
3763
  interface CommonsAddress {
3755
3764
  street: string;
3756
3765
  houseNumber: string;
@@ -6854,6 +6863,13 @@ declare namespace MittwaldAPIV2 {
6854
6863
  }
6855
6864
  }
6856
6865
  }
6866
+ namespace $403 {
6867
+ namespace Content {
6868
+ interface ApplicationJson {
6869
+ [k: string]: unknown;
6870
+ }
6871
+ }
6872
+ }
6857
6873
  namespace $409 {
6858
6874
  namespace Content {
6859
6875
  interface ApplicationJson {
@@ -18929,7 +18945,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
18929
18945
  abortedBy?: {
18930
18946
  id?: string | undefined;
18931
18947
  } | undefined;
18932
- durationInMilliseconds: number;
18948
+ durationInMilliseconds?: number | undefined;
18933
18949
  end?: string | undefined;
18934
18950
  executionEnd?: string | undefined;
18935
18951
  executionStart?: string | undefined;
@@ -19109,7 +19125,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19109
19125
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
19110
19126
  }>; /** Get a specific `AppVersion`. */
19111
19127
  }, Response<{
19112
- avatarRefId: string;
19128
+ avatarRefId?: string | undefined;
19113
19129
  customerId: string;
19114
19130
  customerName: string;
19115
19131
  id: string;
@@ -19122,6 +19138,8 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19122
19138
  [x: string]: unknown;
19123
19139
  }, 400, "application/json"> | Response<{
19124
19140
  [x: string]: unknown;
19141
+ }, 403, "application/json"> | Response<{
19142
+ [x: string]: unknown;
19125
19143
  }, 409, "application/json">>>;
19126
19144
  /** Get all customer profiles the authenticated user has access to. */
19127
19145
  listCustomers: (request?: {
@@ -19359,7 +19377,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19359
19377
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
19360
19378
  }>; /** Get a specific `AppVersion`. */
19361
19379
  }, Response<{
19362
- avatarRefId: string;
19380
+ avatarRefId?: string | undefined;
19363
19381
  customerId: string;
19364
19382
  customerName: string;
19365
19383
  id: string;
@@ -19418,7 +19436,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19418
19436
  customerId: string;
19419
19437
  expiresAt?: string | undefined;
19420
19438
  id: string;
19421
- inviteId: string;
19439
+ inviteId?: string | undefined;
19422
19440
  memberSince?: string | undefined;
19423
19441
  role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
19424
19442
  userId: string;
@@ -19626,7 +19644,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19626
19644
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
19627
19645
  }>; /** Get a specific `AppVersion`. */
19628
19646
  }, Response<{
19629
- avatarRefId: string;
19647
+ avatarRefId?: string | undefined;
19630
19648
  customerId: string;
19631
19649
  customerName: string;
19632
19650
  id: string;
@@ -21911,6 +21929,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
21911
21929
  }, Response<{
21912
21930
  friendlyURL: string;
21913
21931
  id: string;
21932
+ mimeType: string;
21914
21933
  name: string;
21915
21934
  sizeInBytes: number;
21916
21935
  type: string;
@@ -21942,6 +21961,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
21942
21961
  }, Response<{
21943
21962
  friendlyURL: string;
21944
21963
  id: string;
21964
+ mimeType: string;
21945
21965
  name: string;
21946
21966
  sizeInBytes: number;
21947
21967
  type: string;
@@ -21973,6 +21993,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
21973
21993
  fileUploadToken: string;
21974
21994
  };
21975
21995
  }, Response<{
21996
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
21976
21997
  maxSizeInKB: number;
21977
21998
  mimeTypes: string[];
21978
21999
  properties?: {
@@ -22009,6 +22030,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
22009
22030
  fileUploadType: "avatar" | "conversation";
22010
22031
  };
22011
22032
  }, Response<{
22033
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
22012
22034
  maxSizeInKB: number;
22013
22035
  mimeTypes: string[];
22014
22036
  properties?: {
@@ -24891,7 +24913,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
24891
24913
  expiresAt?: string | undefined;
24892
24914
  id: string;
24893
24915
  inherited: boolean;
24894
- inviteId: string;
24916
+ inviteId?: string | undefined;
24895
24917
  memberSince?: string | undefined;
24896
24918
  projectId: string;
24897
24919
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
@@ -25139,7 +25161,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
25139
25161
  expiresAt?: string | undefined;
25140
25162
  id: string;
25141
25163
  inherited: boolean;
25142
- inviteId: string;
25164
+ inviteId?: string | undefined;
25143
25165
  memberSince?: string | undefined;
25144
25166
  projectId: string;
25145
25167
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
@@ -200,7 +200,7 @@ declare const customerListOfCustomerCategories: OpenAPIOperation$1<RequestType$1
200
200
  /** Create a new customer category. */
201
201
  declare const customerCreateCategory: OpenAPIOperation$1<RequestType$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCategories.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
202
202
  /** Create a CustomerInvite. */
203
- declare const customerCreateCustomerInvite: OpenAPIOperation$1<RequestType$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
203
+ declare const customerCreateCustomerInvite: OpenAPIOperation$1<RequestType$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2CustomerCustomerIdInvites.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
204
204
  /** Get all customer profiles the authenticated user has access to. */
205
205
  declare const customerListCustomers: OpenAPIOperation$1<RequestType$1<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Header>>, Response$1<Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response$1<Simplify<MittwaldAPIV2.Paths.V2Customers.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
206
206
  /** Create a new customer profile. */
@@ -2491,7 +2491,7 @@ declare namespace MittwaldAPIV2 {
2491
2491
  abortedBy?: {
2492
2492
  id?: string;
2493
2493
  };
2494
- durationInMilliseconds: number;
2494
+ durationInMilliseconds?: number;
2495
2495
  end?: string;
2496
2496
  /**
2497
2497
  * @deprecated
@@ -2830,11 +2830,17 @@ declare namespace MittwaldAPIV2 {
2830
2830
  interface FileFileMeta {
2831
2831
  friendlyURL: string;
2832
2832
  id: string;
2833
+ mimeType: string;
2833
2834
  name: string;
2834
2835
  sizeInBytes: number;
2836
+ /**
2837
+ * @deprecated
2838
+ * deprecated, see mimeType
2839
+ */
2835
2840
  type: string;
2836
2841
  }
2837
2842
  interface FileFileUploadRules {
2843
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
2838
2844
  maxSizeInKB: number;
2839
2845
  mimeTypes: string[];
2840
2846
  properties?: {
@@ -3148,7 +3154,7 @@ declare namespace MittwaldAPIV2 {
3148
3154
  /**
3149
3155
  * Reference to the Customer's avatar.
3150
3156
  */
3151
- avatarRefId: string;
3157
+ avatarRefId?: string;
3152
3158
  /**
3153
3159
  * ID of the Customer the invite is for.
3154
3160
  */
@@ -3192,7 +3198,7 @@ declare namespace MittwaldAPIV2 {
3192
3198
  /**
3193
3199
  * ID of the CustomerInvite the membership was created from.
3194
3200
  */
3195
- inviteId: string;
3201
+ inviteId?: string;
3196
3202
  /**
3197
3203
  * Date the CustomerMembership was created at.
3198
3204
  */
@@ -3203,12 +3209,12 @@ declare namespace MittwaldAPIV2 {
3203
3209
  */
3204
3210
  userId: string;
3205
3211
  }
3206
- type MembershipCustomerRoles = "owner" | "member" | "accountant";
3212
+ type MembershipCustomerRoles = "notset" | "owner" | "member" | "accountant";
3207
3213
  interface MembershipInviteInformation {
3208
3214
  /**
3209
3215
  * Token for authentication purposes.
3210
3216
  */
3211
- invitationToken: string;
3217
+ invitationToken?: string;
3212
3218
  /**
3213
3219
  * ID of the user that created the invite.
3214
3220
  */
@@ -3216,7 +3222,7 @@ declare namespace MittwaldAPIV2 {
3216
3222
  /**
3217
3223
  * ID of the user this invite is for.
3218
3224
  */
3219
- userId: string;
3225
+ userId?: string;
3220
3226
  }
3221
3227
  interface MembershipProjectInvite {
3222
3228
  /**
@@ -3262,7 +3268,7 @@ declare namespace MittwaldAPIV2 {
3262
3268
  /**
3263
3269
  * ID of the ProjectInvite the membership was created from.
3264
3270
  */
3265
- inviteId: string;
3271
+ inviteId?: string;
3266
3272
  /**
3267
3273
  * Date the projectMembership was created at.
3268
3274
  */
@@ -3363,7 +3369,6 @@ declare namespace MittwaldAPIV2 {
3363
3369
  }
3364
3370
  interface OrderOrderItem {
3365
3371
  addons?: MittwaldAPIV2.Components.Schemas.OrderAddons[];
3366
- amount: number;
3367
3372
  articleId: string;
3368
3373
  articleName?: string;
3369
3374
  articleTemplateName?: string;
@@ -3390,9 +3395,9 @@ declare namespace MittwaldAPIV2 {
3390
3395
  }
3391
3396
  type OrderOrderType = "NEW_ORDER" | "CONTRACT_CHANGE";
3392
3397
  interface OrderDomainOrderPreviewResponse {
3393
- domainPrice?: number;
3394
- feePrice?: number;
3395
- totalPrice?: number;
3398
+ domainPrice: number;
3399
+ feePrice: number;
3400
+ totalPrice: number;
3396
3401
  }
3397
3402
  interface OrderHostingOrderPreviewResponse {
3398
3403
  machineTypePrice: number;
@@ -3751,6 +3756,10 @@ declare namespace MittwaldAPIV2 {
3751
3756
  location?: MittwaldAPIV2.Components.Schemas.SignupLocation;
3752
3757
  tokenId: string;
3753
3758
  }
3759
+ interface FileFileType {
3760
+ extensions: string[];
3761
+ mimeType: string;
3762
+ }
3754
3763
  interface CommonsAddress {
3755
3764
  street: string;
3756
3765
  houseNumber: string;
@@ -6854,6 +6863,13 @@ declare namespace MittwaldAPIV2 {
6854
6863
  }
6855
6864
  }
6856
6865
  }
6866
+ namespace $403 {
6867
+ namespace Content {
6868
+ interface ApplicationJson {
6869
+ [k: string]: unknown;
6870
+ }
6871
+ }
6872
+ }
6857
6873
  namespace $409 {
6858
6874
  namespace Content {
6859
6875
  interface ApplicationJson {
@@ -18929,7 +18945,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
18929
18945
  abortedBy?: {
18930
18946
  id?: string | undefined;
18931
18947
  } | undefined;
18932
- durationInMilliseconds: number;
18948
+ durationInMilliseconds?: number | undefined;
18933
18949
  end?: string | undefined;
18934
18950
  executionEnd?: string | undefined;
18935
18951
  executionStart?: string | undefined;
@@ -19109,7 +19125,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19109
19125
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
19110
19126
  }>; /** Get a specific `AppVersion`. */
19111
19127
  }, Response<{
19112
- avatarRefId: string;
19128
+ avatarRefId?: string | undefined;
19113
19129
  customerId: string;
19114
19130
  customerName: string;
19115
19131
  id: string;
@@ -19122,6 +19138,8 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19122
19138
  [x: string]: unknown;
19123
19139
  }, 400, "application/json"> | Response<{
19124
19140
  [x: string]: unknown;
19141
+ }, 403, "application/json"> | Response<{
19142
+ [x: string]: unknown;
19125
19143
  }, 409, "application/json">>>;
19126
19144
  /** Get all customer profiles the authenticated user has access to. */
19127
19145
  listCustomers: (request?: {
@@ -19359,7 +19377,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19359
19377
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
19360
19378
  }>; /** Get a specific `AppVersion`. */
19361
19379
  }, Response<{
19362
- avatarRefId: string;
19380
+ avatarRefId?: string | undefined;
19363
19381
  customerId: string;
19364
19382
  customerName: string;
19365
19383
  id: string;
@@ -19418,7 +19436,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19418
19436
  customerId: string;
19419
19437
  expiresAt?: string | undefined;
19420
19438
  id: string;
19421
- inviteId: string;
19439
+ inviteId?: string | undefined;
19422
19440
  memberSince?: string | undefined;
19423
19441
  role: MittwaldAPIV2.Components.Schemas.MembershipCustomerRoles;
19424
19442
  userId: string;
@@ -19626,7 +19644,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
19626
19644
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
19627
19645
  }>; /** Get a specific `AppVersion`. */
19628
19646
  }, Response<{
19629
- avatarRefId: string;
19647
+ avatarRefId?: string | undefined;
19630
19648
  customerId: string;
19631
19649
  customerName: string;
19632
19650
  id: string;
@@ -21911,6 +21929,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
21911
21929
  }, Response<{
21912
21930
  friendlyURL: string;
21913
21931
  id: string;
21932
+ mimeType: string;
21914
21933
  name: string;
21915
21934
  sizeInBytes: number;
21916
21935
  type: string;
@@ -21942,6 +21961,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
21942
21961
  }, Response<{
21943
21962
  friendlyURL: string;
21944
21963
  id: string;
21964
+ mimeType: string;
21945
21965
  name: string;
21946
21966
  sizeInBytes: number;
21947
21967
  type: string;
@@ -21973,6 +21993,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
21973
21993
  fileUploadToken: string;
21974
21994
  };
21975
21995
  }, Response<{
21996
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
21976
21997
  maxSizeInKB: number;
21977
21998
  mimeTypes: string[];
21978
21999
  properties?: {
@@ -22009,6 +22030,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
22009
22030
  fileUploadType: "avatar" | "conversation";
22010
22031
  };
22011
22032
  }, Response<{
22033
+ fileTypes: MittwaldAPIV2.Components.Schemas.FileFileType[];
22012
22034
  maxSizeInKB: number;
22013
22035
  mimeTypes: string[];
22014
22036
  properties?: {
@@ -24891,7 +24913,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
24891
24913
  expiresAt?: string | undefined;
24892
24914
  id: string;
24893
24915
  inherited: boolean;
24894
- inviteId: string;
24916
+ inviteId?: string | undefined;
24895
24917
  memberSince?: string | undefined;
24896
24918
  projectId: string;
24897
24919
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
@@ -25139,7 +25161,7 @@ declare class MittwaldAPIV2Client extends ApiClientBase {
25139
25161
  expiresAt?: string | undefined;
25140
25162
  id: string;
25141
25163
  inherited: boolean;
25142
- inviteId: string;
25164
+ inviteId?: string | undefined;
25143
25165
  memberSince?: string | undefined;
25144
25166
  projectId: string;
25145
25167
  role: MittwaldAPIV2.Components.Schemas.MembershipProjectRoles;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '3.1.46';
1
+ export declare const MittwaldAPIClientVersion = '3.1.47';
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '3.1.46';
1
+ export const MittwaldAPIClientVersion = '3.1.47';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "3.1.46",
3
+ "version": "3.1.47",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",