@opusdns/api 0.167.0 → 0.169.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.
- package/package.json +1 -1
- package/src/helpers/keys.ts +111 -297
- package/src/helpers/requests.d.ts +58 -1
- package/src/helpers/responses.d.ts +103 -21
- package/src/helpers/schemas-arrays.d.ts +1 -15
- package/src/helpers/schemas.d.ts +16 -32
- package/src/openapi.yaml +133 -107
- package/src/schema.d.ts +114 -70
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -157,8 +157,8 @@ import { OrganizationUpdate } from './schemas';
|
|
|
157
157
|
import { OrganizationWithBillingData } from './schemas';
|
|
158
158
|
import { PaginationMetadata } from './schemas';
|
|
159
159
|
import { ParkingMetrics } from './schemas';
|
|
160
|
-
import { Parking } from './schemas';
|
|
161
160
|
import { ParkingStatistics } from './schemas';
|
|
161
|
+
import { ParkingTotalMetrics } from './schemas';
|
|
162
162
|
import { PasswordUpdate } from './schemas';
|
|
163
163
|
import { Period } from './schemas';
|
|
164
164
|
import { PermissionSet } from './schemas';
|
|
@@ -19224,344 +19224,108 @@ export const KEYS_PAGINATION_METADATA = [
|
|
|
19224
19224
|
] as const satisfies (keyof PaginationMetadata)[];
|
|
19225
19225
|
|
|
19226
19226
|
/**
|
|
19227
|
-
*
|
|
19227
|
+
* metrics property
|
|
19228
19228
|
*
|
|
19229
|
-
*
|
|
19229
|
+
* Metrics for the parking entry
|
|
19230
19230
|
*
|
|
19231
|
-
* @type {string}
|
|
19232
19231
|
*
|
|
19233
19232
|
*
|
|
19234
19233
|
* @remarks
|
|
19235
|
-
* This key constant provides type-safe access to the `
|
|
19234
|
+
* This key constant provides type-safe access to the `metrics` property of ParkingMetrics objects.
|
|
19236
19235
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19237
19236
|
*
|
|
19238
19237
|
* @example
|
|
19239
19238
|
* ```typescript
|
|
19240
19239
|
* // Direct property access
|
|
19241
|
-
* const value = parkingmetrics[
|
|
19240
|
+
* const value = parkingmetrics[KEY_PARKING_METRICS_METRICS];
|
|
19242
19241
|
*
|
|
19243
19242
|
* // Dynamic property access
|
|
19244
|
-
* const propertyName =
|
|
19243
|
+
* const propertyName = KEY_PARKING_METRICS_METRICS;
|
|
19245
19244
|
* const value = parkingmetrics[propertyName];
|
|
19246
19245
|
* ```
|
|
19247
19246
|
*
|
|
19248
19247
|
* @see {@link ParkingMetrics} - The TypeScript type definition
|
|
19249
19248
|
* @see {@link KEYS_PARKING_METRICS} - Array of all keys for this type
|
|
19250
19249
|
*/
|
|
19251
|
-
export const
|
|
19250
|
+
export const KEY_PARKING_METRICS_METRICS: keyof ParkingMetrics = 'metrics';
|
|
19252
19251
|
/**
|
|
19253
|
-
*
|
|
19252
|
+
* Renewal Cost
|
|
19254
19253
|
*
|
|
19255
|
-
*
|
|
19254
|
+
* Yearly renewal cost for the parked domain
|
|
19256
19255
|
*
|
|
19256
|
+
* @type {string}
|
|
19257
19257
|
*
|
|
19258
19258
|
*
|
|
19259
19259
|
* @remarks
|
|
19260
|
-
* This key constant provides type-safe access to the `
|
|
19260
|
+
* This key constant provides type-safe access to the `renewal_cost` property of ParkingMetrics objects.
|
|
19261
19261
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19262
19262
|
*
|
|
19263
19263
|
* @example
|
|
19264
19264
|
* ```typescript
|
|
19265
19265
|
* // Direct property access
|
|
19266
|
-
* const value = parkingmetrics[
|
|
19266
|
+
* const value = parkingmetrics[KEY_PARKING_METRICS_RENEWAL_COST];
|
|
19267
19267
|
*
|
|
19268
19268
|
* // Dynamic property access
|
|
19269
|
-
* const propertyName =
|
|
19269
|
+
* const propertyName = KEY_PARKING_METRICS_RENEWAL_COST;
|
|
19270
19270
|
* const value = parkingmetrics[propertyName];
|
|
19271
19271
|
* ```
|
|
19272
19272
|
*
|
|
19273
19273
|
* @see {@link ParkingMetrics} - The TypeScript type definition
|
|
19274
19274
|
* @see {@link KEYS_PARKING_METRICS} - Array of all keys for this type
|
|
19275
19275
|
*/
|
|
19276
|
-
export const
|
|
19277
|
-
|
|
19278
|
-
/**
|
|
19279
|
-
* Array of all ParkingMetrics property keys
|
|
19280
|
-
*
|
|
19281
|
-
* @remarks
|
|
19282
|
-
* This constant provides a readonly array containing all valid property keys for ParkingMetrics objects.
|
|
19283
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
19284
|
-
*
|
|
19285
|
-
* @example
|
|
19286
|
-
* ```typescript
|
|
19287
|
-
* // Iterating through all keys
|
|
19288
|
-
* for (const key of KEYS_PARKING_METRICS) {
|
|
19289
|
-
* console.log(`Property: ${key}, Value: ${parkingmetrics[key]}`);
|
|
19290
|
-
* }
|
|
19291
|
-
*
|
|
19292
|
-
* // Validation
|
|
19293
|
-
* const isValidKey = KEYS_PARKING_METRICS.includes(someKey);
|
|
19294
|
-
* ```
|
|
19295
|
-
*
|
|
19296
|
-
* @see {@link ParkingMetrics} - The TypeScript type definition
|
|
19297
|
-
*/
|
|
19298
|
-
export const KEYS_PARKING_METRICS = [
|
|
19299
|
-
KEY_PARKING_METRICS_PARKING_ID,
|
|
19300
|
-
KEY_PARKING_METRICS_STATISTICS,
|
|
19301
|
-
] as const satisfies (keyof ParkingMetrics)[];
|
|
19302
|
-
|
|
19303
|
-
/**
|
|
19304
|
-
* compliance_status property
|
|
19305
|
-
*
|
|
19306
|
-
* The compliance status of the parking ad
|
|
19307
|
-
*
|
|
19308
|
-
*
|
|
19309
|
-
*
|
|
19310
|
-
* @remarks
|
|
19311
|
-
* This key constant provides type-safe access to the `compliance_status` property of Parking objects.
|
|
19312
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19313
|
-
*
|
|
19314
|
-
* @example
|
|
19315
|
-
* ```typescript
|
|
19316
|
-
* // Direct property access
|
|
19317
|
-
* const value = parking[KEY_PARKING_COMPLIANCE_STATUS];
|
|
19318
|
-
*
|
|
19319
|
-
* // Dynamic property access
|
|
19320
|
-
* const propertyName = KEY_PARKING_COMPLIANCE_STATUS;
|
|
19321
|
-
* const value = parking[propertyName];
|
|
19322
|
-
* ```
|
|
19323
|
-
*
|
|
19324
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19325
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19326
|
-
*/
|
|
19327
|
-
export const KEY_PARKING_COMPLIANCE_STATUS: keyof Parking = 'compliance_status';
|
|
19328
|
-
/**
|
|
19329
|
-
* Content Language
|
|
19330
|
-
*
|
|
19331
|
-
* The primary language code for the ad content
|
|
19332
|
-
*
|
|
19333
|
-
*
|
|
19334
|
-
*
|
|
19335
|
-
* @remarks
|
|
19336
|
-
* This key constant provides type-safe access to the `content_language` property of Parking objects.
|
|
19337
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19338
|
-
*
|
|
19339
|
-
* @example
|
|
19340
|
-
* ```typescript
|
|
19341
|
-
* // Direct property access
|
|
19342
|
-
* const value = parking[KEY_PARKING_CONTENT_LANGUAGE];
|
|
19343
|
-
*
|
|
19344
|
-
* // Dynamic property access
|
|
19345
|
-
* const propertyName = KEY_PARKING_CONTENT_LANGUAGE;
|
|
19346
|
-
* const value = parking[propertyName];
|
|
19347
|
-
* ```
|
|
19348
|
-
*
|
|
19349
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19350
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19351
|
-
*/
|
|
19352
|
-
export const KEY_PARKING_CONTENT_LANGUAGE: keyof Parking = 'content_language';
|
|
19353
|
-
/**
|
|
19354
|
-
* Content Url
|
|
19355
|
-
*
|
|
19356
|
-
* The content URL for approved parking ads
|
|
19357
|
-
*
|
|
19358
|
-
*
|
|
19359
|
-
*
|
|
19360
|
-
* @remarks
|
|
19361
|
-
* This key constant provides type-safe access to the `content_url` property of Parking objects.
|
|
19362
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19363
|
-
*
|
|
19364
|
-
* @example
|
|
19365
|
-
* ```typescript
|
|
19366
|
-
* // Direct property access
|
|
19367
|
-
* const value = parking[KEY_PARKING_CONTENT_URL];
|
|
19368
|
-
*
|
|
19369
|
-
* // Dynamic property access
|
|
19370
|
-
* const propertyName = KEY_PARKING_CONTENT_URL;
|
|
19371
|
-
* const value = parking[propertyName];
|
|
19372
|
-
* ```
|
|
19373
|
-
*
|
|
19374
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19375
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19376
|
-
*/
|
|
19377
|
-
export const KEY_PARKING_CONTENT_URL: keyof Parking = 'content_url';
|
|
19276
|
+
export const KEY_PARKING_METRICS_RENEWAL_COST: keyof ParkingMetrics = 'renewal_cost';
|
|
19378
19277
|
/**
|
|
19379
|
-
*
|
|
19278
|
+
* Revenue Progress
|
|
19380
19279
|
*
|
|
19381
|
-
*
|
|
19280
|
+
* Revenue progress percentage towards covering renewal cost
|
|
19382
19281
|
*
|
|
19383
19282
|
* @type {string}
|
|
19384
19283
|
*
|
|
19385
19284
|
*
|
|
19386
19285
|
* @remarks
|
|
19387
|
-
* This key constant provides type-safe access to the `
|
|
19286
|
+
* This key constant provides type-safe access to the `revenue_progress` property of ParkingMetrics objects.
|
|
19388
19287
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19389
19288
|
*
|
|
19390
19289
|
* @example
|
|
19391
19290
|
* ```typescript
|
|
19392
19291
|
* // Direct property access
|
|
19393
|
-
* const value =
|
|
19292
|
+
* const value = parkingmetrics[KEY_PARKING_METRICS_REVENUE_PROGRESS];
|
|
19394
19293
|
*
|
|
19395
19294
|
* // Dynamic property access
|
|
19396
|
-
* const propertyName =
|
|
19397
|
-
* const value =
|
|
19398
|
-
* ```
|
|
19399
|
-
*
|
|
19400
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19401
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19402
|
-
*/
|
|
19403
|
-
export const KEY_PARKING_CREATED_ON: keyof Parking = 'created_on';
|
|
19404
|
-
/**
|
|
19405
|
-
* Domain
|
|
19406
|
-
*
|
|
19407
|
-
* The domain name for the parking ad
|
|
19408
|
-
*
|
|
19409
|
-
* @type {string}
|
|
19410
|
-
*
|
|
19411
|
-
*
|
|
19412
|
-
* @remarks
|
|
19413
|
-
* This key constant provides type-safe access to the `domain` property of Parking objects.
|
|
19414
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19415
|
-
*
|
|
19416
|
-
* @example
|
|
19417
|
-
* ```typescript
|
|
19418
|
-
* // Direct property access
|
|
19419
|
-
* const value = parking[KEY_PARKING_DOMAIN];
|
|
19420
|
-
*
|
|
19421
|
-
* // Dynamic property access
|
|
19422
|
-
* const propertyName = KEY_PARKING_DOMAIN;
|
|
19423
|
-
* const value = parking[propertyName];
|
|
19424
|
-
* ```
|
|
19425
|
-
*
|
|
19426
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19427
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19428
|
-
*/
|
|
19429
|
-
export const KEY_PARKING_DOMAIN: keyof Parking = 'domain';
|
|
19430
|
-
/**
|
|
19431
|
-
* Enabled
|
|
19432
|
-
*
|
|
19433
|
-
* Whether parking is enabled
|
|
19434
|
-
*
|
|
19435
|
-
* @type {boolean}
|
|
19436
|
-
*
|
|
19437
|
-
*
|
|
19438
|
-
* @remarks
|
|
19439
|
-
* This key constant provides type-safe access to the `enabled` property of Parking objects.
|
|
19440
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19441
|
-
*
|
|
19442
|
-
* @example
|
|
19443
|
-
* ```typescript
|
|
19444
|
-
* // Direct property access
|
|
19445
|
-
* const value = parking[KEY_PARKING_ENABLED];
|
|
19446
|
-
*
|
|
19447
|
-
* // Dynamic property access
|
|
19448
|
-
* const propertyName = KEY_PARKING_ENABLED;
|
|
19449
|
-
* const value = parking[propertyName];
|
|
19450
|
-
* ```
|
|
19451
|
-
*
|
|
19452
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19453
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19454
|
-
*/
|
|
19455
|
-
export const KEY_PARKING_ENABLED: keyof Parking = 'enabled';
|
|
19456
|
-
/**
|
|
19457
|
-
* Note
|
|
19458
|
-
*
|
|
19459
|
-
* Additional notes about the parking ad
|
|
19460
|
-
*
|
|
19461
|
-
*
|
|
19462
|
-
*
|
|
19463
|
-
* @remarks
|
|
19464
|
-
* This key constant provides type-safe access to the `note` property of Parking objects.
|
|
19465
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19466
|
-
*
|
|
19467
|
-
* @example
|
|
19468
|
-
* ```typescript
|
|
19469
|
-
* // Direct property access
|
|
19470
|
-
* const value = parking[KEY_PARKING_NOTE];
|
|
19471
|
-
*
|
|
19472
|
-
* // Dynamic property access
|
|
19473
|
-
* const propertyName = KEY_PARKING_NOTE;
|
|
19474
|
-
* const value = parking[propertyName];
|
|
19475
|
-
* ```
|
|
19476
|
-
*
|
|
19477
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19478
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19479
|
-
*/
|
|
19480
|
-
export const KEY_PARKING_NOTE: keyof Parking = 'note';
|
|
19481
|
-
/**
|
|
19482
|
-
* Parking Id
|
|
19483
|
-
*
|
|
19484
|
-
* Unique identifier for the parking entry
|
|
19485
|
-
*
|
|
19486
|
-
* @type {string}
|
|
19487
|
-
*
|
|
19488
|
-
*
|
|
19489
|
-
* @remarks
|
|
19490
|
-
* This key constant provides type-safe access to the `parking_id` property of Parking objects.
|
|
19491
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19492
|
-
*
|
|
19493
|
-
* @example
|
|
19494
|
-
* ```typescript
|
|
19495
|
-
* // Direct property access
|
|
19496
|
-
* const value = parking[KEY_PARKING_PARKING_ID];
|
|
19497
|
-
*
|
|
19498
|
-
* // Dynamic property access
|
|
19499
|
-
* const propertyName = KEY_PARKING_PARKING_ID;
|
|
19500
|
-
* const value = parking[propertyName];
|
|
19501
|
-
* ```
|
|
19502
|
-
*
|
|
19503
|
-
* @see {@link Parking} - The TypeScript type definition
|
|
19504
|
-
* @see {@link KEYS_PARKING} - Array of all keys for this type
|
|
19505
|
-
*/
|
|
19506
|
-
export const KEY_PARKING_PARKING_ID: keyof Parking = 'parking_id';
|
|
19507
|
-
/**
|
|
19508
|
-
* Updated On
|
|
19509
|
-
*
|
|
19510
|
-
* When the parking entry was last updated
|
|
19511
|
-
*
|
|
19512
|
-
* @type {string}
|
|
19513
|
-
*
|
|
19514
|
-
*
|
|
19515
|
-
* @remarks
|
|
19516
|
-
* This key constant provides type-safe access to the `updated_on` property of Parking objects.
|
|
19517
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19518
|
-
*
|
|
19519
|
-
* @example
|
|
19520
|
-
* ```typescript
|
|
19521
|
-
* // Direct property access
|
|
19522
|
-
* const value = parking[KEY_PARKING_UPDATED_ON];
|
|
19523
|
-
*
|
|
19524
|
-
* // Dynamic property access
|
|
19525
|
-
* const propertyName = KEY_PARKING_UPDATED_ON;
|
|
19526
|
-
* const value = parking[propertyName];
|
|
19295
|
+
* const propertyName = KEY_PARKING_METRICS_REVENUE_PROGRESS;
|
|
19296
|
+
* const value = parkingmetrics[propertyName];
|
|
19527
19297
|
* ```
|
|
19528
19298
|
*
|
|
19529
|
-
* @see {@link
|
|
19530
|
-
* @see {@link
|
|
19299
|
+
* @see {@link ParkingMetrics} - The TypeScript type definition
|
|
19300
|
+
* @see {@link KEYS_PARKING_METRICS} - Array of all keys for this type
|
|
19531
19301
|
*/
|
|
19532
|
-
export const
|
|
19302
|
+
export const KEY_PARKING_METRICS_REVENUE_PROGRESS: keyof ParkingMetrics = 'revenue_progress';
|
|
19533
19303
|
|
|
19534
19304
|
/**
|
|
19535
|
-
* Array of all
|
|
19305
|
+
* Array of all ParkingMetrics property keys
|
|
19536
19306
|
*
|
|
19537
19307
|
* @remarks
|
|
19538
|
-
* This constant provides a readonly array containing all valid property keys for
|
|
19308
|
+
* This constant provides a readonly array containing all valid property keys for ParkingMetrics objects.
|
|
19539
19309
|
* Useful for iteration, validation, and generating dynamic UI components.
|
|
19540
19310
|
*
|
|
19541
19311
|
* @example
|
|
19542
19312
|
* ```typescript
|
|
19543
19313
|
* // Iterating through all keys
|
|
19544
|
-
* for (const key of
|
|
19545
|
-
* console.log(`Property: ${key}, Value: ${
|
|
19314
|
+
* for (const key of KEYS_PARKING_METRICS) {
|
|
19315
|
+
* console.log(`Property: ${key}, Value: ${parkingmetrics[key]}`);
|
|
19546
19316
|
* }
|
|
19547
19317
|
*
|
|
19548
19318
|
* // Validation
|
|
19549
|
-
* const isValidKey =
|
|
19319
|
+
* const isValidKey = KEYS_PARKING_METRICS.includes(someKey);
|
|
19550
19320
|
* ```
|
|
19551
19321
|
*
|
|
19552
|
-
* @see {@link
|
|
19322
|
+
* @see {@link ParkingMetrics} - The TypeScript type definition
|
|
19553
19323
|
*/
|
|
19554
|
-
export const
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
KEY_PARKING_DOMAIN,
|
|
19560
|
-
KEY_PARKING_ENABLED,
|
|
19561
|
-
KEY_PARKING_NOTE,
|
|
19562
|
-
KEY_PARKING_PARKING_ID,
|
|
19563
|
-
KEY_PARKING_UPDATED_ON,
|
|
19564
|
-
] as const satisfies (keyof Parking)[];
|
|
19324
|
+
export const KEYS_PARKING_METRICS = [
|
|
19325
|
+
KEY_PARKING_METRICS_METRICS,
|
|
19326
|
+
KEY_PARKING_METRICS_RENEWAL_COST,
|
|
19327
|
+
KEY_PARKING_METRICS_REVENUE_PROGRESS,
|
|
19328
|
+
] as const satisfies (keyof ParkingMetrics)[];
|
|
19565
19329
|
|
|
19566
19330
|
/**
|
|
19567
19331
|
* Conversions
|
|
@@ -19589,32 +19353,6 @@ export const KEYS_PARKING = [
|
|
|
19589
19353
|
* @see {@link KEYS_PARKING_STATISTICS} - Array of all keys for this type
|
|
19590
19354
|
*/
|
|
19591
19355
|
export const KEY_PARKING_STATISTICS_CONVERSIONS: keyof ParkingStatistics = 'conversions';
|
|
19592
|
-
/**
|
|
19593
|
-
* Profit
|
|
19594
|
-
*
|
|
19595
|
-
* Total profit
|
|
19596
|
-
*
|
|
19597
|
-
* @type {string}
|
|
19598
|
-
*
|
|
19599
|
-
*
|
|
19600
|
-
* @remarks
|
|
19601
|
-
* This key constant provides type-safe access to the `profit` property of ParkingStatistics objects.
|
|
19602
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19603
|
-
*
|
|
19604
|
-
* @example
|
|
19605
|
-
* ```typescript
|
|
19606
|
-
* // Direct property access
|
|
19607
|
-
* const value = parkingstatistics[KEY_PARKING_STATISTICS_PROFIT];
|
|
19608
|
-
*
|
|
19609
|
-
* // Dynamic property access
|
|
19610
|
-
* const propertyName = KEY_PARKING_STATISTICS_PROFIT;
|
|
19611
|
-
* const value = parkingstatistics[propertyName];
|
|
19612
|
-
* ```
|
|
19613
|
-
*
|
|
19614
|
-
* @see {@link ParkingStatistics} - The TypeScript type definition
|
|
19615
|
-
* @see {@link KEYS_PARKING_STATISTICS} - Array of all keys for this type
|
|
19616
|
-
*/
|
|
19617
|
-
export const KEY_PARKING_STATISTICS_PROFIT: keyof ParkingStatistics = 'profit';
|
|
19618
19356
|
/**
|
|
19619
19357
|
* Revenue
|
|
19620
19358
|
*
|
|
@@ -19742,13 +19480,89 @@ export const KEY_PARKING_STATISTICS_VIEWS: keyof ParkingStatistics = 'views';
|
|
|
19742
19480
|
*/
|
|
19743
19481
|
export const KEYS_PARKING_STATISTICS = [
|
|
19744
19482
|
KEY_PARKING_STATISTICS_CONVERSIONS,
|
|
19745
|
-
KEY_PARKING_STATISTICS_PROFIT,
|
|
19746
19483
|
KEY_PARKING_STATISTICS_REVENUE,
|
|
19747
19484
|
KEY_PARKING_STATISTICS_RPC,
|
|
19748
19485
|
KEY_PARKING_STATISTICS_RPM,
|
|
19749
19486
|
KEY_PARKING_STATISTICS_VIEWS,
|
|
19750
19487
|
] as const satisfies (keyof ParkingStatistics)[];
|
|
19751
19488
|
|
|
19489
|
+
/**
|
|
19490
|
+
* Total Count
|
|
19491
|
+
*
|
|
19492
|
+
* Total number of parking entries
|
|
19493
|
+
*
|
|
19494
|
+
* @type {integer}
|
|
19495
|
+
*
|
|
19496
|
+
*
|
|
19497
|
+
* @remarks
|
|
19498
|
+
* This key constant provides type-safe access to the `total_count` property of ParkingTotalMetrics objects.
|
|
19499
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19500
|
+
*
|
|
19501
|
+
* @example
|
|
19502
|
+
* ```typescript
|
|
19503
|
+
* // Direct property access
|
|
19504
|
+
* const value = parkingtotalmetrics[KEY_PARKING_TOTAL_METRICS_TOTAL_COUNT];
|
|
19505
|
+
*
|
|
19506
|
+
* // Dynamic property access
|
|
19507
|
+
* const propertyName = KEY_PARKING_TOTAL_METRICS_TOTAL_COUNT;
|
|
19508
|
+
* const value = parkingtotalmetrics[propertyName];
|
|
19509
|
+
* ```
|
|
19510
|
+
*
|
|
19511
|
+
* @see {@link ParkingTotalMetrics} - The TypeScript type definition
|
|
19512
|
+
* @see {@link KEYS_PARKING_TOTAL_METRICS} - Array of all keys for this type
|
|
19513
|
+
*/
|
|
19514
|
+
export const KEY_PARKING_TOTAL_METRICS_TOTAL_COUNT: keyof ParkingTotalMetrics = 'total_count';
|
|
19515
|
+
/**
|
|
19516
|
+
* total_metrics property
|
|
19517
|
+
*
|
|
19518
|
+
* Aggregated metrics for all parking entries
|
|
19519
|
+
*
|
|
19520
|
+
*
|
|
19521
|
+
*
|
|
19522
|
+
* @remarks
|
|
19523
|
+
* This key constant provides type-safe access to the `total_metrics` property of ParkingTotalMetrics objects.
|
|
19524
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19525
|
+
*
|
|
19526
|
+
* @example
|
|
19527
|
+
* ```typescript
|
|
19528
|
+
* // Direct property access
|
|
19529
|
+
* const value = parkingtotalmetrics[KEY_PARKING_TOTAL_METRICS_TOTAL_METRICS];
|
|
19530
|
+
*
|
|
19531
|
+
* // Dynamic property access
|
|
19532
|
+
* const propertyName = KEY_PARKING_TOTAL_METRICS_TOTAL_METRICS;
|
|
19533
|
+
* const value = parkingtotalmetrics[propertyName];
|
|
19534
|
+
* ```
|
|
19535
|
+
*
|
|
19536
|
+
* @see {@link ParkingTotalMetrics} - The TypeScript type definition
|
|
19537
|
+
* @see {@link KEYS_PARKING_TOTAL_METRICS} - Array of all keys for this type
|
|
19538
|
+
*/
|
|
19539
|
+
export const KEY_PARKING_TOTAL_METRICS_TOTAL_METRICS: keyof ParkingTotalMetrics = 'total_metrics';
|
|
19540
|
+
|
|
19541
|
+
/**
|
|
19542
|
+
* Array of all ParkingTotalMetrics property keys
|
|
19543
|
+
*
|
|
19544
|
+
* @remarks
|
|
19545
|
+
* This constant provides a readonly array containing all valid property keys for ParkingTotalMetrics objects.
|
|
19546
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
19547
|
+
*
|
|
19548
|
+
* @example
|
|
19549
|
+
* ```typescript
|
|
19550
|
+
* // Iterating through all keys
|
|
19551
|
+
* for (const key of KEYS_PARKING_TOTAL_METRICS) {
|
|
19552
|
+
* console.log(`Property: ${key}, Value: ${parkingtotalmetrics[key]}`);
|
|
19553
|
+
* }
|
|
19554
|
+
*
|
|
19555
|
+
* // Validation
|
|
19556
|
+
* const isValidKey = KEYS_PARKING_TOTAL_METRICS.includes(someKey);
|
|
19557
|
+
* ```
|
|
19558
|
+
*
|
|
19559
|
+
* @see {@link ParkingTotalMetrics} - The TypeScript type definition
|
|
19560
|
+
*/
|
|
19561
|
+
export const KEYS_PARKING_TOTAL_METRICS = [
|
|
19562
|
+
KEY_PARKING_TOTAL_METRICS_TOTAL_COUNT,
|
|
19563
|
+
KEY_PARKING_TOTAL_METRICS_TOTAL_METRICS,
|
|
19564
|
+
] as const satisfies (keyof ParkingTotalMetrics)[];
|
|
19565
|
+
|
|
19752
19566
|
/**
|
|
19753
19567
|
* New Password
|
|
19754
19568
|
*
|
|
@@ -4648,6 +4648,8 @@ export type GET_OrganizationsUsers_Request_Query = GET_OrganizationsUsers_Reques
|
|
|
4648
4648
|
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
4649
4649
|
*
|
|
4650
4650
|
* @path /v1/parking
|
|
4651
|
+
* @param page (query) - Page number
|
|
4652
|
+
* @param page_size (query) - Page size
|
|
4651
4653
|
*
|
|
4652
4654
|
* @see {@link GET_Parking_Request_Query} - Query parameters type
|
|
4653
4655
|
* @see {@link GET_Parking_Request_Path} - Path parameters type
|
|
@@ -4669,14 +4671,55 @@ export type GET_Parking_Request = {
|
|
|
4669
4671
|
* Use this type to ensure type safety for query parameters.
|
|
4670
4672
|
*
|
|
4671
4673
|
* @path /v1/parking
|
|
4674
|
+
* @param page (query) - Page number
|
|
4675
|
+
* @param page_size (query) - Page size
|
|
4672
4676
|
*/
|
|
4673
4677
|
export type GET_Parking_Request_Query = GET_Parking_Request['parameters']['query'];
|
|
4674
4678
|
|
|
4679
|
+
/**
|
|
4680
|
+
* Request type for GET ParkingMetrics endpoint
|
|
4681
|
+
*
|
|
4682
|
+
* Get total metrics for all parking entries
|
|
4683
|
+
* Retrieves aggregated metrics for all parking entries of the organization.
|
|
4684
|
+
*
|
|
4685
|
+
* @remarks
|
|
4686
|
+
* This type defines the complete request structure for the GET ParkingMetrics endpoint.
|
|
4687
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
4688
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
4689
|
+
*
|
|
4690
|
+
* @example
|
|
4691
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
4692
|
+
*
|
|
4693
|
+
* @path /v1/parking/metrics
|
|
4694
|
+
*
|
|
4695
|
+
* @see {@link GET_ParkingMetrics_Request_Query} - Query parameters type
|
|
4696
|
+
* @see {@link GET_ParkingMetrics_Request_Path} - Path parameters type
|
|
4697
|
+
* @see {@link GET_ParkingMetrics_Request_Body} - Request body type
|
|
4698
|
+
*/
|
|
4699
|
+
export type GET_ParkingMetrics_Request = {
|
|
4700
|
+
parameters: {
|
|
4701
|
+
query: operations['get_total_parking_metrics_v1_parking_metrics_get']['parameters']['query'];
|
|
4702
|
+
};
|
|
4703
|
+
}
|
|
4704
|
+
/**
|
|
4705
|
+
* Query parameters for GET /v1/parking/metrics
|
|
4706
|
+
*
|
|
4707
|
+
* @remarks
|
|
4708
|
+
* This type defines the query parameters for the GET /v1/parking/metrics endpoint.
|
|
4709
|
+
* It provides type safety for all query parameters as defined in the OpenAPI specification.
|
|
4710
|
+
*
|
|
4711
|
+
* @example
|
|
4712
|
+
* Use this type to ensure type safety for query parameters.
|
|
4713
|
+
*
|
|
4714
|
+
* @path /v1/parking/metrics
|
|
4715
|
+
*/
|
|
4716
|
+
export type GET_ParkingMetrics_Request_Query = GET_ParkingMetrics_Request['parameters']['query'];
|
|
4717
|
+
|
|
4675
4718
|
/**
|
|
4676
4719
|
* Request type for GET ParkingParkingIdMetrics endpoint
|
|
4677
4720
|
*
|
|
4678
4721
|
* Get metrics for a parking entry
|
|
4679
|
-
* Retrieves metrics for a specific parking entry by ID
|
|
4722
|
+
* Retrieves metrics for a specific parking entry by ID.
|
|
4680
4723
|
*
|
|
4681
4724
|
* @remarks
|
|
4682
4725
|
* This type defines the complete request structure for the GET ParkingParkingIdMetrics endpoint.
|
|
@@ -4694,9 +4737,23 @@ export type GET_Parking_Request_Query = GET_Parking_Request['parameters']['query
|
|
|
4694
4737
|
*/
|
|
4695
4738
|
export type GET_ParkingParkingIdMetrics_Request = {
|
|
4696
4739
|
parameters: {
|
|
4740
|
+
query: operations['get_parking_metrics_v1_parking__parking_id__metrics_get']['parameters']['query'];
|
|
4697
4741
|
path: operations['get_parking_metrics_v1_parking__parking_id__metrics_get']['parameters']['path'];
|
|
4698
4742
|
};
|
|
4699
4743
|
}
|
|
4744
|
+
/**
|
|
4745
|
+
* Query parameters for GET /v1/parking/{parking_id}/metrics
|
|
4746
|
+
*
|
|
4747
|
+
* @remarks
|
|
4748
|
+
* This type defines the query parameters for the GET /v1/parking/{parking_id}/metrics endpoint.
|
|
4749
|
+
* It provides type safety for all query parameters as defined in the OpenAPI specification.
|
|
4750
|
+
*
|
|
4751
|
+
* @example
|
|
4752
|
+
* Use this type to ensure type safety for query parameters.
|
|
4753
|
+
*
|
|
4754
|
+
* @path /v1/parking/{parking_id}/metrics
|
|
4755
|
+
*/
|
|
4756
|
+
export type GET_ParkingParkingIdMetrics_Request_Query = GET_ParkingParkingIdMetrics_Request['parameters']['query'];
|
|
4700
4757
|
/**
|
|
4701
4758
|
* Path parameters for GET /v1/parking/{parking_id}/metrics
|
|
4702
4759
|
*
|