@opusdns/api 0.78.0 → 0.80.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
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@types/js-yaml": "^4.0.9",
4
- "@types/node": "^24.0.14",
5
- "js-yaml": "^4.1.0",
6
- "openapi-typescript": "^7.8.0",
7
- "tsx": "^4.20.3",
8
- "typescript": "^5.8.2"
3
+ "@opusdns/api-spec-ts-generator": "^0.9.1"
9
4
  },
10
5
  "name": "@opusdns/api",
11
- "version": "0.78.0",
6
+ "version": "0.80.0",
12
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
8
  "main": "./src/index.ts",
14
9
  "module": "./src/index.ts",
@@ -36,7 +31,7 @@
36
31
  },
37
32
  "scripts": {
38
33
  "generate:schema": "tsx scripts/generate-schema.ts",
39
- "generate:helpers": "tsx scripts/helpers/generate-all.ts"
34
+ "generate:helpers": "tsx scripts/generate-all-helpers.ts"
40
35
  },
41
36
  "homepage": "https://github.com/OpusDNS/api-spec#readme",
42
37
  "files": [
@@ -21,59 +21,7 @@
21
21
  * ```
22
22
  */
23
23
 
24
- import { AgreementType, AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationCredentialStatus, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, WalletCreditResponseStatus, ZoneSortField } from './schemas';
25
-
26
- /**
27
- * AgreementType. Auto-generated enum for AgreementType
28
- *
29
- * @remarks
30
- * This constant provides both object and array forms for the AgreementType enum.
31
- * The object form allows key-value access, while the array form enables iteration and validation.
32
- *
33
- * @example
34
- * ```typescript
35
- * // Using the object form for key-value access
36
- * const status = AGREEMENT_TYPE.SUCCESS;
37
- *
38
- * // Using the array form for iteration
39
- * const allStatuses = AGREEMENT_TYPE_VALUES;
40
- * console.log(`Available statuses: ${allStatuses.join(', ')}`);
41
- * ```
42
- *
43
- * @see {@link AgreementType} - The TypeScript type definition
44
- */
45
- export const AGREEMENT_TYPE = {
46
- TERMS_AND_CONDITIONS: "terms_and_conditions",
47
- MASTER_SERVICE_AGREEMENT: "master_service_agreement",
48
- ACTING_AS_TRADER: "acting_as_trader",
49
- } as const satisfies Record<string, AgreementType>;
50
-
51
- /**
52
- * Array of all AgreementType enum values
53
- *
54
- * @remarks
55
- * This constant provides a array containing all valid AgreementType enum values.
56
- * Useful for iteration, validation, and generating dynamic UI components.
57
- *
58
- * @example
59
- * ```typescript
60
- * // Iterating through all values
61
- * for (const value of AGREEMENT_TYPE_VALUES) {
62
- * console.log(`Processing: ${value}`);
63
- * }
64
- *
65
- * // Validation
66
- * const isValid = AGREEMENT_TYPE_VALUES.includes(someValue);
67
- * ```
68
- *
69
- * @see {@link AgreementType} - The TypeScript type definition
70
- * @see {@link AGREEMENT_TYPE} - The object form of this enum
71
- */
72
- export const AGREEMENT_TYPE_VALUES = [
73
- 'terms_and_conditions',
74
- 'master_service_agreement',
75
- 'acting_as_trader'
76
- ] as const satisfies [string, ...string[]] | AgreementType[];
24
+ import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, WalletCreditResponseStatus, ZoneSortField } from './schemas';
77
25
 
78
26
  /**
79
27
  * AllocationMethodType. Auto-generated enum for AllocationMethodType
@@ -1705,56 +1653,6 @@ export const LOCAL_PRESENCE_REQUIREMENT_TYPE_VALUES = [
1705
1653
  'business_entity'
1706
1654
  ] as const satisfies [string, ...string[]] | LocalPresenceRequirementType[];
1707
1655
 
1708
- /**
1709
- * OrganizationCredentialStatus. Auto-generated enum for OrganizationCredentialStatus
1710
- *
1711
- * @remarks
1712
- * This constant provides both object and array forms for the OrganizationCredentialStatus enum.
1713
- * The object form allows key-value access, while the array form enables iteration and validation.
1714
- *
1715
- * @example
1716
- * ```typescript
1717
- * // Using the object form for key-value access
1718
- * const status = ORGANIZATION_CREDENTIAL_STATUS.SUCCESS;
1719
- *
1720
- * // Using the array form for iteration
1721
- * const allStatuses = ORGANIZATION_CREDENTIAL_STATUS_VALUES;
1722
- * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1723
- * ```
1724
- *
1725
- * @see {@link OrganizationCredentialStatus} - The TypeScript type definition
1726
- */
1727
- export const ORGANIZATION_CREDENTIAL_STATUS = {
1728
- ACTIVE: "active",
1729
- REVOKED: "revoked",
1730
- } as const satisfies Record<string, OrganizationCredentialStatus>;
1731
-
1732
- /**
1733
- * Array of all OrganizationCredentialStatus enum values
1734
- *
1735
- * @remarks
1736
- * This constant provides a array containing all valid OrganizationCredentialStatus enum values.
1737
- * Useful for iteration, validation, and generating dynamic UI components.
1738
- *
1739
- * @example
1740
- * ```typescript
1741
- * // Iterating through all values
1742
- * for (const value of ORGANIZATION_CREDENTIAL_STATUS_VALUES) {
1743
- * console.log(`Processing: ${value}`);
1744
- * }
1745
- *
1746
- * // Validation
1747
- * const isValid = ORGANIZATION_CREDENTIAL_STATUS_VALUES.includes(someValue);
1748
- * ```
1749
- *
1750
- * @see {@link OrganizationCredentialStatus} - The TypeScript type definition
1751
- * @see {@link ORGANIZATION_CREDENTIAL_STATUS} - The object form of this enum
1752
- */
1753
- export const ORGANIZATION_CREDENTIAL_STATUS_VALUES = [
1754
- 'active',
1755
- 'revoked'
1756
- ] as const satisfies [string, ...string[]] | OrganizationCredentialStatus[];
1757
-
1758
1656
  /**
1759
1657
  * OrganizationStatus. Auto-generated enum for OrganizationStatus
1760
1658
  *