waldur-js-client 1.0.4-dev.22 → 1.0.4-dev.24

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/sdk.gen.d.ts CHANGED
@@ -704,7 +704,7 @@ export declare const marketplaceProviderOfferingsActivate: <ThrowOnError extends
704
704
  /**
705
705
  * Add endpoint to offering.
706
706
  */
707
- export declare const marketplaceProviderOfferingsAddEndpoint: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderOfferingsAddEndpointData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Uuid, unknown, ThrowOnError>;
707
+ export declare const marketplaceProviderOfferingsAddEndpoint: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderOfferingsAddEndpointData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").EndpointUuid, unknown, ThrowOnError>;
708
708
  export declare const marketplaceProviderOfferingsAddUser: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderOfferingsAddUserData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").UserRoleExpirationTime, unknown, ThrowOnError>;
709
709
  export declare const marketplaceProviderOfferingsArchive: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderOfferingsArchiveData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DetailState, unknown, ThrowOnError>;
710
710
  /**
@@ -832,7 +832,10 @@ export declare const marketplaceProviderResourcesSubmitReport: <ThrowOnError ext
832
832
  * Return users connected to the project.
833
833
  */
834
834
  export declare const marketplaceProviderResourcesTeamList: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderResourcesTeamListData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ProjectUser[], unknown, ThrowOnError>;
835
- export declare const marketplaceProviderResourcesTerminate: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderResourcesTerminateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResourceTerminate, unknown, ThrowOnError>;
835
+ /**
836
+ * Create marketplace order for resource termination.
837
+ */
838
+ export declare const marketplaceProviderResourcesTerminate: <ThrowOnError extends boolean = false>(options: Options<MarketplaceProviderResourcesTerminateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").OrderUuid, unknown, ThrowOnError>;
836
839
  /**
837
840
  * Delete marketplace resource and related plugin resource from the database without scheduling operations on backend
838
841
  * and without checking current state of the resource. It is intended to be used
@@ -887,19 +890,28 @@ export declare const marketplaceResourcesSetEndDateByStaff: <ThrowOnError extend
887
890
  * Set slug for resource.
888
891
  */
889
892
  export declare const marketplaceResourcesSetSlug: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesSetSlugData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
890
- export declare const marketplaceResourcesSwitchPlan: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesSwitchPlanData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResourceSwitchPlan, unknown, ThrowOnError>;
893
+ /**
894
+ * Create marketplace order for resource plan switch.
895
+ */
896
+ export declare const marketplaceResourcesSwitchPlan: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesSwitchPlanData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").OrderUuid, unknown, ThrowOnError>;
891
897
  /**
892
898
  * Return users connected to the project.
893
899
  */
894
900
  export declare const marketplaceResourcesTeamList: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesTeamListData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ProjectUser[], unknown, ThrowOnError>;
895
- export declare const marketplaceResourcesTerminate: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesTerminateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResourceTerminate, unknown, ThrowOnError>;
901
+ /**
902
+ * Create marketplace order for resource termination.
903
+ */
904
+ export declare const marketplaceResourcesTerminate: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesTerminateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").OrderUuid, unknown, ThrowOnError>;
896
905
  /**
897
906
  * Delete marketplace resource and related plugin resource from the database without scheduling operations on backend
898
907
  * and without checking current state of the resource. It is intended to be used
899
908
  * for removing resource stuck in transitioning state.
900
909
  */
901
910
  export declare const marketplaceResourcesUnlink: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesUnlinkData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
902
- export declare const marketplaceResourcesUpdateLimits: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesUpdateLimitsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResourceUpdateLimits, unknown, ThrowOnError>;
911
+ /**
912
+ * Create marketplace order for resource limits update.
913
+ */
914
+ export declare const marketplaceResourcesUpdateLimits: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesUpdateLimitsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").OrderUuid, unknown, ThrowOnError>;
903
915
  export declare const marketplaceResourcesUpdateOptions: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesUpdateOptionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResourceOptions, unknown, ThrowOnError>;
904
916
  export declare const marketplaceResourcesSuggestName: <ThrowOnError extends boolean = false>(options: Options<MarketplaceResourcesSuggestNameData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResourceSuggestName, unknown, ThrowOnError>;
905
917
  export declare const marketplaceRobotAccountsList: <ThrowOnError extends boolean = false>(options?: Options<MarketplaceRobotAccountsListData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RobotAccountDetails[], unknown, ThrowOnError>;
package/dist/sdk.gen.js CHANGED
@@ -7791,6 +7791,9 @@ const marketplaceProviderResourcesTeamList = (options) => {
7791
7791
  });
7792
7792
  };
7793
7793
  exports.marketplaceProviderResourcesTeamList = marketplaceProviderResourcesTeamList;
7794
+ /**
7795
+ * Create marketplace order for resource termination.
7796
+ */
7794
7797
  const marketplaceProviderResourcesTerminate = (options) => {
7795
7798
  var _a;
7796
7799
  return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
@@ -8319,6 +8322,9 @@ const marketplaceResourcesSetSlug = (options) => {
8319
8322
  });
8320
8323
  };
8321
8324
  exports.marketplaceResourcesSetSlug = marketplaceResourcesSetSlug;
8325
+ /**
8326
+ * Create marketplace order for resource plan switch.
8327
+ */
8322
8328
  const marketplaceResourcesSwitchPlan = (options) => {
8323
8329
  var _a;
8324
8330
  return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
@@ -8354,6 +8360,9 @@ const marketplaceResourcesTeamList = (options) => {
8354
8360
  });
8355
8361
  };
8356
8362
  exports.marketplaceResourcesTeamList = marketplaceResourcesTeamList;
8363
+ /**
8364
+ * Create marketplace order for resource termination.
8365
+ */
8357
8366
  const marketplaceResourcesTerminate = (options) => {
8358
8367
  var _a;
8359
8368
  return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
@@ -8391,6 +8400,9 @@ const marketplaceResourcesUnlink = (options) => {
8391
8400
  });
8392
8401
  };
8393
8402
  exports.marketplaceResourcesUnlink = marketplaceResourcesUnlink;
8403
+ /**
8404
+ * Create marketplace order for resource limits update.
8405
+ */
8394
8406
  const marketplaceResourcesUpdateLimits = (options) => {
8395
8407
  var _a;
8396
8408
  return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
@@ -2079,6 +2079,12 @@ export type EmailLog = {
2079
2079
  body: string;
2080
2080
  emails: Array<string>;
2081
2081
  };
2082
+ export type EndpointUuid = {
2083
+ uuid: string;
2084
+ };
2085
+ export type EndpointUuidRequest = {
2086
+ uuid: string;
2087
+ };
2082
2088
  export type EthertypeEnum = 'IPv4' | 'IPv6';
2083
2089
  export type Event = {
2084
2090
  readonly uuid?: string;
@@ -5381,6 +5387,9 @@ export type OrderSetStateErredRequest = {
5381
5387
  error_traceback?: string;
5382
5388
  };
5383
5389
  export type OrderState = 'pending-consumer' | 'pending-provider' | 'pending-project' | 'executing' | 'done' | 'erred' | 'canceled' | 'rejected';
5390
+ export type OrderUuid = {
5391
+ readonly order_uuid: string;
5392
+ };
5384
5393
  export type OrganizationGroup = {
5385
5394
  readonly uuid?: string;
5386
5395
  readonly url?: string;
@@ -7879,15 +7888,9 @@ export type ResourceSuggestNameRequest = {
7879
7888
  project: string;
7880
7889
  offering: string;
7881
7890
  };
7882
- export type ResourceSwitchPlan = {
7883
- plan: string;
7884
- };
7885
7891
  export type ResourceSwitchPlanRequest = {
7886
7892
  plan: string;
7887
7893
  };
7888
- export type ResourceTerminate = {
7889
- attributes?: unknown;
7890
- };
7891
7894
  export type ResourceTerminateRequest = {
7892
7895
  attributes?: unknown;
7893
7896
  };
@@ -7899,11 +7902,6 @@ export type ResourceUpdate = {
7899
7902
  */
7900
7903
  end_date?: string | null;
7901
7904
  };
7902
- export type ResourceUpdateLimits = {
7903
- limits: {
7904
- [key: string]: number;
7905
- };
7906
- };
7907
7905
  export type ResourceUpdateLimitsRequest = {
7908
7906
  limits: {
7909
7907
  [key: string]: number;
@@ -8446,12 +8444,6 @@ export type TotalCustomerCost = {
8446
8444
  readonly total: number;
8447
8445
  readonly price: number;
8448
8446
  };
8449
- export type Uuid = {
8450
- uuid: string;
8451
- };
8452
- export type UuidRequest = {
8453
- uuid: string;
8454
- };
8455
8447
  export type User = {
8456
8448
  readonly url?: string;
8457
8449
  readonly uuid?: string;
@@ -10704,6 +10696,10 @@ export type BookingResourcesListData = {
10704
10696
  o?: Array<'-created' | '-name' | '-schedules' | '-type' | 'created' | 'name' | 'schedules' | 'type'>;
10705
10697
  offering?: string;
10706
10698
  offering_billable?: string;
10699
+ /**
10700
+ * Offering shared
10701
+ */
10702
+ offering_shared?: boolean;
10707
10703
  offering_type?: string;
10708
10704
  offering_uuid?: string;
10709
10705
  /**
@@ -16012,7 +16008,7 @@ export type MarketplaceProviderOfferingsAddEndpointData = {
16012
16008
  url: '/api/marketplace-provider-offerings/{uuid}/add_endpoint/';
16013
16009
  };
16014
16010
  export type MarketplaceProviderOfferingsAddEndpointResponses = {
16015
- 201: Uuid;
16011
+ 201: EndpointUuid;
16016
16012
  };
16017
16013
  export type MarketplaceProviderOfferingsAddEndpointResponse = MarketplaceProviderOfferingsAddEndpointResponses[keyof MarketplaceProviderOfferingsAddEndpointResponses];
16018
16014
  export type MarketplaceProviderOfferingsAddUserData = {
@@ -16290,7 +16286,7 @@ export type MarketplaceProviderOfferingsCustomersListResponses = {
16290
16286
  };
16291
16287
  export type MarketplaceProviderOfferingsCustomersListResponse = MarketplaceProviderOfferingsCustomersListResponses[keyof MarketplaceProviderOfferingsCustomersListResponses];
16292
16288
  export type MarketplaceProviderOfferingsDeleteEndpointData = {
16293
- body: UuidRequest;
16289
+ body: EndpointUuidRequest;
16294
16290
  path: {
16295
16291
  uuid: string;
16296
16292
  };
@@ -16876,6 +16872,10 @@ export type MarketplaceProviderResourcesListData = {
16876
16872
  o?: Array<'-created' | '-name' | '-project_name' | '-state' | 'created' | 'name' | 'project_name' | 'state'>;
16877
16873
  offering?: string;
16878
16874
  offering_billable?: string;
16875
+ /**
16876
+ * Offering shared
16877
+ */
16878
+ offering_shared?: boolean;
16879
16879
  offering_type?: string;
16880
16880
  offering_uuid?: string;
16881
16881
  /**
@@ -17173,7 +17173,7 @@ export type MarketplaceProviderResourcesTerminateData = {
17173
17173
  url: '/api/marketplace-provider-resources/{uuid}/terminate/';
17174
17174
  };
17175
17175
  export type MarketplaceProviderResourcesTerminateResponses = {
17176
- 200: ResourceTerminate;
17176
+ 200: OrderUuid;
17177
17177
  };
17178
17178
  export type MarketplaceProviderResourcesTerminateResponse = MarketplaceProviderResourcesTerminateResponses[keyof MarketplaceProviderResourcesTerminateResponses];
17179
17179
  export type MarketplaceProviderResourcesUnlinkData = {
@@ -17555,6 +17555,10 @@ export type MarketplaceResourcesListData = {
17555
17555
  o?: Array<'-created' | '-name' | '-project_name' | '-state' | 'created' | 'name' | 'project_name' | 'state'>;
17556
17556
  offering?: string;
17557
17557
  offering_billable?: string;
17558
+ /**
17559
+ * Offering shared
17560
+ */
17561
+ offering_shared?: boolean;
17558
17562
  offering_type?: string;
17559
17563
  offering_uuid?: string;
17560
17564
  /**
@@ -17744,7 +17748,7 @@ export type MarketplaceResourcesSwitchPlanData = {
17744
17748
  url: '/api/marketplace-resources/{uuid}/switch_plan/';
17745
17749
  };
17746
17750
  export type MarketplaceResourcesSwitchPlanResponses = {
17747
- 200: ResourceSwitchPlan;
17751
+ 200: OrderUuid;
17748
17752
  };
17749
17753
  export type MarketplaceResourcesSwitchPlanResponse = MarketplaceResourcesSwitchPlanResponses[keyof MarketplaceResourcesSwitchPlanResponses];
17750
17754
  export type MarketplaceResourcesTeamListData = {
@@ -17768,7 +17772,7 @@ export type MarketplaceResourcesTerminateData = {
17768
17772
  url: '/api/marketplace-resources/{uuid}/terminate/';
17769
17773
  };
17770
17774
  export type MarketplaceResourcesTerminateResponses = {
17771
- 200: ResourceTerminate;
17775
+ 200: OrderUuid;
17772
17776
  };
17773
17777
  export type MarketplaceResourcesTerminateResponse = MarketplaceResourcesTerminateResponses[keyof MarketplaceResourcesTerminateResponses];
17774
17778
  export type MarketplaceResourcesUnlinkData = {
@@ -17794,7 +17798,7 @@ export type MarketplaceResourcesUpdateLimitsData = {
17794
17798
  url: '/api/marketplace-resources/{uuid}/update_limits/';
17795
17799
  };
17796
17800
  export type MarketplaceResourcesUpdateLimitsResponses = {
17797
- 200: ResourceUpdateLimits;
17801
+ 200: OrderUuid;
17798
17802
  };
17799
17803
  export type MarketplaceResourcesUpdateLimitsResponse = MarketplaceResourcesUpdateLimitsResponses[keyof MarketplaceResourcesUpdateLimitsResponses];
17800
17804
  export type MarketplaceResourcesUpdateOptionsData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "1.0.4-dev.22",
3
+ "version": "1.0.4-dev.24",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",