@opusdns/api 0.14.1 → 0.16.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/constants.ts +1 -101
- package/src/helpers/keys.ts +149 -723
- package/src/helpers/requests.d.ts +193 -111
- package/src/helpers/responses.d.ts +138 -164
- package/src/helpers/schemas-arrays.d.ts +20 -34
- package/src/helpers/schemas.d.ts +34 -162
- package/src/openapi.yaml +165 -306
- package/src/schema.d.ts +124 -203
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { AllocationMethodType,
|
|
24
|
+
import { AllocationMethodType, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationCredentialStatus, OrganizationStatus, PatchOp, PeriodUnit, Permission, PlanRelation, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserNotificationStatus, UserStatus, VerificationType, ZoneSortField } from './schemas';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AllocationMethodType. Auto-generated enum for AllocationMethodType
|
|
@@ -75,56 +75,6 @@ export const ALLOCATION_METHOD_TYPE_VALUES = [
|
|
|
75
75
|
'lottery'
|
|
76
76
|
] as const satisfies [string, ...string[]] | AllocationMethodType[];
|
|
77
77
|
|
|
78
|
-
/**
|
|
79
|
-
* BulkOperationStatus. Auto-generated enum for BulkOperationStatus
|
|
80
|
-
*
|
|
81
|
-
* @remarks
|
|
82
|
-
* This constant provides both object and array forms for the BulkOperationStatus enum.
|
|
83
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```typescript
|
|
87
|
-
* // Using the object form for key-value access
|
|
88
|
-
* const status = BULK_OPERATION_STATUS.SUCCESS;
|
|
89
|
-
*
|
|
90
|
-
* // Using the array form for iteration
|
|
91
|
-
* const allStatuses = BULK_OPERATION_STATUS_VALUES;
|
|
92
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @see {@link BulkOperationStatus} - The TypeScript type definition
|
|
96
|
-
*/
|
|
97
|
-
export const BULK_OPERATION_STATUS = {
|
|
98
|
-
SUCCESS: "success",
|
|
99
|
-
FAILED: "failed",
|
|
100
|
-
} as const satisfies Record<string, BulkOperationStatus>;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Array of all BulkOperationStatus enum values
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* This constant provides a array containing all valid BulkOperationStatus enum values.
|
|
107
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
108
|
-
*
|
|
109
|
-
* @example
|
|
110
|
-
* ```typescript
|
|
111
|
-
* // Iterating through all values
|
|
112
|
-
* for (const value of BULK_OPERATION_STATUS_VALUES) {
|
|
113
|
-
* console.log(`Processing: ${value}`);
|
|
114
|
-
* }
|
|
115
|
-
*
|
|
116
|
-
* // Validation
|
|
117
|
-
* const isValid = BULK_OPERATION_STATUS_VALUES.includes(someValue);
|
|
118
|
-
* ```
|
|
119
|
-
*
|
|
120
|
-
* @see {@link BulkOperationStatus} - The TypeScript type definition
|
|
121
|
-
* @see {@link BULK_OPERATION_STATUS} - The object form of this enum
|
|
122
|
-
*/
|
|
123
|
-
export const BULK_OPERATION_STATUS_VALUES = [
|
|
124
|
-
'success',
|
|
125
|
-
'failed'
|
|
126
|
-
] as const satisfies [string, ...string[]] | BulkOperationStatus[];
|
|
127
|
-
|
|
128
78
|
/**
|
|
129
79
|
* ContactRoleType. Auto-generated enum for ContactRoleType
|
|
130
80
|
*
|
|
@@ -989,56 +939,6 @@ export const DOMAIN_STATUS_VALUES = [
|
|
|
989
939
|
'clientHold'
|
|
990
940
|
] as const satisfies [string, ...string[]] | DomainStatus[];
|
|
991
941
|
|
|
992
|
-
/**
|
|
993
|
-
* EmailForwardStatus. Auto-generated enum for EmailForwardStatus
|
|
994
|
-
*
|
|
995
|
-
* @remarks
|
|
996
|
-
* This constant provides both object and array forms for the EmailForwardStatus enum.
|
|
997
|
-
* The object form allows key-value access, while the array form enables iteration and validation.
|
|
998
|
-
*
|
|
999
|
-
* @example
|
|
1000
|
-
* ```typescript
|
|
1001
|
-
* // Using the object form for key-value access
|
|
1002
|
-
* const status = EMAIL_FORWARD_STATUS.SUCCESS;
|
|
1003
|
-
*
|
|
1004
|
-
* // Using the array form for iteration
|
|
1005
|
-
* const allStatuses = EMAIL_FORWARD_STATUS_VALUES;
|
|
1006
|
-
* console.log(`Available statuses: ${allStatuses.join(', ')}`);
|
|
1007
|
-
* ```
|
|
1008
|
-
*
|
|
1009
|
-
* @see {@link EmailForwardStatus} - The TypeScript type definition
|
|
1010
|
-
*/
|
|
1011
|
-
export const EMAIL_FORWARD_STATUS = {
|
|
1012
|
-
ACTIVE: "active",
|
|
1013
|
-
INACTIVE: "inactive",
|
|
1014
|
-
} as const satisfies Record<string, EmailForwardStatus>;
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Array of all EmailForwardStatus enum values
|
|
1018
|
-
*
|
|
1019
|
-
* @remarks
|
|
1020
|
-
* This constant provides a array containing all valid EmailForwardStatus enum values.
|
|
1021
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
1022
|
-
*
|
|
1023
|
-
* @example
|
|
1024
|
-
* ```typescript
|
|
1025
|
-
* // Iterating through all values
|
|
1026
|
-
* for (const value of EMAIL_FORWARD_STATUS_VALUES) {
|
|
1027
|
-
* console.log(`Processing: ${value}`);
|
|
1028
|
-
* }
|
|
1029
|
-
*
|
|
1030
|
-
* // Validation
|
|
1031
|
-
* const isValid = EMAIL_FORWARD_STATUS_VALUES.includes(someValue);
|
|
1032
|
-
* ```
|
|
1033
|
-
*
|
|
1034
|
-
* @see {@link EmailForwardStatus} - The TypeScript type definition
|
|
1035
|
-
* @see {@link EMAIL_FORWARD_STATUS} - The object form of this enum
|
|
1036
|
-
*/
|
|
1037
|
-
export const EMAIL_FORWARD_STATUS_VALUES = [
|
|
1038
|
-
'active',
|
|
1039
|
-
'inactive'
|
|
1040
|
-
] as const satisfies [string, ...string[]] | EmailForwardStatus[];
|
|
1041
|
-
|
|
1042
942
|
/**
|
|
1043
943
|
* EmailVerificationStatus. Auto-generated enum for EmailVerificationStatus
|
|
1044
944
|
*
|