@opusdns/api 0.80.0 → 0.82.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 -53
- package/src/helpers/keys.ts +29 -870
- package/src/helpers/requests.d.ts +2 -317
- package/src/helpers/responses.d.ts +668 -355
- package/src/helpers/schemas-arrays.d.ts +1 -29
- package/src/helpers/schemas.d.ts +0 -144
- package/src/openapi.yaml +474 -465
- package/src/schema.d.ts +566 -474
package/src/helpers/keys.ts
CHANGED
|
@@ -33,7 +33,6 @@ import { AllowedNumberOfNameserverBase } from './schemas';
|
|
|
33
33
|
import { BillingMetadata } from './schemas';
|
|
34
34
|
import { BillingPlan } from './schemas';
|
|
35
35
|
import { BillingTransaction } from './schemas';
|
|
36
|
-
import { CheckoutSession } from './schemas';
|
|
37
36
|
import { ContactAttributeDefinition } from './schemas';
|
|
38
37
|
import { ContactConfigBase } from './schemas';
|
|
39
38
|
import { ContactCreate } from './schemas';
|
|
@@ -45,7 +44,6 @@ import { ContactVerificationApi } from './schemas';
|
|
|
45
44
|
import { ContactVerificationEmail } from './schemas';
|
|
46
45
|
import { ContactVerification } from './schemas';
|
|
47
46
|
import { ContactsBase } from './schemas';
|
|
48
|
-
import { CustomerCreditCardPaymentMethod } from './schemas';
|
|
49
47
|
import { DnsChange } from './schemas';
|
|
50
48
|
import { DnsChanges } from './schemas';
|
|
51
49
|
import { DnsConfigurationBase } from './schemas';
|
|
@@ -93,7 +91,6 @@ import { EmailForwardAliasUpdate } from './schemas';
|
|
|
93
91
|
import { EventResponse } from './schemas';
|
|
94
92
|
import { EventSchema } from './schemas';
|
|
95
93
|
import { GeneralAvailabilityBase } from './schemas';
|
|
96
|
-
import { GetCurrentAvailablePlans } from './schemas';
|
|
97
94
|
import { GetPrices } from './schemas';
|
|
98
95
|
import { HTTPValidationError } from './schemas';
|
|
99
96
|
import { IdnBase } from './schemas';
|
|
@@ -117,8 +114,6 @@ import { PaginationMetadata } from './schemas';
|
|
|
117
114
|
import { PasswordUpdate } from './schemas';
|
|
118
115
|
import { Period } from './schemas';
|
|
119
116
|
import { PermissionSet } from './schemas';
|
|
120
|
-
import { PlanIdRequest } from './schemas';
|
|
121
|
-
import { PlanInfo } from './schemas';
|
|
122
117
|
import { PremiumDomainsBase } from './schemas';
|
|
123
118
|
import { PriceInfo } from './schemas';
|
|
124
119
|
import { PricingPeriod } from './schemas';
|
|
@@ -144,8 +139,6 @@ import { UserUpdate } from './schemas';
|
|
|
144
139
|
import { UserWithAttributes } from './schemas';
|
|
145
140
|
import { UserWithRelationPermissions } from './schemas';
|
|
146
141
|
import { ValidationError } from './schemas';
|
|
147
|
-
import { WalletCreditRequest } from './schemas';
|
|
148
|
-
import { WalletCreditResponseWithBalance } from './schemas';
|
|
149
142
|
import { WhoisBase } from './schemas';
|
|
150
143
|
import { DomainAvailabilityList } from './schemas';
|
|
151
144
|
import { DomainAvailabilityCheck } from './schemas';
|
|
@@ -853,57 +846,6 @@ export const KEYS_BILLING_TRANSACTION = [
|
|
|
853
846
|
KEY_BILLING_TRANSACTION_UPDATED_ON,
|
|
854
847
|
] as const satisfies (keyof BillingTransaction)[];
|
|
855
848
|
|
|
856
|
-
/**
|
|
857
|
-
* Session Client Secret
|
|
858
|
-
*
|
|
859
|
-
* Checkout session client secret - meant to be used in the embedded checkout
|
|
860
|
-
*
|
|
861
|
-
* @type {string}
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* @remarks
|
|
865
|
-
* This key constant provides type-safe access to the `session_client_secret` property of CheckoutSession objects.
|
|
866
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
867
|
-
*
|
|
868
|
-
* @example
|
|
869
|
-
* ```typescript
|
|
870
|
-
* // Direct property access
|
|
871
|
-
* const value = checkoutsession[KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET];
|
|
872
|
-
*
|
|
873
|
-
* // Dynamic property access
|
|
874
|
-
* const propertyName = KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET;
|
|
875
|
-
* const value = checkoutsession[propertyName];
|
|
876
|
-
* ```
|
|
877
|
-
*
|
|
878
|
-
* @see {@link CheckoutSession} - The TypeScript type definition
|
|
879
|
-
* @see {@link KEYS_CHECKOUT_SESSION} - Array of all keys for this type
|
|
880
|
-
*/
|
|
881
|
-
export const KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET = 'session_client_secret' as keyof CheckoutSession;
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* Array of all CheckoutSession property keys
|
|
885
|
-
*
|
|
886
|
-
* @remarks
|
|
887
|
-
* This constant provides a readonly array containing all valid property keys for CheckoutSession objects.
|
|
888
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
889
|
-
*
|
|
890
|
-
* @example
|
|
891
|
-
* ```typescript
|
|
892
|
-
* // Iterating through all keys
|
|
893
|
-
* for (const key of KEYS_CHECKOUT_SESSION) {
|
|
894
|
-
* console.log(`Property: ${key}, Value: ${checkoutsession[key]}`);
|
|
895
|
-
* }
|
|
896
|
-
*
|
|
897
|
-
* // Validation
|
|
898
|
-
* const isValidKey = KEYS_CHECKOUT_SESSION.includes(someKey);
|
|
899
|
-
* ```
|
|
900
|
-
*
|
|
901
|
-
* @see {@link CheckoutSession} - The TypeScript type definition
|
|
902
|
-
*/
|
|
903
|
-
export const KEYS_CHECKOUT_SESSION = [
|
|
904
|
-
KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET,
|
|
905
|
-
] as const satisfies (keyof CheckoutSession)[];
|
|
906
|
-
|
|
907
849
|
/**
|
|
908
850
|
* key property
|
|
909
851
|
*
|
|
@@ -3527,218 +3469,6 @@ export const KEYS_CONTACTS_BASE = [
|
|
|
3527
3469
|
KEY_CONTACTS_BASE_SUPPORTED_ROLES,
|
|
3528
3470
|
] as const satisfies (keyof ContactsBase)[];
|
|
3529
3471
|
|
|
3530
|
-
/**
|
|
3531
|
-
* Brand
|
|
3532
|
-
*
|
|
3533
|
-
* Card brand
|
|
3534
|
-
*
|
|
3535
|
-
* @type {string}
|
|
3536
|
-
*
|
|
3537
|
-
*
|
|
3538
|
-
* @remarks
|
|
3539
|
-
* This key constant provides type-safe access to the `brand` property of CustomerCreditCardPaymentMethod objects.
|
|
3540
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3541
|
-
*
|
|
3542
|
-
* @example
|
|
3543
|
-
* ```typescript
|
|
3544
|
-
* // Direct property access
|
|
3545
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND];
|
|
3546
|
-
*
|
|
3547
|
-
* // Dynamic property access
|
|
3548
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND;
|
|
3549
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3550
|
-
* ```
|
|
3551
|
-
*
|
|
3552
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3553
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3554
|
-
*/
|
|
3555
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND = 'brand' as keyof CustomerCreditCardPaymentMethod;
|
|
3556
|
-
/**
|
|
3557
|
-
* Country
|
|
3558
|
-
*
|
|
3559
|
-
* Country code
|
|
3560
|
-
*
|
|
3561
|
-
*
|
|
3562
|
-
*
|
|
3563
|
-
* @remarks
|
|
3564
|
-
* This key constant provides type-safe access to the `country` property of CustomerCreditCardPaymentMethod objects.
|
|
3565
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3566
|
-
*
|
|
3567
|
-
* @example
|
|
3568
|
-
* ```typescript
|
|
3569
|
-
* // Direct property access
|
|
3570
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY];
|
|
3571
|
-
*
|
|
3572
|
-
* // Dynamic property access
|
|
3573
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY;
|
|
3574
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3575
|
-
* ```
|
|
3576
|
-
*
|
|
3577
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3578
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3579
|
-
*/
|
|
3580
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY = 'country' as keyof CustomerCreditCardPaymentMethod;
|
|
3581
|
-
/**
|
|
3582
|
-
* Exp Month
|
|
3583
|
-
*
|
|
3584
|
-
* Expiration month
|
|
3585
|
-
*
|
|
3586
|
-
* @type {integer}
|
|
3587
|
-
*
|
|
3588
|
-
*
|
|
3589
|
-
* @remarks
|
|
3590
|
-
* This key constant provides type-safe access to the `exp_month` property of CustomerCreditCardPaymentMethod objects.
|
|
3591
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3592
|
-
*
|
|
3593
|
-
* @example
|
|
3594
|
-
* ```typescript
|
|
3595
|
-
* // Direct property access
|
|
3596
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH];
|
|
3597
|
-
*
|
|
3598
|
-
* // Dynamic property access
|
|
3599
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH;
|
|
3600
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3601
|
-
* ```
|
|
3602
|
-
*
|
|
3603
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3604
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3605
|
-
*/
|
|
3606
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH = 'exp_month' as keyof CustomerCreditCardPaymentMethod;
|
|
3607
|
-
/**
|
|
3608
|
-
* Exp Year
|
|
3609
|
-
*
|
|
3610
|
-
* Expiration year
|
|
3611
|
-
*
|
|
3612
|
-
* @type {integer}
|
|
3613
|
-
*
|
|
3614
|
-
*
|
|
3615
|
-
* @remarks
|
|
3616
|
-
* This key constant provides type-safe access to the `exp_year` property of CustomerCreditCardPaymentMethod objects.
|
|
3617
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3618
|
-
*
|
|
3619
|
-
* @example
|
|
3620
|
-
* ```typescript
|
|
3621
|
-
* // Direct property access
|
|
3622
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR];
|
|
3623
|
-
*
|
|
3624
|
-
* // Dynamic property access
|
|
3625
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR;
|
|
3626
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3627
|
-
* ```
|
|
3628
|
-
*
|
|
3629
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3630
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3631
|
-
*/
|
|
3632
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR = 'exp_year' as keyof CustomerCreditCardPaymentMethod;
|
|
3633
|
-
/**
|
|
3634
|
-
* Id
|
|
3635
|
-
*
|
|
3636
|
-
* Payment method ID
|
|
3637
|
-
*
|
|
3638
|
-
* @type {string}
|
|
3639
|
-
*
|
|
3640
|
-
*
|
|
3641
|
-
* @remarks
|
|
3642
|
-
* This key constant provides type-safe access to the `id` property of CustomerCreditCardPaymentMethod objects.
|
|
3643
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3644
|
-
*
|
|
3645
|
-
* @example
|
|
3646
|
-
* ```typescript
|
|
3647
|
-
* // Direct property access
|
|
3648
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID];
|
|
3649
|
-
*
|
|
3650
|
-
* // Dynamic property access
|
|
3651
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID;
|
|
3652
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3653
|
-
* ```
|
|
3654
|
-
*
|
|
3655
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3656
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3657
|
-
*/
|
|
3658
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID = 'id' as keyof CustomerCreditCardPaymentMethod;
|
|
3659
|
-
/**
|
|
3660
|
-
* Is Default
|
|
3661
|
-
*
|
|
3662
|
-
* Whether this is the default payment method
|
|
3663
|
-
*
|
|
3664
|
-
* @type {boolean}
|
|
3665
|
-
*
|
|
3666
|
-
*
|
|
3667
|
-
* @remarks
|
|
3668
|
-
* This key constant provides type-safe access to the `is_default` property of CustomerCreditCardPaymentMethod objects.
|
|
3669
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3670
|
-
*
|
|
3671
|
-
* @example
|
|
3672
|
-
* ```typescript
|
|
3673
|
-
* // Direct property access
|
|
3674
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT];
|
|
3675
|
-
*
|
|
3676
|
-
* // Dynamic property access
|
|
3677
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT;
|
|
3678
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3679
|
-
* ```
|
|
3680
|
-
*
|
|
3681
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3682
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3683
|
-
*/
|
|
3684
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT = 'is_default' as keyof CustomerCreditCardPaymentMethod;
|
|
3685
|
-
/**
|
|
3686
|
-
* Last4
|
|
3687
|
-
*
|
|
3688
|
-
* Last four digits of the card
|
|
3689
|
-
*
|
|
3690
|
-
* @type {string}
|
|
3691
|
-
*
|
|
3692
|
-
*
|
|
3693
|
-
* @remarks
|
|
3694
|
-
* This key constant provides type-safe access to the `last4` property of CustomerCreditCardPaymentMethod objects.
|
|
3695
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3696
|
-
*
|
|
3697
|
-
* @example
|
|
3698
|
-
* ```typescript
|
|
3699
|
-
* // Direct property access
|
|
3700
|
-
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4];
|
|
3701
|
-
*
|
|
3702
|
-
* // Dynamic property access
|
|
3703
|
-
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4;
|
|
3704
|
-
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3705
|
-
* ```
|
|
3706
|
-
*
|
|
3707
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3708
|
-
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3709
|
-
*/
|
|
3710
|
-
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4 = 'last4' as keyof CustomerCreditCardPaymentMethod;
|
|
3711
|
-
|
|
3712
|
-
/**
|
|
3713
|
-
* Array of all CustomerCreditCardPaymentMethod property keys
|
|
3714
|
-
*
|
|
3715
|
-
* @remarks
|
|
3716
|
-
* This constant provides a readonly array containing all valid property keys for CustomerCreditCardPaymentMethod objects.
|
|
3717
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
3718
|
-
*
|
|
3719
|
-
* @example
|
|
3720
|
-
* ```typescript
|
|
3721
|
-
* // Iterating through all keys
|
|
3722
|
-
* for (const key of KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD) {
|
|
3723
|
-
* console.log(`Property: ${key}, Value: ${customercreditcardpaymentmethod[key]}`);
|
|
3724
|
-
* }
|
|
3725
|
-
*
|
|
3726
|
-
* // Validation
|
|
3727
|
-
* const isValidKey = KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD.includes(someKey);
|
|
3728
|
-
* ```
|
|
3729
|
-
*
|
|
3730
|
-
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3731
|
-
*/
|
|
3732
|
-
export const KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD = [
|
|
3733
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND,
|
|
3734
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY,
|
|
3735
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH,
|
|
3736
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR,
|
|
3737
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID,
|
|
3738
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT,
|
|
3739
|
-
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4,
|
|
3740
|
-
] as const satisfies (keyof CustomerCreditCardPaymentMethod)[];
|
|
3741
|
-
|
|
3742
3472
|
/**
|
|
3743
3473
|
* action property
|
|
3744
3474
|
*
|
|
@@ -9961,83 +9691,6 @@ export const KEYS_GENERAL_AVAILABILITY_BASE = [
|
|
|
9961
9691
|
KEY_GENERAL_AVAILABILITY_BASE_START_DATE,
|
|
9962
9692
|
] as const satisfies (keyof GeneralAvailabilityBase)[];
|
|
9963
9693
|
|
|
9964
|
-
/**
|
|
9965
|
-
* current_plan property
|
|
9966
|
-
*
|
|
9967
|
-
* Current active plan for the customer
|
|
9968
|
-
*
|
|
9969
|
-
*
|
|
9970
|
-
*
|
|
9971
|
-
* @remarks
|
|
9972
|
-
* This key constant provides type-safe access to the `current_plan` property of GetCurrentAvailablePlans objects.
|
|
9973
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
9974
|
-
*
|
|
9975
|
-
* @example
|
|
9976
|
-
* ```typescript
|
|
9977
|
-
* // Direct property access
|
|
9978
|
-
* const value = getcurrentavailableplans[KEY_GET_CURRENT_AVAILABLE_PLANS_CURRENT_PLAN];
|
|
9979
|
-
*
|
|
9980
|
-
* // Dynamic property access
|
|
9981
|
-
* const propertyName = KEY_GET_CURRENT_AVAILABLE_PLANS_CURRENT_PLAN;
|
|
9982
|
-
* const value = getcurrentavailableplans[propertyName];
|
|
9983
|
-
* ```
|
|
9984
|
-
*
|
|
9985
|
-
* @see {@link GetCurrentAvailablePlans} - The TypeScript type definition
|
|
9986
|
-
* @see {@link KEYS_GET_CURRENT_AVAILABLE_PLANS} - Array of all keys for this type
|
|
9987
|
-
*/
|
|
9988
|
-
export const KEY_GET_CURRENT_AVAILABLE_PLANS_CURRENT_PLAN = 'current_plan' as keyof GetCurrentAvailablePlans;
|
|
9989
|
-
/**
|
|
9990
|
-
* Plans
|
|
9991
|
-
*
|
|
9992
|
-
* List of available plans
|
|
9993
|
-
*
|
|
9994
|
-
* @type {array}
|
|
9995
|
-
*
|
|
9996
|
-
*
|
|
9997
|
-
* @remarks
|
|
9998
|
-
* This key constant provides type-safe access to the `plans` property of GetCurrentAvailablePlans objects.
|
|
9999
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10000
|
-
*
|
|
10001
|
-
* @example
|
|
10002
|
-
* ```typescript
|
|
10003
|
-
* // Direct property access
|
|
10004
|
-
* const value = getcurrentavailableplans[KEY_GET_CURRENT_AVAILABLE_PLANS_PLANS];
|
|
10005
|
-
*
|
|
10006
|
-
* // Dynamic property access
|
|
10007
|
-
* const propertyName = KEY_GET_CURRENT_AVAILABLE_PLANS_PLANS;
|
|
10008
|
-
* const value = getcurrentavailableplans[propertyName];
|
|
10009
|
-
* ```
|
|
10010
|
-
*
|
|
10011
|
-
* @see {@link GetCurrentAvailablePlans} - The TypeScript type definition
|
|
10012
|
-
* @see {@link KEYS_GET_CURRENT_AVAILABLE_PLANS} - Array of all keys for this type
|
|
10013
|
-
*/
|
|
10014
|
-
export const KEY_GET_CURRENT_AVAILABLE_PLANS_PLANS = 'plans' as keyof GetCurrentAvailablePlans;
|
|
10015
|
-
|
|
10016
|
-
/**
|
|
10017
|
-
* Array of all GetCurrentAvailablePlans property keys
|
|
10018
|
-
*
|
|
10019
|
-
* @remarks
|
|
10020
|
-
* This constant provides a readonly array containing all valid property keys for GetCurrentAvailablePlans objects.
|
|
10021
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
10022
|
-
*
|
|
10023
|
-
* @example
|
|
10024
|
-
* ```typescript
|
|
10025
|
-
* // Iterating through all keys
|
|
10026
|
-
* for (const key of KEYS_GET_CURRENT_AVAILABLE_PLANS) {
|
|
10027
|
-
* console.log(`Property: ${key}, Value: ${getcurrentavailableplans[key]}`);
|
|
10028
|
-
* }
|
|
10029
|
-
*
|
|
10030
|
-
* // Validation
|
|
10031
|
-
* const isValidKey = KEYS_GET_CURRENT_AVAILABLE_PLANS.includes(someKey);
|
|
10032
|
-
* ```
|
|
10033
|
-
*
|
|
10034
|
-
* @see {@link GetCurrentAvailablePlans} - The TypeScript type definition
|
|
10035
|
-
*/
|
|
10036
|
-
export const KEYS_GET_CURRENT_AVAILABLE_PLANS = [
|
|
10037
|
-
KEY_GET_CURRENT_AVAILABLE_PLANS_CURRENT_PLAN,
|
|
10038
|
-
KEY_GET_CURRENT_AVAILABLE_PLANS_PLANS,
|
|
10039
|
-
] as const satisfies (keyof GetCurrentAvailablePlans)[];
|
|
10040
|
-
|
|
10041
9694
|
/**
|
|
10042
9695
|
* Prices
|
|
10043
9696
|
*
|
|
@@ -14153,305 +13806,71 @@ export const KEYS_PERMISSION_SET = [
|
|
|
14153
13806
|
] as const satisfies (keyof PermissionSet)[];
|
|
14154
13807
|
|
|
14155
13808
|
/**
|
|
14156
|
-
*
|
|
13809
|
+
* Affects
|
|
14157
13810
|
*
|
|
14158
|
-
*
|
|
13811
|
+
* What operations are affected by premium status
|
|
14159
13812
|
*
|
|
14160
|
-
* @type {string}
|
|
14161
13813
|
*
|
|
14162
13814
|
*
|
|
14163
13815
|
* @remarks
|
|
14164
|
-
* This key constant provides type-safe access to the `
|
|
13816
|
+
* This key constant provides type-safe access to the `affects` property of PremiumDomainsBase objects.
|
|
14165
13817
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14166
13818
|
*
|
|
14167
13819
|
* @example
|
|
14168
13820
|
* ```typescript
|
|
14169
13821
|
* // Direct property access
|
|
14170
|
-
* const value =
|
|
13822
|
+
* const value = premiumdomainsbase[KEY_PREMIUM_DOMAINS_BASE_AFFECTS];
|
|
14171
13823
|
*
|
|
14172
13824
|
* // Dynamic property access
|
|
14173
|
-
* const propertyName =
|
|
14174
|
-
* const value =
|
|
13825
|
+
* const propertyName = KEY_PREMIUM_DOMAINS_BASE_AFFECTS;
|
|
13826
|
+
* const value = premiumdomainsbase[propertyName];
|
|
14175
13827
|
* ```
|
|
14176
13828
|
*
|
|
14177
|
-
* @see {@link
|
|
14178
|
-
* @see {@link
|
|
13829
|
+
* @see {@link PremiumDomainsBase} - The TypeScript type definition
|
|
13830
|
+
* @see {@link KEYS_PREMIUM_DOMAINS_BASE} - Array of all keys for this type
|
|
14179
13831
|
*/
|
|
14180
|
-
export const
|
|
14181
|
-
|
|
13832
|
+
export const KEY_PREMIUM_DOMAINS_BASE_AFFECTS = 'affects' as keyof PremiumDomainsBase;
|
|
14182
13833
|
/**
|
|
14183
|
-
*
|
|
13834
|
+
* source property
|
|
13835
|
+
*
|
|
13836
|
+
* Source of premium domain information
|
|
13837
|
+
*
|
|
13838
|
+
*
|
|
14184
13839
|
*
|
|
14185
13840
|
* @remarks
|
|
14186
|
-
* This constant provides
|
|
14187
|
-
*
|
|
13841
|
+
* This key constant provides type-safe access to the `source` property of PremiumDomainsBase objects.
|
|
13842
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14188
13843
|
*
|
|
14189
13844
|
* @example
|
|
14190
13845
|
* ```typescript
|
|
14191
|
-
* //
|
|
14192
|
-
*
|
|
14193
|
-
* console.log(`Property: ${key}, Value: ${planidrequest[key]}`);
|
|
14194
|
-
* }
|
|
13846
|
+
* // Direct property access
|
|
13847
|
+
* const value = premiumdomainsbase[KEY_PREMIUM_DOMAINS_BASE_SOURCE];
|
|
14195
13848
|
*
|
|
14196
|
-
* //
|
|
14197
|
-
* const
|
|
13849
|
+
* // Dynamic property access
|
|
13850
|
+
* const propertyName = KEY_PREMIUM_DOMAINS_BASE_SOURCE;
|
|
13851
|
+
* const value = premiumdomainsbase[propertyName];
|
|
14198
13852
|
* ```
|
|
14199
13853
|
*
|
|
14200
|
-
* @see {@link
|
|
13854
|
+
* @see {@link PremiumDomainsBase} - The TypeScript type definition
|
|
13855
|
+
* @see {@link KEYS_PREMIUM_DOMAINS_BASE} - Array of all keys for this type
|
|
14201
13856
|
*/
|
|
14202
|
-
export const
|
|
14203
|
-
KEY_PLAN_ID_REQUEST_PLAN_ID,
|
|
14204
|
-
] as const satisfies (keyof PlanIdRequest)[];
|
|
14205
|
-
|
|
13857
|
+
export const KEY_PREMIUM_DOMAINS_BASE_SOURCE = 'source' as keyof PremiumDomainsBase;
|
|
14206
13858
|
/**
|
|
14207
|
-
*
|
|
13859
|
+
* Supported
|
|
14208
13860
|
*
|
|
14209
|
-
*
|
|
13861
|
+
* Whether the registry has premium domains
|
|
14210
13862
|
*
|
|
14211
|
-
* @type {
|
|
13863
|
+
* @type {boolean}
|
|
14212
13864
|
*
|
|
14213
13865
|
*
|
|
14214
13866
|
* @remarks
|
|
14215
|
-
* This key constant provides type-safe access to the `
|
|
13867
|
+
* This key constant provides type-safe access to the `supported` property of PremiumDomainsBase objects.
|
|
14216
13868
|
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14217
13869
|
*
|
|
14218
13870
|
* @example
|
|
14219
13871
|
* ```typescript
|
|
14220
13872
|
* // Direct property access
|
|
14221
|
-
* const value =
|
|
14222
|
-
*
|
|
14223
|
-
* // Dynamic property access
|
|
14224
|
-
* const propertyName = KEY_PLAN_INFO_AMOUNT;
|
|
14225
|
-
* const value = planinfo[propertyName];
|
|
14226
|
-
* ```
|
|
14227
|
-
*
|
|
14228
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14229
|
-
* @see {@link KEYS_PLAN_INFO} - Array of all keys for this type
|
|
14230
|
-
*/
|
|
14231
|
-
export const KEY_PLAN_INFO_AMOUNT = 'amount' as keyof PlanInfo;
|
|
14232
|
-
/**
|
|
14233
|
-
* Currency
|
|
14234
|
-
*
|
|
14235
|
-
* Currency code
|
|
14236
|
-
*
|
|
14237
|
-
* @type {string}
|
|
14238
|
-
*
|
|
14239
|
-
*
|
|
14240
|
-
* @remarks
|
|
14241
|
-
* This key constant provides type-safe access to the `currency` property of PlanInfo objects.
|
|
14242
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14243
|
-
*
|
|
14244
|
-
* @example
|
|
14245
|
-
* ```typescript
|
|
14246
|
-
* // Direct property access
|
|
14247
|
-
* const value = planinfo[KEY_PLAN_INFO_CURRENCY];
|
|
14248
|
-
*
|
|
14249
|
-
* // Dynamic property access
|
|
14250
|
-
* const propertyName = KEY_PLAN_INFO_CURRENCY;
|
|
14251
|
-
* const value = planinfo[propertyName];
|
|
14252
|
-
* ```
|
|
14253
|
-
*
|
|
14254
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14255
|
-
* @see {@link KEYS_PLAN_INFO} - Array of all keys for this type
|
|
14256
|
-
*/
|
|
14257
|
-
export const KEY_PLAN_INFO_CURRENCY = 'currency' as keyof PlanInfo;
|
|
14258
|
-
/**
|
|
14259
|
-
* Name
|
|
14260
|
-
*
|
|
14261
|
-
* Plan display name
|
|
14262
|
-
*
|
|
14263
|
-
*
|
|
14264
|
-
*
|
|
14265
|
-
* @remarks
|
|
14266
|
-
* This key constant provides type-safe access to the `name` property of PlanInfo objects.
|
|
14267
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14268
|
-
*
|
|
14269
|
-
* @example
|
|
14270
|
-
* ```typescript
|
|
14271
|
-
* // Direct property access
|
|
14272
|
-
* const value = planinfo[KEY_PLAN_INFO_NAME];
|
|
14273
|
-
*
|
|
14274
|
-
* // Dynamic property access
|
|
14275
|
-
* const propertyName = KEY_PLAN_INFO_NAME;
|
|
14276
|
-
* const value = planinfo[propertyName];
|
|
14277
|
-
* ```
|
|
14278
|
-
*
|
|
14279
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14280
|
-
* @see {@link KEYS_PLAN_INFO} - Array of all keys for this type
|
|
14281
|
-
*/
|
|
14282
|
-
export const KEY_PLAN_INFO_NAME = 'name' as keyof PlanInfo;
|
|
14283
|
-
/**
|
|
14284
|
-
* Plan Id
|
|
14285
|
-
*
|
|
14286
|
-
* Unique plan identifier
|
|
14287
|
-
*
|
|
14288
|
-
* @type {string}
|
|
14289
|
-
*
|
|
14290
|
-
*
|
|
14291
|
-
* @remarks
|
|
14292
|
-
* This key constant provides type-safe access to the `plan_id` property of PlanInfo objects.
|
|
14293
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14294
|
-
*
|
|
14295
|
-
* @example
|
|
14296
|
-
* ```typescript
|
|
14297
|
-
* // Direct property access
|
|
14298
|
-
* const value = planinfo[KEY_PLAN_INFO_PLAN_ID];
|
|
14299
|
-
*
|
|
14300
|
-
* // Dynamic property access
|
|
14301
|
-
* const propertyName = KEY_PLAN_INFO_PLAN_ID;
|
|
14302
|
-
* const value = planinfo[propertyName];
|
|
14303
|
-
* ```
|
|
14304
|
-
*
|
|
14305
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14306
|
-
* @see {@link KEYS_PLAN_INFO} - Array of all keys for this type
|
|
14307
|
-
*/
|
|
14308
|
-
export const KEY_PLAN_INFO_PLAN_ID = 'plan_id' as keyof PlanInfo;
|
|
14309
|
-
/**
|
|
14310
|
-
* Plan Level
|
|
14311
|
-
*
|
|
14312
|
-
* Plan level such as 'premium' or 'starter'
|
|
14313
|
-
*
|
|
14314
|
-
*
|
|
14315
|
-
*
|
|
14316
|
-
* @remarks
|
|
14317
|
-
* This key constant provides type-safe access to the `plan_level` property of PlanInfo objects.
|
|
14318
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14319
|
-
*
|
|
14320
|
-
* @example
|
|
14321
|
-
* ```typescript
|
|
14322
|
-
* // Direct property access
|
|
14323
|
-
* const value = planinfo[KEY_PLAN_INFO_PLAN_LEVEL];
|
|
14324
|
-
*
|
|
14325
|
-
* // Dynamic property access
|
|
14326
|
-
* const propertyName = KEY_PLAN_INFO_PLAN_LEVEL;
|
|
14327
|
-
* const value = planinfo[propertyName];
|
|
14328
|
-
* ```
|
|
14329
|
-
*
|
|
14330
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14331
|
-
* @see {@link KEYS_PLAN_INFO} - Array of all keys for this type
|
|
14332
|
-
*/
|
|
14333
|
-
export const KEY_PLAN_INFO_PLAN_LEVEL = 'plan_level' as keyof PlanInfo;
|
|
14334
|
-
/**
|
|
14335
|
-
* Plan Type
|
|
14336
|
-
*
|
|
14337
|
-
* Plan type or billing interval
|
|
14338
|
-
*
|
|
14339
|
-
*
|
|
14340
|
-
*
|
|
14341
|
-
* @remarks
|
|
14342
|
-
* This key constant provides type-safe access to the `plan_type` property of PlanInfo objects.
|
|
14343
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14344
|
-
*
|
|
14345
|
-
* @example
|
|
14346
|
-
* ```typescript
|
|
14347
|
-
* // Direct property access
|
|
14348
|
-
* const value = planinfo[KEY_PLAN_INFO_PLAN_TYPE];
|
|
14349
|
-
*
|
|
14350
|
-
* // Dynamic property access
|
|
14351
|
-
* const propertyName = KEY_PLAN_INFO_PLAN_TYPE;
|
|
14352
|
-
* const value = planinfo[propertyName];
|
|
14353
|
-
* ```
|
|
14354
|
-
*
|
|
14355
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14356
|
-
* @see {@link KEYS_PLAN_INFO} - Array of all keys for this type
|
|
14357
|
-
*/
|
|
14358
|
-
export const KEY_PLAN_INFO_PLAN_TYPE = 'plan_type' as keyof PlanInfo;
|
|
14359
|
-
|
|
14360
|
-
/**
|
|
14361
|
-
* Array of all PlanInfo property keys
|
|
14362
|
-
*
|
|
14363
|
-
* @remarks
|
|
14364
|
-
* This constant provides a readonly array containing all valid property keys for PlanInfo objects.
|
|
14365
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14366
|
-
*
|
|
14367
|
-
* @example
|
|
14368
|
-
* ```typescript
|
|
14369
|
-
* // Iterating through all keys
|
|
14370
|
-
* for (const key of KEYS_PLAN_INFO) {
|
|
14371
|
-
* console.log(`Property: ${key}, Value: ${planinfo[key]}`);
|
|
14372
|
-
* }
|
|
14373
|
-
*
|
|
14374
|
-
* // Validation
|
|
14375
|
-
* const isValidKey = KEYS_PLAN_INFO.includes(someKey);
|
|
14376
|
-
* ```
|
|
14377
|
-
*
|
|
14378
|
-
* @see {@link PlanInfo} - The TypeScript type definition
|
|
14379
|
-
*/
|
|
14380
|
-
export const KEYS_PLAN_INFO = [
|
|
14381
|
-
KEY_PLAN_INFO_AMOUNT,
|
|
14382
|
-
KEY_PLAN_INFO_CURRENCY,
|
|
14383
|
-
KEY_PLAN_INFO_NAME,
|
|
14384
|
-
KEY_PLAN_INFO_PLAN_ID,
|
|
14385
|
-
KEY_PLAN_INFO_PLAN_LEVEL,
|
|
14386
|
-
KEY_PLAN_INFO_PLAN_TYPE,
|
|
14387
|
-
] as const satisfies (keyof PlanInfo)[];
|
|
14388
|
-
|
|
14389
|
-
/**
|
|
14390
|
-
* Affects
|
|
14391
|
-
*
|
|
14392
|
-
* What operations are affected by premium status
|
|
14393
|
-
*
|
|
14394
|
-
*
|
|
14395
|
-
*
|
|
14396
|
-
* @remarks
|
|
14397
|
-
* This key constant provides type-safe access to the `affects` property of PremiumDomainsBase objects.
|
|
14398
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14399
|
-
*
|
|
14400
|
-
* @example
|
|
14401
|
-
* ```typescript
|
|
14402
|
-
* // Direct property access
|
|
14403
|
-
* const value = premiumdomainsbase[KEY_PREMIUM_DOMAINS_BASE_AFFECTS];
|
|
14404
|
-
*
|
|
14405
|
-
* // Dynamic property access
|
|
14406
|
-
* const propertyName = KEY_PREMIUM_DOMAINS_BASE_AFFECTS;
|
|
14407
|
-
* const value = premiumdomainsbase[propertyName];
|
|
14408
|
-
* ```
|
|
14409
|
-
*
|
|
14410
|
-
* @see {@link PremiumDomainsBase} - The TypeScript type definition
|
|
14411
|
-
* @see {@link KEYS_PREMIUM_DOMAINS_BASE} - Array of all keys for this type
|
|
14412
|
-
*/
|
|
14413
|
-
export const KEY_PREMIUM_DOMAINS_BASE_AFFECTS = 'affects' as keyof PremiumDomainsBase;
|
|
14414
|
-
/**
|
|
14415
|
-
* source property
|
|
14416
|
-
*
|
|
14417
|
-
* Source of premium domain information
|
|
14418
|
-
*
|
|
14419
|
-
*
|
|
14420
|
-
*
|
|
14421
|
-
* @remarks
|
|
14422
|
-
* This key constant provides type-safe access to the `source` property of PremiumDomainsBase objects.
|
|
14423
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14424
|
-
*
|
|
14425
|
-
* @example
|
|
14426
|
-
* ```typescript
|
|
14427
|
-
* // Direct property access
|
|
14428
|
-
* const value = premiumdomainsbase[KEY_PREMIUM_DOMAINS_BASE_SOURCE];
|
|
14429
|
-
*
|
|
14430
|
-
* // Dynamic property access
|
|
14431
|
-
* const propertyName = KEY_PREMIUM_DOMAINS_BASE_SOURCE;
|
|
14432
|
-
* const value = premiumdomainsbase[propertyName];
|
|
14433
|
-
* ```
|
|
14434
|
-
*
|
|
14435
|
-
* @see {@link PremiumDomainsBase} - The TypeScript type definition
|
|
14436
|
-
* @see {@link KEYS_PREMIUM_DOMAINS_BASE} - Array of all keys for this type
|
|
14437
|
-
*/
|
|
14438
|
-
export const KEY_PREMIUM_DOMAINS_BASE_SOURCE = 'source' as keyof PremiumDomainsBase;
|
|
14439
|
-
/**
|
|
14440
|
-
* Supported
|
|
14441
|
-
*
|
|
14442
|
-
* Whether the registry has premium domains
|
|
14443
|
-
*
|
|
14444
|
-
* @type {boolean}
|
|
14445
|
-
*
|
|
14446
|
-
*
|
|
14447
|
-
* @remarks
|
|
14448
|
-
* This key constant provides type-safe access to the `supported` property of PremiumDomainsBase objects.
|
|
14449
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14450
|
-
*
|
|
14451
|
-
* @example
|
|
14452
|
-
* ```typescript
|
|
14453
|
-
* // Direct property access
|
|
14454
|
-
* const value = premiumdomainsbase[KEY_PREMIUM_DOMAINS_BASE_SUPPORTED];
|
|
13873
|
+
* const value = premiumdomainsbase[KEY_PREMIUM_DOMAINS_BASE_SUPPORTED];
|
|
14455
13874
|
*
|
|
14456
13875
|
* // Dynamic property access
|
|
14457
13876
|
* const propertyName = KEY_PREMIUM_DOMAINS_BASE_SUPPORTED;
|
|
@@ -18583,266 +18002,6 @@ export const KEYS_VALIDATION_ERROR = [
|
|
|
18583
18002
|
KEY_VALIDATION_ERROR_TYPE,
|
|
18584
18003
|
] as const satisfies (keyof ValidationError)[];
|
|
18585
18004
|
|
|
18586
|
-
/**
|
|
18587
|
-
* Amount
|
|
18588
|
-
*
|
|
18589
|
-
* Amount to credit the customer wallet
|
|
18590
|
-
*
|
|
18591
|
-
*
|
|
18592
|
-
*
|
|
18593
|
-
* @remarks
|
|
18594
|
-
* This key constant provides type-safe access to the `amount` property of WalletCreditRequest objects.
|
|
18595
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18596
|
-
*
|
|
18597
|
-
* @example
|
|
18598
|
-
* ```typescript
|
|
18599
|
-
* // Direct property access
|
|
18600
|
-
* const value = walletcreditrequest[KEY_WALLET_CREDIT_REQUEST_AMOUNT];
|
|
18601
|
-
*
|
|
18602
|
-
* // Dynamic property access
|
|
18603
|
-
* const propertyName = KEY_WALLET_CREDIT_REQUEST_AMOUNT;
|
|
18604
|
-
* const value = walletcreditrequest[propertyName];
|
|
18605
|
-
* ```
|
|
18606
|
-
*
|
|
18607
|
-
* @see {@link WalletCreditRequest} - The TypeScript type definition
|
|
18608
|
-
* @see {@link KEYS_WALLET_CREDIT_REQUEST} - Array of all keys for this type
|
|
18609
|
-
*/
|
|
18610
|
-
export const KEY_WALLET_CREDIT_REQUEST_AMOUNT = 'amount' as keyof WalletCreditRequest;
|
|
18611
|
-
/**
|
|
18612
|
-
* Payment Method Id
|
|
18613
|
-
*
|
|
18614
|
-
* Payment method ID that should be used
|
|
18615
|
-
*
|
|
18616
|
-
* @type {string}
|
|
18617
|
-
*
|
|
18618
|
-
*
|
|
18619
|
-
* @remarks
|
|
18620
|
-
* This key constant provides type-safe access to the `payment_method_id` property of WalletCreditRequest objects.
|
|
18621
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18622
|
-
*
|
|
18623
|
-
* @example
|
|
18624
|
-
* ```typescript
|
|
18625
|
-
* // Direct property access
|
|
18626
|
-
* const value = walletcreditrequest[KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID];
|
|
18627
|
-
*
|
|
18628
|
-
* // Dynamic property access
|
|
18629
|
-
* const propertyName = KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID;
|
|
18630
|
-
* const value = walletcreditrequest[propertyName];
|
|
18631
|
-
* ```
|
|
18632
|
-
*
|
|
18633
|
-
* @see {@link WalletCreditRequest} - The TypeScript type definition
|
|
18634
|
-
* @see {@link KEYS_WALLET_CREDIT_REQUEST} - Array of all keys for this type
|
|
18635
|
-
*/
|
|
18636
|
-
export const KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID = 'payment_method_id' as keyof WalletCreditRequest;
|
|
18637
|
-
|
|
18638
|
-
/**
|
|
18639
|
-
* Array of all WalletCreditRequest property keys
|
|
18640
|
-
*
|
|
18641
|
-
* @remarks
|
|
18642
|
-
* This constant provides a readonly array containing all valid property keys for WalletCreditRequest objects.
|
|
18643
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
18644
|
-
*
|
|
18645
|
-
* @example
|
|
18646
|
-
* ```typescript
|
|
18647
|
-
* // Iterating through all keys
|
|
18648
|
-
* for (const key of KEYS_WALLET_CREDIT_REQUEST) {
|
|
18649
|
-
* console.log(`Property: ${key}, Value: ${walletcreditrequest[key]}`);
|
|
18650
|
-
* }
|
|
18651
|
-
*
|
|
18652
|
-
* // Validation
|
|
18653
|
-
* const isValidKey = KEYS_WALLET_CREDIT_REQUEST.includes(someKey);
|
|
18654
|
-
* ```
|
|
18655
|
-
*
|
|
18656
|
-
* @see {@link WalletCreditRequest} - The TypeScript type definition
|
|
18657
|
-
*/
|
|
18658
|
-
export const KEYS_WALLET_CREDIT_REQUEST = [
|
|
18659
|
-
KEY_WALLET_CREDIT_REQUEST_AMOUNT,
|
|
18660
|
-
KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID,
|
|
18661
|
-
] as const satisfies (keyof WalletCreditRequest)[];
|
|
18662
|
-
|
|
18663
|
-
/**
|
|
18664
|
-
* Amount
|
|
18665
|
-
*
|
|
18666
|
-
* Amount credited to the customer wallet
|
|
18667
|
-
*
|
|
18668
|
-
* @type {string}
|
|
18669
|
-
*
|
|
18670
|
-
*
|
|
18671
|
-
* @remarks
|
|
18672
|
-
* This key constant provides type-safe access to the `amount` property of WalletCreditResponseWithBalance objects.
|
|
18673
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18674
|
-
*
|
|
18675
|
-
* @example
|
|
18676
|
-
* ```typescript
|
|
18677
|
-
* // Direct property access
|
|
18678
|
-
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT];
|
|
18679
|
-
*
|
|
18680
|
-
* // Dynamic property access
|
|
18681
|
-
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT;
|
|
18682
|
-
* const value = walletcreditresponsewithbalance[propertyName];
|
|
18683
|
-
* ```
|
|
18684
|
-
*
|
|
18685
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18686
|
-
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
18687
|
-
*/
|
|
18688
|
-
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT = 'amount' as keyof WalletCreditResponseWithBalance;
|
|
18689
|
-
/**
|
|
18690
|
-
* Balance
|
|
18691
|
-
*
|
|
18692
|
-
* Updated wallet balance after the credit
|
|
18693
|
-
*
|
|
18694
|
-
* @type {string}
|
|
18695
|
-
*
|
|
18696
|
-
*
|
|
18697
|
-
* @remarks
|
|
18698
|
-
* This key constant provides type-safe access to the `balance` property of WalletCreditResponseWithBalance objects.
|
|
18699
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18700
|
-
*
|
|
18701
|
-
* @example
|
|
18702
|
-
* ```typescript
|
|
18703
|
-
* // Direct property access
|
|
18704
|
-
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE];
|
|
18705
|
-
*
|
|
18706
|
-
* // Dynamic property access
|
|
18707
|
-
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE;
|
|
18708
|
-
* const value = walletcreditresponsewithbalance[propertyName];
|
|
18709
|
-
* ```
|
|
18710
|
-
*
|
|
18711
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18712
|
-
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
18713
|
-
*/
|
|
18714
|
-
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE = 'balance' as keyof WalletCreditResponseWithBalance;
|
|
18715
|
-
/**
|
|
18716
|
-
* Client Secret
|
|
18717
|
-
*
|
|
18718
|
-
* Client secret for 3DS authentication
|
|
18719
|
-
*
|
|
18720
|
-
*
|
|
18721
|
-
*
|
|
18722
|
-
* @remarks
|
|
18723
|
-
* This key constant provides type-safe access to the `client_secret` property of WalletCreditResponseWithBalance objects.
|
|
18724
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18725
|
-
*
|
|
18726
|
-
* @example
|
|
18727
|
-
* ```typescript
|
|
18728
|
-
* // Direct property access
|
|
18729
|
-
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET];
|
|
18730
|
-
*
|
|
18731
|
-
* // Dynamic property access
|
|
18732
|
-
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET;
|
|
18733
|
-
* const value = walletcreditresponsewithbalance[propertyName];
|
|
18734
|
-
* ```
|
|
18735
|
-
*
|
|
18736
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18737
|
-
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
18738
|
-
*/
|
|
18739
|
-
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET = 'client_secret' as keyof WalletCreditResponseWithBalance;
|
|
18740
|
-
/**
|
|
18741
|
-
* Credit Id
|
|
18742
|
-
*
|
|
18743
|
-
* Unique identifier of the wallet credit transaction
|
|
18744
|
-
*
|
|
18745
|
-
* @type {string}
|
|
18746
|
-
*
|
|
18747
|
-
*
|
|
18748
|
-
* @remarks
|
|
18749
|
-
* This key constant provides type-safe access to the `credit_id` property of WalletCreditResponseWithBalance objects.
|
|
18750
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18751
|
-
*
|
|
18752
|
-
* @example
|
|
18753
|
-
* ```typescript
|
|
18754
|
-
* // Direct property access
|
|
18755
|
-
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID];
|
|
18756
|
-
*
|
|
18757
|
-
* // Dynamic property access
|
|
18758
|
-
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID;
|
|
18759
|
-
* const value = walletcreditresponsewithbalance[propertyName];
|
|
18760
|
-
* ```
|
|
18761
|
-
*
|
|
18762
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18763
|
-
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
18764
|
-
*/
|
|
18765
|
-
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID = 'credit_id' as keyof WalletCreditResponseWithBalance;
|
|
18766
|
-
/**
|
|
18767
|
-
* Message
|
|
18768
|
-
*
|
|
18769
|
-
* Optional human-readable message describing the result
|
|
18770
|
-
*
|
|
18771
|
-
*
|
|
18772
|
-
*
|
|
18773
|
-
* @remarks
|
|
18774
|
-
* This key constant provides type-safe access to the `message` property of WalletCreditResponseWithBalance objects.
|
|
18775
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18776
|
-
*
|
|
18777
|
-
* @example
|
|
18778
|
-
* ```typescript
|
|
18779
|
-
* // Direct property access
|
|
18780
|
-
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE];
|
|
18781
|
-
*
|
|
18782
|
-
* // Dynamic property access
|
|
18783
|
-
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE;
|
|
18784
|
-
* const value = walletcreditresponsewithbalance[propertyName];
|
|
18785
|
-
* ```
|
|
18786
|
-
*
|
|
18787
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18788
|
-
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
18789
|
-
*/
|
|
18790
|
-
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE = 'message' as keyof WalletCreditResponseWithBalance;
|
|
18791
|
-
/**
|
|
18792
|
-
* status property
|
|
18793
|
-
*
|
|
18794
|
-
* Status of the credit operation
|
|
18795
|
-
*
|
|
18796
|
-
*
|
|
18797
|
-
*
|
|
18798
|
-
* @remarks
|
|
18799
|
-
* This key constant provides type-safe access to the `status` property of WalletCreditResponseWithBalance objects.
|
|
18800
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18801
|
-
*
|
|
18802
|
-
* @example
|
|
18803
|
-
* ```typescript
|
|
18804
|
-
* // Direct property access
|
|
18805
|
-
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS];
|
|
18806
|
-
*
|
|
18807
|
-
* // Dynamic property access
|
|
18808
|
-
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS;
|
|
18809
|
-
* const value = walletcreditresponsewithbalance[propertyName];
|
|
18810
|
-
* ```
|
|
18811
|
-
*
|
|
18812
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18813
|
-
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
18814
|
-
*/
|
|
18815
|
-
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS = 'status' as keyof WalletCreditResponseWithBalance;
|
|
18816
|
-
|
|
18817
|
-
/**
|
|
18818
|
-
* Array of all WalletCreditResponseWithBalance property keys
|
|
18819
|
-
*
|
|
18820
|
-
* @remarks
|
|
18821
|
-
* This constant provides a readonly array containing all valid property keys for WalletCreditResponseWithBalance objects.
|
|
18822
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
18823
|
-
*
|
|
18824
|
-
* @example
|
|
18825
|
-
* ```typescript
|
|
18826
|
-
* // Iterating through all keys
|
|
18827
|
-
* for (const key of KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE) {
|
|
18828
|
-
* console.log(`Property: ${key}, Value: ${walletcreditresponsewithbalance[key]}`);
|
|
18829
|
-
* }
|
|
18830
|
-
*
|
|
18831
|
-
* // Validation
|
|
18832
|
-
* const isValidKey = KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE.includes(someKey);
|
|
18833
|
-
* ```
|
|
18834
|
-
*
|
|
18835
|
-
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
18836
|
-
*/
|
|
18837
|
-
export const KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE = [
|
|
18838
|
-
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT,
|
|
18839
|
-
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE,
|
|
18840
|
-
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CLIENT_SECRET,
|
|
18841
|
-
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID,
|
|
18842
|
-
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE,
|
|
18843
|
-
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS,
|
|
18844
|
-
] as const satisfies (keyof WalletCreditResponseWithBalance)[];
|
|
18845
|
-
|
|
18846
18005
|
/**
|
|
18847
18006
|
* Whois Server
|
|
18848
18007
|
*
|