@mittwald/api-client 4.145.0 → 4.146.0

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.
@@ -234,6 +234,8 @@ const buildMarketplaceApi = (baseClient) => ({
234
234
  extensionListExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensions, baseClient.marketplace.extensionListExtensions).getApiResource,
235
235
  /** List Extensions of own contributor. */
236
236
  extensionListOwnExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListOwnExtensions, baseClient.marketplace.extensionListOwnExtensions).getApiResource,
237
+ /** List Scopes. */
238
+ extensionListScopes: new ApiCallAsyncResourceFactory(descriptors.extensionListScopes, baseClient.marketplace.extensionListScopes).getApiResource,
237
239
  });
238
240
  const buildFileApi = (baseClient) => ({
239
241
  /** Get a File's meta. */
@@ -253,6 +253,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
253
253
  extensionListOwnExtensions: this.requestFunctionFactory(descriptors.extensionListOwnExtensions),
254
254
  /** Register an Extension. */
255
255
  extensionRegisterExtension: this.requestFunctionFactory(descriptors.extensionRegisterExtension),
256
+ /** List Scopes. */
257
+ extensionListScopes: this.requestFunctionFactory(descriptors.extensionListScopes),
256
258
  /** Remove an asset of an extension. */
257
259
  extensionRemoveAsset: this.requestFunctionFactory(descriptors.extensionRemoveAsset),
258
260
  /** Add a logo to an extension. */
@@ -1240,6 +1240,12 @@ export const extensionRegisterExtension = {
1240
1240
  method: "POST",
1241
1241
  operationId: "extension-register-extension",
1242
1242
  };
1243
+ /** List Scopes. */
1244
+ export const extensionListScopes = {
1245
+ path: "/v2/scopes",
1246
+ method: "GET",
1247
+ operationId: "extension-list-scopes",
1248
+ };
1243
1249
  /** Remove an asset of an extension. */
1244
1250
  export const extensionRemoveAsset = {
1245
1251
  path: "/v2/contributors/{contributorId}/extensions/{extensionId}/assets/{assetRefId}",
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.144.0';
1
+ export const MittwaldAPIClientVersion = '4.145.0';
@@ -1530,20 +1530,23 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
1530
1530
  };
1531
1531
  declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
1532
1532
  /** List ExtensionInstances. */
1533
- extensionListExtensionInstances: (conf: {
1534
- queryParameters: {
1533
+ extensionListExtensionInstances: (conf?: {
1534
+ headers?: {
1535
1535
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1536
- context: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
1537
- contextId: string;
1536
+ "x-access-token"?: string | undefined;
1537
+ } | undefined;
1538
+ queryParameters?: {
1539
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1540
+ context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
1541
+ contextId?: string | undefined;
1542
+ extensionId?: string | undefined;
1538
1543
  limit?: number | undefined;
1539
1544
  skip?: number | undefined;
1540
1545
  page?: number | undefined;
1541
- };
1542
- headers?: {
1543
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1544
- "x-access-token"?: string | undefined;
1546
+ sort?: ("createdAt" | "exensionId")[] | undefined;
1547
+ order?: ("asc" | "desc")[] | undefined;
1545
1548
  } | undefined;
1546
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstance[]>;
1549
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstance[]>;
1547
1550
  /** Get an ExtensionInstance. */
1548
1551
  extensionGetExtensionInstance: (conf: {
1549
1552
  extensionInstanceId: string;
@@ -1726,6 +1729,14 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
1726
1729
  page?: number | undefined;
1727
1730
  } | undefined;
1728
1731
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceOwnExtension[]>;
1732
+ /** List Scopes. */
1733
+ extensionListScopes: (conf?: {
1734
+ headers?: {
1735
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1736
+ } | undefined;
1737
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<{
1738
+ name: string;
1739
+ }[]>;
1729
1740
  };
1730
1741
  declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1731
1742
  /** Get a File's meta. */
@@ -6225,30 +6225,36 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
6225
6225
  [x: string]: unknown;
6226
6226
  }, 429, "application/json">>>;
6227
6227
  /** List ExtensionInstances. */
6228
- extensionListExtensionInstances: (request: {
6229
- queryParameters: {
6228
+ extensionListExtensionInstances: (request?: {
6229
+ headers?: {
6230
6230
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
6231
- context: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
6232
- contextId: string;
6231
+ "x-access-token"?: string | undefined;
6232
+ } | undefined;
6233
+ queryParameters?: {
6234
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
6235
+ context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
6236
+ contextId?: string | undefined;
6237
+ extensionId?: string | undefined;
6233
6238
  limit?: number | undefined;
6234
6239
  skip?: number | undefined;
6235
6240
  page?: number | undefined;
6236
- };
6237
- headers?: {
6238
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
6239
- "x-access-token"?: string | undefined;
6241
+ sort?: ("createdAt" | "exensionId")[] | undefined;
6242
+ order?: ("asc" | "desc")[] | undefined;
6240
6243
  } | undefined;
6241
- }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
6244
+ } | null | undefined, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
6242
6245
  headers?: Partial<{
6243
6246
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6244
6247
  }>;
6245
6248
  } & {
6246
6249
  queryParameters: {
6250
+ context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
6251
+ contextId?: string | undefined;
6252
+ extensionId?: string | undefined;
6247
6253
  limit?: number | undefined;
6248
6254
  skip?: number | undefined;
6249
6255
  page?: number | undefined;
6250
- context: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
6251
- contextId: string;
6256
+ sort?: ("createdAt" | "exensionId")[] | undefined;
6257
+ order?: ("asc" | "desc")[] | undefined;
6252
6258
  } & Partial<{
6253
6259
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6254
6260
  }>;
@@ -6268,11 +6274,14 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
6268
6274
  }>;
6269
6275
  } & {
6270
6276
  queryParameters: {
6277
+ context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
6278
+ contextId?: string | undefined;
6279
+ extensionId?: string | undefined;
6271
6280
  limit?: number | undefined;
6272
6281
  skip?: number | undefined;
6273
6282
  page?: number | undefined;
6274
- context: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
6275
- contextId: string;
6283
+ sort?: ("createdAt" | "exensionId")[] | undefined;
6284
+ order?: ("asc" | "desc")[] | undefined;
6276
6285
  } & Partial<{
6277
6286
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6278
6287
  }>;
@@ -6716,6 +6725,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
6716
6725
  contributorId: string;
6717
6726
  extensionId: string;
6718
6727
  data?: {
6728
+ assets?: string[] | undefined;
6719
6729
  deprecation?: {
6720
6730
  deprecatedAt: string;
6721
6731
  note?: string | undefined;
@@ -6773,6 +6783,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
6773
6783
  } | undefined;
6774
6784
  }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
6775
6785
  data: {
6786
+ assets?: string[] | undefined;
6776
6787
  deprecation?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionDeprecation | undefined;
6777
6788
  description?: string | undefined;
6778
6789
  detailedDescriptions?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions | undefined;
@@ -6848,6 +6859,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
6848
6859
  [x: string]: unknown;
6849
6860
  }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
6850
6861
  data: {
6862
+ assets?: string[] | undefined;
6851
6863
  deprecation?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionDeprecation | undefined;
6852
6864
  description?: string | undefined;
6853
6865
  detailedDescriptions?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions | undefined;
@@ -7849,6 +7861,28 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
7849
7861
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
7850
7862
  [x: string]: unknown;
7851
7863
  }, 429, "application/json">>>;
7864
+ /** List Scopes. */
7865
+ extensionListScopes: (request?: {
7866
+ headers?: {
7867
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
7868
+ } | undefined;
7869
+ } | null | undefined, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
7870
+ headers?: Partial<{
7871
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
7872
+ }>;
7873
+ }, import("@mittwald/api-client-commons").Response<{
7874
+ name: string;
7875
+ }[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
7876
+ [x: string]: unknown;
7877
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
7878
+ headers?: Partial<{
7879
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
7880
+ }>;
7881
+ }, import("@mittwald/api-client-commons").Response<{
7882
+ name: string;
7883
+ }[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
7884
+ [x: string]: unknown;
7885
+ }, 429, "application/json">>>;
7852
7886
  /** Remove an asset of an extension. */
7853
7887
  extensionRemoveAsset: (request: {
7854
7888
  contributorId: string;
@@ -417,6 +417,8 @@ export declare const extensionListExtensions: OpenAPIOperation<RequestType<Simpl
417
417
  export declare const extensionListOwnExtensions: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
418
418
  /** Register an Extension. */
419
419
  export declare const extensionRegisterExtension: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
420
+ /** List Scopes. */
421
+ export declare const extensionListScopes: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2Scopes.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2Scopes.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2Scopes.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2Scopes.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Scopes.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Scopes.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
420
422
  /** Remove an asset of an extension. */
421
423
  export declare const extensionRemoveAsset: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId.Delete.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
422
424
  /** Add a logo to an extension. */
@@ -830,6 +830,10 @@ export declare namespace MittwaldAPIV2 {
830
830
  type RequestData = InferredRequestData<typeof descriptors.extensionRegisterExtension>;
831
831
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.extensionRegisterExtension, TStatus>;
832
832
  }
833
+ namespace ExtensionListScopes {
834
+ type RequestData = InferredRequestData<typeof descriptors.extensionListScopes>;
835
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.extensionListScopes, TStatus>;
836
+ }
833
837
  namespace ExtensionRemoveAsset {
834
838
  type RequestData = InferredRequestData<typeof descriptors.extensionRemoveAsset>;
835
839
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.extensionRemoveAsset, TStatus>;
@@ -3682,6 +3686,19 @@ export declare namespace MittwaldAPIV2 {
3682
3686
  keepDays: number;
3683
3687
  relocateSensitivity?: number;
3684
3688
  }
3689
+ interface MarketplaceContractPartner {
3690
+ contractPartner: {
3691
+ address: MittwaldAPIV2.Components.Schemas.CommonsAddress;
3692
+ company?: string;
3693
+ email: string;
3694
+ firstName: string;
3695
+ lastName: string;
3696
+ };
3697
+ createdAt: string;
3698
+ extensionId: string;
3699
+ extensionInstanceId: string;
3700
+ parentCustomerId: string;
3701
+ }
3685
3702
  type MembershipCustomerInheritedRoles = "notset" | "owner" | "member" | "accountant";
3686
3703
  interface MembershipCustomerInvite {
3687
3704
  /**
@@ -14091,11 +14108,14 @@ export declare namespace MittwaldAPIV2 {
14091
14108
  type Path = {};
14092
14109
  type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
14093
14110
  type Query = {
14111
+ context?: MittwaldAPIV2.Components.Schemas.MarketplaceContext;
14112
+ contextId?: string;
14113
+ extensionId?: string;
14094
14114
  limit?: number;
14095
14115
  skip?: number;
14096
14116
  page?: number;
14097
- context: MittwaldAPIV2.Components.Schemas.MarketplaceContext;
14098
- contextId: string;
14117
+ sort?: ("createdAt" | "exensionId")[];
14118
+ order?: ("asc" | "desc")[];
14099
14119
  };
14100
14120
  }
14101
14121
  namespace Responses {
@@ -14404,6 +14424,10 @@ export declare namespace MittwaldAPIV2 {
14404
14424
  extensionId: string;
14405
14425
  };
14406
14426
  interface RequestBody {
14427
+ /**
14428
+ * Used to patch asset order.
14429
+ */
14430
+ assets?: string[];
14407
14431
  deprecation?: MittwaldAPIV2.Components.Schemas.MarketplaceExtensionDeprecation;
14408
14432
  description?: string;
14409
14433
  detailedDescriptions?: MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions;
@@ -15137,6 +15161,38 @@ export declare namespace MittwaldAPIV2 {
15137
15161
  }
15138
15162
  }
15139
15163
  }
15164
+ namespace V2Scopes {
15165
+ namespace Get {
15166
+ namespace Parameters {
15167
+ type Path = {};
15168
+ type Header = {};
15169
+ type Query = {};
15170
+ }
15171
+ namespace Responses {
15172
+ namespace $200 {
15173
+ namespace Content {
15174
+ type ApplicationJson = {
15175
+ name: string;
15176
+ }[];
15177
+ }
15178
+ }
15179
+ namespace $429 {
15180
+ namespace Content {
15181
+ interface ApplicationJson {
15182
+ [k: string]: unknown;
15183
+ }
15184
+ }
15185
+ }
15186
+ namespace Default {
15187
+ namespace Content {
15188
+ interface ApplicationJson {
15189
+ [k: string]: unknown;
15190
+ }
15191
+ }
15192
+ }
15193
+ }
15194
+ }
15195
+ }
15140
15196
  namespace V2ContributorsContributorIdExtensionsExtensionIdAssetsAssetRefId {
15141
15197
  namespace Delete {
15142
15198
  namespace Parameters {
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.144.0';
1
+ export declare const MittwaldAPIClientVersion = '4.145.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.145.0",
3
+ "version": "4.146.0",
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",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "536e65b607bbe51d9161101973f1d4efd6108244"
83
+ "gitHead": "2f9d12c62947e3be7d695c510c293a160c3eafb1"
84
84
  }