@opusdns/api 0.127.0 → 0.128.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 +107 -51
- package/src/helpers/keys.ts +546 -2
- package/src/helpers/schemas.d.ts +131 -19
- package/src/openapi.yaml +168 -23
- package/src/schema.d.ts +113 -16
package/src/helpers/keys.ts
CHANGED
|
@@ -44,6 +44,7 @@ import { ContactVerificationApi } from './schemas';
|
|
|
44
44
|
import { ContactVerificationEmail } from './schemas';
|
|
45
45
|
import { ContactVerification } from './schemas';
|
|
46
46
|
import { ContactsBase } from './schemas';
|
|
47
|
+
import { DeletedEvent } from './schemas';
|
|
47
48
|
import { DnsChange } from './schemas';
|
|
48
49
|
import { DnsChanges } from './schemas';
|
|
49
50
|
import { DnsConfigurationBase } from './schemas';
|
|
@@ -114,6 +115,7 @@ import { EventSchema } from './schemas';
|
|
|
114
115
|
import { GeneralAvailabilityBase } from './schemas';
|
|
115
116
|
import { GetPrices } from './schemas';
|
|
116
117
|
import { HTTPValidationError } from './schemas';
|
|
118
|
+
import { HostSchema } from './schemas';
|
|
117
119
|
import { HttpRedirectList } from './schemas';
|
|
118
120
|
import { HttpRedirectRemove } from './schemas';
|
|
119
121
|
import { HttpRedirectRequest } from './schemas';
|
|
@@ -149,6 +151,7 @@ import { PublicAuthRequestForm } from './schemas';
|
|
|
149
151
|
import { RdapBase } from './schemas';
|
|
150
152
|
import { RegistryLockBase } from './schemas';
|
|
151
153
|
import { RelationSet } from './schemas';
|
|
154
|
+
import { RenewalEvent } from './schemas';
|
|
152
155
|
import { RequestHistory } from './schemas';
|
|
153
156
|
import { ReservedDomainsBase } from './schemas';
|
|
154
157
|
import { RgpOperations } from './schemas';
|
|
@@ -158,10 +161,12 @@ import { TldBase } from './schemas';
|
|
|
158
161
|
import { TldResponseShort } from './schemas';
|
|
159
162
|
import { TldSpecification } from './schemas';
|
|
160
163
|
import { TrademarkClaimsBase } from './schemas';
|
|
164
|
+
import { TransferEvent } from './schemas';
|
|
161
165
|
import { TransferLockPolicyBase } from './schemas';
|
|
162
166
|
import { TransferPoliciesBase } from './schemas';
|
|
163
167
|
import { User } from './schemas';
|
|
164
168
|
import { UserAttributeBase } from './schemas';
|
|
169
|
+
import { UserAttribute } from './schemas';
|
|
165
170
|
import { UserCreate } from './schemas';
|
|
166
171
|
import { UserToken } from './schemas';
|
|
167
172
|
import { UserUpdate } from './schemas';
|
|
@@ -3527,6 +3532,55 @@ export const KEYS_CONTACTS_BASE = [
|
|
|
3527
3532
|
KEY_CONTACTS_BASE_SUPPORTED_ROLES,
|
|
3528
3533
|
] as const satisfies (keyof ContactsBase)[];
|
|
3529
3534
|
|
|
3535
|
+
/**
|
|
3536
|
+
* date property
|
|
3537
|
+
*
|
|
3538
|
+
*
|
|
3539
|
+
*
|
|
3540
|
+
*
|
|
3541
|
+
* @remarks
|
|
3542
|
+
* This key constant provides type-safe access to the `date` property of DeletedEvent objects.
|
|
3543
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3544
|
+
*
|
|
3545
|
+
* @example
|
|
3546
|
+
* ```typescript
|
|
3547
|
+
* // Direct property access
|
|
3548
|
+
* const value = deletedevent[KEY_DELETED_EVENT_DATE];
|
|
3549
|
+
*
|
|
3550
|
+
* // Dynamic property access
|
|
3551
|
+
* const propertyName = KEY_DELETED_EVENT_DATE;
|
|
3552
|
+
* const value = deletedevent[propertyName];
|
|
3553
|
+
* ```
|
|
3554
|
+
*
|
|
3555
|
+
* @see {@link DeletedEvent} - The TypeScript type definition
|
|
3556
|
+
* @see {@link KEYS_DELETED_EVENT} - Array of all keys for this type
|
|
3557
|
+
*/
|
|
3558
|
+
export const KEY_DELETED_EVENT_DATE: keyof DeletedEvent = 'date';
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* Array of all DeletedEvent property keys
|
|
3562
|
+
*
|
|
3563
|
+
* @remarks
|
|
3564
|
+
* This constant provides a readonly array containing all valid property keys for DeletedEvent objects.
|
|
3565
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
3566
|
+
*
|
|
3567
|
+
* @example
|
|
3568
|
+
* ```typescript
|
|
3569
|
+
* // Iterating through all keys
|
|
3570
|
+
* for (const key of KEYS_DELETED_EVENT) {
|
|
3571
|
+
* console.log(`Property: ${key}, Value: ${deletedevent[key]}`);
|
|
3572
|
+
* }
|
|
3573
|
+
*
|
|
3574
|
+
* // Validation
|
|
3575
|
+
* const isValidKey = KEYS_DELETED_EVENT.includes(someKey);
|
|
3576
|
+
* ```
|
|
3577
|
+
*
|
|
3578
|
+
* @see {@link DeletedEvent} - The TypeScript type definition
|
|
3579
|
+
*/
|
|
3580
|
+
export const KEYS_DELETED_EVENT = [
|
|
3581
|
+
KEY_DELETED_EVENT_DATE,
|
|
3582
|
+
] as const satisfies (keyof DeletedEvent)[];
|
|
3583
|
+
|
|
3530
3584
|
/**
|
|
3531
3585
|
* action property
|
|
3532
3586
|
*
|
|
@@ -12452,7 +12506,7 @@ export const KEY_H_T_T_P_VALIDATION_ERROR_ERRORS: keyof HTTPValidationError = 'e
|
|
|
12452
12506
|
*/
|
|
12453
12507
|
export const KEY_H_T_T_P_VALIDATION_ERROR_STATUS: keyof HTTPValidationError = 'status';
|
|
12454
12508
|
/**
|
|
12455
|
-
* Problem
|
|
12509
|
+
* Problem title
|
|
12456
12510
|
*
|
|
12457
12511
|
*
|
|
12458
12512
|
* @type {string}
|
|
@@ -12529,6 +12583,216 @@ export const KEYS_H_T_T_P_VALIDATION_ERROR = [
|
|
|
12529
12583
|
KEY_H_T_T_P_VALIDATION_ERROR_TYPE,
|
|
12530
12584
|
] as const satisfies (keyof HTTPValidationError)[];
|
|
12531
12585
|
|
|
12586
|
+
/**
|
|
12587
|
+
* Created On
|
|
12588
|
+
*
|
|
12589
|
+
* The date/time the entry was created on
|
|
12590
|
+
*
|
|
12591
|
+
* @type {string}
|
|
12592
|
+
*
|
|
12593
|
+
*
|
|
12594
|
+
* @remarks
|
|
12595
|
+
* This key constant provides type-safe access to the `created_on` property of HostSchema objects.
|
|
12596
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12597
|
+
*
|
|
12598
|
+
* @example
|
|
12599
|
+
* ```typescript
|
|
12600
|
+
* // Direct property access
|
|
12601
|
+
* const value = hostschema[KEY_HOST_SCHEMA_CREATED_ON];
|
|
12602
|
+
*
|
|
12603
|
+
* // Dynamic property access
|
|
12604
|
+
* const propertyName = KEY_HOST_SCHEMA_CREATED_ON;
|
|
12605
|
+
* const value = hostschema[propertyName];
|
|
12606
|
+
* ```
|
|
12607
|
+
*
|
|
12608
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12609
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12610
|
+
*/
|
|
12611
|
+
export const KEY_HOST_SCHEMA_CREATED_ON: keyof HostSchema = 'created_on';
|
|
12612
|
+
/**
|
|
12613
|
+
* Domain Id
|
|
12614
|
+
*
|
|
12615
|
+
* The domain that the host object belongs to
|
|
12616
|
+
*
|
|
12617
|
+
* @type {string}
|
|
12618
|
+
*
|
|
12619
|
+
*
|
|
12620
|
+
* @remarks
|
|
12621
|
+
* This key constant provides type-safe access to the `domain_id` property of HostSchema objects.
|
|
12622
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12623
|
+
*
|
|
12624
|
+
* @example
|
|
12625
|
+
* ```typescript
|
|
12626
|
+
* // Direct property access
|
|
12627
|
+
* const value = hostschema[KEY_HOST_SCHEMA_DOMAIN_ID];
|
|
12628
|
+
*
|
|
12629
|
+
* // Dynamic property access
|
|
12630
|
+
* const propertyName = KEY_HOST_SCHEMA_DOMAIN_ID;
|
|
12631
|
+
* const value = hostschema[propertyName];
|
|
12632
|
+
* ```
|
|
12633
|
+
*
|
|
12634
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12635
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12636
|
+
*/
|
|
12637
|
+
export const KEY_HOST_SCHEMA_DOMAIN_ID: keyof HostSchema = 'domain_id';
|
|
12638
|
+
/**
|
|
12639
|
+
* Host Id
|
|
12640
|
+
*
|
|
12641
|
+
*
|
|
12642
|
+
* @type {string}
|
|
12643
|
+
*
|
|
12644
|
+
*
|
|
12645
|
+
* @remarks
|
|
12646
|
+
* This key constant provides type-safe access to the `host_id` property of HostSchema objects.
|
|
12647
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12648
|
+
*
|
|
12649
|
+
* @example
|
|
12650
|
+
* ```typescript
|
|
12651
|
+
* // Direct property access
|
|
12652
|
+
* const value = hostschema[KEY_HOST_SCHEMA_HOST_ID];
|
|
12653
|
+
*
|
|
12654
|
+
* // Dynamic property access
|
|
12655
|
+
* const propertyName = KEY_HOST_SCHEMA_HOST_ID;
|
|
12656
|
+
* const value = hostschema[propertyName];
|
|
12657
|
+
* ```
|
|
12658
|
+
*
|
|
12659
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12660
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12661
|
+
*/
|
|
12662
|
+
export const KEY_HOST_SCHEMA_HOST_ID: keyof HostSchema = 'host_id';
|
|
12663
|
+
/**
|
|
12664
|
+
* Hostname
|
|
12665
|
+
*
|
|
12666
|
+
* Hostname of the host object
|
|
12667
|
+
*
|
|
12668
|
+
* @type {string}
|
|
12669
|
+
*
|
|
12670
|
+
*
|
|
12671
|
+
* @remarks
|
|
12672
|
+
* This key constant provides type-safe access to the `hostname` property of HostSchema objects.
|
|
12673
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12674
|
+
*
|
|
12675
|
+
* @example
|
|
12676
|
+
* ```typescript
|
|
12677
|
+
* // Direct property access
|
|
12678
|
+
* const value = hostschema[KEY_HOST_SCHEMA_HOSTNAME];
|
|
12679
|
+
*
|
|
12680
|
+
* // Dynamic property access
|
|
12681
|
+
* const propertyName = KEY_HOST_SCHEMA_HOSTNAME;
|
|
12682
|
+
* const value = hostschema[propertyName];
|
|
12683
|
+
* ```
|
|
12684
|
+
*
|
|
12685
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12686
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12687
|
+
*/
|
|
12688
|
+
export const KEY_HOST_SCHEMA_HOSTNAME: keyof HostSchema = 'hostname';
|
|
12689
|
+
/**
|
|
12690
|
+
* Registry Account Id
|
|
12691
|
+
*
|
|
12692
|
+
* The registry account that the host object belongs to
|
|
12693
|
+
*
|
|
12694
|
+
*
|
|
12695
|
+
*
|
|
12696
|
+
* @remarks
|
|
12697
|
+
* This key constant provides type-safe access to the `registry_account_id` property of HostSchema objects.
|
|
12698
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12699
|
+
*
|
|
12700
|
+
* @example
|
|
12701
|
+
* ```typescript
|
|
12702
|
+
* // Direct property access
|
|
12703
|
+
* const value = hostschema[KEY_HOST_SCHEMA_REGISTRY_ACCOUNT_ID];
|
|
12704
|
+
*
|
|
12705
|
+
* // Dynamic property access
|
|
12706
|
+
* const propertyName = KEY_HOST_SCHEMA_REGISTRY_ACCOUNT_ID;
|
|
12707
|
+
* const value = hostschema[propertyName];
|
|
12708
|
+
* ```
|
|
12709
|
+
*
|
|
12710
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12711
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12712
|
+
*/
|
|
12713
|
+
export const KEY_HOST_SCHEMA_REGISTRY_ACCOUNT_ID: keyof HostSchema = 'registry_account_id';
|
|
12714
|
+
/**
|
|
12715
|
+
* status property
|
|
12716
|
+
*
|
|
12717
|
+
* Status of the host object
|
|
12718
|
+
*
|
|
12719
|
+
*
|
|
12720
|
+
*
|
|
12721
|
+
* @remarks
|
|
12722
|
+
* This key constant provides type-safe access to the `status` property of HostSchema objects.
|
|
12723
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12724
|
+
*
|
|
12725
|
+
* @example
|
|
12726
|
+
* ```typescript
|
|
12727
|
+
* // Direct property access
|
|
12728
|
+
* const value = hostschema[KEY_HOST_SCHEMA_STATUS];
|
|
12729
|
+
*
|
|
12730
|
+
* // Dynamic property access
|
|
12731
|
+
* const propertyName = KEY_HOST_SCHEMA_STATUS;
|
|
12732
|
+
* const value = hostschema[propertyName];
|
|
12733
|
+
* ```
|
|
12734
|
+
*
|
|
12735
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12736
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12737
|
+
*/
|
|
12738
|
+
export const KEY_HOST_SCHEMA_STATUS: keyof HostSchema = 'status';
|
|
12739
|
+
/**
|
|
12740
|
+
* Updated On
|
|
12741
|
+
*
|
|
12742
|
+
* The date/time the entry was last updated on
|
|
12743
|
+
*
|
|
12744
|
+
* @type {string}
|
|
12745
|
+
*
|
|
12746
|
+
*
|
|
12747
|
+
* @remarks
|
|
12748
|
+
* This key constant provides type-safe access to the `updated_on` property of HostSchema objects.
|
|
12749
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
12750
|
+
*
|
|
12751
|
+
* @example
|
|
12752
|
+
* ```typescript
|
|
12753
|
+
* // Direct property access
|
|
12754
|
+
* const value = hostschema[KEY_HOST_SCHEMA_UPDATED_ON];
|
|
12755
|
+
*
|
|
12756
|
+
* // Dynamic property access
|
|
12757
|
+
* const propertyName = KEY_HOST_SCHEMA_UPDATED_ON;
|
|
12758
|
+
* const value = hostschema[propertyName];
|
|
12759
|
+
* ```
|
|
12760
|
+
*
|
|
12761
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12762
|
+
* @see {@link KEYS_HOST_SCHEMA} - Array of all keys for this type
|
|
12763
|
+
*/
|
|
12764
|
+
export const KEY_HOST_SCHEMA_UPDATED_ON: keyof HostSchema = 'updated_on';
|
|
12765
|
+
|
|
12766
|
+
/**
|
|
12767
|
+
* Array of all HostSchema property keys
|
|
12768
|
+
*
|
|
12769
|
+
* @remarks
|
|
12770
|
+
* This constant provides a readonly array containing all valid property keys for HostSchema objects.
|
|
12771
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
12772
|
+
*
|
|
12773
|
+
* @example
|
|
12774
|
+
* ```typescript
|
|
12775
|
+
* // Iterating through all keys
|
|
12776
|
+
* for (const key of KEYS_HOST_SCHEMA) {
|
|
12777
|
+
* console.log(`Property: ${key}, Value: ${hostschema[key]}`);
|
|
12778
|
+
* }
|
|
12779
|
+
*
|
|
12780
|
+
* // Validation
|
|
12781
|
+
* const isValidKey = KEYS_HOST_SCHEMA.includes(someKey);
|
|
12782
|
+
* ```
|
|
12783
|
+
*
|
|
12784
|
+
* @see {@link HostSchema} - The TypeScript type definition
|
|
12785
|
+
*/
|
|
12786
|
+
export const KEYS_HOST_SCHEMA = [
|
|
12787
|
+
KEY_HOST_SCHEMA_CREATED_ON,
|
|
12788
|
+
KEY_HOST_SCHEMA_DOMAIN_ID,
|
|
12789
|
+
KEY_HOST_SCHEMA_HOST_ID,
|
|
12790
|
+
KEY_HOST_SCHEMA_HOSTNAME,
|
|
12791
|
+
KEY_HOST_SCHEMA_REGISTRY_ACCOUNT_ID,
|
|
12792
|
+
KEY_HOST_SCHEMA_STATUS,
|
|
12793
|
+
KEY_HOST_SCHEMA_UPDATED_ON,
|
|
12794
|
+
] as const satisfies (keyof HostSchema)[];
|
|
12795
|
+
|
|
12532
12796
|
/**
|
|
12533
12797
|
* redirect_code property
|
|
12534
12798
|
*
|
|
@@ -18239,7 +18503,7 @@ export const KEY_PROBLEM_DETAIL: keyof Problem = 'detail';
|
|
|
18239
18503
|
*/
|
|
18240
18504
|
export const KEY_PROBLEM_STATUS: keyof Problem = 'status';
|
|
18241
18505
|
/**
|
|
18242
|
-
* Problem
|
|
18506
|
+
* Problem title
|
|
18243
18507
|
*
|
|
18244
18508
|
*
|
|
18245
18509
|
* @type {string}
|
|
@@ -18650,6 +18914,57 @@ export const KEYS_RELATION_SET = [
|
|
|
18650
18914
|
KEY_RELATION_SET_RELATIONS,
|
|
18651
18915
|
] as const satisfies (keyof RelationSet)[];
|
|
18652
18916
|
|
|
18917
|
+
/**
|
|
18918
|
+
* Registration Expiration Date
|
|
18919
|
+
*
|
|
18920
|
+
* The new expiration date/time after the domain has been renewed
|
|
18921
|
+
*
|
|
18922
|
+
* @type {string}
|
|
18923
|
+
*
|
|
18924
|
+
*
|
|
18925
|
+
* @remarks
|
|
18926
|
+
* This key constant provides type-safe access to the `registration_expiration_date` property of RenewalEvent objects.
|
|
18927
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18928
|
+
*
|
|
18929
|
+
* @example
|
|
18930
|
+
* ```typescript
|
|
18931
|
+
* // Direct property access
|
|
18932
|
+
* const value = renewalevent[KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE];
|
|
18933
|
+
*
|
|
18934
|
+
* // Dynamic property access
|
|
18935
|
+
* const propertyName = KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE;
|
|
18936
|
+
* const value = renewalevent[propertyName];
|
|
18937
|
+
* ```
|
|
18938
|
+
*
|
|
18939
|
+
* @see {@link RenewalEvent} - The TypeScript type definition
|
|
18940
|
+
* @see {@link KEYS_RENEWAL_EVENT} - Array of all keys for this type
|
|
18941
|
+
*/
|
|
18942
|
+
export const KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE: keyof RenewalEvent = 'registration_expiration_date';
|
|
18943
|
+
|
|
18944
|
+
/**
|
|
18945
|
+
* Array of all RenewalEvent property keys
|
|
18946
|
+
*
|
|
18947
|
+
* @remarks
|
|
18948
|
+
* This constant provides a readonly array containing all valid property keys for RenewalEvent objects.
|
|
18949
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
18950
|
+
*
|
|
18951
|
+
* @example
|
|
18952
|
+
* ```typescript
|
|
18953
|
+
* // Iterating through all keys
|
|
18954
|
+
* for (const key of KEYS_RENEWAL_EVENT) {
|
|
18955
|
+
* console.log(`Property: ${key}, Value: ${renewalevent[key]}`);
|
|
18956
|
+
* }
|
|
18957
|
+
*
|
|
18958
|
+
* // Validation
|
|
18959
|
+
* const isValidKey = KEYS_RENEWAL_EVENT.includes(someKey);
|
|
18960
|
+
* ```
|
|
18961
|
+
*
|
|
18962
|
+
* @see {@link RenewalEvent} - The TypeScript type definition
|
|
18963
|
+
*/
|
|
18964
|
+
export const KEYS_RENEWAL_EVENT = [
|
|
18965
|
+
KEY_RENEWAL_EVENT_REGISTRATION_EXPIRATION_DATE,
|
|
18966
|
+
] as const satisfies (keyof RenewalEvent)[];
|
|
18967
|
+
|
|
18653
18968
|
/**
|
|
18654
18969
|
* Client Ip
|
|
18655
18970
|
*
|
|
@@ -20050,6 +20365,158 @@ export const KEYS_TRADEMARK_CLAIMS_BASE = [
|
|
|
20050
20365
|
KEY_TRADEMARK_CLAIMS_BASE_TMCH_REQUIRED,
|
|
20051
20366
|
] as const satisfies (keyof TrademarkClaimsBase)[];
|
|
20052
20367
|
|
|
20368
|
+
/**
|
|
20369
|
+
* Current Registrar
|
|
20370
|
+
*
|
|
20371
|
+
*
|
|
20372
|
+
* @type {string}
|
|
20373
|
+
*
|
|
20374
|
+
*
|
|
20375
|
+
* @remarks
|
|
20376
|
+
* This key constant provides type-safe access to the `current_registrar` property of TransferEvent objects.
|
|
20377
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
20378
|
+
*
|
|
20379
|
+
* @example
|
|
20380
|
+
* ```typescript
|
|
20381
|
+
* // Direct property access
|
|
20382
|
+
* const value = transferevent[KEY_TRANSFER_EVENT_CURRENT_REGISTRAR];
|
|
20383
|
+
*
|
|
20384
|
+
* // Dynamic property access
|
|
20385
|
+
* const propertyName = KEY_TRANSFER_EVENT_CURRENT_REGISTRAR;
|
|
20386
|
+
* const value = transferevent[propertyName];
|
|
20387
|
+
* ```
|
|
20388
|
+
*
|
|
20389
|
+
* @see {@link TransferEvent} - The TypeScript type definition
|
|
20390
|
+
* @see {@link KEYS_TRANSFER_EVENT} - Array of all keys for this type
|
|
20391
|
+
*/
|
|
20392
|
+
export const KEY_TRANSFER_EVENT_CURRENT_REGISTRAR: keyof TransferEvent = 'current_registrar';
|
|
20393
|
+
/**
|
|
20394
|
+
* execution_date property
|
|
20395
|
+
*
|
|
20396
|
+
*
|
|
20397
|
+
*
|
|
20398
|
+
*
|
|
20399
|
+
* @remarks
|
|
20400
|
+
* This key constant provides type-safe access to the `execution_date` property of TransferEvent objects.
|
|
20401
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
20402
|
+
*
|
|
20403
|
+
* @example
|
|
20404
|
+
* ```typescript
|
|
20405
|
+
* // Direct property access
|
|
20406
|
+
* const value = transferevent[KEY_TRANSFER_EVENT_EXECUTION_DATE];
|
|
20407
|
+
*
|
|
20408
|
+
* // Dynamic property access
|
|
20409
|
+
* const propertyName = KEY_TRANSFER_EVENT_EXECUTION_DATE;
|
|
20410
|
+
* const value = transferevent[propertyName];
|
|
20411
|
+
* ```
|
|
20412
|
+
*
|
|
20413
|
+
* @see {@link TransferEvent} - The TypeScript type definition
|
|
20414
|
+
* @see {@link KEYS_TRANSFER_EVENT} - Array of all keys for this type
|
|
20415
|
+
*/
|
|
20416
|
+
export const KEY_TRANSFER_EVENT_EXECUTION_DATE: keyof TransferEvent = 'execution_date';
|
|
20417
|
+
/**
|
|
20418
|
+
* expiration_date property
|
|
20419
|
+
*
|
|
20420
|
+
*
|
|
20421
|
+
*
|
|
20422
|
+
*
|
|
20423
|
+
* @remarks
|
|
20424
|
+
* This key constant provides type-safe access to the `expiration_date` property of TransferEvent objects.
|
|
20425
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
20426
|
+
*
|
|
20427
|
+
* @example
|
|
20428
|
+
* ```typescript
|
|
20429
|
+
* // Direct property access
|
|
20430
|
+
* const value = transferevent[KEY_TRANSFER_EVENT_EXPIRATION_DATE];
|
|
20431
|
+
*
|
|
20432
|
+
* // Dynamic property access
|
|
20433
|
+
* const propertyName = KEY_TRANSFER_EVENT_EXPIRATION_DATE;
|
|
20434
|
+
* const value = transferevent[propertyName];
|
|
20435
|
+
* ```
|
|
20436
|
+
*
|
|
20437
|
+
* @see {@link TransferEvent} - The TypeScript type definition
|
|
20438
|
+
* @see {@link KEYS_TRANSFER_EVENT} - Array of all keys for this type
|
|
20439
|
+
*/
|
|
20440
|
+
export const KEY_TRANSFER_EVENT_EXPIRATION_DATE: keyof TransferEvent = 'expiration_date';
|
|
20441
|
+
/**
|
|
20442
|
+
* Message
|
|
20443
|
+
*
|
|
20444
|
+
*
|
|
20445
|
+
* @type {string}
|
|
20446
|
+
*
|
|
20447
|
+
*
|
|
20448
|
+
* @remarks
|
|
20449
|
+
* This key constant provides type-safe access to the `message` property of TransferEvent objects.
|
|
20450
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
20451
|
+
*
|
|
20452
|
+
* @example
|
|
20453
|
+
* ```typescript
|
|
20454
|
+
* // Direct property access
|
|
20455
|
+
* const value = transferevent[KEY_TRANSFER_EVENT_MESSAGE];
|
|
20456
|
+
*
|
|
20457
|
+
* // Dynamic property access
|
|
20458
|
+
* const propertyName = KEY_TRANSFER_EVENT_MESSAGE;
|
|
20459
|
+
* const value = transferevent[propertyName];
|
|
20460
|
+
* ```
|
|
20461
|
+
*
|
|
20462
|
+
* @see {@link TransferEvent} - The TypeScript type definition
|
|
20463
|
+
* @see {@link KEYS_TRANSFER_EVENT} - Array of all keys for this type
|
|
20464
|
+
*/
|
|
20465
|
+
export const KEY_TRANSFER_EVENT_MESSAGE: keyof TransferEvent = 'message';
|
|
20466
|
+
/**
|
|
20467
|
+
* Requesting Registrar
|
|
20468
|
+
*
|
|
20469
|
+
*
|
|
20470
|
+
* @type {string}
|
|
20471
|
+
*
|
|
20472
|
+
*
|
|
20473
|
+
* @remarks
|
|
20474
|
+
* This key constant provides type-safe access to the `requesting_registrar` property of TransferEvent objects.
|
|
20475
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
20476
|
+
*
|
|
20477
|
+
* @example
|
|
20478
|
+
* ```typescript
|
|
20479
|
+
* // Direct property access
|
|
20480
|
+
* const value = transferevent[KEY_TRANSFER_EVENT_REQUESTING_REGISTRAR];
|
|
20481
|
+
*
|
|
20482
|
+
* // Dynamic property access
|
|
20483
|
+
* const propertyName = KEY_TRANSFER_EVENT_REQUESTING_REGISTRAR;
|
|
20484
|
+
* const value = transferevent[propertyName];
|
|
20485
|
+
* ```
|
|
20486
|
+
*
|
|
20487
|
+
* @see {@link TransferEvent} - The TypeScript type definition
|
|
20488
|
+
* @see {@link KEYS_TRANSFER_EVENT} - Array of all keys for this type
|
|
20489
|
+
*/
|
|
20490
|
+
export const KEY_TRANSFER_EVENT_REQUESTING_REGISTRAR: keyof TransferEvent = 'requesting_registrar';
|
|
20491
|
+
|
|
20492
|
+
/**
|
|
20493
|
+
* Array of all TransferEvent property keys
|
|
20494
|
+
*
|
|
20495
|
+
* @remarks
|
|
20496
|
+
* This constant provides a readonly array containing all valid property keys for TransferEvent objects.
|
|
20497
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
20498
|
+
*
|
|
20499
|
+
* @example
|
|
20500
|
+
* ```typescript
|
|
20501
|
+
* // Iterating through all keys
|
|
20502
|
+
* for (const key of KEYS_TRANSFER_EVENT) {
|
|
20503
|
+
* console.log(`Property: ${key}, Value: ${transferevent[key]}`);
|
|
20504
|
+
* }
|
|
20505
|
+
*
|
|
20506
|
+
* // Validation
|
|
20507
|
+
* const isValidKey = KEYS_TRANSFER_EVENT.includes(someKey);
|
|
20508
|
+
* ```
|
|
20509
|
+
*
|
|
20510
|
+
* @see {@link TransferEvent} - The TypeScript type definition
|
|
20511
|
+
*/
|
|
20512
|
+
export const KEYS_TRANSFER_EVENT = [
|
|
20513
|
+
KEY_TRANSFER_EVENT_CURRENT_REGISTRAR,
|
|
20514
|
+
KEY_TRANSFER_EVENT_EXECUTION_DATE,
|
|
20515
|
+
KEY_TRANSFER_EVENT_EXPIRATION_DATE,
|
|
20516
|
+
KEY_TRANSFER_EVENT_MESSAGE,
|
|
20517
|
+
KEY_TRANSFER_EVENT_REQUESTING_REGISTRAR,
|
|
20518
|
+
] as const satisfies (keyof TransferEvent)[];
|
|
20519
|
+
|
|
20053
20520
|
/**
|
|
20054
20521
|
* Supported By Registrar
|
|
20055
20522
|
*
|
|
@@ -20962,6 +21429,83 @@ export const KEYS_USER_ATTRIBUTE_BASE = [
|
|
|
20962
21429
|
KEY_USER_ATTRIBUTE_BASE_VALUE,
|
|
20963
21430
|
] as const satisfies (keyof UserAttributeBase)[];
|
|
20964
21431
|
|
|
21432
|
+
/**
|
|
21433
|
+
* Key
|
|
21434
|
+
*
|
|
21435
|
+
* Key of the attribute.
|
|
21436
|
+
*
|
|
21437
|
+
* @type {string}
|
|
21438
|
+
*
|
|
21439
|
+
*
|
|
21440
|
+
* @remarks
|
|
21441
|
+
* This key constant provides type-safe access to the `key` property of UserAttribute objects.
|
|
21442
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
21443
|
+
*
|
|
21444
|
+
* @example
|
|
21445
|
+
* ```typescript
|
|
21446
|
+
* // Direct property access
|
|
21447
|
+
* const value = userattribute[KEY_USER_ATTRIBUTE_KEY];
|
|
21448
|
+
*
|
|
21449
|
+
* // Dynamic property access
|
|
21450
|
+
* const propertyName = KEY_USER_ATTRIBUTE_KEY;
|
|
21451
|
+
* const value = userattribute[propertyName];
|
|
21452
|
+
* ```
|
|
21453
|
+
*
|
|
21454
|
+
* @see {@link UserAttribute} - The TypeScript type definition
|
|
21455
|
+
* @see {@link KEYS_USER_ATTRIBUTE} - Array of all keys for this type
|
|
21456
|
+
*/
|
|
21457
|
+
export const KEY_USER_ATTRIBUTE_KEY: keyof UserAttribute = 'key';
|
|
21458
|
+
/**
|
|
21459
|
+
* value property
|
|
21460
|
+
*
|
|
21461
|
+
* Value of the attribute.
|
|
21462
|
+
*
|
|
21463
|
+
*
|
|
21464
|
+
*
|
|
21465
|
+
* @remarks
|
|
21466
|
+
* This key constant provides type-safe access to the `value` property of UserAttribute objects.
|
|
21467
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
21468
|
+
*
|
|
21469
|
+
* @example
|
|
21470
|
+
* ```typescript
|
|
21471
|
+
* // Direct property access
|
|
21472
|
+
* const value = userattribute[KEY_USER_ATTRIBUTE_VALUE];
|
|
21473
|
+
*
|
|
21474
|
+
* // Dynamic property access
|
|
21475
|
+
* const propertyName = KEY_USER_ATTRIBUTE_VALUE;
|
|
21476
|
+
* const value = userattribute[propertyName];
|
|
21477
|
+
* ```
|
|
21478
|
+
*
|
|
21479
|
+
* @see {@link UserAttribute} - The TypeScript type definition
|
|
21480
|
+
* @see {@link KEYS_USER_ATTRIBUTE} - Array of all keys for this type
|
|
21481
|
+
*/
|
|
21482
|
+
export const KEY_USER_ATTRIBUTE_VALUE: keyof UserAttribute = 'value';
|
|
21483
|
+
|
|
21484
|
+
/**
|
|
21485
|
+
* Array of all UserAttribute property keys
|
|
21486
|
+
*
|
|
21487
|
+
* @remarks
|
|
21488
|
+
* This constant provides a readonly array containing all valid property keys for UserAttribute objects.
|
|
21489
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
21490
|
+
*
|
|
21491
|
+
* @example
|
|
21492
|
+
* ```typescript
|
|
21493
|
+
* // Iterating through all keys
|
|
21494
|
+
* for (const key of KEYS_USER_ATTRIBUTE) {
|
|
21495
|
+
* console.log(`Property: ${key}, Value: ${userattribute[key]}`);
|
|
21496
|
+
* }
|
|
21497
|
+
*
|
|
21498
|
+
* // Validation
|
|
21499
|
+
* const isValidKey = KEYS_USER_ATTRIBUTE.includes(someKey);
|
|
21500
|
+
* ```
|
|
21501
|
+
*
|
|
21502
|
+
* @see {@link UserAttribute} - The TypeScript type definition
|
|
21503
|
+
*/
|
|
21504
|
+
export const KEYS_USER_ATTRIBUTE = [
|
|
21505
|
+
KEY_USER_ATTRIBUTE_KEY,
|
|
21506
|
+
KEY_USER_ATTRIBUTE_VALUE,
|
|
21507
|
+
] as const satisfies (keyof UserAttribute)[];
|
|
21508
|
+
|
|
20965
21509
|
/**
|
|
20966
21510
|
* Email
|
|
20967
21511
|
*
|