waldur-js-client 8.0.8-dev.11 → 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;
@@ -7613,6 +7638,7 @@ export type IdentityBridgeRemoveResult = {
7613
7638
  uuid: string;
7614
7639
  deactivated: boolean;
7615
7640
  };
7641
+ export type IdentityBridgeRequestGenderEnum = 'male' | 'female' | 'unknown';
7616
7642
  export type IdentityBridgeRequestRequest = {
7617
7643
  /**
7618
7644
  * CUID / username of the user to create or update.
@@ -7630,7 +7656,7 @@ export type IdentityBridgeRequestRequest = {
7630
7656
  civil_number?: string;
7631
7657
  phone_number?: string;
7632
7658
  identity_source?: string;
7633
- gender?: number | null;
7659
+ gender?: IdentityBridgeRequestGenderEnum | NullEnum | null;
7634
7660
  personal_title?: string;
7635
7661
  birth_date?: string | null;
7636
7662
  place_of_birth?: string;
@@ -9083,7 +9109,7 @@ export type ManagedProject = {
9083
9109
  */
9084
9110
  readonly details: unknown;
9085
9111
  project: string;
9086
- project_data: Project;
9112
+ project_data: BasicProject;
9087
9113
  project_template: string;
9088
9114
  project_template_data: ProjectTemplate;
9089
9115
  /**
@@ -17814,6 +17840,17 @@ export type Project = {
17814
17840
  };
17815
17841
  billing_price_estimate?: NestedPriceEstimate;
17816
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
+ };
17817
17854
  export type ProjectAnswer = {
17818
17855
  readonly project_uuid: string;
17819
17856
  readonly project_name: string;
@@ -18224,17 +18261,17 @@ export type ProjectTemplate = {
18224
18261
  */
18225
18262
  offering?: string | null;
18226
18263
  provider: string;
18227
- provider_data: Customer;
18264
+ provider_data: BasicCustomer;
18228
18265
  portal: string;
18229
18266
  /**
18230
18267
  * The key that is used to authenticate requests for this class.
18231
18268
  */
18232
18269
  key?: string | null;
18233
18270
  customer: string;
18234
- customer_data: Customer;
18271
+ customer_data: BasicCustomer;
18235
18272
  shortname?: string | null;
18236
18273
  offerings: Array<string>;
18237
- readonly offerings_data: Array<ProviderOfferingDetails>;
18274
+ readonly offerings_data: Array<ResourceOffering>;
18238
18275
  /**
18239
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.
18240
18277
  */
@@ -18903,55 +18940,6 @@ export type ProviderOfferingDetails = {
18903
18940
  */
18904
18941
  readonly google_calendar_link?: string | null;
18905
18942
  };
18906
- export type ProviderOfferingDetailsRequest = {
18907
- name: string;
18908
- /**
18909
- * URL-friendly identifier. Only editable by staff users.
18910
- */
18911
- slug?: string;
18912
- description?: string;
18913
- full_description?: string;
18914
- privacy_policy_link?: string;
18915
- helpdesk_url?: string;
18916
- documentation_url?: string;
18917
- /**
18918
- * Publicly accessible offering access URL
18919
- */
18920
- access_url?: string;
18921
- customer?: string | null;
18922
- category: string;
18923
- attributes?: unknown;
18924
- components?: Array<OfferingComponentRequest>;
18925
- vendor_details?: string;
18926
- getting_started?: string;
18927
- integration_guide?: string;
18928
- thumbnail?: (Blob | File) | null;
18929
- plans?: Array<BaseProviderPlanRequest>;
18930
- type: string;
18931
- /**
18932
- * Accessible to all customers.
18933
- */
18934
- shared?: boolean;
18935
- /**
18936
- * Purchase and usage is invoiced.
18937
- */
18938
- billable?: boolean;
18939
- datacite_doi?: string;
18940
- latitude?: number | null;
18941
- longitude?: number | null;
18942
- /**
18943
- * Country code (ISO 3166-1 alpha-2)
18944
- */
18945
- country?: CountryEnum | BlankEnum;
18946
- backend_id?: string;
18947
- /**
18948
- * Validation rules for resource backend_id: format regex and uniqueness scope.
18949
- */
18950
- backend_id_rules?: unknown;
18951
- image?: (Blob | File) | null;
18952
- backend_metadata?: unknown;
18953
- compliance_checklist?: string | null;
18954
- };
18955
18943
  export type ProviderOfferingStats = {
18956
18944
  /**
18957
18945
  * Offering statistics including resources, revenue, and utilization
@@ -21263,6 +21251,9 @@ export type ResourceOffering = {
21263
21251
  name: string;
21264
21252
  readonly uuid: string;
21265
21253
  };
21254
+ export type ResourceOfferingRequest = {
21255
+ name: string;
21256
+ };
21266
21257
  export type ResourceOptionsRequest = {
21267
21258
  options?: unknown;
21268
21259
  };
@@ -59759,6 +59750,64 @@ export type OnboardingSupportedCountriesRetrieveResponses = {
59759
59750
  200: SupportedCountriesResponse;
59760
59751
  };
59761
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];
59762
59811
  export type OpenportalAllocationUserUsageListData = {
59763
59812
  body?: never;
59764
59813
  path?: never;
@@ -60209,6 +60258,10 @@ export type OpenportalManagedProjectsListData = {
60209
60258
  query?: {
60210
60259
  identifier?: string;
60211
60260
  local_identifier?: string;
60261
+ /**
60262
+ * Which field to use when ordering the results.
60263
+ */
60264
+ o?: string;
60212
60265
  /**
60213
60266
  * A page number within the paginated result set.
60214
60267
  */
@@ -60221,6 +60274,7 @@ export type OpenportalManagedProjectsListData = {
60221
60274
  project_template?: string;
60222
60275
  project_template_uuid?: string;
60223
60276
  project_uuid?: string;
60277
+ query?: string;
60224
60278
  state?: Array<RemoteProjectUpdateRequestStateEnum>;
60225
60279
  };
60226
60280
  url: '/api/openportal-managed-projects/';
@@ -60235,6 +60289,10 @@ export type OpenportalManagedProjectsCountData = {
60235
60289
  query?: {
60236
60290
  identifier?: string;
60237
60291
  local_identifier?: string;
60292
+ /**
60293
+ * Which field to use when ordering the results.
60294
+ */
60295
+ o?: string;
60238
60296
  /**
60239
60297
  * A page number within the paginated result set.
60240
60298
  */
@@ -60247,6 +60305,7 @@ export type OpenportalManagedProjectsCountData = {
60247
60305
  project_template?: string;
60248
60306
  project_template_uuid?: string;
60249
60307
  project_uuid?: string;
60308
+ query?: string;
60250
60309
  state?: Array<RemoteProjectUpdateRequestStateEnum>;
60251
60310
  };
60252
60311
  url: '/api/openportal-managed-projects/';
@@ -60403,6 +60462,71 @@ export type OpenportalManagedProjectsRejectResponses = {
60403
60462
  */
60404
60463
  200: unknown;
60405
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];
60406
60530
  export type OpenportalProjectTemplateListData = {
60407
60531
  body?: never;
60408
60532
  path?: never;
@@ -60525,6 +60649,73 @@ export type OpenportalProjectTemplateDeleteDestroyResponses = {
60525
60649
  204: void;
60526
60650
  };
60527
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];
60528
60719
  export type OpenportalProjectinfoListData = {
60529
60720
  body?: never;
60530
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.11",
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",