@opusdns/api 0.59.0 → 0.60.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 CHANGED
@@ -8,7 +8,7 @@
8
8
  "typescript": "^5.8.2"
9
9
  },
10
10
  "name": "@opusdns/api",
11
- "version": "0.59.0",
11
+ "version": "0.60.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "./src/index.ts",
14
14
  "module": "./src/index.ts",
@@ -14316,6 +14316,56 @@ export const KEYS_PREMIUM_DOMAINS_BASE = [
14316
14316
  * @see {@link KEYS_PRICE_INFO} - Array of all keys for this type
14317
14317
  */
14318
14318
  export const KEY_PRICE_INFO_CURRENCY = 'currency' as keyof PriceInfo;
14319
+ /**
14320
+ * Period Unit
14321
+ *
14322
+ * Period unit: 'y' (year), 'm' (month), 'd' (day)
14323
+ *
14324
+ *
14325
+ *
14326
+ * @remarks
14327
+ * This key constant provides type-safe access to the `period_unit` property of PriceInfo objects.
14328
+ * Use this constant when you need to access properties dynamically or ensure type safety.
14329
+ *
14330
+ * @example
14331
+ * ```typescript
14332
+ * // Direct property access
14333
+ * const value = priceinfo[KEY_PRICE_INFO_PERIOD_UNIT];
14334
+ *
14335
+ * // Dynamic property access
14336
+ * const propertyName = KEY_PRICE_INFO_PERIOD_UNIT;
14337
+ * const value = priceinfo[propertyName];
14338
+ * ```
14339
+ *
14340
+ * @see {@link PriceInfo} - The TypeScript type definition
14341
+ * @see {@link KEYS_PRICE_INFO} - Array of all keys for this type
14342
+ */
14343
+ export const KEY_PRICE_INFO_PERIOD_UNIT = 'period_unit' as keyof PriceInfo;
14344
+ /**
14345
+ * Period Value
14346
+ *
14347
+ * Period value (e.g., 1 for 1 year)
14348
+ *
14349
+ *
14350
+ *
14351
+ * @remarks
14352
+ * This key constant provides type-safe access to the `period_value` property of PriceInfo objects.
14353
+ * Use this constant when you need to access properties dynamically or ensure type safety.
14354
+ *
14355
+ * @example
14356
+ * ```typescript
14357
+ * // Direct property access
14358
+ * const value = priceinfo[KEY_PRICE_INFO_PERIOD_VALUE];
14359
+ *
14360
+ * // Dynamic property access
14361
+ * const propertyName = KEY_PRICE_INFO_PERIOD_VALUE;
14362
+ * const value = priceinfo[propertyName];
14363
+ * ```
14364
+ *
14365
+ * @see {@link PriceInfo} - The TypeScript type definition
14366
+ * @see {@link KEYS_PRICE_INFO} - Array of all keys for this type
14367
+ */
14368
+ export const KEY_PRICE_INFO_PERIOD_VALUE = 'period_value' as keyof PriceInfo;
14319
14369
  /**
14320
14370
  * Price
14321
14371
  *
@@ -14437,6 +14487,8 @@ export const KEY_PRICE_INFO_PRODUCT_TYPE = 'product_type' as keyof PriceInfo;
14437
14487
  */
14438
14488
  export const KEYS_PRICE_INFO = [
14439
14489
  KEY_PRICE_INFO_CURRENCY,
14490
+ KEY_PRICE_INFO_PERIOD_UNIT,
14491
+ KEY_PRICE_INFO_PERIOD_VALUE,
14440
14492
  KEY_PRICE_INFO_PRICE,
14441
14493
  KEY_PRICE_INFO_PRODUCT_ACTION,
14442
14494
  KEY_PRICE_INFO_PRODUCT_CLASS,
package/src/openapi.yaml CHANGED
@@ -3756,6 +3756,18 @@ components:
3756
3756
  currency:
3757
3757
  title: Currency
3758
3758
  type: string
3759
+ period_unit:
3760
+ anyOf:
3761
+ - type: string
3762
+ - type: 'null'
3763
+ description: 'Period unit: ''y'' (year), ''m'' (month), ''d'' (day)'
3764
+ title: Period Unit
3765
+ period_value:
3766
+ anyOf:
3767
+ - type: integer
3768
+ - type: 'null'
3769
+ description: Period value (e.g., 1 for 1 year)
3770
+ title: Period Value
3759
3771
  price:
3760
3772
  title: Price
3761
3773
  type: string
@@ -4908,7 +4920,7 @@ info:
4908
4920
  '
4909
4921
  summary: OpusDNS - your gateway to a seamless domain management experience.
4910
4922
  title: OpusDNS API
4911
- version: 2025-09-22-083231
4923
+ version: 2025-09-22-190002
4912
4924
  x-logo:
4913
4925
  altText: OpusDNS API Reference
4914
4926
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
package/src/schema.d.ts CHANGED
@@ -3545,6 +3545,16 @@ export interface components {
3545
3545
  PriceInfo: {
3546
3546
  /** Currency */
3547
3547
  currency: string;
3548
+ /**
3549
+ * Period Unit
3550
+ * @description Period unit: 'y' (year), 'm' (month), 'd' (day)
3551
+ */
3552
+ period_unit?: string | null;
3553
+ /**
3554
+ * Period Value
3555
+ * @description Period value (e.g., 1 for 1 year)
3556
+ */
3557
+ period_value?: number | null;
3548
3558
  /** Price */
3549
3559
  price: string;
3550
3560
  /** Product Action */