waldur-js-client 8.0.8-dev.12 → 8.0.8-dev.13

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.js CHANGED
@@ -33182,6 +33182,69 @@ export const onboardingSupportedCountriesRetrieve = (options) => {
33182
33182
  ...options
33183
33183
  });
33184
33184
  };
33185
+ export const openportalAccountingSummaryList = (options) => {
33186
+ return (options?.client ?? _heyApiClient).get({
33187
+ security: [
33188
+ {
33189
+ name: 'Authorization',
33190
+ type: 'apiKey'
33191
+ },
33192
+ {
33193
+ scheme: 'bearer',
33194
+ type: 'http'
33195
+ },
33196
+ {
33197
+ scheme: 'bearer',
33198
+ type: 'http'
33199
+ }
33200
+ ],
33201
+ url: '/api/openportal-accounting-summary/',
33202
+ ...options
33203
+ });
33204
+ };
33205
+ /**
33206
+ * Get number of items in the collection matching the request parameters.
33207
+ */
33208
+ export const openportalAccountingSummaryCount = (options) => {
33209
+ return (options?.client ?? _heyApiClient).head({
33210
+ security: [
33211
+ {
33212
+ name: 'Authorization',
33213
+ type: 'apiKey'
33214
+ },
33215
+ {
33216
+ scheme: 'bearer',
33217
+ type: 'http'
33218
+ },
33219
+ {
33220
+ scheme: 'bearer',
33221
+ type: 'http'
33222
+ }
33223
+ ],
33224
+ url: '/api/openportal-accounting-summary/',
33225
+ ...options
33226
+ });
33227
+ };
33228
+ export const openportalAccountingSummaryRetrieve = (options) => {
33229
+ return (options.client ?? _heyApiClient).get({
33230
+ security: [
33231
+ {
33232
+ name: 'Authorization',
33233
+ type: 'apiKey'
33234
+ },
33235
+ {
33236
+ scheme: 'bearer',
33237
+ type: 'http'
33238
+ },
33239
+ {
33240
+ scheme: 'bearer',
33241
+ type: 'http'
33242
+ }
33243
+ ],
33244
+ url: '/api/openportal-accounting-summary/{uuid}/',
33245
+ ...options
33246
+ });
33247
+ };
33185
33248
  export const openportalAllocationUserUsageList = (options) => {
33186
33249
  return (options?.client ?? _heyApiClient).get({
33187
33250
  security: [
@@ -33808,6 +33871,69 @@ export const openportalManagedProjectsReject = (options) => {
33808
33871
  }
33809
33872
  });
33810
33873
  };
33874
+ export const openportalProjectStorageReportsList = (options) => {
33875
+ return (options?.client ?? _heyApiClient).get({
33876
+ security: [
33877
+ {
33878
+ name: 'Authorization',
33879
+ type: 'apiKey'
33880
+ },
33881
+ {
33882
+ scheme: 'bearer',
33883
+ type: 'http'
33884
+ },
33885
+ {
33886
+ scheme: 'bearer',
33887
+ type: 'http'
33888
+ }
33889
+ ],
33890
+ url: '/api/openportal-project-storage-reports/',
33891
+ ...options
33892
+ });
33893
+ };
33894
+ /**
33895
+ * Get number of items in the collection matching the request parameters.
33896
+ */
33897
+ export const openportalProjectStorageReportsCount = (options) => {
33898
+ return (options?.client ?? _heyApiClient).head({
33899
+ security: [
33900
+ {
33901
+ name: 'Authorization',
33902
+ type: 'apiKey'
33903
+ },
33904
+ {
33905
+ scheme: 'bearer',
33906
+ type: 'http'
33907
+ },
33908
+ {
33909
+ scheme: 'bearer',
33910
+ type: 'http'
33911
+ }
33912
+ ],
33913
+ url: '/api/openportal-project-storage-reports/',
33914
+ ...options
33915
+ });
33916
+ };
33917
+ export const openportalProjectStorageReportsRetrieve = (options) => {
33918
+ return (options.client ?? _heyApiClient).get({
33919
+ security: [
33920
+ {
33921
+ name: 'Authorization',
33922
+ type: 'apiKey'
33923
+ },
33924
+ {
33925
+ scheme: 'bearer',
33926
+ type: 'http'
33927
+ },
33928
+ {
33929
+ scheme: 'bearer',
33930
+ type: 'http'
33931
+ }
33932
+ ],
33933
+ url: '/api/openportal-project-storage-reports/{id}/',
33934
+ ...options
33935
+ });
33936
+ };
33811
33937
  export const openportalProjectTemplateList = (options) => {
33812
33938
  return (options?.client ?? _heyApiClient).get({
33813
33939
  security: [
@@ -33995,6 +34121,69 @@ export const openportalProjectTemplateDeleteDestroy = (options) => {
33995
34121
  ...options
33996
34122
  });
33997
34123
  };
34124
+ export const openportalProjectUsageReportsList = (options) => {
34125
+ return (options?.client ?? _heyApiClient).get({
34126
+ security: [
34127
+ {
34128
+ name: 'Authorization',
34129
+ type: 'apiKey'
34130
+ },
34131
+ {
34132
+ scheme: 'bearer',
34133
+ type: 'http'
34134
+ },
34135
+ {
34136
+ scheme: 'bearer',
34137
+ type: 'http'
34138
+ }
34139
+ ],
34140
+ url: '/api/openportal-project-usage-reports/',
34141
+ ...options
34142
+ });
34143
+ };
34144
+ /**
34145
+ * Get number of items in the collection matching the request parameters.
34146
+ */
34147
+ export const openportalProjectUsageReportsCount = (options) => {
34148
+ return (options?.client ?? _heyApiClient).head({
34149
+ security: [
34150
+ {
34151
+ name: 'Authorization',
34152
+ type: 'apiKey'
34153
+ },
34154
+ {
34155
+ scheme: 'bearer',
34156
+ type: 'http'
34157
+ },
34158
+ {
34159
+ scheme: 'bearer',
34160
+ type: 'http'
34161
+ }
34162
+ ],
34163
+ url: '/api/openportal-project-usage-reports/',
34164
+ ...options
34165
+ });
34166
+ };
34167
+ export const openportalProjectUsageReportsRetrieve = (options) => {
34168
+ return (options.client ?? _heyApiClient).get({
34169
+ security: [
34170
+ {
34171
+ name: 'Authorization',
34172
+ type: 'apiKey'
34173
+ },
34174
+ {
34175
+ scheme: 'bearer',
34176
+ type: 'http'
34177
+ },
34178
+ {
34179
+ scheme: 'bearer',
34180
+ type: 'http'
34181
+ }
34182
+ ],
34183
+ url: '/api/openportal-project-usage-reports/{id}/',
34184
+ ...options
34185
+ });
34186
+ };
33998
34187
  export const openportalProjectinfoList = (options) => {
33999
34188
  return (options?.client ?? _heyApiClient).get({
34000
34189
  security: [
@@ -2423,6 +2423,14 @@ export type BasicCustomer = {
2423
2423
  readonly uuid: string;
2424
2424
  name: string;
2425
2425
  };
2426
+ export type BasicCustomerRequest = {
2427
+ name: string;
2428
+ };
2429
+ export type BasicProject = {
2430
+ readonly url: string;
2431
+ readonly uuid: string;
2432
+ name: string;
2433
+ };
2426
2434
  export type BasicUser = {
2427
2435
  readonly url?: string;
2428
2436
  readonly uuid?: string;
@@ -2736,6 +2744,23 @@ export type CachePerformance = {
2736
2744
  */
2737
2745
  readonly effective_cache_size: string;
2738
2746
  };
2747
+ export type CachedProjectStorageReport = {
2748
+ readonly id: number;
2749
+ year: number;
2750
+ month: number;
2751
+ project_identifier: string;
2752
+ resource: string;
2753
+ report: unknown;
2754
+ };
2755
+ export type CachedProjectUsageReport = {
2756
+ readonly id: number;
2757
+ year: number;
2758
+ month: number;
2759
+ project_identifier: string;
2760
+ resource: string;
2761
+ is_complete?: boolean;
2762
+ report: unknown;
2763
+ };
2739
2764
  export type CallApplicantAttributeConfig = {
2740
2765
  readonly uuid: string;
2741
2766
  readonly call_uuid: string;
@@ -9084,7 +9109,7 @@ export type ManagedProject = {
9084
9109
  */
9085
9110
  readonly details: unknown;
9086
9111
  project: string;
9087
- project_data: Project;
9112
+ project_data: BasicProject;
9088
9113
  project_template: string;
9089
9114
  project_template_data: ProjectTemplate;
9090
9115
  /**
@@ -17815,6 +17840,17 @@ export type Project = {
17815
17840
  };
17816
17841
  billing_price_estimate?: NestedPriceEstimate;
17817
17842
  };
17843
+ export type ProjectAccountingSummary = {
17844
+ readonly project_uuid: string;
17845
+ readonly project_name: string;
17846
+ readonly customer_uuid: string;
17847
+ readonly customer_name: string;
17848
+ readonly start_date: string | null;
17849
+ readonly end_date: string | null;
17850
+ readonly total_credits: string;
17851
+ readonly total_spend: string;
17852
+ readonly current_month_spend: string;
17853
+ };
17818
17854
  export type ProjectAnswer = {
17819
17855
  readonly project_uuid: string;
17820
17856
  readonly project_name: string;
@@ -18225,17 +18261,17 @@ export type ProjectTemplate = {
18225
18261
  */
18226
18262
  offering?: string | null;
18227
18263
  provider: string;
18228
- provider_data: Customer;
18264
+ provider_data: BasicCustomer;
18229
18265
  portal: string;
18230
18266
  /**
18231
18267
  * The key that is used to authenticate requests for this class.
18232
18268
  */
18233
18269
  key?: string | null;
18234
18270
  customer: string;
18235
- customer_data: Customer;
18271
+ customer_data: BasicCustomer;
18236
18272
  shortname?: string | null;
18237
18273
  offerings: Array<string>;
18238
- readonly offerings_data: Array<ProviderOfferingDetails>;
18274
+ readonly offerings_data: Array<ResourceOffering>;
18239
18275
  /**
18240
18276
  * The credit limit beyond which requests need to be approved by a local admin. If this is None, then no local approval is required. If this is set to 0, then all requests (including creating the project) need to be approved.
18241
18277
  */
@@ -18904,55 +18940,6 @@ export type ProviderOfferingDetails = {
18904
18940
  */
18905
18941
  readonly google_calendar_link?: string | null;
18906
18942
  };
18907
- export type ProviderOfferingDetailsRequest = {
18908
- name: string;
18909
- /**
18910
- * URL-friendly identifier. Only editable by staff users.
18911
- */
18912
- slug?: string;
18913
- description?: string;
18914
- full_description?: string;
18915
- privacy_policy_link?: string;
18916
- helpdesk_url?: string;
18917
- documentation_url?: string;
18918
- /**
18919
- * Publicly accessible offering access URL
18920
- */
18921
- access_url?: string;
18922
- customer?: string | null;
18923
- category: string;
18924
- attributes?: unknown;
18925
- components?: Array<OfferingComponentRequest>;
18926
- vendor_details?: string;
18927
- getting_started?: string;
18928
- integration_guide?: string;
18929
- thumbnail?: (Blob | File) | null;
18930
- plans?: Array<BaseProviderPlanRequest>;
18931
- type: string;
18932
- /**
18933
- * Accessible to all customers.
18934
- */
18935
- shared?: boolean;
18936
- /**
18937
- * Purchase and usage is invoiced.
18938
- */
18939
- billable?: boolean;
18940
- datacite_doi?: string;
18941
- latitude?: number | null;
18942
- longitude?: number | null;
18943
- /**
18944
- * Country code (ISO 3166-1 alpha-2)
18945
- */
18946
- country?: CountryEnum | BlankEnum;
18947
- backend_id?: string;
18948
- /**
18949
- * Validation rules for resource backend_id: format regex and uniqueness scope.
18950
- */
18951
- backend_id_rules?: unknown;
18952
- image?: (Blob | File) | null;
18953
- backend_metadata?: unknown;
18954
- compliance_checklist?: string | null;
18955
- };
18956
18943
  export type ProviderOfferingStats = {
18957
18944
  /**
18958
18945
  * Offering statistics including resources, revenue, and utilization
@@ -21264,6 +21251,9 @@ export type ResourceOffering = {
21264
21251
  name: string;
21265
21252
  readonly uuid: string;
21266
21253
  };
21254
+ export type ResourceOfferingRequest = {
21255
+ name: string;
21256
+ };
21267
21257
  export type ResourceOptionsRequest = {
21268
21258
  options?: unknown;
21269
21259
  };
@@ -59760,6 +59750,64 @@ export type OnboardingSupportedCountriesRetrieveResponses = {
59760
59750
  200: SupportedCountriesResponse;
59761
59751
  };
59762
59752
  export type OnboardingSupportedCountriesRetrieveResponse = OnboardingSupportedCountriesRetrieveResponses[keyof OnboardingSupportedCountriesRetrieveResponses];
59753
+ export type OpenportalAccountingSummaryListData = {
59754
+ body?: never;
59755
+ path?: never;
59756
+ query?: {
59757
+ customer_uuid?: string;
59758
+ is_active?: boolean;
59759
+ /**
59760
+ * A page number within the paginated result set.
59761
+ */
59762
+ page?: number;
59763
+ /**
59764
+ * Number of results to return per page.
59765
+ */
59766
+ page_size?: number;
59767
+ project_uuid?: string;
59768
+ };
59769
+ url: '/api/openportal-accounting-summary/';
59770
+ };
59771
+ export type OpenportalAccountingSummaryListResponses = {
59772
+ 200: Array<ProjectAccountingSummary>;
59773
+ };
59774
+ export type OpenportalAccountingSummaryListResponse = OpenportalAccountingSummaryListResponses[keyof OpenportalAccountingSummaryListResponses];
59775
+ export type OpenportalAccountingSummaryCountData = {
59776
+ body?: never;
59777
+ path?: never;
59778
+ query?: {
59779
+ customer_uuid?: string;
59780
+ is_active?: boolean;
59781
+ /**
59782
+ * A page number within the paginated result set.
59783
+ */
59784
+ page?: number;
59785
+ /**
59786
+ * Number of results to return per page.
59787
+ */
59788
+ page_size?: number;
59789
+ project_uuid?: string;
59790
+ };
59791
+ url: '/api/openportal-accounting-summary/';
59792
+ };
59793
+ export type OpenportalAccountingSummaryCountResponses = {
59794
+ /**
59795
+ * No response body
59796
+ */
59797
+ 200: unknown;
59798
+ };
59799
+ export type OpenportalAccountingSummaryRetrieveData = {
59800
+ body?: never;
59801
+ path: {
59802
+ uuid: string;
59803
+ };
59804
+ query?: never;
59805
+ url: '/api/openportal-accounting-summary/{uuid}/';
59806
+ };
59807
+ export type OpenportalAccountingSummaryRetrieveResponses = {
59808
+ 200: ProjectAccountingSummary;
59809
+ };
59810
+ export type OpenportalAccountingSummaryRetrieveResponse = OpenportalAccountingSummaryRetrieveResponses[keyof OpenportalAccountingSummaryRetrieveResponses];
59763
59811
  export type OpenportalAllocationUserUsageListData = {
59764
59812
  body?: never;
59765
59813
  path?: never;
@@ -60210,6 +60258,10 @@ export type OpenportalManagedProjectsListData = {
60210
60258
  query?: {
60211
60259
  identifier?: string;
60212
60260
  local_identifier?: string;
60261
+ /**
60262
+ * Which field to use when ordering the results.
60263
+ */
60264
+ o?: string;
60213
60265
  /**
60214
60266
  * A page number within the paginated result set.
60215
60267
  */
@@ -60222,6 +60274,7 @@ export type OpenportalManagedProjectsListData = {
60222
60274
  project_template?: string;
60223
60275
  project_template_uuid?: string;
60224
60276
  project_uuid?: string;
60277
+ query?: string;
60225
60278
  state?: Array<RemoteProjectUpdateRequestStateEnum>;
60226
60279
  };
60227
60280
  url: '/api/openportal-managed-projects/';
@@ -60236,6 +60289,10 @@ export type OpenportalManagedProjectsCountData = {
60236
60289
  query?: {
60237
60290
  identifier?: string;
60238
60291
  local_identifier?: string;
60292
+ /**
60293
+ * Which field to use when ordering the results.
60294
+ */
60295
+ o?: string;
60239
60296
  /**
60240
60297
  * A page number within the paginated result set.
60241
60298
  */
@@ -60248,6 +60305,7 @@ export type OpenportalManagedProjectsCountData = {
60248
60305
  project_template?: string;
60249
60306
  project_template_uuid?: string;
60250
60307
  project_uuid?: string;
60308
+ query?: string;
60251
60309
  state?: Array<RemoteProjectUpdateRequestStateEnum>;
60252
60310
  };
60253
60311
  url: '/api/openportal-managed-projects/';
@@ -60404,6 +60462,71 @@ export type OpenportalManagedProjectsRejectResponses = {
60404
60462
  */
60405
60463
  200: unknown;
60406
60464
  };
60465
+ export type OpenportalProjectStorageReportsListData = {
60466
+ body?: never;
60467
+ path?: never;
60468
+ query?: {
60469
+ month?: number;
60470
+ /**
60471
+ * A page number within the paginated result set.
60472
+ */
60473
+ page?: number;
60474
+ /**
60475
+ * Number of results to return per page.
60476
+ */
60477
+ page_size?: number;
60478
+ project_identifier?: string;
60479
+ project_uuid?: string;
60480
+ resource?: string;
60481
+ year?: number;
60482
+ };
60483
+ url: '/api/openportal-project-storage-reports/';
60484
+ };
60485
+ export type OpenportalProjectStorageReportsListResponses = {
60486
+ 200: Array<CachedProjectStorageReport>;
60487
+ };
60488
+ export type OpenportalProjectStorageReportsListResponse = OpenportalProjectStorageReportsListResponses[keyof OpenportalProjectStorageReportsListResponses];
60489
+ export type OpenportalProjectStorageReportsCountData = {
60490
+ body?: never;
60491
+ path?: never;
60492
+ query?: {
60493
+ month?: number;
60494
+ /**
60495
+ * A page number within the paginated result set.
60496
+ */
60497
+ page?: number;
60498
+ /**
60499
+ * Number of results to return per page.
60500
+ */
60501
+ page_size?: number;
60502
+ project_identifier?: string;
60503
+ project_uuid?: string;
60504
+ resource?: string;
60505
+ year?: number;
60506
+ };
60507
+ url: '/api/openportal-project-storage-reports/';
60508
+ };
60509
+ export type OpenportalProjectStorageReportsCountResponses = {
60510
+ /**
60511
+ * No response body
60512
+ */
60513
+ 200: unknown;
60514
+ };
60515
+ export type OpenportalProjectStorageReportsRetrieveData = {
60516
+ body?: never;
60517
+ path: {
60518
+ /**
60519
+ * A unique integer value identifying this cached project storage report.
60520
+ */
60521
+ id: number;
60522
+ };
60523
+ query?: never;
60524
+ url: '/api/openportal-project-storage-reports/{id}/';
60525
+ };
60526
+ export type OpenportalProjectStorageReportsRetrieveResponses = {
60527
+ 200: CachedProjectStorageReport;
60528
+ };
60529
+ export type OpenportalProjectStorageReportsRetrieveResponse = OpenportalProjectStorageReportsRetrieveResponses[keyof OpenportalProjectStorageReportsRetrieveResponses];
60407
60530
  export type OpenportalProjectTemplateListData = {
60408
60531
  body?: never;
60409
60532
  path?: never;
@@ -60526,6 +60649,73 @@ export type OpenportalProjectTemplateDeleteDestroyResponses = {
60526
60649
  204: void;
60527
60650
  };
60528
60651
  export type OpenportalProjectTemplateDeleteDestroyResponse = OpenportalProjectTemplateDeleteDestroyResponses[keyof OpenportalProjectTemplateDeleteDestroyResponses];
60652
+ export type OpenportalProjectUsageReportsListData = {
60653
+ body?: never;
60654
+ path?: never;
60655
+ query?: {
60656
+ is_complete?: boolean;
60657
+ month?: number;
60658
+ /**
60659
+ * A page number within the paginated result set.
60660
+ */
60661
+ page?: number;
60662
+ /**
60663
+ * Number of results to return per page.
60664
+ */
60665
+ page_size?: number;
60666
+ project_identifier?: string;
60667
+ project_uuid?: string;
60668
+ resource?: string;
60669
+ year?: number;
60670
+ };
60671
+ url: '/api/openportal-project-usage-reports/';
60672
+ };
60673
+ export type OpenportalProjectUsageReportsListResponses = {
60674
+ 200: Array<CachedProjectUsageReport>;
60675
+ };
60676
+ export type OpenportalProjectUsageReportsListResponse = OpenportalProjectUsageReportsListResponses[keyof OpenportalProjectUsageReportsListResponses];
60677
+ export type OpenportalProjectUsageReportsCountData = {
60678
+ body?: never;
60679
+ path?: never;
60680
+ query?: {
60681
+ is_complete?: boolean;
60682
+ month?: number;
60683
+ /**
60684
+ * A page number within the paginated result set.
60685
+ */
60686
+ page?: number;
60687
+ /**
60688
+ * Number of results to return per page.
60689
+ */
60690
+ page_size?: number;
60691
+ project_identifier?: string;
60692
+ project_uuid?: string;
60693
+ resource?: string;
60694
+ year?: number;
60695
+ };
60696
+ url: '/api/openportal-project-usage-reports/';
60697
+ };
60698
+ export type OpenportalProjectUsageReportsCountResponses = {
60699
+ /**
60700
+ * No response body
60701
+ */
60702
+ 200: unknown;
60703
+ };
60704
+ export type OpenportalProjectUsageReportsRetrieveData = {
60705
+ body?: never;
60706
+ path: {
60707
+ /**
60708
+ * A unique integer value identifying this cached project usage report.
60709
+ */
60710
+ id: number;
60711
+ };
60712
+ query?: never;
60713
+ url: '/api/openportal-project-usage-reports/{id}/';
60714
+ };
60715
+ export type OpenportalProjectUsageReportsRetrieveResponses = {
60716
+ 200: CachedProjectUsageReport;
60717
+ };
60718
+ export type OpenportalProjectUsageReportsRetrieveResponse = OpenportalProjectUsageReportsRetrieveResponses[keyof OpenportalProjectUsageReportsRetrieveResponses];
60529
60719
  export type OpenportalProjectinfoListData = {
60530
60720
  body?: never;
60531
60721
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.8-dev.12",
3
+ "version": "8.0.8-dev.13",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",